/* HUB JOB - Professional UI v3 (reference design) */
:root {
    --bg: #050510;
    --bg-card: #151a2d;
    --bg-card2: #1c2238;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #5b21b6;
    --purple-glow: rgba(124, 58, 237, 0.45);
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #f97316;
    --pink: #ec4899;
    --yellow: #eab308;
    --text: #ffffff;
    --text2: #c4b5fd;
    --text-muted: #8b7aab;
    --border: rgba(167, 139, 250, 0.15);
    --radius: 18px;
    --radius-sm: 12px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% -10%, #1a1040 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    outline: none;
}

#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 88px;
}

/* Loader */
.loader-screen {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 100vh; gap: 20px;
}
.loader-ring {
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid rgba(124,58,237,0.2);
    border-top-color: var(--purple); animation: spin .8s linear infinite;
}
.loader-text { color: var(--text-muted); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* App Bar */
#app-bar { display: flex; }
#sub-header { display: block; }

.app-bar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 14px 16px 8px; position: sticky; top: 0; z-index: 200;
    background: rgba(11,14,27,0.9); backdrop-filter: blur(16px);
}
.app-bar-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; position: relative;
}
.app-bar-title {
    font-size: 20px; font-weight: 800; letter-spacing: 1px;
    display: flex; align-items: center; gap: 4px;
}
.brand-hub { color: #fff; }
.brand-job {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.notif-dot {
    position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
    background: var(--pink); border-radius: 50%; border: 2px solid var(--bg-card);
}

/* Profile row with daily bonus */
.profile-row {
    padding: 4px 16px 14px; display: flex; align-items: stretch; gap: 10px;
}
.profile-glass {
    margin: 0 12px 4px; padding: 10px 12px !important;
    background: rgba(21,26,45,0.75); border: 1px solid var(--border);
    border-radius: 18px; backdrop-filter: blur(12px);
}
.profile-main { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-main .avatar-lg {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(124,58,237,0.4);
}
.profile-main .avatar-ring {
    box-shadow: 0 0 0 2px rgba(124,58,237,0.25), 0 4px 16px rgba(124,58,237,0.35);
}
.profile-main .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-info .uname { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info .level-line { font-size: 11px; color: var(--purple-light); font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lvl-badge {
    font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px;
    background: rgba(124,58,237,0.3); color: #e9d5ff;
}
.profile-info .xp-line { font-size: 10px; color: var(--text-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.xp-bar { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.xp-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #4169e1); border-radius: 3px; }

.daily-bonus {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px 12px; text-align: center;
    min-width: 88px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.daily-bonus.db-ready {
    border-color: rgba(236,72,153,0.45);
    box-shadow: 0 0 20px rgba(236,72,153,0.2);
    animation: db-glow 2s ease-in-out infinite;
}
@keyframes db-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(236,72,153,0.15); }
    50% { box-shadow: 0 0 22px rgba(236,72,153,0.35); }
}
.daily-bonus .db-icon { display: flex; align-items: center; justify-content: center; min-height: 32px; }
.daily-bonus .db-label { font-size: 9px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.daily-bonus.db-ready .db-label { color: #fda4af; }
.daily-bonus .db-timer { font-size: 11px; font-weight: 700; color: var(--pink); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Home page */
.home-page { position: relative; padding-bottom: 8px; }
.home-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.home-orb {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35;
    animation: home-orb-float 8s ease-in-out infinite;
}
.home-orb-1 { width: 200px; height: 200px; top: -40px; left: -60px; background: #7c3aed; }
.home-orb-2 { width: 160px; height: 160px; top: 120px; right: -50px; background: #2563eb; animation-delay: -3s; }
@keyframes home-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 12px) scale(1.05); }
}
.home-page > *:not(.home-ambient) { position: relative; z-index: 1; }
.home-section { margin-top: 4px; }
.home-section h3 { font-size: 15px; letter-spacing: -0.02em; }

/* Balance Card v2 */
.balance-card-v2 {
    margin: 0 16px 14px; padding: 20px 18px 22px; border-radius: 22px;
    background: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 48%, #9333ea 100%);
    box-shadow: 0 16px 48px rgba(109,40,217,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative; overflow: hidden; color: #fff; cursor: pointer;
    transition: transform 0.2s;
}
.home-balance:active { transform: scale(0.985); }
.balance-shimmer {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    animation: balance-shimmer 4s ease-in-out infinite;
}
@keyframes balance-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.balance-card-v2::before {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.balance-eye {
    width: 32px; height: 32px; border-radius: 10px;
    background: rgba(255,255,255,0.14); border: none;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.balance-coin-icon .hub-icon-coin { width: 32px; height: 32px; }
.balance-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.b-chip {
    font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(4px);
}
.b-chip-wallet { background: rgba(255,255,255,0.22); }

/* Home featured CTA */
.home-featured {
    margin: 0 16px 16px; padding: 14px 16px; border-radius: 18px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; transition: transform 0.15s;
    border: 1px solid rgba(255,255,255,0.1);
}
.home-featured:active { transform: scale(0.98); }
.home-cta-checkin {
    background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(219,39,119,0.15));
    border-color: rgba(236,72,153,0.35);
}
.home-cta-mining {
    background: linear-gradient(135deg, rgba(180,83,9,0.3), rgba(124,58,237,0.15));
    border-color: rgba(251,191,36,0.35);
}
.home-cta-ads {
    background: linear-gradient(135deg, rgba(37,99,235,0.28), rgba(124,58,237,0.18));
    border-color: rgba(96,165,250,0.35);
}
.home-cta-spin {
    background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(236,72,153,0.15));
    border-color: rgba(192,132,252,0.35);
}
.home-cta-tasks {
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(124,58,237,0.15));
    border-color: rgba(74,222,128,0.3);
}
.hf-icon { flex-shrink: 0; display: flex; align-items: center; }
.hf-body { flex: 1; min-width: 0; }
.hf-title { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.25; }
.hf-sub { font-size: 11px; color: rgba(255,255,255,0.72); margin-top: 3px; }
.hf-btn {
    flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 8px 12px;
    border-radius: 12px; background: rgba(255,255,255,0.95); color: #4c1d95;
    border: none; white-space: nowrap;
}
.wallet-art-3d {
    position: absolute; right: 10px; bottom: 6px; width: 100px; height: 72px; pointer-events: none;
}
.wallet-art-3d .wa-wallet {
    position: absolute; right: 8px; bottom: 4px; width: 72px; height: 48px;
    border-radius: 12px 12px 16px 16px;
    background: linear-gradient(145deg, #a78bfa, #6d28d9 55%, #4c1d95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 2px 6px rgba(255,255,255,0.25);
}
.wallet-art-3d .wa-wallet::before {
    content: ''; position: absolute; top: 14px; left: 8px; right: 8px; height: 8px;
    border-radius: 4px; background: rgba(255,255,255,0.2);
}
.wallet-art-3d .wa-wallet::after {
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 14px; border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
}
.wallet-art-3d .wa-coin {
    position: absolute; width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #d97706);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #fcd34d;
}
.wallet-art-3d .wa-coin-1 { top: 0; right: 36px; animation: coinFloat 3s ease-in-out infinite; }
.wallet-art-3d .wa-coin-2 { top: 12px; right: 0; animation: coinFloat 3s ease-in-out infinite .6s; }
@keyframes coinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.balance-top { display: flex; justify-content: space-between; align-items: flex-start; }
.balance-label { font-size: 12px; opacity: 0.9; font-weight: 500; }
.balance-arrow {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,0.15); display: flex;
    align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
}
.balance-amount { font-size: 30px; font-weight: 800; margin: 6px 0 14px; letter-spacing: -0.5px; }
.balance-amount.coins-amount {
    display: flex; align-items: center; gap: 10px; font-size: 34px;
}
.balance-amount.coins-amount .hub-icon { width: 36px; height: 36px; }
.balance-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.balance-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.95; font-weight: 500; }
.balance-meta-item .hub-icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }

/* Section headers */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; margin-bottom: 12px;
}
.section-head h3 { font-size: 16px; font-weight: 700; }
.section-link { font-size: 12px; color: var(--purple-light); font-weight: 600; cursor: pointer; }

/* Quick Actions 2x2 */
.quick-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0 16px; margin-bottom: 16px;
}
.home-quick .quick-card {
    position: relative; overflow: hidden;
    border-radius: 18px; padding: 14px 12px;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
    text-align: left; min-height: 76px;
}
.quick-card {
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.quick-card:active { transform: scale(0.97); }
.quick-card .qc-glow {
    position: absolute; top: -20px; right: -20px; width: 80px; height: 80px;
    border-radius: 50%; opacity: 0.35; pointer-events: none;
}
.qc-checkin { border-color: rgba(248,113,113,0.25); }
.qc-checkin .qc-glow { background: #f87171; }
.qc-ads { border-color: rgba(96,165,250,0.25); }
.qc-ads .qc-glow { background: #60a5fa; }
.qc-spin { border-color: rgba(192,132,252,0.25); }
.qc-spin .qc-glow { background: #c084fc; }
.qc-mining { border-color: rgba(251,191,36,0.3); }
.qc-mining .qc-glow { background: #fbbf24; }
.qc-badge {
    position: absolute; top: 8px; left: 10px; z-index: 2;
    font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 6px;
    background: linear-gradient(135deg, var(--pink), #db2777); color: #fff; line-height: 1.2;
    letter-spacing: 0.03em;
}
.quick-card .qc-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 12px; position: relative; z-index: 1;
}
.quick-card .qc-icon .hub-icon { transform: scale(0.92); }
.quick-card .qc-text { min-width: 0; }
.quick-card .qc-title { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.2; }
.quick-card .qc-sub { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.quick-card .qc-arrow { font-size: 18px; color: var(--text-muted); font-weight: 300; opacity: 0.6; }

/* Home stats strip */
.home-stats-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px; padding: 0 16px; margin-bottom: 18px;
    width: 100%;
}
.hss-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px 4px; text-align: center;
    cursor: pointer; transition: transform 0.15s, border-color 0.15s;
    min-width: 0; display: flex; flex-direction: column; align-items: center;
}
.hss-item:active { transform: scale(0.95); }
.hss-icon {
    display: flex; align-items: center; justify-content: center;
    min-height: 28px; margin-bottom: 4px; height: 30px;
}
.hss-icon .hub-icon { transform: scale(0.82); }
.hss-val { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.1; }
.hss-label { font-size: 9px; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.hss-fire { border-color: rgba(239,68,68,0.25); }
.hss-ads { border-color: rgba(124,58,237,0.25); }
.hss-ref { border-color: rgba(34,197,94,0.25); }
.hss-lvl { border-color: rgba(167,139,250,0.25); }

/* Mini stats (legacy) */
.mini-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0 16px; margin-bottom: 18px;
}
.mini-stat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.mini-stat .ms-text { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.mini-stat .ms-text span { display: block; font-size: 10px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

/* Games horizontal scroll */
.games-scroll {
    padding: 0 0 16px; margin-bottom: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.games-scroll::-webkit-scrollbar { display: none; }
.games-scroll-inner {
    display: flex; gap: 10px; padding: 0 16px 4px;
    width: max-content;
}
.games-grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 0 16px 24px;
}
.game-tile {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 14px 10px; text-align: center;
    cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    min-width: 88px; position: relative;
}
.games-scroll .game-tile { flex-shrink: 0; }
.game-tile:active { transform: scale(0.94); border-color: rgba(124,58,237,0.35); }
.gt-badge {
    position: absolute; top: 6px; right: 6px;
    font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
}
.game-tile .gt-icon { display: flex; align-items: center; justify-content: center; min-height: 42px; margin-bottom: 8px; }
.game-tile .gt-title { font-size: 11px; font-weight: 800; color: #fff; }
.game-tile .gt-sub { font-size: 9px; color: var(--text-muted); margin-top: 4px; line-height: 1.25; }

/* Home tip card */
.home-tip-card {
    margin: 0 16px 20px; padding: 12px 14px; border-radius: 14px;
    background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.22);
    display: flex; align-items: flex-start; gap: 10px;
}
.htc-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.htc-text { display: flex; flex-direction: column; gap: 3px; }
.htc-text strong { font-size: 12px; color: var(--purple-light); }
.htc-text span { font-size: 11px; color: var(--text-muted); line-height: 1.45; }

/* Home skeleton */
.home-skeleton-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0 16px; margin-bottom: 14px;
}
.home-skel-card {
    height: 76px; border-radius: 18px;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skel-shine 1.4s ease-in-out infinite;
}
@keyframes skel-shine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 3D Hub Icons (reference design) */
.hub-icon {
    display: inline-block; position: relative; flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.hub-icon::before, .hub-icon::after { content: ''; position: absolute; box-sizing: border-box; }

.hub-icon-calendar {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(180deg, #f8fafc 38%, #e2e8f0 38%);
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.08);
}
.hub-icon-calendar::before {
    top: 0; left: 0; right: 0; height: 38%;
    background: linear-gradient(180deg, #f87171, #dc2626);
    border-radius: 9px 9px 0 0;
}
.hub-icon-calendar::after {
    bottom: 8px; left: 8px; width: 6px; height: 6px; border-radius: 2px; background: #94a3b8;
    box-shadow: 12px 0 0 #94a3b8, 0 10px 0 #94a3b8, 12px 10px 0 #94a3b8;
}

.hub-icon-play {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 18px rgba(37,99,235,0.55);
}
.hub-icon-play::before {
    top: 50%; left: 54%; transform: translate(-50%, -50%);
    width: 0; height: 0;
    border-style: solid; border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent #fff;
}

.hub-icon-wheel {
    width: 38px; height: 38px; border-radius: 50%;
    background: conic-gradient(#c084fc 0deg, #ec4899 90deg, #818cf8 180deg, #f472b6 270deg, #c084fc 360deg);
    border: 3px solid rgba(255,255,255,0.35);
    box-shadow: 0 5px 16px rgba(168,85,247,0.5);
}
.hub-icon-wheel::after {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%; background: #fff;
}

.hub-icon-tasks {
    width: 34px; height: 42px; border-radius: 7px 7px 9px 9px;
    background: linear-gradient(145deg, #4ade80, #16a34a);
    box-shadow: 0 6px 16px rgba(22,163,74,0.45);
}
.hub-icon-tasks::before {
    top: -7px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 9px; border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #bbf7d0, #86efac);
}
.hub-icon-tasks::after {
    top: 14px; left: 9px; width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 0 rgba(255,255,255,0.75), 0 16px 0 rgba(255,255,255,0.55);
}

.hub-icon-scratch {
    width: 36px; height: 38px; border-radius: 6px;
    background: linear-gradient(145deg, #38bdf8, #0284c7);
    transform: rotate(-8deg);
    box-shadow: 0 6px 14px rgba(2,132,199,0.45);
}
.hub-icon-scratch::before {
    top: 6px; left: 6px; right: 6px; height: 10px; border-radius: 3px;
    background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 8px);
    opacity: 0.7;
}
.hub-icon-scratch::after {
    bottom: 8px; left: 8px; width: 14px; height: 14px; border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.6);
}

.hub-icon-quiz {
    width: 38px; height: 38px; border-radius: 50% 50% 50% 8px;
    background: linear-gradient(145deg, #fde047, #eab308);
    box-shadow: 0 6px 16px rgba(234,179,8,0.45);
}
.hub-icon-quiz::before {
    top: 50%; left: 50%; transform: translate(-50%, -55%);
    width: auto; height: auto;
    font-size: 20px; font-weight: 800; color: #713f12; content: '?';
    line-height: 1; background: none; border: none; box-shadow: none;
}

.hub-icon-refer {
    width: 38px; height: 30px;
}
.hub-icon-refer::before, .hub-icon-refer::after {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(145deg, #4ade80, #16a34a);
    bottom: 0; box-shadow: 0 4px 10px rgba(22,163,74,0.4);
}
.hub-icon-refer::before { left: 2px; }
.hub-icon-refer::after { right: 2px; background: linear-gradient(145deg, #86efac, #22c55e); }

.hub-icon-trophy {
    width: 34px; height: 38px;
}
.hub-icon-trophy::before {
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 22px; border-radius: 4px 4px 8px 8px;
    background: linear-gradient(145deg, #fde68a, #f59e0b 50%, #d97706);
    box-shadow: 0 5px 14px rgba(217,119,6,0.45);
}
.hub-icon-trophy::after {
    top: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 14px; border-radius: 6px 6px 0 0;
    border: 4px solid #fbbf24; border-bottom: none;
    background: transparent;
}

.hub-icon-fire {
    width: 26px; height: 32px;
    background: linear-gradient(180deg, transparent 30%, #fb923c 30%, #ef4444 70%, #fbbf24 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    transform: rotate(-5deg);
}

.hub-icon-ads {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(145deg, #a78bfa, #7c3aed);
    box-shadow: 0 4px 12px rgba(124,58,237,0.45);
}
.hub-icon-ads::before {
    top: 50%; left: 54%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #fff;
}

.hub-icon-group {
    width: 32px; height: 24px;
}
.hub-icon-group::before, .hub-icon-group::after {
    width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    bottom: 0; box-shadow: 0 3px 8px rgba(37,99,235,0.4);
}
.hub-icon-group::before { left: 0; }
.hub-icon-group::after { right: 0; background: linear-gradient(145deg, #93c5fd, #3b82f6); }

.hub-icon-gem {
    width: 28px; height: 28px;
    background: linear-gradient(145deg, #c084fc, #7c3aed);
    clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
    box-shadow: 0 4px 12px rgba(124,58,237,0.45);
}

.hub-icon-gift {
    width: 30px; height: 30px; border-radius: 6px;
    background: linear-gradient(145deg, #f472b6, #db2777);
    box-shadow: 0 5px 14px rgba(219,39,119,0.45);
}
.hub-icon-gift::before {
    top: 0; left: 0; right: 0; height: 10px;
    background: linear-gradient(90deg, #fda4af, #f472b6);
    border-radius: 6px 6px 0 0;
}
.hub-icon-gift::after {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 4px; height: 100%; background: #fce7f3;
    box-shadow: -8px 0 0 -2px #fce7f3, 8px 0 0 -2px #fce7f3;
}

.hub-icon-coin {
    width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 60%, #d97706);
    border: 2px solid #fcd34d;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hub-icon-wallet-sm {
    width: 18px; height: 14px; border-radius: 4px 4px 6px 6px;
    background: linear-gradient(145deg, #f472b6, #ec4899);
    box-shadow: 0 2px 6px rgba(236,72,153,0.4);
}
.hub-icon-wallet-sm::before {
    top: 4px; left: 3px; right: 3px; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,0.35);
}

.hub-icon-pause {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(145deg, #64748b, #475569);
}
.hub-icon-pause::before, .hub-icon-pause::after {
    top: 50%; transform: translateY(-50%);
    width: 4px; height: 14px; border-radius: 2px; background: #fff;
}
.hub-icon-pause::before { left: 9px; }
.hub-icon-pause::after { right: 9px; }

.qc-icon .hub-icon { transform: scale(1.05); }
.gt-icon .hub-icon { transform: scale(0.95); }

/* Legacy compat */
.section-label { font-size: 15px; font-weight: 700; padding: 0 16px; margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px; margin-bottom: 20px; }
.quick-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 11px; width: 100%; }
.stats-row-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; margin-bottom: 20px; }
.stat-hub { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.stat-hub .stat-big { font-size: 22px; font-weight: 800; color: var(--purple-light); }
.games-scroll { display: flex; gap: 12px; padding: 0 16px 20px; overflow-x: auto; }
.game-card { flex: 0 0 130px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; }
.balance-hero { margin: 0 16px 16px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #7c3aed, #4169e1); }
.progress-hub { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-hub-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 4px; }

/* Recent Activity */
.activity-list { padding: 0 16px 20px; }
.activity-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.act-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.act-green { background: rgba(34,197,94,0.15); }
.act-purple { background: rgba(124,58,237,0.15); }
.act-blue { background: rgba(59,130,246,0.15); }
.act-body { flex: 1; }
.act-body .act-title { font-size: 13px; font-weight: 600; }
.act-body .act-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.act-reward { font-size: 14px; font-weight: 700; color: var(--green); }

/* Page layout */
.page { display: none; padding-bottom: 16px; animation: fadeUp .3s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.page-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; position: sticky; top: 0;
    background: rgba(12,6,24,0.9); backdrop-filter: blur(12px); z-index: 50;
}
.page-header h1 { font-size: 18px; font-weight: 700; flex: 1; }
.back-btn {
    width: 36px; height: 36px; border-radius: 10px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.header-badge {
    background: var(--purple); padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}

/* Task Banner */
.task-banner {
    margin: 12px 16px; padding: 20px; border-radius: var(--radius);
    background: linear-gradient(135deg, #1e1040, #2d1b69);
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: space-between; overflow: hidden; position: relative;
}
.task-banner h3 { font-size: 16px; font-weight: 700; max-width: 60%; }
.task-banner p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.task-banner .tb-emoji { font-size: 56px; opacity: 0.6; }

/* Tabs */
.tabs-hub {
    display: flex; gap: 8px; padding: 0 16px; margin-bottom: 16px; overflow-x: auto;
}
.tabs-hub::-webkit-scrollbar { display: none; }
.tab-hub {
    flex: 1; min-width: 100px; padding: 10px 14px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    cursor: pointer; text-align: center; white-space: nowrap; transition: .2s;
}
.tab-hub.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-color: transparent; color: #fff;
    box-shadow: 0 4px 16px var(--purple-glow);
}

/* Social Task Card */
.social-task {
    margin: 0 16px 12px; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
}
.social-task .st-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    flex-shrink: 0;
}
.st-telegram { background: rgba(0,136,204,0.2); }
.st-youtube { background: rgba(255,0,0,0.15); }
.st-twitter { background: rgba(29,161,242,0.15); }
.st-web { background: rgba(124,58,237,0.15); }
.social-task .st-info { flex: 1; min-width: 0; }
.social-task .st-title { font-size: 14px; font-weight: 600; }
.social-task .st-reward { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 2px; }
.btn-action {
    padding: 8px 18px; border-radius: 20px; border: none;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 12px var(--purple-glow); flex-shrink: 0;
}
.btn-action.done { background: var(--green); box-shadow: none; }

/* Task History */
.task-history-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding: 0 16px; margin-bottom: 12px;
}
.ths-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 8px; text-align: center;
}
.ths-value { font-size: 16px; font-weight: 700; color: var(--green); }
.ths-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.task-history-meta {
    font-size: 11px; color: var(--text-muted); margin-top: 4px;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.task-history-status {
    font-size: 10px; font-weight: 700; padding: 6px 10px; border-radius: 12px; flex-shrink: 0;
}
.task-history-status.claimed { background: rgba(34,197,94,0.15); color: var(--green); }
.task-history-status.pending { background: rgba(234,179,8,0.15); color: #eab308; }
.btn-outline-hub {
    padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}

/* Support Tickets — Bengali + chat */
.support-page.bn-text {
    font-family: 'Noto Sans Bengali', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.support-lang-toggle {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 0 16px 10px;
}
.support-lang-btn {
    padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.support-lang-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-color: transparent; color: #fff;
}
.support-form-card { margin-top: 4px; }
.support-label {
    display: block; font-size: 12px; font-weight: 600; color: var(--text2);
    margin: 10px 0 6px;
}
.support-bn-hint {
    font-size: 12px; color: var(--green); margin-bottom: 8px; font-weight: 600;
}
.support-ticket-card { cursor: pointer; transition: 0.15s; }
.support-ticket-card:active { transform: scale(0.98); }
.support-ticket-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.support-ticket-subject { font-weight: 600; font-size: 14px; flex: 1; word-break: break-word; }
.support-ticket-subject-lg {
    font-weight: 700; font-size: 16px; margin-bottom: 12px; word-break: break-word;
}
.support-ticket-status {
    font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 10px; flex-shrink: 0;
}
.support-ticket-status.status-open { background: rgba(59,130,246,0.15); color: #60a5fa; }
.support-ticket-status.status-in_progress { background: rgba(234,179,8,0.15); color: #eab308; }
.support-ticket-status.status-resolved { background: rgba(34,197,94,0.15); color: var(--green); }
.support-ticket-status.status-closed { background: rgba(148,163,184,0.15); color: #94a3b8; }
.support-ticket-date { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.support-chat {
    max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 12px; padding-right: 4px;
}
.support-msg {
    max-width: 88%; padding: 10px 12px; border-radius: 14px; word-break: break-word;
}
.support-msg-user {
    align-self: flex-start; background: var(--bg-card2); border: 1px solid var(--border);
}
.support-msg-admin {
    align-self: flex-end; background: rgba(124,58,237,0.18); border: 1px solid rgba(124,58,237,0.25);
}
.support-msg-head { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.support-msg-body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.support-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
.support-closed-note {
    font-size: 12px; color: var(--text-muted); text-align: center; padding: 8px 0;
}

/* Spin Wheel v3 — premium UI */
.spin-hero-card, .scratch-hero-card, .quiz-hero-card {
    margin: 12px 16px; padding: 14px 16px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.12));
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
}
.spin-hero-title { font-size: 15px; font-weight: 700; }
.spin-hero-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.spin-arena {
    margin: 0 16px 16px; padding: 20px 16px 24px; border-radius: 22px;
    background: linear-gradient(180deg, rgba(30,27,75,0.95) 0%, rgba(15,10,35,0.98) 100%);
    border: 1px solid rgba(167,139,250,0.25);
    box-shadow: 0 20px 60px rgba(124,58,237,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    text-align: center; position: relative; overflow: hidden;
}
.spin-arena::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
    pointer-events: none;
}
.spin-stats-row {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.spin-stat-chip {
    padding: 8px 14px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text2);
}
.spin-stat-chip strong { color: #fff; font-size: 13px; display: block; margin-bottom: 2px; }
.spin-stat-chip.highlight {
    background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(236,72,153,0.2));
    border-color: rgba(167,139,250,0.4);
}

.spin-page { padding: 0; text-align: center; position: relative; z-index: 1; }
.wheel-outer-ring {
    position: relative; width: 300px; height: 300px; margin: 0 auto 22px;
}
.wheel-lights {
    position: absolute; inset: -4px; border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255,255,255,0.15) 0deg 8deg,
        transparent 8deg 18deg
    );
    animation: wheelLights 12s linear infinite;
    mask: radial-gradient(circle, transparent 88%, #000 89%);
    -webkit-mask: radial-gradient(circle, transparent 88%, #000 89%);
}
@keyframes wheelLights { to { transform: rotate(360deg); } }

.wheel-container { position: absolute; inset: 10px; }
.wheel-glow {
    position: absolute; inset: -6px; border-radius: 50%;
    background: conic-gradient(from 0deg, #7c3aed, #ec4899, #3b82f6, #22c55e, #eab308, #7c3aed);
    animation: wheelGlow 4s linear infinite; opacity: 0.55;
    filter: blur(2px);
}
@keyframes wheelGlow { to { transform: rotate(360deg); } }

.wheel-disc {
    position: absolute; inset: 5px; border-radius: 50%;
    transition: transform var(--spin-duration, 4.8s) cubic-bezier(0.12, 0.78, 0.14, 1);
    border: 5px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35), 0 8px 32px rgba(0,0,0,0.4);
    overflow: hidden;
    will-change: transform;
    contain: layout style;
    backface-visibility: hidden;
}
.wheel-disc.spin-active {
    filter: brightness(1.12) saturate(1.08);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35), 0 8px 44px rgba(124,58,237,0.45);
}
.wheel-container.spinning-glow .wheel-glow {
    opacity: 0.9;
    animation-duration: 1.2s;
}
.wheel-pointer-wrap.wheel-pointer-bounce {
    animation: pointerBounce 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    35% { transform: translateX(-50%) translateY(8px); }
    65% { transform: translateX(-50%) translateY(-4px); }
}

.wheel-segments-svg {
    position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
}
.wheel-labels {
    position: absolute; inset: 0; border-radius: 50%; z-index: 3;
}
.wheel-label {
    position: absolute; left: 50%; top: 50%;
    font-size: 8px; font-weight: 800; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    max-width: 52px; text-align: center; line-height: 1.15;
    transform-origin: center center;
}
.wheel-label .wl-amt {
    display: block; font-size: 10px; color: #fde68a; margin-top: 2px;
}

.wheel-center-cap {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%; z-index: 6;
    background: linear-gradient(145deg, #faf5ff, #c4b5fd 40%, #7c3aed);
    color: #4c1d95; font-size: 10px; font-weight: 900; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45), inset 0 2px 6px rgba(255,255,255,0.5);
    border: 4px solid rgba(255,255,255,0.6);
}

.wheel-pointer-wrap {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    z-index: 12; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.wheel-pointer-hub {
    width: 0; height: 0;
    border-left: 16px solid transparent; border-right: 16px solid transparent;
    border-top: 30px solid #fff;
}

.spin-btn-row {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 320px; margin: 0 auto;
}
.btn-spin-sound {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    border: 1px solid rgba(167,139,250,0.35);
    background: rgba(255,255,255,0.06); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s, background 0.15s;
}
.btn-spin-sound:active { transform: scale(0.94); background: rgba(255,255,255,0.12); }
.btn-spin-now {
    flex: 1; max-width: 280px; padding: 16px 24px;
    border-radius: 16px; border: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #5b21b6 100%);
    color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 32px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-spin-now:active:not(:disabled) { transform: scale(0.97); }
.btn-spin-now:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-spin-now .spin-btn-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-spin-sub {
    font-size: 11px; color: var(--text-muted); margin-top: 12px;
    padding: 0 8px; line-height: 1.4;
}

.spin-prizes-title {
    font-size: 13px; font-weight: 700; color: var(--text2);
    margin: 20px 16px 10px; text-align: left;
}
.spin-prizes-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    padding: 0 16px 8px;
}
.spin-prize-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 12px; background: var(--bg-card);
    border: 1px solid var(--border);
}
.spin-prize-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.spin-prize-item .sp-name { font-size: 12px; font-weight: 600; }
.spin-prize-item .sp-amt { font-size: 11px; color: var(--green); font-weight: 700; }

.spin-win-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(5,5,16,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; animation: fadeUp 0.3s ease;
}
.spin-win-card {
    width: 100%; max-width: 300px; padding: 32px 24px; border-radius: 24px;
    background: linear-gradient(180deg, #1e1b4b, #0f0a23);
    border: 1px solid rgba(167,139,250,0.35);
    text-align: center; box-shadow: 0 24px 80px rgba(124,58,237,0.4);
    animation: spinWinPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.spin-win-burst {
    position: absolute; inset: -40%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--win-color, #7c3aed) 35%, transparent) 0%, transparent 65%);
    animation: winBurst 1.2s ease-out forwards;
}
@keyframes winBurst {
    from { transform: scale(0.3); opacity: 0.9; }
    to { transform: scale(1.4); opacity: 0; }
}
@keyframes spinWinPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.spin-win-emoji { font-size: 56px; margin-bottom: 8px; animation: coinFloat 1.5s ease-in-out infinite; }
.spin-win-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.spin-win-amount {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin: 8px 0;
}
.spin-win-label { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.spin-win-coins { font-size: 13px; color: var(--purple-light); font-weight: 600; margin-bottom: 8px; }
.spin-win-note {
    font-size: 11px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.4;
}
.spin-win-actions {
    display: flex; flex-direction: column; gap: 10px;
}
.btn-spin-claim, .btn-spin-try {
    width: 100%; padding: 14px; border-radius: 14px; border: none;
    font-weight: 700; font-size: 15px; cursor: pointer;
}
.btn-spin-claim {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
}
.btn-spin-try {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(167,139,250,0.35);
    color: var(--text2);
}
.quiz-card .quiz-question { font-weight: 600; font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.quiz-reward-hint { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
    width: 100%; padding: 14px 16px; border-radius: 12px; text-align: left;
    background: var(--bg-card2); border: 1px solid var(--border); color: var(--text);
    font-size: 14px; font-weight: 500; cursor: pointer;
}
.quiz-option:active { border-color: var(--purple); }
.quiz-option:disabled { opacity: 0.5; cursor: not-allowed; }
.quiz-claim-card { text-align: center; margin-top: 12px; }
.scratch-hub.disabled { opacity: 0.55; pointer-events: none; }
.scratch-cover.busy { pointer-events: none; opacity: 0.8; }

/* Podium Leaderboard */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 20px 16px; }
.podium-item { text-align: center; flex: 1; max-width: 100px; }
.podium-item .p-avatar {
    width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 6px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    border: 3px solid;
}
.podium-item.p1 .p-avatar { width: 56px; height: 56px; border-color: var(--yellow); }
.podium-item.p2 .p-avatar { border-color: #c0c0c0; }
.podium-item.p3 .p-avatar { border-color: #cd7f32; }
.podium-bar {
    border-radius: 8px 8px 0 0; margin-top: 8px; padding-top: 8px;
    background: linear-gradient(180deg, var(--bg-card2), var(--bg-card));
    border: 1px solid var(--border);
}
.p1 .podium-bar { height: 80px; }
.p2 .podium-bar { height: 60px; }
.p3 .podium-bar { height: 45px; }
.my-rank-bar {
    margin: 0 16px; padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--purple);
    display: flex; align-items: center; justify-content: space-between;
}

/* Cards & Forms */
.hub-card {
    margin: 0 16px 12px; padding: 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
}
.btn-primary-hub {
    width: 100%; padding: 14px; border-radius: var(--radius-sm); border: none;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
    box-shadow: 0 6px 20px var(--purple-glow);
}
.btn-primary-hub:disabled { opacity: 0.45; cursor: not-allowed; }
.ref-share-card { text-align: center; }
.ref-reward-hint {
    font-size: 12px; color: var(--purple-light); font-weight: 600;
    margin: 10px 0 14px; line-height: 1.4;
}
.ref-share-btn { margin-top: 4px; }
.form-input-hub {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text); font-size: 14px; outline: none; margin-bottom: 12px;
}
.form-input-hub:focus { border-color: var(--purple); }

/* Home — Watch Ads promo banner */
.home-ad-promo {
    position: relative; overflow: hidden;
    margin: 0 16px 20px; padding: 18px 16px 16px;
    border-radius: 20px;
    background: linear-gradient(155deg, #1a1040 0%, #12082a 50%, #0c0618 100%);
    border: 1px solid rgba(167,139,250,0.28);
    box-shadow: 0 14px 40px rgba(124,58,237,0.22);
    cursor: pointer;
}
.hap-glow {
    position: absolute; top: -40px; right: -20px; width: 140px; height: 140px;
    border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,0.22), transparent 70%);
    pointer-events: none;
}
.hap-body { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; position: relative; z-index: 1; }
.hap-icon-wrap { flex-shrink: 0; }
.hap-text { flex: 1; min-width: 0; }
.hap-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.hap-counter { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.hap-progress {
    height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
}
.hap-progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 0.4s ease;
}
.hap-cta {
    width: 100%; padding: 14px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9 55%, #5b21b6);
    color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 28px rgba(124,58,237,0.5);
    position: relative; z-index: 1;
}
.hap-cta:active { transform: scale(0.98); }

/* 3D orange play icon (shared) */
.ad-play-3d, .hap-play-3d {
    width: 72px; height: 72px; border-radius: 18px;
    background: linear-gradient(145deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 10px 24px rgba(249,115,22,0.45),
        inset 0 2px 8px rgba(255,255,255,0.35),
        inset 0 -4px 10px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
}
.hap-play-3d { width: 56px; height: 56px; border-radius: 14px; }
.ad-play-3d span, .hap-play-3d span {
    font-size: 28px; color: #fff; margin-left: 4px; text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hap-play-3d span { font-size: 22px; }
.ad-play-3d.paused { background: linear-gradient(145deg, #64748b, #475569); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.ad-promo-icon.is-ready .ad-play-3d {
    animation: adIconPulse 2.2s ease-in-out infinite;
}
@keyframes adIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(249,115,22,0.45), inset 0 2px 8px rgba(255,255,255,0.35); }
    50% { transform: scale(1.04); box-shadow: 0 14px 32px rgba(249,115,22,0.6), 0 0 0 10px rgba(249,115,22,0.1); }
}

/* Watch Ads — promotional page */
.ad-promo-page { padding: 8px 16px 32px; }
.ad-promo-card {
    position: relative; overflow: hidden;
    margin-top: 4px; padding: 32px 22px 26px; text-align: center;
    border-radius: 22px;
    background: linear-gradient(165deg, #1c1048 0%, #140a30 48%, #0a0618 100%);
    border: 1px solid rgba(167,139,250,0.25);
    box-shadow: 0 16px 48px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
.ad-promo-card.is-limit { border-color: rgba(148,163,184,0.2); }
.ad-promo-card.is-disabled { opacity: 0.85; }
.ad-promo-shine {
    position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 260px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 68%);
    pointer-events: none;
}
.ad-promo-icon { margin: 0 auto 20px; width: fit-content; }
.ad-promo-earn {
    font-size: 22px; font-weight: 800; color: #fff;
    margin-bottom: 8px; letter-spacing: -0.3px;
}
.ad-promo-counter {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
    margin-bottom: 16px;
}
.ad-promo-counter.is-limit { color: #94a3b8; }
.ad-promo-progress {
    height: 8px; background: rgba(255,255,255,0.07); border-radius: 5px;
    overflow: hidden; margin-bottom: 18px;
}
.ad-promo-progress-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, #7c3aed, #c084fc);
    transition: width 0.45s ease;
    min-width: 0;
}
.ad-promo-hint {
    display: none; font-size: 12px; color: #fb923c; font-weight: 600;
    margin: -8px 0 12px;
}
.ad-promo-hint.show { display: block; }
.ad-promo-hint.sdk-hint { color: var(--text-muted); font-weight: 500; }
.ad-promo-btn {
    width: 100%; padding: 17px 20px; border: none; border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 40%, #5b21b6 100%);
    color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 32px rgba(124,58,237,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.ad-promo-btn:not(:disabled):active {
    transform: scale(0.97);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.ad-promo-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.ad-promo-btn-wait { background: linear-gradient(135deg, #92400e, #78350f); }
.ad-promo-btn-limit { background: linear-gradient(135deg, #334155, #1e293b); font-size: 14px; }
.ad-promo-note {
    margin-top: 14px; padding: 14px 16px; border-radius: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5;
}
.ad-card-disabled { opacity: 0.9; }

/* Legacy */
.ad-hero {
    margin: 16px; padding: 32px 20px; text-align: center; border-radius: var(--radius);
    background: linear-gradient(180deg, #1a1040, #0c0618);
    border: 1px solid rgba(124,58,237,0.3);
    box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.ad-hero .ad-play { font-size: 56px; margin-bottom: 12px; }

/* Bottom Nav */
.bottom-nav-hub {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-width: 430px; margin: 0 auto;
    background: #0f1220; backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 300;
}
.nav-hub {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: transparent !important; border: none !important;
    color: #6b7280;
    font-size: 10px; font-weight: 500; cursor: pointer; padding: 4px 12px;
    transition: color .2s; min-width: 56px;
    box-shadow: none !important;
}
.nav-icon-wrap { display: flex; align-items: center; justify-content: center; }
.nav-icon-wrap svg { width: 22px; height: 22px; }
.nav-hub.active { color: var(--purple-light); }
.nav-hub.active .nav-icon-wrap {
    background: rgba(124,58,237,0.28);
    border-radius: 14px;
    padding: 7px 16px;
    box-shadow: 0 0 22px rgba(124,58,237,0.5);
}

/* Toast */
.toast-hub {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
    background: var(--bg-card2); border: 1px solid var(--border);
    padding: 12px 24px; border-radius: 24px; font-size: 13px; font-weight: 600;
    z-index: 999; transition: transform .3s; max-width: 90%; text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-hub.show { transform: translateX(-50%) translateY(0); }
.toast-hub.success { border-color: var(--green); color: var(--green); }
.toast-hub.error { border-color: var(--pink); color: #fda4af; }

/* Error screens */
.error-screen {
    text-align: center; padding: 40px 24px; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.error-screen .error-icon { font-size: 64px; margin-bottom: 16px; }
.error-screen h3 { font-size: 22px; margin-bottom: 12px; }
.error-screen p { color: var(--text-muted); line-height: 1.6; }

/* Checkin */
.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0; }
.checkin-day {
    aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 10px;
}
.checkin-day.completed { background: var(--purple); border-color: var(--purple); }
.checkin-day.current { border-color: var(--purple-light); box-shadow: 0 0 12px var(--purple-glow); }

/* Scratch */
.scratch-hub {
    width: calc(100% - 32px); margin: 16px auto; height: 180px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; position: relative; overflow: hidden;
}
.scratch-cover {
    position: absolute; inset: 0; background: linear-gradient(135deg, #4b5563, #374151);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; cursor: pointer;
}

/* Tic Tac Toe — 3D hub icon */
.hub-icon-ttt {
    width: 38px; height: 38px; border-radius: 11px;
    background:
        linear-gradient(rgba(167,139,250,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.35) 1px, transparent 1px),
        linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
    background-size: 12px 12px, 12px 12px, 100% 100%;
    background-position: 5px 5px, 5px 5px, 0 0;
    box-shadow:
        0 6px 18px rgba(99,102,241,0.48),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -4px 8px rgba(0,0,0,0.22);
    overflow: hidden;
    flex-shrink: 0;
}
.hub-icon-ttt::before {
    top: 7px; left: 7px;
    width: 14px; height: 14px;
    background:
        linear-gradient(45deg, transparent 42%, #e9d5ff 42%, #e9d5ff 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #c4b5fd 42%, #c4b5fd 58%, transparent 58%);
    border-radius: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.hub-icon-ttt::after {
    bottom: 6px; right: 6px;
    width: 13px; height: 13px;
    border: 2.5px solid #93c5fd;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 8px rgba(96,165,250,0.45), inset 0 0 4px rgba(147,197,253,0.25);
}
.quick-card .hub-icon-ttt,
.game-tile .hub-icon-ttt,
.hss-icon .hub-icon-ttt {
    box-shadow: 0 4px 12px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.ttt-hero-card {
    margin: 0 16px 12px; padding: 16px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(30,27,75,0.9) 0%, rgba(67,56,202,0.25) 100%);
    border: 1px solid rgba(129,140,248,0.28);
    display: flex; align-items: center; gap: 14px;
    position: relative; overflow: hidden;
}
.ttt-hero-card::before {
    content: '';
    position: absolute; right: -30px; top: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.ttt-hero-icon {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.ttt-hero-icon .hub-icon-ttt {
    transform: scale(1.15);
    animation: ttt-icon-float 3s ease-in-out infinite;
}
@keyframes ttt-icon-float {
    0%, 100% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.15) translateY(-3px); }
}
.game-tile .gt-icon .hub-icon-ttt {
    filter: drop-shadow(0 3px 8px rgba(99,102,241,0.4));
}
.ttt-player-bar {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 0 16px 12px; padding: 10px 14px; border-radius: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
}
.ttt-player {
    display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
    color: var(--text-muted); padding: 6px 10px; border-radius: 10px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.ttt-player.active {
    color: #fff;
    background: rgba(124,58,237,0.22);
    box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.ttt-player-bot.thinking {
    color: #93c5fd;
    background: rgba(37,99,235,0.18);
    animation: ttt-bot-pulse 1.2s ease-in-out infinite;
}
@keyframes ttt-bot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.25); }
    50% { box-shadow: 0 0 14px 2px rgba(59,130,246,0.35); }
}
.ttt-mark {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
}
.ttt-mark-x { background: rgba(167,139,250,0.2); color: #c4b5fd; }
.ttt-mark-o { background: rgba(96,165,250,0.2); color: #93c5fd; }
.ttt-vs { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; }
.ttt-card { text-align: center; padding: 20px 16px !important; }
.ttt-board {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    max-width: 300px; margin: 0 auto 16px;
}
.ttt-cell {
    aspect-ratio: 1; min-height: 84px; border-radius: 16px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    font-size: 34px; font-weight: 800; color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.ttt-cell.ttt-empty:not(:disabled) { cursor: pointer; }
.ttt-cell.ttt-empty:not(:disabled):hover { background: rgba(124,58,237,0.14); }
.ttt-cell.ttt-empty:not(:disabled):active { transform: scale(0.94); background: rgba(124,58,237,0.24); }
.ttt-cell.ttt-x { color: #c4b5fd; border-color: rgba(167,139,250,0.45); }
.ttt-cell.ttt-o { color: #93c5fd; border-color: rgba(96,165,250,0.45); }
.ttt-cell.ttt-last-move {
    animation: ttt-pop 0.35s ease-out;
    box-shadow: 0 0 18px rgba(124,58,237,0.35);
}
.ttt-cell.ttt-win-cell {
    background: rgba(34,197,94,0.18) !important;
    border-color: rgba(74,222,128,0.55) !important;
    box-shadow: 0 0 20px rgba(34,197,94,0.3);
}
@keyframes ttt-pop {
    0% { transform: scale(0.55); opacity: 0.4; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.ttt-cell:disabled { cursor: default; opacity: 1; }
.ttt-hint { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.ttt-play-btn { margin-top: 8px; }
.ttt-footer-note {
    text-align: center; color: var(--text-muted); font-size: 12px;
    padding: 0 16px 20px; line-height: 1.5;
}
.ttt-status {
    min-height: 28px; margin-bottom: 10px; font-size: 13px; color: var(--text-muted);
}
.ttt-status-thinking { color: #93c5fd; }
.ttt-dots { display: inline-block; animation: ttt-blink 1s ease-in-out infinite; }
@keyframes ttt-blink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}
.ttt-result { font-size: 15px; font-weight: 700; padding: 10px; border-radius: 12px; }
.ttt-win { background: rgba(34,197,94,0.15); color: #4ade80; }
.ttt-lose { background: rgba(236,72,153,0.12); color: #f472b6; }
.ttt-draw { background: rgba(234,179,8,0.12); color: #fde047; }

/* Coin Mining — 3D hub icon */
.hub-icon-mining {
    width: 38px; height: 38px; border-radius: 11px;
    background:
        radial-gradient(circle at 72% 22%, rgba(253,224,71,0.45) 0%, transparent 42%),
        linear-gradient(155deg, #292524 0%, #44403c 38%, #78350f 72%, #b45309 100%);
    box-shadow:
        0 4px 14px rgba(217,119,6,0.42),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -4px 8px rgba(0,0,0,0.25);
    overflow: hidden;
    flex-shrink: 0;
}
.quick-card .hub-icon-mining,
.hf-icon .hub-icon-mining,
.hss-icon .hub-icon-mining {
    box-shadow: 0 3px 10px rgba(217,119,6,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.hub-icon-mining::before {
    top: 11px; left: 18px;
    width: 5px; height: 21px;
    border-radius: 3px;
    background: linear-gradient(90deg, #78350f 0%, #d97706 45%, #fbbf24 55%, #92400e 100%);
    transform: rotate(-38deg);
    transform-origin: 50% 85%;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.45);
}
.hub-icon-mining::after {
    top: 5px; left: 7px;
    width: 24px; height: 7px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 45%, #64748b 100%);
    transform: rotate(-38deg);
    box-shadow:
        0 2px 5px rgba(0,0,0,0.4),
        -9px 1px 0 -2px #94a3b8,
        9px 1px 0 -2px #94a3b8;
}

/* Mining — home banner */
.mining-home-banner {
    margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(120,53,15,0.55) 0%, rgba(180,83,9,0.35) 50%, rgba(124,58,237,0.2) 100%);
    border: 1px solid rgba(251,191,36,0.35);
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 8px 24px rgba(217,119,6,0.2);
    transition: transform 0.15s;
}
.mining-home-banner:active { transform: scale(0.98); }
.mhb-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mhb-icon .hub-icon-mining { filter: drop-shadow(0 4px 10px rgba(251,191,36,0.5)); }
.mhb-body { flex: 1; min-width: 0; }
.mhb-title { font-size: 13px; font-weight: 700; color: #fde68a; }
.mhb-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.mhb-pulse {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: #fbbf24; box-shadow: 0 0 0 0 rgba(251,191,36,0.6);
    animation: mining-pulse 2s ease-out infinite;
}
@keyframes mining-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251,191,36,0.55); }
    70% { box-shadow: 0 0 0 12px rgba(251,191,36,0); }
    100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}

/* Mining — page */
.mining-hero-card {
    margin: 0 16px 12px; padding: 16px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(41,37,36,0.9) 0%, rgba(120,53,15,0.45) 100%);
    border: 1px solid rgba(251,191,36,0.25);
    display: flex; align-items: center; gap: 14px;
    position: relative; overflow: hidden;
}
.mining-hero-glow {
    position: absolute; right: -20px; top: -20px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,0.35) 0%, transparent 70%);
    pointer-events: none;
}
.mining-hero-icon {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.mining-hero-icon .hub-icon-mining {
    transform: scale(1.2);
    animation: mining-icon-float 3s ease-in-out infinite;
}
@keyframes mining-icon-float {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
}
.mining-card { margin: 0 16px; padding: 20px 16px !important; text-align: center; }
.mining-visual { position: relative; margin-bottom: 18px; }
.mining-particles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.mining-particles span {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: #fbbf24; opacity: 0;
    animation: mining-particle 3s ease-in-out infinite;
}
.mining-particles span:nth-child(1) { left: 18%; top: 30%; animation-delay: 0s; }
.mining-particles span:nth-child(2) { left: 72%; top: 22%; animation-delay: 0.6s; width: 3px; height: 3px; }
.mining-particles span:nth-child(3) { left: 55%; top: 68%; animation-delay: 1.2s; }
.mining-particles span:nth-child(4) { left: 28%; top: 58%; animation-delay: 1.8s; width: 5px; height: 5px; }
.mining-particles span:nth-child(5) { left: 82%; top: 48%; animation-delay: 2.4s; }
@keyframes mining-particle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    40% { opacity: 0.9; transform: translateY(-8px) scale(1); }
    80% { opacity: 0; transform: translateY(-16px) scale(0.3); }
}
.mining-ring-wrap {
    position: relative; width: 180px; height: 180px; margin: 0 auto;
}
.mining-ring {
    width: 100%; height: 100%; transform: rotate(-90deg);
}
.mining-ring-bg {
    fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6;
}
.mining-ring-progress {
    fill: none; stroke: url(#miningGrad); stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    transition: stroke-dashoffset 0.8s ease;
    filter: drop-shadow(0 0 8px rgba(251,191,36,0.5));
}
.mining-ring-wrap svg defs { display: none; }
.mining-ring-progress {
    stroke: #fbbf24;
}
.mining-ring-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mining-ring-pct {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(180deg, #fde68a, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mining-ring-timer {
    font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.mining-status-line {
    font-size: 13px; color: var(--text-muted); margin-top: 12px; min-height: 18px;
}
.mining-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-bottom: 16px;
}
.mining-stat {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px 12px; text-align: left;
}
.mining-stat .ms-label {
    display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 4px;
}
.mining-stat strong {
    font-size: 15px; font-weight: 700; color: #fde68a;
}
.mining-stat:first-child strong { color: #fbbf24; }
.mining-claim-btn, .mining-start-btn { width: 100%; margin-top: 4px; }
.mining-hint { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.mining-footer-note {
    text-align: center; color: var(--text-muted); font-size: 12px;
    padding: 0 16px 24px; line-height: 1.5;
}
.game-tile .gt-icon .hub-icon-mining {
    filter: drop-shadow(0 3px 8px rgba(217,119,6,0.4));
}

/* Hide balance */
.balance-hidden { filter: blur(8px); user-select: none; }

/* Profile strip mobile fix */
@media (max-width: 380px) {
    .profile-strip { flex-wrap: wrap; }
    .xp-bar-wrap { width: 100%; margin-top: 4px; }
}

/* Select dropdown dark theme */
select.form-input-hub option {
    background: var(--bg-card);
    color: var(--text);
}

/* Wallet page */
.wallet-balance-card {
    margin: 12px 16px 16px; padding: 20px; border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #4169e1 100%);
    box-shadow: 0 12px 40px rgba(124,58,237,0.3);
}
.wallet-balance-card .wb-label { font-size: 12px; opacity: 0.9; }
.wallet-balance-card .wb-amount { font-size: 28px; font-weight: 800; margin: 6px 0; }
.wallet-balance-card .wb-meta { font-size: 12px; opacity: 0.9; display: flex; gap: 14px; flex-wrap: wrap; }
.wallet-alert {
    background: rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.35);
    color: #ffb8d0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}
.withdraw-limits { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; }
.withdraw-amount-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.withdraw-amount-row .form-input-hub { flex: 1; margin-bottom: 0; }
.btn-outline-hub {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-outline-hub:disabled { opacity: 0.4; cursor: not-allowed; }

.pm-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 14px;
}
.pm-card {
    background: var(--bg-card2); border: 2px solid var(--border);
    border-radius: 14px; padding: 12px 8px; text-align: center;
    cursor: pointer; transition: 0.15s;
}
.pm-card.active {
    border-color: var(--purple); background: var(--purple-soft);
    box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.pm-card .pm-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.pm-card .pm-icon-img {
    width: 44px; height: 44px; object-fit: contain;
    display: block; margin: 0 auto 6px; border-radius: 10px;
    background: rgba(255,255,255,0.06); padding: 4px;
}
.pm-icon-fallback {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-size: 14px; font-weight: 800;
    background: linear-gradient(145deg, rgba(124,58,237,0.35), rgba(59,130,246,0.25));
    color: #e9d5ff; border: 1px solid var(--border);
}
.pm-fb-bkash { background: linear-gradient(145deg, #e2136e, #9d0d52); color: #fff; }
.pm-fb-nagad { background: linear-gradient(145deg, #f69220, #c46f10); color: #fff; }
.pm-fb-rocket { background: linear-gradient(145deg, #8b1d7d, #5e1454); color: #fff; }
.pm-fb-paypal { background: linear-gradient(145deg, #003087, #009cde); color: #fff; }
.pm-fb-crypto, .pm-fb-btc { background: linear-gradient(145deg, #f7931a, #c46f10); color: #fff; }
.pm-fb-bank { background: linear-gradient(145deg, #1e40af, #1d4ed8); color: #fff; }
.pm-card .pm-name { font-size: 11px; font-weight: 600; color: var(--text); }
.pm-empty {
    text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px;
    background: var(--bg-card2); border-radius: 14px; margin-bottom: 12px;
}
.wallet-section-title {
    font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text2);
}
.status-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.status-pending { background: rgba(249,115,22,0.2); color: var(--orange); }
.status-approved, .status-completed, .status-confirmed { background: rgba(34,197,94,0.2); color: var(--green); }
.status-rejected, .status-cancelled { background: rgba(239,68,68,0.2); color: var(--pink); }

/* Profile page */
.profile-hero {
    margin: 12px 16px; padding: 24px 16px; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.profile-avatar {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
    overflow: hidden; border: 3px solid rgba(124,58,237,0.45);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero .pname { font-size: 18px; font-weight: 700; word-break: break-word; }
.profile-hero .phandle { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.profile-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 0 16px; margin-bottom: 16px;
}
.profile-stat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 8px; text-align: center;
}
.profile-stat .ps-val { font-size: 18px; font-weight: 800; color: var(--purple-light); }
.profile-stat .ps-label { font-size: 9px; color: var(--text-muted); margin-top: 4px; }
.profile-menu { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.profile-menu-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 16px; cursor: pointer;
    text-align: left; width: 100%; transition: 0.15s;
}
.profile-menu-item:active { border-color: rgba(124,58,237,0.4); background: var(--purple-soft); }
.profile-menu-item .pmi-icon { font-size: 22px; width: 32px; text-align: center; }
.profile-menu-item .pmi-text { flex: 1; font-size: 14px; font-weight: 600; }
.profile-menu-item .pmi-arrow { color: var(--text-muted); font-size: 14px; }
