/* ==============================================================================
   Dpboss Mobile-First 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;
}

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;
    background: #FFFFFF;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

/* Inside real Android WebView or phones under 440px, fill edge-to-edge */
@media (max-width: 440px) {
    .mobile-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}

.mobile-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==============================================================================
   Modern Minimalist Auth Screens (IME-Responsive & Hardened)
   ============================================================================== */

body:has(.auth-page),
.mobile-wrapper:has(.auth-page) {
    background-color: #071224;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #071224;
    background-image: 
        radial-gradient(circle at 85% 12%, rgba(20, 48, 86, 0.6) 0%, rgba(20, 48, 86, 0) 50%),
        radial-gradient(circle at 10% 25%, rgba(16, 40, 74, 0.5) 0%, rgba(16, 40, 74, 0) 45%),
        radial-gradient(circle at 50% 90%, rgba(20, 45, 80, 0.6) 0%, rgba(20, 45, 80, 0) 55%);
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 24px)) 16px max(24px, env(safe-area-inset-bottom, 24px));
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Background Ambient Bubbles */
.auth-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-decor-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 58, 102, 0.4) 0%, rgba(15, 35, 65, 0.15) 65%, transparent 100%);
}

.bubble-top-right {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -100px;
}

.bubble-mid-left {
    width: 280px;
    height: 280px;
    top: 140px;
    left: -120px;
}

.bubble-bottom {
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
}

/* Auth Shell: Centered naturally, collapses gracefully when IME keyboard opens */
.auth-shell {
    width: 100%;
    max-width: 410px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Brand Header */
.auth-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 22px 0;
}

.auth-logo-tile {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #091629;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.auth-brand-title {
    margin-top: 14px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auth-sparkle {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1;
}

/* Clean Auth Card */
.auth-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 32px 24px 28px 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

/* Auth Heading */
.auth-heading {
    margin-bottom: 22px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.5px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
    line-height: 1.45;
}

.auth-link-edit {
    color: #0E254A;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    font-size: 13px;
}

.auth-link-edit:hover {
    text-decoration: underline;
}

/* Flash Feedback Alerts */
.auth-alert,
.flash-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    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;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.auth-alert.success,
.flash-alert.success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.auth-alert.info,
.flash-alert.info {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Form Layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label,
.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.1px;
}

/* Responsive Input Container (54px Touch Target with 15px/16px Font Size) */
.auth-input-wrapper,
.input-pill-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 0 16px;
    gap: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.auth-input-wrapper:focus-within,
.input-pill-wrap:focus-within {
    border-color: #0E254A;
    box-shadow: 0 0 0 3px rgba(14, 37, 74, 0.1);
}

.auth-input-icon {
    flex-shrink: 0;
    color: #0F172A;
}

.auth-phone-prefix {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    padding-right: 10px;
    margin-right: 6px;
    border-right: 1.5px solid #E2E8F0;
    flex-shrink: 0;
    line-height: 1;
}

.auth-input-wrapper input,
.input-pill-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #0F172A;
    width: 100%;
    min-width: 0;
    padding: 0;
    -webkit-appearance: none;
}

.auth-input-wrapper input::placeholder,
.input-pill-wrap input::placeholder {
    color: #64748B;
    font-size: 14.5px;
    font-weight: 500;
}

/* Eye Visibility Toggle Button */
.btn-toggle-eye {
    background: none;
    border: none;
    padding: 8px;
    margin-right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.btn-toggle-eye:hover,
.btn-toggle-eye:active {
    color: #0F172A;
}

/* Forgot Password Row */
.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 6px;
}

.auth-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0F172A;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.auth-forgot-link:hover {
    opacity: 0.8;
}

/* Primary Action Dark Button */
.auth-btn-dark,
.auth-btn-primary,
.btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    background: #0E254A;
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(14, 37, 74, 0.35);
    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-dark:active,
.auth-btn-primary:active,
.btn-primary-action:active {
    transform: scale(0.98);
    opacity: 0.94;
    box-shadow: 0 2px 8px rgba(14, 37, 74, 0.22);
}

