/* 9ank.Com - Premium Gaming Theme v3 */
:root {
    --bg-deep: #070b14;
    --bg-main: #0a0e17;
    --bg-card: rgba(18, 24, 38, 0.82);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(124, 58, 237, 0.35);
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --neon: #22c55e;
    --neon-bright: #39ff14;
    --red: #ef4444;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-neon: linear-gradient(135deg, #10b981, #22c55e);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.25);
    --radius: 14px;
    --radius-sm: 10px;
    --sidebar-w: 270px;
    --header-h: 64px;
    --bottom-nav-h: 68px;
    --font: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Background effects */
.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; animation: floatOrb 12s ease-in-out infinite; }
.orb-purple { width: 320px; height: 320px; background: var(--purple); top: -80px; left: -60px; }
.orb-blue { width: 280px; height: 280px; background: var(--blue); top: 40%; right: -80px; animation-delay: -4s; }
.orb-gold { width: 200px; height: 200px; background: var(--gold); bottom: 10%; left: 20%; animation-delay: -8s; }
@keyframes floatOrb { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }

/* Layout */
.app-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}
.app-layout.has-sidebar { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
.page-content { padding: 16px; max-width: 1200px; margin: 0 auto; width: 100%; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }

.fade-in { animation: fadeIn 0.45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sidebar */
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    z-index: 300; backdrop-filter: blur(4px);
    display: none;
    pointer-events: none;
}
.sidebar-overlay:not([hidden]) { display: block; pointer-events: auto; }
.sidebar-overlay[hidden] { display: none !important; pointer-events: none !important; }

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w); z-index: 310;
    background: rgba(10, 14, 23, 0.95);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-glow);
}
.sidebar.open { transform: translateX(0); }

.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 16px; border-bottom: 1px solid var(--border);
}
.brand-glow {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--gradient-main);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    box-shadow: 0 0 20px rgba(124,58,237,0.5);
}
.brand-title { font-weight: 800; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-muted); }
.sidebar-close {
    margin-left: auto; background: transparent; border: 0;
    color: var(--text-muted); font-size: 24px; line-height: 1;
}

.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    margin: 14px; padding: 12px;
}
.sidebar-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient-gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #111;
}
.sidebar-user-name { font-weight: 700; font-size: 14px; }
.sidebar-user-mobile { font-size: 12px; color: var(--text-muted); }

