/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #07080f;
  --bg2:         #0d0f1a;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);

  --gold:        #f5a623;
  --gold2:       #ff8c00;
  --grad:        linear-gradient(135deg, #f5a623 0%, #ff6b35 100%);
  --grad-soft:   linear-gradient(135deg, rgba(245,166,35,.18) 0%, rgba(255,107,53,.12) 100%);

  --ton:         #0098ea;
  --ton-soft:    rgba(0,152,234,.15);
  --stars:       #a855f7;
  --stars-soft:  rgba(168,85,247,.15);

  --green:       #22d65f;
  --green-soft:  rgba(34,214,95,.12);
  --red:         #ff4757;
  --red-soft:    rgba(255,71,87,.12);
  --yellow:      #ffd32a;
  --yellow-soft: rgba(255,211,42,.12);

  --text:        #ffffff;
  --text2:       rgba(255,255,255,.55);
  --text3:       rgba(255,255,255,.3);

  --nav-h:       72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius:      18px;
  --radius-sm:   12px;

  --ease:        cubic-bezier(.4,0,.2,1);
  --spring:      cubic-bezier(.34,1.56,.64,1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Splash ─────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg);
  z-index: 1000;
  gap: 48px;
}
.splash-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-icon {
  width: 80px; height: 80px;
  background: var(--grad);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 60px rgba(245,166,35,.4);
  animation: pulse-glow 2s ease infinite;
}
.splash-name {
  font-size: 28px; font-weight: 800;
  letter-spacing: 3px;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.splash-loader {
  width: 160px; height: 3px;
  background: var(--surface2); border-radius: 99px; overflow: hidden;
}
.splash-bar {
  height: 100%; width: 40%;
  background: var(--grad); border-radius: 99px;
  animation: loading-bar 1.4s var(--ease) infinite;
}
@keyframes loading-bar {
  0%   { transform: translateX(-100%); width: 40%; }
  50%  { width: 70%; }
  100% { transform: translateX(350%); width: 40%; }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 40px rgba(245,166,35,.4); }
  50%     { box-shadow: 0 0 80px rgba(245,166,35,.7); }
}

/* ─── Layout ─────────────────────────────────────────────────── */
.layout { height: 100%; display: flex; flex-direction: column; }
.pages {
  flex: 1; overflow: hidden; position: relative;
}
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.page.active {
  opacity: 1; transform: none;
  pointer-events: auto;
}

/* ─── Bottom Nav ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(7,8,15,.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding-top: 8px;
  z-index: 100;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 6px 4px;
  color: var(--text3);
  transition: color .2s var(--ease), transform .15s var(--spring);
  position: relative;
}
.nav-btn svg { width: 22px; height: 22px; transition: transform .2s var(--spring); }
.nav-btn span { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.nav-btn.active { color: var(--gold); }
.nav-btn.active svg { transform: scale(1.1); }
.nav-btn:active { transform: scale(.92); }

.nav-btn-center {
  position: relative;
  color: var(--text3);
}
.nav-btn-center.active, .nav-btn-center:focus { color: var(--gold); }
.nav-btn-center svg {
  width: 26px; height: 26px;
  background: var(--grad);
  border-radius: 14px;
  padding: 5px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,166,35,.4);
  transition: box-shadow .2s, transform .2s var(--spring);
}
.nav-btn-center.active svg,
.nav-btn-center:focus svg {
  box-shadow: 0 6px 28px rgba(245,166,35,.6);
}
.nav-btn-glow {
  position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  background: radial-gradient(circle, rgba(245,166,35,.3) 0%, transparent 70%);
  pointer-events: none;
  animation: nav-pulse 2.5s ease infinite;
}
@keyframes nav-pulse {
  0%,100% { opacity: .5; transform: translateX(-50%) scale(.9); }
  50%      { opacity: 1;  transform: translateX(-50%) scale(1.1); }
}

/* ─── Shared Components ──────────────────────────────────────── */
.page-header {
  padding: 20px 20px 0;
  display: flex; align-items: center; gap: 12px;
}
.page-header h1 { font-size: 24px; font-weight: 800; }
.page-header-sub { color: var(--text2); font-size: 14px; margin-top: 2px; }

.section { padding: 20px 20px 0; }
.section-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s, background .2s;
}
.card:active { background: var(--surface2); border-color: var(--border2); }
.card-clickable { cursor: pointer; }
.card-clickable:active { transform: scale(.98); transition: transform .1s; }