.auth-btn-dark:disabled,
.auth-btn-primary:disabled,
.btn-primary-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Switch Prompt Text */
.auth-switch-text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin: 18px 0 20px 0;
    text-align: center;
}

.auth-switch-text a {
    color: #0F172A;
    font-weight: 800;
    text-decoration: none;
    margin-left: 3px;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

/* Contact Support Full-Width Vibrant Green Button */
.auth-btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: #10B981;
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
    text-decoration: none;
    transition: transform 0.08s ease, opacity 0.08s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-btn-support:active {
    transform: scale(0.98);
    opacity: 0.94;
}

.auth-btn-support svg {
    flex-shrink: 0;
}

/* Bottom Navigation & WhatsApp Chip (legacy compatibility) */
.auth-footer-nav {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.auth-support-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 9999px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: background 0.15s, color 0.15s;
}

.auth-support-chip svg {
    color: #22C55E;
    flex-shrink: 0;
}

/* Forgot Password Modal */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 36px);
    max-width: 380px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 999;
    box-sizing: border-box;
    animation: authModalFade 0.2s ease-out;
}

@keyframes authModalFade {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auth-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.auth-modal-close {
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-body p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.auth-modal-body .auth-btn-support {
    height: 48px;
    font-size: 14.5px;
}

/* ==============================================================================
   OTP Verification Grid (IME, Clipboard & Auto-Advance Ready)
   ============================================================================== */

.auth-otp-grid,
.otp-inputs-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
}

.auth-otp-cell,
.otp-box {
    width: 58px;
    height: 60px;
    max-width: 20vw;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    caret-color: var(--primary, #FF7E00);
    transition: all 0.15s ease;
    box-sizing: border-box;
    -webkit-user-select: text;
    user-select: text;
}

.auth-otp-cell:focus,
.otp-box:focus {
    border-color: var(--primary, #FF7E00);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.16);
    transform: translateY(-1px);
}

.auth-otp-cell.filled,
.otp-box.filled {
    border-color: #94A3B8;
    background: #FFFFFF;
}

.auth-resend-row,
.resend-timer-text {
    text-align: center;
    font-size: 13.5px;
    color: #64748B;
    margin-bottom: 20px;
    min-height: 20px;
}

.auth-link-resend,
.resend-link {
    color: var(--primary, #FF7E00);
    font-weight: 700;
    text-decoration: none;
}

.auth-link-resend:hover,
.resend-link: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;
}

/* Legacy & Fallback Layout Hooks */
.auth-header {
    text-align: center;
    margin-bottom: 16px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}


/* ==============================================================================
   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 (Dark Navy Theme Matching NS Kalyan Reference 1:1) --- */
.app-fixed-header {
    flex-shrink: 0;
    z-index: 80;
    background: #08172E;
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-notif-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: opacity 0.15s ease;
}

.header-notif-btn:active {
    opacity: 0.75;
}

.header-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #FFFFFF;
}

.header-balance-num {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.header-rupee-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

/* Left Brand Capsule (Hamburger + Mascot Logo + Brand Name) */
.brand-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #E2E8F0;
    border-radius: 9999px;
    padding: 4px 14px 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-drawer-toggle {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 6px;
    color: #FFFFFF;
}

.nav-drawer-toggle:active {
    opacity: 0.7;
}

.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 (White scrolling text on dark navy background) */
.notice-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 0 2px;
    background: transparent;
}

.notice-ticker-content {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.1px;
    display: block;
    opacity: 0.95;
}

/* Quick Action Card (Add Fund + Withdrawal + Full WhatsApp on Pure White Background) */
.sheet-pinned-actions {
    flex-shrink: 0;
    background: #FFFFFF;
    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(0, 0, 0, 0.03);
    border: 1.5px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-action-primary {
    background: linear-gradient(180deg, #FFA012 0%, #FA6B00 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: 0 4px 14px rgba(250, 107, 0, 0.32);
    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(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(102%);
    backdrop-filter: blur(28px) saturate(190%) contrast(102%);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px 24px 0 0;
    box-shadow:
        0 -8px 28px rgba(15, 23, 42, 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(255, 255, 255, 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;
    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 Amber Glass Core */
    background: radial-gradient(circle at 35% 26%, #FFA012 0%, #FA6B00 58%, #D44E00 100%);
    border: 3.5px solid #FFFFFF;
    box-shadow:
        0 6px 18px rgba(250, 107, 0, 0.38),
        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 White 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: #FFFFFF;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 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 #E2E8F0;
    border-radius: 20px;
    padding: 16px 18px 13px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 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;
    }
}

/* Quiz UI (Quiz Mode) */
.quiz-hero-card {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 22px;
    padding: 24px 20px;
    color: #FFFFFF;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.quiz-hero-card h2 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 6px;
}

.quiz-hero-card p {
    font-size: 13.5px;
    opacity: 0.92;
    line-height: 1.4;
}

.quiz-category-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* ==============================================================================
   Native Funds / Wallet Screen (1:1 Exact Match to Reference)
   ============================================================================== */
.funds-page-shell {
    background: #FFFFFF;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.funds-fixed-header {
    flex-shrink: 0;
    z-index: 80;
    background: #08172E;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-funds-back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-funds-back svg {
    stroke: #FFFFFF !important;
}

.btn-funds-back:active {
    opacity: 0.7;
}

.funds-header-title {
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    margin: 0;
    flex: 1;
    text-align: left;
    text-transform: uppercase;
}
    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, #FFA012 0%, #FA6B00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(250, 107, 0, 0.28);
}

.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;
}

/* ==============================================================================
   NS Kalyan Add Funds / Deposit Screen (1:1 Reference Match)
   - Dark Navy Header with Back Arrow, Title "ADD FUNDS", Bell & Balance Pill
   - Pitch Navy Available Balance Card with Wallet Icon and Subtle Red/Pink Glow
   - Amount Input Card with Navy Border
   - 8-Pill Quick Preset Grid (2x4)
   - Centered Pill "SUBMIT" Button
   - Centered "IMPORTANT NOTICE" Card (100% Configurable - Zero Hardcoding)
   ============================================================================== */
.add-funds-page-shell,
.deposit-page-shell {
    background: #F2F4F8;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.add-funds-scroll-container,
.deposit-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(36px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: contain;
}

/* Available Balance Card */
.add-funds-balance-card {
    background: #08172E;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.22), 0 4px 12px rgba(8, 23, 46, 0.35);
}

.balance-card-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-card-info {
    display: flex;
    flex-direction: column;
}

.balance-card-amount {
    font-size: 28px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.balance-card-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Amount Input Card */
.add-funds-input-card {
    background: #FFFFFF;
    border: 1.5px solid #2B5282;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.add-funds-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 19px;
    font-weight: 700;
    color: #0F172A;
    font-family: inherit;
    -moz-appearance: textfield;
}

.add-funds-input::-webkit-outer-spin-button,
.add-funds-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-funds-input::placeholder {
    color: #94A3B8;
    font-weight: 600;
}

/* Quick Preset Pills Grid (2x4) */
.add-funds-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.add-funds-pill-btn {
    background: #FFFFFF;
    border: 1.5px solid #D9E2EC;
    border-radius: 9999px;
    padding: 10px 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: #081E3E;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.add-funds-pill-btn:active,
.add-funds-pill-btn.active {
    background: #081E3E;
    border-color: #081E3E;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(8, 30, 62, 0.2);
}

/* Centered Submit Button */
.add-funds-submit-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-add-funds-submit {
    background: #081E3E;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 13px 48px;
    border-radius: 9999px;
    border: none;
    outline: none;
    cursor: pointer;
    min-width: 170px;
    box-shadow: 0 4px 16px rgba(8, 30, 62, 0.32);
    transition: all 0.15s ease;
}

.btn-add-funds-submit:active {
    transform: scale(0.97);
}

.btn-add-funds-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Important Notice Card */
.add-funds-notice-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1.5px solid #D9E2EC;
    padding: 22px 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.notice-card-header {
    font-size: 16px;
    font-weight: 800;
    color: #081E3E;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: -0.2px;
}

.notice-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.notice-line {
    font-size: 13.5px;
    color: #1E293B;
    line-height: 1.45;
    text-align: center;
}

.notice-line-bold {
    font-weight: 700;
    color: #0F172A;
}

.notice-support-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.notice-support-link:hover {
    text-decoration: underline;
}

/* ==============================================================================
   NS Kalyan Withdraw Screen (1:1 Reference Match)
   - Dark Navy Header with Back Arrow, Title "WITHDRAW", Bell & Balance Pill
   - Pitch Navy Available Balance Card with Wallet Icon and Subtle Red/Pink Glow
   - Withdrawal Method Dropdown Card
   - Enter Amount Card with Wallet Icon
   - Centered Pill "SEND REQUEST" Button
   - 2x2 Grid of Payment Method Shortcut Cards (Bank Details, PhonePe, Google Pay, Paytm)
   - Centered "IMPORTANT NOTICE" Card (100% Configurable - Zero Hardcoding)
   ============================================================================== */
.withdraw-page-shell {
    background: #F2F4F8;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.withdraw-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(36px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: contain;
}

.withdraw-field-group {
    margin-bottom: 16px;
}

.withdraw-field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 2px;
}

.withdraw-select-card {
    background: #FFFFFF;
    border: 1.5px solid #D9E2EC;
    border-radius: 14px;
    padding: 2px 14px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
    transition: border-color 0.15s ease;
}

.withdraw-select-card:focus-within {
    border-color: #2B5282;
}

.withdraw-select-input {
    width: 100%;
    height: 46px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 28px;
}

.withdraw-select-arrow {
    position: absolute;
    right: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.withdraw-input-card {
    background: #FFFFFF;
    border: 1.5px solid #D9E2EC;
    border-radius: 14px;
    padding: 0 14px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
    transition: border-color 0.15s ease;
}

.withdraw-input-card:focus-within {
    border-color: #2B5282;
}

.withdraw-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.withdraw-amount-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    font-family: inherit;
    -moz-appearance: textfield;
}

.withdraw-amount-input::-webkit-outer-spin-button,
.withdraw-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.withdraw-amount-input::placeholder {
    color: #64748B;
    font-weight: 600;
    font-size: 14.5px;
}

.withdraw-submit-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 24px;
}

.btn-withdraw-submit {
    background: #081E3E;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 13px 48px;
    border-radius: 9999px;
    border: none;
    outline: none;
    cursor: pointer;
    min-width: 190px;
    box-shadow: 0 4px 16px rgba(8, 30, 62, 0.32);
    transition: all 0.15s ease;
}

.btn-withdraw-submit:active {
    transform: scale(0.97);
}

.btn-withdraw-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 2x2 Payment Method Shortcut Cards */
.withdraw-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.withdraw-method-card {
    background: #FFFFFF;
    border: 1.5px solid #D9E2EC;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
    transition: all 0.15s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.withdraw-method-card:active,
.withdraw-method-card.active {
    border-color: #081E3E;
    box-shadow: 0 0 0 1px #081E3E, 0 4px 12px rgba(8, 30, 62, 0.08);
}

.method-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg-bank {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #EBF3FA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.withdraw-notice-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1.5px solid #D9E2EC;
    padding: 24px 16px 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
    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: #FAFAFA;
    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 #E2E8F0;
    border-radius: 18px;
    padding: 14px 16px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 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-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: #F8FAFC;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-results-header {
    justify-content: flex-start;
    padding: 10px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    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);
}

/* --- Authentic Matka 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 Progress Bar Disabled --- */
.screen-progress-bar {
    display: none !important;
}

/* --- Middle Screen Professional Multi-Line Loading Overlay --- */
.screen-slow-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 18, 36, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.screen-slow-indicator.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.middle-loader-card {
    background: #0B1728;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 163, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.screen-slow-indicator.visible .middle-loader-card {
    transform: scale(1);
}

/* Dual Ring Orbital Spinner */
.middle-loader-orb {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.middle-loader-ring.outer-ring {
    width: 52px;
    height: 52px;
    border-top-color: #00A3FF;
    border-left-color: #00A3FF;
    animation: orbSpinClockwise 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.middle-loader-ring.inner-ring {
    width: 36px;
    height: 36px;
    border-bottom-color: #FFD700;
    border-right-color: #FFD700;
    animation: orbSpinCounterClockwise 0.7s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.middle-loader-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #00A3FF, #FFD700);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.8);
    animation: orbDotPulse 1.2s ease-in-out infinite;
}

@keyframes orbSpinClockwise {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbSpinCounterClockwise {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes orbDotPulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.middle-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.middle-loader-title {
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.middle-loader-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.45;
    min-height: 20px;
    max-width: 260px;
}

.middle-loader-badge {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #34D399;
    letter-spacing: 0.2px;
}

/* --- 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: #FF7E00;
    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: #E66800;
    transform: scale(0.96);
}

/* --- React Native Bottom Tab State Enhancements --- */
.bottom-nav-item.active {
    color: #FA6B00;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 800;
    color: #FA6B00;
    transform: translateY(-0.5px);
}

.bottom-nav-item.active .bottom-nav-icon svg {
    stroke: #FA6B00;
    stroke-width: 2.3;
    filter: drop-shadow(0 2px 6px rgba(250, 107, 0, 0.35));
}

.bottom-nav-center-btn.active .center-btn-circle.liquid-orb {
    box-shadow:
        0 0 0 3px rgba(250, 107, 0, 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;
}

.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: #FF7A00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
    flex-shrink: 0;
}

.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;
    }
}

@keyframes shimmerAnim {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            #E6EEF7 0%,
            #F6F9FD 35%,
            #DBE5F2 50%,
            #F6F9FD 65%,
            #E6EEF7 100%) !important;
    background-size: 200% 100% !important;
    animation: shimmerAnim 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    will-change: background-position;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none !important;
        background: #E2E8F0 !important;
    }
}

/* 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;
}

/* NS Kalyan Ultra-Smooth Screen Shell Skeleton Layouts */
.skeleton-market-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

.skeleton-market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: #DC2626;
    border-radius: 18px 18px 0 0;
}

.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;
}


/* ==============================================================================
   NS Kalyan Home / Dashboard Redesign (1:1 Reference Match)
   - 2x2 Quick Action Grid (ADD FUND, WITHDRAW, CHAT NOW, CALL NOW)
   - Red Curved Top Accent Market Cards with 4-Bar Signal Chart Icon
   - 5-Item Bottom Navigation with Elevated Dark Navy Floating Home Button
   ============================================================================== */

.kalyan-home-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #F2F4F8;
    overflow: hidden;
    position: relative;
}

.kalyan-home-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom, 0px));
    background-color: #F2F4F8;
}

.kalyan-home-content::-webkit-scrollbar {
    width: 4px;
}

.kalyan-home-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

/* 2x2 Quick Action Buttons Grid */
.home-actions-wrapper {
    margin-bottom: 16px;
}

.home-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-action-btn {
    background: #081E3E;
    border-radius: 9999px;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(8, 30, 62, 0.22);
    transition: transform 0.12s ease, opacity 0.12s ease;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.home-action-btn:active {
    transform: scale(0.97);
    opacity: 0.92;
}

.action-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon-circle.bg-green-accent {
    background: #16A34A;
}

.action-icon-circle.bg-red-accent {
    background: #DC2626;
    color: #FFFFFF;
}

.action-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-green-accent {
    color: #22C55E;
}

.text-white {
    color: #FFFFFF;
}

.action-btn-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Kalyan Markets Container */
.kalyan-markets-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Market Card with Red Curved Top Border */
.kalyan-market-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 90px;
}

.kalyan-market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: #DC2626;
    border-radius: 18px 18px 0 0;
}

