:root {
  --bg-deep: #020614;
  --body-bg: radial-gradient(ellipse 130% 85% at 50% -12%, #13316b 0%, #060f25 54%, #020614 100%);
  --hero-bg: radial-gradient(circle at 86% 22%, rgba(56, 189, 248, 0.22), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(245, 158, 11, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(16, 39, 86, 0.9), rgba(6, 16, 40, 0.95));
  --card-bg: linear-gradient(160deg, rgba(20, 39, 82, 0.72), rgba(8, 17, 40, 0.86));
  --input-bg: rgba(2, 6, 20, 0.68);
  --glass: rgba(12, 23, 50, 0.56);
  --glass-strong: rgba(14, 27, 60, 0.88);
  --border-ice: rgba(148, 210, 255, 0.18);
  --border-top: rgba(224, 242, 254, 0.36);
  --border-glow: rgba(251, 191, 36, 0.44);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --ice: #38bdf8;
  --ice-soft: #bae6fd;
  --gold: #fde047;
  --gold-mid: #f59e0b;
  --btn-gold-bg: linear-gradient(135deg, #fef08a 0%, #fbbf24 52%, #f59e0b 100%);
  --btn-gold-text: #0f172a;
  --btn-ice-bg: linear-gradient(135deg, #38bdf8, #2563eb);
  --a1: #1d4ed8;
  --a2: #06b6d4;
  --a3: #d97706;
  --a4: #7c3aed;
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 22px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.25s ease;
}

h1, h2, h3, .brand-title, .product-price, .custom-total, .kpi-val {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

#snowCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.snow-touch-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  z-index: 36;
  touch-action: none;
  cursor: grab;
}

.snow-touch-strip:active { cursor: grabbing; }

.snow-controls {
  position: fixed;
  right: 14px;
  bottom: 44px;
  z-index: 38;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.snow-hint-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ice-soft);
  background: var(--glass-strong);
  border: 1px solid var(--border-ice);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  opacity: 0.9;
}

.snow-pill-btn {
  pointer-events: auto;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--glass-strong);
  border: 1px solid var(--border-ice);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.snow-pill-btn:hover { border-color: var(--ice); }

.aurora-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 210, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 210, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 22%, black 12%, transparent 78%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-1 { width: 500px; height: 500px; background: var(--a1); top: -170px; left: -120px; }
.aurora-2 { width: 440px; height: 440px; background: var(--a2); top: 12%; right: -140px; animation-delay: -6s; }
.aurora-3 { width: 380px; height: 380px; background: var(--a3); bottom: -160px; left: 26%; opacity: 0.16; animation-delay: -11s; }
.aurora-4 { width: 320px; height: 320px; background: var(--a4); top: 45%; left: -140px; opacity: 0.14; animation-delay: -3s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(42px, 30px) scale(1.12); }
}

/* New Year Fairy Lights Garland */
.ny-garland {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 37;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 2 Q 60 15 120 2' fill='none' stroke='%231e293b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top left;
}

.ny-bulb {
  position: relative;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 58% 58%;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: twinkle 2.4s ease-in-out infinite alternate;
}

.ny-bulb::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: linear-gradient(180deg, #475569, #0f172a);
  border-radius: 2px 2px 1px 1px;
}

@keyframes twinkle {
  0% { opacity: 0.45; transform: scale(0.92); filter: brightness(0.85); }
  100% { opacity: 1; transform: scale(1.08); filter: brightness(1.3); }
}

.hero-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-tags-row .hero-tag { margin-bottom: 0; }

.ny-countdown {
  font-size: 11.5px;
  font-weight: 700;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.34);
  padding: 6px 12px;
  border-radius: 999px;
}

.app-shell {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 16px 108px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glass-panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  border: 1px solid var(--border-ice);
  border-top-color: var(--border-top);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow:
    0 24px 56px -12px rgba(0, 0, 0, 0.58),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.14), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spotlight-card:hover::before { opacity: 1; }

/* Header */
.glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-ice);
  border-top-color: var(--border-top);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.38));
  border: 1px solid rgba(186, 230, 253, 0.42);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
}

.brand-title { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }

