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

:root {
    --card-radius: 16px;
    --control-radius: 12px;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Theme-agnostic fallbacks used by the admin panel (admin.css only overrides
       brand/surface/ink colors, not these semantic/shadow tokens). */
    --danger-text: #b91c1c;
    --danger-border: #fca5a5;
    --lose-bg: #fee2e2;
    --gold: #d97706;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --input-bg: #ffffff;
    --disabled-bg: #e5e7eb;
    --disabled-text: #9ca3af;
}

/* ---------- Player theme: Mira777 green + gold on minty white — matches the marketing site ---------- */
body.player-theme {
    --brand: #16a34a;
    --brand-dark: #0f7a37;
    --brand-light: #86efac;
    --brand-rgb: 22, 163, 74;
    --cream: #f2fbf5;
    --surface: #ffffff;
    --sidebar-bg: #ffffff;
    --ink: #142a1c;
    --muted: #5c7268;
    --border: #d7ece0;
    --win: #0d9488;
    --win-bg: #f0fdfa;
    --lose-bg: #fef2f2;
    --gold: #e3a008;
    --gold-dark: #b47a05;
    --danger-text: #dc2626;
    --danger-border: #fca5a5;
    --accent-soft: #e3f7ea;
    --accent-soft-rgb: 22, 163, 74;
    --shadow-sm: 0 1px 3px rgba(20, 42, 28, 0.07);
    --shadow-md: 0 6px 20px rgba(20, 42, 28, 0.12);
    --input-bg: #ffffff;
    --disabled-bg: #e7f0ea;
    --disabled-text: #9db3a6;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--cream);
    color: var(--ink);
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
}

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.2px; margin: 0 0 6px; }

a { color: inherit; text-decoration: none; }

button, .btn, input, select, textarea { font-family: inherit; }

.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }
.glyph-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; font-style: normal; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--surface);
    color: var(--ink);
    min-height: 68px;
    padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
}
.topbar .brand { min-height: 68px; }

