/* ==============================================================================
   Tara 567 Native Stylesheet
   Precision Engineered from Reference Design & Modern Mobile UI/UX Guidelines
   ============================================================================== */

/* --- Reset & Touch Optimization --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Instant tap response (removes 300ms mobile delay) */
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: #0b0f19;
    /* High-contrast matte backdrop on desktop */
    color: var(--text-dark, #0F172A);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Hide scrollbars across all scroll containers for a sleek native app look */
* {
    scrollbar-width: none !important;
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* --- Mobile Device Wrapper (WebView Ready) --- */
.mobile-wrapper {
    width: 100%;
    max-width: 440px;
    /* Native smartphone width constraint on desktop browser */
    min-height: 100vh;
    min-height: 100dvh;
    background: #FAF7F2;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overscroll-behavior-y: none;
}

/* Inside real Android WebView or phones under 600px, fill edge-to-edge with seamless warm milk */
@media (max-width: 600px) {
    body {
        background-color: #FAF7F2;
    }
    .mobile-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}

.mobile-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==============================================================================
   Modern Clean Warm Milk Quiz App Auth Screens (Soothing Eye Comfort)
   ============================================================================== */

/* Mobile wrapper backdrop for soothing warm milk auth */
.mobile-wrapper:has(.auth-fullscreen),
.mobile-wrapper:has(.auth-page) {
    background: #FAF7F2;
}

.auth-fullscreen,
.auth-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #FAF7F2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: max(24px, env(safe-area-inset-top, 24px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    color: #0F172A;
}

.auth-content-shell,
.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

/* Quiz Brand Hero */
.quiz-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.quiz-logo-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.quiz-logo-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(29, 78, 216, 0.18));
}

.quiz-brand-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #0F172A;
    margin: 0;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-brand-accent {
    color: #1D4ED8;
}

.quiz-brand-subtitle {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.quiz-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1D4ED8;
    letter-spacing: 0.2px;
}

.quiz-pulse-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10B981;
    animation: quizPulse 2s infinite;
}

@keyframes quizPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Modern Segmented Control (Sign In / Register) - Apple / Duolingo Style */
.quiz-segment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #EFEAE2;
    border: 1px solid #E5DED4;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.quiz-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.18s ease;
}

.quiz-tab.active {
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(30, 25, 20, 0.08);
}

.quiz-tab:not(.active):hover {
    color: #0F172A;
}

/* Flash Feedback Alerts - Clean Light Style */
.auth-alert,
.flash-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    animation: authFadeIn 0.2s ease;
}

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

.auth-alert.error,
.flash-alert.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.auth-alert.success,
.flash-alert.success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.auth-alert.info,
.flash-alert.info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

/* Form Layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.1px;
}

.auth-label .badge-opt {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
}

/* Clean Elevated Input Container */
.auth-input-wrapper,
.input-pill-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    background: #FFFFFF;
    border: 1.5px solid #E8E2D8;
    border-radius: 14px;
    padding: 0 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(30, 25, 20, 0.03);
}