.sidebar-menu { flex: 1; overflow-y: auto; padding: 8px 10px; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    margin-bottom: 4px; font-size: 14px; font-weight: 500;
    color: var(--text-muted); transition: all 0.2s ease;
}
.sidebar-link:hover { background: var(--bg-glass); color: var(--text); }
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(124,58,237,0.25), rgba(59,130,246,0.15));
    color: var(--text); border: 1px solid var(--border-glow);
    box-shadow: 0 0 16px rgba(124,58,237,0.15);
}
.sidebar-link-icon { width: 22px; text-align: center; font-size: 16px; }
.sidebar-link-danger { color: #fca5a5; }
.sidebar-link-danger:hover { background: rgba(239,68,68,0.12); color: #fecaca; }

@media (min-width: 1024px) {
    .sidebar { transform: translateX(0); }
    .sidebar-close, .sidebar-overlay { display: none !important; }
    .app-layout.has-sidebar { margin-left: var(--sidebar-w); padding-bottom: 0; }
    .mobile-bottom-nav { display: none !important; }
    .fab-support { bottom: 24px; }
}

/* Header */
.top-header {
    position: sticky; top: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; min-height: var(--header-h);
    padding: 10px 16px;
    background: rgba(10, 14, 23, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.header-start, .header-end { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-title {
    font-weight: 700; font-size: 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 1024px) { #sidebarToggle { display: none; } }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--bg-glass);
    color: var(--text); display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; transition: all 0.2s ease;
}
.icon-btn:hover { border-color: var(--purple-light); box-shadow: 0 0 12px rgba(124,58,237,0.3); }

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
}
.glass-pill {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 12px;
    font-size: 11px; font-weight: 600; color: var(--neon-bright);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.live-clock { letter-spacing: 0.2px; }

.wallet-pill {
    display: none; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wallet-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.wallet-pill-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.wallet-pill-value { font-weight: 800; font-size: 14px; color: var(--gold-light); }
.wallet-pill-currency { font-size: 12px; color: var(--gold); }
@media (min-width: 480px) { .wallet-pill { display: inline-flex; } }

.avatar-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gradient-main);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
    box-shadow: 0 0 16px rgba(124,58,237,0.4);
}

/* Cards */
.card, .glass-card-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .glass-card-block:hover {
    border-color: rgba(124, 58, 237, 0.25);
}
.card-title, .section-title {
    font-size: 17px; font-weight: 700; margin: 0 0 14px;
    display: flex; align-items: center; gap: 8px;
}
.section-title::before {
    content: ''; width: 4px; height: 20px;
    background: var(--gradient-main); border-radius: 999px;
}
.muted { color: var(--text-muted); font-size: 13px; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
    padding: 16px; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    position: relative; overflow: hidden;
    transition: transform 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.stat-card.purple::after { background: var(--gradient-main); }
.stat-card.gold::after { background: var(--gradient-gold); }
.stat-card.neon::after { background: var(--gradient-neon); }
.stat-card.blue::after { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card.purple .stat-value { color: var(--purple-light); }
.stat-card.gold .stat-value { color: var(--gold-light); }
.stat-card.neon .stat-value { color: var(--neon-bright); }
.stat-card.blue .stat-value { color: var(--cyan); }
.stat-value.positive { color: var(--neon-bright) !important; }
.stat-value.negative { color: #f87171 !important; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; border-radius: var(--radius-sm);
    padding: 14px 18px; font-size: 14px; font-weight: 700;
    cursor: pointer; text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform 0.5s ease;
    pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 10px 14px; font-size: 12px; width: auto; }
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.btn-gold { background: var(--gradient-gold); color: #111; box-shadow: 0 4px 20px rgba(245,158,11,0.35); }
.btn-neon { background: var(--gradient-neon); color: #fff; box-shadow: 0 4px 20px rgba(34,197,94,0.35); }
.btn-danger, .btn-red { background: var(--gradient-danger); color: #fff; }
.btn-green { background: var(--gradient-neon); color: #fff; }
.btn-secondary { background: var(--bg-glass); color: var(--text); border: 1px solid var(--border); }
.btn-play {
    background: var(--gradient-main); color: #fff;
    padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 800;
    box-shadow: 0 0 20px rgba(124,58,237,0.45);
    width: auto; display: inline-flex;
    letter-spacing: 0.3px;
}
.btn-play-lg {
    padding: 16px 28px; font-size: 15px;
    background: var(--gradient-gold); color: #111;
    box-shadow: 0 0 24px rgba(251,191,36,0.4);
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-control {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.25); color: var(--text);
    font-size: 15px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--purple-light);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

/* Alerts */
.alert {
    padding: 14px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 13px; font-weight: 500;
    animation: slideAlert 0.35s ease;
    border: 1px solid transparent;
}
@keyframes slideAlert { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:none; } }
.alert-error { background: rgba(239,68,68,0.12); color: #fecaca; border-color: rgba(239,68,68,0.3); }
.alert-success { background: rgba(34,197,94,0.12); color: #bbf7d0; border-color: rgba(34,197,94,0.3); }
.alert-info { background: rgba(59,130,246,0.12); color: #bfdbfe; border-color: rgba(59,130,246,0.3); }

/* Auth */
.auth-wrap { width: 100%; max-width: 440px; }
.auth-logo {
    text-align: center; font-size: 28px; font-weight: 800;
    background: var(--gradient-main); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(16px);
}
.auth-card .card-title { text-align: center; font-size: 22px; }
.auth-home-btn { margin-top: 12px; }
.otp-mobile-row { display: flex; gap: 8px; align-items: stretch; }
.otp-mobile-row .form-control { flex: 1; min-width: 0; }
.otp-send-btn { width: auto; white-space: nowrap; padding: 10px 12px; font-size: 12px; }
.otp-input { letter-spacing: 8px; text-align: center; font-size: 20px; font-weight: 800; }
.otp-hint { margin: 6px 0 0; font-size: 12px; }
.otp-hidden { display: none; }
.otp-step-intro { text-align: center; margin: 0 0 8px; font-size: 14px; }
.otp-mobile-chip {
    display: block;
    text-align: center;
    margin: 0 auto 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    font-weight: 800;
    letter-spacing: 1px;
    max-width: 220px;
}

/* Banner */
.banner-slider { padding: 0; overflow: hidden; border-radius: var(--radius); }
.banner-slider .slides { display: flex; transition: transform 0.5s ease; }
.banner-slider img { width: 100%; min-width: 100%; height: 160px; object-fit: cover; }
.banner-dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.banner-dots span.active { background: var(--purple-light); width: 22px; border-radius: 999px; }

.homeline {
    background: var(--bg-glass); border: 1px solid var(--border);
    padding: 14px; border-radius: var(--radius-sm);
    margin-bottom: 16px; text-align: center; font-size: 14px;
    border-left: 3px solid var(--gold);
}
.content-html { line-height: 1.65; font-size: 14px; color: var(--text); word-break: break-word; }
.content-html p { margin: 0 0 10px; }
.content-html p:last-child { margin-bottom: 0; }
.content-html a { color: var(--cyan); text-decoration: underline; }
.content-html ul, .content-html ol { margin: 0 0 10px 18px; padding: 0; }
.content-html strong, .content-html b { color: var(--gold-light); }

/* Quick actions */
.quick-actions { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.quick-actions::-webkit-scrollbar { display: none; }
.quick-action { flex: 0 0 auto; width: 76px; text-align: center; }
.quick-action-icon {
    width: 52px; height: 52px; margin: 0 auto 8px;
    border-radius: 16px; background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: all 0.25s ease;
}
.quick-action:hover .quick-action-icon {
    background: var(--gradient-main); border-color: transparent;
    box-shadow: 0 0 20px rgba(124,58,237,0.4); transform: translateY(-3px);
}
.quick-action span { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* Markets / Games */
.market-grid, .game-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 14px; }
@media (min-width: 540px) { .market-grid, .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }

.market-card, .game-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.market-card:hover, .game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}
.market-card.open { border-color: rgba(34,197,94,0.35); }
.market-card.closed { opacity: 0.75; }
.market-name { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.market-result {
    font-size: 20px; font-weight: 800; text-align: center;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: 1px; margin-bottom: 8px;
}
.market-status { font-size: 12px; font-weight: 600; text-align: center; margin-bottom: 6px; }
.market-card.open .market-status { color: var(--neon-bright); }
.market-card.closed .market-status { color: #f87171; }
.market-time { font-size: 12px; color: var(--cyan); text-align: center; margin-bottom: 6px; font-weight: 600; }
.market-time-line {
    font-size: 11px; color: var(--text-muted); text-align: center;
    margin-bottom: 8px; line-height: 1.4; padding: 0 4px;
}
.market-time-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.time-pill {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 6px; border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
    font-size: 12px; font-weight: 700;
}
.time-pill small {
    font-size: 9px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.4px; color: var(--text-muted);
}
.time-pill.open-pill { border-color: rgba(34, 197, 94, 0.35); color: var(--neon-bright); }
.time-pill.close-pill { border-color: rgba(245, 158, 11, 0.35); color: var(--gold-light); }
.market-countdown {
    text-align: center; font-size: 12px; font-weight: 700;
    color: var(--cyan); margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}
.market-actions { display: flex; justify-content: center; margin-top: 8px; }

.game-card {
    text-align: center; padding: 24px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: inherit;
}
.game-card-disabled {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.4);
}
.game-card-icon { font-size: 32px; }
.game-card-title { font-weight: 700; font-size: 15px; }

.starline-cta {
    display: block; text-align: center;
    background: var(--gradient-main);
    color: #fff; padding: 18px; border-radius: var(--radius);
    font-weight: 800; font-size: 16px; margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(124,58,237,0.45);
    transition: transform 0.2s ease;
}
.starline-cta:hover { transform: scale(1.02); }

.starline-section { border-color: rgba(168,85,247,0.35); box-shadow: 0 0 30px rgba(124,58,237,0.15); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-badge {
    padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: rgba(34,197,94,0.12); color: var(--neon-bright); border: 1px solid rgba(34,197,94,0.25);
}
.starline-card { border-color: rgba(168,85,247,0.25); }
.starline-card.open { border-color: rgba(168,85,247,0.45); box-shadow: 0 0 24px rgba(124,58,237,0.2); }
.starline-badge {
    position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 800;
    letter-spacing: 0.5px; padding: 4px 8px; border-radius: 999px;
    background: var(--gradient-main); color: #fff;
}
.starline-slot-label { text-align: center; font-size: 12px; color: var(--cyan); margin-bottom: 6px; font-weight: 600; }
.starline-time-pill { grid-column: 1 / -1; }
.starline-market-card {
    text-decoration: none; color: inherit; display: block; cursor: pointer;
    text-align: center; padding: 22px 16px 18px;
    background: linear-gradient(160deg, rgba(124,58,237,0.12) 0%, rgba(10,14,23,0.9) 55%);
    border: 1px solid rgba(168,85,247,0.28);
    min-height: 190px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.starline-market-card.open {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 28px rgba(124,58,237,0.22);
}
.starline-market-card.open:hover {
    transform: translateY(-5px);
    border-color: rgba(192,132,252,0.65);
    box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}
.starline-market-card.closed { opacity: 0.72; }
.starline-market-card.closed .starline-play-btn {
    background: rgba(255,255,255,0.08); color: var(--text-muted);
    box-shadow: none;
}
.starline-card-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.18), transparent 55%);
    opacity: 0; transition: opacity 0.3s ease;
}
.starline-market-card.open:hover .starline-card-glow { opacity: 1; }
.starline-market-icon {
    font-size: 28px; line-height: 1; margin: 6px 0 4px;
    filter: drop-shadow(0 0 10px rgba(168,85,247,0.45));
}
.starline-market-title {
    font-size: 17px; font-weight: 800; letter-spacing: 0.2px;
    margin-bottom: 10px; padding: 0 6px; line-height: 1.3;
}
.starline-status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
    margin-bottom: 14px; letter-spacing: 0.3px;
}
.starline-status-pill.live {
    background: rgba(34,197,94,0.12); color: var(--neon-bright);
    border: 1px solid rgba(34,197,94,0.28);
}
.starline-status-pill.off {
    background: rgba(239,68,68,0.1); color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.22);
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--neon-bright);
    box-shadow: 0 0 8px var(--neon-bright);
    animation: starline-pulse 1.5s ease-in-out infinite;
}
@keyframes starline-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.starline-play-btn {
    pointer-events: none;
    width: 100%; max-width: 200px; justify-content: center;
    background: var(--gradient-main) !important;
    color: #fff !important;
    box-shadow: 0 0 22px rgba(124,58,237,0.5) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.starline-market-card.open:hover .starline-play-btn {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(168,85,247,0.65) !important;
}
.starline-market-card .starline-play { pointer-events: none; }
.starline-timing-card { text-decoration: none; color: inherit; display: block; }
.starline-timing-card.closed { pointer-events: none; }
.starline-play { background: var(--gradient-main) !important; }

.payment-divider {
    display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
    color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.payment-divider::before, .payment-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.upi-box {
    background: rgba(0,0,0,0.25); border: 1px dashed var(--gold);
    border-radius: var(--radius-sm); padding: 16px; text-align: center; margin: 14px 0;
}
.upi-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.upi-value { font-size: 18px; font-weight: 800; color: var(--gold-light); margin-bottom: 10px; word-break: break-all; }
.payment-actions { display: grid; gap: 10px; margin-top: 12px; }
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.game-tile {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px;
    text-align: center; font-weight: 600; font-size: 14px;
    transition: all 0.25s ease;
}
.game-tile:hover { background: var(--gradient-main); border-color: transparent; transform: translateY(-2px); }
.starline-game-grid { margin-top: 8px; }
.starline-game-card { text-decoration: none; color: inherit; min-height: 120px; }
.game-tile.primary { grid-column: 1 / -1; background: var(--gradient-gold); color: #111; font-weight: 800; }

/* Wallet */
.wallet-hero { text-align: center; padding: 12px 0; }
.wallet-hero .label { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.wallet-hero .amount {
    font-size: 36px; font-weight: 800;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.wallet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.wallet-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-top: 1px solid var(--border);
}
.wallet-row .label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.wallet-row .value { font-size: 17px; font-weight: 700; color: var(--gold-light); margin-top: 4px; }
.info-dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(59,130,246,0.15); color: var(--cyan);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Lists & Tables */
.list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.list-item:hover { background: var(--bg-glass); }
.list-item:last-child { border-bottom: 0; }
.list-item .arrow { color: var(--text-muted); font-size: 18px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.data-table th, table.data-table td {
    padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left;
}
table.data-table th {
    background: rgba(124,58,237,0.12); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted);
}
table.data-table tr:hover td { background: var(--bg-glass); }

.badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-open { background: rgba(34,197,94,0.15); color: var(--neon-bright); border: 1px solid rgba(34,197,94,0.3); }
.badge-closed { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.badge-gold { background: rgba(245,158,11,0.15); color: var(--gold-light); border: 1px solid rgba(245,158,11,0.3); }

/* Bet grid */
.bet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bet-session-picker {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.bet-session-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.bet-session-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bet-session-option {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.bet-session-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.bet-session-pill {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--border);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.bet-session-option input:checked + .bet-session-pill.open {
    border-color: #22c55e;
    background: rgba(34,197,94,0.15);
    color: #86efac;
    box-shadow: 0 0 16px rgba(34,197,94,0.25);
}
.bet-session-option input:checked + .bet-session-pill.close {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.15);
    color: #fcd34d;
    box-shadow: 0 0 16px rgba(245,158,11,0.25);
}
.bet-session-hint { margin: 10px 0 0; font-size: 0.85rem; }
.sp-motor-form {
    margin-top: 4px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(124,58,237,0.12) 0%, rgba(15,23,42,0.55) 100%);
    border: 1px solid rgba(168,85,247,0.28);
    box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}
.sp-motor-info {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px; margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(124,58,237,0.22);
}
.sp-motor-info-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 22px;
    background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(59,130,246,0.25));
    border: 1px solid rgba(168,85,247,0.35);
}
.sp-motor-info-body strong {
    display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px;
    color: var(--text);
}
.sp-motor-info-body p {
    margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted);
}
.sp-motor-examples {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.sp-motor-example {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 72px; padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px; color: var(--text-muted);
}
.sp-motor-example em {
    font-style: normal; font-weight: 800; font-size: 13px;
    color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.sp-motor-example small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.85; }
.sp-motor-fields {
    display: grid; grid-template-columns: 1fr; gap: 4px;
}
@media (min-width: 560px) {
    .sp-motor-fields { grid-template-columns: 1.4fr 1fr; gap: 12px; }
}
.sp-motor-field { margin-bottom: 12px; }
.sp-motor-field label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 8px;
}
.sp-motor-input-wrap {
    position: relative; display: flex; align-items: center;
}
.sp-motor-field-icon {
    position: absolute; left: 14px; z-index: 1;
    font-size: 16px; line-height: 1; pointer-events: none; opacity: 0.85;
}
.sp-motor-field-icon-rupee {
    font-size: 15px; font-weight: 800; color: var(--gold-light);
}
.sp-motor-input {
    padding-left: 44px !important;
    background: rgba(0,0,0,0.35) !important;
    border-color: rgba(168,85,247,0.25) !important;
    font-weight: 600; font-variant-numeric: tabular-nums;
}
.sp-motor-digits-input {
    font-size: 16px; letter-spacing: 1px;
}
.sp-motor-input:focus {
    border-color: var(--purple-light) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.22) !important;
}
.sp-motor-preview {
    margin-top: 16px; padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.32);
    border: 1px solid rgba(124,58,237,0.22);
    animation: fadeIn 0.35s ease;
}
.sp-motor-preview-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.sp-motor-preview-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.45px; color: var(--text-muted);
}
.sp-motor-digit-used {
    margin-top: 4px; font-size: 12px; color: var(--purple-light); font-weight: 600;
}
.sp-motor-count-badge {
    flex-shrink: 0; padding: 6px 10px; border-radius: 999px;
    background: rgba(124,58,237,0.22); border: 1px solid rgba(168,85,247,0.35);
    font-size: 11px; font-weight: 700; color: var(--text);
}
.sp-motor-preview-list {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px; max-height: 200px; overflow-y: auto;
    padding: 4px 4px 4px 0;
}
.sp-motor-preview-list::-webkit-scrollbar { width: 6px; }
.sp-motor-preview-list::-webkit-scrollbar-thumb {
    background: rgba(168,85,247,0.45); border-radius: 999px;
}
.sp-motor-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; padding: 8px 11px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.12));
    border: 1px solid rgba(168,85,247,0.32);
    font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
    color: var(--text);
}
.sp-motor-total-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(124,58,237,0.12));
    border: 1px solid rgba(245,158,11,0.28);
    font-size: 13px; color: var(--text-muted);
}
.sp-motor-total-bar strong {
    font-size: 18px; font-weight: 800; color: var(--gold-light);
    font-variant-numeric: tabular-nums;
}
.sp-motor-form.dp-motor-theme {
    background: linear-gradient(145deg, rgba(245,158,11,0.12) 0%, rgba(15,23,42,0.55) 100%);
    border-color: rgba(245,158,11,0.28);
}
.sp-motor-form.dp-motor-theme .sp-motor-info {
    border-color: rgba(245,158,11,0.22);
}
.sp-motor-form.dp-motor-theme .sp-motor-info-icon {
    background: linear-gradient(135deg, rgba(245,158,11,0.35), rgba(234,88,12,0.22));
    border-color: rgba(245,158,11,0.35);
}
.sp-motor-form.dp-motor-theme .sp-motor-input {
    border-color: rgba(245,158,11,0.25) !important;
}
.sp-motor-form.dp-motor-theme .sp-motor-input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2) !important;
}
.sp-motor-form.dp-motor-theme .sp-motor-count-badge {
    background: rgba(245,158,11,0.18);
    border-color: rgba(245,158,11,0.35);
}
.sp-motor-form.dp-motor-theme .sp-motor-chip {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(234,88,12,0.1));
    border-color: rgba(245,158,11,0.32);
}
.sp-motor-submit {
    width: 100%; margin-top: 16px;
    padding: 16px 20px; font-size: 15px; font-weight: 800;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 28px rgba(124,58,237,0.35);
}
@media (max-width: 400px) { .bet-grid { grid-template-columns: repeat(3, 1fr); } }
.bet-cell {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 6px; text-align: center;
    transition: border-color 0.2s;
}
.bet-cell:focus-within { border-color: var(--purple-light); box-shadow: 0 0 12px rgba(124,58,237,0.2); }
.bet-cell .num { font-weight: 800; margin-bottom: 6px; color: var(--purple-light); }
.bet-cell input {
    width: 100%; padding: 8px; border: 1px solid var(--border);
    border-radius: 8px; text-align: center; background: rgba(0,0,0,0.3);
    color: var(--text); font-family: inherit;
}

