/* ═══════════════════════════════════════════════════════════════════
   PRIMELOOPX · main.css
   Design: Premium White Morphism / Neumorphic System
   Font: Sora + JetBrains Mono
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS — WHITE MORPHISM (Light neumorphic)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds — warm white */
  --bg:               #f0f0f3;
  --bg-2:             #e8e8ec;
  --surface:          #f5f5f8;
  --surface-raised:   #fafafa;
  --surface-card:     #f7f7fa;
  --surface-input:    #eaeaee;

  /* Text */
  --text-primary:     #1a1a2e;
  --text-secondary:   #4a4a6a;
  --text-muted:       #9090b0;
  --text-invert:      #f7f7fa;

  /* Brand — pure black (as in design) */
  --brand:            #1a1a1a;
  --brand-light:      #333333;
  --brand-dark:       #000000;
  --brand-bg:         rgba(26,26,26,0.07);

  /* Semantic */
  --success:          #22c987;
  --success-bg:       rgba(34,201,135,0.10);
  --warning:          #f5a623;
  --warning-bg:       rgba(245,166,35,0.10);
  --danger:           #ff5e7d;
  --danger-bg:        rgba(255,94,125,0.10);
  --info:             #3b82f6;
  --info-bg:          rgba(59,130,246,0.10);

  /* Neumorphism — LIGHT (the magic) */
  --nm-shadow-out:    8px 8px 20px #d1d1d8, -6px -6px 16px #ffffff;
  --nm-shadow-in:     inset 5px 5px 12px #d1d1d8, inset -4px -4px 10px #ffffff;
  --nm-shadow-card:   10px 10px 28px #d0d0d8, -8px -8px 20px #ffffff;
  --nm-shadow-sm:     4px 4px 10px #d1d1d8, -3px -3px 8px #ffffff;
  --nm-shadow-btn:    5px 5px 14px #d0d0d8, -3px -3px 10px #ffffff;
  --nm-shadow-btn-active: inset 3px 3px 8px #ccccd4, inset -2px -2px 6px #ffffff;
  --nm-shadow-brand:  4px 4px 14px rgba(0,0,0,0.18), -2px -2px 8px #ffffff;
  --nm-shadow-logo:   6px 6px 20px #b8b8c0, -4px -4px 12px #ffffff, inset 2px 2px 6px rgba(255,255,255,0.8), inset -2px -2px 4px rgba(0,0,0,0.12);

  /* Borders */
  --border:           rgba(0,0,0,0.06);
  --border-subtle:    rgba(0,0,0,0.03);
  --border-strong:    rgba(0,0,0,0.12);

  /* Radius */
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-pill:  999px;

  /* Transitions */
  --t-fast:  0.15s ease;
  --t-base:  0.25s ease;
  --t-slow:  0.40s ease;

  /* Font */
  --font: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Base ─────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle wavy background — matches the morphism ripple */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(200,200,220,0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-light); }
p { color: var(--text-secondary); line-height: 1.7; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--font); outline: none; }

code, pre { font-family: var(--font-mono); font-size: .825rem; }

/* ── PLX Logo Icon ───────────────────────────────────────────────── */
.plx-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(145deg, #2a2a2a, #111111);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--nm-shadow-logo);
  flex-shrink: 0;
  position: relative;
}
.plx-logo-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3a3a3a, #0d0d0d);
  box-shadow: inset 1px 1px 3px rgba(255,255,255,0.15);
}
.plx-logo-icon svg {
  position: relative; z-index: 1;
  width: 18px; height: 18px;
  fill: white;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 2rem;
  background: rgba(240,240,243,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.9);
  position: sticky;
  top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.nav-logo { width: 32px; height: 32px; border-radius: 50%; }

.nav-links {
  display: flex; align-items: center; gap: .2rem;
  list-style: none; margin-left: auto; flex-wrap: wrap;
}

.nav-link {
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: .82rem; font-weight: 500;
  transition: all var(--t-fast);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-raised);
  box-shadow: var(--nm-shadow-sm);
}
.nav-link.active { color: var(--brand); background: var(--brand-bg); }
.nav-admin { color: var(--warning) !important; }

