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

:root {
  --bg: #0A0E1A;
  --bg-2: #0F1424;
  --card: #131A2E;
  --card-2: #1A2340;
  --border: #232C48;
  --text: #E8ECF8;
  --muted: #7B85A8;
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --violet: #A855F7;
  --violet-soft: rgba(168, 85, 247, 0.12);
  --green: #4ADE80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --pink: #F472B6;
  --pink-soft: rgba(244, 114, 182, 0.12);
  --red: #F87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --telegram: #229ED9;
  --telegram-soft: rgba(34, 158, 217, 0.12);
  --radius: 14px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.light {
  --bg: #F4F6FB;
  --bg-2: #EBEFF8;
  --card: #FFFFFF;
  --card-2: #F7F9FE;
  --border: #DDE4F0;
  --text: #0B1020;
  --muted: #5A6584;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(74, 222, 128, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 0 14px 40px;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.container { max-width: 1080px; margin: 0 auto; }

.ticker-tape {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08), rgba(74, 222, 128, 0.08));
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 -14px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
}
.ticker-tape::before, .ticker-tape::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.ticker-tape::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-tape::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track {
  display: inline-block;
  animation: scroll-ticker 40s linear infinite;
  padding-left: 20px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 32px;
}
.ticker-item .sym { color: var(--cyan); font-weight: 600; }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  color: #0A0E1A;
  font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.5), inset 0 0 12px rgba(255,255,255,0.3);
}
.logo-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 4px;
  display: none;
}
@media (min-width: 520px) { .logo-tag { display: inline; } }

.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.balance-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.balance-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.08), transparent);
  animation: chip-shine 3s ease-in-out infinite;
}
@keyframes chip-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.balance-chip i { color: var(--cyan); position: relative; }
.balance-chip span { position: relative; }

.icon-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
.menu-wrap { position: relative; }
.menu-dropdown {
  position: absolute;
  top: 48px; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  min-width: 200px;
  padding: 6px;
  display: none;
  z-index: 100;
}
.menu-dropdown.open { display: block; animation: fadeIn 0.15s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-dropdown button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: 0.15s;
}
.menu-dropdown button:hover { background: var(--cyan-soft); color: var(--cyan); }
.menu-dropdown button i { width: 18px; }
.menu-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 8px; }

.disclaimer {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 10px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  font-family: var(--font-mono);
}
.disclaimer i { font-size: 1.1rem; flex-shrink: 0; }
.disclaimer strong { color: var(--violet); font-weight: 700; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 9px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
  display: flex; align-items: center; gap: 7px;
  border-radius: 10px;
  letter-spacing: 0.01em;
}
.tab-btn i { font-size: 0.9rem; }
.tab-btn:hover { color: var(--cyan); background: var(--cyan-soft); }
.tab-btn.active {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

/* ===== TELEGRAM CONNECT CARD ===== */
.tg-card {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.1), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(34, 158, 217, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.tg-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.15), transparent 60%);
  pointer-events: none;
}
.tg-card.connected {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 211, 238, 0.05));
  border-color: rgba(74, 222, 128, 0.35);
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.tg-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--telegram), #1E88C7);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
}
.tg-icon.connected {
  background: linear-gradient(135deg, var(--green), #22C55E);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.4);
}
.tg-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.tg-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.tg-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.tg-btn {
  background: linear-gradient(135deg, var(--telegram), #1E88C7);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.35);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.tg-btn:hover {
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.55);
  transform: translateY(-1px);
}
.tg-btn.connected {
  background: linear-gradient(135deg, var(--green), #22C55E);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.35);
  cursor: default;
}
.tg-btn.connected:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.35);
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), transparent);
}
.stat-card:hover {
  border-color: var(--accent, var(--cyan));
  transform: translateY(-2px);
}
.stat-card .stat-icon {
  font-size: 1.1rem;
  color: var(--accent, var(--cyan));
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.rank-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft, var(--cyan-soft));
  color: var(--accent, var(--cyan));
  border: 1px solid var(--accent, var(--cyan));
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: 0.2s;
  letter-spacing: 0.02em;
}
.pill:hover { color: var(--cyan); border-color: var(--cyan); }
.pill.active {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.task-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--task-color, var(--cyan));
  opacity: 0.6;
}
.task-card:hover {
  border-color: var(--task-color, var(--cyan));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.task-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.task-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.task-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 14px;
  align-items: center;
  font-family: var(--font-mono);
}
.reward-chip {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.task-progress {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--card-2);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
}

.btn {
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0A0E1A;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3);
}
.btn:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.5);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--muted);
  box-shadow: none;
  transform: none;
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: none;
}
.btn-danger {
  background: linear-gradient(135deg, var(--red), #DC2626);
  color: white;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }

.wallet-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(168, 85, 247, 0.12), transparent 50%);
  pointer-events: none;
}
.wallet-balance {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 4px;
  color: var(--text);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}
.wallet-rupee {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.progress-track {
  background: var(--card-2);
  height: 8px;
  border-radius: 30px;
  overflow: hidden;
  margin: 16px 0 8px;
  position: relative;
  z-index: 1;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 30px;
  width: 0%;
  transition: width 0.5s;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.method-group { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.method-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-2);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.15s;
}
.method-option:hover { border-color: var(--cyan); }
.method-option input[type="radio"] { accent-color: var(--cyan); width: 16px; height: 16px; }
.method-option i { width: 18px; text-align: center; }

.input-field {
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  transition: 0.15s;
}
.input-field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.input-field::placeholder { color: var(--muted); }

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: 0.15s;
}
.history-item:hover { border-color: var(--cyan); }
.history-item .title { font-weight: 500; font-size: 0.92rem; }
.history-item .meta {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.history-item .reward {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(34, 211, 238, 0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.2s;
}
.modal-overlay.open .modal-card { transform: scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.15s;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 6px;
  padding-right: 34px;
  font-weight: 600;
}
.modal-desc { color: var(--muted); margin-bottom: 18px; font-size: 0.88rem; }

.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0;
  min-height: 78px;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 14px 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.quiz-question { margin-bottom: 16px; }
.quiz-question p { font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.quiz-option {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: 0.15s;
}
.quiz-option:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.quiz-option input[type="radio"] { accent-color: var(--cyan); }

.toast-container {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  animation: toastIn 0.25s ease;
  color: var(--text);
  max-width: 90vw;
  font-family: var(--font-mono);
}
.toast.success { border-color: var(--green); box-shadow: 0 0 24px rgba(74, 222, 128, 0.25); }
.toast.success i { color: var(--green); }
.toast.error { border-color: var(--red); box-shadow: 0 0 24px rgba(248, 113, 113, 0.25); }
.toast.error i { color: var(--red); }
.toast.info { border-color: var(--amber); box-shadow: 0 0 24px rgba(251, 191, 36, 0.2); }
.toast.info i { color: var(--amber); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links span { cursor: pointer; transition: 0.15s; }
.footer-links span:hover { color: var(--cyan); }

.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.hidden { display: none !important; }

@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  body { padding: 0 10px 30px; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-actions { width: 100%; justify-content: space-between; }
  .tab-btn { padding: 8px 12px; font-size: 0.78rem; }
  .wallet-balance { font-size: 2rem; }
  .modal-card { padding: 20px 16px; }
  .footer { flex-direction: column; text-align: center; }
}