/* Public UI refinements: preserve the established crimson, white and charcoal theme. */
.premium-home { --surface-muted: #f7f7f5; --surface-line: #e8e8e6; }
.premium-home .container { padding-bottom: 24px; }
.premium-home .app-header { box-shadow: 0 2px 12px rgb(45 45 45 / 3%); }
.premium-home .header-icon-btn { width: 44px; min-width: 44px; height: 44px; }
.premium-home .wallet-pill { font: inherit; cursor: pointer; min-height: 44px; }
.premium-home :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--ui-red); outline-offset: 3px; }
.skip-content { position: fixed; top: -80px; left: 12px; z-index: 300000; padding: 12px 18px; background: #fff; color: #cb202d; border: 2px solid currentColor; border-radius: 8px; }
.skip-content:focus { top: 8px; }
#marketExplorerContainer { scroll-margin-top: 80px; }
.premium-home .home-quick-access { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.home-quick-access button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 12px; background: #fff; border: 1px solid var(--surface-line); border-radius: 12px; color: var(--ui-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.home-quick-access i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ui-red); background: var(--ui-soft); font-size: 16px; }
.home-quick-access button:hover { border-color: #e5b8be; background: #fffafa; }
.market-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.market-heading-text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.market-list-heading h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.3px; margin: 0; color: var(--ui-ink); font-weight: 800; }
.market-summary-pill { font-size: 11px; font-weight: 600; color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 10px; display: inline-flex; align-items: center; line-height: 1.3; }
.market-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; height: 38px; min-height: 38px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; }
.market-refresh:disabled { cursor: wait; opacity: 0.7; }
.market-refresh:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.market-load-notice { margin-bottom: 8px; padding: 10px 12px; border: 1px solid #edc9cd; border-radius: 8px; background: #fff5f5; color: #8f2832; font-size: 12px; }
.premium-home .market-explorer-toolbar { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; margin: 4px 0 8px !important; width: 100% !important; }
.premium-home .market-search-box { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.premium-home .market-search-box .search-ico { position: absolute; left: 11px; color: #94a3b8; font-size: 13px; pointer-events: none; }
.premium-home .market-search-input { height: 38px !important; min-height: 38px !important; border-radius: 8px !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; color: #1e293b !important; padding-left: 32px !important; padding-right: 32px !important; font-size: 12.5px !important; box-shadow: none !important; transition: all 0.15s ease !important; width: 100% !important; }
.premium-home .market-search-input:focus { background: #ffffff !important; border-color: #cb202d !important; box-shadow: 0 0 0 2px rgba(203, 32, 45, 0.1) !important; outline: none !important; }
.premium-home .market-search-input::placeholder { color: #94a3b8; font-size: 12px; }
.premium-home .search-clear-btn { position: absolute; right: 4px; background: transparent; border: none; color: #94a3b8; cursor: pointer; min-width: 30px; min-height: 30px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 0; }
.market-search-input::-webkit-search-cancel-button { display: none; }
.premium-home .market-refresh { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; flex-shrink: 0 !important; height: 38px !important; min-height: 38px !important; padding: 0 12px !important; border: 1px solid #e2e8f0 !important; border-radius: 8px !important; background: #fff !important; color: #334155 !important; font: inherit !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.15s ease !important; white-space: nowrap !important; }
.premium-home .market-refresh:disabled { cursor: wait !important; opacity: 0.7 !important; }
.premium-home .market-refresh:hover:not(:disabled) { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
.premium-home .markets-grid {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.premium-home .market-card {
    gap: 6px;
    padding: 12px 14px 0 14px;
    border-radius: 14px;
    border: 1px solid #e8e8e6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.premium-home .market-card.is-open {
    border-left: 3.5px solid #16a34a;
}
.premium-home .market-card.is-closed {
    border-left: 3.5px solid #cbd5e1;
}
.premium-home .market-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.premium-home .market-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}
.premium-home .market-name {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.premium-home .badge-status {
    letter-spacing: 0.3px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 750;
    border-radius: 6px;
    padding: 2.5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.premium-home .badge-status.running {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.premium-home .badge-status.closed {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.premium-home .badge-status.only-close {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.premium-home .market-card-mid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    margin: 0;
    border: 0;
    background: none;
}
.market-result-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.market-result-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.premium-home .market-result {
    font-size: clamp(19px, 2.5vw, 22px);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1.5px;
    line-height: 1.15;
    color: #cb202d;
    min-width: 0;
    overflow-wrap: anywhere;
}
.premium-home .market-schedule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    margin: 3px 0 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    width: fit-content;
}
.premium-home .market-schedule > div {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
}
.premium-home .market-schedule > div + div {
    border-left: 1px solid #e2e8f0;
    padding-left: 8px;
}
.premium-home .market-schedule span {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.premium-home .market-schedule strong {
    font-size: 11.5px;
    color: #1e293b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.premium-home .market-result-action .btn-play {
    flex: 0 0 auto;
    min-width: 88px;
    padding: 0 16px;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 750;
    font-size: 13px;
    background: linear-gradient(135deg, #b71c1c 0%, #cb202d 100%);
    color: #ffffff;
    border: 0;
    box-shadow: 0 3px 10px rgba(203, 32, 45, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .15s ease;
}
.premium-home .market-result-action .btn-play:hover:not(:disabled) {
    background: linear-gradient(135deg, #991b1b 0%, #b71c1c 100%);
    box-shadow: 0 5px 14px rgba(203, 32, 45, 0.4);
    transform: translateY(-1px);
}
.premium-home .market-result-action .btn-play:disabled {
    opacity: 1;
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.premium-home .market-card-bottom {
    margin: 6px -14px 0 -14px;
    padding-top: 0;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.premium-home .market-card-bottom .action-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    display: grid;
}
.premium-home .market-card .btn-chart {
    border: 0;
    background: transparent;
    border-radius: 0;
    min-height: 38px;
    box-shadow: none;
    color: #475569;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s ease, color .15s ease;
}
.premium-home .market-card .btn-chart i {
    color: #cb202d;
    font-size: 12px;
}
.premium-home .market-card .btn-chart + .btn-chart {
    border-left: 1px solid #f1f5f9;
}
.premium-home .market-card .btn-chart:hover:not(:disabled) {
    background: #f1f5f9;
    color: #cb202d;
}
.premium-home .market-card .btn-chart:disabled {
    color: #94a3b8;
    opacity: 1;
    cursor: not-allowed;
    background: transparent;
}
.premium-home .market-card .btn-chart:disabled i {
    color: #94a3b8;
}
.premium-home .win-rates { margin: 18px 0 20px; }
.premium-home .win-rates-intro h2 { font-size: 20px; letter-spacing: -.4px; }
.premium-home .account-card { border-color: var(--surface-line); border-radius: 16px; box-shadow: 0 3px 14px rgb(45 45 45 / 4%); }
.premium-home .account-name { color: var(--ui-ink); letter-spacing: -.3px; }
.premium-home .account-balance-row { background: var(--surface-muted); border: 1px solid var(--surface-line); border-radius: 12px; padding: 16px; }
.premium-home .balance-meta .bal-amount { font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.premium-home .dash-shortcut { min-height: 56px; padding: 4px; gap: 4px; }
.premium-home .modal-container { border-color: var(--surface-line); box-shadow: 0 20px 60px rgb(35 25 25 / 16%); }
.premium-home .modal-header { border-bottom: 1px solid var(--surface-line); padding-bottom: 10px; margin-bottom: 12px; }
.premium-home .modal-title { font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; }
.premium-home .modal-title > i { color: var(--ui-red); margin-right: 5px; }
.premium-home .modal-close-btn { border-radius: 10px; background: var(--surface-muted); color: var(--ui-muted); }
.premium-home .form-group { margin-bottom: 12px; }
.premium-home .form-group label { line-height: 1.5; }
.premium-home .form-input { background: #fff; border-color: #dededa; min-height: 48px; font-size: 16px; }
.premium-home .form-input::placeholder { color: #858580; font-weight: 400; }
.premium-home .form-input:disabled { background: var(--surface-muted); color: var(--ui-muted); }
.premium-home .form-btn { min-height: 48px; border-radius: 10px; }
.premium-home .wallet-balance-box { background: var(--surface-muted); border-color: var(--surface-line); padding: 16px; border-radius: 12px; }
.premium-home .wallet-balance-box .bal-amount { font-size: 34px; color: var(--ui-ink); }
.premium-home .wallet-menu-links { border: 1px solid var(--surface-line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.premium-home .wallet-menu-links .w-link { min-height: 48px; margin: 0; border: 0; border-bottom: 1px solid var(--surface-line); border-radius: 0; padding: 8px 12px; box-shadow: none; background: #fff; }
.premium-home .wallet-menu-links .w-link:last-child { border-bottom: 0; }
.premium-home .wallet-menu-links .w-link:hover { background: var(--surface-muted); }
.premium-home .wallet-menu-links .w-link > i:first-child { color: var(--ui-red); }
.premium-home .chart-directory-row { padding: 12px 14px; border-color: var(--surface-line); }
.premium-home .chart-directory-row > strong { font-size: 13px; }
.premium-home .history-card-item { border-left-width: 1px; box-shadow: none; }
.premium-home .sidebar-drawer-content { padding: 20px 16px; }
.premium-home .menu-item-row { min-height: 48px; border-radius: 10px; }
.premium-home .menu-item-row:hover { background: var(--surface-muted); }
.premium-home .menu-item-row.active { background: var(--ui-soft); color: var(--ui-red); }
.task-empty { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; text-align: center; color: var(--ui-muted); }
.task-empty > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-muted); color: var(--ui-red); font-size: 20px; }
.task-empty strong { color: var(--ui-ink); font-size: 15px; }
.task-empty p { font-size: 13px; margin: 0; line-height: 1.6; }
@media (max-width: 600px) {
    .premium-home .home-quick-access { gap: 8px; margin: 12px 0 16px; }
    .home-quick-access button { flex-direction: column; gap: 6px; min-height: 72px; padding: 10px 4px; font-size: 11px; }
    .home-quick-access i { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
    .premium-home .market-card { padding: 10px 12px 0 12px; gap: 4px; }
    .premium-home .market-card-bottom { margin: 3px -12px 0 -12px; }
    .premium-home .market-result { font-size: 19px; }
    .premium-home .market-name { font-size: 13px; }
    .premium-home .modal-container { padding: 20px 16px; }
    .premium-home .account-balance-row { padding: 12px; }
}
@media (max-width: 359px) {
    .premium-home .market-result { font-size: 17.5px; letter-spacing: 0; }
    .premium-home .market-result-action .btn-play { min-width: 74px; padding: 0 10px; }
    .market-list-heading h2 { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .premium-home *, .premium-home *::before, .premium-home *::after { scroll-behavior: auto !important; } }
/* Rates are a readable list inside the narrow task sheet. */
.premium-home #gameRatesModalOverlay .game-rates-modern-grid { grid-template-columns: minmax(0, 1fr); }
.premium-home #gameRatesModalOverlay .game-rate-card { min-width: 0; min-height: 56px; border-color: var(--surface-line); }
.premium-home #gameRatesModalOverlay .game-rate-name { white-space: normal; overflow-wrap: anywhere; color: var(--ui-ink); }
.premium-home #gameRatesModalOverlay .game-rate-pill { flex-shrink: 0; background: var(--ui-soft); color: var(--ui-red); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) and (max-width: 1100px) {
    .premium-home .modal-container:not(.market-games-modal-container):not(.bidding-modal-container) { width: min(520px, calc(100vw - 40px)) !important; }
}

/* Compact spacing, with full-size touch targets retained. */
.premium-home .account-dashboard { padding-top: 8px; }
.premium-home .account-card { padding: 12px; gap: 8px; margin: 4px 0 10px; }
.premium-home .account-card-header { gap: 8px; }
.premium-home .account-user-meta { min-width: 0; gap: 8px; }
.premium-home .account-name { overflow-wrap: anywhere; }
.premium-home .btn-profile-gear { flex-shrink: 0; width: 44px; height: 44px; }
.premium-home .account-balance-row { padding: 10px 12px; gap: 8px; }
.premium-home .account-shortcuts-grid { gap: 4px; }
.premium-home .dash-shortcut i { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.premium-home .homepage-apk-banner-container { margin: 10px 0; }
.premium-home .chart-directory-row { padding: 8px 12px; }
.premium-home .history-card-item { padding: 12px; gap: 8px; }
.premium-home .modal-container { padding: 16px; }
.premium-home #marketGamesModalOverlay .market-games-modal-container { gap: 8px !important; padding: 14px !important; width: min(600px, calc(100vw - 32px)); }
.premium-home #marketGamesModalOverlay .modal-header { gap: 8px; padding-bottom: 8px !important; }
.premium-home #marketGamesModalOverlay .modal-header > div:first-child { flex: 1 1 120px; }
.premium-home #marketGamesModalOverlay .market-game-card { min-height: 56px !important; padding: 8px !important; gap: 7px !important; }
.premium-home #marketGamesModalOverlay .game-card-icon-circle { width: 26px !important; height: 26px !important; flex-basis: 26px; border-radius: 7px !important; }
.premium-home #marketGamesModalOverlay .game-card-icon-circle svg { width: 21px; height: 21px; }
.premium-home #marketGamesModalOverlay .game-card-name { font-size: 12px !important; line-height: 1.35; }
.premium-home #marketGamesModalOverlay .market-games-bottom-wrapper { padding-top: 6px; }
.premium-home #marketGamesModalOverlay .bid-back-secondary-btn { padding: 8px 12px; min-height: 44px; }
.premium-home #bidModalOverlay .bidding-modal-container { gap: 8px !important; }
.premium-home #bidModalOverlay .modal-header { margin-bottom: 0; padding-bottom: 8px !important; gap: 8px; }
.premium-home #bidModalOverlay .bidding-scroll-body { padding: 8px 2px !important; gap: 8px !important; }
.premium-home #bidModalOverlay .bidding-date-strip { padding: 6px 10px !important; }
.premium-home #bidModalOverlay .bidding-rule-alert { padding: 8px 10px !important; }
.premium-home #bidModalOverlay .bidding-footer { padding-top: 8px !important; gap: 8px !important; }
@media (max-width: 767px) {
    .premium-home .modal-container { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) !important; }
    .premium-home .modal-container::before { margin-bottom: 10px; }
    .premium-home #marketGamesModalOverlay .market-games-modal-container { width: 100%; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; }
    .premium-home #marketGamesModalOverlay .market-games-modal-container::before { margin: 0 auto 2px; }
    .premium-home #bidModalOverlay .bidding-modal-container { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)) !important; }
}
/* Keep amount shortcuts together instead of leaving Clear on an empty row. */
.premium-home #bidModalOverlay .quick-points-chips { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 4px !important; }
.premium-home #bidModalOverlay .quick-points-chips .points-chip { width: 100%; min-width: 0; min-height: 44px !important; gap: 2px !important; margin: 0 !important; padding: 6px 2px !important; font-size: 11px !important; white-space: nowrap; }

/* Entry Review and Confirmation Modal - Mobile & Desktop Resilience */
.premium-home #entryReviewModalOverlay,
#entryReviewModalOverlay {
    z-index: 100000 !important;
    top: 0 !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(15, 23, 42, 0.75) !important;
}
.premium-home #entryReviewModalOverlay:not(.active),
#entryReviewModalOverlay:not(.active) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .premium-home #entryReviewModalOverlay,
    #entryReviewModalOverlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .premium-home #entryReviewModalOverlay .modal-container,
    #entryReviewModalOverlay .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94dvh !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)) 16px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .premium-home #entryReviewModalOverlay .review-actions-row,
    #entryReviewModalOverlay .review-actions-row {
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        padding-top: 10px !important;
        z-index: 10 !important;
    }
}

/* Rich Bid Confirmation Notification (Toast / Modal) */
.bid-success-toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: min(440px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 200000;
    padding: 16px 18px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .bid-success-toast {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100vw - 24px) !important;
    }
}
.bid-success-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.bid-success-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.bid-success-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bid-success-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.bid-success-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.bid-success-close {
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}
.bid-success-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.bid-success-details {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}
.bid-success-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bid-success-detail-label {
    color: #64748b;
    font-size: 11px;
}
.bid-success-detail-val {
    color: #0f172a;
    font-weight: 700;
}
.bid-success-detail-val.amount {
    color: #b71c1c;
}
.bid-success-detail-val.status-confirmed {
    color: #15803d;
}
.bid-success-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bid-success-btn-history {
    flex: 1;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.bid-success-btn-history:hover {
    background: #f1f5f9;
}
.bid-success-btn-dismiss {
    flex: 1;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 0;
    background: #cb202d;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.bid-success-btn-dismiss:hover {
    background: #b71c1c;
}

/* ==========================================================================
   CARLO 567 - DEDICATED FULL-PAGE PAYMENT GATEWAY & DEPOSIT SYSTEM
   ========================================================================== */

#addFundModalOverlay {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F8FAFC !important;
    z-index: 10000 !important;
    display: none;
    align-items: stretch !important;
    justify-content: center !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#addFundModalOverlay.active {
    display: flex !important;
}

#addFundModalOverlay .dep-modal-container {
    width: 100% !important;
    max-width: 500px !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.08) !important;
    background: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

#addFundModalOverlay .dep-step-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    animation: depFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#addFundModalOverlay .dep-step-content.active {
    display: flex !important;
}

#addFundModalOverlay .modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9;
    padding: 14px 18px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#addFundModalOverlay .dep-step-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 16px)) !important;
    display: flex;
    flex-direction: column;
}

#addFundModalOverlay .dep-step-body > * {
    flex-shrink: 0;
}

.dep-order-summary {
    flex-shrink: 0 !important;
    min-height: fit-content;
}

@media (max-width: 768px) {
    #addFundModalOverlay {
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        background: #FFFFFF !important;
    }
    #addFundModalOverlay .dep-modal-container {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

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

/* ==========================================================================
   CARLO 567 - Ultra-Clean Deposit & Payment Gateway Refinements
   ========================================================================== */

.dep-clean-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background: #FFFFFF !important;
}

.dep-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dep-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dep-header-icon-box.blue {
    background: #EEF2FF;
    color: #4F46E5;
}

.dep-header-icon-box.red {
    background: #FEF2F2;
    color: #DC2626;
}

.dep-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}

.dep-header-sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    display: block;
    margin-top: 2px;
}

.dep-round-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dep-round-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* Wallet Balance Row */
.dep-wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.dep-wallet-meta {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dep-wallet-meta i {
    font-size: 15px;
    color: #64748B;
}

.dep-wallet-bar strong {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

/* Hero Amount Section */
.dep-hero-amount-section {
    text-align: center;
    padding: 6px 0 4px;
}

.dep-eyebrow-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94A3B8;
    display: block;
    margin-bottom: 4px;
}

.dep-amount-hero-card {
    position: relative;
    background: transparent;
    border: none;
    padding: 2px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    cursor: text;
    transition: all 0.2s ease;
}

.dep-amount-hero-card:hover,
.dep-amount-hero-card:focus-within {
    border: none;
    background: transparent;
    box-shadow: none;
}

.dep-currency-symbol {
    font-size: 30px;
    font-weight: 700;
    color: #94A3B8;
    margin-right: 4px;
}

.dep-amount-num {
    font-size: 48px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -1px;
    line-height: 1.1;
}

.dep-amount-caret {
    display: inline-block;
    width: 2.5px;
    height: 38px;
    background: #6366F1;
    margin-left: 3px;
    animation: depCaretBlink 1s infinite;
    vertical-align: middle;
}

.dep-hidden-amount-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: default !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

@keyframes depCaretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dep-limits-subrow {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-top: 4px;
}

/* Quick Chips - Single horizontal row of 4 pills */
.dep-chips-grid {
    display: flex !important;
    gap: 8px !important;
    margin: 12px 0 16px !important;
}

.dep-chip-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    background: #F1F5F9 !important;
    border: 1.5px solid transparent !important;
    border-radius: 9999px !important;
    padding: 9px 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.dep-chip-btn:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

.dep-chip-btn.active {
    background: #EEF2FF !important;
    border-color: #6366F1 !important;
    color: #4338CA !important;
    font-weight: 800 !important;
}

/* Minimalist Touch Keypad - Borderless clean typography */
.dep-touch-keypad {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px 16px !important;
    margin: 8px 0 16px !important;
}

.dep-key {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    height: 48px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.1s ease, transform 0.08s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

.dep-key:hover {
    background: #F1F5F9 !important;
}

.dep-key:active {
    background: #E2E8F0 !important;
    transform: scale(0.92) !important;
}

.dep-key-sub {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
}

.dep-key-back {
    color: #64748B;
    font-size: 18px;
}

.dep-key-back:hover {
    color: #DC2626;
}

/* Action Button */
.dep-action-main-btn {
    width: 100% !important;
    padding: 13px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

#depositStep1 .dep-action-main-btn {
    background: #0F172A !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

#depositStep1 .dep-action-main-btn:hover {
    background: #1E293B !important;
    transform: translateY(-1px);
}

#depositStep2 .dep-action-main-btn {
    background: #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28) !important;
}

#depositStep2 .dep-action-main-btn:hover {
    background: #059669 !important;
    transform: translateY(-1px);
}

#withdrawFundModalOverlay .dep-action-main-btn {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
}

#withdrawFundModalOverlay .dep-action-main-btn:hover {
    background: #B91C1C !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Payment Gateway Step 2 Styles (Inspired by Reference Design)
   ========================================================================== */

.dep-gateway-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
}

.dep-gateway-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.dep-gateway-back-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.dep-gateway-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dep-brand-carlo {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: 0.5px;
}

.dep-brand-567 {
    font-size: 17px;
    font-weight: 900;
    color: #4F46E5;
}

.dep-brand-pill {
    font-size: 9px;
    font-weight: 800;
    background: #EEF2FF;
    color: #4F46E5;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.dep-secure-badge {
    background: #ECFDF5;
    border: 1px solid #D1FAE5;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.dep-secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
}

/* Pay Summary Card */
.dep-pay-summary-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.dep-summary-col {
    display: flex;
    flex-direction: column;
}

.dep-summary-col.dep-col-right {
    align-items: flex-end;
    text-align: right;
}

.dep-summary-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94A3B8;
    margin-bottom: 2px;
}

.dep-summary-val {
    font-size: 26px;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
}

.dep-val-cur {
    font-size: 19px;
    font-weight: 800;
    color: #0F172A;
    margin-right: 2px;
}

.dep-val-int {
    font-weight: 900;
}

.dep-summary-timer {
    font-size: 20px;
    font-weight: 800;
    color: #4F46E5;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dep-timer-dot {
    color: #6366F1;
    font-size: 13px;
}

.dep-summary-footer {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #F1F5F9;
    font-size: 11px;
    color: #64748B;
}

.dep-summary-footer code {
    font-weight: 700;
    color: #334155;
}

.dep-active-pill {
    color: #10B981;
    font-weight: 700;
}

/* Step 1 Guide Heading */
.dep-step-guide-heading {
    margin-bottom: 10px;
}

.dep-step-indicator {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4F46E5;
    display: block;
    margin-bottom: 2px;
}

.dep-step-headline {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 2px;
}

.dep-step-subheadline {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    margin: 0;
}

/* 2-Column UPI App Grid */
.dep-upi-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dep-upi-modern-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.15s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dep-upi-modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.dep-upi-modern-card:active {
    transform: scale(0.98);
}

.dep-upi-modern-card.phonepe {
    border-color: #DDD6FE;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
}

.dep-upi-modern-card.phonepe:hover {
    border-color: #8B5CF6;
}

.dep-modern-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dep-modern-app-icon.phonepe {
    background: #5F259F;
    box-shadow: 0 4px 12px rgba(95, 37, 159, 0.25);
}

.dep-modern-app-icon.gpay {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dep-modern-app-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

/* QR Code Accordion */
.dep-qr-accordion {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.dep-qr-accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.dep-qr-acc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dep-qr-acc-texts {
    flex: 1;
    min-width: 0;
}

.dep-qr-acc-headline {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.dep-qr-acc-subline {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
    margin-top: 1px;
}

.dep-qr-acc-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6366F1;
    transition: transform 0.2s ease;
}

.dep-qr-accordion.active .dep-qr-acc-chevron {
    transform: rotate(180deg);
}

.dep-qr-accordion-panel {
    display: none;
    padding: 0 16px 14px;
    text-align: center;
    border-top: 1px solid #F1F5F9;
}

.dep-qr-accordion.active .dep-qr-accordion-panel {
    display: block;
}

.dep-qr-wrapper {
    width: 145px;
    height: 145px;
    margin: 12px auto 6px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #CBD5E1;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dep-qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dep-qr-merchant {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-top: 4px;
}

.dep-qr-subhint {
    font-size: 11px;
    color: #64748B;
    margin: 2px 0 8px;
}

.dep-upi-id-pill-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dep-upi-id-pill-row span {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
}

.dep-copy-upi-btn {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.dep-copy-upi-btn:hover {
    background: #1E293B;
}

.dep-gateway-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 2px 2px;
}

.dep-footer-note {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
}

.dep-footer-cancel-link {
    background: none;
    border: none;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.dep-footer-cancel-link:hover {
    color: #0F172A;
}

/* Withdrawal additions in refinements */
.finance-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.finance-header-icon-box.red {
    background: #FEF2F2;
    color: #DC2626;
}
.finance-header-sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    display: block;
    margin-top: 2px;
}
.finance-pending-chip {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #B45309;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dep-method-preview-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0;
}
.dep-processing-time-hint {
    font-size: 11px;
    color: #64748B;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dep-error-alert {
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
    margin: 4px 0;
    min-height: 18px;
}
.dep-form-note {
    font-size: 11px;
    color: #64748B;
    margin: 8px 0;
}
.dep-reserve-notice {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #475569;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dep-secure-notice {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dep-section-label-small {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}
}

.dep-upi-brand-icon.phonepe {
    background: #5F259F;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(95, 37, 159, 0.28);
}

.dep-upi-brand-icon.gpay {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dep-upi-brand-icon svg {
    display: block;
}

.dep-upi-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.dep-upi-card-info strong {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.dep-upi-card-info span {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
    margin-top: 2px;
}

.dep-upi-arrow {
    color: #94A3B8;
    font-size: 13px;
    margin-left: auto;
    transition: color 0.15s;
}

.dep-upi-card:hover .dep-upi-arrow {
    color: #0F172A;
}

/* Fallback grid */
.dep-upi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dep-upi-btn {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    -webkit-tap-highlight-color: transparent;
}
.dep-upi-btn:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.dep-upi-btn:active {
    transform: scale(0.98);
}
.dep-upi-btn.phonepe:hover { border-color: #5f259f; }
.dep-upi-btn.gpay:hover { border-color: #4285F4; }

.dep-upi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.dep-upi-icon.phonepe {
    background: #F3E8FF;
    color: #5f259f;
}
.dep-upi-icon.gpay {
    background: #FEF3C7;
    color: #D97706;
}
.dep-upi-btn-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}
.dep-upi-btn-text span {
    font-size: 10px;
    color: #64748B;
    font-weight: 600;
}

/* Step 3: Screenshot upload controls */
.dep-screenshot-dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dep-screenshot-dropzone:hover {
    border-color: #0284C7;
    background: #F0F9FF;
}
.dep-screenshot-preview-card {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-remove-screenshot {
    border: none;
    background: #FEE2E2;
    color: #DC2626;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
}
.btn-remove-screenshot:hover {
    background: #FCA5A5;
}

/* WhatsApp notify button */
.btn-whatsapp-notify {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-whatsapp-notify:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp-notify:active {
    transform: scale(0.98);
}

@media (max-width: 400px) {
    .dep-upi-grid {
        grid-template-columns: 1fr;
    }
    .dep-chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dep-amount-num {
        font-size: 34px;
    }
}

/* ==========================================================================
   AUTHENTICATION SCREENS POLISH (User Login, Signup, Forgot PIN, Reset PIN)
   Preserves all IDs, attributes, functionality while delivering clean polish
   ========================================================================== */

#authModalOverlay {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
}

#authModalOverlay .modal-container {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    padding: 24px 22px !important;
    max-width: 420px !important;
    width: 92% !important;
    margin: auto !important;
    position: relative;
    overflow: hidden;
    animation: authCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 480px) {
    #authModalOverlay .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        border-bottom: none !important;
        padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 16px)) !important;
        margin: auto 0 0 0 !important;
    }
}

body.premium-home #authModalOverlay .modal-header {
    margin-top: 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

#authModalOverlay .modal-title i {
    display: inline-block !important;
    font-size: 18px;
}

#authModalOverlay .modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

#authModalOverlay .modal-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: scale(1.05);
}

/* Auth Segmented Switcher */
#authModalOverlay .auth-toggle-tabs {
    display: flex !important;
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
    margin-bottom: 14px !important;
}

#authModalOverlay .auth-tab-btn {
    flex: 1 !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    background: transparent !important;
    color: #64748B !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

#authModalOverlay .auth-tab-btn i {
    display: inline-block !important;
    font-size: 13px;
}

#authModalOverlay .auth-tab-btn.active {
    background: #FFFFFF !important;
    color: #B71C1C !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

/* Form Groups & Inputs */
#authModalOverlay .form-group {
    margin-bottom: 10px;
}

#authModalOverlay label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
}

#authModalOverlay label i {
    display: inline-block !important;
    font-size: 13px;
}

#authModalOverlay .form-input {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.18s ease;
}

#authModalOverlay .form-input:focus {
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
    outline: none;
}

/* Mobile input with +91 prefix container */
#authModalOverlay .form-group > div:has(> input[type="tel"]) {
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: all 0.18s ease;
}

#authModalOverlay .form-group > div:has(> input[type="tel"]):focus-within {
    border-color: #B71C1C !important;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12) !important;
}

