/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #0b0c10;
  --panel: #111318;
  --card: #151823;
  --text: #e7eaf0;
  --muted: #a9b0bf;
  --primary: #7c5cff;
  --primary-2: #5d43cc;
  --success: #2bb673;
  --danger: #ff5c80;
  --border: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --panel: #ffffff;
    --card: #ffffff;
    --text: #1c2430;
    --muted: #6b7280;
    --primary: #6b5bff;
    --primary-2: #5748cc;
    --success: #1ea86a;
    --danger: #ff3f6c;
    --border: rgba(0,0,0,.08);
    --shadow: 0 10px 30px rgba(0,0,0,.1);
  }
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #6b7280;
  --primary: #6b5bff;
  --primary-2: #5748cc;
  --success: #1ea86a;
  --danger: #ff3f6c;
  --border: rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.1);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Tahoma, sans-serif;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(124,92,255,.15), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(43,182,115,.12), transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 5vw; background: var(--panel);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.1) blur(6px);
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .logo { color: var(--primary); }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; }

.nav { display: none; gap: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }

.actions { display: flex; align-items: center; gap: 10px; }
.link { color: var(--text); text-decoration: none; font-weight: 700; }
.icon-btn {
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: rgba(127,127,127,.08); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 20px; text-decoration: none; color: var(--text); }
.badge {
  position: absolute; top: -6px; left: -10px;
  font-size: 11px; background: var(--danger); color: #fff;
  border-radius: 999px; padding: 2px 6px; box-shadow: var(--shadow);
}

@media (min-width: 860px) { .nav { display: flex; }}

/* Hero */
.hero {
  text-align: center; padding: 64px 5vw 36px; margin-bottom: 6px;
}
.hero h1 { margin: 0; font-size: clamp(24px, 3.5vw, 42px); line-height: 1.3; }
.hero p { color: var(--muted); margin: 10px 0 22px; font-size: 1.05rem; }
.hero-actions { display: inline-flex; gap: 10px; }
.btn-hero { font-size: 1.05rem; padding: 14px 20px; }

/* Wallet */
.wallet-card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 16px; border-radius: 16px; box-shadow: var(--shadow);
  margin: 10px auto 26px;
}
.wallet-row { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
.wallet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 700px){
  .wallet-row { grid-template-columns: 1fr auto; }
}

/* Buttons */
.btn {
  appearance: none; border: none; cursor: pointer; border-radius: 12px;
  padding: 12px 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow); transition: transform .08s ease, filter .2s ease;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(127,127,127,.08); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .2px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text);
}
.chip-primary { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.35); }
.chip-success { background: rgba(43,182,115,.18); border-color: rgba(43,182,115,.35); }

/* Cards */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.card.popular { outline: 2px solid var(--primary); }
.card-head h3 { margin: 8px 0 6px; }
.price { font-size: 1.4rem; font-weight: 900; }
.price span { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.add-to-cart { width: 100%; margin-top: auto; }

/* Table */
.table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.t-head, .t-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0; }
.t-head > div, .t-row > div { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.t-head { background: rgba(127,127,127,.06); font-weight: 800; }
.t-row:last-child > div { border-bottom: none; }
.pricing-cta { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Cart / Checkout */
.cart-items { border: 1px dashed var(--border); border-radius: 14px; padding: 14px; background: var(--panel); min-height: 60px; }
.cart-items .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cart-items .row:last-child { border-bottom: none; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.total { font-weight: 900; }

.checkout form { margin-top: 18px; }
.checkout .two { display: grid; grid-template-columns: 1fr; gap: 10px; }
.checkout label { display: grid; gap: 6px; }
.checkout input, .contact-form input, .contact-form textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text);
}
.checkbox { display: flex; align-items: center; gap: 10px; }
@media (min-width: 700px){ .checkout .two { grid-template-columns: 1fr 1fr; }}

/* Legal and contact */
.legal h1 { margin-bottom: 6px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.contact-list.big li { margin: 8px 0; }
.contact-form { background: var(--panel); border: 1px solid var(--border); padding: 16px; border-radius: 12px; }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 1fr 1fr; }}

/* Footer */
.footer { margin-top: 54px; padding: 30px 0 10px; background: transparent; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.link-list, .contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 6px 0; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.newsletter button { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.copyright { text-align: center; color: var(--muted); margin-top: 18px; font-size: .9rem; }

/* Auth */
.auth { display: grid; place-items: center; min-height: 40vh; }
.auth-card { width: min(480px, 92%); background: var(--panel); border: 1px solid var(--border); padding: 18px; border-radius: 14px; }
.auth-card form label { display: grid; gap: 6px; margin-bottom: 10px; }

/* Scenic background */
.hero, #hero, .header-hero {background-image:url("assets/scene.svg");background-size:cover;background-position:center;}