/* Left: 4-Bar Signal Chart Squircle Button */
.market-chart-squircle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #EDF2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.market-chart-squircle:active {
    transform: scale(0.92);
    background: #E2E8F0;
}

.signal-bars-svg {
    display: block;
}

/* Center: Market Title, Underscore Result & Timings */
.market-center-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.market-main-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-score-display {
    font-size: 18px;
    font-weight: 800;
    color: #081E3E;
    letter-spacing: 0.8px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.market-schedule-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
    line-height: 1;
}

.schedule-pipe {
    color: #CBD5E1;
}

/* Right: Circular Play Button & Status Label */
.market-play-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
}

.market-circle-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.market-circle-play svg {
    transform: translateX(1.5px);
}

.market-circle-play:active {
    transform: scale(0.92);
}

.play-btn-closed {
    background: #DC2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.play-btn-running {
    background: #16A34A;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.market-state-badge {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    margin-top: 1px;
}

.market-state-badge.status-closed {
    color: #DC2626;
}

.market-state-badge.status-running {
    color: #16A34A;
}

.kalyan-no-markets {
    text-align: center;
    padding: 40px 16px;
    color: #64748B;
    font-size: 14.5px;
    font-weight: 600;
}

/* 5-Item Bottom Navigation Bar */
.kalyan-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 95;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
    align-items: center;
    height: 60px;
    padding: 0 6px;
    position: relative;
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748B;
    height: 100%;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-tab-item:active {
    transform: scale(0.9);
}

