/* ══════════════════════════════════════════════════════════════
   STARS SHOP · FRANCHISE PANEL · LIQUID GLASS
   DNA: mini-app · Deep Cosmos + Electric Cyan + Amber Gold
   Vibe: iOS 26 frosted glass · Syne · aurora drift
   ══════════════════════════════════════════════════════════════ */

/* ── Dark tokens ── */
:root, [data-theme="dark"] {
  --void:    #050810;
  --base:    #080c18;
  --floor:   #0c1020;
  --surface: #0f1526;

  --g1: rgba(14, 20, 46, 0.52);
  --g2: rgba(18, 26, 58, 0.68);
  --g3: rgba(24, 34, 72, 0.78);

  --gb:      rgba(100, 130, 255, 0.10);
  --gb-hi:   rgba(130, 160, 255, 0.20);
  --shine:   rgba(200, 220, 255, 0.07);
  --shine-hi:rgba(220, 235, 255, 0.13);

  --cyan:       #00d4c8;
  --cyan-deep:  #00b8ae;
  --cyan-dim:   rgba(0, 212, 200, 0.12);
  --cyan-glow:  rgba(0, 212, 200, 0.22);
  --cyan-glow2: rgba(0, 212, 200, 0.38);

  --coral:      #ff6b7a;
  --coral-dim:  rgba(255, 107, 122, 0.13);
  --coral-glow: rgba(255, 107, 122, 0.24);

  --amber:       #ffb347;
  --amber-dim:   rgba(255, 179, 71, 0.12);
  --amber-glow:  rgba(255, 179, 71, 0.22);
  --amber-glow2: rgba(255, 179, 71, 0.35);

  --violet:      #9b7fff;
  --violet-dim:  rgba(155, 127, 255, 0.13);
  --violet-glow: rgba(155, 127, 255, 0.24);

  --green:      #34dba0;
  --green-dim:  rgba(52, 219, 160, 0.12);
  --green-glow: rgba(52, 219, 160, 0.20);

  --red:     #ff5f6d;
  --red-dim: rgba(255, 95, 109, 0.13);

  --t1: #dde6ff;
  --t2: #6878a8;
  --t3: #2f3a68;
  --t4: #1a2248;

  --hdr: rgba(5, 8, 16, 0.84);

  --sb:  244px;
  --r:   14px;
  --rsm: 10px;
  --rxs:  7px;
  --pad: 22px;
  --font:'Syne', ui-sans-serif, system-ui, sans-serif;
  --mono:'DM Mono', 'JetBrains Mono', monospace;
}

/* ── Light tokens ── */
[data-theme="light"] {
  --void:    #dfe8ff;
  --base:    #e8eeff;
  --floor:   #dde5ff;
  --surface: #d4dcff;
  --g1: rgba(255,255,255,0.55);
  --g2: rgba(255,255,255,0.70);
  --g3: rgba(255,255,255,0.82);
  --gb:    rgba(80,110,220,0.13);
  --gb-hi: rgba(80,110,220,0.25);
  --shine:    rgba(255,255,255,0.55);
  --shine-hi: rgba(255,255,255,0.78);
  --cyan:       #009e94;
  --cyan-deep:  #008880;
  --cyan-dim:   rgba(0,158,148,0.10);
  --cyan-glow:  rgba(0,158,148,0.20);
  --cyan-glow2: rgba(0,158,148,0.32);
  --coral:      #e84f60;
  --coral-dim:  rgba(232,79,96,0.10);
  --coral-glow: rgba(232,79,96,0.20);
  --amber:       #e0900a;
  --amber-dim:   rgba(224,144,10,0.10);
  --amber-glow:  rgba(224,144,10,0.20);
  --amber-glow2: rgba(224,144,10,0.30);
  --violet:      #7b5ee8;
  --violet-dim:  rgba(123,94,232,0.10);
  --violet-glow: rgba(123,94,232,0.20);
  --green:      #0fa87a;
  --green-dim:  rgba(15,168,122,0.10);
  --green-glow: rgba(15,168,122,0.18);
  --red:     #e83050;
  --red-dim: rgba(232,48,80,0.10);
  --t1: #0d1240;
  --t2: #4e5a90;
  --t3: #9aaad0;
  --t4: #ccd4f0;
  --hdr: rgba(220,228,255,0.88);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html, body { height: 100%; overflow-x: hidden }
body {
  font-family: var(--font);
  background: var(--base);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   ATMOSPHERIC BACKGROUND  (same DNA as mini-app)
   ══════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 8% -8%,   rgba(0,180,170,0.18)  0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 8%,   rgba(255,107,122,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 50% 60% at 3% 85%,   rgba(155,127,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 65% 40% at 95% 90%,  rgba(0,180,170,0.10)  0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 50% 50%,  rgba(14,20,46,0.65)   0%, transparent 100%),
    var(--void);
  transition: background 0.4s;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 55% at 8% -8%,   rgba(0,158,148,0.10) 0%,  transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 8%,   rgba(232,79,96,0.08) 0%,  transparent 58%),
    radial-gradient(ellipse 50% 60% at 3% 85%,   rgba(123,94,232,0.07) 0%, transparent 60%),
    var(--void);
}

#star-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.4;
}
[data-theme="light"] #star-canvas { display: none }

