/* ============================================
   SpeedShop — Royal Gold Theme
   Palette: obsidian #0b0b12 / surface #14141d /
   gold #d4af37→#f5d76e / silver-white #eceaf2
   ============================================ */
@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/Vazirmatn-font-face.css');

:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --bg2: #0f0f18;
  --surface: #14141d;
  --surface2: #1a1a26;
  --border: #26263a;
  --gold: #d4af37;
  --gold2: #f5d76e;
  --gold-dim: rgba(212, 175, 55, .14);
  --text: #eceaf2;
  --muted: #9a98ab;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --gold-grad: linear-gradient(135deg, #b8912c 0%, #f5d76e 45%, #d4af37 70%, #9c7a1e 100%);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ec;
  --bg2: #ece9e0;
  --surface: #ffffff;
  --surface2: #f7f5ef;
  --border: #e2ddd0;
  --gold: #a8842c;
  --gold2: #8a6a1e;
  --gold-dim: rgba(168, 132, 44, .12);
  --text: #1d1b16;
  --muted: #6d685c;
  --shadow: 0 10px 30px rgba(60, 50, 20, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

/* smoky-gold ambient background like the logo */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(212, 175, 55, .10), transparent 60%),
    radial-gradient(700px 500px at 8% 25%, rgba(120, 110, 200, .07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(212, 175, 55, .07), transparent 60%);
}
[data-theme="light"] .bg-fx {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(168, 132, 44, .10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(168, 132, 44, .06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; width: 100%;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 14px; border: none;
  font-size: 15px; font-weight: 700; transition: all .25s;
  position: relative; overflow: hidden;
}
.btn-gold {
  background: var(--gold-grad); color: #1a1305;
  box-shadow: 0 6px 24px rgba(212, 175, 55, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212, 175, 55, .5); }
.btn-gold::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s infinite;
}
@keyframes shine { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold-dim); transform: translateY(-2px); }
.btn-danger { background: rgba(248, 113, 113, .14); color: var(--red); border: 1px solid rgba(248, 113, 113, .35); }
.btn-green { background: rgba(52, 211, 153, .14); color: var(--green); border: 1px solid rgba(52, 211, 153, .35); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-gold { border-color: rgba(212, 175, 55, .35); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.brand .gold-text { line-height: 1.2; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 2px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--muted);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: var(--gold-dim); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  transition: all .2s; font-size: 17px;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 70px 20px 50px; text-align: center; position: relative; }
.hero .logo-big {
  width: 190px; height: 190px; border-radius: 36px; object-fit: cover;
  box-shadow: 0 0 90px rgba(212, 175, 55, .35), var(--shadow);
  animation: float 5s ease-in-out infinite;
  border: 1px solid rgba(212, 175, 55, .4);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero h1 { font-size: clamp(26px, 5vw, 46px); margin: 28px 0 14px; font-weight: 900; line-height: 1.35; }
.hero p.lead { color: var(--muted); max-width: 700px; margin: 0 auto 30px; font-size: 16.5px; line-height: 2; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- section headers ---------- */
.section { padding: 60px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .eyebrow {
  display: inline-block; padding: 6px 18px; border-radius: 100px;
  background: var(--gold-dim); color: var(--gold);
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
  border: 1px solid rgba(212, 175, 55, .3);
}
.sec-head h2 { font-size: clamp(22px, 3.6vw, 34px); font-weight: 900; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- feature/country grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feature {
  text-align: center; padding: 30px 22px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 14px 44px rgba(212, 175, 55, .18); }
.feature .fi {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: var(--gold-dim); border: 1px solid rgba(212, 175, 55, .3);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.9; }

.flag { font-size: 44px; display: block; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

/* ---------- product cards ---------- */
.product {
  position: relative; overflow: hidden; text-align: center;
  padding: 30px 22px 26px;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-10px) scale(1.02); border-color: var(--gold); box-shadow: 0 18px 50px rgba(212, 175, 55, .22); }
.product::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--gold-grad); opacity: 0; transition: opacity .3s;
}
.product:hover::before { opacity: 1; }
.product .vol {
  font-size: 42px; font-weight: 900; line-height: 1;
}
.product .vol small { font-size: 16px; font-weight: 700; color: var(--muted); }
.product .dur { color: var(--muted); font-size: 13px; margin: 10px 0 14px; }
.product .price { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.product .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.product .desc { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 12px 0 18px; min-height: 40px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700;
}
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(212,175,55,.3); }
.badge-green { background: rgba(52, 211, 153, .13); color: var(--green); }
.badge-red { background: rgba(248, 113, 113, .13); color: var(--red); }
.badge-blue { background: rgba(96, 165, 250, .13); color: var(--blue); }

/* ---------- bank card ---------- */
.bank-card {
  width: 100%; max-width: 430px; aspect-ratio: 1.586;
  margin: 0 auto; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0e1a3a 0%, #12235c 40%, #0a1330 100%);
  box-shadow: 0 20px 60px rgba(18, 35, 92, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fff; direction: ltr; font-family: 'Vazirmatn', monospace;
  animation: cardIn .8s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes cardIn { from { opacity: 0; transform: rotateY(18deg) translateY(30px); } to { opacity: 1; transform: none; } }
.bank-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 90% -10%, rgba(80, 140, 255, .35), transparent 60%),
    radial-gradient(300px 200px at 5% 110%, rgba(50, 90, 200, .4), transparent 60%);
}
.bank-card::after {
  content: ''; position: absolute; top: -60%; left: -30%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-18deg);
  animation: shine 4.5s infinite;
}
.bank-card .bc-in { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; }
.bank-card .bc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bank-card .bc-bank { font-weight: 800; font-size: clamp(14px, 3.6vw, 19px); letter-spacing: .5px; }
.bank-card .bc-bank small { display: block; font-size: 10px; opacity: .75; font-weight: 400; letter-spacing: 3px; }
.bank-card .bc-chip {
  width: 13%; aspect-ratio: 1.25; border-radius: 6px;
  background: linear-gradient(135deg, #f5d76e, #b8912c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
  position: relative;
}
.bank-card .bc-chip::before {
  content: ''; position: absolute; inset: 22%;
  border: 1px solid rgba(0, 0, 0, .35); border-radius: 3px;
}
.bank-card .bc-num {
  font-size: clamp(17px, 4.6vw, 25px); letter-spacing: 2.5px;
  font-weight: 700; text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  user-select: all; cursor: pointer;
}
.bank-card .bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; direction: rtl; }
.bank-card .bc-holder { font-size: clamp(13px, 3.2vw, 16px); font-weight: 700; }
.bank-card .bc-holder small { display: block; font-size: 10.5px; opacity: .7; font-weight: 400; margin-bottom: 3px; }
.bank-card .bc-amount { text-align: left; direction: ltr; }
.bank-card .bc-amount small { display: block; font-size: 10.5px; opacity: .7; }
.bank-card .bc-amount b { font-size: clamp(14px, 3.6vw, 18px); color: #f5d76e; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gold-dim); }

/* ---------- modal ---------- */
.modal-bk {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 5, 10, .7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(18px); } }
.modal h3 { margin-bottom: 18px; font-size: 18px; }
.modal .close-x { float: left; background: none; border: none; color: var(--muted); font-size: 22px; }

/* ---------- toast ---------- */
#toast-box { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 22px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.2);
  max-width: 340px;
}
.toast.ok { border-color: rgba(52, 211, 153, .5); color: var(--green); }
.toast.err { border-color: rgba(248, 113, 113, .5); color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .3, 1); }
.reveal.vis { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- support fab ---------- */
.fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold-grad); border: none; font-size: 25px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s; color: #1a1305;
}
.fab:hover { transform: scale(1.1) rotate(8deg); }
.chatbox {
  position: fixed; bottom: 94px; left: 24px; z-index: 200;
  width: 360px; max-width: calc(100vw - 40px); height: 480px; max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
  animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.chatbox header { padding: 14px 18px; background: var(--surface2); border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.chat-msg.user { align-self: flex-start; background: var(--gold-dim); border: 1px solid rgba(212, 175, 55, .3); }
.chat-msg.bot, .chat-msg.admin { align-self: flex-end; background: var(--surface2); border: 1px solid var(--border); }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-in input { border-radius: 10px; }
.faq-chip {
  display: block; width: 100%; text-align: right; margin-bottom: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 12.5px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  transition: all .2s;
}
.faq-chip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 20px 30px; margin-top: 40px; text-align: center; }
.tg-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 100px; margin: 6px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; transition: all .25s;
}
.tg-link:hover { border-color: #2aabee; color: #2aabee; transform: translateY(-3px); }
.tg-ico { width: 22px; height: 22px; }
footer .copy { color: var(--muted); font-size: 12.5px; margin-top: 18px; }

/* ---------- panel layout ---------- */
.panel-wrap { display: flex; min-height: 100vh; }
.side {
  width: 250px; flex-shrink: 0; padding: 20px 14px;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .brand { padding: 4px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.side a, .side button.navlike {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--muted);
  background: none; border: none; width: 100%; text-align: right; transition: all .2s;
}
.side a:hover, .side a.active, .side button.navlike:hover { background: var(--gold-dim); color: var(--gold); }
.side .spacer { flex: 1; }
.main { flex: 1; padding: 28px; min-width: 0; }
.page-title { font-size: 22px; font-weight: 900; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 20px; position: relative; overflow: hidden; }
.stat b { font-size: 26px; display: block; margin-top: 6px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .ico { position: absolute; left: 14px; top: 14px; font-size: 26px; opacity: .8; }

/* service card (config delivery) */
.svc {
  position: relative; overflow: hidden; margin-bottom: 18px;
  animation: popIn .5s cubic-bezier(.2, .9, .3, 1.15);
}
.svc .svc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.svc .pulse {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--green); font-weight: 700;
}
.svc .pulse::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.cfg-box {
  background: var(--bg2); border: 1px dashed var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 11.5px; direction: ltr; text-align: left;
  word-break: break-all; max-height: 90px; overflow-y: auto;
  font-family: monospace; color: var(--muted);
}
.app-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.app-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
  transition: all .22s;
}
.app-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.app-link .ai { font-size: 17px; }

/* cart */
.cart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 199;
  border-radius: 100px; padding: 14px 22px;
}
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 100px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.qty-btns { display: inline-flex; align-items: center; gap: 8px; }
.qty-btns button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 15px; font-weight: 700;
}

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  padding: 10px 20px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: all .2s;
}
.tab.active, .tab:hover { background: var(--gold-dim); color: var(--gold); border-color: rgba(212, 175, 55, .4); }

/* guide accordion */
.acc { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: none; border: none; color: var(--text);
  font-size: 16px; font-weight: 800;
}
.acc-head .chev { transition: transform .3s; color: var(--gold); }
.acc.open .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.acc.open .acc-body { max-height: 800px; }
.acc-body-in { padding: 0 22px 22px; }
.step { display: flex; gap: 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.9; }
.step .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(212, 175, 55, .35);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}

/* misc */
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.center { text-align: center; }
.hide { display: none !important; }
.copy-chip {
  cursor: pointer; user-select: all;
  background: var(--bg2); padding: 4px 10px; border-radius: 8px;
  font-family: monospace; font-size: 13px; letter-spacing: 1px;
  border: 1px dashed var(--border);
}
.copy-chip:hover { border-color: var(--gold); color: var(--gold); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (max-width: 860px) {
  .panel-wrap { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; border-left: none; border-bottom: 1px solid var(--border); }
  .side .brand { border: none; margin: 0; padding: 4px; }
  .side a, .side button.navlike { width: auto; padding: 9px 13px; font-size: 13px; }
  .side .spacer { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px;
  }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