/* Starline */
.starline-list .starline-item {
    display: block; text-align: center; padding: 18px;
    background: var(--gradient-main); border-radius: var(--radius);
    font-weight: 700; margin-bottom: 12px;
    box-shadow: 0 0 24px rgba(124,58,237,0.35);
    transition: transform 0.2s ease;
}
.starline-item:hover { transform: scale(1.02); }
.timing-item {
    display: block; padding: 16px; border-radius: var(--radius);
    margin-bottom: 12px; font-weight: 600; border: 1px solid var(--border);
    transition: transform 0.2s ease;
}
.timing-item.open { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(34,197,94,0.1)); border-color: rgba(34,197,94,0.35); }
.timing-item.closed { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.08)); opacity: 0.8; }

.refer-box { text-align: center; padding: 24px 12px; }
.refer-code {
    display: inline-block; padding: 16px 28px; border-radius: var(--radius);
    background: var(--bg-glass); border: 1px dashed var(--gold);
    font-size: 24px; font-weight: 800; letter-spacing: 3px;
    color: var(--gold-light); margin: 16px 0;
    box-shadow: 0 0 20px rgba(245,158,11,0.2);
}

/* Status pills */
.status-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.status-pill {
    flex: 1; min-width: 120px; padding: 12px; border-radius: var(--radius-sm);
    text-align: center; border: 1px solid var(--border); background: var(--bg-glass);
}
.status-pill .num { font-size: 22px; font-weight: 800; }
.status-pill.open-pill .num { color: var(--neon-bright); }
.status-pill.close-pill .num { color: #f87171; }

/* Mobile bottom nav */
.mobile-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    display: grid; grid-template-columns: repeat(5, 1fr);
    min-height: var(--bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 14, 23, 0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.mob-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; font-weight: 600; color: var(--text-muted);
    padding: 8px 4px; transition: color 0.2s;
}
.mob-nav-item.active { color: var(--purple-light); }
.mob-nav-item.active .mob-nav-icon { text-shadow: 0 0 12px rgba(168,85,247,0.8); }
.mob-nav-icon { font-size: 18px; }

/* Footer */
.site-footer {
    padding: 16px; text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 12px;
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-dot { opacity: 0.4; }

/* FAB */
.fab-support {
    position: fixed; right: 16px;
    bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient-neon); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; z-index: 240;
    box-shadow: 0 0 24px rgba(34,197,94,0.5);
    transition: transform 0.2s ease;
    animation: pulseFab 2s ease-in-out infinite;
}
.fab-support:hover { transform: scale(1.08); }
@keyframes pulseFab { 0%,100%{box-shadow:0 0 24px rgba(34,197,94,0.5)} 50%{box-shadow:0 0 36px rgba(57,255,20,0.7)} }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.08) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Page hero (legacy pages) */
.page-hero {
    padding: 20px; border-radius: var(--radius);
    background: var(--gradient-main);
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
}
.page-hero h2 { margin: 0 0 6px; font-size: 22px; }
.page-hero p { margin: 0; opacity: 0.9; font-size: 14px; }

