/* ── Pulse MuCMS – app.css ────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Geist:wght@300;400;500&family=Geist+Mono:wght@400;500&display=swap');

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --p700: #1a1033; --p600: #261847; --p500: #3d2b7a;
  --p400: #5a3fa8; --p300: #7c5fc4; --p200: #a589e0; --p100: #d4c8f5;

  --n900: #0c0c0f; --n800: #111114; --n750: #16161a;
  --n700: #1c1c21; --n600: #242429; --n500: #2e2e35;
  --n400: #3d3d46; --n300: #8a8a98; --n200: #b0b0be;
  --n150: #cecdd8; --n100: #e0dfe8; --n50:  #eeedf5;

  --green-bg: #0e1f14; --green: #4ade80;
  --amber-bg: #1e1500; --amber: #f59e0b;
  --red-bg:   #1f0e0e; --red:   #f87171;
  --blue-bg:  #0d1624; --blue:  #60a5fa;

  --sidebar-w: 224px;
  --topbar-h:  56px;
  --r-sm: 5px; --r: 8px; --r-lg: 11px; --r-xl: 16px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Geist', 'DM Sans', sans-serif;
  --font-mono:    'Geist Mono', 'DM Mono', monospace;
}

/* ── BASE ────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--n800);
  color: var(--n50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--p200); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--n400); border-radius: 2px; }

/* ── AUTH LAYOUT ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n800);
  background-image: radial-gradient(ellipse 55% 45% at 50% 0%,
    rgba(90,63,168,0.18) 0%, transparent 65%);
}

.auth-card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  width: 380px;
  animation: fadeUp .35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 5px;
  line-height: 1.3;
  padding-bottom: 2px;
  letter-spacing: -.02em;
}

.auth-logo em { font-style: normal; color: var(--p200); }
.auth-tagline { text-align: center; font-size: .8rem; color: var(--n200); margin-bottom: 26px; }

.auth-switch { text-align: center; font-size: .78rem; color: var(--n300); margin-top: 16px; }
.auth-switch a { color: var(--p200); cursor: pointer; }
.auth-meta { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.auth-meta a { font-size: .76rem; color: var(--n300); }
.auth-meta a:hover { color: var(--p200); text-decoration: none; }

/* ── FORMS ───────────────────────────────────────────────────── */
.f-label {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  color: var(--n200);
  margin-bottom: 5px;
  letter-spacing: .02em;
}

.f-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--n600);
  border: 1px solid var(--n500);
  border-radius: var(--r);
  color: var(--n50);
  font-family: var(--font-body);
  font-size: .85rem;
  outline: none;
  transition: border-color .18s;
  margin-bottom: 12px;
}

.f-input:focus { border-color: var(--p300); }
.f-input::placeholder { color: var(--n300); }
.f-input.error { border-color: var(--red); }

.f-error {
  font-size: .75rem;
  color: var(--red);
  margin-top: -9px;
  margin-bottom: 10px;
  display: block;
}

.f-group { margin-bottom: 2px; }
.f-row2  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--p400);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--p300); text-decoration: none; color: #fff; }

.btn-cta {
  width: 100%;
  padding: 10px;
  background: var(--p400);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  margin-top: 4px;
  letter-spacing: .01em;
}
.btn-cta:hover { background: var(--p300); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--n400);
  color: var(--n150);
}
.btn-ghost:hover { background: var(--n500); color: var(--n50); text-decoration: none; }

.btn-outline {
  font-size: .73rem;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--n400);
  border-radius: var(--r-sm);
  color: var(--n150);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.btn-outline:hover { background: var(--n500); border-color: var(--n300); text-decoration: none; color: var(--n50); }

