/* =====================================================================
   Tapp2 — Shared Stylesheet
   Restaurant NFC ordering & engagement platform
   Theme: dark navy + gold accent + teal glow (matches brand hero)
   ===================================================================== */

:root {
  /* Core palette */
  --bg:            #0b1119;   /* page background (deep navy) */
  --bg-2:          #0e1622;   /* section alt background */
  --panel:         #131e2b;   /* card / panel */
  --panel-2:       #18263650; /* translucent panel */
  --panel-hi:      #1b2a3b;   /* raised card */
  --line:          #24384d;   /* borders / dividers */
  --line-soft:     #1c2a3a;

  /* Text */
  --text:          #eef4fb;   /* primary text */
  --muted:         #9db0c4;   /* secondary text */
  --muted-2:       #6c8098;   /* faint text */

  /* Brand accents */
  --gold:          #f5c542;   /* primary accent (buttons, highlights) */
  --gold-2:        #ffd873;   /* lighter gold */
  --gold-deep:     #d9a916;
  --teal:          #35d0cf;   /* logo glow / secondary accent */
  --teal-2:        #6ff0ef;
  --teal-deep:     #1a9d9c;

  /* Status */
  --green:         #37c97f;
  --amber:         #f5a623;
  --red:           #ef5b5b;
  --blue:          #4a9cf0;

  /* Effects */
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --shadow:        0 18px 40px -18px rgba(0,0,0,.65);
  --shadow-gold:   0 10px 30px -10px rgba(245,197,66,.45);
  --shadow-teal:   0 0 34px -4px rgba(53,208,207,.55);
  --ring:          0 0 0 3px rgba(245,197,66,.25);

  --header-h:      74px;
  --maxw:          1180px;
  --font:          'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(53,208,207,.09), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(245,197,66,.07), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-sm { padding: 54px 0; }
.bg-alt { background: var(--bg-2); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.logo .logo-mark {
  width: 36px; height: 36px; flex: none;
  filter: drop-shadow(0 0 10px rgba(53,208,207,.55));
}
.logo .logo-word b { color: var(--teal); }
/* legacy inline-svg mark (still used if present) */
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #163041, #0c1a24);
  box-shadow: var(--shadow-teal); flex: none;
}
.logo .mark svg { width: 22px; height: 22px; }
.logo b { color: var(--gold); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(9,15,22,.78);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); transition: .18s;
}
.nav a:hover { color: #fff; background: #ffffff0d; }
.nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: #fff;
  width: 42px; height: 42px; border-radius: 10px; font-size: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; transition: .18s; white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #201a05; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(245,197,66,.6); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal { background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #04211f; }
.btn-teal:hover { transform: translateY(-1px); box-shadow: var(--shadow-teal); }
.btn-outline-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #201a05; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.dashboard-cta { padding: 10px 20px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 10px; background: transparent; }
.btn.dashboard-cta:hover { background: var(--gold); color: #201a05; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 66px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold); }
.hero .lead { font-size: 19px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-badge .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #ffffff0f; color: var(--gold); }
.hero-badge .ico svg { width: 18px; height: 18px; }

/* Hero phone visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6%;
  background: radial-gradient(circle at 60% 40%, rgba(53,208,207,.18), transparent 62%);
  filter: blur(10px); border-radius: 40px;
}
.phone {
  position: relative; width: 250px; padding: 22px 16px 26px; border-radius: 32px;
  background: linear-gradient(160deg, #16232f, #0c141d);
  border: 1px solid #2a3d50; box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), var(--shadow-teal);
}
.phone .notch { width: 90px; height: 6px; border-radius: 6px; background: #33475b; margin: 0 auto 18px; }
.phone .brand { text-align: center; color: var(--gold); font-weight: 800; letter-spacing: .12em; font-size: 15px; margin-bottom: 4px; }
.phone .brand small { display:block; color: var(--muted-2); font-weight:600; letter-spacing:.2em; font-size:9px; }
.phone .crown { text-align:center; color: var(--gold); font-size: 22px; margin-bottom: 6px; }
.phone-menu { display: grid; gap: 10px; margin-top: 16px; }
.phone-menu button {
  background: #0e1a25; border: 1px solid #2b3f52; color: #dce6f0;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.phone-menu button:first-child { background: linear-gradient(180deg,var(--gold-2),var(--gold)); color:#201a05; border:none; }
.phone-social { display:flex; justify-content:center; gap:14px; margin-top:16px; color: var(--teal); font-size: 15px; }
.tap-disc {
  position: absolute; bottom: 6%; left: -6%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1c3a44, #0b1c22);
  border: 2px solid #2f5860; display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-teal); color: var(--teal-2);
}
.tap-disc b { font-weight: 800; letter-spacing: .12em; font-size: 15px; display:block; }
.tap-disc small { font-size: 10px; letter-spacing:.16em; color: var(--muted); }

/* ---------- Trust bar ---------- */
.trust { padding: 34px 0 10px; text-align: center; }
.trust p { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--muted-2); font-weight: 700; margin-bottom: 22px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; opacity: .8; }
.trust-logos span { font-weight: 800; letter-spacing: .1em; color: #c9d5e2; font-size: 17px; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), #0f1a26);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px; transition: .2s;
}
.card.hover:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1c3340, #10202b); color: var(--teal);
  box-shadow: inset 0 0 0 1px #2b4b52; margin-bottom: 16px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Step numbers */
.step .num {
  width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center;
  font-weight: 800; font-size: 18px; color: #201a05;
  background: linear-gradient(180deg,var(--gold-2),var(--gold)); margin-bottom: 16px;
}

/* Section heading block */
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price {
  background: linear-gradient(180deg,var(--panel),#0f1a26); border:1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px; display:flex; flex-direction: column;
}
.price.featured { border-color: var(--gold); box-shadow: var(--shadow-gold); position: relative; }
.price.featured::before {
  content:"Most popular"; position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background: linear-gradient(180deg,var(--gold-2),var(--gold)); color:#201a05;
  font-size: 11.5px; font-weight:800; letter-spacing:.08em; padding: 5px 14px; border-radius: 20px;
}
.price h3 { font-size: 20px; margin-bottom: 4px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price .desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.price ul { display:grid; gap: 11px; margin: 20px 0 26px; }
.price li { display:flex; gap: 10px; align-items:flex-start; font-size: 14.5px; color: #d4dfea; }
.price li svg { width: 18px; height: 18px; color: var(--teal); flex:none; margin-top: 2px; }
.price .btn { margin-top: auto; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #0d1721; border: 1px solid var(--line); color: var(--text);
  font-size: 14.5px; font-family: inherit; transition: .16s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #08101a; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer-social { display:flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display:grid; place-items:center; background:#ffffff0d; color:#fff; }
.footer-social a:hover { color: var(--teal); }
.footer-bottom { display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 22px; color: var(--muted-2); font-size: 13px; }

/* ---------- Badges / chips ---------- */
.chip { display:inline-flex; align-items:center; gap:6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.green { background: rgba(55,201,127,.14); color: var(--green); }
.chip.amber { background: rgba(245,166,35,.15); color: var(--amber); }
.chip.red   { background: rgba(239,91,91,.15); color: var(--red); }
.chip.blue  { background: rgba(74,156,240,.15); color: var(--blue); }
.chip.gold  { background: rgba(245,197,66,.15); color: var(--gold); }
.chip.teal  { background: rgba(53,208,207,.15); color: var(--teal); }
.chip.gray  { background: #ffffff12; color: var(--muted); }

/* =====================================================================
   APP LAYOUT (dashboard + admin)
   ===================================================================== */
.app { display: grid; grid-template-columns: 254px 1fr; min-height: 100vh; }
.sidebar {
  background: #0a121c; border-right: 1px solid var(--line-soft);
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar .logo { margin: 4px 8px 22px; }
.side-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 18px 10px 8px; font-weight: 700; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 14.5px; transition: .15s; margin-bottom: 2px;
}
.side-nav a svg { width: 19px; height: 19px; flex: none; }
.side-nav a:hover { background: #ffffff0a; color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, rgba(245,197,66,.16), transparent); color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.sidebar-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line-soft); }
.user-pill { display:flex; align-items:center; gap: 11px; }
.avatar { width: 38px; height: 38px; border-radius: 10px; display:grid; place-items:center; font-weight:800; color:#201a05; background: linear-gradient(180deg,var(--gold-2),var(--gold)); flex:none; }
.user-pill small { display:block; color: var(--muted-2); font-size: 12px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; border-bottom: 1px solid var(--line-soft); background: rgba(9,15,22,.7);
  backdrop-filter: blur(10px); display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 19px; margin: 0; }
.topbar .spacer { margin-left: auto; }
.search {
  display:flex; align-items:center; gap:9px; background:#0d1721; border:1px solid var(--line);
  padding: 9px 13px; border-radius: 10px; color: var(--muted); min-width: 260px;
}
.search input { background:none; border:none; color:#fff; outline:none; font-size:14px; width:100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; background:#0d1721; border:1px solid var(--line); color:#fff; display:grid; place-items:center; position: relative; }
.icon-btn .dot { position:absolute; top:9px; right:10px; width:8px; height:8px; border-radius:50%; background: var(--red); }
.app-body { padding: 26px; flex: 1; }
.mobile-menu-btn { display:none; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.stat { background: linear-gradient(180deg,var(--panel),#0f1a26); border:1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; }
.stat .top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 12px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight:600; }
.stat .ico { width: 40px; height:40px; border-radius:11px; display:grid; place-items:center; background:#ffffff0d; }
.stat .ico svg { width: 20px; height: 20px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat .delta { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }

/* Panels */
.panel { background: linear-gradient(180deg,var(--panel),#0f1a26); border:1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.panel-head { display:flex; align-items:center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 13px 18px; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: #d7e1ec; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #ffffff05; }
.table .strong { color: #fff; font-weight: 700; }

/* Order/menu list */
.list-row { display:flex; align-items:center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 700; color: #fff; }
.list-row .sub { color: var(--muted); font-size: 13px; }

/* Simple bar chart */
.bars { display:flex; align-items:flex-end; gap: 12px; height: 200px; padding-top: 10px; }
.bars .bar { flex:1; display:flex; flex-direction: column; align-items:center; gap: 8px; height: 100%; justify-content:flex-end; }
.bars .bar span.fill { width: 100%; max-width: 42px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg,var(--teal-2),var(--teal-deep)); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bars .bar:nth-child(even) span.fill { background: linear-gradient(180deg,var(--gold-2),var(--gold-deep)); }
.bars .bar small { color: var(--muted-2); font-size: 12px; }

.grid-app { display: grid; gap: 22px; }
.two-col { grid-template-columns: 1.6fr 1fr; }
.section-title { display:flex; align-items:center; gap:12px; margin: 4px 0 16px; }
.section-title h2 { font-size: 18px; margin: 0; }
.section-title .spacer { margin-left:auto; }

/* Table map (venue tables grid) */
.table-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px,1fr)); gap: 14px; }
.tbl {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center;
  background: #0e1925; position: relative; transition: .16s; cursor: pointer;
}
.tbl:hover { border-color: var(--gold); }
.tbl .n { font-size: 22px; font-weight: 800; }
.tbl .st { font-size: 12px; font-weight: 700; margin-top: 4px; }
.tbl.free   { border-color: #23402f; } .tbl.free .st { color: var(--green); }
.tbl.active { border-color: var(--gold); box-shadow: var(--shadow-gold); } .tbl.active .st { color: var(--gold); }
.tbl.bill   { border-color: #3a2f1a; } .tbl.bill .st { color: var(--amber); }

/* ---------- Customer order page ---------- */
.order-wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 120px; }
.venue-hero {
  border-radius: 0 0 24px 24px; padding: 30px 24px 26px; text-align:center;
  background: linear-gradient(160deg, #16232f, #0c141d); border:1px solid var(--line-soft); border-top:none;
  box-shadow: var(--shadow);
}
.venue-hero .crown { color: var(--gold); font-size: 30px; }
.venue-hero h1 { font-size: 26px; margin: 6px 0 2px; letter-spacing: .04em; }
.venue-hero .tbl-badge { display:inline-flex; gap:7px; align-items:center; margin-top:12px; background:#ffffff10; padding:6px 14px; border-radius:999px; font-size:13px; font-weight:700; color: var(--teal); }
.order-tabs { display:flex; gap:8px; margin: 20px 0; overflow-x:auto; padding-bottom: 4px; }
.order-tabs button { flex:none; padding: 9px 16px; border-radius: 999px; background:#0e1925; border:1px solid var(--line); color: var(--muted); font-weight:700; font-size:13.5px; }
.order-tabs button.active { background: linear-gradient(180deg,var(--gold-2),var(--gold)); color:#201a05; border:none; }
.menu-cat h3 { font-size: 15px; color: var(--teal); letter-spacing:.08em; text-transform:uppercase; margin: 22px 0 12px; }
.menu-item { display:flex; gap: 14px; align-items:center; padding: 14px; border:1px solid var(--line-soft); border-radius: 14px; background: var(--panel); margin-bottom: 12px; }
.menu-item .info { flex:1; min-width:0; }
.menu-item .info h4 { margin:0 0 3px; font-size: 15.5px; }
.menu-item .info p { margin:0; color: var(--muted); font-size: 13px; }
.menu-item .price-tag { font-weight: 800; color: var(--gold); font-size: 15px; }
.qty { display:flex; align-items:center; gap:10px; }
.qty button { width: 32px; height: 32px; border-radius: 9px; background:#0e1925; border:1px solid var(--line); color:#fff; font-size:17px; font-weight:700; display:grid; place-items:center; }
.qty button.add { background: linear-gradient(180deg,var(--gold-2),var(--gold)); color:#201a05; border:none; }
.qty span { min-width: 18px; text-align:center; font-weight:700; }

.cart-bar {
  position: fixed; left:50%; transform: translateX(-50%); bottom: 18px; width: min(520px, calc(100% - 32px));
  background: linear-gradient(180deg,#182635,#101b27); border:1px solid var(--gold);
  border-radius: 16px; padding: 14px 18px; display:flex; align-items:center; gap:14px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.8); z-index: 60;
}
.cart-bar .grow { flex:1; }
.cart-bar .count { color: var(--muted); font-size: 13px; }
.cart-bar .total { font-size: 20px; font-weight: 800; }

/* Powered by (guest page) */
.powered-by { display:flex; align-items:center; justify-content:center; gap:7px; margin:26px 0 6px; color: var(--muted-2); font-size: 13px; font-weight:600; }
.powered-by .logo-mark { filter: drop-shadow(0 0 6px rgba(53,208,207,.5)); }
.powered-by b { color:#fff; }

/* Review stars */
.stars { display:flex; gap:6px; font-size: 30px; color: #33475b; }
.stars .s { cursor:pointer; transition:.12s; }
.stars .s.on { color: var(--gold); }

/* Toast */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; display:flex; flex-direction:column; gap:10px; z-index: 200; }
.toast {
  background: #16232f; border:1px solid var(--line); border-left: 3px solid var(--green);
  padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; font-weight:600;
  min-width: 240px; animation: slideIn .25s ease;
}
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform:none; } }

/* Modal */
.modal-backdrop { position: fixed; inset:0; background: rgba(4,8,13,.72); backdrop-filter: blur(3px); display:none; place-items:center; z-index: 120; padding: 20px; }
.modal-backdrop.open { display:grid; }
.modal { width: min(520px, 100%); background: linear-gradient(180deg,var(--panel-hi),#0f1a26); border:1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow:hidden; }
.modal-head { display:flex; align-items:center; padding: 18px 22px; border-bottom:1px solid var(--line-soft); }
.modal-head h3 { margin:0; font-size:17px; }
.modal-head .x { margin-left:auto; background:none; border:none; color:var(--muted); font-size:24px; line-height:1; }
.modal-body { padding: 22px; max-height: 70vh; overflow-y:auto; }
.modal-foot { padding: 16px 22px; border-top:1px solid var(--line-soft); display:flex; gap: 10px; justify-content:flex-end; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display:grid; place-items:center; padding: 40px 20px; }
.auth-card { width: min(420px,100%); background: linear-gradient(180deg,var(--panel),#0f1a26); border:1px solid var(--line-soft); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-card .logo { justify-content:center; margin-bottom: 8px; }
.auth-card h1 { text-align:center; font-size: 23px; margin-bottom: 4px; }
.auth-card .sub { text-align:center; color: var(--muted); font-size:14px; margin-bottom: 24px; }
.auth-alt { text-align:center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--gold); font-weight:700; }
.hint-box { background:#0e1925; border:1px dashed var(--line); border-radius:10px; padding:11px 14px; font-size:12.5px; color:var(--muted); margin-top: 16px; }

/* Utility */
.flex { display:flex; } .items-center { align-items:center; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.mt-2 { margin-top: 10px; } .mt-4 { margin-top: 22px; } .mb-0 { margin-bottom: 0; }
.divider { height:1px; background: var(--line-soft); margin: 20px 0; }
.pill-row { display:flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-top: 10px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items:center; margin-left:auto; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: #0a121c; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
  }
  .nav.open a { width: 100%; }
  /* App: collapse sidebar */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 100; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.7); }
  .mobile-menu-btn { display: grid; }
  .search { min-width: 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 60px 0; }
  .topbar .search { display:none; }
}
