/* ============================================================
   Nomad OS — Design System v4 (light workspace refresh)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg:          #f6f7fb;
  --sidebar-bg:  #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f1f4f9;
  --hover:       rgba(15, 23, 42, 0.045);

  /* Borders */
  --border:       #e4e8f0;
  --border-mid:   #d5dbe6;
  --border-strong:#c5cdda;

  /* Text */
  --ink:      #111827;
  --ink-soft: #475569;
  --muted:    #7b8494;

  /* Accent */
  --pink:      #e63773;
  --pink-dark: #bd2358;
  --pink-soft: rgba(230,55,115,0.10);
  --pink-glow: rgba(230,55,115,0.18);

  /* Status */
  --green:      #10875d;
  --green-soft: #e8f7ef;
  --red:        #d73d4a;
  --red-soft:   #fdebed;
  --amber:      #a86608;
  --amber-soft: #fff5df;
  --blue:       #2d6cdf;
  --blue-soft:  #eaf1ff;
  --purple:     #7559d9;
  --purple-soft:#f0edff;

  /* Sidebar */
  --sidebar-w: 232px;

  /* Radii */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 8px;

  /* Transitions */
  --t: 0.15s ease;

  /* Backward compat */
  --paper: var(--surface);
  --canvas: var(--bg);
  --card: var(--surface);
  --line: var(--border);
  --line-strong: var(--border-mid);
  --card-2: var(--surface-2);
  --border-strong-old: var(--border-strong);

  /* Shadows */
  --shadow: 0 1px 2px rgba(15,23,42,0.05), 0 8px 24px rgba(15,23,42,0.06);
  --shadow-lg: 0 18px 60px rgba(15,23,42,0.16);
}

/* ============================================================
   Base
   ============================================================ */
html { height: 100%; }
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   App shell — sidebar + main
   ============================================================ */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-top { padding: 20px 12px 16px; }

.sb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 4px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}
.sb-mode-pill {
  display: inline-flex;
  align-items: center;
  margin: -18px 4px 18px;
  padding: 4px 8px;
  border: 1px solid rgba(232,51,109,0.22);
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sb-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
}
.sb-logo svg { width: 16px; height: 16px; fill: #fff; }
.sb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.sb-name {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.2;
}
.sb-name span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sb-section { margin-bottom: 6px; }
.sb-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 4px;
  display: block;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  text-decoration: none;
  position: relative;
}
.sb-link:hover { background: var(--hover); color: var(--ink); }
.sb-link.active { background: var(--surface); color: var(--ink); }
.sb-link .sb-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}
.sb-link.active .sb-icon { opacity: 1; }

.sb-assistant-link {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
}
.sb-assistant-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sb-client-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sb-client-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  transition: background var(--t), color var(--t);
}
.sb-client-link:hover {
  background: var(--hover);
  color: var(--ink);
}
.sb-client-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  color: var(--pink);
  font-family: "Oswald", sans-serif;
  font-size: 11px;
}
.sb-add-client {
  display: block;
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 9px 0;
}
.sb-empty-note {
  color: var(--muted);
  font-size: 11px;
  padding: 4px 9px;
}

.sb-credit-box {
  margin: 16px 4px 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.sb-credit-num {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 2px;
}
.sb-credit-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.sb-buy-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(232,51,109,0.2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
}
.sb-buy-btn:hover { background: rgba(232,51,109,0.18); }

.sb-spacer { flex: 1; }

.sb-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.sb-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
}
.sb-user:hover { background: var(--hover); }
.sb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-soft);
  border: 1px solid rgba(232,51,109,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  flex-shrink: 0;
}
.sb-user-email {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.sb-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background var(--t), color var(--t);
}

.sb-logout .sb-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sb-logout:hover {
  background: var(--red-soft);
  color: var(--red);
}