.auth-input-wrapper:focus-within,
.input-pill-wrap:focus-within {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-phone-prefix {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1.5px solid #E8E2D8;
    flex-shrink: 0;
    line-height: 1;
}

.auth-field-icon {
    color: #94A3B8;
    margin-right: 10px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.auth-input-wrapper:focus-within .auth-field-icon {
    color: #2563EB;
}

.auth-input-wrapper input,
.input-pill-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    width: 100%;
    min-width: 0;
    padding: 0;
    -webkit-appearance: none;
    scroll-margin-bottom: 90px;
    scroll-margin-top: 30px;
}

.auth-input-wrapper input::placeholder,
.input-pill-wrap input::placeholder {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 400;
}

/* Eye Visibility Toggle */
.btn-toggle-eye {
    background: none;
    border: none;
    padding: 8px;
    margin-right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.btn-toggle-eye:hover,
.btn-toggle-eye:active {
    color: #475569;
}

/* Primary Action Button - Modern Royal Blue */
.auth-btn-primary,
.btn-primary-action {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: linear-gradient(180deg, #3B82F6 0%, #2563EB 55%, #1D4ED8 100%);
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.08s ease, opacity 0.08s ease, box-shadow 0.08s ease;
    margin-top: 4px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-btn-primary:active,
.btn-primary-action:active {
    transform: scale(0.985);
    opacity: 0.95;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.auth-btn-primary:disabled,
.btn-primary-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Professional WhatsApp Support Button */
.auth-support-row,
.auth-footer-nav {
    margin: 18px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-whatsapp-pill,
.quiz-support-pill,
.auth-support-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1.5px solid #E8E2D8;
    color: #0F172A;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(30, 25, 20, 0.04);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.auth-whatsapp-pill img,
.quiz-support-pill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-whatsapp-pill:hover,
.auth-whatsapp-pill:active,
.quiz-support-pill:hover,
.quiz-support-pill:active {
    background: #F0FDF4;
    border-color: #25D366;
    color: #128C7E;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.18);
    transform: translateY(-1px);
}

.footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 600;
}

.footer-whatsapp-link img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

.footer-whatsapp-link:hover {
    color: #166534;
    text-decoration: underline;
}

.auth-switch-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
    text-align: center;
}

.auth-switch-text a {
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: none;
    margin-left: 3px;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

/* ==============================================================================
   Quiz App Trust & Play Store Compliance Footer
   ============================================================================== */
.quiz-compliance-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid #EAE4DC;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.quiz-disclaimer {
    font-size: 11px;
    color: #64748B;
    line-height: 1.45;
    margin: 0;
    padding: 0 4px;
}

.quiz-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

.quiz-legal-links a {
    color: #1D4ED8;
    text-decoration: none;
    transition: color 0.15s;
}

.quiz-legal-links a:hover {
    text-decoration: underline;
}

/* ==============================================================================
   Professional Verification Phone Badge Card
   ============================================================================== */
.auth-verify-capsule {
    background: #FFFFFF;
    border: 1px solid #E8E2D8;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 16px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(30, 25, 20, 0.04);
}

.auth-verify-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #EFF6FF;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-verify-details {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.auth-verify-sub {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.auth-verify-phone {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.4px;
}

.auth-verify-edit-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.auth-verify-edit-btn:hover {
    background: #EFF6FF;
    border-color: #93C5FD;
}

.auth-verify-edit-btn:active {
    transform: scale(0.97);
}

/* ==============================================================================
   Clean White OTP Verification Grid (IME, Clipboard & Auto-Advance Ready)
   ============================================================================== */

.auth-otp-grid,
.quiz-otp-grid,
.otp-inputs-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
}

.auth-otp-cell,
.otp-box {
    width: 58px;
    height: 62px;
    max-width: 20vw;
    border: 1.5px solid #E0D8CC;
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    caret-color: #2563EB;
    transition: all 0.15s ease;
    box-sizing: border-box;
    -webkit-user-select: text;
    user-select: text;
    box-shadow: 0 1px 3px rgba(30, 25, 20, 0.03);
}

.auth-otp-cell:focus,
.otp-box:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.auth-otp-cell.filled,
.otp-box.filled {
    border-color: #2563EB;
    background: #F8FAFC;
}

.auth-resend-row,
.quiz-resend-box,
.resend-timer-text {
    text-align: center;
    font-size: 13.5px;
    color: #64748B;
    margin-bottom: 20px;
    min-height: 20px;
}

.auth-resend-row strong,
.quiz-resend-box strong {
    color: #0F172A;
    font-weight: 800;
}

.auth-link-resend,
.quiz-link-resend,
.resend-link {
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-link-resend:hover,
.quiz-link-resend:hover,
.resend-link:hover {
    text-decoration: underline;
}

.auth-link-edit {
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    font-size: 13px;
}

.auth-link-edit:hover {
    text-decoration: underline;
}

/* Shake feedback animation for invalid OTP */
@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.auth-otp-grid.shake,
.otp-inputs-grid.shake {
    animation: shakeBox 0.35s ease;
}

/* Auth Screens IME / Soft Keyboard & Small Height Viewport Adaptations */
.auth-otp-cell,
.otp-box {
    scroll-margin-bottom: 90px;
    scroll-margin-top: 30px;
}

.auth-btn-primary,
.btn-primary-action {
    scroll-margin-bottom: 40px;
}

@media (max-height: 720px) {
    .auth-fullscreen,
    .auth-page {
        padding-top: max(12px, env(safe-area-inset-top, 12px));
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        justify-content: flex-start;
    }
    .quiz-hero {
        margin-bottom: 12px;
    }
    .quiz-logo-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }
    .quiz-logo-img {
        width: 48px;
        height: 48px;
    }
    .quiz-brand-title {
        font-size: 20px;
    }
    .quiz-brand-subtitle,
    .quiz-brand-badge {
        display: none !important;
    }
    .quiz-segment-tabs {
        margin-bottom: 12px;
        padding: 3px;
    }
    .quiz-tab {
        padding: 7px 10px;
        font-size: 13px;
    }
    .auth-form {
        gap: 12px;
    }
    .auth-input-wrapper,
    .input-pill-wrap {
        height: 46px;
    }
    .auth-btn-primary,
    .btn-primary-action {
        height: 46px;
        margin-top: 2px;
        font-size: 15px;
    }
    .auth-verify-capsule {
        margin: 8px 0 12px 0;
        padding: 8px 12px;
    }
    .auth-otp-grid,
    .quiz-otp-grid,
    .otp-inputs-grid {
        margin: 10px 0 14px;
        gap: 8px;
    }
    .auth-otp-cell,
    .otp-box {
        width: 48px;
        height: 50px;
        font-size: 20px;
    }
    .auth-support-row,
    .auth-footer-nav {
        margin: 10px 0 6px;
    }
    .quiz-compliance-footer {
        margin-top: 10px;
        padding-top: 10px;
        gap: 6px;
    }
}


/* ==============================================================================
   In-App Dashboard Layout (Betting & Quiz)
   Native Mobile App Shell with Fixed Glassmorphic Header & Action Controls
   ============================================================================== */

.mobile-wrapper:has(.app-shell) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.app-shell {
    height: 100vh;
    height: 100dvh;
    background: var(--mesh-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* --- Fixed App Header (Background Color STRICTLY LIMITED to Header & Marquee Ticker) --- */
.app-fixed-header {
    flex-shrink: 0;
    z-index: 80;
    background: var(--mesh-bg, linear-gradient(180deg, #FFEBD4 0%, #FFF5E9 70%, #FFF0DE 100%));
    padding: 8px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Left Brand Capsule (Hamburger + Mascot Logo + Brand Name) */
.brand-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #EAE4DC;
    border-radius: 9999px;
    padding: 4px 14px 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(30, 25, 20, 0.04);
}

.nav-drawer-toggle {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 6px;
    color: #1E293B;
}

.nav-drawer-toggle:active {
    background: rgba(0, 0, 0, 0.05);
}

.brand-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF9900 0%, #FF5500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 85, 0, 0.3);
}

.brand-pill-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
}

/* Header Right Actions (Wallet Pill + Notification Bell) */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-wallet-pill {
    background: #111827;
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 4px 14px 4px 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.header-wallet-pill:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.wallet-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-amount {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #FFFFFF;
}

.header-notif-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    color: #1E293B;
    transition: transform 0.15s ease;
}

.header-refresh-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    color: #1E293B;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    flex-shrink: 0;
}

.header-refresh-btn:active {
    transform: rotate(180deg) scale(0.92);
    background: #F8FAFC;
}

.header-refresh-btn.rotating svg {
    animation: headerSpin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes headerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-notif-btn:active {
    transform: scale(0.94);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 2.5px 5px;
    border-radius: 9999px;
    border: 2px solid #FFFFFF;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}

/* Notice / Marquee Ticker */
.notice-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 3px 4px 1px;
    background: transparent;
}

.notice-ticker-content {
    font-size: 13.5px;
    font-weight: 800;
    color: #DC2626;
    letter-spacing: -0.1px;
    display: block;
}

/* Quick Action Card (Add Fund + Withdrawal + Full WhatsApp on Warm Milk Canvas) */
.sheet-pinned-actions {
    flex-shrink: 0;
    background: #FAF7F2;
    padding: 6px 14px 4px;
    z-index: 20;
}

.quick-action-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 8px 12px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(30, 25, 20, 0.04);
    border: 1.5px solid #EAE4DC;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-action-primary {
    background: var(--primary-gradient, linear-gradient(180deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%));
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--button-shadow, 0 8px 20px rgba(29, 78, 216, 0.35));
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-action-primary:active {
    transform: scale(0.97);
    opacity: 0.92;
}

.btn-action-dark {
    background: #131927;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(19, 25, 39, 0.2);
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-action-dark:active {
    transform: scale(0.97);
    opacity: 0.92;
}

/* Full Size WhatsApp Button */
.btn-whatsapp-full {
    width: 100%;
    height: 48px;
    border: 1.5px solid #E2E8F0;
    border-radius: 9999px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.12s ease, background 0.12s ease;
}

.btn-whatsapp-full:active {
    transform: scale(0.98);
    background: #F8FAFC;
}

.whatsapp-badge {
    background: #25D366;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.whatsapp-number {
    font-size: 15.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.4px;
}

/* --- Slide-Out Navigation Drawer --- */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==============================================================================
   Slide-Out Navigation Drawer (1:1 Reference Match to Provided Screenshot)
   ============================================================================== */

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 78%;
    max-width: 335px;
    background: #FFFFFF;
    z-index: 1001;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .nav-drawer {
        left: calc(50% - 220px);
        width: 325px;
        transform: translateX(-340px);
    }
}

.nav-drawer.active {
    transform: translateX(0);
}

/* 1. Drawer Header (Clean White with Illustrated Avatar, Bold Name & Phone) */
.drawer-header {
    background: #FFFFFF;
    padding: calc(env(safe-area-inset-top, 16px) + 20px) 18px 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.drawer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.drawer-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawer-user-name {
    font-size: 18.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-phone {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    margin-top: 3px;
    letter-spacing: 0.1px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    margin-right: -4px;
    flex-shrink: 0;
}

.drawer-close-btn:active {
    background: #F1F5F9;
}

/* 2. Menu Items List */
.drawer-menu {
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drawer-nav-item,
.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 22px;
    text-decoration: none;
    color: #0F172A;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
}

.drawer-nav-item:active,
.drawer-menu-item:active {
    background: #F8FAFC;
}

.drawer-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #0F172A;
    flex-shrink: 0;
}

.drawer-nav-icon svg {
    stroke: #0F172A;
    stroke-width: 2.2;
}

.drawer-nav-label {
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.15px;
}

.drawer-nav-item.logout,
.drawer-menu-item.logout {
    color: #0F172A;
}

/* 3. Drawer Footer */
.drawer-footer {
    padding: 24px 22px calc(env(safe-area-inset-bottom, 16px) + 20px) 22px;
    border-top: 1px solid #F1F5F9;
    background: #FFFFFF;
}

.drawer-app-version {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
}

/* Modals for Game Rates, MPIN, and Idea */
.bottom-sheet-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px calc(env(safe-area-inset-bottom, 16px) + 20px);
    z-index: 1002;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.bottom-sheet-modal.active {
    transform: translate(-50%, 0);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.sheet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.sheet-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.sheet-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
}

.game-rates-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 55vh;
    overflow-y: auto;
}

.game-rate-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.rate-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
}

.rate-val {
    font-size: 15px;
    font-weight: 800;
    color: #EA580C;
    letter-spacing: 0.3px;
}


/* --- Notification Sheet / Modal --- */
.notif-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px calc(env(safe-area-inset-bottom, 16px) + 20px);
    z-index: 1002;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notif-modal.active {
    transform: translate(-50%, 0);
}

.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.notif-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.notif-item-desc {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
}

.notif-item-time {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 2px;
}

/* --- Market Details Native Bottom Sheet Modal (No Browser Alert) --- */
.market-info-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 26px 26px 0 0;
    padding: 12px 20px calc(env(safe-area-inset-bottom, 16px) + 20px);
    z-index: 1003;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.market-info-sheet.active {
    transform: translate(-50%, 0);
}

.sheet-drag-handle {
    width: 42px;
    height: 5px;
    background: #E2E8F0;
    border-radius: 9999px;
    margin: 4px auto 4px;
}

.sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.sheet-market-title {
    font-size: 20px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sheet-market-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-top: 4px;
    text-transform: uppercase;
}

.sheet-market-badge.open {
    background: #DCFCE7;
    color: #166534;
}

.sheet-market-badge.closed {
    background: #FEE2E2;
    color: #991B1B;
}

.sheet-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 65vh;
    overflow-y: auto;
}

.sheet-timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sheet-timing-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.timing-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

.timing-val {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.sheet-result-card {
    background: #FFF7ED;
    border: 1.5px solid #FFEDD5;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
}

.result-card-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #9A3412;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card-number {
    font-size: 26px;
    font-weight: 900;
    color: #EA580C;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.sheet-rates-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 16px;
}

.rates-header {
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
}

.rate-item strong {
    color: #0F172A;
    font-weight: 800;
}

/* --- Native Mobile Floating Toasts (Zero Browser Alert) --- */
.app-toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 380px;
    pointer-events: none;
}