.nav-user-info { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.nav-username { font-size: .78rem; color: var(--text-muted); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: .35rem .6rem;
  box-shadow: var(--nm-shadow-sm);
}

/* ── Main Content ─────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 2.2rem 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .45rem;
  padding: .6rem 1.3rem;
  border-radius: var(--r-pill);
  font-size: .845rem; font-weight: 600;
  font-family: var(--font);
  cursor: pointer; border: none;
  transition: all var(--t-fast);
  white-space: nowrap; user-select: none;
  position: relative; z-index: 1;
  letter-spacing: -.01em;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--nm-shadow-brand);
}
.btn-primary:hover { background: var(--brand-light); color: #fff; transform: translateY(-1px); box-shadow: 6px 6px 20px rgba(0,0,0,0.22), -2px -2px 8px #ffffff; }
.btn-primary:active { transform: translateY(0); box-shadow: var(--nm-shadow-btn-active); }

.btn-outline {
  background: var(--surface-raised);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--nm-shadow-sm);
}
.btn-outline:hover { box-shadow: var(--nm-shadow-out); border-color: rgba(0,0,0,0.18); }

.btn-danger {
  background: var(--danger-bg);
  border: 1px solid rgba(255,94,125,.25);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm  { padding: .32rem .8rem; font-size: .775rem; }
.btn-lg  { padding: .8rem 1.8rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  box-shadow: var(--nm-shadow-card);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 1.5rem;
  transition: box-shadow var(--t-base), transform var(--t-base);
  position: relative;
}
.card:hover { box-shadow: var(--nm-shadow-out); transform: translateY(-1px); }
.card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-primary); }
.card-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .815rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: .38rem; letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-input,
.form-select {
  width: 100%;
  background: var(--surface-input);
  box-shadow: var(--nm-shadow-in);
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--r-md);
  color: var(--text-primary);
  padding: .65rem 1rem;
  font-size: .875rem;
  font-family: var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(0,0,0,0.2);
  box-shadow: var(--nm-shadow-in), 0 0 0 3px rgba(26,26,26,0.08);
}

.form-group input::placeholder,
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: .775rem; color: var(--text-muted); margin-top: .28rem; }

.input-with-toggle { position: relative; }
.input-with-toggle input { padding-right: 3rem; }
.toggle-pw {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: .95rem; color: var(--text-muted); transition: color var(--t-fast);
}
.toggle-pw:hover { color: var(--text-primary); }

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1.1rem; border-radius: var(--r-md);
  font-size: .845rem; margin-bottom: 1.1rem;
  border: 1px solid transparent; line-height: 1.5;
}
.alert-success { background: var(--success-bg); border-color: rgba(34,201,135,.2); color: #138a5a; }
.alert-error   { background: var(--danger-bg);  border-color: rgba(255,94,125,.2);  color: #c0394f; }
.alert-info    { background: var(--info-bg);    border-color: rgba(59,130,246,.2);  color: #1d4ed8; }

/* ── Tags / Badges ────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .6rem; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag-green  { background: var(--success-bg); color: #138a5a; }
.tag-red    { background: var(--danger-bg);  color: #c0394f; }
.tag-grey   { background: var(--surface-input); color: var(--text-muted); }
.tag-blue   { background: var(--info-bg);   color: #1d4ed8; }
.tag-yellow { background: var(--warning-bg); color: #92610a; }

.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700;
}

/* ── Code block ───────────────────────────────────────────────────── */
.code-block {
  background: var(--surface-input);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 1.25rem; box-shadow: var(--nm-shadow-in);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .75rem; color: var(--text-muted);
  background: var(--surface-card);
}
.code-block pre {
  padding: 1rem; overflow-x: auto;
  font-size: .775rem; color: var(--text-secondary);
  white-space: pre; line-height: 1.7;
}
.btn-copy {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .7rem; padding: .18rem .55rem;
  border-radius: var(--r-sm); cursor: pointer;
  transition: all var(--t-fast); font-family: var(--font);
  box-shadow: var(--nm-shadow-sm);
}
.btn-copy:hover { color: var(--brand); border-color: var(--brand); }

/* ── Search bar ───────────────────────────────────────────────────── */
.search-bar {
  display: flex; gap: .6rem; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.search-bar .form-input { flex: 1; min-width: 200px; }

/* ── Data tables ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--nm-shadow-card); margin-bottom: 1.25rem;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .845rem; }
.data-table th,
.data-table td { padding: .7rem .95rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th {
  color: var(--text-muted); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; background: var(--surface);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(0,0,0,0.02); }
.td-id    { color: var(--text-muted); width: 3rem; }
.td-email { color: var(--text-muted); font-size: .8rem; }
.td-date  { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }

/* ── Pagination ───────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.page-btn {
  min-width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm); font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface); box-shadow: var(--nm-shadow-sm);
  cursor: pointer; transition: all var(--t-fast);
  border: 1px solid rgba(255,255,255,0.8); padding: 0 .5rem;
}
.page-btn:hover { color: var(--brand); box-shadow: var(--nm-shadow-out); }
.page-btn.active { background: var(--brand); color: white; box-shadow: var(--nm-shadow-brand); border-color: var(--brand); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-info { font-size: .82rem; color: var(--text-muted); }

/* ── Inline forms ─────────────────────────────────────────────────── */
.action-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form { display: flex; gap: .35rem; align-items: center; }
.form-select-sm { width: auto; padding: .28rem .55rem; font-size: .78rem; border-radius: var(--r-sm); }

/* ── Mini progress bar ────────────────────────────────────────────── */
.mini-bar { height: 5px; background: var(--surface-input); border-radius: 99px; overflow: hidden; width: 70px; box-shadow: var(--nm-shadow-in); }
.mini-bar-fill { height: 100%; background: var(--brand); border-radius: 99px; }

/* ── Empty state ──────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 3.5rem 2rem; gap: .75rem;
  color: var(--text-muted); font-size: .875rem;
}
.empty-state span { font-size: 2.5rem; }

/* ── Back link ────────────────────────────────────────────────────── */
.back-link { font-size: .8rem; color: var(--text-muted); display: inline-block; margin-bottom: .4rem; transition: color var(--t-fast); }
.back-link:hover { color: var(--brand); }

/* ── Utility ──────────────────────────────────────────────────────── */
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.9);
  padding: 1.75rem;
  margin-top: auto;
  background: var(--surface-card);
  position: relative; z-index: 1;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.04);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.footer-logo  { width: 22px; height: 22px; border-radius: var(--r-sm); }