.sb-logout:hover .sb-icon {
  opacity: 1;
}
.sb-settings-icon {
  width: 15px;
  height: 15px;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ============================================================
   Main content area
   ============================================================ */
.main-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-header {
  padding: 28px 32px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.main-title {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}
.main-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.main-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px;
}
.main-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.main-tab:hover { color: var(--ink-soft); }
.main-tab.active { color: var(--ink); border-bottom-color: var(--pink); }

.main-body {
  padding: 28px 32px;
  flex: 1;
}

/* Verify banner */
.verify-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid rgba(245,166,35,0.2);
  padding: 9px 32px;
  font-size: 12.5px;
  color: var(--amber);
  text-align: center;
  flex-shrink: 0;
}
.verify-banner a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card + .card { margin-top: 14px; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--pink);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: none; opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { background: var(--hover); color: var(--ink); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-danger {
  background: var(--red);
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 16px; }
label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.label-note { color: var(--muted); font-weight: 400; margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  outline: 0;
  font-size: 13px;
  transition: border-color var(--t), box-shadow var(--t);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
select { cursor: pointer; }

.choice-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.choice-card:hover {
  border-color: rgba(232,51,109,0.42);
  background: rgba(232,51,109,0.06);
}
.choice-card.active-choice {
  border-color: rgba(232,51,109,0.72);
  background: rgba(232,51,109,0.12);
  box-shadow: 0 0 0 3px rgba(232,51,109,0.10);
}
.choice-card input {
  margin-top: 3px;
  accent-color: var(--pink);
}
.choice-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}
.choice-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.alert-error   { color: var(--red);   background: var(--red-soft);   border: 1px solid rgba(255,92,108,0.25); }
.alert-success { color: var(--green); background: var(--green-soft); border: 1px solid rgba(31,212,122,0.25); }
.alert-info    { color: var(--blue);  background: var(--blue-soft);  border: 1px solid rgba(77,159,255,0.25); }
.alert-warning { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(245,166,35,0.25); }
.alert-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-error   { background: var(--red-soft);   color: var(--red); }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-running { background: var(--blue-soft);  color: var(--blue); }
.badge-admin   { background: var(--pink-soft);  color: var(--pink); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--hover); color: var(--ink); }

/* ============================================================
   Stats row
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal .field:last-of-type {
  margin-bottom: 12px;
}

/* ============================================================
   Spinner
   ============================================================ */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
.site-footer a { color: var(--muted); transition: color var(--t); }
.site-footer a:hover { color: var(--ink-soft); }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.auth-card {
  width: min(100%, 400px);
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.35s ease both;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   Landing page (public, no sidebar)
   ============================================================ */
.landing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.land-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.land-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.land-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}
.land-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.land-nav-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.land-nav-links a:hover { color: var(--ink); background: var(--hover); }
.land-nav-actions { display: flex; align-items: center; gap: 8px; }