.sidebar, .main, #toast-wrap { position: relative; z-index: 2 }

/* ══════════════════════════════════════════════════════════════
   GLASS UTILITY
   ══════════════════════════════════════════════════════════════ */
.gl {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb);
  border-top-color: var(--shine);
}
.gl-hi {
  background: var(--g2);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--gb-hi);
  border-top-color: var(--shine-hi);
}

/* ══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ══════════════════════════════════════════════════════════════ */
.page { display: none }
.page.active {
  display: block;
  animation: pg-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pg-in {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: none }
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sb);
  background: var(--hdr);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-right: 1px solid var(--gb);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .26s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-logo {
  padding: 18px 16px 15px;
  border-bottom: 1px solid var(--gb);
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.sb-gem {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 0 0 1px rgba(0,212,200,.25), 0 4px 18px var(--cyan-glow);
}
.sb-brand-name {
  font-size: 14px; font-weight: 800; letter-spacing: -0.03em; color: var(--t1); line-height: 1.2;
}
.sb-brand-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--t3);
}

.sb-nav { flex: 1; overflow-y: auto; padding: 8px 0; scrollbar-width: none }
.sb-nav::-webkit-scrollbar { display: none }

.sb-section {
  font-size: 9px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--t3);
  padding: 12px 16px 4px;
}
.sb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; margin: 1px 8px;
  border-radius: var(--rsm);
  color: var(--t2); font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; user-select: none;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.sb-item:hover { background: var(--g1); color: var(--t1) }
.sb-item.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0,212,200,.15);
  border-top-color: rgba(0,240,230,.10);
  box-shadow: 0 0 0 1px rgba(0,212,200,.06);
  margin: 1px 8px; padding: 7px 11px;
}
.sb-ico { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; opacity: .7; transition: opacity .12s }
.sb-item.active .sb-ico { opacity: 1 }

.sb-footer { padding: 14px 16px; border-top: 1px solid var(--gb); flex-shrink: 0 }
.sb-user { display: flex; align-items: center; gap: 9px; margin-bottom: 11px }
.sb-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 0 2px rgba(0,212,200,.18), 0 0 14px var(--cyan-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.sb-user-name {
  font-size: 12px; font-weight: 700; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-footer-row { display: flex; gap: 6px }
.sb-footer-row .gl-btn { flex: 1 }

.sb-toggle {
  display: none;
  position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); z-index: 200;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--hdr);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  cursor: pointer; color: var(--t2); font-size: 16px;
  align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════════ */
.main {
  margin-left: var(--sb);
  min-height: 100vh;
  padding: 26px var(--pad) var(--pad);
}

.pg-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 10px;
}
.pg-title { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1 }
.pg-sub   { font-size: 12px; color: var(--t2); margin-top: 4px; letter-spacing: 0 }
.pg-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap }

/* ══════════════════════════════════════════════════════════════
   GLASS BUTTONS
   ══════════════════════════════════════════════════════════════ */
.gl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px;
  background: var(--g1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--rsm);
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--t2); cursor: pointer; position: relative;
  transition: background .12s, border-color .12s, color .12s, transform .12s, opacity .12s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap; line-height: 1.2;
}
.gl-btn:hover { background: var(--g2); color: var(--t1) }
.gl-btn:active { transform: scale(.96) }
.gl-btn:disabled { opacity: .36; pointer-events: none }