.nav-tab-item.is-active {
    color: #081E3E;
    font-weight: 700;
}

.nav-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.center-floating-home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.floating-navy-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #081E3E;
    border: 3.5px solid #FFFFFF;
    box-shadow: 0 4px 16px rgba(8, 30, 62, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-14px);
    transition: transform 0.15s ease;
}

.center-floating-home:active .floating-navy-circle {
    transform: translateY(-11px) scale(0.93);
}

/* Ensure mobile-wrapper backdrop matches when on home view */
.mobile-wrapper:has(.kalyan-home-shell) {
    background-color: #F2F4F8;
}


/* ==============================================================================
   NS Kalyan Market Chart Record Screen (1:1 Reference Match)
   - Dark Navy Header with Back Arrow, 2-Line Title & Wallet Balance
   - Prominent Center Record Title
   - 7-Column Grid with Distinct Blue-Bordered White Capsule Cards
   ============================================================================== */

.chart-page-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #F2F4F8;
    overflow: hidden;
    position: relative;
}

.chart-fixed-header {
    background: #08172E;
    flex-shrink: 0;
    z-index: 80;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.chart-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chart-header-back-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    text-decoration: none;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.chart-header-back-btn:active {
    opacity: 0.75;
}

.chart-header-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.chart-header-market-name {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chart-header-subtitle {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chart-scroll-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 8px 36px;
    background-color: #F2F4F8;
}

.chart-scroll-body::-webkit-scrollbar {
    width: 4px;
}

.chart-scroll-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

.chart-record-heading {
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    color: #081E3E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 16px;
    line-height: 1.3;
}

/* 7-Column Grid of Capsule Cards */
.kalyan-chart-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4.5px;
    width: 100%;
}

.kalyan-chart-card {
    background: #FFFFFF;
    border: 1.5px solid #2B5282;
    border-radius: 12px;
    padding: 6px 2.5px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    min-width: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    content-visibility: auto;
    contain-intrinsic-size: auto 76px;
}

.chart-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.5px;
}

