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

/* ─── TIER PROGRESS CARD ─── */
.tier-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(236,72,153,0.05) 50%, rgba(250,204,21,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 24px;
}
.tier-left { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.tier-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 24px rgba(108,99,255,0.35);
  transition: background 0.4s ease;
}
.tier-info .tier-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}
.tier-info .tier-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.tier-info .tier-rate {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: 'Space Mono', monospace;
}
.tier-progress-wrap { flex: 1; min-width: 200px; }
.tier-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tier-progress-top span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.tier-pct { font-family: 'Space Mono', monospace; color: #fff !important; }
.tier-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tier-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #8b7cff, #6C63FF);
  border-radius: 50px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1), background 0.4s ease;
}
.tier-next {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .tier-card { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px; }
  .tier-progress-wrap { width: 100%; }
}

/* ─── FULL TIER LADDER ON DASHBOARD ─── */
.tier-ladder-dash {
  margin-bottom: 32px;
}
.tier-ladder-dash-head { margin-bottom: 16px; }
.tier-ladder-dash-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.tier-ladder-dash-head p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.tier-ladder-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dt-tile {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.dt-tile:hover { transform: translateY(-3px); }
.dt-locked { opacity: 0.55; }
.dt-current { border-color: rgba(255,255,255,0.3); box-shadow: 0 12px 40px rgba(108,99,255,0.18); }
.dt-tag-current {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}
.dt-tag-unlocked {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}
.dt-top {
  padding: 22px 18px 18px;
  text-align: center;
  color: #fff;
  position: relative;
}
.dt-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.dt-top > * { position: relative; z-index: 1; }
.dt-emoji { font-size: 32px; margin-bottom: 6px; }
.dt-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.dt-range {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin: 4px 0 12px;
}
.dt-rate {
  font-family: 'Space Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dt-rate span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}
.dt-reward {
  padding: 16px 18px 18px;
}
.dt-reward-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dt-gift { font-size: 18px; }
.dt-reward-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.dt-reward-items {
  list-style: none;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.dt-reward-items li {
  padding-left: 14px;
  position: relative;
}
.dt-reward-items li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}
.dt-reward-none .dt-reward-items li::before { content: '•'; }

@media (max-width: 800px) {
  .tier-ladder-dash-grid { grid-template-columns: 1fr; }
}


:root {
  --bg: #080808;
  --bg2: #0d0d0d;
  --surface: #111;
  --surface2: #171717;
  --surface3: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0f0f0;
  --text2: #888;
  --text3: #444;
  --accent: #6C63FF;
  --accent2: #a78bfa;
  --green: #22c55e;
  --gold: #f5c542;
  --red: #f87171;
  --purple: #a78bfa;
  --sidebar-w: 232px;
  --topbar-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --t: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Space Grotesk', sans-serif; display: flex; overflow-x: hidden; line-height: 1.5; }
a { color: var(--accent2); text-decoration: none; cursor: pointer; }

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--t);
}
.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { font-family: 'Space Mono', monospace; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.dot { color: var(--accent); }
.sidebar-close { display: none; background: none; border: none; color: var(--text2); font-size: 18px; cursor: pointer; }

.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text2); font-size: 13.5px; font-weight: 500;
  transition: var(--t); cursor: pointer; position: relative;
  text-decoration: none; user-select: none;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: rgba(108,99,255,0.13); color: var(--accent2); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.live-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livePulse 2s infinite; flex-shrink: 0; }
@keyframes livePulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.5)} 50%{box-shadow:0 0 0 5px rgba(34,197,94,0)} }