.season-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(14, 165, 233, 0.14));
  color: var(--ice-soft);
  border: 1px solid rgba(125, 211, 252, 0.42);
}

.brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-ice);
  font-size: 13px;
  font-weight: 600;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.maintenance-banner {
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #ffe4e6;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Hero Card */
.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 28px;
  border-radius: 26px;
  background: var(--hero-bg);
  border: 1px solid var(--border-ice);
  border-top-color: var(--border-top);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-frost-corner {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-shine {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: rotate(25deg);
  animation: sheen 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes sheen {
  0%, 58% { transform: translateX(-120%) rotate(25deg); }
  100% { transform: translateX(300%) rotate(25deg); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ice-soft);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero-card h1 {
  font-size: clamp(23px, 3.8vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.gold-text {
  background: linear-gradient(90deg, #fef08a 0%, #fbbf24 52%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card p { font-size: 13.5px; color: var(--text-muted); max-width: 540px; line-height: 1.55; }

.hero-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.metric-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 6px 11px;
  border-radius: 11px;
}

/* 3D Crystal Orb Stage */
.hero-visual { flex-shrink: 0; }
.crystal-stage { position: relative; width: 134px; height: 134px; display: grid; place-items: center; }

.orbit-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), rgba(56, 189, 248, 0.08), transparent 70%);
  filter: blur(8px);
}

.orbit-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(186, 230, 253, 0.36);
  animation: spin 18s linear infinite;
}

.orbit-2 {
  inset: 18px;
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.32) transparent rgba(56, 189, 248, 0.38) transparent;
  animation-direction: reverse;
  animation-duration: 11s;
}

@keyframes spin { to { transform: rotate(360deg); } }

.star-core {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(254, 240, 138, 0.32), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(253, 224, 71, 0.48);
  display: grid;
  place-items: center;
  box-shadow: 0 0 44px rgba(251, 191, 36, 0.32), inset 0 0 20px rgba(255, 255, 255, 0.16);
  animation: floatOrb 4.2s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.spark { position: absolute; color: #fde68a; font-size: 13px; animation: pulseSpark 2.4s infinite; }
.sp-1 { top: 8px; right: 16px; }
.sp-2 { bottom: 12px; left: 10px; color: #bae6fd; animation-delay: 0.7s; }
.sp-3 { top: 50%; right: 2px; font-size: 10px; animation-delay: 1.3s; }
.sp-4 { top: 14px; left: 16px; color: #7dd3fc; font-size: 11px; animation-delay: 1.9s; }

@keyframes pulseSpark {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Recipient */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--ice); font-weight: 700; cursor: pointer; font-size: 13px; }
.recipient-row { display: flex; gap: 10px; }

.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-ice);
  border-radius: 13px;
  padding: 0 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16); }
.input-prefix { color: var(--ice); font-weight: 800; margin-right: 6px; }

.input-wrap input, input[type="number"], input[type="text"], select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 2px;
}

.recipient-status { margin-top: 10px; font-size: 13px; padding: 9px 13px; border-radius: 12px; font-weight: 600; }
.recipient-status.ok { background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.recipient-status.err { background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.35); color: #fecdd3; }

/* Tabs */
.tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  background: rgba(7, 17, 40, 0.72);
  border: 1px solid var(--border-ice);
  border-radius: 17px;
}

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 10px 16px;
  border-radius: 13px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.38));
  color: var(--text-main);
  border-color: rgba(125, 211, 252, 0.48);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: flex; flex-direction: column; gap: 16px; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Custom Stars Calculator */
.custom-stars-card .custom-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.custom-head h3 { font-size: 16.5px; }
.custom-head p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.custom-total-box { text-align: right; }
.total-cap { display: block; font-size: 11px; color: var(--text-muted); }
.custom-total { font-size: 21px; font-weight: 800; color: var(--gold); }