.app-toast {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.app-toast.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.success {
    background: #065F46;
}

.app-toast.error {
    background: #991B1B;
}

.app-toast.info {
    background: #1E293B;
}

/* ==============================================================================
   Apple Liquid Glass Bottom Navigation Bar (iOS 18 Native Spec)
   Docked Frosted Glass Surface, Elevated 3D Liquid Orb & iOS Home Indicator
   ============================================================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
    max-width: 440px;
    background: rgba(250, 247, 242, 0.85);
    -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(102%);
    backdrop-filter: blur(28px) saturate(190%) contrast(102%);
    border-top: 1px solid #EAE4DC;
    border-radius: 24px 24px 0 0;
    box-shadow:
        0 -8px 28px rgba(30, 25, 20, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    z-index: 95;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    flex-direction: column;
    align-items: center;
    contain: layout;
    will-change: transform;
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .app-bottom-nav {
        background: rgba(250, 247, 242, 0.96);
    }
}

.bottom-nav-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
    align-items: center;
    height: 58px;
    padding: 0 6px;
    position: relative;
}

/* --- Apple Dynamic Sliding Liquid Glass Indicator Pill --- */
.liquid-active-pill {
    position: absolute;
    top: 5px;
    height: 48px;
    border-radius: 18px;
    background: rgba(250, 107, 0, 0.12);
    border: 1px solid rgba(250, 107, 0, 0.22);
    box-shadow:
        inset 0 1px 1.5px rgba(255, 255, 255, 0.85),
        0 2px 8px rgba(250, 107, 0, 0.12);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease;
    will-change: transform, width, opacity;
}

.liquid-active-pill.visible {
    opacity: 1;
}

/* --- Apple SF Symbols Spring Bounce Keyframes --- */
@keyframes appleTabBounce {
    0% {
        transform: scale(1);
    }

    28% {
        transform: scale(0.82);
        /* Touch compression */
    }

    54% {
        transform: scale(1.18);
        /* Spring overshoot */
    }

    75% {
        transform: scale(0.96);
        /* Rebound settle */
    }

    100% {
        transform: scale(1.08);
        /* Elevated active state */
    }
}

/* --- Nav Item with Apple Spring Physics --- */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #475569;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: color 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Apple Elastic Tap Squash & Stretch */
.bottom-nav-item:active {
    transform: scale(0.88);
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-item.active {
    color: #FA6B00;
}

.bottom-nav-item.active .bottom-nav-icon svg,
.bottom-nav-item.tap-bounce .bottom-nav-icon svg {
    stroke: #FA6B00;
    animation: appleTabBounce 0.44s cubic-bezier(0.25, 1, 0.5, 1) both;
    filter: drop-shadow(0 2px 4px rgba(250, 107, 0, 0.25));
}

.bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.15px;
    white-space: nowrap;
    transition: font-weight 0.2s ease;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 800;
}

/* --- Elevated Apple 3D Liquid Amber Glass Home Orb --- */
.bottom-nav-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Apple Liquid Orb Droplet Bounce Keyframes */
@keyframes appleOrbBounce {
    0% {
        transform: translateY(-13px) scale(1);
    }

    26% {
        transform: translateY(-9px) scale(0.88);
        /* Compression dip */
    }

    52% {
        transform: translateY(-16px) scale(1.12);
        /* Fluid droplet spring */
    }

    76% {
        transform: translateY(-12.5px) scale(0.97);
        /* Fluid settle */
    }

    100% {
        transform: translateY(-13px) scale(1);
    }
}

.center-btn-circle.liquid-orb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-13px);
    /* 3D Liquid Sapphire Glass Core */
    background: radial-gradient(circle at 35% 26%, #60A5FA 0%, #2563EB 55%, #1D4ED8 100%);
    border: 3.5px solid #FFFFFF;
    box-shadow:
        0 6px 18px rgba(29, 78, 216, 0.42),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 2px 2px rgba(255, 255, 255, 0.85),
        inset 0 -2px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.28s ease;
    will-change: transform;
}