.card-gold {
  background: var(--grad-soft);
  border-color: rgba(245,166,35,.25);
}
.card-glass {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
}

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 800; line-height: 1; }
.stat-value.gold { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-sub { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  transition: opacity .15s, transform .1s var(--spring), box-shadow .2s;
  cursor: pointer;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(245,166,35,.35);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(245,166,35,.5); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255,71,87,.2);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 10px;
  width: auto;
}
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; flex-shrink: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
}
.badge-green  { background: var(--green-soft);  color: var(--green); }
.badge-red    { background: var(--red-soft);    color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-gold   { background: var(--grad-soft);   color: var(--gold); }
.badge-ton    { background: var(--ton-soft);    color: var(--ton); }
.badge-stars  { background: var(--stars-soft);  color: var(--stars); }
.badge-gray   { background: var(--surface2);    color: var(--text2); }

/* Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.list-item:active { background: var(--surface2); border-color: var(--border2); }
.list-item-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: var(--surface2);
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; }
.list-item-sub { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 0 20px; }

/* Avatar */
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 0 24px rgba(245,166,35,.3);
}
.avatar-lg { width: 72px; height: 72px; font-size: 30px; border-radius: 22px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-input {
  width: 100%; padding: 14px 16px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 15px; font-weight: 500;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.form-input::placeholder { color: var(--text3); }
textarea.form-input { resize: none; line-height: 1.5; }
.form-hint { font-size: 12px; color: var(--text3); }

/* Tabs */
.tabs {
  display: flex; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px;
}
.tab-btn {
  flex: 1; padding: 8px 4px;
  border-radius: 9px;
  font-size: 12px; font-weight: 700;
  color: var(--text2);
  transition: all .2s var(--ease);
}
.tab-btn.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,166,35,.3);
}

