/* =====================================================================
   PIXORA — Design System
   Dark editorial · Instrument Serif + Archivo + JetBrains Mono
   Signature accent: electric lime
   ===================================================================== */

:root {
  --bg:        #0A0A0B;
  --bg-2:      #101012;
  --surface:   #141416;
  --surface-2: #1A1A1D;
  --line:      rgba(242,238,228,0.10);
  --line-2:    rgba(242,238,228,0.18);
  --cream:     #F3EFE6;
  --muted:     #928D82;
  --muted-2:   #6E6A62;
  --lime:      #CDFF4B;
  --lime-dim:  #A9D93E;
  --on-accent: #0A0A0B;
  --accent-soft: rgba(205,255,75,0.12);
  --accent-line: rgba(205,255,75,0.32);
  --accent-glow: rgba(205,255,75,0.22);
  --radius:    16px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-ui:      'Archivo', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

::selection { background: var(--lime); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--lime); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); display: inline-block; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
}
.brand { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 14px var(--lime); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--cream); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--lime); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); transition: color 0.3s; }
.cart-link:hover { color: var(--cream); }
.cart-badge {
  position: absolute; top: -8px; right: -12px; background: var(--lime); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; }

/* Hamburger */
.nav-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color 0.3s;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-toggle.active { border-color: var(--lime); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 34px; opacity: 0; visibility: hidden;
  transform: translateY(-12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 2.2rem; color: var(--cream); padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { font-family: var(--font-ui); font-size: 0.95rem; border-bottom: none; }
body.menu-open { overflow: hidden; }

/* Mobile bottom navbar */
.bottom-nav { display: none; }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: stretch;
}
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--muted); transition: color 0.3s; }
.bn-item svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.bn-item span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bn-item.active { color: var(--lime); }
.bn-item:active { transform: scale(0.94); }
.bn-icon-wrap { position: relative; display: inline-flex; }
.bn-badge {
  position: absolute; top: -6px; right: -9px; background: var(--lime); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; min-width: 15px; height: 15px;
  border-radius: 8px; display: grid; place-items: center; padding: 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500;
  padding: 14px 26px; border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
  will-change: transform;
}
.btn-primary { background: var(--lime); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--cream); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: 190px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; right: -5%; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 9rem); line-height: 0.92; letter-spacing: -0.02em;
  margin: 30px 0 0;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero-sub {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 46px; flex-wrap: wrap;
}
.hero-sub p { max-width: 460px; color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 14px; }

.hero-media {
  position: relative; margin-top: 70px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16/8;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 72%, transparent), transparent 55%);
}
.hero-media .tag {
  position: absolute; z-index: 3; bottom: 26px; left: 26px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cream);
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line-2);
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.4rem); line-height: 1; }
.stat .n em { font-style: italic; color: var(--lime); }
.stat .l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 10px; }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; margin-top: 100px; overflow: hidden; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 2rem; color: var(--muted); display: inline-flex; align-items: center; gap: 60px; }
.marquee span::after { content: "✦"; color: var(--lime); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SECTION SHELL
   ===================================================================== */
.section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; }
.section-head h2 em { font-style: italic; color: var(--lime); }
.section-head p { color: var(--muted); max-width: 400px; }

/* =====================================================================
   PRODUCT GRID
   ===================================================================== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.5s;
  display: flex; flex-direction: column; will-change: transform;
}
.card:hover { transform: translateY(-8px); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.7s; filter: saturate(0.85); }
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1); }
.card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; font-weight: 700;
  background: var(--lime); color: var(--on-accent); padding: 5px 10px; border-radius: 6px;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.card-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price .now { font-family: var(--font-mono); font-size: 1.02rem; color: var(--cream); font-weight: 500; }
.price .was { font-size: 0.8rem; color: var(--muted-2); text-decoration: line-through; }
.rating { font-family: var(--font-mono); font-size: 0.76rem; color: var(--lime); display: flex; align-items: center; gap: 5px; }
.save-badge { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--lime); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 6px; }
.pd-price .save-badge { font-size: 0.8rem; padding: 4px 12px; }

/* =====================================================================
   MANIFESTO / CHAPTERS
   ===================================================================== */
.chapters { border-top: 1px solid var(--line); }
.chapter {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 40px;
  padding: 60px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.chapter .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--lime); letter-spacing: 0.1em; }
.chapter h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.chapter p { color: var(--muted); font-size: 1rem; max-width: 440px; }

/* =====================================================================
   CATEGORY PILLS
   ===================================================================== */
.cat-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.cat-pill {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted);
  transition: all 0.35s var(--ease);
}
.cat-pill:hover, .cat-pill.active { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }
.filter-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); align-self: center; margin-right: 4px; }
.cat-pill.tech { border-style: dashed; }
.cat-pill.tech.active { border-style: solid; }
.card-tech { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 500; background: rgba(10,10,11,0.6); backdrop-filter: blur(6px); color: var(--lime); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 100px; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.band { position: relative; padding: 130px 0; text-align: center; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, var(--accent-glow), transparent 60%); }
.band-inner { position: relative; z-index: 2; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; }
.band h2 em { font-style: italic; color: var(--lime); }
.band p { color: var(--muted); max-width: 480px; margin: 26px auto 36px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--lime); }
.footer .brand { margin-bottom: 18px; }
.footer .about { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.06em; }

/* =====================================================================
   PAGE HEADER (interior)
   ===================================================================== */
.page-head { padding: 160px 0 40px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.01em; }
.page-head h1 em { font-style: italic; color: var(--lime); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 16px; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--lime); }

/* =====================================================================
   PRODUCT DETAIL
   ===================================================================== */