.topbar .brand { display: flex; align-items: center; gap: 10px; }
.menu-btn, .sidebar-toggle-btn {
    background: var(--accent-soft);
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    color: var(--brand);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 150ms var(--ease), transform 100ms var(--ease), box-shadow 150ms var(--ease);
}
.menu-btn:hover, .sidebar-toggle-btn:hover { background: #d7f5e2; box-shadow: var(--shadow-sm); }
.menu-btn:active, .sidebar-toggle-btn:active { transform: scale(0.92); }
.menu-btn .icon, .sidebar-toggle-btn .icon { width: 19px; height: 19px; }
.sidebar-toggle-btn { display: none; }

/* ---------- Drawer ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease);
    z-index: 30;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 82vw;
    background: var(--surface);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 260ms var(--ease);
    z-index: 31;
    overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    object-fit: cover;
}
.drawer-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.drawer-viewprofile { font-size: 12.5px; color: rgba(255,255,255,0.85); text-decoration: underline; }

.drawer-nav { padding: 10px 10px 14px; }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 150ms var(--ease);
}
.drawer-nav a .icon { width: 19px; height: 19px; color: var(--brand); }
.drawer-nav a:hover { background: var(--accent-soft); }
.drawer-nav a.active { background: var(--accent-soft); color: var(--brand); }

/* ---------- Colorful nav icon chips (drawer + desktop sidebar) ---------- */
.nav-icon-chip {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff !important;
    transition: transform 150ms var(--ease);
}
.nav-icon-chip .icon { width: 16px; height: 16px; color: #fff !important; }
.nav-icon-chip .glyph-icon { font-size: 16px; color: #fff !important; }
a:hover .nav-icon-chip { transform: scale(1.08) rotate(-3deg); }
a:active .nav-icon-chip { transform: scale(0.92); }
.chip-green { background: linear-gradient(135deg, #34d399, #059669); }
.chip-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.chip-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.chip-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.chip-gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.chip-pink { background: linear-gradient(135deg, #fb7185, #e11d48); }
.chip-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.chip-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.chip-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.chip-gray { background: linear-gradient(135deg, #9ca3af, #4b5563); }
.chip-dark { background: linear-gradient(135deg, #64748b, #1f2937); }
.chip-brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

.page-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-icon .icon { width: 26px; height: 26px; color: #fff; }
.topbar h1 { font-size: 17px; margin: 0; color: var(--ink); font-weight: 700; }
.topbar-logo { height: 42px; width: auto; max-width: 46vw; display: block; object-fit: contain; }

.points-pill {
    background: linear-gradient(135deg, var(--accent-soft), #fff);
    border: 1px solid var(--border);
    color: var(--brand-dark);
    height: 36px;
    padding: 0 14px 0 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(39, 20, 22, 0.06);
    transition: transform 150ms var(--ease);
    text-decoration: none;
    cursor: pointer;
}
.points-pill:active { transform: scale(0.96); }
.points-pill .icon {
    width: 19px;
    height: 19px;
    color: var(--gold);
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(180, 122, 5, 0.35));
}
.points-pill .glyph-icon { font-size: 18px; color: var(--gold); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    color: var(--brand-dark);
    flex-shrink: 0;
    transition: transform 150ms var(--ease);
}
.topbar-icon-btn:active { transform: scale(0.92); }
.topbar-icon-btn .icon { width: 18px; height: 18px; }

.fun-banner {
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    padding: 7px 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.fun-banner .icon { width: 14px; height: 14px; flex-shrink: 0; }

.container { padding: 18px 16px 28px; max-width: 640px; margin: 0 auto; }

/* ---------- Desktop app shell: persistent sidebar replaces bottom nav ---------- */
.main-content { min-width: 0; }

.sidebar { display: none; }
.sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    display: flex;
    align-items: center;
    min-height: 60px;
}
.sidebar-brand img { max-height: 28px; max-width: 100%; display: block; }
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-profile .drawer-name { color: var(--ink); font-size: 14.5px; }
.sidebar-profile .drawer-viewprofile { color: var(--muted); font-size: 12px; text-decoration: none; }
.sidebar-profile .drawer-viewprofile:hover { color: var(--brand); }

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 16px 20px 6px;
}
.sidebar-nav { padding: 4px 0 12px; display: flex; flex-direction: column; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 20px;
    margin: 1px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.sidebar-nav a .icon { width: 18px; height: 18px; color: var(--muted); transition: color 150ms var(--ease); }
.sidebar-nav a:hover { background: #f9fafb; }
.sidebar-nav a.active { background: var(--accent-soft); color: var(--brand); }
.sidebar-nav a.active .icon { color: var(--brand); }

/* ---------- Home promo slider ---------- */
.home-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-bottom: 16px;
    padding-bottom: 2px;
}
.home-slider img {
    scroll-snap-align: start;
    flex: 0 0 100%;
    max-width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
}
.home-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: -10px 0 16px;
}
.home-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), 0.25);
    transition: width 220ms var(--ease), background 220ms var(--ease);
}
.home-slider-dot.active { width: 18px; background: var(--brand); }

/* ---------- Cards ---------- */
.market-card {
    background: linear-gradient(155deg, #f3fdf6, var(--surface) 60%);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.market-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.market-card .name { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--brand); font-size: 16px; }
.market-card .digits { color: var(--muted); font-size: 14.5px; margin: 4px 0; font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.market-card .times { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.market-card .countdown { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.market-card .times .icon { width: 12px; height: 12px; }

/* ---------- Quiz gameplay ---------- */
.quiz-play-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.quiz-close-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    transition: background-color 150ms var(--ease), transform 100ms var(--ease);
}
.quiz-close-btn:hover { background: #d7f5e2; }
.quiz-close-btn:active { transform: scale(0.92); }
.quiz-close-btn .icon { width: 16px; height: 16px; }

.quiz-timer-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 20px; }
.quiz-timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-timer-track { fill: none; stroke: var(--border); stroke-width: 8; }
.quiz-timer-progress {
    fill: none;
    stroke: var(--gold);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 200ms var(--ease);
}
.quiz-timer-progress.quiz-timer-low { stroke: var(--danger-text); }
.quiz-timer-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.quiz-score-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.quiz-score-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
}
.quiz-score-chip .icon { width: 14px; height: 14px; }
.quiz-score-chip.correct { color: var(--win); }
.quiz-score-chip.wrong { color: var(--danger-text); }
.quiz-score-chip.current { color: var(--gold); }

.quiz-question-card { text-align: center; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding-top: 34px; }
.quiz-question-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.quiz-question-text { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.5; margin: 8px 0 22px; }
.quiz-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.quiz-option-btn {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--control-radius);
    padding: 14px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 150ms var(--ease), background-color 150ms var(--ease), transform 100ms var(--ease);
}
.quiz-option-btn:hover:not(:disabled) { border-color: var(--brand); }
.quiz-option-btn:active:not(:disabled) { transform: scale(0.97); }
.quiz-option-btn:disabled { cursor: default; }
.quiz-option-btn.is-correct { background: var(--win-bg); border-color: var(--win); color: var(--win); }
.quiz-option-btn.is-wrong { background: var(--lose-bg); border-color: var(--danger-text); color: var(--danger-text); }

.quiz-reward-card, .quiz-claimed-card { text-align: center; padding: 32px 24px; }
.quiz-reward-coin, .quiz-claimed-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(227, 160, 8, 0.35);
    animation: quizRewardPop 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.quiz-reward-coin .icon, .quiz-claimed-icon .icon { width: 34px; height: 34px; color: #fff; }
@keyframes quizRewardPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.quiz-reward-total { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 32px; color: var(--gold); margin-bottom: 18px; }
.quiz-reward-breakdown { background: var(--cream); border: 1px solid var(--border); border-radius: var(--control-radius); padding: 12px 16px; text-align: left; }
.quiz-reward-breakdown .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--muted); }
.quiz-reward-breakdown .row .plus { color: var(--win); font-weight: 700; }
.quiz-reward-breakdown .row .minus { color: var(--danger-text); font-weight: 700; }
.quiz-claimed-amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 40px; color: var(--gold); margin-bottom: 22px; }
.quiz-tips { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.quiz-tip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--control-radius); padding: 12px 14px; font-size: 13px; color: var(--muted); }
.quiz-tip-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-tip-icon .icon { width: 15px; height: 15px; }

.quiz-cat-card { cursor: pointer; }
.quiz-cat-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.quiz-cat-meta .badge { font-size: 11px; }
.quiz-live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--win); }
.quiz-live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 rgba(5, 150, 105, 0.5); animation: quizLivePulse 1.8s infinite; }
@keyframes quizLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.badge {
    font-size: 11px;
    padding: 4px 11px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.badge.open { background: var(--win-bg); color: var(--win); }
.badge.closed { background: var(--lose-bg); color: var(--danger-text); }
.badge.pending { background: #e9f2ec; color: var(--muted); }

/* ---------- Game card: light, premium market tile for the home feed ---------- */
.game-card {
    position: relative;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(var(--brand-rgb), 0.32), transparent 60%),
        linear-gradient(155deg, var(--brand-light), var(--accent-soft) 55%, #fff);
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    border-radius: 18px;
    padding: 13px 16px 11px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(39, 20, 22, 0.08);
    cursor: pointer;
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(39, 20, 22, 0.13); }
.game-card:active { transform: scale(0.985); }

.game-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.game-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.game-card-status.is-open { background: var(--win-bg); color: var(--win); }
.game-card-status.is-open::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--win);
    animation: pulseDot 1.6s ease-in-out infinite;
}
.game-card-status.is-closed { background: var(--lose-bg); color: var(--danger-text); }

.game-card-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: 0.2px; }
.game-card-digits {
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 10px;
}

.game-card-times { display: flex; gap: 8px; margin-bottom: 9px; }
.game-card-time {
    flex: 1;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(var(--brand-rgb), 0.18);
    border-radius: 10px;
    padding: 6px 10px;
}
.game-card-time span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.game-card-time strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }

.game-card-countdown { font-size: 12px; color: var(--brand-dark); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 7px; }

.game-card-actions { display: flex; gap: 8px; }
.game-card-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    transition: transform 100ms var(--ease), box-shadow 200ms var(--ease);
}
.game-card-action .icon { width: 15px; height: 15px; }
.game-card-action:active { transform: scale(0.96); }

.game-card-action.chart-action {
    background: rgba(var(--brand-rgb), 0.1);
    color: var(--brand-dark);
    border: 1px solid rgba(var(--brand-rgb), 0.3);
}
.game-card-action.chart-action:hover { background: rgba(var(--brand-rgb), 0.18); }

.game-card-action.play-action {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.5);
    animation: playPulse 2.2s ease-out infinite;
}
.game-card.is-closed .game-card-action.play-action {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    animation: none;
    box-shadow: none;
}