.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-btn {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-ice);
  color: var(--ice-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-btn:hover { background: rgba(56, 189, 248, 0.2); border-color: var(--ice); transform: translateY(-1px); }
.ice-slider { width: 100%; accent-color: #fbbf24; margin-bottom: 12px; cursor: pointer; }
.custom-controls { display: flex; gap: 10px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.cards-grid-3 { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-ice);
  border-top-color: var(--border-top);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: cardRise 0.35s ease forwards;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.48), 0 0 28px rgba(56, 189, 248, 0.16);
}

.badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(186, 230, 253, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.product-title { font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; }
.product-sub { font-size: 12.5px; color: var(--text-muted); }
.product-price { font-size: 19.5px; font-weight: 800; color: var(--gold); margin-top: auto; padding-top: 8px; }

/* Buttons */
.btn-gold, .btn-ice, .btn-ice-sm, .btn-glass-sm, .btn-danger-sm {
  border: none;
  border-radius: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-gold:hover { filter: brightness(1.06); }
.btn-gold:active, .btn-ice:active { transform: scale(0.98); }

.btn-gold {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  padding: 11px 18px;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.25);
}

.btn-ice {
  background: var(--btn-ice-bg);
  color: #fff;
  padding: 11px 16px;
  font-size: 13.5px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.btn-ice-sm { background: var(--btn-ice-bg); color: #fff; padding: 8px 13px; font-size: 12.5px; }
.btn-glass-sm { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-ice); color: var(--text-main); padding: 7px 12px; font-size: 12.5px; }
.btn-danger-sm { background: rgba(251, 113, 133, 0.18); border: 1px solid rgba(251, 113, 133, 0.4); color: #fecdd3; padding: 7px 12px; font-size: 12.5px; }
.full-width { width: 100%; }
.panel-header { display: flex; justify-content: space-between; align-items: center; }
.orders-list, .admin-list { display: flex; flex-direction: column; gap: 10px; }

.order-row {
  background: var(--glass);
  border: 1px solid var(--border-ice);
  border-radius: 15px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.status-pending { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.status-paid, .status-delivering { background: rgba(56, 189, 248, 0.18); color: #bae6fd; }
.status-completed { background: rgba(52, 211, 153, 0.18); color: #a7f3d0; }
.status-failed, .status-cancelled { background: rgba(251, 113, 133, 0.18); color: #fecdd3; }

/* Admin */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi-card { background: var(--glass); border: 1px solid var(--border-ice); border-top-color: var(--border-top); border-radius: 16px; padding: 14px 16px; }
.kpi-label { font-size: 12px; color: var(--text-muted); }
.kpi-val { font-size: 21px; font-weight: 800; color: var(--gold); margin-top: 4px; }

.admin-subtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.subtab-btn { padding: 8px 14px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-ice); color: var(--text-muted); font-family: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.subtab-btn.active { background: rgba(251, 191, 36, 0.16); border-color: var(--border-glow); color: var(--gold); }
.subtab-panel { display: none; }
.subtab-panel.active { display: flex; flex-direction: column; gap: 14px; }

.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-toolbar select, .admin-toolbar input, .settings-grid input, textarea { background: rgba(2, 6, 20, 0.68); border: 1px solid var(--border-ice); border-radius: 11px; padding: 9px 12px; }
.admin-toolbar select { width: auto; min-width: 150px; }
.admin-toolbar input { flex: 1; min-width: 180px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.toggles-row { display: flex; gap: 18px; flex-wrap: wrap; }
.toggle-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.divider { border: none; border-top: 1px solid var(--border-ice); margin: 6px 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.82); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.icon-close { background: rgba(255, 255, 255, 0.08); border: none; color: var(--text-main); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; }
.summary-box { background: rgba(2, 6, 20, 0.65); border: 1px solid var(--border-ice); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.summary-row.total { border-top: 1px solid var(--border-ice); padding-top: 8px; font-size: 16px; color: var(--gold); }
.pay-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.pay-opt { background: rgba(2, 6, 20, 0.68); border: 1px solid var(--border-ice); border-radius: 13px; padding: 11px 8px; color: var(--text-main); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit; font-size: 12.5px; font-weight: 700; transition: all 0.15s ease; }
.pay-ico { font-size: 18px; }
.pay-opt small { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.pay-opt.active { border-color: var(--ice); background: rgba(56, 189, 248, 0.18); box-shadow: 0 0 18px rgba(56, 189, 248, 0.18); }

.pay-instructions { background: rgba(2, 6, 20, 0.68); border: 1px solid var(--border-ice); border-radius: 14px; padding: 14px; font-size: 13.5px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.copy-box { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.06); padding: 9px 11px; border-radius: 10px; font-family: monospace; font-size: 14px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--glass-strong); border: 1px solid var(--ice); color: var(--text-main); padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 100; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.glass-footer { display: flex; justify-content: center; gap: 10px; font-size: 12px; color: var(--text-muted); padding-top: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .hero-card { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .hero-visual { display: none; }
  .pay-methods { grid-template-columns: 1fr; }
}

/* === 15-THEME GALLERY & VARIABLES === */
.modal-wide { max-width: 720px; max-height: 86vh; overflow-y: auto; }
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }

.theme-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-ice);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.theme-tile:hover { transform: translateY(-2px); border-color: var(--ice); }
.theme-tile.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.28); }

.theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-meta strong { display: block; font-size: 12.5px; }
.theme-meta small { display: block; font-size: 11px; color: var(--text-muted); }

/* 2. Royal Obsidian Gold */
[data-theme="royal-gold"] {
  --body-bg: radial-gradient(ellipse 120% 80% at 50% -10%, #2a210c 0%, #0d0b07 58%, #050403 100%);
  --hero-bg: linear-gradient(135deg, rgba(48, 35, 10, 0.92), rgba(14, 11, 6, 0.96));
  --card-bg: linear-gradient(160deg, rgba(38, 29, 12, 0.72), rgba(14, 11, 7, 0.88));
  --glass: rgba(24, 19, 10, 0.65); --glass-strong: rgba(20, 16, 8, 0.9);
  --border-ice: rgba(251, 191, 36, 0.22); --border-top: rgba(254, 240, 138, 0.35);
  --ice: #fbbf24; --ice-soft: #fef08a; --gold: #fde047;
  --a1: #b45309; --a2: #f59e0b; --a3: #78350f; --a4: #eab308;
  --btn-ice-bg: linear-gradient(135deg, #f59e0b, #b45309);
}

/* 3. Cyber Neon 2077 */
[data-theme="cyber-neon"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #3b0764 0%, #0f0724 55%, #05020d 100%);
  --hero-bg: linear-gradient(135deg, rgba(88, 28, 135, 0.86), rgba(17, 7, 42, 0.95));
  --card-bg: linear-gradient(160deg, rgba(59, 7, 100, 0.6), rgba(15, 7, 36, 0.88));
  --glass: rgba(26, 11, 56, 0.62); --glass-strong: rgba(22, 9, 48, 0.9);
  --border-ice: rgba(232, 121, 249, 0.26); --border-top: rgba(103, 232, 249, 0.42);
  --ice: #22d3ee; --ice-soft: #a5f3fc; --gold: #f472b6;
  --btn-gold-bg: linear-gradient(135deg, #f472b6, #ec4899, #8b5cf6); --btn-gold-text: #ffffff;
  --btn-ice-bg: linear-gradient(135deg, #06b6d4, #6366f1);
  --a1: #d946ef; --a2: #06b6d4; --a3: #8b5cf6; --a4: #ec4899;
}

/* 4. Emerald Luxury */
[data-theme="emerald-luxe"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #064e3b 0%, #03221a 55%, #020e0b 100%);
  --hero-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(3, 30, 23, 0.95));
  --card-bg: linear-gradient(160deg, rgba(6, 78, 59, 0.65), rgba(3, 24, 18, 0.88));
  --glass: rgba(5, 46, 36, 0.6); --glass-strong: rgba(4, 38, 29, 0.9);
  --border-ice: rgba(52, 211, 153, 0.24); --border-top: rgba(167, 243, 208, 0.36);
  --ice: #34d399; --ice-soft: #a7f3d0; --gold: #fde047;
  --btn-ice-bg: linear-gradient(135deg, #10b981, #047857);
  --a1: #059669; --a2: #14b8a6; --a3: #f59e0b; --a4: #10b981;
}

/* 5. Frosted Pearl (Light Mode) */
[data-theme="frost-white"] {
  --body-bg: radial-gradient(ellipse 130% 85% at 50% -10%, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
  --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(224, 242, 254, 0.9));
  --card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.92));
  --input-bg: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.92);
  --border-ice: rgba(59, 130, 246, 0.2); --border-top: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a; --text-muted: #475569;
  --ice: #0284c7; --ice-soft: #0369a1; --gold: #d97706;
  --a1: #93c5fd; --a2: #bae6fd; --a3: #fde68a; --a4: #c7d2fe;
}
[data-theme="frost-white"] .tabs-bar { background: rgba(255, 255, 255, 0.72); }
[data-theme="frost-white"] .metric-pill { background: rgba(14, 165, 233, 0.1); color: #0f172a; border-color: rgba(14, 165, 233, 0.22); }
[data-theme="frost-white"] .tab-btn.active { color: #0f172a; background: rgba(56, 189, 248, 0.22); }
[data-theme="frost-white"] .admin-toolbar select, [data-theme="frost-white"] .admin-toolbar input, [data-theme="frost-white"] .settings-grid input, [data-theme="frost-white"] textarea { background: rgba(255, 255, 255, 0.9); color: #0f172a; }
[data-theme="frost-white"] .summary-box, [data-theme="frost-white"] .pay-opt, [data-theme="frost-white"] .pay-instructions { background: rgba(241, 245, 249, 0.92); color: #0f172a; }

/* 6. Crimson Velvet */
[data-theme="crimson-velvet"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #500724 0%, #240512 55%, #0c0206 100%);
  --hero-bg: linear-gradient(135deg, rgba(136, 19, 55, 0.88), rgba(36, 5, 18, 0.96));
  --card-bg: linear-gradient(160deg, rgba(102, 14, 42, 0.65), rgba(30, 6, 15, 0.88));
  --glass: rgba(56, 10, 26, 0.62); --glass-strong: rgba(45, 8, 21, 0.9);
  --border-ice: rgba(251, 113, 133, 0.26); --border-top: rgba(254, 205, 211, 0.35);
  --ice: #fb7185; --ice-soft: #fecdd3; --gold: #fde047;
  --btn-ice-bg: linear-gradient(135deg, #f43f5e, #be123c);
  --a1: #be123c; --a2: #e11d48; --a3: #f59e0b; --a4: #9f1239;
}

/* 7. Sakura Midnight */
[data-theme="sakura-night"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #4a1d48 0%, #1a0b26 55%, #090410 100%);
  --hero-bg: linear-gradient(135deg, rgba(112, 26, 117, 0.85), rgba(26, 11, 38, 0.95));
  --card-bg: linear-gradient(160deg, rgba(88, 28, 92, 0.64), rgba(24, 10, 36, 0.88));
  --glass: rgba(44, 16, 56, 0.62); --glass-strong: rgba(36, 12, 46, 0.9);
  --border-ice: rgba(244, 114, 182, 0.25); --border-top: rgba(251, 207, 232, 0.38);
  --ice: #f472b6; --ice-soft: #fbcfe8; --gold: #fde68a;
  --btn-ice-bg: linear-gradient(135deg, #ec4899, #a855f7);
  --a1: #db2777; --a2: #c084fc; --a3: #f472b6; --a4: #7e22ce;
}

/* 8. Deep Ocean Abyss */
[data-theme="ocean-abyss"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #0e4a5c 0%, #05222d 55%, #020c12 100%);
  --hero-bg: linear-gradient(135deg, rgba(14, 116, 144, 0.86), rgba(5, 34, 45, 0.95));
  --card-bg: linear-gradient(160deg, rgba(14, 90, 114, 0.62), rgba(4, 28, 38, 0.88));
  --glass: rgba(7, 45, 58, 0.6); --glass-strong: rgba(5, 36, 48, 0.9);
  --border-ice: rgba(34, 211, 238, 0.24); --border-top: rgba(165, 243, 252, 0.36);
  --ice: #22d3ee; --ice-soft: #a5f3fc; --gold: #fde047;
  --btn-ice-bg: linear-gradient(135deg, #06b6d4, #0284c7);
  --a1: #0891b2; --a2: #2dd4bf; --a3: #0284c7; --a4: #0d9488;
}

/* 9. Desert Sunset Amber */
[data-theme="sunset-amber"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #7c2d12 0%, #2a1008 55%, #0e0503 100%);
  --hero-bg: linear-gradient(135deg, rgba(154, 52, 18, 0.88), rgba(42, 16, 8, 0.95));
  --card-bg: linear-gradient(160deg, rgba(124, 45, 18, 0.62), rgba(34, 13, 6, 0.88));
  --glass: rgba(58, 22, 10, 0.62); --glass-strong: rgba(45, 16, 7, 0.9);
  --border-ice: rgba(251, 146, 60, 0.26); --border-top: rgba(254, 215, 170, 0.36);
  --ice: #fb923c; --ice-soft: #fed7aa; --gold: #fde047;
  --btn-ice-bg: linear-gradient(135deg, #f97316, #ea580c);
  --a1: #ea580c; --a2: #f59e0b; --a3: #dc2626; --a4: #fb923c;
}

/* 10. Cosmic Nebula */
[data-theme="cosmic-nebula"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #312e81 0%, #0b0a24 55%, #03030c 100%);
  --hero-bg: linear-gradient(135deg, rgba(67, 56, 202, 0.85), rgba(11, 10, 36, 0.96));
  --card-bg: linear-gradient(160deg, rgba(49, 46, 129, 0.62), rgba(11, 10, 34, 0.88));
  --glass: rgba(22, 20, 62, 0.62); --glass-strong: rgba(17, 15, 50, 0.9);
  --border-ice: rgba(165, 180, 252, 0.24); --border-top: rgba(224, 231, 255, 0.38);
  --ice: #818cf8; --ice-soft: #c7d2fe; --gold: #fde047;
  --btn-ice-bg: linear-gradient(135deg, #6366f1, #4f46e5);
  --a1: #4f46e5; --a2: #a855f7; --a3: #ec4899; --a4: #38bdf8;
}

/* 11. Apple Titanium Slate */
[data-theme="titanium-slate"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #27272a 0%, #111114 55%, #09090b 100%);
  --hero-bg: linear-gradient(135deg, rgba(63, 63, 70, 0.82), rgba(24, 24, 27, 0.95));
  --card-bg: linear-gradient(160deg, rgba(46, 46, 52, 0.72), rgba(20, 20, 24, 0.88));
  --glass: rgba(32, 32, 37, 0.68); --glass-strong: rgba(24, 24, 28, 0.92);
  --border-ice: rgba(212, 212, 216, 0.18); --border-top: rgba(255, 255, 255, 0.28);
  --ice: #e4e4e7; --ice-soft: #f4f4f5; --gold: #fbbf24;
  --btn-ice-bg: linear-gradient(135deg, #52525b, #27272a);
  --a1: #52525b; --a2: #71717a; --a3: #a1a1aa; --a4: #3f3f46;
}

/* 12. Mint Glacier (Light Mode) */
[data-theme="mint-breeze"] {
  --body-bg: radial-gradient(ellipse 130% 85% at 50% -10%, #ccfbf1 0%, #ecfdf5 55%, #f8fafc 100%);
  --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(209, 250, 229, 0.88));
  --card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 245, 0.92));
  --input-bg: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.75); --glass-strong: rgba(255, 255, 255, 0.94);
  --border-ice: rgba(16, 185, 129, 0.22); --border-top: rgba(255, 255, 255, 0.95);
  --text-main: #064e3b; --text-muted: #047857;
  --ice: #059669; --ice-soft: #065f46; --gold: #d97706;
  --btn-ice-bg: linear-gradient(135deg, #10b981, #059669);
  --a1: #6ee7b7; --a2: #5eead4; --a3: #fde68a; --a4: #a7f3d0;
}
[data-theme="mint-breeze"] .tabs-bar { background: rgba(255, 255, 255, 0.75); }
[data-theme="mint-breeze"] .metric-pill { background: rgba(16, 185, 129, 0.12); color: #064e3b; border-color: rgba(16, 185, 129, 0.25); }
[data-theme="mint-breeze"] .tab-btn.active { color: #064e3b; background: rgba(16, 185, 129, 0.2); }
[data-theme="mint-breeze"] .admin-toolbar select, [data-theme="mint-breeze"] .admin-toolbar input, [data-theme="mint-breeze"] .settings-grid input, [data-theme="mint-breeze"] textarea { background: rgba(255, 255, 255, 0.92); color: #064e3b; }
[data-theme="mint-breeze"] .summary-box, [data-theme="mint-breeze"] .pay-opt, [data-theme="mint-breeze"] .pay-instructions { background: rgba(236, 253, 245, 0.92); color: #064e3b; }

/* 13. Telegram Dark Pro */
[data-theme="telegram-native"] {
  --body-bg: linear-gradient(180deg, #17212b 0%, #0e1621 100%);
  --hero-bg: linear-gradient(135deg, rgba(36, 56, 78, 0.95), rgba(23, 33, 43, 0.98));
  --card-bg: linear-gradient(160deg, rgba(32, 43, 54, 0.9), rgba(23, 33, 43, 0.96));
  --glass: rgba(23, 33, 43, 0.85); --glass-strong: rgba(23, 33, 43, 0.96);
  --border-ice: rgba(42, 171, 238, 0.24); --border-top: rgba(100, 181, 246, 0.32);
  --ice: #2aabee; --ice-soft: #90caf9; --gold: #ffd54f;
  --btn-ice-bg: linear-gradient(135deg, #2aabee, #229ed9);
  --a1: #2aabee; --a2: #1e88e5; --a3: #26a69a; --a4: #1565c0;
}

/* 14. Borealis Green */
[data-theme="northern-emerald"] {
  --body-bg: radial-gradient(ellipse 120% 85% at 50% -10%, #115e59 0%, #081c24 55%, #03090e 100%);
  --hero-bg: linear-gradient(135deg, rgba(17, 94, 89, 0.86), rgba(15, 23, 42, 0.96));
  --card-bg: linear-gradient(160deg, rgba(15, 76, 72, 0.65), rgba(8, 22, 32, 0.88));
  --glass: rgba(10, 38, 42, 0.62); --glass-strong: rgba(8, 30, 34, 0.9);
  --border-ice: rgba(45, 212, 191, 0.24); --border-top: rgba(153, 246, 228, 0.36);
  --ice: #2dd4bf; --ice-soft: #99f6e4; --gold: #a3e635;
  --btn-gold-bg: linear-gradient(135deg, #bef264, #84cc16); --btn-gold-text: #0f172a;
  --btn-ice-bg: linear-gradient(135deg, #2dd4bf, #0d9488);
  --a1: #10b981; --a2: #8b5cf6; --a3: #14b8a6; --a4: #06b6d4;
}

/* 15. Diamond Ice Crystal */
[data-theme="diamond-frost"] {
  --body-bg: radial-gradient(ellipse 130% 85% at 50% -10%, #1e3a8a 0%, #0f172a 55%, #020617 100%);
  --hero-bg: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(15, 23, 42, 0.95));
  --card-bg: linear-gradient(160deg, rgba(30, 58, 138, 0.62), rgba(15, 23, 42, 0.88));
  --glass: rgba(15, 28, 66, 0.62); --glass-strong: rgba(15, 23, 56, 0.9);
  --border-ice: rgba(186, 230, 253, 0.28); --border-top: rgba(255, 255, 255, 0.48);
  --ice: #7dd3fc; --ice-soft: #e0f2fe; --gold: #38bdf8;
  --btn-gold-bg: linear-gradient(135deg, #e0f2fe, #7dd3fc, #38bdf8); --btn-gold-text: #0c4a6e;
  --btn-ice-bg: linear-gradient(135deg, #60a5fa, #3b82f6);
  --a1: #3b82f6; --a2: #e0f2fe; --a3: #38bdf8; --a4: #6366f1;
}

/* === Admin: Kalitlar === */
.keys-note { font-size: 13px; opacity: .8; margin: 0 0 12px; line-height: 1.5; }
.keys-status { display: grid; gap: 8px; margin-bottom: 14px; }
.key-row { display: grid; grid-template-columns: 140px auto 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.key-row small { opacity: .7; word-break: break-all; }
#adm-keys textarea { width: 100%; box-sizing: border-box; resize: vertical; font: 13px/1.4 ui-monospace, monospace;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); color: inherit; }
#adm-keys .secret-text:not(:focus) { -webkit-text-security: disc; }
@media (max-width: 560px) { .key-row { grid-template-columns: 1fr auto; } .key-row small { grid-column: 1/-1; } }