.pd { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; padding-top: 130px; }
.pd-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); position: sticky; top: 100px; }
.pd-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-info h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem,4.5vw,3.8rem); line-height: 1.02; letter-spacing: -0.01em; margin: 14px 0 20px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 24px 0; }
.pd-price .now { font-family: var(--font-mono); font-size: 1.8rem; color: var(--lime); }
.pd-price .was { color: var(--muted-2); text-decoration: line-through; }
.pd-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 30px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 30px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-meta .item .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.pd-meta .item .v { font-size: 1rem; margin-top: 5px; }

/* =====================================================================
   FORMS / CARDS PANELS
   ===================================================================== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.auth-wrap { max-width: 460px; margin: 0 auto; padding-top: 150px; padding-bottom: 100px; }
.auth-wrap h1 { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.auth-wrap .sub { color: var(--muted); margin-bottom: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--cream); font-family: var(--font-ui); font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); }
.field textarea { resize: vertical; min-height: 120px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 0.9rem; }
.auth-alt a { color: var(--lime); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 22px; border: 1px solid; }
.alert-success { background: var(--accent-soft); border-color: var(--accent-line); color: var(--lime); }
.alert-error { background: rgba(255,90,90,0.08); border-color: rgba(255,90,90,0.3); color: #ff8a8a; }
.alert-info { background: rgba(255,255,255,0.04); border-color: var(--line-2); color: var(--muted); }

/* =====================================================================
   CART / CHECKOUT
   ===================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; padding-top: 40px; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-row .t { font-family: var(--font-display); font-size: 1.3rem; }
.cart-row .p { font-family: var(--font-mono); color: var(--lime); }
.cart-row .rm { color: var(--muted-2); font-size: 0.82rem; transition: color 0.3s; }
.cart-row .rm:hover { color: #ff8a8a; }
.summary .line { display: flex; justify-content: space-between; padding: 12px 0; color: var(--muted); font-size: 0.95rem; }
.summary .total { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 10px; font-family: var(--font-display); font-size: 1.6rem; }
.summary .total span:last-child { color: var(--lime); }
.coupon-box { display: flex; gap: 8px; margin: 8px 0 6px; }
.coupon-box input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 100px;
  padding: 10px 16px; color: var(--cream); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.coupon-box input:focus { outline: none; border-color: var(--lime); }
.pay-opt { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px; cursor: pointer; transition: border-color 0.3s; }
.pay-opt:hover, .pay-opt.active { border-color: var(--lime); }
.pay-opt input { margin-top: 4px; accent-color: var(--lime); }
.pay-opt .n { font-weight: 500; }
.pay-opt .d { font-size: 0.84rem; color: var(--muted); }
.empty { text-align: center; padding: 100px 0; color: var(--muted); }
.empty .big { font-family: var(--font-display); font-size: 2.4rem; color: var(--cream); margin-bottom: 12px; }

/* =====================================================================
   ACCOUNT
   ===================================================================== */
.acc-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding-top: 40px; }
.acc-side { position: sticky; top: 100px; }
.acc-side .u { font-family: var(--font-display); font-size: 1.8rem; }
.acc-side .em { color: var(--muted); font-size: 0.88rem; font-family: var(--font-mono); }
.acc-nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.order-head .inv { font-family: var(--font-mono); font-size: 0.86rem; }
.badge-status { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 100px; text-transform: uppercase; }
.badge-paid { background: var(--accent-soft); color: var(--lime); }
.badge-pending { background: rgba(255,190,60,0.12); color: #ffcf6b; }
.badge-cancelled { background: rgba(255,90,90,0.12); color: #ff8a8a; }
.dl-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--surface); border-right: 1px solid var(--line); padding: 30px 22px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { font-size: 1.4rem; margin-bottom: 40px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 12px 16px; border-radius: 10px; color: var(--muted); font-size: 0.92rem; transition: all 0.3s; }
.admin-nav a:hover, .admin-nav a.active { background: var(--surface-2); color: var(--cream); }
.admin-main { padding: 40px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.admin-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 40px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.kpi .n { font-family: var(--font-display); font-size: 2.4rem; color: var(--lime); }
.kpi .l { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: middle; }
.table tr:hover td { background: var(--surface); }
.table img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; }
.table-actions { display: flex; gap: 10px; }
.table-actions a, .table-actions button { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); transition: color 0.3s; }
.table-actions a:hover { color: var(--lime); }
.table-actions .del:hover { color: #ff8a8a; }
.admin-login { max-width: 420px; margin: 0 auto; padding-top: 120px; }

/* =====================================================================
   REVEAL ANIMATION HOOKS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { position: relative; top: 0; }
  .cart-layout, .acc-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .chapter { grid-template-columns: 60px 1fr; }
  .chapter p { grid-column: 2; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .brand { font-size: 1.45rem; }
  .nav-cta { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 74px 0; }
  .hero { padding: 128px 0 50px; }
  .hero-media { margin-top: 46px; aspect-ratio: 4/3; border-radius: 18px; }
  .section-head { margin-bottom: 40px; }
  .section-head form { width: 100%; }
  .section-head form input { flex: 1; min-width: 0 !important; }
  .marquee { margin-top: 60px; padding: 18px 0; }
  .marquee span { font-size: 1.5rem; gap: 40px; }
  .chapter { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .chapter p { grid-column: 1; }
  .pd { gap: 34px; }
  .pd-meta { gap: 20px; }
  .cart-row { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .cart-row img { width: 64px; height: 52px; }
  .cart-row .t { font-size: 1.05rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .band { padding: 90px 0; }
  .table { font-size: 0.82rem; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .admin-main { padding: 24px 18px; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .footer { padding-bottom: 30px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
}