/* Empty state */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 48px 24px;
  text-align: center;
}
.empty-state-icon { font-size: 48px; }
.empty-state-title { font-size: 17px; font-weight: 700; }
.empty-state-sub { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* Skeleton */
.skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Page: Home ─────────────────────────────────────────────── */
.home-hero {
  margin: 20px 20px 0;
  padding: 20px;
  background: var(--grad-soft);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(245,166,35,.2) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.home-hero-info { flex: 1; }
.home-hero-name { font-size: 20px; font-weight: 800; }
.home-hero-tag { font-size: 13px; color: var(--text2); margin-top: 2px; }
.home-hero-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hero-stat { background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px; }
.hero-stat-val { font-size: 16px; font-weight: 800; }
.hero-stat-lbl { font-size: 10px; color: var(--text2); margin-top: 2px; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.qa-btn:active { transform: scale(.97); border-color: var(--border2); }
.qa-btn-icon { font-size: 22px; }
.qa-btn-label { font-size: 13px; font-weight: 700; }
.qa-btn-sub { font-size: 11px; color: var(--text2); }

/* ─── Page: Profile ──────────────────────────────────────────── */
.profile-hero {
  margin: 20px;
  padding: 24px;
  background: var(--grad-soft);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.profile-name { font-size: 22px; font-weight: 800; }
.profile-username { font-size: 14px; color: var(--text2); }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.profile-actions { display: flex; gap: 8px; margin-top: 4px; width: 100%; }

/* ─── Page: Profit ───────────────────────────────────────────── */
.profit-active-card {
  margin: 20px 20px 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(245,166,35,.3);
  background: var(--grad-soft);
}
.profit-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.profit-amount { font-size: 26px; font-weight: 800; }
.profit-amount-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }

.request-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.request-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* ─── Page: Top (podium styles moved below) ─────────────────── */

.top-rank-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.rank-1 { background: var(--grad); color: #fff; }
.rank-2 { background: rgba(170,170,170,.2); color: #aaa; }
.rank-3 { background: rgba(205,127,50,.2); color: #cd7f32; }
.rank-n { background: var(--surface2); color: var(--text2); font-size: 11px; }

/* ─── Page: More ─────────────────────────────────────────────── */
.more-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.more-card {
  padding: 20px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: all .15s;
}
.more-card:active { transform: scale(.96); border-color: var(--border2); background: var(--surface2); }
.more-card-icon { font-size: 28px; }
.more-card-title { font-size: 14px; font-weight: 700; }
.more-card-desc { font-size: 12px; color: var(--text2); line-height: 1.4; }
.more-card.highlighted {
  background: var(--grad-soft); border-color: rgba(245,166,35,.25);
}

/* ─── Admin ──────────────────────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.admin-stat {
  padding: 14px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
}
.admin-stat-val { font-size: 20px; font-weight: 800; }
.admin-stat-lbl { font-size: 10px; color: var(--text2); margin-top: 3px; }

.admin-profit-row {
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.admin-profit-top { display: flex; align-items: center; gap: 10px; }
.admin-profit-actions { display: flex; gap: 8px; }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 640px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 24px 24px 0 0;
  max-height: 92vh;
  display: flex; flex-direction: column;
  transform: translateY(40px);
  transition: transform .3s var(--spring);
  padding-bottom: var(--safe-bottom);
}
.modal-overlay.visible .modal { transform: none; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 0;
}
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); color: var(--text2);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:active { background: var(--surface2); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,24,38,.96);
  border: 1px solid var(--border2);
  border-radius: 14px; padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: all .3s var(--spring);
  backdrop-filter: blur(16px);
  max-width: calc(100vw - 40px);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(34,214,95,.3); color: var(--green); }
.toast.error   { border-color: rgba(255,71,87,.3);  color: var(--red); }
.toast.info    { border-color: rgba(245,166,35,.3);  color: var(--gold); }

/* ─── Step indicator ─────────────────────────────────────────── */
.steps { display: flex; gap: 6px; align-items: center; margin-bottom: 20px; }
.step-dot {
  height: 4px; border-radius: 99px;
  background: var(--surface2); transition: all .3s var(--ease);
  flex: 1;
}
.step-dot.active { background: var(--grad); }
.step-dot.done   { background: var(--green); }

/* ─── Mentor card ────────────────────────────────────────────── */
.mentor-card {
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.mentor-top { display: flex; align-items: center; gap: 12px; }
.mentor-info { flex: 1; }
.mentor-name { font-size: 15px; font-weight: 700; }
.mentor-commission { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.mentor-desc { font-size: 13px; color: var(--text2); line-height: 1.4; }
.mentor-stats { display: flex; gap: 12px; }
.mentor-stat { font-size: 12px; color: var(--text3); }
.mentor-stat b { color: var(--text); }
.stars-row { display: flex; gap: 2px; }
.star { font-size: 12px; }

/* ─── Utility ────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.text-green { color: var(--green); }

/* ─── Chat ───────────────────────────────────────────────────── */
.chat-msg {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
}
.chat-msg-me {
  background: rgba(245,166,35,.08);
  border-color: rgba(245,166,35,.2);
}
.chat-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.chat-msg-name { font-size: 12px; font-weight: 700; }
.chat-msg-time { font-size: 10px; color: var(--text3); }
.chat-msg-text { font-size: 13px; line-height: 1.5; word-break: break-word; }

/* ─── List item icon ─────────────────────────────────────────── */
.list-item-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

/* ─── Podium (fixed: 1st place center & tallest) ─────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px 0;
  min-height: 240px;
}
.podium-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  max-width: 120px;
}
.podium-1 { transform: translateY(0); }
.podium-2 { transform: translateY(20px); }
.podium-3 { transform: translateY(34px); }
.podium-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--text2), var(--text3));
  color: #07080f;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  border: 3px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 2;
}
.podium-avatar-gold {
  width: 72px; height: 72px; font-size: 28px;
  background: linear-gradient(135deg, #f5a623, #ff6b35);
  border: 3px solid var(--gold);
  box-shadow: 0 0 32px rgba(245,166,35,.5);
}
.podium-crown {
  position: absolute;
  top: -18px;
  font-size: 24px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}
.podium-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-profit {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin: 4px 0 8px;
}
.podium-empty {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.podium-block {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  text-align: center;
  font-size: 24px;
  padding: 8px 0 16px;
  display: flex; flex-direction: column; align-items: center;
}
.podium-1 .podium-block {
  height: 130px;
  background: linear-gradient(180deg, rgba(245,166,35,.25), rgba(245,166,35,.05));
  border-color: rgba(245,166,35,.3);
}
.podium-2 .podium-block { height: 100px; }
.podium-3 .podium-block { height: 75px; }
.podium-rank-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--text2);
  margin-top: 4px;
}
.podium-1 .podium-rank-num { color: var(--gold); font-size: 18px; }
.podium-me .podium-avatar {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Chart card ─────────────────────────────────────────────── */
.chart-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 16px;
  position: relative;
  min-height: 180px;
}
.chart-card canvas { max-width: 100%; }

/* ─── Source chips (profit form step 3) ─────────────────────── */
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.source-chip {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.source-chip:active { transform: scale(.96); }
.source-chip.active {
  background: linear-gradient(135deg, rgba(245,166,35,.2), rgba(255,107,53,.1));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(245,166,35,.2);
}

/* ─── Tabs (auth modal) ──────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.04);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.tab-btn.active {
  background: rgba(245,166,35,.18);
  color: var(--gold);
}