.card-day-name {
    font-size: 10px;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}

.card-date-num {
    font-size: 8px;
    font-weight: 600;
    color: #94A3B8;
    line-height: 1;
    text-align: center;
}

.chart-card-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2px 0;
}

.card-jodi-num {
    font-size: 16.5px;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

.chart-card-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 3px;
    font-size: 7.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.card-pana-open,
.card-pana-close {
    letter-spacing: -0.3px;
    white-space: nowrap;
}

@media (max-width: 370px) {
    .kalyan-chart-grid {
        gap: 3px;
    }

    .kalyan-chart-card {
        padding: 5px 1.5px 4px;
        height: 72px;
        border-radius: 10px;
    }

    .card-day-name {
        font-size: 9px;
    }

    .card-date-num {
        font-size: 7.5px;
    }

    .card-jodi-num {
        font-size: 15px;
    }

    .chart-card-bot {
        font-size: 6.8px;
        padding: 0 1.5px;
    }
}


/* ==============================================================================
   NS Kalyan Funds Management Screen (1:1 Reference Match)
   - Dark Navy Header with Back Arrow, Title, Bell & Balance
   - 2x2 Grid of Navy-Bordered White Cards + 1 Full Width Bottom Card
   - Dynamic 5-Item Bottom Navigation Bar
   ============================================================================== */

.funds-management-shell,
.my-bids-page-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #F2F4F8;
    overflow: hidden;
    position: relative;
}

