@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* =============================================
   Velostar — Professional Compact Casual Game UI
   Palette: Teal / Cyan + Coral / Orange
   Inspired by: Duolingo, Township, Modern Fintech Games
   ============================================= */
:root {
  --ink:         #0c4a6e; /* Deep ocean blue text */
  --text-muted:  #4a90a4;
  --bg:          #f0fdff; /* Very light cyan background */
  --white:       #ffffff;

  /* Brand: Vibrant Teal/Cyan */
  --brand:       #0891b2;
  --brand-light: #e0f9ff;
  --brand-hover: #0e7490;
  --accent-1:    #22d3ee;
  --accent-2:    #a5f3fc;

  /* Playful Functional Colors */
  --green:   #10b981;
  --red:     #ef4444;
  --blue:    #3b82f6;
  --yellow:  #f59e0b;
  --pink:    #ec4899;
  --teal:    #14b8a6;
  --orange:  #f97316;
  --coral:   #f97316;

  --mint:    #d1fae5;
  --lavender:#ede9fe;
  --peach:   #ffedd5;
  --sky:     #e0f2fe;
  --salmon:  #fce7f3;
  --lime:    #dcfce7;

  /* Bubbly 3D Borders & Shadows */
  --border:       2.5px solid #7dd3e8;
  --border-light: 1.5px solid #bae6fd;
  --shadow-sm: 0 4px 0 #7dd3e8;
  --shadow:    0 6px 0 #0891b2;
  --shadow-lg: 0 8px 0 #0e7490, 0 12px 24px rgba(8,145,178,0.2);

  --radius:    22px;
  --radius-sm: 14px;
  --max-w:     480px;
  --nav-h:     70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(#bae6fd 1.5px, transparent 1.5px),
    radial-gradient(#bae6fd 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.5;
}

.app-shell {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  border-bottom: 3px solid #075985;
  box-shadow: 0 4px 0 #0c4a6e;
  padding: 0 16px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  overflow: visible;
}
.topbar__logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; color: #fff; text-decoration: none; flex-shrink: 0; min-width: 0; text-shadow: 0 2px 0 #075985; }
.topbar__logo strong { color: #fde68a; font-weight: 900; }
.topbar__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; overflow: visible; }
.topbar__avatar { width: 36px; height: 36px; border-radius: 50%; background: #fde68a; color: #0e7490; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; text-decoration: none; border: 2.5px solid #bae6fd; box-shadow: 0 3px 0 #0c4a6e; }
.topbar__avatar:hover { background: #fff; }
.page-content { flex: 1; padding: 0; padding-bottom: calc(var(--nav-h) + 24px); }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-w); height: var(--nav-h); background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%); border-top: 3px solid #075985; box-shadow: 0 -4px 0 #0c4a6e; display: flex; z-index: 200; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; transition: all .2s; }
.nav-item.active { color: #fde68a; text-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.nav-item.active i { transform: translateY(-2px); filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.nav-item--center { position: relative; top: -16px; }
.nav-item--center .nav-center-btn { width: 58px; height: 58px; background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 5px 0 #b91c1c, 0 7px 16px rgba(239,68,68,.35); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; border: 3px solid #fecaca; transition: transform 0.1s; }
.nav-item--center:active .nav-center-btn { transform: translateY(4px); box-shadow: none; }

.card { background: #fff; border: 2.5px solid #7dd3e8; border-radius: var(--radius); box-shadow: 0 5px 0 #7dd3e8; overflow: hidden; transition: all 0.1s; }
.card:active { transform: translateY(4px); box-shadow: none; }
.card + .card { margin-top: 14px; }
.card__header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #e0f9ff; background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%); }
.card__title { font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 0 #075985; }
.card__body { padding: 14px 16px; background: #fff; }
.card__link { font-size: 12px; color: var(--brand); text-decoration: none; font-weight: 800; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: 14px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.section-title i { font-size: 17px; }
.section-link { font-size: 11px; color: #0891b2; text-decoration: none; font-weight: 800; background: #e0f9ff; border: 1.5px solid #7dd3e8; padding: 4px 11px; border-radius: 20px; }
.section-link:hover { background: #0891b2; color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 28px; padding: 10px 20px; font-size: 14px; font-weight: 900; font-family: inherit; cursor: pointer; text-decoration: none; line-height: 1.5; transition: transform .08s; position: relative; overflow: hidden; }
.btn::after { content:''; position:absolute; top:3px; left:12%; right:12%; height:40%; background:linear-gradient(180deg,rgba(255,255,255,.45) 0%,rgba(255,255,255,0) 100%); border-radius:20px; pointer-events:none; }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn--full { width: 100%; }
.btn--primary { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%); color: #fff; box-shadow: 0 5px 0 #0e7490, 0 7px 12px rgba(8,145,178,.3); border: 2px solid #a5f3fc; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: linear-gradient(135deg, #fb923c 0%, #f97316 100%); color: #fff; box-shadow: 0 5px 0 #c2410c, 0 7px 12px rgba(249,115,22,.3); border: 2px solid #fed7aa; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.btn--ghost:hover { filter: brightness(1.08); }
.btn--sm { padding: 7px 14px; font-size: 12px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert--warn    { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-control { width: 100%; background: var(--white); border: var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; font-family: inherit; font-weight: 400; color: var(--ink); outline: none; transition: all .2s; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.form-control::placeholder { color: #94a3b8; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-left: 44px; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state p { font-size: 14px; font-weight: 500; margin-top: 12px; color: var(--text-muted); }

@media (min-width: 520px) { body { background: #e0f9ff; } .app-shell { border-left: var(--border); border-right: var(--border); box-shadow: var(--shadow-lg); } }

.bal-dropdown{position:relative;z-index:9999;}
.topbar__right{overflow:visible!important;}
.bal-dropdown__trigger{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.2);border:2px solid rgba(255,255,255,0.5);border-radius:10px;box-shadow:none;padding:6px 12px;font-weight:900;font-size:12px;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;backdrop-filter:blur(4px);}
.bal-dropdown__trigger:hover{background:rgba(255,255,255,0.3);}.bal-dropdown__caret{font-size:9px;transition:transform .2s;display:inline-block;color:rgba(255,255,255,0.8);}
.bal-dropdown__caret.open{transform:rotate(180deg);}
.bal-dropdown__panel{display:none;position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:2.5px solid #7dd3e8;border-radius:16px;box-shadow:0 6px 0 #7dd3e8, 0 8px 20px rgba(8,145,178,0.2);min-width:220px;z-index:9999;overflow:hidden;}
.bal-dropdown__panel.open{display:block;animation:bdFadeIn .15s ease;}
@keyframes bdFadeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.bal-dropdown__row{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1.5px solid #e0f9ff;font-size:12px;}
.bal-dropdown__row--wd{background:#f8fffe;}
.bal-dropdown__row--dep{background:#fff;}
.bal-dropdown__lbl{font-weight:700;color:#4a90a4;}
.bal-dropdown__val{font-weight:900;color:#0c4a6e;}
.bal-dropdown__link{display:block;padding:10px 14px;font-size:11px;font-weight:900;color:#0891b2;text-decoration:none;text-align:center;background:#e0f9ff;};}
.bal-dropdown__link:hover{background:#ffe4e6;}

.slider-captcha { margin-bottom: 14px; }
.slider-captcha-label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.slider-track { position: relative; height: 50px; background: var(--bg); border: var(--border); border-radius: var(--radius-sm); overflow: hidden; user-select: none; }
.slider-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--brand-light); transition: background .3s; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.slider-fill.done { background: #dcfce7; }
.slider-thumb { position: absolute; top: 5px; left: 5px; width: 40px; height: 40px; background: var(--white); border: var(--border); box-shadow: var(--shadow-sm); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: grab; font-size: 18px; color: var(--text-muted); transition: background .3s, color .3s; z-index: 2; }
.slider-thumb:active { cursor: grabbing; }
.slider-thumb.done { background: #10b981; color: #fff; cursor: default; }
.slider-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 12px; font-weight: 500; color: var(--text-muted); pointer-events: none; white-space: nowrap; z-index: 1; }
.slider-hint.done { color: #065f46; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fffcf2; border: 2px solid #f0e0c9; border-radius: 16px; box-shadow: 0 4px 0 #e6a760; margin-bottom: 12px; }
.list-item:last-child { margin-bottom: 0; }
.list-item__icon { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f1f5f9); border: 2px solid #cbd5e1; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; box-shadow: 0 4px 0 rgba(0,0,0,0.1); }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__sub   { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-top: 4px; }
.list-item__right { text-align: right; flex-shrink: 0; }
.list-item__amount { font-size: 14px; font-weight: 800; color: var(--green); text-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.list-item__date  { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-top: 2px; }

.tabs-row { display: flex; gap: 4px; background: var(--bg); border: var(--border); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.tab-btn { flex: 1; text-align: center; padding: 8px 12px; font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; border: none; background: transparent; color: var(--text-muted); font-family: inherit; transition: all .2s; text-decoration: none; }
.tab-btn.active, .tab-btn--active { background: var(--white); color: var(--brand) !important; box-shadow: var(--shadow-sm); }

.card--yellow { background: var(--brand-light); }
.card--mint { background: var(--mint); }
.card--lavender { background: var(--lavender); }
.card--salmon { background: var(--salmon); }
.card--sky { background: var(--sky); }
.card--lime { background: var(--lime); }
.card--peach { background: var(--peach); }

.hero-card { background: linear-gradient(135deg, var(--brand), var(--accent-1)); border: none; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; color: #fff; }
.hero-card__label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.hero-card__amount { font-size: 32px; font-weight: 700; letter-spacing: -1px; color: #fff; }
.hero-card__sub { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.hero-card__actions { display: flex; gap: 10px; margin-top: 20px; }
.hero-card__btn { flex: 1; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 10px; padding: 10px 8px; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background 0.2s; }
.hero-card__btn:hover { background: rgba(255,255,255,0.3); }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.stat-mini { border: var(--border); border-radius: var(--radius-sm); background: var(--white); padding: 16px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-mini__val { font-size: 18px; font-weight: 700; color: var(--brand); }
.stat-mini__lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

.video-card { background: #fffcf2; border: 2px solid #f0e0c9; border-radius: 20px; box-shadow: 0 4px 0 #e6a760; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: all 0.1s; }
.video-card:active { transform: translateY(4px); box-shadow: none; }
.video-card__thumb-wrap { position: relative; overflow: hidden; border-bottom: 2px solid #f0e0c9; }
.video-card__thumb-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); opacity: 0; transition: opacity 0.2s; }
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play-btn { width: 48px; height: 48px; background: linear-gradient(180deg, #fffa65, #f1c40f); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #b87333; font-size: 24px; box-shadow: 0 4px 0 #d49a00; border: 2px solid #f39c12; }
.video-card__badge { position: absolute; top: 10px; right: 10px; background: linear-gradient(180deg, #7bed9f, #2ecc71); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; box-shadow: 0 4px 0 #27ae60; text-shadow: 1px 1px 0 rgba(0,0,0,0.2); }
.video-card__body { padding: 14px 16px; }
.video-card__title { font-weight: 800; font-size: 14px; line-height: 1.4; margin-bottom: 10px; color: var(--ink); text-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.video-card__meta { display: flex; align-items: center; justify-content: space-between; }
.video-card__reward { color: #f39c12; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.video-card__duration { font-size: 12px; color: var(--text-muted); font-weight: 800; }

.membership-card { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; background: var(--white); position: relative; }
.membership-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.membership-card.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-light); }
.membership-card__badge { position: absolute; top: -10px; right: 16px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; box-shadow: 0 2px 4px rgba(225,29,72,0.2); }
.membership-card__name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.membership-card__price { font-size: 24px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.membership-card__price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.membership-card__feature { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 400; }
.membership-card__feature::before { content: '✓'; color: var(--green); font-weight: 700; }

.auth-page { width: 100%; min-height: 100vh; background-color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 40px 32px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo__icon { width: 64px; height: 64px; background: var(--brand-light); color: var(--brand); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 32px; }
.auth-logo__title { font-size: 24px; font-weight: 700; color: var(--ink); }
.auth-logo__sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); font-weight: 400; }
.auth-switch a { color: var(--brand); font-weight: 600; text-decoration: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge--success { background: #dcfce7; color: #166534; }
.badge--warn { background: #fef9c3; color: #854d0e; }
.badge--error { background: #fee2e2; color: #991b1b; }
.badge--neutral { background: #f1f5f9; color: #475569; }
.badge--brand { background: var(--brand-light); color: var(--brand); }

.topbar__balances { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbar__bal-item { display: flex; flex-direction: column; align-items: center; background: var(--bg); border: var(--border); border-radius: 8px; padding: 4px 8px; line-height: 1.2; min-width: 0; }
.topbar__bal-item--wd { background: var(--white); }
.topbar__bal-item--dep { background: var(--white); }
.topbar__bal-label { font-size: 8px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.topbar__bal-val { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.dual-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dual-balance__item { background: var(--white); border: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; position: relative; overflow: hidden; }
.dual-balance__item::after { content: ''; position: absolute; right: -10px; bottom: -10px; width: 64px; height: 64px; border-radius: 50%; opacity: 0.1; }
.dual-balance__item--wd::after { background: var(--brand); }
.dual-balance__item--dep::after { background: var(--blue); }
.dual-balance__label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dual-balance__val { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }

/* =============================================
   NEW MODERN COMPACT DASHBOARD STYLES (Red/Pink)
   ============================================= */

/* User Hero Card - Teal/Coral Casual Game */
.user-hero-card {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #06b6d4 100%);
  border: 3px solid #075985;
  border-radius: 22px;
  box-shadow: 0 8px 0 #0c4a6e, 0 12px 24px rgba(8,145,178,.25);
  padding: 14px 14px 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.user-hero-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.user-hero-card::after {
  content: '';
  position: absolute;
  bottom: 50px; left: -25px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.user-hero-card__inner {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.user-hero-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.user-hero-card__profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-hero-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e8d5a3;
  color: #e65100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.user-hero-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-hero-card__name {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-hero-card__badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.user-hero-card__action-btn {
  background: linear-gradient(180deg, #fffa65, #f1c40f);
  color: #8c5b35;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.1s;
  box-shadow: 0 4px 0 #d49a00, inset 0 2px 0 rgba(255,255,255,0.6);
  border: 3px solid #b87333;
}

.user-hero-card__action-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.user-hero-card__stats {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 12px;
  border-radius: 16px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.user-hero-card__stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.user-hero-card__stat-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-hero-card__stat-val {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.user-hero-card__progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.user-hero-card__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fde68a, #34d399);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.user-hero-card__referral-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-hero-card__referral-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: monospace;
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-hero-card__copy-btn {
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.user-hero-card__copy-btn:hover { background: rgba(255,255,255,0.4); }

/* Balance Card Layout - Teal/Coral Casual Style */
.balance-card {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #06b6d4 100%);
  border: 3px solid #075985;
  border-radius: 20px;
  box-shadow: 0 7px 0 #0c4a6e, 0 10px 20px rgba(8,145,178,.2);
  overflow: hidden;
  margin-bottom: 18px;
  padding: 4px;
}

.balance-card__grid {
  display: flex;
  align-items: stretch;
  padding: 14px;
  background: #fef8e8;
  border-radius: 18px;
  border: 2.5px solid #e8d5a3;
}

.balance-card__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.balance-card__divider {
  width: 1.5px;
  background: #e8d5a3;
  margin: 0 14px;
}

.balance-card__label {
  font-size: 11px;
  font-weight: 800;
  color: #9a6b3a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.balance-card__label i {
  color: var(--brand);
}

.balance-card__value {
  font-size: 18px;
  font-weight: 900;
  color: #5a3510;
  word-break: break-all;
}

.balance-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  transition: transform .08s, box-shadow .08s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.balance-card__btn::after { content:''; position:absolute; top:2px; left:10%; right:10%; height:40%; background:linear-gradient(180deg,rgba(255,255,255,.45) 0%,rgba(255,255,255,0) 100%); border-radius:20px; pointer-events:none; }
.balance-card__btn:active { transform: translateY(4px); box-shadow: none !important; }

.balance-card__btn--withdraw {
  background: linear-gradient(180deg, #ffe082 0%, #ffca28 50%, #f0b400 100%);
  color: #8b5e0a;
  box-shadow: 0 4px 0 #c47f17;
  border: 2px solid #ffe599;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.balance-card__btn--deposit {
  background: linear-gradient(180deg, #5bb8f5 0%, #2e86de 50%, #2574c4 100%);
  color: #fff;
  box-shadow: 0 4px 0 #1a5fa0;
  border: 2px solid #6ec6ff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.balance-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff8f8;
  border-top: 1px solid #ffe4e6;
  padding: 8px 16px;
  font-size: 11px;
}

.balance-card__footer-lbl {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.balance-card__footer-val {
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
  margin-left: 6px;
}

.balance-card__footer-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: opacity 0.2s;
}

.balance-card__footer-btn:hover {
  opacity: 0.8;
}

/* Quick Actions Grid */
.quick-actions {
  margin-bottom: 16px;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}

.quick-actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #5a3510;
  transition: transform 0.1s;
}

.quick-actions__item:active {
  transform: translateY(4px);
}

.quick-actions__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(180deg, #fff, #fef8e8) !important;
  border: 2.5px solid #d4a64a;
  color: #c47f17 !important;
  box-shadow: 0 5px 0 #d4a64a;
  transition: all 0.1s;
}

.quick-actions__item:active .quick-actions__icon-wrapper {
  transform: translateY(5px);
  box-shadow: none;
}

.quick-actions__label {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: #6d3a0a;
  margin-top: 2px;
}

/* Modern Banners Layout */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.promo-banner {
  border-radius: 20px;
  padding: 14px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  transition: transform 0.1s;
}

.promo-banner:active {
  transform: translateY(4px);
  box-shadow: none;
}

.promo-banner--invest {
  background: linear-gradient(135deg, #f39c12, #d35400);
}

.promo-banner__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.promo-banner__tag {
  font-size: 8px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 1px 5px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.promo-banner__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.promo-banner__desc {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.promo-banner__icon {
  font-size: 28px;
  opacity: 0.2;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.promo-banner:hover .promo-banner__icon {
  transform: scale(1.15) rotate(-5deg);
  opacity: 0.3;
}

/* Modern Notification Alert */
.modern-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.modern-notif:hover {
  transform: translateX(2px);
}

.modern-notif__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modern-notif__icon i {
  font-size: 16px;
  color: var(--brand);
}

.modern-notif__body {
  flex: 1;
  min-width: 0;
}

.modern-notif__title {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

.modern-notif__desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