.footer-name  { font-weight: 700; font-size: .9rem; }
.footer-tagline { font-size: .72rem; color: var(--text-muted); }
.footer-nav ul  { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-nav a   { color: var(--text-muted); font-size: .8rem; transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--brand); }
.footer-copy    { font-size: .72rem; color: var(--text-muted); margin-left: auto; }
.footer-copy a  { color: var(--text-muted); }
.footer-copy a:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════
   LANDING PAGE — White Morphism Hero
   ═══════════════════════════════════════════════════════════════════ */
body.landing .main-content { max-width: 100%; padding: 0; }

/* ── Navbar badge ─── */
.nav-badge-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .85rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  color: var(--text-secondary);
  font-size: .75rem; font-weight: 500;
  margin-right: .5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg);
  padding: 6rem 2rem 5rem;
}

/* Concentric morphic rings (the ORB effect) */
.hero-orb-bg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-bg .ring {
  position: absolute;
  border-radius: 50%;
  background: transparent;
}
.hero-orb-bg .ring-1 {
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 30%, rgba(230,230,235,0.4) 60%, transparent 80%);
  box-shadow: 0 0 80px rgba(255,255,255,0.8), 0 0 160px rgba(200,200,210,0.3);
}
.hero-orb-bg .ring-2 {
  inset: -30px;
  border: 1.5px solid rgba(200,200,215,0.35);
  box-shadow: inset 4px 4px 20px rgba(255,255,255,0.6), inset -4px -4px 20px rgba(190,190,205,0.2);
}
.hero-orb-bg .ring-3 {
  inset: -70px;
  border: 1px solid rgba(200,200,215,0.2);
}
.hero-orb-bg .ring-4 {
  inset: -120px;
  border: 1px solid rgba(200,200,215,0.12);
}
.hero-orb-bg .ring-5 {
  inset: -180px;
  border: 1px solid rgba(200,200,215,0.07);
}