.funds-kalyan-header {
    background: #08172E;
    flex-shrink: 0;
    z-index: 80;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.funds-header-title-text {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.funds-kalyan-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(92px + env(safe-area-inset-bottom, 0px));
    background-color: #F2F4F8;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.funds-kalyan-content::-webkit-scrollbar {
    width: 4px;
}

.funds-kalyan-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

.funds-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.funds-action-card {
    background: #FFFFFF;
    border: 1.5px solid #2B5282;
    border-radius: 18px;
    padding: 22px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.funds-action-card:active {
    transform: scale(0.97);
}

.funds-action-card.card-full-width {
    width: 100%;
    padding: 24px 16px 22px;
}

.funds-card-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.funds-card-icon-circle.icon-bg-green {
    background: #ECFDF5;
}

.funds-card-icon-circle.icon-bg-red {
    background: #FEF2F2;
}

.funds-card-icon-circle.icon-bg-navy {
    background: #F1F5F9;
}

.funds-card-icon-circle.icon-bg-blue {
    background: #EFF6FF;
}

.funds-card-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #081E3E;
    margin: 0 0 4px;
    line-height: 1.2;
}

.funds-card-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
    line-height: 1.35;
}

/* Ensure bottom nav uses 5 equal columns for fluid active centering */
.bottom-nav-inner {
    grid-template-columns: repeat(5, 1fr) !important;
}