/* Home welcome + wallet */
.home-welcome {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; padding: 18px 18px 16px; margin-bottom: 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124,58,237,0.22) 0%, rgba(59,130,246,0.08) 100%);
    border: 1px solid rgba(168,85,247,0.28);
    box-shadow: 0 8px 32px rgba(124,58,237,0.12);
}
.home-welcome-left { flex: 1; min-width: 160px; }
.home-welcome-tag { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.home-welcome-name { margin: 0 0 4px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.home-welcome-sub { margin: 0; font-size: 13px; color: var(--text-muted); }
.home-wallet-chip {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.35); border: 1px solid rgba(245,158,11,0.35);
    text-decoration: none; color: inherit; min-width: 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-wallet-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245,158,11,0.25);
    border-color: rgba(245,158,11,0.5);
}
.home-wallet-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.home-wallet-value {
    font-size: 26px; font-weight: 800; line-height: 1;
    color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.home-wallet-currency { font-size: 14px; font-weight: 700; color: var(--gold-light); opacity: 0.85; }

.home-guest-actions {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.home-guest-actions .btn { width: auto; min-width: 88px; }

.guest-header .guest-brand {
    font-size: 17px; font-weight: 800; color: var(--text-primary);
    text-decoration: none; letter-spacing: -0.02em;
}
.guest-header .guest-brand:hover { color: var(--gold-light); }
.guest-header-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.guest-header-actions .btn { width: auto; white-space: nowrap; }
.guest-header-actions .live-clock { font-size: 11px; padding: 6px 10px; }

.home-banner { margin-bottom: 16px; padding: 0; overflow: hidden; }
.home-quick-panel { padding: 14px 12px; margin-bottom: 16px; }
.home-quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    overflow: visible; padding-bottom: 0;
}
@media (min-width: 540px) { .home-quick-actions { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .home-quick-actions { grid-template-columns: repeat(8, 1fr); } }
.home-quick-actions .quick-action { width: auto; }
.home-quick-actions .quick-action-icon {
    width: 52px; height: 52px; margin: 0 auto 8px;
    font-size: 20px; border-radius: 16px;
}
.home-quick-actions .quick-action-icon.play { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.home-quick-actions .quick-action-icon.wallet { background: linear-gradient(135deg, #ca8a04, #eab308); }
.home-quick-actions .quick-action-icon.deposit { background: linear-gradient(135deg, #16a34a, #22c55e); }
.home-quick-actions .quick-action-icon.withdraw { background: linear-gradient(135deg, #dc2626, #ef4444); }
.home-quick-actions .quick-action-icon.results { background: linear-gradient(135deg, #d97706, #f59e0b); }
.home-quick-actions .quick-action-icon.history { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.home-quick-actions .quick-action-icon.passbook { background: linear-gradient(135deg, #059669, #10b981); }
.home-quick-actions .quick-action-icon.charts { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.home-quick-actions .quick-action-icon.refer { background: linear-gradient(135deg, #db2777, #ec4899); }
.home-quick-actions .quick-action span { font-size: 12px; }

.home-overview { margin-top: 4px; margin-bottom: 8px; }
.home-stats-grid { margin-bottom: 12px; }
.home-status-row { margin-bottom: 0; }

.chart-link-grid { display: grid; gap: 12px; }
.chart-link-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 18px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(59,130,246,0.08));
    border: 1px solid rgba(168,85,247,0.28);
    text-decoration: none; color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chart-link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 8px 28px rgba(124,58,237,0.2);
}
.chart-link-icon { font-size: 28px; line-height: 1; }
.chart-link-name { font-size: 17px; font-weight: 800; }
.chart-link-arrow { font-size: 12px; font-weight: 700; color: var(--cyan); }
.chart-frame-card { padding: 0; overflow: hidden; }
.chart-frame-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
}
.chart-frame { width: 100%; min-height: 72vh; border: 0; background: #fff; }
.chart-market-list { display: grid; gap: 10px; }
.chart-market-card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.chart-market-name { font-size: 16px; font-weight: 800; color: var(--gold-light); }
.chart-market-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 8px 14px; font-size: 12px; width: auto; }

/* Bid history */
.bid-history-card { margin-bottom: 16px; }
.bid-filters {
    display: flex; flex-direction: column; gap: 12px;
    padding: 14px; margin-bottom: 14px;
    background: rgba(0,0,0,0.18); border: 1px solid var(--border); border-radius: 12px;
}
.bid-filter-row { display: flex; flex-direction: column; gap: 8px; }
.bid-filter-row-split {
    flex-direction: row; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: 12px;
}
.bid-filter-row-split > div:first-child { flex: 1; min-width: 160px; }
.bid-filter-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px; color: var(--text-muted);
}
.bid-date-input, .bid-sort-select {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(0,0,0,0.25);
    color: var(--text); font-size: 14px; font-weight: 600;
}
.bid-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bid-filter-actions .btn { width: auto; white-space: nowrap; }
.bid-type-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bid-type-tab {
    flex: 1; min-width: 72px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid var(--border);
    background: rgba(0,0,0,0.2); color: var(--text-muted);
    font-size: 13px; font-weight: 700; text-align: center;
    text-decoration: none; transition: all 0.15s;
}
.bid-type-tab:hover { border-color: var(--cyan); color: var(--text); }
.bid-type-tab.active {
    background: linear-gradient(135deg, rgba(8,145,178,0.35), rgba(6,182,212,0.25));
    border-color: rgba(6,182,212,0.55); color: var(--cyan);
}
.bid-summary {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}
.bid-summary strong { color: var(--text); font-weight: 800; }
.bid-list { display: flex; flex-direction: column; gap: 10px; }
.bid-list-compact .bid-item { padding: 10px 12px; }
.bid-item {
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: rgba(0,0,0,0.18);
}
.bid-item-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 8px;
}
.bid-type-pill {
    padding: 3px 10px; border-radius: 999px; font-size: 10px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
    background: rgba(124,58,237,0.25); color: #c4b5fd;
}
.bid-type-pill.starline { background: rgba(6,182,212,0.2); color: #67e8f9; }
.bid-status { font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.bid-status-won { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.bid-status-lost { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.bid-status-waiting { background: rgba(6,182,212,0.18); color: #67e8f9; border: 1px solid rgba(6,182,212,0.35); }
.bid-market { font-size: 15px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.bid-meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bid-meta strong { color: var(--text); font-weight: 700; }
.bid-dot { opacity: 0.5; }
.bid-item-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 10px; padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bid-amount { font-size: 14px; font-weight: 800; color: var(--gold-light); }
.bid-time { font-size: 11px; }
.bid-empty {
    padding: 28px 16px; text-align: center; color: var(--text-muted);
    font-size: 14px; line-height: 1.5;
}
.bid-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.bid-page-btn {
    min-width: 36px; padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
    border: 1px solid var(--border); background: rgba(0,0,0,0.2); color: var(--text);
}
.bid-page-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.bid-page-btn.active {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff; border-color: transparent;
}
.bid-history-home { margin-bottom: 16px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.section-link {
    font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* Passbook */
.passbook-card { margin-bottom: 16px; padding: 0; overflow: hidden; }
.passbook-tabs {
    display: flex; border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}
.passbook-tab {
    flex: 1; padding: 14px 10px; text-align: center;
    font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
    text-decoration: none; color: var(--text-muted);
    border-bottom: 2px solid transparent; transition: all 0.15s;
}
.passbook-tab:hover { color: var(--text); }
.passbook-tab.active {
    color: var(--cyan); border-bottom-color: var(--cyan);
    background: rgba(6,182,212,0.08);
}
.passbook-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding: 14px; border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
}
@media (max-width: 640px) {
    .passbook-summary { grid-template-columns: 1fr; }
}
.passbook-summary-item {
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: rgba(0,0,0,0.18);
}
.passbook-summary-item.in strong { color: #4ade80; }
.passbook-summary-item.out strong { color: #f87171; }
.passbook-summary-item.wallet strong { color: var(--gold-light); }
.passbook-summary-label {
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--text-muted); margin-bottom: 4px;
}
.passbook-summary-item strong { font-size: 18px; font-weight: 800; }
.passbook-list { display: flex; flex-direction: column; }
.passbook-item {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.passbook-item:last-child { border-bottom: none; }
.passbook-item-main { flex: 1; min-width: 0; }
.passbook-remark {
    font-size: 14px; font-weight: 600; line-height: 1.4;
    color: var(--text); margin-bottom: 4px;
}
.passbook-balance-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    margin: 8px 0 6px;
}
.passbook-balance-chip {
    padding: 8px 10px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.22);
}
.passbook-balance-chip.closing {
    border-color: rgba(245,158,11,0.22);
    background: rgba(245,158,11,0.08);
}
.passbook-balance-chip .passbook-balance-label {
    display: block; margin-bottom: 3px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.35px; color: var(--text-muted);
}
.passbook-balance-chip strong {
    font-size: 14px; font-weight: 800; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.passbook-balance-chip.closing strong { color: var(--gold-light); }
.passbook-time { font-size: 11px; }
.passbook-item-side { flex-shrink: 0; text-align: right; }
.passbook-amount { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.passbook-amount.in { color: #4ade80; }
.passbook-amount.out { color: #f87171; }
.passbook-txn-id { font-size: 11px; margin-top: 4px; }
.passbook-empty { padding: 28px 16px; text-align: center; }
.passbook-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; padding: 14px;
    border-top: 1px solid var(--border);
}
.passbook-page-btn {
    min-width: 36px; padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
    border: 1px solid var(--border); background: rgba(0,0,0,0.2); color: var(--text);
}
.passbook-page-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.passbook-page-btn.active {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff; border-color: transparent;
}

@media (min-width: 1024px) {
    .page-content { padding: 20px 24px 32px; }
}