.gl-btn.primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan) 55%, var(--violet));
  border-color: rgba(0,212,200,.30); border-top-color: rgba(0,240,230,.22);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.20) inset, 0 4px 22px var(--cyan-glow), 0 1px 0 rgba(255,255,255,.12) inset;
}
.gl-btn.primary::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.15) 0%, transparent 55%);
}
.gl-btn.primary:hover { opacity: .9 }

.gl-btn.danger {
  background: var(--red-dim); border-color: rgba(255,95,109,.20); color: var(--red);
}
.gl-btn.danger:hover { background: rgba(255,95,109,.20) }

.gl-btn.gold {
  background: var(--amber-dim); border-color: rgba(255,179,71,.22); color: var(--amber);
  box-shadow: 0 2px 14px var(--amber-glow);
}

.gl-btn.sm { padding: 5px 11px; font-size: 11px; border-radius: var(--rxs) }
.gl-btn.xs { padding: 3px 8px;  font-size: 10px; border-radius: 5px }

/* ══════════════════════════════════════════════════════════════
   STAT CARDS
   ══════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.stat-card {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); padding: 17px; position: relative; overflow: hidden;
  transition: border-color .15s, box-shadow .2s;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, var(--shine-hi) 0%, transparent 55%);
}
.stat-card:hover { border-color: var(--gb-hi); box-shadow: 0 0 32px rgba(0,212,200,.06) }
.stat-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 14px; position: relative; z-index: 1;
}
.stat-ico.cyan   { background: var(--cyan-dim);   box-shadow: 0 0 0 1px rgba(0,212,200,.18), 0 4px 16px var(--cyan-glow) }
.stat-ico.amber  { background: var(--amber-dim);  box-shadow: 0 0 0 1px rgba(255,179,71,.18), 0 4px 16px var(--amber-glow) }
.stat-ico.green  { background: var(--green-dim);  box-shadow: 0 0 0 1px rgba(52,219,160,.18), 0 4px 16px var(--green-glow) }
.stat-ico.violet { background: var(--violet-dim); box-shadow: 0 0 0 1px rgba(155,127,255,.18), 0 4px 16px var(--violet-glow) }
.stat-lbl { font-size: 9px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--t3); position: relative; z-index: 1 }
.stat-val { font-size: 28px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; margin-top: 5px; position: relative; z-index: 1 }
.stat-delta { font-size: 11px; color: var(--t2); margin-top: 4px; position: relative; z-index: 1 }

/* ══════════════════════════════════════════════════════════════
   GLASS PANELS
   ══════════════════════════════════════════════════════════════ */
.panel {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); position: relative; overflow: hidden;
}
.panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, var(--shine-hi) 0%, transparent 50%);
}
.panel-p { padding: 16px }
.panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--gb);
  position: relative; z-index: 1;
}
.panel-title { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--t3) }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }

/* ══════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════ */
.tbl-wrap {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); overflow: hidden; margin-bottom: 12px; position: relative;
}
.tbl-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--shine-hi); z-index: 1; pointer-events: none;
}
.tbl-wrap table { width: 100%; border-collapse: collapse }
.tbl-wrap thead th {
  background: var(--g2); padding: 9px 14px;
  font-size: 9px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .09em;
  text-align: left; white-space: nowrap; border-bottom: 1px solid var(--gb);
}
.tbl-wrap thead th.num { text-align: right }
.tbl-wrap tbody td {
  padding: 10px 14px; font-size: 12px;
  border-bottom: 1px solid var(--gb); vertical-align: middle; color: var(--t1);
}
.tbl-wrap tbody tr:last-child td { border-bottom: none }
.tbl-wrap tbody tr { transition: background .08s }
.tbl-wrap tbody tr:hover td { background: rgba(100,130,255,.04) }
td.num  { text-align: right }
td.mono { font-family: var(--mono); font-size: 11px }