.sidebar-bottom { padding: 14px 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: var(--surface2); }
.su-avatar-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; cursor: pointer; }
.su-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; overflow: hidden; }
.su-avatar-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: 0; transition: opacity .2s; }
.su-avatar-wrap:hover .su-avatar-overlay { opacity: 1; }
.su-info { overflow: hidden; flex: 1; min-width: 0; }
.su-info strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-username-row { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.su-username { font-size: 11px; color: #7c3aed; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-edit-btn { background: none; border: none; cursor: pointer; font-size: 11px; padding: 0; line-height: 1; opacity: 0.5; transition: opacity .15s; flex-shrink: 0; }
.su-edit-btn:hover { opacity: 1; }
.su-info span { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.signout-btn { width: 100%; padding: 9px; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text2); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--t); }
.signout-btn:hover { border-color: var(--red); color: var(--red); }

/* ─── MAIN ─── */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.9); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
}
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 18px; cursor: pointer; padding: 4px; }
.topbar-left { flex: 1; }
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-date { font-size: 11px; color: var(--text3); display: block; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.live-indicator {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--green); letter-spacing: 1px;
  padding: 6px 12px; border-radius: 50px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
}
.live-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: livePulse 1.5s infinite; display: inline-block; }
.topbar-code { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 7px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; }
.tc-label { font-size: 9px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.tc-value { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent2); letter-spacing: 2px; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; cursor: pointer; }
.dash-cart-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  position: relative; transition: background 0.18s, border-color 0.18s;
  cursor: pointer; font-family: inherit;
}
.dash-cart-btn:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.dash-cart-btn svg { flex-shrink: 0; opacity: 0.85; width: 13px; height: 13px; }
.dash-cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ─── SECTIONS ─── */
.dash-section { display: none; padding: 28px; flex: 1; animation: fadeUp 0.3s ease; }
.dash-section.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

.section-tag-db { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.section-tag-db::before { content:''; display:inline-block; width:14px; height:1px; background:var(--accent); }
.section-h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.section-p { font-size: 14px; color: var(--text2); margin-bottom: 28px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }

/* ─── WELCOME BANNER ─── */
.welcome-banner { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(108,99,255,0.03)); border: 1px solid rgba(108,99,255,0.18); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px; gap: 16px; }
.wb-text h2 { font-size: 19px; font-weight: 700; margin-bottom: 3px; }
.wb-text p { font-size: 13px; color: var(--text2); }
.wb-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wb-cta { padding: 9px 18px; background: var(--accent); color: white; border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--t); white-space: nowrap; cursor: pointer; }
.wb-cta:hover { background: var(--accent2); }
.wb-demo { padding: 9px 18px; background: transparent; border: 1px solid var(--border2); color: var(--text2); border-radius: 50px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); white-space: nowrap; }
.wb-demo:hover { border-color: var(--accent); color: var(--text); }

/* ─── STATS GRID ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: var(--t); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.stat-card.accent { border-color: rgba(34,197,94,0.12); }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sc-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.sc-trend { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 50px; background: rgba(34,197,94,0.1); color: var(--green); }
.sc-value { font-family: 'Space Mono', monospace; font-size: 34px; font-weight: 700; line-height: 1; margin-bottom: 10px; color: var(--text); }
.sc-value.green { color: var(--green); }
.sc-value.purple { color: var(--accent2); }
.sc-value.gold { color: var(--gold); }
.sc-bottom { display: flex; align-items: center; gap: 8px; }
.sc-icon-sm { font-size: 14px; }
.sc-sub { font-size: 11px; color: var(--text3); }

/* ─── OVERVIEW MID ─── */
.overview-mid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-bottom: 20px; }
.overview-qr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; align-items: center; gap: 20px; }
.oqc-left { flex: 1; }
.oqc-left h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.oqc-left p { font-size: 13px; color: var(--text2); margin-bottom: 14px; line-height: 1.5; }
.ref-link-wrap { display: flex; gap: 8px; margin-bottom: 10px; }
.ref-link-input { flex: 1; padding: 9px 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text2); font-family: 'Space Mono', monospace; font-size: 10px; outline: none; min-width: 0; }
.copy-btn { padding: 9px 14px; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); white-space: nowrap; }
.copy-btn:hover { background: var(--accent2); }
.share-row { display: flex; gap: 6px; }
.share-btn { padding: 6px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 50px; color: var(--text2); font-family: 'Space Grotesk', sans-serif; font-size: 12px; cursor: pointer; transition: var(--t); }
.share-btn:hover { border-color: var(--accent); color: var(--text); }
.oqc-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.oqc-qr canvas { border-radius: 10px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.qr-mini-label { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--accent2); letter-spacing: 2px; }