/* ==============================================================================
   NS Kalyan Wallet History / Passbook Screen (1:1 Reference Match)
   - Dark Navy Header with Back Arrow, Title "WALLET HISTORY", Bell & Balance
   - White Card with Ledger Table (Date & Time, Particulars, Prev, Txn Amt, Current)
   - Bottom Navigation with Elevated Dark Navy Circle on Wallet Tab
   ============================================================================== */

.wallet-history-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #F2F4F8;
    overflow: hidden;
    position: relative;
}

.wallet-history-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px calc(92px + env(safe-area-inset-bottom, 0px));
    background-color: #F2F4F8;
}

.wallet-history-content::-webkit-scrollbar {
    width: 4px;
}

.wallet-history-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

.wallet-history-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px 14px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
    border: 1px solid #E2E8F0;
}

.history-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #081E3E;
    padding-bottom: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.col-date {
    width: 25%;
    text-align: left;
}

.col-part {
    width: 31%;
    text-align: left;
}

.col-prev {
    width: 14%;
    text-align: right;
}

.col-amt {
    width: 15%;
    text-align: right;
}

.col-curr {
    width: 15%;
    text-align: right;
}

.history-table-body {
    display: flex;
    flex-direction: column;
}

.history-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 11.5px;
}

.cell-date {
    font-size: 10.5px;
    color: #64748B;
    font-weight: 600;
    line-height: 1.25;
}

.cell-part {
    font-size: 11.5px;
    color: #081E3E;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
}

.cell-num {
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cell-amt {
    font-size: 11.5px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.amt-credit {
    color: #16A34A;
}

.amt-debit {
    color: #DC2626;
}

.history-empty-box {
    padding: 28px 0 20px;
    text-align: center;
}

.history-empty-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #7B8FA9;
    margin: 0;
}

.history-empty-divider {
    border-bottom: 1px solid #EDF2F7;
    margin-top: 28px;
}