.hero {
  padding: 100px 28px 80px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--pink-soft);
  border: 1px solid rgba(232,51,109,0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 22px;
}
.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem,5vw,3.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero-title span { color: var(--pink); }
.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-ctas .btn { font-size: 14px; padding: 12px 28px; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.section { max-width: 1100px; margin: 0 auto; padding: 80px 28px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}
.section-heading {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.5rem,3vw,2.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-body { color: var(--ink-soft); line-height: 1.75; max-width: 540px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; margin-top: 40px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.step-num {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 12px;
}
.step-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.step-body { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.features { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 14px; margin-top: 40px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t), transform var(--t);
}
.feature:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.feature-icon { font-size: 1.1rem; margin-bottom: 12px; }
.feature-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.feature-body { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; margin-top: 40px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.price-card:hover { transform: translateY(-2px); border-color: var(--border-mid); }
.price-card.featured { border-color: rgba(232,51,109,0.35); }
.price-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.price-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.price-credits { font-family: "Oswald", sans-serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 2px; }
.price-amount { font-size: 1.8rem; font-weight: 700; color: var(--pink); margin-bottom: 2px; }
.price-per { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.price-saving { font-size: 11px; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.cta-section {
  background: var(--surface);
  border: 1px solid rgba(232,51,109,0.15);
  border-radius: 16px;
  padding: 56px 28px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Page animation
   ============================================================ */
.main-body { animation: fadeUp 0.3s ease both; }

/* ============================================================
   Legacy embedded chat panel
   ============================================================ */
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: 640px;
  background: var(--surface);
  border: 1px solid rgba(232,51,109,0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
}

.chat-header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff3f7;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: normal;
}

.chat-user {
  align-self: flex-end;
  color: #fff;
  background: var(--pink);
  border-bottom-right-radius: 4px;
}

.chat-assistant {
  align-self: flex-start;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
}

/* ============================================================
   Nomad OS Light Refresh — shared polish
   ============================================================ */
body {
  letter-spacing: 0;
}

.sidebar {
  box-shadow: 1px 0 0 rgba(15,23,42,0.02);
}

.sb-brand {
  margin-bottom: 24px;
}

.sb-mode-pill {
  border-color: rgba(230,55,115,0.16);
  background: #fff3f7;
}

.sb-logo {
  background: var(--surface);
  border-color: var(--border-mid);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}

.sb-link {
  margin: 1px 0;
}

.sb-link:hover {
  background: var(--surface-2);
}

.sb-link.active {
  background: #fff3f7;
  color: var(--pink-dark);
  box-shadow: inset 3px 0 0 var(--pink);
}

.sb-client-dot,
.sb-credit-box,
.sb-user:hover {
  background: var(--surface-2);
}

.main-area {
  background: var(--bg);
}

.main-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}

.main-title,
.hero-title,
.section-heading,
.client-title-big {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.main-body {
  max-width: 1680px;
  width: 100%;
}

.card,
.stat-card,
.price-card,
.feature,
.step,
.chat-panel,
.auth-card {
  box-shadow: var(--shadow);
}

.card,
.stat-card,
.price-card,
.feature,
.step {
  border-color: var(--border);
}

.card:hover,
.stat-card:hover,
.price-card:hover,
.feature:hover,
.step:hover {
  border-color: var(--border-mid);
}

.btn {
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.btn:hover {
  opacity: 1;
  background: var(--pink-dark);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border-color: var(--border-mid);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--border-strong);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background: var(--surface);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

table {
  background: var(--surface);
}

th {
  background: var(--surface-2);
}

td {
  color: var(--ink-soft);
}

tr:hover td {
  background: #f8fafc;
}

.modal-overlay {
  background: rgba(15,23,42,0.30);
}

.modal {
  background: var(--surface);
}

.auth-page {
  background: var(--bg);
}

.land-nav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
}

.hero {
  padding-top: 86px;
}

.hero-eyebrow,
.price-badge {
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.hero-sub,
.section-body,
.feature-body,
.step-body {
  color: var(--ink-soft);
}

.chat-header {
  background: #fff3f7;
}

.chat-user {
  background: var(--pink);
}

.chat-assistant {
  background: var(--surface-2);
}

/* ============================================================
   Global Nomad Assistant
   ============================================================ */
.na-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(230,55,115,.28);
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
}
.na-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(230,55,115,.34);
}
.na-launcher.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.na-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 44px));
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15,23,42,.20);
  overflow: hidden;
}
.na-panel.open {
  display: flex;
}
.na-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #fff3f7;
}
.na-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.na-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.na-head-actions {
  display: flex;
  gap: 6px;
}
.na-icon-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}
.na-icon-btn:hover {
  color: var(--pink);
  border-color: rgba(230,55,115,.30);
}
.na-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px 2px;
}
.na-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
}
.na-chip:hover {
  color: var(--pink);
  border-color: rgba(230,55,115,.30);
  background: var(--pink-soft);
}
.na-messages {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.na-empty {
  border: 1px dashed var(--border-mid);
  border-radius: var(--r-lg);
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.na-empty strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}
.na-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}
.na-user {
  align-self: flex-end;
  background: var(--pink);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.na-assistant {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-bottom-left-radius: 5px;
}
.na-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.na-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-header { padding: 20px 16px 0; }
  .main-body { padding: 20px 16px; }
  .hero { padding: 60px 16px 50px; }
  .section { padding: 50px 16px; }
  .na-launcher {
    right: 14px;
    bottom: 14px;
  }
  .na-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: min(620px, calc(100vh - 20px));
  }
}