@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); }
}

.market-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.circle-actions { display: flex; gap: 8px; }
.circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    flex-shrink: 0;
    transition: background-color 150ms var(--ease), transform 100ms var(--ease);
}
.circle-btn .icon { width: 18px; height: 18px; }
.circle-btn:hover { background: var(--brand-dark); }
.circle-btn:active { transform: scale(0.94); }
.circle-btn.secondary { background: var(--accent-soft); color: var(--brand); }
.circle-btn.secondary:hover { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--control-radius);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 180ms var(--ease), transform 100ms var(--ease), box-shadow 180ms var(--ease);
    box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-sm); }
.btn:disabled { background: var(--disabled-bg); color: var(--disabled-text); box-shadow: none; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.btn.secondary:hover { background: var(--accent-soft); }
.btn.win { background: var(--win); }
.btn.win:hover { background: #0f766e; }

/* ---------- Cards / panels ---------- */
.card {
    background: linear-gradient(155deg, #f3fdf6, var(--surface) 55%);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.card h2 { font-size: 20px; }

/* ---------- Auth pages: centered, branded card ---------- */
.auth-shell {
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    background-image: radial-gradient(rgba(var(--brand-rgb), 0.07) 1.6px, transparent 1.6px);
    background-size: 20px 20px;
}
.auth-badge { animation: badgeFloat 3.4s ease-in-out infinite; }
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px 28px;
    box-shadow: var(--shadow-md);
}
.auth-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 22px rgba(var(--brand-rgb), 0.35);
}
.auth-badge .icon { width: 28px; height: 28px; color: #fff; }
.auth-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.auth-card h2 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.auth-card .helper-text { text-align: center; }
.auth-card .field-label:first-of-type { margin-top: 18px; }
.auth-footer-link { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-footer-link a { color: var(--brand); font-weight: 700; }

@media (min-width: 1024px) {
    .auth-shell { min-height: 100vh; padding: 48px 16px; }
}

/* ---------- Game type chooser (2-column icon tile grid, mirrors the original app's layout) ---------- */
.game-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.game-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 26px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms var(--ease), transform 150ms var(--ease);
}
.game-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.game-tile-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--tile-color);
    color: #fff;
    position: relative;
}
.game-tile-icon .icon { width: 26px; height: 26px; }
.game-tile-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--tile-color);
}
.game-tile-label { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); text-align: center; }
.game-tile-rate { font-size: 12px; font-weight: 700; color: var(--muted); }