.btn-danger {
  font-size: .73rem;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(248,113,113,.25);
  border-radius: var(--r-sm);
  color: #fca5a5;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.btn-danger:hover { background: rgba(248,113,113,.08); text-decoration: none; }

.btn-success {
  font-size: .73rem;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(74,222,128,.25);
  border-radius: var(--r-sm);
  color: var(--green);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-success:hover { background: rgba(74,222,128,.08); text-decoration: none; }

/* ── PANEL SHELL ─────────────────────────────────────────────── */
.panel { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--p700);
  border-right: 1px solid rgba(255,255,255,.055);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sb-brand {
  padding: 18px 16px 15px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.sb-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.3;
  padding-bottom: 1px;
}
.sb-logo em { font-style: normal; color: var(--p200); }
.sb-sublabel { font-size: .68rem; color: rgba(255,255,255,.3); margin-top: 3px; text-transform: uppercase; letter-spacing: .09em; }

.sb-mode-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pill-admin    { background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.2); }
.pill-customer { background: rgba(165,137,224,.15); color: var(--p100); border: 1px solid rgba(165,137,224,.25); }

.nav-section {
  font-size: .64rem;
  font-weight: 600;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 13px 16px 4px;
}

.nav-group { padding: 3px 8px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r);
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); text-decoration: none; }
.nav-item.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 500;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  width: 2.5px; height: 60%;
  background: var(--p200);
  border-radius: 0 2px 2px 0;
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; }
.nav-item.active svg { opacity: 1; }

.nav-pill {
  margin-left: auto;
  font-size: .66rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
}
.np-red     { background: rgba(248,113,113,.18); color: #fca5a5; }
.np-neutral { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.6); }
.np-amber   { background: rgba(245,158,11,.15);  color: #fcd34d; }

.sb-footer {
  margin-top: auto;
  padding: 13px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 9px;
}
.sb-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
  text-transform: uppercase;
}
.sb-uname { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.8); }
.sb-urole { font-size: .7rem; color: rgba(255,255,255,.3); }
.btn-signout {
  margin-left: auto;
  background: none; border: none;
  cursor: pointer;
  color: rgba(255,255,255,.25);
  padding: 4px;
  border-radius: var(--r-sm);
  transition: color .18s;
  display: flex;
}
.btn-signout:hover { color: #f87171; }
.btn-signout svg { width: 14px; height: 14px; }

/* ── MAIN AREA ───────────────────────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--n750);
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--n700);
  border-bottom: 1px solid var(--n500);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 14px;
  overflow: visible;
}
.topbar-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.5; padding: 3px 0; overflow: visible; display: flex; align-items: center; }
.topbar-div   { width: 1px; height: 18px; background: var(--n500); }
.topbar-sub   { font-size: .78rem; color: var(--n200); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.content { flex: 1; overflow-y: auto; padding: 22px; }

/* ── FLASH MESSAGES ──────────────────────────────────────────── */
.flash {
  padding: 11px 16px;
  border-radius: var(--r);
  font-size: .83rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(74,222,128,.2); }
.flash-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid rgba(248,113,113,.2); }
.flash-info    { background: var(--blue-bg);  color: var(--blue);  border: 1px solid rgba(96,165,250,.2); }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-grid { display: grid; gap: 10px; margin-bottom: 18px; align-items: start; }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }

.stat-card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-lg);
  padding: 15px 17px;
  height: fit-content;
  align-self: start;
}
.stat-card.hero {
  background: var(--p500);
  border-color: rgba(255,255,255,.1);
  height: fit-content;
  align-self: start;
}

