* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #050510;
  --bg-2: #0b0b1c;
  --card: rgba(20, 22, 45, .65);
  --border: rgba(120, 130, 220, .22);
  --border-strong: rgba(140, 150, 250, .55);
  --text: #ffffff;
  --muted: #a1a1c2;
  --cyan: #00f5ff;
  --purple: #7b2ff7;
  --indigo: #6366f1;
  --green: #00ff9c;
  --pink: #ff5fb3;
  --red: #ff4d6d;
  --yellow: #ffd166;
  --danger: #ff9aa8;

  --tier-blue:   #5b8bff;
  --tier-purple: #a371ff;
  --tier-pink:   #ff5fb3;
  --tier-cyan:   #00d6e6;
  --tier-green:  #36e08e;
  --tier-red:    #ff5470;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(99, 102, 241, .18), transparent 32%),
    radial-gradient(circle at 88% 85%, rgba(123, 47, 247, .20), transparent 36%),
    var(--bg);
  overflow-x: hidden;
}

#bgCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

a { color: var(--cyan); }

/* =========================================================
   ENTRY (auth) page — mostly kept from original, polished.
   ========================================================= */
.entry-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.entry-card {
  width: 100%; max-width: 480px; margin: auto;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 40px rgba(0,0,0,.4), 0 0 80px rgba(123,47,247,.12);
  animation: pop .45s ease;
  text-align: center;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; margin-bottom: 16px;
  border: 1px solid rgba(0, 245, 255, .2);
  border-radius: 999px;
  color: var(--cyan); background: rgba(0,245,255,.09);
  font-size: .75rem; font-weight: 900; letter-spacing: 1.5px;
}
.top-pills {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.pill {
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 800;
}
.pill.green { color: #7dffbf; background: rgba(0,255,156,.12); border: 1px solid rgba(0,255,156,.2); }
.pill.blue  { color: #7eefff; background: rgba(0,245,255,.12); border: 1px solid rgba(0,245,255,.2); }

.entry-card h1 {
  margin-bottom: 12px; font-size: 2.4rem; line-height: 1; letter-spacing: -1px;
  background: linear-gradient(90deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sub { margin-bottom: 20px; color: var(--muted); line-height: 1.55; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 20px 0; padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.tab {
  min-height: 44px; border: 0; border-radius: 999px;
  color: var(--muted); background: transparent; font-weight: 900;
}
.tab.active {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 22px rgba(0,245,255,.18);
}

.notice {
  padding: 13px; margin-bottom: 16px;
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 16px;
  color: #dffcff; background: rgba(0,245,255,.1);
}

.entry-card form { text-align: left; }
label { display: block; margin: 14px 0 8px; color: var(--muted); font-size: .92rem; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; outline: none;
  padding: 14px 16px;
  color: white;
  background: rgba(255,255,255,.06);
  font-size: 1rem;
}
input:focus, textarea:focus {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.captcha-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 10px;
}
.captcha {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(99,102,241,.32);
  border-radius: 16px;
  background: rgba(99,102,241,.18);
  font-weight: 900; font-size: 1.1rem;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.main-btn {
  width: 100%; margin-top: 18px; border: 0; border-radius: 18px;
  padding: 16px;
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  font-size: 1rem; font-weight: 900; transition: .18s;
}
.main-btn:hover { transform: translateY(-1px); }
.main-btn:active { transform: scale(.98); }
.main-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.ghost-btn {
  width: 100%; margin-top: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 14px;
  color: white; background: rgba(255,255,255,.06);
  font-weight: 900;
}

.msg { min-height: 22px; margin-top: 14px; color: var(--muted); line-height: 1.4; text-align: center; }
.msg.error   { color: var(--danger); }
.msg.success { color: var(--green); }
.copy-msg    { color: var(--green); min-height: 20px; margin-top: 6px; font-size: .9rem; }

/* =========================================================
   PANEL PAGE — Instant Access layout
   ========================================================= */
.panel-page { min-height: 100vh; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 28, .55);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 0;
}
.topbar-title { font-weight: 900; letter-spacing: .5px; font-size: .95rem; }
.topbar-pills {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.pill-mini {
  padding: 3px 8px; border-radius: 999px;
  font-size: .65rem; font-weight: 800; letter-spacing: .3px;
  white-space: nowrap;
}
.pill-mini.green { color: #7dffbf; background: rgba(0,255,156,.1); border: 1px solid rgba(0,255,156,.18); }
.pill-mini.blue  { color: #7eefff; background: rgba(0,245,255,.1); border: 1px solid rgba(0,245,255,.18); }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.icon-btn span { width: 18px; height: 2px; background: white; border-radius: 2px; }
.icon-btn-ghost {
  width: auto; padding: 0 14px;
  flex-direction: row;
  font-weight: 900; font-size: .8rem; letter-spacing: 1px; color: var(--cyan);
}

/* Panel content */
.panel-main {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.hero { text-align: center; margin-bottom: 32px; }
.hero-title {
  font-size: 3rem; letter-spacing: -1.5px; margin-bottom: 8px;
  background: linear-gradient(90deg, #a371ff, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); }

/* Referral card */
.referral-card {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(14px);
  margin-bottom: 32px;
  box-shadow: 0 0 60px rgba(99,102,241,.08);
}
.referral-left h3 { margin-bottom: 6px; font-size: 1.2rem; }
.referral-left p { margin-bottom: 14px; }
.invite-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; margin-bottom: 12px;
  border: 1px solid rgba(163,113,255,.4);
  border-radius: 999px;
  background: rgba(163,113,255,.15);
  font-size: .82rem; font-weight: 800; color: #d8b9ff;
}
.referral-right { text-align: center; min-width: 130px; }
.ref-count {
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, #a371ff, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ref-label { font-size: .7rem; letter-spacing: 1.5px; color: var(--muted); margin-top: 4px; }

.link-box {
  display: flex; align-items: stretch;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 10, 28, .8);
}
.link-box input {
  flex: 1; border: 0; border-radius: 0;
  background: transparent; padding: 14px;
  font-family: ui-monospace, "Cascadia Code", monospace; font-size: .92rem;
}
.link-box button {
  border: 0; padding: 0 18px;
  color: white; background: linear-gradient(90deg, var(--purple), var(--indigo));
  font-weight: 900; font-size: .9rem;
}

/* Tier grid */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.tier-card {
  display: flex; flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,22,45,.7), rgba(15,17,38,.85));
  backdrop-filter: blur(14px);
  transition: .2s;
  position: relative;
  overflow: hidden;
}
.tier-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tier-card h3 {
  font-size: 1.7rem; letter-spacing: -.5px; margin-bottom: 12px;
}
.tier-card[data-color="blue"]   h3 { color: var(--tier-blue); }
.tier-card[data-color="purple"] h3 { color: var(--tier-purple); }
.tier-card[data-color="pink"]   h3 { color: var(--tier-pink); }
.tier-card[data-color="cyan"]   h3 { color: var(--tier-cyan); }
.tier-card[data-color="green"]  h3 { color: var(--tier-green); }
.tier-card[data-color="red"]    h3 { color: var(--tier-red); }

.tier-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.tier-badge.invites { color: #ff8eb6; border-color: rgba(255,142,182,.3); background: rgba(255,142,182,.1); }
.tier-badge.price   { color: #93c5fd; border-color: rgba(147,197,253,.3); background: rgba(147,197,253,.1); }

.feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: .92rem;
  color: #d4d4e0;
}
.feature-list li::before {
  content: "•"; position: absolute; left: 0; top: 4px;
  color: var(--tier-purple); font-size: 1.2rem; line-height: 1;
}
.tier-card[data-color="blue"]   .feature-list li::before { color: var(--tier-blue); }
.tier-card[data-color="purple"] .feature-list li::before { color: var(--tier-purple); }
.tier-card[data-color="pink"]   .feature-list li::before { color: var(--tier-pink); }
.tier-card[data-color="cyan"]   .feature-list li::before { color: var(--tier-cyan); }
.tier-card[data-color="green"]  .feature-list li::before { color: var(--tier-green); }
.tier-card[data-color="red"]    .feature-list li::before { color: var(--tier-red); }

.tier-size {
  margin-top: auto;
  padding: 18px; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(8, 10, 28, .55);
  margin-bottom: 14px;
}
.tier-size strong { display: block; font-size: 1.6rem; }
.tier-size span { font-size: .68rem; letter-spacing: 1.5px; color: var(--muted); }
.tier-card[data-color="blue"]   .tier-size strong { color: var(--tier-blue); }
.tier-card[data-color="purple"] .tier-size strong { color: var(--tier-purple); }
.tier-card[data-color="pink"]   .tier-size strong { color: var(--tier-pink); }
.tier-card[data-color="cyan"]   .tier-size strong { color: var(--tier-cyan); }
.tier-card[data-color="green"]  .tier-size strong { color: var(--tier-green); }
.tier-card[data-color="red"]    .tier-size strong { color: var(--tier-red); }

.tier-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-buy, .btn-invites {
  border: 0; border-radius: 12px; padding: 12px;
  font-weight: 900; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-buy {
  color: white;
  background: linear-gradient(90deg, var(--tier-purple), var(--indigo));
}
.tier-card[data-color="blue"]   .btn-buy { background: linear-gradient(90deg, var(--tier-blue), #3b82f6); }
.tier-card[data-color="purple"] .btn-buy { background: linear-gradient(90deg, var(--tier-purple), var(--indigo)); }
.tier-card[data-color="pink"]   .btn-buy { background: linear-gradient(90deg, var(--tier-pink), #d946ef); }
.tier-card[data-color="cyan"]   .btn-buy { background: linear-gradient(90deg, var(--tier-cyan), #06b6d4); }
.tier-card[data-color="green"]  .btn-buy { background: linear-gradient(90deg, var(--tier-green), #10b981); }
.tier-card[data-color="red"]    .btn-buy { background: linear-gradient(90deg, var(--tier-red), #ef4444); }

.btn-invites {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #d4d4e0;
}
.btn-invites.unlocked {
  background: rgba(0,255,156,.12);
  border-color: rgba(0,255,156,.32);
  color: #7dffbf;
}

/* How to Purchase */
.howto-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(14px);
  text-align: center;
}
.howto-card h3 {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fde047, #fb923c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.howto-card h3::before { content: "💡"; -webkit-text-fill-color: initial; }

/* =========================================================
   DRAWER (sidebar)
   ========================================================= */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; max-width: 80vw;
  z-index: 60;
  background: linear-gradient(180deg, #0a0c20, #060816);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  transform: translateX(0);
  transition: transform .25s ease;
  overflow-y: auto;
}
.drawer.hidden { display: block !important; transform: translateX(-110%); pointer-events: none; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.drawer-head { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: white; font-size: 1.2rem;
}
.drawer-nav { display: flex; flex-direction: column; gap: 6px; }
.drawer-item {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: white; font-weight: 700;
}
.drawer-item:hover { background: rgba(255,255,255,.07); }
.drawer-item.locked { opacity: .65; }
.drawer-item.unlocked { border-color: rgba(0,255,156,.3); background: rgba(0,255,156,.08); color: #b9ffd9; }
.drawer-section {
  margin: 14px 6px 4px; font-size: .7rem; letter-spacing: 2px;
  color: var(--muted); font-weight: 900;
}
.drawer-support {
  margin-top: 8px;
  background: rgba(0,30,15,.4); border-color: rgba(0,255,156,.2);
}
.drawer-support .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--green); margin-right: 6px; }
.drawer-logout {
  background: rgba(60,0,10,.45);
  border-color: rgba(255,77,109,.3);
  color: #ff8a9e;
}

/* =========================================================
   MODAL (purchase)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
  padding: 20px;
  overflow-y: auto;
}
.modal-card {
  width: 100%; max-width: 580px;
  max-height: 92vh; overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, #0c0f24, #070a18);
  box-shadow: 0 0 60px rgba(99,102,241,.25);
  padding: 24px;
}
.modal-card.small { max-width: 440px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 1.6rem;
  background: linear-gradient(90deg, #a371ff, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: white; font-size: 1.4rem; line-height: 1;
}
.modal-tabs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 18px;
}
.modal-tab {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #d4d4e0; font-weight: 800; font-size: .9rem;
}
.modal-tab.active {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  border-color: transparent;
  box-shadow: 0 0 24px rgba(99,102,241,.3);
}

.info-box {
  padding: 16px;
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 14px;
  background: rgba(99,102,241,.08);
  margin-bottom: 16px;
}
.info-box.light {
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}
.info-box strong {
  display: block; margin-bottom: 6px;
  color: #c4b5fd;
}
.info-box p { color: var(--muted); font-size: .9rem; }
.info-box input {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: .9rem;
}

.warn-box {
  padding: 12px 14px;
  border: 1px solid rgba(251,191,36,.3);
  border-radius: 12px;
  background: rgba(251,191,36,.08);
  color: #fde047;
  font-size: .88rem; margin-bottom: 14px;
}
.warn-box strong { display: block; margin-bottom: 4px; }

.platform-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.platform-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: white;
  text-align: left;
}
.platform-item:hover { background: rgba(255,255,255,.06); }
.platform-item.selected {
  border-color: var(--border-strong);
  background: rgba(99,102,241,.12);
}
.platform-item small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.platform-item .arrow { color: var(--muted); }

.crypto-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ghost-mini {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: white; font-size: .8rem;
}
.crypto-tickers {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-bottom: 16px;
}
.ticker-btn {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: white;
  font-size: .8rem; font-weight: 800;
  text-align: center;
}
.ticker-btn small {
  display: block; margin-top: 2px;
  color: var(--muted); font-size: .68rem; font-weight: 600;
}
.ticker-btn.active {
  background: linear-gradient(180deg, rgba(99,102,241,.3), rgba(123,47,247,.3));
  border-color: var(--border-strong);
}

.crypto-eq { font-family: ui-monospace, monospace; margin: 4px 0 6px; font-size: 1.05rem; }

.addr-row { display: flex; gap: 6px; margin-bottom: 16px; }
.addr-row input {
  font-family: ui-monospace, monospace; font-size: .85rem;
  background: rgba(8, 10, 28, .8);
}
.copy-btn {
  width: 50px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--purple), var(--indigo));
  color: white; font-size: 1.1rem;
}

.video-wrap {
  position: relative; padding-top: 56.25%;
  margin-top: 8px; border-radius: 12px; overflow: hidden;
  background: black;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: .7rem; cursor: help; margin-left: 4px;
}

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-shell { padding: 24px; max-width: 1400px; margin: 0 auto; }
.admin-shell h1 { margin-bottom: 18px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.04); color: white; font-weight: 800;
}
.admin-tabs button.active {
  background: linear-gradient(90deg, var(--purple), var(--indigo)); border-color: transparent;
}
.admin-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--card);
}
.admin-table th, .admin-table td {
  padding: 12px; text-align: left; font-size: .88rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.admin-table th { background: rgba(255,255,255,.04); color: var(--muted); font-weight: 700; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .mono { font-family: ui-monospace, monospace; font-size: .82rem; word-break: break-all; }
.status-pending  { color: var(--yellow); }
.status-approved { color: var(--green); }
.status-rejected { color: var(--danger); }
.row-actions { display: flex; gap: 6px; }
.row-actions button {
  padding: 6px 10px; border: 0; border-radius: 8px;
  font-weight: 800; font-size: .8rem; color: white;
}
.btn-approve { background: linear-gradient(90deg, var(--green), #10b981); color: #051b10; }
.btn-reject  { background: linear-gradient(90deg, #ff4d6d, #ef4444); }

.admin-orders-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px; max-height: 280px; overflow-y: auto;
}
.admin-orders-list .custom-order-item {
  display: grid; grid-template-columns: auto auto 1fr auto;
  gap: 10px; align-items: center;
}
.admin-orders-list .custom-order-item.active-order {
  border-color: rgba(99, 102, 241, .5);
  background: rgba(99, 102, 241, .12);
}
.admin-chat-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.admin-chat-panel h3 { margin-bottom: 12px; }

/* --- Admin dashboard / stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: .02em;
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-card.accent-yellow .stat-value { color: var(--yellow); }
.stat-card.accent-green  .stat-value { color: var(--green); }
.stat-card.accent-red    .stat-value { color: var(--red); }
.stat-card.accent-cyan   .stat-value { color: var(--cyan); }
.stats-section h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--muted);
}

/* =========================================================
   FLOATING TELEGRAM SERVER LINK
   ========================================================= */
@keyframes tg-glow {
  0%, 100% { box-shadow: -6px 0 28px rgba(0, 180, 255, .55), 0 0 18px rgba(0, 136, 204, .35); }
  50%       { box-shadow: -10px 0 40px rgba(0, 220, 255, .75), 0 0 30px rgba(0, 136, 204, .55); }
}
@keyframes tg-pulse-ring {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.tg-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(160deg, #0099e6 0%, #0077b8 55%, #005f99 100%);
  border: 2px solid rgba(120, 220, 255, .65);
  border-right: 0;
  color: #ffffff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  animation: tg-glow 2.4s ease-in-out infinite;
  transition: transform .2s, filter .2s;
}
.tg-float:hover {
  transform: translateY(-50%) translateX(-6px) scale(1.04);
  filter: brightness(1.12);
  color: #fff;
}
.tg-float-pulse {
  position: absolute;
  top: 14px; left: 50%;
  width: 36px; height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  animation: tg-pulse-ring 2s ease-out infinite;
  pointer-events: none;
}
.tg-float-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 16px rgba(255, 255, 255, .25);
}
.tg-float-icon svg { display: block; }
.tg-float-label {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  line-height: 1.1;
}

/* =========================================================
   TOPBAR NOTIFICATIONS
   ========================================================= */
.topbar-actions {
  display: flex; align-items: center; gap: 8px;
}
.notif-wrap { position: relative; }
.notif-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: width .2s, height .2s, background .2s;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; /* hidden until .has-count */
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(340px, 92vw);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #0e1028, #080a18);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 80;
  overflow: hidden;
}
.notif-head {
  padding: 12px 14px;
  font-weight: 900; font-size: .85rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.notif-item:last-child { border-bottom: 0; }
.notif-icon { font-size: 1.1rem; line-height: 1.2; }
.notif-body { flex: 1; font-size: .88rem; line-height: 1.35; }
.notif-body b { color: #c4b5fd; }

/* =========================================================
   CUSTOM PACK SECTION
   ========================================================= */
.custom-pack-section {
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 200, 80, .25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 180, 50, .08), rgba(20, 22, 45, .75));
  backdrop-filter: blur(14px);
  box-shadow: 0 0 60px rgba(255, 180, 50, .08);
}
.custom-pack-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.custom-pack-badge {
  display: inline-block;
  padding: 5px 12px; margin-bottom: 8px;
  border-radius: 999px;
  font-size: .7rem; font-weight: 900; letter-spacing: 1.5px;
  color: #ffd166;
  background: rgba(255, 209, 102, .12);
  border: 1px solid rgba(255, 209, 102, .3);
}
.custom-pack-header h2 {
  font-size: 2rem; margin-bottom: 4px;
  background: linear-gradient(90deg, #ffd166, #fb923c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.custom-price-display { text-align: right; }
.price-original {
  display: block;
  font-size: 1rem; color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.price-current {
  font-size: 2.4rem; font-weight: 900;
  color: #ffd166;
  line-height: 1;
}
.custom-step { margin-bottom: 20px; }
.custom-step h4 {
  margin-bottom: 12px; font-size: .85rem;
  letter-spacing: 1px; color: var(--muted); font-weight: 800;
}
.custom-categories {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.custom-cat-btn {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: white;
  transition: .15s;
}
.custom-cat-btn strong { display: block; font-size: .95rem; }
.custom-cat-btn small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.custom-cat-btn.active {
  border-color: rgba(255, 209, 102, .5);
  background: rgba(255, 209, 102, .12);
  box-shadow: 0 0 20px rgba(255, 209, 102, .15);
}
.custom-sizes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.custom-size-btn {
  position: relative;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: white; font-weight: 800; font-size: .95rem;
}
.custom-size-btn.active {
  border-color: rgba(99, 102, 241, .6);
  background: rgba(99, 102, 241, .15);
  box-shadow: 0 0 20px rgba(99, 102, 241, .2);
}
.size-tag {
  position: absolute; top: -8px; right: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: .62rem; font-weight: 900; letter-spacing: .5px;
}
.size-tag.popular { background: var(--purple); color: white; }
.size-tag.mega { background: linear-gradient(90deg, #ff4d6d, #fb923c); color: white; }
.custom-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 8px;
}
.custom-buy-btn {
  background: linear-gradient(90deg, #f59e0b, #fb923c) !important;
}
.drawer-section-inline {
  margin: 8px 0 16px;
  font-size: .7rem; letter-spacing: 2px;
  color: var(--muted); font-weight: 900;
  text-align: center;
}

/* =========================================================
   CUSTOM ORDER + CHAT
   ========================================================= */
.custom-orders-list-wrap { margin-top: 20px; }
.custom-orders-list-wrap h4 { margin-bottom: 10px; font-size: .9rem; }
.custom-orders-list { display: flex; flex-direction: column; gap: 8px; }
.custom-order-item {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: white;
  display: flex; gap: 10px; align-items: center;
}
.custom-order-item:hover { background: rgba(255,255,255,.07); }
.co-status {
  font-size: .7rem; font-weight: 900; padding: 3px 8px;
  border-radius: 999px; text-transform: uppercase;
}
.co-status.open { background: rgba(0,255,156,.15); color: #7dffbf; }
.co-status.closed { background: rgba(255,255,255,.08); color: var(--muted); }
.co-preview { flex: 1; font-size: .88rem; color: #d4d4e0; }

.chat-modal-card { max-width: 520px; }
.chat-messages {
  min-height: 220px; max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 10, 28, .6);
  margin-bottom: 12px;
}
.chat-line { margin-bottom: 12px; }
.chat-line.user { text-align: right; }
.chat-line.admin { text-align: left; }
.chat-bubble {
  display: inline-block;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .92rem; line-height: 1.4;
  word-break: break-word;
}
.chat-bubble.user {
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble.admin {
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border);
  color: #e8e8f0;
  border-bottom-left-radius: 4px;
}
.chat-time {
  font-size: .72rem; color: var(--muted);
  margin-top: 4px;
}
.chat-input-row {
  display: flex; gap: 8px;
}
.chat-input-row input { flex: 1; }
.chat-send-btn {
  width: auto; padding: 14px 20px; margin-top: 0;
}

/* =========================================================
   FLOATING CHAT INDICATOR
   ========================================================= */
#chatFloatWrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(99, 102, 241, .45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(20,22,45,.85));
  backdrop-filter: blur(12px);
  color: white;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 4px 24px rgba(99,102,241,.2);
  animation: chat-float-in .35s ease;
}
.chat-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(99,102,241,.35);
  border-color: rgba(99,102,241,.7);
}
.chat-float-btn.has-price {
  border-color: rgba(255,209,102,.5);
  background: linear-gradient(135deg, rgba(255,180,50,.18), rgba(20,22,45,.85));
  box-shadow: 0 4px 24px rgba(255,180,50,.2);
}
.chat-float-btn.has-price:hover {
  box-shadow: 0 6px 32px rgba(255,180,50,.35);
}
.chat-float-icon { font-size: 1.2rem; }
.chat-float-text { white-space: nowrap; }
.chat-float-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin-left: auto;
}
@keyframes chat-float-in {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   CHAT PAY BAR (user side — agreed price)
   ========================================================= */
.chat-pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid rgba(255,209,102,.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,180,50,.12), rgba(20,22,45,.7));
}
.chat-pay-info { display: flex; flex-direction: column; gap: 2px; }
.chat-pay-info strong { color: #ffd166; font-size: 1.1rem; }
.chat-pay-btn {
  width: auto !important;
  margin-top: 0 !important;
  padding: 12px 24px !important;
  background: linear-gradient(90deg, #f59e0b, #fb923c) !important;
  font-size: 1rem !important;
  white-space: nowrap;
}

/* =========================================================
   ADMIN PRICE ROW
   ========================================================= */
.admin-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.admin-price-row input {
  width: 120px !important;
  font-size: .9rem;
}
.admin-price-row .muted { font-size: .85rem; }
.admin-price-set { color: #ffd166; font-weight: 900; font-size: .95rem; }
#adminPriceMsg { min-height: 0; padding: 0; margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hero-title { font-size: 2.2rem; }
  .custom-categories { grid-template-columns: repeat(2, 1fr); }
  .custom-sizes { grid-template-columns: repeat(2, 1fr); }
  .custom-actions { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .referral-card { grid-template-columns: 1fr; }
  .referral-right { display: flex; gap: 14px; align-items: baseline; justify-content: flex-start; }
  .modal-tabs { grid-template-columns: 1fr; }
  .crypto-tickers { grid-template-columns: repeat(3, 1fr); }
  .entry-card { max-width: 100%; padding: 22px; border-radius: 26px; }
  .entry-card h1 { font-size: 2rem; }
  .panel-main { padding: 24px 14px 50px; }
  .tg-float { padding: 16px 10px; font-size: .7rem; }
  .tg-float-icon { width: 38px; height: 38px; }
  .tg-float-icon svg { width: 22px; height: 22px; }
  #chatFloatWrap { bottom: 16px; left: 16px; }
  .chat-float-btn { padding: 10px 14px; font-size: .82rem; }
  .chat-pay-bar { flex-direction: column; align-items: stretch; }
  .chat-pay-btn { width: 100% !important; }

  /* --- Topbar / modal tightening on small screens --- */
  .topbar { padding: 12px 14px; }
  .topbar-title { font-size: .85rem; }
  .modal-card { padding: 18px; border-radius: 18px; }
  .modal-card.small { padding: 18px; }

  /* --- Notifications panel: fixed full-width sheet under topbar --- */
  .notif-panel {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: 70vh;
  }
  .notif-list { max-height: calc(70vh - 46px); }
}

/* =========================================================
   NOTIFICATIONS — LIVE STREAM (new styles)
   ========================================================= */

/* Bell badge with count */
.notif-dot.has-count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,.6);
  top: -2px;
  right: -2px;
}

/* Notif items animate in */
.notif-item {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.notif-item.notif-item-visible {
  opacity: 1;
  transform: none;
}
/* Pulse ring on freshly-added notifs */
.notif-item-new {
  position: relative;
}
.notif-item-new::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99,102,241,.6);
  animation: notif-pulse 1.8s ease-out forwards;
}
@keyframes notif-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

/* =========================================================
   CHAT UNREAD BADGE — conversation list
   ========================================================= */
.custom-order-item {
  position: relative;
}
.custom-order-item.has-unread {
  border-color: rgba(99,102,241,.6) !important;
  background: rgba(99,102,241,.08) !important;
}
.co-unread-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,.7);
  font-size: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(239,68,68,.7); }
  50%       { box-shadow: 0 0 14px rgba(239,68,68,1); }
}

/* =========================================================
   CHAT FLOAT — unread indicator
   ========================================================= */
.chat-float-btn.has-unread {
  border-color: rgba(239,68,68,.7) !important;
  animation: float-shake 0.5s ease-in-out 1;
}
@keyframes float-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}
.chat-float-unread {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239,68,68,.7);
  border: 2px solid #0d0e1a;
}
.chat-float-btn {
  position: relative; /* needed for absolute badge */
}

/* =========================================================
   ADMIN DASHBOARD — CHARTS
   ========================================================= */
.chart-wrap {
  position: relative;
  height: 260px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.chart-wrap-small { max-width: 360px; margin: 0 auto; }
@media (max-width: 700px) {
  .chart-wrap { height: 220px; padding: 10px; }
}

/* =========================================================
   SHARE GUIDE — referral share button + platform grid
   ========================================================= */
.share-guide-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  color: white;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(0,245,255,.25), 0 4px 18px rgba(123,47,247,.25);
  animation: share-glow 2.6s ease-in-out infinite;
  transition: transform .18s, box-shadow .18s;
}
.share-guide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,245,255,.4), 0 6px 22px rgba(123,47,247,.35);
}
.share-guide-btn:active { transform: scale(.98); }
.share-guide-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  font-size: 1.05rem;
}
.share-guide-text { flex: 1; text-align: left; }
.share-guide-arrow {
  font-size: 1.2rem; font-weight: 900;
  transition: transform .18s;
}
.share-guide-btn:hover .share-guide-arrow { transform: translateX(4px); }

@keyframes share-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(0,245,255,.25), 0 4px 18px rgba(123,47,247,.25); }
  50%       { box-shadow: 0 0 36px rgba(0,245,255,.45), 0 4px 22px rgba(123,47,247,.4); }
}

/* Platform grid inside the share guide modal */
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.share-platform {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  transition: .18s;
}
.share-platform:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.share-platform-head {
  display: flex; align-items: center; gap: 10px;
}
.share-platform-head strong { font-size: .95rem; }
.share-platform-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-size: 1.15rem;
  color: var(--cyan);
}
.share-platform-tip {
  font-size: .82rem; line-height: 1.4; margin: 0; flex: 1;
}
.share-action-btn {
  width: 100%; margin-top: 0;
  padding: 10px 14px;
  font-size: .85rem;
  border-radius: 12px;
}

/* Brand colors */
.share-platform[data-platform="x"] .share-platform-icon { color: #ffffff; }
.share-platform[data-platform="telegram"] .share-platform-icon { color: #29b6f6; }
.share-platform[data-platform="reddit"] .share-platform-icon { color: #ff4500; }
.share-platform[data-platform="facebook"] .share-platform-icon { color: #1877f2; }
.share-platform[data-platform="whatsapp"] .share-platform-icon { color: #25d366; }
.share-platform[data-platform="tumblr"] .share-platform-icon { color: #36465d; }
.share-platform[data-platform="discord"] .share-platform-icon { color: #5865f2; }
.share-platform[data-platform="tiktok"] .share-platform-icon { color: #ff0050; }
.share-platform[data-platform="instagram"] .share-platform-icon { color: #e1306c; }

@media (max-width: 700px) {
  .share-platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .share-platforms { grid-template-columns: 1fr; }
  .share-guide-text { font-size: .92rem; }
}

/* =========================================================
   WELCOME ANIMATION (post-signup "wow" moment)
   ========================================================= */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(123,47,247,.35), rgba(5,5,16,.92) 65%);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.welcome-overlay.show { opacity: 1; visibility: visible; }
.welcome-overlay.hidden { display: flex !important; }
.welcome-overlay:not(.show) { pointer-events: none; }

.confetti-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.welcome-card {
  position: relative;
  width: 100%; max-width: 440px;
  padding: 40px 32px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,22,45,.92), rgba(8,10,24,.96));
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 80px rgba(123,47,247,.35), 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.85) translateY(30px);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.welcome-overlay.show .welcome-card { transform: scale(1) translateY(0); }

.welcome-card::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 28px;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--pink), var(--green), var(--purple));
  z-index: -2;
  animation: welcome-border 4s linear infinite;
  opacity: .8;
}
.welcome-card::after {
  content: "";
  position: absolute; inset: 1px;
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(20,22,45,.96), rgba(8,10,24,.98));
  z-index: -1;
}
@keyframes welcome-border {
  to { transform: rotate(360deg); }
}

.welcome-icon {
  position: relative;
  width: 84px; height: 84px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-size: 2.2rem; color: #04200f;
  box-shadow: 0 0 40px rgba(0,255,156,.45);
  animation: welcome-icon-pop .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
.welcome-icon::before, .welcome-icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0,255,156,.5);
  animation: welcome-ring 2.2s ease-out infinite;
}
.welcome-icon::after { animation-delay: .6s; }
@keyframes welcome-icon-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes welcome-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.welcome-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; margin-bottom: 14px;
  border-radius: 999px;
  font-size: .7rem; font-weight: 900; letter-spacing: 2px;
  color: #7dffbf;
  background: rgba(0,255,156,.12);
  border: 1px solid rgba(0,255,156,.3);
  animation: welcome-fade-up .5s ease .25s both;
}

.welcome-title {
  font-size: 1.9rem; letter-spacing: -.5px; margin-bottom: 10px;
  background: linear-gradient(90deg, #a371ff, #00f5ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: welcome-fade-up .5s ease .32s both;
}

.welcome-sub {
  color: var(--muted); line-height: 1.55; margin-bottom: 26px;
  animation: welcome-fade-up .5s ease .4s both;
}

@keyframes welcome-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.welcome-continue {
  position: relative;
  overflow: hidden;
  animation: welcome-fade-up .5s ease .48s both;
}
.welcome-continue::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: welcome-shine 2.6s ease-in-out 1.2s infinite;
}
@keyframes welcome-shine {
  0%   { left: -60%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

@media (max-width: 700px) {
  .welcome-card { padding: 32px 22px; border-radius: 22px; }
  .welcome-icon { width: 68px; height: 68px; font-size: 1.8rem; margin-bottom: 16px; }
  .welcome-title { font-size: 1.5rem; }
  .welcome-sub { font-size: .92rem; margin-bottom: 20px; }
}

/* =========================================================
   PHASE 5 — MICRO-INTERACTIONS (3D tilt, ripple, transitions)
   ========================================================= */

/* 3D tilt hover effect */
.main-btn, .ghost-btn, .btn-buy, .btn-invites, .tier-card, .icon-btn, .tab, .modal-tab,
.custom-cat-btn, .custom-size-btn, .ticker-btn, .platform-item, .share-platform,
.share-action-btn, .share-guide-btn, .chat-float-btn, .drawer-item, .pill, .pill-mini, .panel-tab {
  --tiltX: 0deg; --tiltY: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}
.main-btn:hover, .ghost-btn:hover, .btn-buy:hover, .btn-invites:hover, .tier-card:hover,
.icon-btn:hover, .tab:hover, .modal-tab:hover, .custom-cat-btn:hover, .custom-size-btn:hover,
.ticker-btn:hover, .platform-item:hover, .share-platform:hover, .share-action-btn:hover,
.share-guide-btn:hover, .chat-float-btn:hover, .drawer-item:hover, .pill:hover, .pill-mini:hover,
.panel-tab:hover {
  transform: perspective(700px) rotateX(var(--tiltX)) rotateY(var(--tiltY)) translateY(-3px) translateZ(0);
  transition: transform .05s linear;
}
.main-btn:active, .ghost-btn:active, .btn-buy:active, .btn-invites:active, .tier-card:active,
.icon-btn:active, .tab:active, .modal-tab:active, .custom-cat-btn:active, .custom-size-btn:active,
.ticker-btn:active, .platform-item:active, .share-platform:active, .share-action-btn:active,
.share-guide-btn:active, .chat-float-btn:active, .drawer-item:active, .pill:active, .pill-mini:active,
.panel-tab:active {
  transform: perspective(700px) rotateX(var(--tiltX)) rotateY(var(--tiltY)) scale(.97) translateZ(0);
  transition: transform .05s linear;
}

/* Click ripple */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,0) 70%);
  transform: scale(0);
  pointer-events: none;
  z-index: 9999;
  animation: click-ripple-anim .55s ease-out forwards;
}
@keyframes click-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* Page fade-in */
#panelPage:not(.hidden) {
  animation: page-fade-in .5s cubic-bezier(.16,1,.3,1);
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Modal entrance transitions */
.modal:not(.hidden) {
  animation: modal-overlay-in .25s ease;
}
.modal:not(.hidden) .modal-card {
  animation: modal-card-in .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-card-in {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Panel tab switch fade-in */
.panel-section.hidden { display: none; }
.panel-section-in {
  animation: panel-section-in .4s cubic-bezier(.16,1,.3,1);
}
@keyframes panel-section-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Panel tabs nav */
.panel-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.panel-tab {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 900; font-size: .9rem;
  transition: .18s;
}
.panel-tab.active {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0,245,255,.18);
}
@media (max-width: 700px) {
  .panel-tabs { gap: 6px; }
  .panel-tab { padding: 10px 14px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-card::before { animation: none; }
  .welcome-icon { animation: none; }
  .welcome-icon::before, .welcome-icon::after { animation: none; opacity: 0; }
  .welcome-badge, .welcome-title, .welcome-sub, .welcome-continue { animation: none; opacity: 1; transform: none; }
  .welcome-continue::after { animation: none; display: none; }

  /* Phase 5 micro-interactions */
  #panelPage:not(.hidden), .modal:not(.hidden), .modal:not(.hidden) .modal-card,
  .panel-section-in, .click-ripple {
    animation: none !important;
  }
  .main-btn:hover, .ghost-btn:hover, .btn-buy:hover, .btn-invites:hover, .tier-card:hover,
  .icon-btn:hover, .tab:hover, .modal-tab:hover, .custom-cat-btn:hover, .custom-size-btn:hover,
  .ticker-btn:hover, .platform-item:hover, .share-platform:hover, .share-action-btn:hover,
  .share-guide-btn:hover, .chat-float-btn:hover, .drawer-item:hover, .pill:hover, .pill-mini:hover,
  .panel-tab:hover,
  .main-btn:active, .ghost-btn:active, .btn-buy:active, .btn-invites:active, .tier-card:active,
  .icon-btn:active, .tab:active, .modal-tab:active, .custom-cat-btn:active, .custom-size-btn:active,
  .ticker-btn:active, .platform-item:active, .share-platform:active, .share-action-btn:active,
  .share-guide-btn:active, .chat-float-btn:active, .drawer-item:active, .pill:active, .pill-mini:active,
  .panel-tab:active {
    transform: none !important;
  }
}