.tile-1 { --tile-color: #2563eb; }
.tile-j { --tile-color: #4f46e5; }
.tile-sp { --tile-color: #7c3aed; }
.tile-dp { --tile-color: #d97706; }
.tile-tp { --tile-color: #db2777; }
.tile-hs { --tile-color: #0891b2; }
.tile-fs { --tile-color: #dc2626; }
.badge-1 { background: #2563eb; }
.badge-j { background: #4f46e5; }
.badge-sp { background: #7c3aed; }
.badge-dp { background: #d97706; }
.badge-tp { background: #db2777; }
.badge-hs { background: #0891b2; }
.badge-fs { background: #dc2626; }

/* ---------- Basket-style bid entry ---------- */
.basket-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.basket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.basket-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--control-radius);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.basket-item .n { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.basket-item input { width: 84px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; text-align: right; background: var(--input-bg); color: var(--ink); }
.basket-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
}
.basket-footer .totals { display: flex; gap: 24px; }
.basket-footer .totals .label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.basket-footer .totals .val { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.basket-footer .btn { width: auto; padding: 12px 28px; }

.digit-toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-bottom: 16px; }
.digit-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--control-radius);
    padding: 14px;
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}
.digit-toggle.selected { background: var(--brand); color: #fff; border-color: var(--brand); }

.field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
    margin-top: 16px;
}
.field-label:first-child { margin-top: 0; }
.field-label .icon { width: 13px; height: 13px; color: var(--muted); }

.form-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--control-radius);
    margin-bottom: 4px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--ink);
    transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
    outline: none;
}

.helper-text { color: var(--muted); font-size: 13px; margin: -2px 0 14px; }

.msg { padding: 11px 14px; border-radius: var(--control-radius); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.msg.error { background: var(--lose-bg); color: var(--danger-text); }
.msg.success { background: var(--win-bg); color: var(--win); }

/* ---------- Bottom nav: floating pill with an elevated Home button ---------- */
.bottom-nav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    padding: 0 max(12px, env(safe-area-inset-left));
    z-index: 20;
}
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 10px 30px rgba(39, 20, 22, 0.16);
}
.bottom-nav.is-quiz {
    max-width: 300px;
    padding: 6px 14px;
}
.bottom-nav.is-quiz a {
    min-width: 60px;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    border-radius: 999px;
    transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.bottom-nav a .icon { width: 20px; height: 20px; transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.bottom-nav a .glyph-icon { font-size: 19px; transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.bottom-nav a.active { color: var(--brand); background: var(--lose-bg); }
.bottom-nav a.active .icon,
.bottom-nav a.active .glyph-icon { transform: scale(1.15) translateY(-1px); }
.bottom-nav a:active { transform: scale(0.94); }

.bottom-nav-home {
    position: relative;
    top: -16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    color: #fff !important;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(var(--brand-rgb), 0.45), 0 0 0 5px var(--cream);
    flex-shrink: 0;
}
.bottom-nav-home .icon { width: 22px; height: 22px; }
.bottom-nav-home.active .icon { transform: none; }
.bottom-nav-home:active { transform: scale(0.93); }

/* ---------- Native-app feel: no long-press callouts / text selection on chrome ---------- */
.bottom-nav a,
.sidebar-nav a,
.drawer-nav a,
.topbar,
.menu-btn,
.sidebar-toggle-btn,
.sidebar-brand,
.sidebar-profile,
.drawer-header {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---------- Rates ---------- */
.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(155deg, #f3fdf6, var(--surface) 60%);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.rate-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rate-row .rate-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.rate-row .rate-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rate-row .mult { font-size: 21px; font-weight: 700; color: var(--brand); font-family: 'Sora', sans-serif; }

/* ---------- Disclaimer ---------- */
.disclaimer-box {
    background: var(--lose-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 12px 15px;
    border-radius: var(--control-radius);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.disclaimer-box .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Home quick actions (deposit/withdraw below banner) ---------- */
.home-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.home-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: 14px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(39, 20, 22, 0.08);
    transition: transform 150ms var(--ease);
}
.home-quick-btn:active { transform: scale(0.97); }
.home-quick-btn .icon { width: 17px; height: 17px; }
.home-quick-btn.deposit { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.home-quick-btn.withdraw { background: var(--surface); color: var(--brand-dark); border: 1.5px solid var(--brand); }

/* ---------- Preset amount chips (deposit page) ---------- */
.amount-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.amount-preset-btn {
    border: 1.5px solid var(--brand);
    background: var(--surface);
    color: var(--brand-dark);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 150ms var(--ease), color 150ms var(--ease);
}
.amount-preset-btn:hover,
.amount-preset-btn.active {
    background: var(--brand);
    color: #fff;
}

/* ---------- Notice box ---------- */
.notice-box {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.notice-box-title {
    background: var(--gold);
    color: #fff;
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 12px;
}
.notice-box-body {
    background: var(--surface);
    padding: 18px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.6;
}
.notice-box-body p { margin: 0 0 14px; }
.notice-box-body p:last-child { margin-bottom: 0; }

/* ---------- Balance panel ---------- */
.balance-panel { text-align: center; padding: 14px 24px; }
.balance-panel .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.balance-panel .amount {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 3px 0 0;
}
.balance-panel .amount .icon { width: 24px; height: 24px; color: var(--gold); }
.balance-panel .amount .glyph-icon { font-size: 26px; color: var(--gold); }

/* ---------- Chart table ---------- */
table.chart-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); }
table.chart-table th, table.chart-table td { padding: 11px; text-align: center; font-size: 13.5px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
table.chart-table th { background: var(--brand); color: #fff; font-weight: 700; }
table.chart-table tr:last-child td { border-bottom: none; }

/* ---------- Weekly panel chart ---------- */
.panel-chart-wrap { overflow-x: auto; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
table.panel-chart { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
table.panel-chart th {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    padding: 10px 6px;
    text-align: center;
}
table.panel-chart td {
    border: 1px solid var(--border);
    text-align: center;
    padding: 6px 4px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
table.panel-chart .week-label { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; padding: 6px 10px; }
table.panel-chart .panel-cell.today { background: var(--accent-soft); }
table.panel-chart .panel-cell .open,
table.panel-chart .panel-cell .close { font-size: 12px; color: var(--muted); line-height: 1.3; }
table.panel-chart .panel-cell .jodi { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--brand); line-height: 1.3; }
table.panel-chart .panel-cell .off { color: var(--disabled-text); font-size: 13px; }
table.panel-chart .panel-cell .pending { color: var(--disabled-text); font-size: 13px; }

.chart-nav { display: flex; justify-content: space-between; margin-top: 14px; gap: 10px; }
.chart-nav .btn { width: auto; padding: 10px 18px; }

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--card-radius);
}
.empty-state .icon { width: 40px; height: 40px; color: var(--brand-light); margin-bottom: 12px; }
.empty-state .glyph-icon { font-size: 40px; margin-bottom: 12px; color: var(--brand-light); }
.empty-state .title { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty-state .subtitle { font-size: 13.5px; }

/* ---------- Motion & polish: app-like entrance, press feedback, matka flourishes ---------- */
/* @view-transition { navigation: auto; } -- disabled to avoid Chromium invalid state / navigation abort errors */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.container > *,
.main-content > .container > * { animation: fadeSlideUp 420ms var(--ease) backwards; }
.container > *:nth-child(1) { animation-delay: 0ms; }
.container > *:nth-child(2) { animation-delay: 40ms; }
.container > *:nth-child(3) { animation-delay: 80ms; }
.container > *:nth-child(4) { animation-delay: 120ms; }
.container > *:nth-child(n+5) { animation-delay: 150ms; }

@keyframes coinShine {
    0%, 100% { box-shadow: 0 1px 2px rgba(39, 20, 22, 0.06); }
    50% { box-shadow: 0 1px 10px rgba(227, 160, 8, 0.35); }
}
.points-pill { animation: coinShine 3.2s ease-in-out infinite; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(var(--brand-rgb), 0); }
}
.circle-btn:not(.secondary) { animation: pulseGlow 2.4s ease-out infinite; }
.circle-btn:hover, .circle-btn:active { animation: none; }

.badge.open::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--win);
    margin-right: 5px;
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.market-card:active { transform: scale(0.985); }
.game-tile { cursor: pointer; }
.game-tile:active { transform: scale(0.96); box-shadow: var(--shadow-sm); }
.game-tile:hover .game-tile-icon { transform: scale(1.08) rotate(-4deg); }
.game-tile-icon { transition: transform 220ms var(--ease); }

.card, .auth-card { transition: box-shadow 220ms var(--ease); }
.card:hover { box-shadow: var(--shadow-md); }

.balance-panel .amount .icon,
.balance-panel .amount .glyph-icon { animation: coinFlip 3.6s ease-in-out infinite; }
@keyframes coinFlip {
    0%, 85%, 100% { transform: rotateY(0deg); }
    90% { transform: rotateY(180deg); }
    95% { transform: rotateY(360deg); }
}

.form-input { transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12); outline: none; }

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .container > *, .main-content > .container > * { animation: none; }
}

/* ---------- Desktop app shell: full-height sidebar, same structure as the admin panel ---------- */
.app-layout { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .menu-btn { display: none; }
    .bottom-nav-wrap { display: none; }

    .sidebar {
        display: flex;
        flex-direction: column;
        width: 264px;
        flex-shrink: 0;
        background: var(--sidebar-bg);
        border-right: 1px solid var(--border);
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
    .sidebar-toggle-btn { display: flex; }
    .sidebar ~ .main-col .topbar-name,
    .sidebar ~ .main-col .topbar-logo { display: none; }
    .container { width: 92%; max-width: 1400px; padding: 36px 0; margin: 0 auto; }

    body.sidebar-collapsed .sidebar { display: none; }
    body.sidebar-collapsed .sidebar ~ .main-col .topbar-name,
    body.sidebar-collapsed .sidebar ~ .main-col .topbar-logo { display: block; }
}

/* ---------- UPI Checkout Modal & Buttons ---------- */
.upi-checkout-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.upi-header {
    text-align: center;
    padding: 8px 0 16px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 16px;
}
.upi-header .upi-amount-title {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.upi-header .upi-amount-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
    margin: 4px 0;
}
.upi-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.upi-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transition: transform 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
    border: none;
}
.upi-btn-primary:active { transform: scale(0.98); }
.upi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
}
.upi-app-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    transition: background-color 150ms ease, transform 120ms ease;
    cursor: pointer;
}
.upi-app-chip:active { transform: scale(0.96); }
.upi-vpa-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
}
.upi-copy-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    cursor: pointer;
}