.stat-label { font-size: .69rem; font-weight: 500; color: var(--n200); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.stat-card.hero .stat-label { color: rgba(255,255,255,.55); }
.stat-val { font-family: var(--font-body); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat-sub   { font-size: .73rem; color: var(--n200); margin-top: 5px; }
.stat-card.hero .stat-sub { color: rgba(255,255,255,.5); }
.trend-up { color: var(--green); }
.trend-dn { color: var(--red); }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-head {
  padding: 13px 17px;
  border-bottom: 1px solid var(--n500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.card-title  { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.4; }
.card-action { font-size: .76rem; color: var(--n200); cursor: pointer; background: none; border: none; font-family: var(--font-body); transition: color .15s; text-decoration: none; }
.card-action:hover { color: var(--p200); }

/* ── TABLE ROWS ──────────────────────────────────────────────── */
.t-head {
  display: flex;
  align-items: center;
  padding: 8px 17px;
  background: var(--n750);
  border-bottom: 1px solid var(--n500);
  gap: 10px;
}
.t-head span { font-size: .68rem; font-weight: 600; color: var(--n300); text-transform: uppercase; letter-spacing: .07em; }

.t-row {
  display: flex;
  align-items: center;
  padding: 10px 17px;
  border-bottom: 1px solid var(--n500);
  gap: 10px;
  transition: background .12s;
}
.t-row:last-child  { border-bottom: none; }
.t-row:hover       { background: rgba(255,255,255,.018); }

.t-name  { font-size: .84rem; font-weight: 500; color: #fff; }
.t-sub   { font-size: .73rem; color: var(--n200); margin-top: 1px; }
.t-price { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: #fff; }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  font-size: .67rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.b-green  { background: var(--green-bg); color: var(--green); border: 1px solid rgba(74,222,128,.18); }
.b-amber  { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,158,11,.18); }
.b-red    { background: var(--red-bg);   color: var(--red);   border: 1px solid rgba(248,113,113,.18); }
.b-blue   { background: var(--blue-bg);  color: var(--blue);  border: 1px solid rgba(96,165,250,.18); }
.b-gray   { background: var(--n600); color: var(--n200); border: 1px solid var(--n500); }
.b-purple { background: rgba(90,63,168,.2); color: var(--p100); border: 1px solid rgba(124,95,196,.25); }

/* ── ROW ICON ────────────────────────────────────────────────── */
.row-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--n600);
  border: 1px solid var(--n400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.row-icon svg { width: 14px; height: 14px; color: var(--n150); }

/* ── AVATARS ─────────────────────────────────────────────────── */
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.av-1 { background: #1a1f2e; color: #8ba4f0; }
.av-2 { background: #0e1f14; color: #4ade80; }
.av-3 { background: #1e1500; color: #f59e0b; }
.av-4 { background: #1f0e0e; color: #f87171; }
.av-5 { background: #0d1624; color: #60a5fa; }

/* ── MISC ────────────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--n150);
  background: var(--n600);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--n500);
}
.version-pill {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--n150);
  background: var(--n600);
  border: 1px solid var(--n400);
  padding: 2px 8px;
  border-radius: 20px;
}
.domain-chip {
  font-size: .73rem;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid rgba(96,165,250,.18);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
}
.coupon-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  background: var(--n600);
  border: 1px solid var(--n400);
  padding: 3px 10px;
  border-radius: var(--r-sm);
}
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.flex1     { flex: 1; min-width: 0; }
.row-right { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

/* ── SEARCH ──────────────────────────────────────────────────── */
.search-bar   { padding: 11px 17px; border-bottom: 1px solid var(--n500); }
.search-input {
  width: 100%;
  padding: 7px 11px;
  background: var(--n600);
  border: 1px solid var(--n500);
  border-radius: var(--r);
  color: var(--n50);
  font-family: var(--font-body);
  font-size: .82rem;
  outline: none;
  transition: border-color .18s;
}
.search-input:focus { border-color: var(--p300); }
.search-input::placeholder { color: var(--n300); }

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.prog-wrap { margin-top: 5px; }
.prog-bar  { height: 3px; background: var(--n500); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--n200); border-radius: 2px; }

/* ── BAR CHART ───────────────────────────────────────────────── */
.bar-chart { display: flex; flex-direction: row; align-items: flex-end; gap: 7px; height: 110px; padding: 10px 17px 14px; overflow: hidden; }
.bar-col   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bar       { width: 100%; background: var(--n500); border-radius: 3px 3px 0 0; min-height: 3px; }
.bar.cur   { background: var(--p400); }
.bar-lbl   { font-size: .67rem; color: var(--n300); }
.bar-lbl.cur { color: var(--p200); }

/* ── FILE GRID ───────────────────────────────────────────────── */
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; }
.file-card {
  background: var(--n750);
  border: 1px solid var(--n500);
  border-radius: var(--r);
  padding: 13px;
  transition: border-color .18s;
}
.file-card:hover { border-color: var(--n400); }
.file-card.has-update { border-color: var(--n400); }
.file-name    { font-size: .84rem; font-weight: 500; color: #fff; margin-bottom: 3px; }
.file-meta    { font-size: .73rem; color: var(--n200); margin-bottom: 9px; line-height: 1.5; }
.file-upd     { color: var(--p200); }
.file-actions { display: flex; gap: 7px; align-items: center; }
.file-disabled { opacity: .45; pointer-events: none; }

/* ── CART ────────────────────────────────────────────────────── */
.cart-summary {
  padding: 14px 17px;
  border-top: 1px solid var(--n500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--n750);
}
.cart-total-lbl { font-size: .72rem; color: var(--n200); margin-bottom: 2px; }
.cart-total-val { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; color: #fff; }
.cart-actions   { display: flex; gap: 8px; align-items: center; }

/* ── TICKET THREAD ───────────────────────────────────────────── */
.msg       { margin-bottom: 12px; }
.msg-from  { font-size: .72rem; color: var(--n300); margin-bottom: 4px; font-weight: 500; }
.msg-bubble {
  font-size: .82rem; color: var(--n100);
  background: var(--n600); border: 1px solid var(--n500);
  border-radius: 0 var(--r) var(--r) var(--r);
  padding: 9px 13px; line-height: 1.65;
}
.msg-admin {
  background: var(--n750); border-color: var(--n500);
  border-radius: var(--r) 0 var(--r) var(--r);
  margin-left: 15%;
}

/* ── CHANGELOG ───────────────────────────────────────────────── */
.cl-entry  { padding: 13px 17px 13px 20px; border-bottom: 1px solid var(--n500); box-shadow: inset 3px 0 0 var(--n500); transition: box-shadow .15s; }
.cl-entry:last-child { border-bottom: none; }
.cl-entry:hover { box-shadow: inset 3px 0 0 var(--p300); }
.cl-header { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.cl-module { font-size: .86rem; font-weight: 600; color: #fff; }
.cl-date   { font-size: .73rem; color: var(--n200); margin-left: auto; }
.cl-item   { font-size: .79rem; color: var(--n200); padding-left: 13px; position: relative; line-height: 1.9; }
.cl-item::before { content: '·'; position: absolute; left: 4px; color: var(--n300); }

/* ── TOGGLE ──────────────────────────────────────────────────── */
.toggle {
  width: 36px; height: 19px;
  background: var(--n400);
  border-radius: 10px;
  position: relative; cursor: pointer;
  flex-shrink: 0; transition: background .2s;
}
.toggle.on { background: var(--p400); }
.toggle-k  {
  position: absolute; width: 13px; height: 13px;
  background: #fff; border-radius: 50%;
  top: 3px; left: 3px; transition: left .2s;
  pointer-events: none;
}
.toggle.on .toggle-k { left: 20px; }

/* ── PROFILE ─────────────────────────────────────────────────── */
.profile-av {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--n500); border: 1px solid var(--n400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--n100);
  margin-bottom: 14px;
  text-transform: uppercase;
  line-height: 1;
  overflow: visible;
}

/* ── HOME PAGE ───────────────────────────────────────────────── */
.home-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,17,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n600);
  padding: 0 40px; /* ← increase from 24px */
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; /* ← add this */
}
.home-nav-logo { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.3; padding-bottom: 1px; }
.home-nav-logo em { font-style: normal; color: var(--p200); }
.home-nav-links { display: flex; align-items: center; gap: 32px; }
.home-nav-links a { font-size: .84rem; color: var(--n200); text-decoration: none; transition: color .15s; }
.home-nav-links a:hover { color: #fff; }

.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: var(--n800);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -5%, rgba(90,63,168,.28) 0%, transparent 70%),
    url('/assets/images/banner.webp') center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12,12,15,.65);
}
.hero-content { position: relative; max-width: 760px; overflow: visible; }
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  overflow: visible;
}
.hero-title em { font-style: normal; color: var(--p200); }
.hero-sub { font-size: 1.05rem; color: var(--n150); line-height: 1.7; margin-bottom: 34px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn-primary {
  padding: 11px 28px 13px;
  background: var(--p400);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .18s;
  text-decoration: none;
  letter-spacing: .01em;
  line-height: 1.4;
  display: inline-flex; align-items: center;
}
.hero-btn-primary:hover { background: var(--p300); text-decoration: none; color: #fff; }
.hero-btn-ghost {
  padding: 11px 28px 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-family: var(--font-body);
  cursor: pointer; transition: all .18s;
  text-decoration: none;
  line-height: 1.4;
  display: inline-flex; align-items: center;
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }

.home-section { padding: 80px 0; }
.home-section-alt { background: var(--n750); }
.home-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: .72rem; font-weight: 600;
  color: var(--p200);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.25;
  padding-bottom: 2px;
}
.section-sub { font-size: .95rem; color: var(--n200); line-height: 1.7; max-width: 540px; margin-bottom: 48px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--n400); }
.feature-icon {
  width: 40px; height: 40px;
  background: rgba(90,63,168,.15);
  border: 1px solid rgba(90,63,168,.25);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--p200); }
.feature-title { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.feature-desc  { font-size: .82rem; color: var(--n200); line-height: 1.65; }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.pricing-card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.pricing-card:hover { border-color: var(--n400); transform: translateY(-2px); }
.pricing-name  { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.pricing-desc  { font-size: .78rem; color: var(--n300); line-height: 1.55; margin-bottom: 14px; min-height: 40px; }
.pricing-price { font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.pricing-price span { font-size: .8rem; font-weight: 400; color: var(--n300); }
.pricing-features { list-style: none; margin-bottom: 20px; flex: 1; }
.pricing-features li { font-size: .78rem; color: var(--n200); padding: 4px 0; padding-left: 16px; position: relative; line-height: 1.5; }
.pricing-features li::before { content: '·'; position: absolute; left: 4px; color: var(--n400); }
.pricing-btn {
  display: block; text-align: center;
  padding: 9px;
  background: rgba(90,63,168,.15);
  border: 1px solid rgba(90,63,168,.3);
  border-radius: var(--r);
  color: var(--p200);
  font-size: .82rem; font-weight: 500;
  text-decoration: none;
  transition: all .18s;
  margin-top: auto;
}
.pricing-btn:hover { background: rgba(90,63,168,.25); border-color: var(--p300); color: var(--p100); text-decoration: none; }

/* Demo banner */
.demo-banner {
  background: var(--p600);
  border: 1px solid rgba(124,95,196,.3);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 0;
}
.demo-label { font-size: .72rem; font-weight: 600; color: var(--p200); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.demo-title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.demo-meta  { font-size: .8rem; color: rgba(255,255,255,.55); }
.demo-meta code { font-family: var(--font-mono); background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 3px; color: rgba(255,255,255,.8); }

/* Emulator compat badges */
.compat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.compat-badge {
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 14px;
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: 20px;
  color: var(--n150);
}

/* Contact section */
.contact-card {
  background: var(--n700);
  border: 1px solid var(--n500);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 480px;
}
.contact-discord {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background: var(--n600);
  border: 1px solid var(--n400);
  padding: 10px 18px;
  border-radius: var(--r);
  margin: 14px 0;
  display: inline-block;
}
.contact-hours { font-size: .82rem; color: var(--n300); line-height: 1.9; }

/* Footer */
.home-footer {
  background: var(--n900);
  border-top: 1px solid var(--n700);
  padding: 28px 24px;
  text-align: center;
  font-size: .78rem;
  color: var(--n400);
}

/* Promo bar */
.promo-bar {
  background: var(--n700);
  border-bottom: 1px solid var(--n600);
  padding: 10px 24px;
  text-align: center;
  font-size: .8rem;
  color: var(--n300);
  margin-top: 56px; /* push below fixed nav */
}
.promo-bar.no-promo { background: var(--n750); color: var(--n400); font-style: italic; }