/* ══════════════════════════════════════════════════════════════
   PILLS
   ══════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.pill-green  { background: var(--green-dim);  color: var(--green) }
.pill-red    { background: var(--red-dim);    color: var(--red) }
.pill-amber  { background: var(--amber-dim);  color: var(--amber) }
.pill-cyan   { background: var(--cyan-dim);   color: var(--cyan) }
.pill-violet { background: var(--violet-dim); color: var(--violet) }
.pill-dim    { background: var(--g2);         color: var(--t3) }

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 14px }
.form-label {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--t3); margin-bottom: 7px;
}
.form-input,
input[type="text"], input[type="number"], input[type="password"],
input[type="datetime-local"], select, textarea {
  width: 100%;
  background: var(--g1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--rsm); padding: 10px 13px;
  color: var(--t1); font-family: var(--font); font-size: 13px;
  outline: none; transition: border-color .12s, box-shadow .12s; -webkit-appearance: none;
}
.form-input:focus, input[type="text"]:focus, input[type="number"]:focus,
input[type="password"]:focus, select:focus, textarea:focus {
  border-color: rgba(0,212,200,.45); box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-input::placeholder { color: var(--t3); font-weight: 400 }
select option { background: var(--floor); color: var(--t1) }
textarea { resize: vertical; min-height: 86px }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer }
.form-hint { font-size: 11px; color: var(--t3); margin-top: 5px; line-height: 1.55; letter-spacing: 0 }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 11px }

.info-strip {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,200,.15); border-top-color: rgba(0,240,230,.10);
  border-radius: var(--rsm);
  font-size: 12px; color: var(--t2); line-height: 1.55; margin-bottom: 14px;
}
.info-strip-ico { flex-shrink: 0; font-size: 14px }

.inherit-notice {
  display: none; padding: 8px 12px;
  background: var(--amber-dim); border: 1px solid rgba(255,179,71,.15);
  border-radius: var(--rxs); font-size: 11px; color: var(--t2); line-height: 1.5; margin-bottom: 11px;
}

/* ══════════════════════════════════════════════════════════════
   PRICE TABLE
   ══════════════════════════════════════════════════════════════ */
.price-table {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); overflow: hidden; margin-bottom: 14px;
}
.price-head {
  display: grid; grid-template-columns: 1fr 110px 120px 140px 90px;
  background: var(--g2); padding: 9px 16px;
  font-size: 9px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .09em; border-bottom: 1px solid var(--gb);
}
.price-row {
  display: grid; grid-template-columns: 1fr 110px 120px 140px 90px;
  padding: 12px 16px; align-items: center;
  border-bottom: 1px solid var(--gb); transition: background .08s;
}
.price-row:last-child { border-bottom: none }
.price-row:hover { background: rgba(100,130,255,.04) }
.price-computed {
  display: inline-flex; align-items: center;
  background: var(--green-dim); border: 1px solid rgba(52,219,160,.20);
  border-radius: 6px; padding: 4px 9px;
  font-family: var(--mono); font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap;
}
.img-table .price-head { grid-template-columns: 160px 110px 1fr 120px }
.img-table .price-row  { grid-template-columns: 160px 110px 1fr 120px; gap: 8px }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pag { display: flex; align-items: center; gap: 4px; padding: 10px 0; flex-wrap: wrap }
.pag-info { font-size: 10px; color: var(--t3); margin-right: 6px; letter-spacing: .04em }
.pag-btn {
  min-width: 30px; height: 30px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--rxs); font-size: 11px; font-weight: 700; font-family: var(--font);
  cursor: pointer; background: var(--g1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gb); border-top-color: var(--shine); color: var(--t2);
  transition: all .1s;
}
.pag-btn:hover { background: var(--g2); color: var(--t1) }
.pag-btn.active { background: var(--cyan-dim); border-color: rgba(0,212,200,.30); color: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow) }
.pag-btn:disabled { opacity: .35; pointer-events: none }