/* Password & PIN Wrap */
#authModalOverlay .password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#authModalOverlay .password-input-wrap .form-input {
    letter-spacing: 3px;
    font-size: 16px;
    font-weight: 700;
    padding-right: 44px;
}

#authModalOverlay .toggle-password-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    transition: color 0.15s ease;
}

#authModalOverlay .toggle-password-btn:hover {
    color: #0F172A;
}

/* Primary Submit Buttons */
#authModalOverlay .form-btn.primary,
#authModalOverlay .form-btn.success {
    background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%) !important;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.28) !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#authModalOverlay .form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.35) !important;
}

#authModalOverlay .form-btn:active {
    transform: scale(0.98);
}

/* Subtle Secondary / Legacy Links */
#authModalOverlay .ui-text-button,
#authModalOverlay #legacyLoginToggle {
    background: none !important;
    border: none !important;
    color: #64748B !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    padding: 6px 10px !important;
    margin: 4px auto 0 !important;
    display: block !important;
    text-align: center;
    transition: all 0.15s ease;
}

#authModalOverlay #legacyLoginToggle[hidden],
#authModalOverlay .ui-text-button[hidden] {
    display: none !important;
}

#authModalOverlay .ui-text-button:hover,
#authModalOverlay #legacyLoginToggle:hover {
    color: #B71C1C !important;
    text-decoration: underline;
}

#authModalOverlay .auth-back {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    margin-top: 6px;
}

#authModalOverlay .auth-back:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* Alert Box */
#authAlertBox {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}
#authAlertBox.error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
}
#authAlertBox.success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #047857;
}

/* Admin Login Gate */
.admin-login-gate {
    background: radial-gradient(circle at 50% 20%, #1E293B 0%, #0F172A 100%) !important;
}

.admin-login-gate > div {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 32px 28px !important;
}

.admin-login-gate .form-input {
    background: #0F172A !important;
    border: 1.5px solid #334155 !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
    transition: all 0.18s ease;
}

.admin-login-gate .form-input:focus {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.admin-login-gate .btn-admin.success {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
    border-radius: 12px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-login-gate .btn-admin.success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45) !important;
}

/* PIN Change Modal */
#pinChangeOverlay .modal-container {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    padding: 24px !important;
    border: 1px solid #E2E8F0 !important;
}
