/* ==============================================================================
   RDNO CASINO & GAMEPASS - ULTRA LUXURY MODERN MINIAAP DESIGN SYSTEM (v2.0)
   ============================================================================== */

:root {
    /* Base Palette */
    --bg-deep: #06090e;
    --bg-surface: #0b1018;
    --bg-card: rgba(18, 26, 38, 0.7);
    --bg-card-hover: rgba(26, 37, 54, 0.85);
    --bg-card-glass: rgba(255, 255, 255, 0.03);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: #fbbf24;

    /* Theme Accents */
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);

    --indigo-primary: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.35);
    --indigo-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    --crimson-primary: #ef4444;
    --crimson-glow: rgba(239, 68, 68, 0.35);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
}

.glow-2 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: -100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

.glow-3 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: 20%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: rgba(11, 16, 24, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: 95px; /* bottom nav spacing */
    position: relative;
    z-index: 1;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ==================== APP HEADER ==================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-profile-badge:active {
    transform: scale(0.97);
}

.avatar-wrapper {
    position: relative;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.avatar-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--emerald-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 8px var(--emerald-glow);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-role {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
}

.user-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Header Balance Chip */
.header-balance-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 6px 12px 6px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px);
}

.coin-icon-pulse {
    font-size: 16px;
    animation: floatCoin 3s ease-in-out infinite;
}

@keyframes floatCoin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.balance-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 0.3px;
}

.btn-refresh-balance {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.3s, color 0.2s;
}

.btn-refresh-balance:hover {
    color: var(--gold-bright);
    transform: rotate(180deg);
}

/* ==================== TABS SYSTEM ==================== */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.tab-content.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HERO DAILY BANNER ==================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 85%;
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-hero-primary {
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: #000;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--gold-glow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:active {
    transform: scale(0.96);
}

.btn-hero-primary.claimed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: default;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-hero-secondary:active {
    background: rgba(255, 255, 255, 0.12);
}

.hero-badge-float {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.streak-fire {
    font-size: 18px;
}

.streak-num {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    color: var(--gold-bright);
}

.streak-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==================== TICKER STATS ==================== */
.stats-ticker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ticker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.ticker-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.win-icon {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pass-icon {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.ticker-info {
    display: flex;
    flex-direction: column;
}

.ticker-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ticker-val {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ==================== SECTION CONTAINERS ==================== */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-glow);
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.view-more-btn {
    background: transparent;
    border: none;
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* ==================== GAMES GRID ==================== */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.game-card:active {
    transform: scale(0.97);
}

.game-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.game-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-subtle);
}

.game-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.game-info p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.game-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    text-transform: uppercase;
}

/* Distinct Game Themes */
.roulette-card { border-left: 3px solid #ef4444; }
.mines-card { border-left: 3px solid #3b82f6; }
.slots-card { border-left: 3px solid #f59e0b; }
.letters-card { border-left: 3px solid #10b981; }

/* ==================== LEADERBOARD CARDS ==================== */
.leaderboard-card-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-item.is-me {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.leaderboard-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}

.player-info-row {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.player-username {
    font-size: 11px;
    color: var(--text-muted);
}

.leaderboard-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-balance-val {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--gold-bright);
}

/* ==================== TAB 2: RDNO PASS TIMELINE ==================== */
.pass-header-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pass-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pass-season-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--indigo-primary);
    letter-spacing: 1px;
}

.pass-main-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.pass-streak-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-bright);
}

.pass-cycle-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pass-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-top: 6px;
}

.pass-progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}

.pass-progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: var(--radius-pill);
    transition: width 0.6s var(--ease-out-expo);
    position: relative;
}

.progress-bar-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: #fff;
    filter: blur(4px);
    opacity: 0.7;
}

.milestones-row {
    position: relative;
    height: 18px;
    margin-top: 2px;
}

.milestone-badge {
    position: absolute;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.milestone-final {
    color: var(--gold-bright);
    font-weight: 800;
}

/* Premium Buy Banner */
.premium-buy-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
    overflow: hidden;
}

.premium-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.premium-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-badge-tag {
    font-size: 11px;
    font-weight: 800;
    color: #c084fc;
    letter-spacing: 1px;
}

.premium-multiplier-badge {
    font-size: 11px;
    font-weight: 900;
    background: var(--gold-gradient);
    color: #000;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.premium-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.premium-perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.premium-perks-list li {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-perks-list li span {
    color: #c084fc;
}

.btn-buy-premium {
    background: var(--indigo-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--indigo-glow);
    margin-top: 4px;
    transition: transform 0.15s;
}

.btn-buy-premium:active {
    transform: scale(0.97);
}

/* Premium Active Card */
.premium-active-card {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-badge-title {
    font-size: 14px;
    font-weight: 800;
    color: #c084fc;
    margin-bottom: 2px;
}

.premium-active-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Calendar Timeline Grid */
.calendar-hint {
    font-size: 11px;
    color: var(--text-gold);
    font-weight: 600;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.day-card.claimed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.day-card.can-claim {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 0 20px var(--gold-glow);
    cursor: pointer;
    animation: claimPulse 2s infinite ease-in-out;
}

@keyframes claimPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.day-card.sunday {
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.day-card.sunday::before {
    content: "3X";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    font-weight: 900;
    background: var(--gold-gradient);
    color: #000;
    padding: 1px 4px;
    border-radius: 4px;
}

.day-card.sunday.has-premium::before {
    content: "9X ⭐";
}

.day-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.day-icon {
    font-size: 24px;
    margin: 2px 0;
}

.day-reward {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.day-card.claimed .day-reward {
    color: var(--emerald-primary);
}

.day-card.can-claim .day-reward {
    color: var(--gold-bright);
}

/* ==================== TAB 3: PROFILE ==================== */
.profile-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.profile-chip-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-avatar-large {
    position: relative;
    margin-bottom: 4px;
}

.avatar-circle-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.profile-badge-tier {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--indigo-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-fullname {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.profile-id-tag {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.balance-display-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.balance-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.balance-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-currency {
    font-size: 24px;
}

.balance-large-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
}

/* Detailed Stats Quad */
.stats-quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-quad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-quad-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-quad-icon {
    font-size: 14px;
}

.stat-quad-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-quad-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-win-theme .stat-quad-val { color: var(--emerald-primary); }
.stat-loss-theme .stat-quad-val { color: var(--crimson-primary); }

/* Transactions Ledger */
.transactions-ledger-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 12px;
}

.transactions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.tx-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-type {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.tx-date {
    font-size: 10px;
    color: var(--text-muted);
}

.tx-amount {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
}

.tx-amount.positive { color: var(--emerald-primary); }
.tx-amount.negative { color: var(--crimson-primary); }

/* ==================== FLOATING BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 6px 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
}

.nav-icon-box {
    position: relative;
    font-size: 20px;
    transition: transform 0.2s;
}

.nav-notify-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-glow);
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon-box {
    transform: translateY(-2px);
}

.nav-item.active .nav-label {
    color: var(--gold-bright);
}

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 200;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-group h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

/* ==================== TOAST & CONFETTI ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    width: calc(100% - 32px);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    pointer-events: auto;
    animation: toastSlideDown 0.3s ease-out forwards;
}

.toast.success { border-left: 4px solid var(--emerald-primary); }
.toast.error { border-left: 4px solid var(--crimson-primary); }
.toast.warning { border-left: 4px solid var(--gold-bright); }

@keyframes toastSlideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding-left: 10px;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
}

/* Loading skeleton */
.loading-item {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