.hero-inner {
  max-width: 680px; margin: 0 auto;
  position: relative; z-index: 1;
}

/* Inline update badge */
.hero-update-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem 1rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  color: var(--text-secondary);
  font-size: .75rem; font-weight: 500;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: all var(--t-fast);
}
.hero-update-badge:hover { box-shadow: var(--nm-shadow-out); color: var(--text-primary); }
.hero-update-badge .arrow { font-size: .8rem; color: var(--text-muted); }

/* Logo + brand name stacked */
.hero-brand-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.hero-logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(145deg, #2e2e2e, #0d0d0d);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow:
    8px 8px 24px #c0c0c8,
    -6px -6px 18px #ffffff,
    inset 2px 2px 8px rgba(255,255,255,0.15),
    inset -2px -2px 6px rgba(0,0,0,0.4);
  position: relative;
}
.hero-logo-icon::before {
  content: '';
  position: absolute; inset: 4px; border-radius: 50%;
  background: linear-gradient(145deg, #383838, #101010);
}
.hero-logo-icon svg {
  position: relative; z-index: 1;
  width: 34px; height: 34px; fill: white;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: .95rem; margin: 1.25rem 0 2rem;
  line-height: 1.7; max-width: 500px; margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex; gap: .85rem; justify-content: center;
  flex-wrap: wrap;
}

/* Pill button — black */
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  background: #1a1a1a;
  color: white;
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; font-family: var(--font);
  box-shadow: 5px 5px 18px rgba(0,0,0,0.22), -2px -2px 8px #ffffff;
  transition: all var(--t-fast);
  border: none; cursor: pointer;
  letter-spacing: -.01em;
  text-decoration: none;
}
.btn-hero-primary:hover { background: #333; color: white; transform: translateY(-2px); box-shadow: 7px 7px 24px rgba(0,0,0,0.28), -2px -2px 10px #ffffff; }

/* Pill button — outline */
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .73rem 1.75rem;
  background: var(--surface-raised);
  color: var(--text-primary);
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; font-family: var(--font);
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: var(--nm-shadow-sm);
  transition: all var(--t-fast); cursor: pointer;
  letter-spacing: -.01em; text-decoration: none;
}
.btn-hero-outline:hover { box-shadow: var(--nm-shadow-out); color: var(--text-primary); }

/* Floating hero card */
.hero-code {
  max-width: 520px; margin: 2.5rem auto 0;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--nm-shadow-card);
  text-align: left;
}
.hero-code pre {
  padding: 1.4rem 1.6rem;
  font-size: .78rem; color: var(--text-secondary);
  line-height: 1.9; overflow-x: auto;
}

/* ── Bottom nav pill row ──────────────────────────────────────────── */
.hero-nav-pills {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; align-items: center;
  padding: 1.5rem 2rem 3rem;
}
.hero-nav-pill {
  display: inline-flex; align-items: center;
  padding: .4rem 1rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  color: var(--text-secondary);
  font-size: .8rem; font-weight: 500; font-family: var(--font);
  text-decoration: none; transition: all var(--t-fast);
}
.hero-nav-pill:hover { box-shadow: var(--nm-shadow-out); color: var(--text-primary); }

/* Newsletter pill */
.newsletter-pill {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .35rem .35rem .35rem 1rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  font-size: .8rem; color: var(--text-secondary); font-family: var(--font);
}
.newsletter-pill .btn-notify {
  display: inline-flex; align-items: center;
  padding: .35rem .9rem;
  background: var(--surface-input);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  color: var(--text-primary);
  font-size: .78rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all var(--t-fast);
  white-space: nowrap;
}
.newsletter-pill .btn-notify:hover { box-shadow: var(--nm-shadow-out); }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 5rem 2rem; position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .9rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; text-align: center;
  margin-bottom: .6rem; letter-spacing: -.03em;
  color: var(--text-primary);
}
.section-sub {
  text-align: center; color: var(--text-muted);
  margin-bottom: 3rem; font-size: .9rem; line-height: 1.7;
}