/* ══════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(5,8,16,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 400; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex }
.modal {
  background: var(--floor);
  backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  border-radius: 20px; padding: 24px;
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 72px rgba(0,0,0,.45);
  animation: pg-in .2s ease; position: relative;
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--shine-hi); border-radius: 20px 20px 0 0; pointer-events: none;
}
.modal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px }
.modal-title { font-size: 16px; font-weight: 800; letter-spacing: -0.03em }
.modal-close {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--g1); border: 1px solid var(--gb); border-top-color: var(--shine);
  cursor: pointer; color: var(--t3); font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.modal-close:hover { background: var(--g2); color: var(--t1) }
.modal-ft {
  display: flex; justify-content: flex-end; gap: 7px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gb);
}

.imodal-wrap {
  display: none; position: fixed; inset: 0;
  background: rgba(5,8,16,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 500; align-items: center; justify-content: center;
}
.imodal-wrap.open { display: flex }
.imodal {
  background: var(--floor);
  backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  border-radius: 20px; padding: 28px; width: min(440px, 92vw);
  box-shadow: 0 24px 72px rgba(0,0,0,.50); animation: pg-in .2s ease; position: relative;
}
.imodal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--shine-hi); border-radius: 20px 20px 0 0; pointer-events: none;
}
.imodal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 18px }

.logs-wrap {
  display: none; position: fixed; inset: 0;
  background: rgba(5,8,16,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 500; align-items: center; justify-content: center;
}
.logs-wrap.open { display: flex }
.logs-modal {
  background: var(--floor);
  backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  border-radius: 20px; padding: 24px; width: min(700px, 96vw); max-height: 80vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 72px rgba(0,0,0,.50);
  animation: pg-in .2s ease; position: relative;
}
.logs-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--shine-hi); border-radius: 20px 20px 0 0; pointer-events: none;
}
.logs-modal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-shrink: 0 }
.logs-modal-title { font-size: 16px; font-weight: 800; letter-spacing: -0.03em }
.logs-modal-body  { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
#toast-wrap {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none;
}
.toast {
  background: var(--g3);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  color: var(--t1); padding: 9px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; max-width: 320px; pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
  animation: toast-in .2s cubic-bezier(0.22,1,0.36,1) both;
}
.toast.ok  { border-color: rgba(52,219,160,.30); color: var(--green) }
.toast.err { border-color: rgba(255,95,109,.30);  color: var(--red) }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(.94) }
  to   { opacity: 1; transform: none }
}

/* ══════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════ */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px }
.filter-bar input, .filter-bar select { width: auto; min-width: 130px }
.filter-bar input { flex: 1; max-width: 300px }

/* ══════════════════════════════════════════════════════════════
   LOADING & EMPTY
   ══════════════════════════════════════════════════════════════ */
.loading-row {
  display: flex; align-items: center; gap: 9px; padding: 28px;
  color: var(--t2); justify-content: center; font-size: 13px; letter-spacing: -0.01em;
}
.spin {
  width: 16px; height: 16px;
  border: 2px solid var(--gb-hi); border-top-color: var(--cyan);
  border-radius: 50%; animation: rtt .7s linear infinite; flex-shrink: 0;
}
@keyframes rtt { to { transform: rotate(360deg) } }
.empty { text-align: center; padding: 48px 20px }
.empty-ico { font-size: 36px; margin-bottom: 12px; opacity: .5 }
.empty-ttl { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--t2) }
.empty-sub { font-size: 12px; color: var(--t3); margin-top: 5px; line-height: 1.55; letter-spacing: 0 }

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════ */
.hiw-step { display: flex; gap: 13px; margin-bottom: 14px; align-items: flex-start }
.hiw-num {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--cyan-dim); border: 1px solid rgba(0,212,200,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--cyan);
}
.hiw-txt h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px }
.hiw-txt p  { font-size: 12px; color: var(--t2); line-height: 1.6; letter-spacing: 0 }

/* ══════════════════════════════════════════════════════════════
   DEEPLINK BOX
   ══════════════════════════════════════════════════════════════ */
.deeplink-box {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g2); border: 1px solid var(--gb); border-radius: 6px; padding: 4px 8px;
  font-family: var(--mono); font-size: 11px; color: var(--t2); max-width: 200px; overflow: hidden;
}
.deeplink-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.copy-btn {
  background: none; border: none; color: var(--cyan); font-family: var(--font);
  font-size: 10px; font-weight: 700; cursor: pointer; padding: 2px 5px;
  border-radius: 4px; flex-shrink: 0; transition: background .1s;
}
.copy-btn:hover { background: var(--cyan-dim) }

/* ══════════════════════════════════════════════════════════════
   BOT CARD
   ══════════════════════════════════════════════════════════════ */