/* CHART CARD */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chart-header h3 { font-size: 15px; font-weight: 700; }
.chart-total { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent2); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bar { flex: 1; background: rgba(108,99,255,0.15); border-radius: 4px 4px 0 0; min-height: 4px; cursor: pointer; transition: background 0.2s, height 0.5s cubic-bezier(0.4,0,0.2,1); }
.bar:hover, .bar.today { background: var(--accent); }
.bar-days { display: flex; gap: 6px; margin-top: 6px; }
.bar-day { flex: 1; text-align: center; font-size: 9px; color: var(--text3); font-family: 'Space Mono', monospace; }

/* ACTIVITY CARD */
/* ─── LEADERBOARD ─── */
.leaderboard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.lb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lb-header h3 { font-size: 16px; font-weight: 700; }
.lb-sub { font-size: 12px; color: var(--text3); }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 28px; text-align: center; font-size: 16px; flex-shrink: 0; }
.lb-rank.top { font-weight: 700; color: var(--accent2); font-size: 13px; }
.lb-user { flex: 1; }
.lb-username { font-size: 14px; font-weight: 600; color: var(--accent2); }
.lb-username.is-you { color: #22c55e; }
.lb-username.is-you::after { content: ' (you)'; font-size: 11px; font-weight: 400; color: var(--text3); }
.lb-convs { font-size: 11px; color: var(--text3); margin-top: 2px; }
.lb-earned { font-size: 14px; font-weight: 700; color: #22c55e; flex-shrink: 0; }
.lb-empty { font-size: 13px; color: var(--text3); padding: 16px; text-align: center; }

/* FOLLOWING */
.fw-tab { background: none; border: 1px solid #2a2a2a; border-radius: 20px; padding: 6px 14px; color: #666; font-size: 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; cursor: pointer; transition: all .15s; }
.fw-tab:hover { color: #aaa; border-color: #444; }
.fw-tab.active { background: rgba(124,58,237,0.15); border-color: #7c3aed; color: #c4b5fd; }
.fw-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.fw-row:last-child { border-bottom: none; }
.fw-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#a855f7); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.fw-info { flex: 1; min-width: 0; }
.fw-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-handle { font-size: 12px; color: #7c3aed; margin-top: 1px; }
.fw-stats { display: flex; gap: 16px; flex-shrink: 0; }
.fw-stat { display: flex; flex-direction: column; align-items: center; }
.fw-stat-val { font-size: 14px; font-weight: 700; }
.fw-stat-val.green { color: #22c55e; }
.fw-stat-label { font-size: 10px; color: #555; margin-top: 1px; }
.fw-action-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Space Grotesk', sans-serif; border: 1px solid; transition: all .15s; flex-shrink: 0; }
.fw-follow   { background: rgba(124,58,237,0.15); border-color: #7c3aed; color: #c4b5fd; }
.fw-follow:hover { background: rgba(124,58,237,0.3); }
.fw-accept   { background: rgba(34,197,94,0.12); border-color: #22c55e; color: #4ade80; }
.fw-accept:hover { background: rgba(34,197,94,0.25); }
.fw-decline  { background: rgba(220,38,38,0.08); border-color: #dc2626; color: #f87171; }
.fw-decline:hover { background: rgba(220,38,38,0.2); }
.fw-unfollow { background: #1a1a1a; border-color: #2a2a2a; color: #666; }
.fw-unfollow:hover { border-color: #dc2626; color: #f87171; }
#followSearchInput:focus { border-color: #7c3aed !important; }

.activity-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.ac-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ac-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ac-more { font-size: 13px; color: var(--accent2); cursor: pointer; }
.live-chip { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--green); background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); padding: 3px 8px; border-radius: 50px; letter-spacing: 1px; animation: liveChip 2s ease-in-out infinite; }
@keyframes liveChip { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ─── ACTIVITY ITEMS ─── */
.activity-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); transition: var(--t); }
.activity-item:last-child { border-bottom: none; }
.activity-item.new-item { animation: slideIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes slideIn { from { opacity:0; transform:translateX(-16px); } to { opacity:1; transform:translateX(0); } }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ai-dot.scan { background: var(--accent); }
.ai-dot.conversion { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.ai-content { flex: 1; }
.ai-title { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.ai-meta { font-size: 11px; color: var(--text3); }
.ai-amount { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ai-amount.earned { color: var(--green); }
.ai-amount.pending-amt { color: var(--gold); }

/* ─── EMPTY STATE ─── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; text-align: center; }
.empty-state span { font-size: 32px; }
.empty-state p { font-size: 14px; color: var(--text2); max-width: 300px; line-height: 1.6; }
.btn-shop-now { display: inline-block; margin-top: 8px; padding: 10px 20px; background: var(--accent); color: white; border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--t); }
.btn-shop-now:hover { background: var(--accent2); }

/* ─── QR CODE PAGE ─── */
.qr-page { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.qr-page-left {}
.qr-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.qsr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; transition: var(--t); }
.qsr-card:hover { border-color: var(--border2); }
.qsr-card.green { border-color: rgba(34,197,94,0.15); }
.qsr-card.purple { border-color: rgba(108,99,255,0.15); }
.qsr-card.gold { border-color: rgba(245,197,66,0.15); }
.qsr-val { display: block; font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.qsr-card.green .qsr-val { color: var(--green); }
.qsr-card.purple .qsr-val { color: var(--accent2); }
.qsr-card.gold .qsr-val { color: var(--gold); }
.qsr-label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.qsr-trend { display: block; font-size: 11px; color: var(--text3); }

.qr-actions-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-qr-download { padding: 11px 20px; background: var(--accent); color: white; border: none; border-radius: 50px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); }
.btn-qr-download:hover { background: var(--accent2); transform: translateY(-2px); }
.copy-btn-lg { padding: 11px 18px; background: transparent; color: var(--text2); border: 1px solid var(--border); border-radius: 50px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); }
.copy-btn-lg:hover { border-color: var(--accent); color: var(--text); }
.share-btn-lg { padding: 11px 18px; background: transparent; color: var(--text2); border: 1px solid var(--border); border-radius: 50px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--t); }
.share-btn-lg:hover { border-color: var(--accent); color: var(--text); }

.qr-code-box { background: rgba(108,99,255,0.07); border: 1px solid rgba(108,99,255,0.18); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 24px; }
.qcb-label { font-size: 9px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; font-family: 'Space Mono', monospace; margin-bottom: 6px; }
.qcb-value { font-family: 'Space Mono', monospace; font-size: 24px; font-weight: 700; color: var(--accent2); letter-spacing: 4px; margin-bottom: 4px; }
.qcb-url { font-size: 11px; color: var(--text3); font-family: 'Space Mono', monospace; word-break: break-all; }

.qr-howto { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.qr-howto h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.howto-steps { display: flex; flex-direction: column; gap: 10px; }
.hs { display: flex; align-items: flex-start; gap: 12px; }
.hs-num { width: 24px; height: 24px; border-radius: 50%; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--accent2); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Space Mono', monospace; }
.hs p { font-size: 13px; color: var(--text2); line-height: 1.5; padding-top: 3px; }

/* QR RIGHT */
.qr-page-right { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.qr-big-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-frame {
  position: relative;
  padding: 20px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 50px rgba(108,99,255,0.12);
}
.qr-frame canvas { display: block; border-radius: 6px; }
.qr-frame-corner { position: absolute; width: 20px; height: 20px; border-color: var(--accent); border-style: solid; }
.qr-frame-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.qr-frame-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.qr-frame-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.qr-frame-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
.qr-scan-overlay { position: absolute; inset: 20px; overflow: hidden; border-radius: 6px; pointer-events: none; }
.qr-scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(108,99,255,0.9), transparent); animation: scanMove 2.5s ease-in-out infinite; }
@keyframes scanMove { 0%{top:0;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{top:100%;opacity:0} }
.qr-brand-label { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--text3); letter-spacing: 2px; text-align: center; }

/* LIVE SCAN FEED */
.live-scan-feed { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lsf-header { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text2); font-weight: 600; }
#liveFeedItems { max-height: 180px; overflow-y: auto; }
.lsf-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12px; animation: slideIn 0.3s ease; }
.lsf-item:last-child { border-bottom: none; }
.lsf-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.lsf-dot.scan { background: var(--accent); }
.lsf-dot.conversion { background: var(--green); }
.lsf-city { flex: 1; color: var(--text2); }
.lsf-time { color: var(--text3); font-family: 'Space Mono', monospace; font-size: 10px; }
.lsf-amt { color: var(--green); font-weight: 700; font-family: 'Space Mono', monospace; font-size: 11px; }
.lsf-empty { padding: 20px; text-align: center; font-size: 12px; color: var(--text3); }
.live-indicator-lg { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; padding-top: 4px; }
.live-indicator-lg > div:first-child { display: flex; align-items: center; gap: 7px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--green); letter-spacing: 1px; }

/* ─── EARNINGS ─── */
.earnings-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-bottom: 24px; }
.earn-hero { background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.03)); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius); padding: 28px 32px; text-align: center; min-width: 220px; }
.eh-label { font-size: 12px; color: var(--text2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.eh-amount { font-family: 'Space Mono', monospace; font-size: 44px; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 20px; }
.btn-cashout { padding: 12px 24px; background: var(--green); color: #111; border: none; border-radius: 50px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--t); }
.btn-cashout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }
.btn-cashout:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.earn-metrics { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.em-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; height: 100%; }
.em-item { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.em-val { font-family: 'Space Mono', monospace; font-size: 24px; font-weight: 700; }
.em-val.purple { color: var(--accent2); }
.em-val.gold { color: var(--gold); }
.em-val.green { color: var(--green); }
.em-label { font-size: 12px; color: var(--text3); }

/* MONTHLY CHART */
.monthly-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.mcc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mcc-header h3 { font-size: 15px; font-weight: 700; }
.mcc-total { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent2); }
.monthly-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.m-bar { flex: 1; background: rgba(108,99,255,0.15); border-radius: 4px 4px 0 0; min-height: 4px; transition: var(--t); cursor: pointer; }
.m-bar:hover, .m-bar.current { background: var(--accent); }
.monthly-labels { display: flex; gap: 8px; margin-top: 8px; }
.m-label { flex: 1; text-align: center; font-size: 9px; color: var(--text3); font-family: 'Space Mono', monospace; }

/* PAYOUT SECTION */
.payout-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.payout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.payout-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pp-btn { padding: 10px 18px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 50px; color: #aaa; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; }
.pp-btn:hover { border-color: #444; color: #fff; }
.pp-btn.active { background: rgba(124,58,237,0.15); border-color: #7c3aed; color: #c4b5fd; font-weight: 600; }
#payoutHandleInput:focus { border-color: #7c3aed !important; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }

/* HISTORY TABLE */
.history-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ht-header-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.ht-header-row h3 { font-size: 15px; font-weight: 700; }
.tx-count { font-size: 12px; color: var(--text3); font-family: 'Space Mono', monospace; }
.ht-cols { display: grid; grid-template-columns: 130px 1fr 90px 90px; padding: 10px 22px; font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; font-family: 'Space Mono', monospace; border-bottom: 1px solid var(--border); }
.ht-row { display: grid; grid-template-columns: 130px 1fr 90px 90px; padding: 13px 22px; font-size: 13px; border-bottom: 1px solid var(--border); transition: var(--t); }
.ht-row:last-child { border-bottom: none; }
.ht-row:hover { background: var(--surface2); }
.ht-status { display: inline-flex; padding: 3px 9px; border-radius: 50px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.ht-status.completed { background: rgba(34,197,94,0.1); color: var(--green); }
.ht-status.pending { background: rgba(245,197,66,0.1); color: var(--gold); }

/* ─── ACTIVITY PAGE ─── */
.activity-live-box { background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.15); border-radius: var(--radius-sm); padding: 16px 20px; text-align: right; flex-shrink: 0; }
.alb-indicator { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--green); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.alb-stats { display: flex; gap: 8px; font-size: 12px; color: var(--text2); justify-content: flex-end; }
.alb-stats strong { color: var(--text); }
.activity-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.activity-filters { display: flex; gap: 6px; }
.af-btn { padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--t); }
.af-btn.active, .af-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.activity-search input { padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 13px; outline: none; width: 220px; transition: var(--t); }
.activity-search input:focus { border-color: var(--accent); }
.activity-grid { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.activity-feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.afc-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); font-weight: 600; }
.afc-count { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--text3); }
.activity-full-list { padding: 0 20px; max-height: 500px; overflow-y: auto; }
.activity-stats-col { display: flex; flex-direction: column; gap: 14px; }
.asc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.asc-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.top-days-list, .top-loc-list { display: flex; flex-direction: column; gap: 8px; }
.td-empty, .tl-empty { font-size: 12px; color: var(--text3); text-align: center; padding: 8px; }
.tl-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.tl-item span:first-child { color: var(--text2); }
.tl-item span:last-child { font-family: 'Space Mono', monospace; color: var(--accent2); }
.tl-bar { height: 3px; background: rgba(108,99,255,0.2); border-radius: 2px; margin-top: 3px; }
.tl-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s ease; }
.conv-donut-wrap { display: flex; align-items: center; gap: 16px; }
.conv-donut-wrap canvas { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dl-dot.purple { background: var(--accent); }
.dl-dot.green { background: var(--green); }

/* ─── PURCHASES ─── */
.btn-add-piece { padding: 10px 20px; background: var(--accent); color: white; border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--t); flex-shrink: 0; }
.btn-add-piece:hover { background: var(--accent2); }
.wardrobe-tabs { display:flex; gap:8px; margin-bottom:20px; }
.wardrobe-tab { padding:9px 22px; border-radius:50px; border:1px solid var(--border); background:transparent; color:var(--text2); font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:600; cursor:pointer; transition:var(--t); }
.wardrobe-tab.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.wardrobe-tab:hover:not(.active) { border-color:var(--accent); color:var(--text); }
.purchases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.purchase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--t); }
.purchase-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); }
.pc-img { position: relative; background: #1a1a1a; line-height: 0; }
.pc-img svg { width: 100%; height: 100%; }
.pc-info { padding: 14px 16px; }
.pc-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.pc-info p { font-size: 11px; color: var(--text2); margin-bottom: 8px; }
.pc-qr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-code { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--accent2); background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.15); padding: 5px 10px; border-radius: 6px; letter-spacing: 1px; }
.pc-scan-count { font-size: 11px; color: var(--text3); }

/* POTENTIAL CALC */
.potential-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.potential-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.potential-card > p { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.pot-calc { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pot-slider-wrap { flex: 1; min-width: 200px; }
.pot-slider-wrap label { font-size: 13px; color: var(--text2); display: block; margin-bottom: 8px; }
.pot-slider-wrap label strong { color: var(--text); }
.slider { width: 100%; -webkit-appearance: none; height: 4px; background: var(--surface2); border-radius: 2px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 8px rgba(108,99,255,0.4); }
.pot-result { background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(108,99,255,0.04)); border: 1px solid rgba(108,99,255,0.2); border-radius: var(--radius-sm); padding: 20px 28px; text-align: center; min-width: 160px; }
.pr-label { font-size: 11px; color: var(--text2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.pr-amount { font-family: 'Space Mono', monospace; font-size: 36px; font-weight: 700; color: var(--accent2); }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(6px); }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; padding: 32px; max-width: 380px; width: 90%; position: relative; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text2); font-size: 17px; cursor: pointer; }
.modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-box p { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 6px; }
.modal-amount-display { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--surface2); border-radius: 8px; margin: 14px 0; }
.mad-label { font-size: 12px; color: var(--text2); }
.mad-value { font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700; color: var(--green); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; color: var(--text3); font-weight: 600; letter-spacing: 0.5px; }
.form-group input { padding: 11px 13px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 14px; outline: none; }
.form-group input:focus { border-color: var(--accent); }
.modal-note { font-size: 11px; color: var(--text3); margin-top: 10px; padding: 8px 12px; background: var(--surface2); border-radius: 6px; }
.btn-submit-modal { width: 100%; margin-top: 16px; padding: 13px; background: var(--green); color: #111; border: none; border-radius: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--t); }
.btn-submit-modal:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }

/* ─── SCAN NOTIFICATION ─── */
.scan-notification {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 9000; min-width: 280px;
  transform: translateX(120%); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.scan-notification.show { transform: translateX(0); opacity: 1; }
.sn-icon { font-size: 26px; }
.sn-content { flex: 1; }
.sn-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.sn-meta { font-size: 11px; color: var(--text2); }
.sn-close { color: var(--text3); cursor: pointer; font-size: 14px; padding: 2px; }
.scan-notification.conversion { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.07); }

/* ─── TOAST ─── */
.db-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--surface); border: 1px solid var(--border2); color: var(--text); padding: 12px 22px; border-radius: 50px; font-size: 13px; font-weight: 600; z-index: 9999; opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 8px 30px rgba(0,0,0,0.4); white-space: nowrap; }
.db-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.db-toast.success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); color: var(--green); }
.db-toast.error { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.2); color: var(--red); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .overview-mid { grid-template-columns: 1fr; }
  .qr-page { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .earnings-top { grid-template-columns: 1fr; }
  .em-row { grid-template-columns: repeat(4,1fr); }
  .payout-grid { grid-template-columns: repeat(2,1fr); }
  .purchases-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-code, .live-indicator { display: none; }
  .dash-section { padding: 16px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .ht-cols, .ht-row { grid-template-columns: 100px 1fr auto; }
  .ht-cols span:nth-child(4), .ht-row span:nth-child(4) { display: none; }
  .purchases-grid { grid-template-columns: 1fr; }
  .pot-calc { flex-direction: column; }
  .payout-grid { grid-template-columns: repeat(2,1fr); }
  .em-row { grid-template-columns: repeat(2,1fr); }
  .overview-qr-card { flex-direction: column; }
  .oqc-qr { width: 100%; flex-direction: row; justify-content: flex-start; }
  .welcome-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .wb-actions { width: 100%; display: flex; gap: 8px; }
  .wb-cta, .wb-demo { flex: 1; text-align: center; }
  .activity-toolbar { flex-direction: column; align-items: flex-start; }
  .activity-search input { width: 100%; }
  .activity-filters { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats-grid { gap: 10px; }
  .sc-value { font-size: 28px; }
  .sc-card { padding: 16px; }
  .dash-section { padding: 12px; }
  .topbar { padding: 0 12px; }
  .topbar-title { font-size: 15px; }
  .topbar-date { display: none; }
  .topbar-avatar { width: 32px; height: 32px; font-size: 11px; }
  .qr-page { gap: 20px; }
  .qr-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .earn-hero { padding: 20px; }
  .eh-amount { font-size: 36px; }
  .payout-grid { grid-template-columns: repeat(2, 1fr); }
  .ht-cols, .ht-row { grid-template-columns: 90px 1fr auto; padding: 10px 14px; font-size: 12px; }
  .scan-notification { min-width: auto; left: 12px; right: 12px; bottom: 12px; }
  .purchases-grid { grid-template-columns: 1fr; }
  .section-h2 { font-size: 22px; }
  .chart-card, .activity-card { padding: 16px; }
  .qr-actions-row { flex-wrap: wrap; }
  .btn-qr-download, .copy-btn-lg, .share-btn-lg { flex: 1; text-align: center; }
}