/* ── Benefits / Features ─────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  background: var(--surface-card);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--nm-shadow-card);
  transition: all var(--t-base);
  overflow: hidden;
}
.benefit-card:hover { box-shadow: var(--nm-shadow-out); transform: translateY(-3px); }

.benefit-visual {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--nm-shadow-in);
  min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* Clock visual */
.benefit-clock {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--nm-shadow-card);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.benefit-clock::before {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--surface-input);
  box-shadow: var(--nm-shadow-in);
}
.clock-hand-h, .clock-hand-m {
  position: absolute;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: bottom center;
  bottom: 50%; left: 50%;
}
.clock-hand-h { width: 2.5px; height: 26px; margin-left: -1.25px; transform: rotate(-30deg); }
.clock-hand-m { width: 2px; height: 33px; margin-left: -1px; transform: rotate(150deg); }
.clock-center { position: absolute; width: 5px; height: 5px; background: var(--text-primary); border-radius: 50%; }

/* Bar chart visual */
.benefit-bars {
  display: flex; align-items: flex-end; gap: .4rem; height: 80px;
}
.benefit-bar {
  flex: 1; border-radius: 5px 5px 0 0;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--nm-shadow-sm);
  transition: height .6s ease;
}
.benefit-bar.tall  { height: 100%; }
.benefit-bar.mid   { height: 65%; }
.benefit-bar.short { height: 40%; }
.benefit-bar.xs    { height: 25%; }

.bar-labels {
  position: absolute; right: 1.5rem; top: 1.5rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.bar-label {
  font-size: .65rem; font-weight: 700; color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-pill);
  padding: .1rem .5rem;
  box-shadow: var(--nm-shadow-sm);
}

/* Team sync visual */
.benefit-team {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
}
.team-node {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.team-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--nm-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.team-center-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--nm-shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.team-center-icon svg { width: 22px; height: 22px; fill: white; }

.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.benefit-card p  { color: var(--text-muted); font-size: .845rem; line-height: 1.65; }

/* Benefit pills row */
.benefit-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; justify-content: center;
}
.benefit-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .9rem;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  font-size: .78rem; color: var(--text-secondary); font-weight: 500; font-family: var(--font);
}

/* ── How It Works / Steps ────────────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap; justify-content: center; overflow-x: hidden;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 1; min-width: 140px; max-width: 200px; padding: 0 .75rem;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; box-shadow: var(--nm-shadow-brand);
  flex-shrink: 0;
}
.step h3 { font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.step p   { color: var(--text-muted); font-size: .815rem; line-height: 1.6; }
.step-arrow { color: var(--border-strong); font-size: 1.5rem; padding-top: 1rem; flex-shrink: 0; align-self: flex-start; margin-top: .75rem; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: .3rem; margin-bottom: 2.5rem;
}
.toggle-btn {
  padding: .45rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: .845rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all var(--t-fast);
}
.toggle-btn.active {
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(255,255,255,0.95);
}
.toggle-pill-discount {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem;
  background: var(--surface-input);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-shadow-sm);
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
}

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; }

.plan-card {
  background: var(--surface-card);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--nm-shadow-card);
  transition: all var(--t-base); position: relative;
}
.plan-card:hover { box-shadow: var(--nm-shadow-out); transform: translateY(-2px); }

.plan-card.plan-popular {
  border-color: rgba(0,0,0,0.12);
  box-shadow: var(--nm-shadow-card);
  /* slightly elevated center card like design */
  margin-top: -8px;
  padding-top: 2rem;
}

.plan-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .7rem;
  border-radius: var(--r-pill); margin-bottom: .75rem;
}

.plan-name { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }

.plan-price {
  display: flex; align-items: baseline; gap: .2rem; margin-bottom: .4rem;
}
.plan-price-num { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; }
.plan-price-per { font-size: .82rem; color: var(--text-muted); }

.plan-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.4rem; line-height: 1.6; }

.plan-queries { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.plan-num { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); vertical-align: middle; }

.plan-features {
  list-style: none; display: flex; flex-direction: column;
  gap: .45rem; font-size: .845rem; color: var(--text-secondary); margin-bottom: 1.5rem;
}
.plan-features li { display: flex; align-items: center; gap: .5rem; }
.plan-features li::before { content: '✓'; color: var(--text-primary); font-weight: 700; font-size: .8rem; }

.plan-cta-hint { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }

.plan-donate {
  display: flex; align-items: center; gap: .5rem;
  justify-content: center;
  margin-top: 2rem; font-size: .78rem; color: var(--text-muted);
}

/* ── CTA ──────────────────────────────────────────────────────────── */
.cta { padding: 5rem 2rem; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .8rem; letter-spacing: -.03em; }
.cta p  { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════ */
body.auth-page {
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
.auth-container {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  position: relative; z-index: 1;
}
.auth-card {
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-xl); padding: 2.5rem;
  width: 100%; max-width: 420px;
  box-shadow: var(--nm-shadow-card), 0 20px 60px rgba(0,0,0,0.08);
}
.auth-logo-link {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.75rem; text-decoration: none;
}
.auth-logo { width: 34px; height: 34px; border-radius: 50%; }
.auth-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.02em; }
.auth-sub   { color: var(--text-muted); font-size: .845rem; margin-bottom: 1.75rem; }
.auth-form .btn-block { margin-top: .5rem; }
.auth-footer-link { text-align: center; margin-top: 1.25rem; font-size: .82rem; color: var(--text-muted); }

/* ── Stat cards (dashboard) ──────────────────────────────────────── */
.stat-card {
  background: var(--surface-card);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg); padding: 1.4rem;
  box-shadow: var(--nm-shadow-card);
  transition: all var(--t-base);
}
.stat-card:hover { box-shadow: var(--nm-shadow-out); transform: translateY(-1px); }

/* ── Progress / ring ─────────────────────────────────────────────── */
.ring-fill { filter: drop-shadow(0 0 4px rgba(0,0,0,0.12)); }
.sub-progress-fill { background: var(--brand); }
.mini-bar-fill { background: var(--brand); }

/* ── Upload dropzone ─────────────────────────────────────────────── */
#dropZone {
  background: var(--surface-input);
  border: 2px dashed rgba(0,0,0,0.12);
  border-radius: var(--r-lg); padding: 2.5rem;
  text-align: center; cursor: pointer;
  transition: all var(--t-base); box-shadow: var(--nm-shadow-in);
  color: var(--text-muted); margin-bottom: 1rem;
}
#dropZone:hover, #dropZone.drag-over {
  border-color: rgba(0,0,0,0.25);
  background: var(--surface-raised);
  box-shadow: var(--nm-shadow-in), 0 0 20px rgba(0,0,0,0.06);
  color: var(--text-primary);
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ───────────────────────────────────────────────────── */
::selection { background: rgba(26,26,26,0.12); color: var(--text-primary); }

/* ── Focus ───────────────────────────────────────────────────────── */
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; padding: .5rem 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border); margin-top: .5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: .5rem .75rem; width: 100%; }
  .navbar { flex-wrap: wrap; }
  .nav-brand { flex: 1; }

  .main-content { padding: 1.4rem 1rem; }
  .hero { padding: 4rem 1rem 3rem; min-height: auto; }
  .section { padding: 3rem 1rem; }
  .steps { flex-direction: column; align-items: center; flex-wrap: nowrap; overflow-x: hidden; width: 100%; }
  .step { min-width: unset; max-width: 100%; width: 100%; padding: 0 .5rem; }
  .step-arrow { transform: rotate(90deg); padding: 0; margin: .25rem 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .hero-title { font-size: 2.8rem; }
  .hero-logo-icon { width: 56px; height: 56px; }
}