.bot-card {
  background: var(--g1);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); padding: 18px; margin-bottom: 12px;
  position: relative; overflow: hidden; transition: border-color .15s;
}
.bot-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, var(--shine-hi) 0%, transparent 50%);
}
.bot-card:hover { border-color: var(--gb-hi) }
.bot-card-hd { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; position: relative; z-index: 1 }
.bot-card-av { font-size: 30px; flex-shrink: 0 }
.bot-card-info { flex: 1; min-width: 0 }
.bot-card-name { font-size: 15px; font-weight: 800; letter-spacing: -0.03em }
.bot-card-user { font-size: 12px; color: var(--t2) }
.bot-card-actions { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; position: relative; z-index: 1 }

/* ── Broadcast card ── */
.bc-card {
  background: var(--g1);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); padding: 15px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.bc-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, var(--shine-hi) 0%, transparent 50%) }
.bc-preview {
  background: var(--g2); border-radius: var(--rxs); padding: 10px 13px;
  font-size: 12px; line-height: 1.55; margin-bottom: 9px;
  max-height: 68px; overflow: hidden; position: relative; z-index: 1;
}
.bc-bar { background: var(--g2); border-radius: 100px; height: 3px; overflow: hidden; margin-top: 10px; position: relative; z-index: 1 }
.bc-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .5s ease }

/* ── Ticket ── */
.ticket-item {
  background: var(--g1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  border-radius: var(--r); padding: 14px; margin-bottom: 9px;
  cursor: pointer; transition: border-color .12s, background .1s; position: relative; overflow: hidden;
}
.ticket-item::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, var(--shine-hi) 0%, transparent 50%) }
.ticket-item:hover { border-color: var(--gb-hi); background: var(--g2) }
.ticket-msgs {
  background: var(--g1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gb); border-radius: var(--r);
  padding: 14px; min-height: 110px; max-height: 360px; overflow-y: auto; margin-bottom: 12px;
}
.msg-row { display: flex; flex-direction: column; margin-bottom: 10px }
.msg-row.mine   { align-items: flex-end }
.msg-row.theirs { align-items: flex-start }
.msg-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 12px;
  font-size: 12px; line-height: 1.6; letter-spacing: 0;
}
.msg-row.mine   .msg-bubble { background: var(--cyan-dim); border: 1px solid rgba(0,212,200,.15) }
.msg-row.theirs .msg-bubble { background: var(--g2); border: 1px solid var(--gb) }
.msg-who  { font-size: 10px; font-weight: 700; color: var(--t3); margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase }
.msg-time { font-size: 10px; color: var(--t3); margin-top: 4px }

/* ══════════════════════════════════════════════════════════════
   TAB ROW
   ══════════════════════════════════════════════════════════════ */
.tab-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px }
.tab-btn {
  padding: 6px 14px; border-radius: 100px;
  background: var(--g1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gb); border-top-color: var(--shine);
  font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--t2); cursor: pointer; transition: all .12s;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn:hover { background: var(--g2); color: var(--t1) }
.tab-btn.active {
  background: var(--cyan-dim); border-color: rgba(0,212,200,.25);
  color: var(--cyan); box-shadow: 0 0 14px var(--cyan-glow);
}

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════ */
.login-page {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: var(--base); align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  width: 100%; max-width: 360px; position: relative;
  background: var(--g2);
  backdrop-filter: blur(32px) saturate(190%); -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  border-radius: 24px; padding: 32px 26px;
  box-shadow: 0 24px 72px rgba(0,0,0,.45);
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--shine-hi); border-radius: 24px 24px 0 0; pointer-events: none;
}
.login-gem {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(0,212,200,.25), 0 8px 28px var(--cyan-glow);
}
.login-title { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 5px }
.login-sub   { font-size: 12px; color: var(--t2); margin-bottom: 24px; line-height: 1.6; letter-spacing: 0 }
.login-err   { display: none; font-size: 12px; color: var(--red); margin-bottom: 10px }

/* ══════════════════════════════════════════════════════════════
   PAYMENT METHOD ROW
   ══════════════════════════════════════════════════════════════ */