/* Real-time Specular Light Sweep across Liquid Glass Dome */
.center-btn-circle.liquid-orb::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -160%;
    width: 160%;
    height: 220%;
    background: linear-gradient(115deg,
            transparent 0%,
            transparent 42%,
            rgba(255, 255, 255, 0.22) 48%,
            rgba(255, 255, 255, 0.60) 50%,
            rgba(255, 255, 255, 0.22) 52%,
            transparent 58%,
            transparent 100%);
    pointer-events: none;
    transform: rotate(25deg);
    animation: liquidSheenSweep 5.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes liquidSheenSweep {

    0%,
    20% {
        transform: translateX(0) rotate(25deg);
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    55% {
        transform: translateX(260%) rotate(25deg);
        opacity: 1;
    }

    70%,
    100% {
        transform: translateX(260%) rotate(25deg);
        opacity: 0;
    }
}

/* Curved Specular Dome Lens Flare */
.orb-specular,
.liquid-orb-specular {
    position: absolute;
    top: 1.5px;
    left: 16%;
    width: 68%;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50% 50% 35% 35%;
    pointer-events: none;
    z-index: 2;
}

/* Bottom Caustic Light Bounce (Internal Light Convergence) */
.orb-caustic {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 6px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.45) 0%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Suspended Home Icon */
.orb-icon {
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tap Bounce & Fluid Active States */
.bottom-nav-center-btn:active .center-btn-circle.liquid-orb,
.bottom-nav-center-btn.tap-bounce .center-btn-circle.liquid-orb {
    animation: appleOrbBounce 0.44s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.bottom-nav-center-btn.active .orb-icon {
    transform: scale(1.05);
}

/* --- Apple iOS Home Indicator Pill --- */
.ios-home-indicator {
    width: 134px;
    height: 4.5px;
    background: rgba(15, 23, 42, 0.20);
    border-radius: 100px;
    margin: 2px auto 6px;
}

/* Fixed Warm Milk Sheet behind Market Cards (Sheet is Fixed, ONLY Inner Cards Scroll) */
.markets-fixed-sheet,
.markets-surface-container {
    flex: 1;
    min-height: 0;
    /* Critical for flex child to allow inner scroll */
    background: #FAF7F2;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 26px rgba(30, 25, 20, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Clips scrolling cards cleanly at top curved border */
    margin-bottom: 0;
    /* Extends to bottom, cards scroll behind floating island dock! */
    position: relative;
    z-index: 10;
}

/* ONLY the Market Cards Scroll Inside This Sheet */
.market-cards-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 14px calc(92px + env(safe-area-inset-bottom, 0px));
    /* Sits safely above floating island so cards never cut off */
    overscroll-behavior-y: contain;
}

.market-cards-scroll-wrap::-webkit-scrollbar {
    width: 3px;
}

.market-cards-scroll-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.market-cards-scroll-wrap::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

/* Legacy Support & Content Area */
.quiz-topbar {
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-topbar {
    display: none;
    /* Replaced by .app-fixed-header */
}

.app-user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FEF3C7;
    color: #D97706;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1.5px solid #FDE68A;
}

.wallet-badge {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-content {
    padding: 18px;
    flex: 1;
    overflow-y: auto;
}

/* Mode Switch Banner (Testing/Admin Demo) */
.mode-switch-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mode-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.mode-badge.betting {
    background: #FEF3C7;
    color: #B45309;
}

.mode-badge.quiz {
    background: #E0E7FF;
    color: #4338CA;
}

.btn-toggle-mode {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.btn-toggle-mode:active {
    opacity: 0.85;
}

/* ==============================================================================
   Market Cards (1:1 Reference Match & 3D Tactile Play Button)
   ============================================================================== */

.market-card {
    background: #FFFFFF;
    border: 1.5px solid #EAE4DC;
    border-radius: 20px;
    padding: 16px 18px 13px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(30, 25, 20, 0.035);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 130px;
}

.market-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.market-info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.market-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-name {
    font-size: 18.5px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.market-info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background: transparent;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: serif;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.market-info-btn:active {
    color: #0F172A;
    border-color: #64748B;
}

.market-result-display {
    font-size: clamp(21px, 6.2vw, 26px);
    font-weight: 900;
    color: #0F172A;
    letter-spacing: 0.6px;
    margin: 3px 0;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.market-status-label {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
    line-height: 1.2;
}

.market-status-label.closed {
    color: #DC2626;
    /* Crimson Red matching reference */
}

.market-status-label.open {
    color: #16A34A;
    /* Vibrant Green for running market */
}

/* --- Market Actions Cluster: {chart}{play} Side by Side --- */
.market-actions-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.market-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* 1. Chart Button: Distinct 3D Glass / Neumorphic Sphere */
.market-chart-btn {
    background: radial-gradient(circle at 35% 28%, #FFFFFF 0%, #F1F5F9 45%, #E2E8F0 100%);
    border: 1.5px solid #CBD5E1;
    color: #0F172A;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -2.5px 3px rgba(0, 0, 0, 0.08);
}

.market-chart-btn:hover {
    transform: scale(1.06);
    color: #EA580C;
    border-color: #94A3B8;
    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.12),
        inset 0 2px 3px rgba(255, 255, 255, 1);
}

.market-chart-btn:active {
    transform: scale(0.93) translateY(2px);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 2. 3D Spherical Play Button */
.market-3d-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* PLAYABLE / OPEN STATE: Vibrant Orange 3D Sphere */
.market-3d-play-btn.playable {
    background: radial-gradient(circle at 35% 28%, #FFB64D 0%, #FF8000 38%, #F75D00 68%, #D84315 100%);
    box-shadow:
        0 6px 16px rgba(247, 93, 0, 0.42),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 3px rgba(255, 255, 255, 0.88),
        inset 0 -3px 4px rgba(0, 0, 0, 0.32);
}

.market-3d-play-btn.playable:hover {
    transform: scale(1.06);
    box-shadow:
        0 8px 20px rgba(247, 93, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.92);
}

.market-3d-play-btn.playable:active {
    transform: scale(0.93) translateY(2px);
    box-shadow:
        0 3px 8px rgba(247, 93, 0, 0.35);
}

/* CLOSED STATE: Gray Metallic 3D Sphere matching screenshot */
.market-3d-play-btn.closed {
    background: radial-gradient(circle at 35% 28%, #E2E8F0 0%, #A0AEC0 42%, #718096 75%, #475569 100%);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.14),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        inset 0 -2.5px 3px rgba(0, 0, 0, 0.25);
    cursor: default;
    opacity: 0.95;
}

/* White 3D Play Triangle Icon */
.play-triangle-icon {
    width: 18px;
    height: 18px;
    fill: #FFFFFF;
    transform: translateX(1.5px);
    /* Optical center alignment */
    filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.25));
}

/* Bottom Bid Timing Section */
.market-card-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 12px 0 10px;
    border: none;
}

.market-bids-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    gap: 8px;
}

.market-bid-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bid-label {
    color: #64748B;
    font-weight: 500;
}

.bid-time {
    color: #0F172A;
    font-weight: 800;
    letter-spacing: -0.2px;
}

@media (max-width: 360px) {

    .market-action-btn,
    .market-chart-btn,
    .market-3d-play-btn {
        width: 42px;
        height: 42px;
    }

    .market-actions-cluster {
        gap: 6px;
    }

    .play-triangle-icon {
        width: 16px;
        height: 16px;
    }

    .market-chart-btn svg {
        width: 18px;
        height: 18px;
    }

    .market-bids-row {
        font-size: 11.5px;
    }
}

/* ==============================================================================
   Tara 567 Professional Educational Quiz Engine (Full-Screen & Dashboard)
   100% Google Play Store Compliant Trivia Experience
   ============================================================================== */

/* Quiz Page Shell */
.quiz-dashboard-shell {
    background: #FAF7F2;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Quiz Topbar */
.quiz-dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #EAE4DC;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-user-capsule {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-avatar-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.quiz-user-info-name {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.quiz-user-rank-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2563EB;
    background: #EFF6FF;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 2px;
}

/* Streak Flame Badge */
.quiz-streak-pill {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    color: #92400E;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.quiz-dashboard-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Metric Cards */
.quiz-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.quiz-stat-box {
    background: #FFFFFF;
    border: 1px solid #EAE4DC;
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30, 25, 20, 0.04);
}

.quiz-stat-val {
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 4px;
}

.quiz-stat-val.accent {
    color: #1D4ED8;
}

.quiz-stat-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Daily Challenge Banner */
.quiz-featured-hero {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
    border-radius: 20px;
    padding: 20px;
    color: #FFFFFF;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.quiz-featured-hero::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.quiz-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.quiz-featured-hero h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px 0;
}

.quiz-featured-hero p {
    font-size: 13px;
    opacity: 0.92;
    margin: 0 0 16px 0;
    line-height: 1.45;
}

.quiz-btn-play-daily {
    background: #FFFFFF;
    color: #1D4ED8;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-btn-play-daily:active {
    transform: scale(0.97);
}

/* Apple-Style Segmented Navigation */
.quiz-nav-switcher {
    display: flex;
    background: #EFEBE4;
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 18px;
}

.quiz-switch-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #64748B;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quiz-switch-tab.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(30, 25, 20, 0.08);
}

/* Category Cards Grid */
.quiz-category-card-v2 {
    background: #FFFFFF;
    border: 1px solid #EAE4DC;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(30, 25, 20, 0.03);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.quiz-category-card-v2:hover {
    border-color: #D6CEC2;
}

.quiz-cat-icon-square {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.quiz-cat-content {
    flex: 1;
    min-width: 0;
}

.quiz-cat-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.quiz-cat-desc {
    font-size: 11.5px;
    color: #64748B;
    margin-bottom: 6px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-cat-tags {
    display: flex;
    gap: 6px;
}

.quiz-cat-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 6px;
}

.quiz-btn-start-cat {
    background: #1D4ED8;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
    transition: transform 0.12s ease;
}

.quiz-btn-start-cat:active {
    transform: scale(0.96);
}

/* Leaderboard Hall of Fame List */
.quiz-leaderboard-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.quiz-lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.quiz-lb-item:last-child {
    border-bottom: none;
}

.quiz-lb-rank {
    width: 28px;
    font-size: 15px;
    font-weight: 900;
    color: #64748B;
    text-align: center;
    flex-shrink: 0;
}

.quiz-lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #1D4ED8;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-lb-user-details {
    flex: 1;
    min-width: 0;
}

.quiz-lb-name {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-lb-meta {
    font-size: 11px;
    color: #64748B;
}

.quiz-lb-points {
    font-size: 14px;
    font-weight: 900;
    color: #1D4ED8;
    background: #EFF6FF;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ==============================================================================
   FULL-SCREEN PLAYABLE QUIZ STAGE
   Takes over 100% viewport (NO bottomsheet / popup)
   ============================================================================== */
.quiz-play-stage {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: quizStageSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes quizStageSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-stage-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

.quiz-btn-quit {
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s ease;
}

.quiz-btn-quit:active {
    background: #E2E8F0;
}

.quiz-stage-cat-pill {
    font-size: 12.5px;
    font-weight: 800;
    color: #1D4ED8;
    background: #EFF6FF;
    padding: 5px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dynamic Timer Pill */
.quiz-stage-timer-pill {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #F1F5F9;
    color: #0F172A;
    transition: all 0.3s ease;
}

.quiz-stage-timer-pill.safe {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.quiz-stage-timer-pill.warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.quiz-stage-timer-pill.urgent {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    animation: quizPulseUrgent 1s infinite;
}

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

/* Progress Bar */
.quiz-stage-progress-bar-wrap {
    height: 4px;
    background: #F1F5F9;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.quiz-stage-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%);
    width: 0%;
    transition: width 0.35s ease;
}

/* Play Content Area */
.quiz-stage-body {
    flex: 1;
    padding: 20px 16px 30px;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.quiz-q-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.quiz-q-count {
    font-size: 13px;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-q-difficulty {
    font-size: 11.5px;
    font-weight: 700;
    color: #1D4ED8;
    background: #EFF6FF;
    padding: 3px 10px;
    border-radius: 999px;
}

.quiz-q-text {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.42;
    margin-bottom: 24px;
}

/* 4 Tactile Option Tiles */
.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-option-btn {
    min-height: 58px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
    width: 100%;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.quiz-option-btn:active {
    transform: scale(0.98);
}

.quiz-opt-letter {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #F1F5F9;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.quiz-opt-text {
    flex: 1;
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.35;
}

/* Option States: Correct / Wrong */
.quiz-option-btn.correct {
    background: #10B981 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.quiz-option-btn.correct .quiz-opt-letter {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

.quiz-option-btn.correct .quiz-opt-text {
    color: #FFFFFF !important;
}

.quiz-option-btn.wrong {
    background: #EF4444 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.quiz-option-btn.wrong .quiz-opt-letter {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

.quiz-option-btn.wrong .quiz-opt-text {
    color: #FFFFFF !important;
}

.quiz-option-btn.revealed-correct {
    background: #ECFDF5 !important;
    border: 2px solid #10B981 !important;
}

.quiz-option-btn.revealed-correct .quiz-opt-letter {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

.quiz-option-btn.revealed-correct .quiz-opt-text {
    color: #065F46 !important;
}

.quiz-option-btn.disabled {
    pointer-events: none;
}

/* Educational Trivia Box */
.quiz-trivia-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.25s ease forwards;
}

.quiz-trivia-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.quiz-trivia-body {
    flex: 1;
}

.quiz-trivia-title {
    font-size: 12px;
    font-weight: 800;
    color: #1E40AF;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-trivia-text {
    font-size: 13px;
    color: #1E3A8A;
    line-height: 1.4;
    margin: 0;
}

/* Next Button Row */
.quiz-stage-action-row {
    margin-top: auto;
    padding-top: 10px;
}

.quiz-btn-primary-action {
    width: 100%;
    background: #1D4ED8;
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
    transition: transform 0.12s ease;
}

.quiz-btn-primary-action:active {
    transform: scale(0.98);
}

/* ==============================================================================
   FULL-SCREEN RESULTS & REVIEW STAGE
   ============================================================================== */
.quiz-results-shell {
    padding: 30px 16px 40px;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.quiz-trophy-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 3px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    animation: quizTrophyPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes quizTrophyPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.quiz-results-title {
    font-size: 24px;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 6px;
}

.quiz-results-rank-pill {
    display: inline-block;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

/* Metrics Summary Grid */
.quiz-results-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quiz-res-stat-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 10px;
}

.quiz-res-stat-val {
    font-size: 20px;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 3px;
}

.quiz-res-stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

/* Review Accordion */
.quiz-review-section {
    text-align: left;
    margin-bottom: 24px;
}

.quiz-review-toggle-btn {
    width: 100%;
    background: #F1F5F9;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.quiz-review-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-review-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 14px;
}

.quiz-rev-q-num {
    font-size: 11px;
    font-weight: 800;
    color: #64748B;
    margin-bottom: 4px;
}

.quiz-rev-q-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.quiz-rev-ans {
    font-size: 12.5px;
    margin-bottom: 3px;
}

.quiz-rev-ans.user-correct {
    color: #059669;
    font-weight: 700;
}

.quiz-rev-ans.user-wrong {
    color: #DC2626;
    font-weight: 700;
}

.quiz-rev-ans.correct-target {
    color: #059669;
}

/* Results Action Buttons */
.quiz-results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-btn-secondary {
    background: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.quiz-btn-secondary:active {
    background: #F8FAFC;
}

/* Exit Confirmation Modal */
.quiz-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}

.quiz-confirm-dialog {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quiz-confirm-dialog h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px 0;
}

.quiz-confirm-dialog p {
    font-size: 13.5px;
    color: #64748B;
    margin: 0 0 20px 0;
    line-height: 1.45;
}

.quiz-confirm-btns {
    display: flex;
    gap: 10px;
}

.quiz-btn-dialog-cancel {
    flex: 1;
    background: #F1F5F9;
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
}

.quiz-btn-dialog-quit {
    flex: 1;
    background: #EF4444;
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    cursor: pointer;
}

/* ==============================================================================
   Native Funds / Wallet Screen (1:1 Exact Match to Reference)
   ============================================================================== */
.funds-page-shell {
    background: #FAF7F2;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.funds-fixed-header {
    flex-shrink: 0;
    z-index: 80;
    background: #FAF7F2;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #EAE4DC;
}

.btn-funds-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #EAE4DC;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(30, 25, 20, 0.03);
    transition: transform 0.1s ease, background 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-funds-back:active {
    transform: scale(0.92);
    background: #F8FAFC;
}

.funds-header-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    margin: 0;
    flex: 1;
    text-align: left;
    padding-left: 6px;
}

.funds-wallet-pill {
    background: #131927;
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 7px 16px;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(19, 25, 39, 0.2);
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.funds-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(84px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: contain;
}

.funds-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.funds-menu-card {
    background: #FFFFFF;
    border: 1.5px solid #EAEFF5;
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.funds-menu-card:active {
    transform: scale(0.98);
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.funds-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* --- Modern Illustrated Icon Badges on Funds Screen --- */
.funds-icon-badge.funds-badge-img {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.funds-menu-card:active .funds-icon-badge.funds-badge-img {
    transform: scale(0.94);
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.funds-img-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1);
}

.funds-menu-card:active .funds-img-icon {
    transform: scale(0.93);
}

.funds-passbook-icon {
    filter: brightness(0) saturate(100%) invert(26%) sepia(92%) saturate(2396%) hue-rotate(218deg) brightness(93%) contrast(97%); /* #1D4ED8 primary blue */
}

.funds-menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.funds-menu-label {
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.funds-menu-sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.funds-menu-arrow {
    display: flex;
    align-items: center;
    color: #94A3B8;
    flex-shrink: 0;
}

/* ==============================================================================
   Native Deposit Screen (1:1 Exact Match to Reference)
   ============================================================================== */
.deposit-page-shell {
    background: #FAF7F2;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.deposit-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 20px;
    overscroll-behavior-y: contain;
}

/* --- Banded Account Summary Card --- */
.deposit-account-card {
    background: #EA8E00;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(234, 142, 0, 0.22);
    margin-bottom: 24px;
}

.account-card-top {
    padding: 16px 14px 12px;
    text-align: center;
    color: #FFFFFF;
}

.account-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 3px;
    letter-spacing: -0.1px;
}

.account-user-phone {
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.account-card-band {
    background: #000000;
    padding: 12px 14px;
    text-align: center;
    color: #FFFFFF;
}

.account-balance-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
    letter-spacing: 0.1px;
}

.account-balance-amount {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.2px;
}

.account-card-bottom-lip {
    height: 12px;
    background: #EA8E00;
}

/* --- Enter Amount Section --- */
.deposit-amount-section {
    text-align: center;
    margin-bottom: 24px;
}

.amount-section-label {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

.amount-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.amount-currency-symbol {
    font-size: 38px;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
}

.deposit-amount-input {
    font-size: 46px;
    font-weight: 900;
    color: #0F172A;
    caret-color: #EA8E00;
    border: none;
    outline: none;
    background: transparent;
    text-align: left;
    min-width: 60px;
    width: auto;
    max-width: 280px;
    padding: 0;
    margin: 0;
    font-family: inherit;
    -moz-appearance: textfield;
}

.deposit-amount-input::placeholder {
    color: #CBD5E1;
    font-weight: 800;
}

.deposit-amount-input::-webkit-outer-spin-button,
.deposit-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-limit-hint {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    margin-top: 8px;
    letter-spacing: 0.2px;
}

/* --- Quick Selection Pills Grid (2x3) --- */
.deposit-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.quick-amt-btn {
    height: 48px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #0F172A;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
}

.quick-amt-btn:active {
    transform: scale(0.95);
}

.quick-amt-btn.active {
    border-color: #EA8E00;
    background: #FFF7ED;
    color: #EA8E00;
    box-shadow: 0 0 0 1px #EA8E00;
}

/* --- Fixed Bottom Action Button --- */
.deposit-fixed-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 50;
}

.btn-deposit-action {
    width: 100%;
    height: 50px;
    border-radius: 9999px;
    background: #EA8E00;
    color: #FFFFFF;
    font-size: 16.5px;
    font-weight: 800;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 142, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-deposit-action:active {
    transform: scale(0.98);
    opacity: 0.92;
}

/* --- Bank Management Segmented Toggle & Forms --- */
.bank-toggle-container {
    padding: 12px 16px 14px;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
}

.segmented-pill-control {
    display: flex;
    background: #F1F5F9;
    border-radius: 9999px;
    padding: 4px;
    position: relative;
    user-select: none;
    gap: 4px;
}

.segmented-pill-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #64748B;
    border: none;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
}

.segmented-pill-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bank-form-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 20px 18px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.bank-field-group {
    margin-bottom: 16px;
}

.bank-field-group:last-of-type {
    margin-bottom: 22px;
}

.bank-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.bank-logo-slot {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1.2px solid #E2E8F0;
    flex-shrink: 0;
    overflow: hidden;
    color: #64748B;
    font-size: 11px;
    font-weight: 800;
}

.bank-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-input-field {
    width: 100%;
    height: 48px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.bank-input-field:focus {
    border-color: #EA8E00;
    box-shadow: 0 0 0 3px rgba(234, 142, 0, 0.12);
}

/* --- Deposit & Withdraw Statement History Cards (1:1 Reference Match) --- */
.history-page-shell {
    background: #FAF7F2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.history-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 20px;
}

.history-card {
    background: #FFFFFF;
    border: 1.2px solid #EAE4DC;
    border-radius: 18px;
    padding: 14px 16px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(30, 25, 20, 0.02);
    transition: transform 0.15s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 110px;
}

.history-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-card-date {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: -0.1px;
}

.history-status-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.history-status-badge.won,
.history-status-badge.success {
    color: #16A34A;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
}

.history-status-badge.lost,
.history-status-badge.failed {
    color: #DC2626;
    background: #FEE2E2;
    border: 1px solid #FECACA;
}

.history-status-badge.pending {
    color: #D97706;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
}

.history-card-mid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 8px 0 10px;
}

.history-card-amount {
    font-size: 26px;
    font-weight: 900;
    color: #D97706;
    letter-spacing: -0.2px;
    line-height: 1;
}

.history-order-wrap {
    text-align: right;
    max-width: 60%;
}

.history-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    margin-bottom: 3px;
}

.history-order-id {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    word-break: break-all;
    letter-spacing: -0.2px;
}

.history-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 8px 0 10px;
}

.history-card-bottom {
    display: flex;
    flex-direction: column;
}

.history-request-type {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
}

/* --- History Bottom Docked Pagination --- */
.history-pagination-dock {
    flex-shrink: 0;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.history-pagination-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1.2px solid #E2E8F0;
    border-radius: 9999px;
    padding: 4px 6px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.pagination-btn:active {
    background: #F1F5F9;
    color: #0F172A;
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-indicator {
    padding: 4px 14px;
    border-radius: 9999px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

/* --- Modern, Minimal & Professional Passbook & Financial Ledger UI --- */
.passbook-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 100px;
}

/* Minimal Hero Balance & Cashflow Card */
.passbook-hero-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 18px;
    padding: 16px 18px;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    margin-bottom: 12px;
}

.passbook-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.passbook-hero-label {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.passbook-hero-balance {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.passbook-hero-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
}

.passbook-hero-cashflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cashflow-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cashflow-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cashflow-icon-wrap img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    display: block;
}

.cashflow-data {
    display: flex;
    flex-direction: column;
}

.cashflow-label {
    font-size: 10.5px;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.2;
}

.cashflow-val {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.cashflow-val.credit {
    color: #4ADE80;
}

.cashflow-val.debit {
    color: #F87171;
}

.cashflow-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 10px;
}

/* Instant Filter Chips Bar */
.passbook-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.passbook-filter-bar::-webkit-scrollbar {
    display: none;
}

.passbook-filter-chip {
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1.2px solid #E2E8F0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.passbook-filter-chip.active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Stream Card & Items */
.passbook-stream-card {
    background: #FFFFFF;
    border: 1.2px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.passbook-stream-row {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.passbook-stream-row:last-child {
    border-bottom: none;
}

.passbook-stream-row:active {
    background-color: #F8FAFC;
}

/* Category Circular Badges */
.passbook-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.passbook-icon-badge.cat-bid {
    background: #EEF2FF;
    color: #4F46E5;
}

.passbook-icon-badge.cat-win {
    background: #DCFCE7;
    color: #16A34A;
}

.passbook-icon-badge.cat-deposit {
    background: #ECFDF5;
    color: #059669;
}

.passbook-icon-badge.cat-withdraw {
    background: #FEF3C7;
    color: #D97706;
}

.passbook-icon-badge.cat-refund {
    background: #E0F2FE;
    color: #0284C7;
}

/* Description Info */
.passbook-stream-info {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.passbook-stream-heading {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passbook-stream-sub {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passbook-stream-date {
    font-size: 11px;
    font-weight: 500;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.passbook-stream-pill {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.passbook-stream-pill.pending {
    background: #FEF3C7;
    color: #D97706;
}

.passbook-stream-pill.failed {
    background: #FEE2E2;
    color: #B91C1C;
}

/* Financials Column */
.passbook-stream-financials {
    text-align: right;
    flex-shrink: 0;
}

.passbook-stream-amount {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin-bottom: 2px;
}

.passbook-stream-amount.credit {
    color: #16A34A;
}

.passbook-stream-amount.debit {
    color: #DC2626;
}

.passbook-stream-bal {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.2;
}

/* Transparent Receipt Details Bottom Sheet */
.tx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tx-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.tx-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #FFFFFF;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    padding: 12px 20px 24px;
    transform: translateY(105%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tx-modal-sheet.open {
    transform: translateY(0);
}

.tx-sheet-handle-bar {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
}

.tx-sheet-handle {
    width: 38px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 9999px;
}

.tx-sheet-header {
    text-align: center;
    padding: 6px 0 16px;
    border-bottom: 1px solid #F1F5F9;
}

.tx-sheet-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.tx-sheet-amount.credit {
    color: #16A34A;
}

.tx-sheet-amount.debit {
    color: #DC2626;
}

.tx-sheet-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tx-sheet-status-pill.success {
    background: #DCFCE7;
    color: #15803D;
}

.tx-sheet-status-pill.pending {
    background: #FEF3C7;
    color: #D97706;
}

.tx-sheet-status-pill.failed {
    background: #FEE2E2;
    color: #B91C1C;
}

.tx-sheet-table {
    padding: 14px 0 6px;
}

.tx-sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #F1F5F9;
}

.tx-sheet-row:last-child {
    border-bottom: none;
}

.tx-sheet-row.highlight {
    background: #F8FAFC;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 4px;
    border-bottom: none;
}

.tx-sheet-label {
    color: #64748B;
    font-weight: 500;
}

.tx-sheet-val {
    color: #0F172A;
    font-weight: 600;
    text-align: right;
    max-width: 65%;
    word-break: break-word;
}

.tx-sheet-val.strong {
    font-weight: 700;
}

.tx-sheet-val.mono {
    font-family: monospace;
    font-size: 12px;
}

.tx-sheet-footer {
    margin-top: 16px;
}

.btn-tx-sheet-close {
    width: 100%;
    padding: 12px;
    background: #F1F5F9;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-tx-sheet-close:active {
    background: #E2E8F0;
}

/* Empty State */
.passbook-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 40px 20px;
    text-align: center;
}

.passbook-empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFF7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.passbook-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.passbook-empty-desc {
    font-size: 13px;
    color: #64748B;
    max-width: 260px;
    line-height: 1.4;
}

/* Backward Compatibility classes */
.passbook-table-card {
    background: #FFFFFF;
    border: 1.2px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
}

.passbook-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-bottom: 1px solid #F1F5F9;
}

.passbook-row-desc {
    flex: 2;
    min-width: 0;
    padding-right: 8px;
}

.passbook-entry-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
}

.passbook-entry-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.passbook-entry-meta {
    font-size: 10.5px;
    color: #94A3B8;
    display: flex;
    gap: 6px;
}

.passbook-status-pill {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
}

.passbook-status-pill.pending {
    background: #FEF3C7;
    color: #D97706;
}

.passbook-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.passbook-type-badge.credit {
    background: #DCFCE7;
    color: #15803D;
}

.passbook-type-badge.debit {
    background: #FEE2E2;
    color: #B91C1C;
}

.passbook-row-points {
    flex: 1;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
}

.passbook-row-points.credit {
    color: #16A34A;
}

.passbook-row-points.debit {
    color: #DC2626;
}

.passbook-row-balance {
    flex: 1;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

/* Subtle State Preview Switcher */
.passbook-preview-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 14px;
}

.preview-switch-btn {
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    text-decoration: none;
    transition: all 0.15s ease;
}

.preview-switch-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* ==============================================================================
   Game Result History Screen (1:1 Reference Match: Date Filter + Results Rows)
   ============================================================================== */
.history-results-page-shell {
    background: #FAF7F2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-results-header {
    justify-content: flex-start;
    padding: 10px 16px;
    background: #FAF7F2;
    border-bottom: 1px solid #EAE4DC;
    gap: 12px;
}

.date-selector-container {
    padding: 12px 14px 10px;
    background: transparent;
    flex-shrink: 0;
}

.date-selector-card {
    background: #FFFFFF;
    border: 1.5px solid #EAEFF5;
    border-radius: 18px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.date-label-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.date-label-text {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.date-stepper-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.date-nav-chevron {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.date-nav-chevron:active {
    background: #F1F5F9;
}

.date-pill-wrapper {
    position: relative;
    cursor: pointer;
}

.date-pill-display {
    border: 1.5px solid #FDBA74;
    background: #FFFDF8;
    color: #9A3412;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    padding: 5px 14px;
    border-radius: 9999px;
    white-space: nowrap;
    text-align: center;
    min-width: 100px;
}

.date-picker-native-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.game-results-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 100px;
}

.game-results-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.market-result-row-card {
    background: #FFFFFF;
    border: 1.5px solid #EAEFF5;
    border-radius: 14px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    -webkit-tap-highlight-color: transparent;
    content-visibility: auto;
    contain-intrinsic-size: auto 54px;
}

.market-name-label {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.market-result-display-val {
    font-size: 15px;
    font-weight: 800;
    color: #D97706;
    letter-spacing: 0.6px;
    font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   Charts Directory Screen (1:1 Reference Match: JODI & PANA Pills)
   ============================================================================== */
.charts-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 calc(84px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF;
}

.charts-market-list {
    display: flex;
    flex-direction: column;
}

.charts-market-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.12s ease;
    gap: 12px;
}

.charts-market-row:active {
    background-color: #F8FAFC;
}

.charts-market-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.15px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.charts-buttons-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-chart-pill {
    background: #EA8E00;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 7px 20px;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    box-shadow: 0 2px 6px rgba(234, 142, 0, 0.28);
    transition: transform 0.12s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-chart-pill:active {
    transform: scale(0.93);
    background: #D97706;
    box-shadow: 0 1px 3px rgba(234, 142, 0, 0.2);
}

/* --- Segmented Chart Tab Switcher (Jodi Chart / Pana Chart) --- */
.chart-tab-switcher {
    display: flex;
    background: #F1F5F9;
    border-radius: 9999px;
    padding: 4px;
    margin: 12px 14px 8px;
    flex-shrink: 0;
}

.chart-tab-btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.chart-tab-btn.active {
    background: #EA8E00;
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(234, 142, 0, 0.3);
}

/* --- Historical Performance Chart Table (1:1 Reference Match) --- */
.chart-table-wrap {
    margin: 4px 14px 30px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13px;
    table-layout: fixed;
}

.chart-table thead tr {
    background: #FFFFFF;
    border-bottom: 1.5px solid #E2E8F0;
}

.chart-table th {
    padding: 12px 2px;
    font-size: 12.5px;
    font-weight: 800;
    color: #0F172A;
    border-right: 1px solid #F1F5F9;
}

.chart-table th:last-child {
    border-right: none;
}

.chart-table th.th-date {
    width: 76px;
}

.chart-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
}

.chart-table tbody tr:last-child {
    border-bottom: none;
}

.chart-table td {
    padding: 10px 2px;
    border-right: 1px solid #F1F5F9;
    vertical-align: middle;
}

.chart-table td:last-child {
    border-right: none;
}

.chart-table td.td-date {
    font-size: 10px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    background: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.week-date-line {
    white-space: nowrap;
}

.week-date-dash {
    color: #94A3B8;
    font-size: 9px;
    margin: -1px 0;
}

.chart-table td.td-day {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.12s ease;
    border: 1px solid #EAEFF5;
    padding: 8px 1px;
}

/* Red Jodi Cell (Matches 1:1 with Screenshot: Light Red/Pink Background + Red Bold Numbers) */
.chart-table td.td-day.is-red-jodi {
    background: #FFF1F2 !important;
}

.chart-jodi-num {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

.is-red-jodi .chart-jodi-num {
    color: #DC2626 !important;
    font-weight: 900;
}

/* Authentic Pana View (1:1 Reference Match: Prominent, Crisp, High-Contrast Typography) */
.chart-pana-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.chart-pana-view .pana-open,
.chart-pana-view .pana-close {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
    font-family: inherit;
    line-height: 1.1;
}

.chart-pana-view .pana-jodi {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
    font-family: inherit;
    line-height: 1.15;
}

/* In Red Jodi Cells, ALL 3 numbers (Open Pana, Jodi, Close Pana) turn Red as in reference screenshot */
.is-red-jodi .chart-pana-view .pana-open,
.is-red-jodi .chart-pana-view .pana-close,
.is-red-jodi .chart-pana-view .pana-jodi {
    color: #DC2626 !important;
    font-weight: 800;
}

/* Future / Unplayed day cells */
.chart-table td.td-day.is-future-day {
    color: #94A3B8 !important;
}

.is-future-day .chart-jodi-num,
.is-future-day .pana-open,
.is-future-day .pana-close,
.is-future-day .pana-jodi {
    color: #94A3B8 !important;
    font-weight: 600 !important;
}

/* Mode Switching between Jodi & Pana (Instant Client-Side & Server-Side Synchronized) */
.view-mode-jodi .chart-jodi-view {
    display: block;
}

.view-mode-jodi .chart-pana-view {
    display: none !important;
}

.view-mode-jodi .chart-table td.td-day {
    padding: 12px 1px;
}

.view-mode-pana .chart-jodi-view {
    display: none !important;
}

.view-mode-pana .chart-pana-view {
    display: flex;
}

.view-mode-pana .chart-table td.td-day {
    padding: 8px 1px;
}

/* ==============================================================================
   React Native Mobile Screen Transitions & Professional Network States
   ============================================================================== */

/* --- Top Luminous Progress Bar (YouTube / Twitter / React Native Style) --- */
.screen-progress-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
    max-width: 440px;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.screen-progress-bar.active {
    opacity: 1;
}

.screen-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #60A5FA 0%, #2563EB 65%, #1D4ED8 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.85), 0 0 4px #60A5FA;
    border-radius: 0 2px 2px 0;
    transition: width 0.22s cubic-bezier(0.12, 0.8, 0.25, 1);
}

/* --- Floating Glassmorphic Indicator for Slow Network / Server Latency --- */
.screen-slow-indicator {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px) translateZ(0);
    background: rgba(15, 23, 42, 0.90);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    z-index: 99998;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
    max-width: 90%;
}

.screen-slow-indicator.visible {
    transform: translateX(-50%) translateY(0) translateZ(0);
    opacity: 1;
}

.slow-indicator-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spinLoader 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

.slow-indicator-text {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Offline / Network Error Floating Toast --- */
.screen-offline-toast {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 16px) + 72px);
    left: 50%;
    transform: translateX(-50%) translateY(90px) translateZ(0);
    width: calc(100% - 32px);
    max-width: 408px;
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.screen-offline-toast.visible {
    transform: translateX(-50%) translateY(0) translateZ(0);
    opacity: 1;
    pointer-events: auto;
}

.offline-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}

.offline-toast-content svg {
    color: #F87171;
    flex-shrink: 0;
}

.offline-toast-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-toast-retry {
    background: var(--primary, #1D4ED8);
    color: #FFFFFF;
    border: none;
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.08s ease;
}

.offline-toast-retry:active {
    background: var(--primary-hover, #1E40AF);
    transform: scale(0.96);
}

/* --- React Native Bottom Tab State Enhancements --- */
.bottom-nav-item.active {
    color: var(--primary, #1D4ED8);
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 800;
    color: var(--primary, #1D4ED8);
    transform: translateY(-0.5px);
}

.bottom-nav-item.active .bottom-nav-icon svg {
    stroke: var(--primary, #1D4ED8);
    stroke-width: 2.3;
    filter: drop-shadow(0 2px 6px rgba(29, 78, 216, 0.35));
}

.bottom-nav-item.active .bottom-nav-icon svg[fill="currentColor"],
.bottom-nav-item.tap-bounce .bottom-nav-icon svg[fill="currentColor"] {
    fill: var(--primary, #1D4ED8);
    stroke: none;
}

/* --- Image Icons in Liquid Bottom Dock --- */
.bottom-nav-icon img.bottom-nav-img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), filter 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Inactive Bids PNG glyph: tinted slate #475569 */
.bottom-nav-icon img.bids-icon-img {
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(32%) sepia(16%) saturate(692%) hue-rotate(176deg) brightness(97%) contrast(90%);
}

/* Active Bids PNG glyph: tinted primary blue #1D4ED8 */
.bottom-nav-item.active .bottom-nav-icon img.bids-icon-img,
.bottom-nav-item.tap-bounce .bottom-nav-icon img.bids-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(26%) sepia(92%) saturate(2396%) hue-rotate(218deg) brightness(93%) contrast(97%) drop-shadow(0 2px 6px rgba(29, 78, 216, 0.35));
    animation: rnTabBounce 0.42s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Inactive Passbook PNG glyph: tinted slate #475569 */
.bottom-nav-icon img.passbook-icon-img {
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(32%) sepia(16%) saturate(692%) hue-rotate(176deg) brightness(97%) contrast(90%);
}

/* Active Passbook PNG glyph: tinted primary blue #1D4ED8 */
.bottom-nav-item.active .bottom-nav-icon img.passbook-icon-img,
.bottom-nav-item.tap-bounce .bottom-nav-icon img.passbook-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(26%) sepia(92%) saturate(2396%) hue-rotate(218deg) brightness(93%) contrast(97%) drop-shadow(0 2px 6px rgba(29, 78, 216, 0.35));
    animation: rnTabBounce 0.42s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* WhatsApp PNG icon: vibrant branded icon */
.bottom-nav-icon img.wa-icon-img {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.active .bottom-nav-icon img.wa-icon-img,
.bottom-nav-item.tap-bounce .bottom-nav-icon img.wa-icon-img {
    animation: rnTabBounce 0.42s cubic-bezier(0.25, 1, 0.5, 1) both;
    filter: drop-shadow(0 2px 6px rgba(37, 211, 102, 0.45));
}

/* Passbook Transaction Stream Badges */
.passbook-badge-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.passbook-icon-badge.cat-bid .passbook-badge-img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(87%) saturate(3015%) hue-rotate(236deg) brightness(91%) contrast(97%); /* #4F46E5 indigo */
}

.bottom-nav-center-btn.active .center-btn-circle.liquid-orb {
    box-shadow:
        0 0 0 3px rgba(29, 78, 216, 0.38),
        0 8px 24px rgba(250, 107, 0, 0.48),
        inset 0 2px 2px rgba(255, 255, 255, 0.9);
}

/* Native Spring Bounce Animation for Tab Icons */
@keyframes rnTabBounce {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.85);
    }

    55% {
        transform: scale(1.16);
    }

    80% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1.06);
    }
}

.bottom-nav-item.tap-bounce .bottom-nav-icon svg {
    animation: rnTabBounce 0.42s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* --- View Transitions API (Modern Android WebView / Chromium / iOS Safari 18+) --- */
::view-transition-old(root) {
    animation: 120ms ease-out both screenViewFadeOut;
}

::view-transition-new(root) {
    animation: 160ms cubic-bezier(0.16, 1, 0.3, 1) both screenViewFadeIn;
}

@keyframes screenViewFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.92;
        transform: scale(0.99);
    }
}

@keyframes screenViewFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback Screen Cross-Fade for legacy engines */
.screen-content-dimmed {
    opacity: 0.72;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.screen-fade-enter {
    animation: screenEnterAnim 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenEnterAnim {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
   Core Game Selection Grid & Cards (Reference 1:1 Match)
   ------------------------------------------------------------- */
.core-game-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    padding: 22px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: transform 0.14s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.14s ease, border-color 0.14s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Game Modes Selection Screen Casino Background & Glassmorphism */
.game-modes-shell-bg {
    background-color: #0F172A;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.68) 100%),
        url('/assets/images/game-selection-bg.jpg');
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.68) 100%),
        image-set(url('/assets/images/game-selection-bg.webp') type("image/webp"), url('/assets/images/game-selection-bg.jpg') type("image/jpeg"));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: calc(100vh - 54px);
}

.core-game-badge picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-modes-shell-bg .core-game-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.game-modes-shell-bg .core-game-card:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.game-modes-shell-bg .core-game-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.game-modes-shell-bg .core-game-card.disabled-game-card {
    background: rgba(248, 250, 252, 0.82);
    border-color: rgba(226, 232, 240, 0.6);
}

.core-game-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    border-color: #CBD5E1;
}

.core-game-card.span-full {
    grid-column: 1 / -1;
}

.core-game-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary, #1D4ED8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    flex-shrink: 0;
}

.core-game-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.14s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.core-game-card:active .core-game-icon-img {
    transform: scale(0.92);
}

.core-game-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

/* ==============================================================================
   Enterprise Shimmer Skeleton Loading System (Phase 2 Instant Shells)
   - High Performance: Pure CSS background-position animation with will-change
   - Zero Layout Shifts (Matches exact heights, radii, and paddings of real components)
   - Supports prefers-reduced-motion
   ============================================================================== */

@keyframes shimmerAnim {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            #F1F5F9 0%,
            #E2E8F0 50%,
            #F1F5F9 100%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.4s ease-in-out infinite;
    will-change: background-position;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none;
        background: #F1F5F9;
    }
}

/* Skeleton Atomic Primitives */
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: inherit;
}

.skeleton-line.sm {
    height: 9px;
    border-radius: 5px;
}

.skeleton-line.md {
    height: 14px;
    border-radius: 7px;
}

.skeleton-line.lg {
    height: 18px;
    border-radius: 9px;
}

.skeleton-line.xl {
    height: 24px;
    border-radius: 10px;
}

.skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-pill {
    height: 26px;
    border-radius: 9999px;
}

.skeleton-btn {
    height: 48px;
    border-radius: 14px;
}

/* Screen Shell Skeleton Layouts */
.skeleton-market-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

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

.skeleton-market-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.skeleton-market-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #F1F5F9;
}

.skeleton-tx-row {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.skeleton-tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.skeleton-tx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: 70px;
}

.skeleton-hero-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.skeleton-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: hidden;
}

.skeleton-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}


/* ==========================================================================
   NOTHING OS MINIMALIST DESIGN SYSTEM (SETTINGS, SECURITY, NOTIFICATIONS)
   Monochrome • Grouped Squircles • High Contrast • Tactile Transitions
   ========================================================================== */

.nothing-settings-shell {
    background-color: #FAF7F2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nothing-header {
    background: #FAF7F2 !important;
    border-bottom: 1px solid #EAE4DC !important;
}

.nothing-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
}

.nothing-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 100px 16px;
}

/* Hero Profile Card */
.nothing-hero-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 22px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.nothing-hero-profile:active {
    transform: scale(0.985);
    border-color: #CBD5E1;
}

.nothing-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #0F172A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nothing-avatar-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nothing-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
}

.nothing-profile-info {
    flex: 1;
    min-width: 0;
}

.nothing-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.nothing-profile-name {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nothing-badge-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.nothing-profile-sub {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nothing-chevron {
    color: #94A3B8;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Section Labels */
.nothing-section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 6px 8px 6px;
}

.nothing-section-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    margin: 18px 6px 8px 6px;
}

.nothing-section-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    background: #E2E8F0;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Grouped Squircle Containers */
.nothing-group-box {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    margin-bottom: 14px;
}

/* Item Rows */
.nothing-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    text-decoration: none;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.15s ease;
}

.nothing-item-row:last-child {
    border-bottom: none;
}

.nothing-item-row:active {
    background-color: #F8FAFC;
}

.nothing-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #F1F5F9;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nothing-item-text {
    flex: 1;
    min-width: 0;
}

.nothing-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
    line-height: 1.25;
}

.nothing-item-sub {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.35;
}

/* Danger / Logout Row */
.nothing-logout-row:active {
    background-color: #FEF2F2;
}

.logout-badge {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.logout-text {
    color: #DC2626 !important;
}

/* Nothing OS Footers */
.nothing-footer {
    text-align: center;
    padding: 30px 16px 20px 16px;
}

.nothing-matrix-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-bottom: 4px;
}

.nothing-sub-tag {
    font-size: 11.5px;
    font-weight: 500;
    color: #CBD5E1;
}

/* Form Boxes & Controls */
.nothing-form-box {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 22px;
    padding: 20px 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    margin-bottom: 14px;
}

.nothing-form-group {
    margin-bottom: 18px;
}

.nothing-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
    margin-bottom: 6px;
}

.nothing-label-hint {
    font-size: 11px;
    font-weight: 500;
    color: #94A3B8;
    text-transform: none;
    letter-spacing: normal;
}

.nothing-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nothing-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.nothing-phone-prefix {
    position: absolute;
    left: 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    pointer-events: none;
}

.nothing-text-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nothing-text-input.has-prefix {
    padding-left: 50px !important;
}

.nothing-text-input.has-toggle {
    padding-right: 46px !important;
}

.nothing-text-input:focus {
    border-color: #0F172A;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.nothing-field-note {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    margin-top: 6px;
    line-height: 1.35;
}

.nothing-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nothing-eye-btn:hover {
    color: #0F172A;
}

/* Action Buttons */
.nothing-action-btn {
    width: 100%;
    height: 50px;
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.nothing-action-btn:active {
    transform: scale(0.98);
    background-color: #000000;
}

.nothing-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nothing-secondary-btn {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nothing-secondary-btn:active {
    background: #F1F5F9;
    border-color: #94A3B8;
}

/* Feedback Banners */
.nothing-feedback-banner {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.35;
}

.nothing-feedback-banner.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.nothing-feedback-banner.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Security Screen Specifics */
.nothing-security-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.security-hero-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ECFDF5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-hero-content {
    flex: 1;
    min-width: 0;
}

.security-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.security-hero-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.35;
}

/* Device Row */
.nothing-device-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.nothing-device-row:last-child {
    border-bottom: none;
}

.nothing-device-row.is-current-device {
    background: #F8FAFC;
}

.nothing-device-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0F172A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nothing-device-info {
    flex: 1;
    min-width: 0;
}

.device-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.device-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-current-badge {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.device-meta {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.dot-separator {
    color: #CBD5E1;
}

.device-time {
    font-size: 11.5px;
    font-weight: 500;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nothing-security-caption {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Informational Cards */
.nothing-card-info {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.info-row {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-bullet {
    width: 5px;
    height: 5px;
    background: #0F172A;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Notification Screen Specifics */
.nothing-notif-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.notif-hero-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-hero-content {
    flex: 1;
    min-width: 0;
}

.notif-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.notif-hero-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.35;
}

.nothing-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.nothing-toggle-row:last-child {
    border-bottom: none;
}

.nothing-channel-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: #94A3B8;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
    margin-top: 5px;
}

/* Nothing OS iOS / Android Custom Toggle Switch */
.nothing-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.nothing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nothing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.nothing-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.nothing-switch input:checked + .nothing-slider {
    background-color: #0F172A;
}

.nothing-switch input:checked + .nothing-slider:before {
    transform: translateX(20px);
}

.nothing-save-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Game Rates Screen Specifics */
.nothing-rates-hero {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.rates-hero-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 3px 8px;
    margin-bottom: 10px;
}

.rates-hero-title {
    font-size: 19px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.rates-hero-desc {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.4;
}

.nothing-rates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .nothing-rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nothing-rate-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rate-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rate-name-col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.rate-format-name {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.rate-payout-chip {
    font-size: 11.5px;
    font-weight: 800;
    color: #059669;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    padding: 2px 8px;
}

.rate-card-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 12px 0;
}

.rate-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.rate-ratio-value {
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.rate-sample-example {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

/* ==============================================================================
   Enterprise Native App Touch & Press Micro-Physics
   ============================================================================== */
button:active, 
.market-card:active, 
.core-game-card:active, 
.bottom-nav-item:active, 
.bottom-nav-center-btn:active, 
.action-card-btn:active, 
.digit-entry-pill:active, 
.quick-amt-btn:active, 
.drawer-nav-item:active,
.btn-funds-back:active,
.header-refresh-btn:active {
    transform: scale(0.972);
    transition: transform 0.08s cubic-bezier(0.2, 0, 0, 1);
}

/* ==============================================================================
   Enterprise Native Bottom Sheet Dialog & Confirm Modal (iOS / Android 15 style)
   ============================================================================== */
.native-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.native-confirm-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.native-confirm-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.native-confirm-modal.active {
    transform: translateX(-50%) translateY(0);
}

.native-confirm-drag-pill {
    width: 38px;
    height: 4.5px;
    border-radius: 9999px;
    background: #CBD5E1;
    margin-bottom: 16px;
}

.native-confirm-header {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.native-confirm-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    margin: 0;
}

.native-confirm-body {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.native-confirm-message {
    font-size: 14.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.45;
    margin: 0;
}

.native-confirm-actions {
    width: 100%;
    display: flex;
    gap: 12px;
}

.native-confirm-btn {
    flex: 1;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
    text-align: center;
}

.native-confirm-btn.cancel {
    background: #F1F5F9;
    color: #475569;
}

.native-confirm-btn.cancel:active {
    background: #E2E8F0;
    transform: scale(0.97);
}

.native-confirm-btn.confirm {
    background: #1D4ED8;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.native-confirm-btn.confirm:active {
    transform: scale(0.97);
}

.native-confirm-btn.confirm.destructive {
    background: #DC2626;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