.pm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--gb);
}
.pm-row:last-child { border-bottom: none }
.pm-name { font-size: 13px; font-weight: 700; letter-spacing: -0.02em }
.pm-badges { display: flex; gap: 5px; margin-top: 5px }
.pm-sel {
  font-size: 12px; padding: 5px 9px; border-radius: 7px;
  background: var(--g2); border: 1px solid var(--gb);
  color: var(--t1); font-family: var(--font); font-weight: 600;
  outline: none; cursor: pointer; transition: border-color .12s;
}
.pm-sel:focus { border-color: rgba(0,212,200,.40) }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.fw7  { font-weight: 700 }
.fw8  { font-weight: 800 }
.mono { font-family: var(--mono); font-size: 11px }
.t2   { color: var(--t2) }
.t3   { color: var(--t3) }
.ts   { font-size: 11px }
.txs  { font-size: 10px }
.flex { display: flex; align-items: center }
.gap-2 { gap: 7px }
.gap-3 { gap: 12px }
.mb-3  { margin-bottom: 11px }
.mb-4  { margin-bottom: 16px }
.mb-5  { margin-bottom: 20px }
.z1    { position: relative; z-index: 1 }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay backdrop for mobile sidebar ── */
.sb-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(5,8,16,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sb-overlay.open { display: block }

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
  :root { --sb: 220px; --pad: 18px }
  .grid-2 { grid-template-columns: 1fr }
  .stats-grid { grid-template-columns: repeat(2, 1fr) }
  .stat-val { font-size: 24px }
  .price-head, .price-row { grid-template-columns: 1fr 100px 120px 100px }
  .price-head :nth-child(3), .price-row :nth-child(3) { display: none }
  .img-table .price-head, .img-table .price-row { grid-template-columns: 130px 100px 1fr 110px }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
  :root { --pad: 14px }

  /* Sidebar off-canvas */
  .sidebar { transform: translateX(-100%); width: 260px }
  .sidebar.open { transform: none }
  .sb-toggle { display: flex }
  .main { margin-left: 0; padding: 56px var(--pad) 28px }

  /* Page header */
  .pg-hd { flex-direction: column; gap: 8px }
  .pg-title { font-size: 18px }
  .pg-actions { width: 100% }

  /* Stat cards: 2-column compact */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px }
  .stat-card { padding: 14px 13px }
  .stat-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; margin-bottom: 10px }
  .stat-val { font-size: 22px }
  .stat-lbl { font-size: 8px; letter-spacing: .08em }
  .stat-delta { font-size: 10px }

  /* Tables: horizontal scroll */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch }
  .tbl-wrap table { min-width: 580px }

  /* Price table: simplified columns */
  .price-head, .price-row { grid-template-columns: 1fr 80px 90px 60px; font-size: 11px; padding: 10px 12px }
  .price-head :nth-child(3), .price-row :nth-child(3) { display: none }
  .img-table .price-head, .img-table .price-row { grid-template-columns: 120px 90px 1fr 90px; gap: 6px }

  /* Forms */
  .form-row { grid-template-columns: 1fr }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch }
  .filter-bar input, .filter-bar select { width: 100%; max-width: none; min-width: 0 }

  /* Tab row: scroll horizontal */
  .tab-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px }
  .tab-row::-webkit-scrollbar { display: none }
  .tab-btn { flex-shrink: 0 }

  /* Modals */
  .modal { padding: 20px 16px; border-radius: 16px; max-width: calc(100vw - 32px) }
  .imodal { padding: 22px 16px; width: calc(100vw - 24px); border-radius: 16px }
  .logs-modal { width: calc(100vw - 16px); padding: 18px 14px; border-radius: 16px; max-height: 88vh }

  /* Toast: full-width bottom */
  #toast-wrap { left: 14px; right: 14px; bottom: 14px; align-items: stretch }
  .toast { max-width: none; text-align: center; border-radius: 12px }

  /* Panels */
  .panel-p { padding: 14px 12px }
  .panel-hd { padding: 11px 12px }

  /* Bot card */
  .bot-card { padding: 14px }
  .bot-card-hd { gap: 10px }
  .bot-card-actions { gap: 6px }
  .bot-card-actions .gl-btn { font-size: 10px; padding: 4px 9px }

  /* Ticket detail */
  .ticket-msgs { max-height: 300px; min-height: 80px; padding: 12px }
  #fp-ticket-detail .flex.gap-2 { flex-wrap: wrap }

  /* kb colors grid */
  #bot-tab-kbcolors [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Community block */
  #community-block .panel-p { flex-direction: column; gap: 10px; text-align: center }
  #community-block .gl-btn { width: 100% }

  /* Payment method row: stack */
  .pm-row { flex-direction: column; align-items: flex-start; gap: 8px }

  /* Deeplink box */
  .deeplink-box { max-width: 100% }

  /* Loading / empty states */
  .empty { padding: 32px 16px }
  .empty-ico { font-size: 30px }

  /* How it works steps */
  .hiw-step { gap: 10px }

  /* Logs page header: stack select */
  #page-logs .pg-hd { flex-direction: column; align-items: flex-start }
  #page-logs .pg-hd select { width: 100% }
}

/* ── Small mobile: ≤ 420px ── */
@media (max-width: 420px) {
  :root { --pad: 10px }
  .main { padding: 52px var(--pad) 20px }

  /* Single column stat cards */
  .stats-grid { grid-template-columns: 1fr; gap: 6px }
  .stat-card { padding: 12px 11px; display: flex; align-items: center; gap: 12px; flex-direction: row }
  .stat-ico { margin-bottom: 0; flex-shrink: 0 }
  .stat-card > .stat-lbl { order: 0 }
  .stat-card > .stat-val { order: 1 }

  /* Even more compact stat layout */
  .stat-val { font-size: 20px }
  .stat-lbl { font-size: 7.5px }

  /* Page header */
  .pg-title { font-size: 16px }
  .pg-sub { font-size: 11px }

  /* Buttons smaller */
  .gl-btn { padding: 7px 12px; font-size: 11px }
  .gl-btn.sm { padding: 4px 10px; font-size: 10px }
  .gl-btn.xs { padding: 2px 7px; font-size: 9px }

  /* Login card tighter */
  .login-card { padding: 24px 18px; border-radius: 18px }
  .login-title { font-size: 20px }
  .login-gem { width: 42px; height: 42px; font-size: 20px; margin-bottom: 18px }

  /* Modal titles */
  .modal-title { font-size: 15px }
  .imodal-title { font-size: 16px }

  /* Sidebar wider on very small screens so it's usable */
  .sidebar { width: calc(100vw - 56px); max-width: 280px }

  /* Pill sizes */
  .pill { font-size: 9px; padding: 1px 7px }

  /* Price table even tighter */
  .price-head, .price-row { grid-template-columns: 1fr 70px 70px; padding: 8px 10px; font-size: 10px }
  .price-head :nth-child(3), .price-row :nth-child(3) { display: none }
  .price-head :nth-child(4), .price-row :nth-child(4) { display: none }

  /* kb colors: single column */
  #bot-tab-kbcolors [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Withdrawal form inputs full-width */
  #page-withdrawals input[style*="width:180px"],
  #page-withdrawals select[style*="width:180px"] {
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   BOT SWITCHER (sidebar)
   ══════════════════════════════════════════════════════════════ */
.sb-bot-switcher {
  margin: 8px 10px 4px;
  position: relative;
}
.sb-bot-label {
  font-size: 9px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--t3);
  padding: 6px 4px 4px;
}
.sb-bot-current {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--rsm);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,200,.18); border-top-color: rgba(0,240,230,.12);
  cursor: pointer; user-select: none;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.sb-bot-current:hover { background: rgba(0,212,200,.18); border-color: rgba(0,212,200,.28) }
.sb-bot-ico { font-size: 14px; flex-shrink: 0 }
.sb-bot-name { font-size: 12px; font-weight: 700; color: var(--cyan); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em }
.sb-bot-caret { font-size: 10px; color: var(--cyan); opacity: .7; flex-shrink: 0 }

.sb-bot-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--floor);
  backdrop-filter: blur(32px) saturate(200%); -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--gb-hi); border-top-color: var(--shine-hi);
  border-radius: var(--r); z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow: hidden; animation: pg-in .15s ease;
  max-height: 260px; overflow-y: auto;
}
.sb-bot-option {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; cursor: pointer;
  font-size: 12px; color: var(--t2);
  border-bottom: 1px solid var(--gb);
  transition: background .08s, color .08s;
}
.sb-bot-option:last-child { border-bottom: none }
.sb-bot-option:hover { background: var(--g1); color: var(--t1) }
.sb-bot-option.active { background: var(--cyan-dim); color: var(--cyan) }

/* ── Active bot card highlight ── */
.bot-card-active {
  border-color: rgba(0,212,200,.30) !important;
  box-shadow: 0 0 0 1px rgba(0,212,200,.12), 0 4px 28px var(--cyan-glow) !important;
}
