/* =====================================================
   index.css — Clean Mobile-First Design System
   Luckman Gaming Platform
   ===================================================== */

/* ── Variables ── */
:root {
    --primary: #0288d9;
    --primary-dark: #0073bc;
    --accent: #a855f7;
    --bg-dark: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --text-light: #333333;
    --text-muted: #757575;
    --color-green: #00e676;
    --color-violet: #651fff;
    --color-red: #ff1744;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --glow-primary: none;
    --transition: all 0.25s ease;
    --nav-height: 58px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Inter', sans-serif;
    letter-spacing: 0em;
    -webkit-tap-highlight-color: transparent;
}

/* ── Typography Scale ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p,
span,
label,
div {
    line-height: 1.5;
}

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

button {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f0f2f5;
    color: var(--text-light);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── Transaction / Record Row Styling ── */
.tx-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f2f2f2;
    background: #ffffff;
    gap: 14px;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-icon.lose {
    background-color: #e53935;
}

.tx-icon.win {
    background-color: #43a047;
}

.tx-icon svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.tx-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-title {
    font-size: 15px;
    font-weight: 500;
    color: #212121;
    letter-spacing: 0;
    line-height: 1.3;
}

.tx-time {
    font-size: 12px;
    font-weight: 400;
    color: #9e9e9e;
    letter-spacing: 0;
    line-height: 1.2;
}

.tx-amount {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.tx-amount.negative {
    color: #e53935;
}

.tx-amount.positive {
    color: #43a047;
}

/* ── Pagination bar ── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: #757575;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.pagination-bar .rows-label {
    font-weight: 400;
}

.pagination-bar .rows-select {
    font-size: 13px;
    border: none;
    border-bottom: 1.5px solid #bdbdbd;
    background: transparent;
    color: #212121;
    padding: 2px 4px;
    cursor: pointer;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.pagination-bar .page-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-bar .page-nav button {
    background: none;
    border: none;
    cursor: pointer;
    color: #757575;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.pagination-bar .page-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ── App Header Typography ── */
.app-header {
    font-size: 20px;
    font-weight: 600;
}

.app-header .page-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

/* ── Mine section labels ── */
.mine-user-details span[style*="font-weight: 700"],
.mine-user-details span[style*="font-weight:700"] {
    font-weight: 600;
    color: #333;
}

/* ── Bet history accordion rows ── */
.bet-acc-row {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
}

.bet-acc-row .bet-label {
    font-weight: 500;
    color: #222;
}


#root {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

/* ── App Shell ── */
/* Full-width mobile app; centered card on desktop */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* bottom padding = nav height + safe area */
    padding-bottom: var(--nav-height);
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

/* Desktop: show a framed card look */
@media (min-width: 500px) {
    body {
        background-color: #e4e7eb;
    }

    .app-container {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

/* ── Header ── */
.app-header {
    flex-shrink: 0;
    background: #008be2;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    min-width: 0;
}

.app-container.mine-active .app-header {
    display: none;
}

.app-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.balance-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: white;
}

.balance-pill span {
    color: #ffffff;
}

/* ── Bottom Navigation ── */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding-top: 8px;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 11px;
    font-weight: 500;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 2px;
    min-width: 0;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-item span {
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item.active {
    color: #008be2;
}

.nav-item.active svg {
    transform: none;
    filter: none;
}

/* ── Content Area ── */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    /* Changed from padding: 14px 14px 20px 14px; to allow full-bleed banners */
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

/* ── Buttons ── */
.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* ── Card Base ── */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

/* ── Games Tab ── */
.game-card {
    position: relative;
    border-radius: 18px;
    padding: 20px 16px;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.game-card:active {
    transform: scale(0.98);
}

.game-card-info {
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.game-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.game-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.game-card-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 7px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.game-card-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    flex-shrink: 0;
}

.card-5d {
    background: linear-gradient(135deg, #0f766e, #134e4a);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.card-k3 {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.card-mines {
    background: linear-gradient(135deg, #0284c7, #075985);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

/* ── Balance Card ── */
.balance-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.balance-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.balance-btn {
    flex: 1;
    max-width: 140px;
    padding: 9px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.balance-btn.recharge {
    background: white;
    color: #0369a1;
}

.balance-btn.rule {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* ── Sub Tabs (Win) ── */
.sub-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-bottom: 1.5px solid #edf2f7;
    margin: 0;
    border-radius: 0;
}

.sub-tab-item {
    padding: 14px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: var(--transition);
    letter-spacing: 0;
}

.sub-tab-item.active {
    background: transparent;
    color: #0288d9;
    border-bottom: 2.5px solid #0288d9;
}

/* ── Period / Timer ── */
.period-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.period-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.period-info span:first-child {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.period-info span:last-child {
    font-size: 14px;
    font-weight: 700;
    color: white;
    word-break: break-all;
}

.timer-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.timer-info span:first-child {
    font-size: 11px;
    color: var(--text-muted);
}

.timer-clock {
    font-size: 20px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 1px;
}

/* ── Color Bet Buttons ── */
.color-bet-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 15px;
}

.btn-bet {
    padding: 10px 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-green {
    background: #00c853;
}

.btn-violet {
    background: #7e57c2;
}

.btn-red {
    background: #ff1744;
}

.btn-bet:active {
    transform: scale(0.96);
}

/* ── Number Grid ── */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 15px;
}

.btn-num {
    height: 38px;
    border-radius: 4px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.btn-num {
    background: #00b0ff;
}

.btn-num:active {
    transform: scale(0.93);
}

/* ── Record / History Table ── */
.record-title {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-table-container {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 15px 20px 15px;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 280px;
}

.record-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.record-table td {
    padding: 10px 8px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.record-table tr:last-child td {
    border-bottom: none;
}

.record-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.02);
}

.record-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.record-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.dot-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background-color: var(--color-green);
}

.dot-violet {
    background-color: var(--color-violet);
}

.dot-red {
    background-color: var(--color-red);
}

/* ── Aviator Tab ── */
.aviator-game-box {
    background: #181c26;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    min-width: 0;
    overflow: hidden;
}

.aviator-history-tape {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.aviator-history-tape::-webkit-scrollbar {
    height: 3px;
}

.aviator-history-tape::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mult-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
}

.mult-badge.high {
    color: #d946ef;
    background: rgba(217, 70, 239, 0.1);
    border-color: rgba(217, 70, 239, 0.2);
}

.mult-badge.medium {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.mult-badge.blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.mult-badge.purple {
    color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.2);
}

.mult-badge.gold {
    color: #d97706;
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.3);
}

.aviator-canvas-container {
    width: 100%;
    height: 220px;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0b0f19 100%);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.aviator-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.aviator-mult-display {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 54px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.2);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 90%;
    transition: all 0.1s ease;
    opacity: 0;
}

.aviator-mult-display.active-fly {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
    animation: aviator-breathing 2s infinite ease-in-out;
}

.aviator-mult-display.flew-away {
    opacity: 1;
    color: #ef4444;
    font-size: 32px;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
    animation: shake 0.3s ease;
}

@keyframes aviator-breathing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.aviator-betting-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

/* Controls: stacked vertically on mobile */
.aviator-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amount-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
}

.amount-btn {
    padding: 0 14px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.amount-btn:active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.amount-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #333333;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.btn-aviator-action {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #10b981, #059669);
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-aviator-action.cashout {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-aviator-action.waiting {
    background: #374151;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── Lucky Hit Tab ── */
.cards-arena {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px 0;
    position: relative;
    gap: 8px;
}

.versus-badge {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.card-hand {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    min-width: 100px;
    min-height: 70px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.playing-card {
    width: 32px;
    height: 48px;
    background: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px;
    color: black;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    animation: dealCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.playing-card.red-suit {
    color: #ef4444;
}

.playing-card-suit {
    align-self: flex-end;
    font-size: 12px;
}

.lucky-bet-buttons {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.btn-lh {
    padding: 14px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lh-black {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-lh-lucky {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.btn-lh-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-lh:active {
    transform: scale(0.96);
}

/* ── Mine Tab ── */
.download-app-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 11px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    cursor: pointer;
}

.download-icon {
    color: var(--primary);
}

.mine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mine-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.mine-header-icons {
    display: flex;
    gap: 14px;
    color: var(--text-muted);
}

.mine-user-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.mine-user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 8px;
}

.mine-user-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mine-user-info-row:first-child {
    padding-top: 0;
}

.mine-user-info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.mine-user-info-value {
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    word-break: break-all;
}

.mine-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mine-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.mine-menu-item:active {
    background: rgba(255, 255, 255, 0.02);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.menu-item-left svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.chevron svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.mine-menu-item.open .chevron svg {
    transform: rotate(180deg);
}

.mine-menu-content {
    display: none;
    padding: 4px 16px 16px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid var(--border);
    border-top: none;
    margin-top: -10px;
    margin-bottom: 6px;
}

.mine-menu-item.open+.mine-menu-content {
    display: block;
}

/* ── Modals / Bottom Sheets ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 20px 18px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 88vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.pg-modal-sheet {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    margin: auto;
    padding: 28px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.modal-overlay.active .pg-modal-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #333333;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #757575;
}

.bet-options-row {
    margin-bottom: 14px;
    text-align: left;
}

.option-title {
    font-size: 12px;
    color: #757575;
    margin-bottom: 8px;
    font-weight: 500;
}

.bet-multiplier-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.mult-btn {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    color: #333333;
    padding: 9px 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.mult-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.bet-quantity-selector {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
    width: 120px;
}

.quantity-btn {
    background: transparent;
    border: none;
    color: #333333;
    width: 40px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
}

.quantity-value {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #333333;
}

/* ── Toast ── */
.toast {
    position: absolute;
    bottom: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(33, 33, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 11px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    max-width: calc(100% - 32px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.error {
    background: rgba(220, 38, 38, 0.95);
}

/* ── Chatbot ── */
.chatbot-float-btn {
    position: absolute;
    bottom: calc(var(--nav-height) + 14px);
    left: 16px;
    /* Moved to left */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 500;
    transition: var(--transition);
}

.chatbot-float-btn:active {
    transform: scale(0.94);
}

.chatbot-float-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-window {
    position: absolute;
    bottom: calc(var(--nav-height) + 86px);
    left: 14px;
    /* Moved to left */
    width: calc(100% - 28px);
    max-width: 340px;
    height: 400px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    z-index: 500;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: #333333;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-header {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.chatbot-title {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.chatbot-status {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green);
    display: inline-block;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #ffffff;
}

.chat-msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.45;
}

.chat-msg.bot {
    align-self: flex-start;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-bottom-left-radius: 3px;
    color: #333333;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 3px;
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    background: #f5f5f5;
    border-top: 1px solid var(--border);
}

.quick-reply-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 10px;
    padding: 5px 9px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.chatbot-input-area {
    display: flex;
    padding: 9px 10px;
    border-top: 1px solid var(--border);
    background: #ffffff;
    align-items: center;
    gap: 8px;
}

.chatbot-input-area input {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 7px 12px;
    color: #333333;
    font-size: 12px;
    outline: none;
}

.chatbot-input-area button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 3px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ── Custom Redesign Styles ── */

/* Game Cards */
.custom-game-card {
    border-radius: 6px;
    margin: 15px;
    overflow: hidden;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.custom-game-card.teal-card {
    background-color: #0098a6;
}

.custom-game-card.purple-card {
    background-color: #9c27b0;
}

.custom-game-card.blue-card {
    background-color: #02a8f3;
}

.card-top-half {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
}

.card-image {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.card-title-text {
    font-size: 24px;
    font-weight: bold;
    flex: 1;
}

.card-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
}

.card-bottom-half {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.card-bottom-text {
    font-size: 14px;
    font-weight: 500;
}

.card-play-btn {
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    min-width: 80px;
    text-align: center;
}

.teal-card .card-play-btn {
    background-color: #00796b;
}

.purple-card .card-play-btn {
    background-color: #7b1fa2;
}

.blue-card .card-play-btn {
    background-color: #0288d1;
}

/* Banners */
.notice-banner {
    color: white;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.notice-banner-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    font-weight: bold;
}

.balance-banner-container {
    padding: 18px 15px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.balance-banner-title {
    font-size: 15px;
    opacity: 0.9;
}

.balance-banner-amount {
    font-size: 24px;
    font-weight: bold;
}

.balance-banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance-banner-btn-recharge {
    border: none;
    border-radius: 3px;
    font-weight: bold;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    color: white;
}

.balance-banner-btn-rule {
    border: none;
    border-radius: 3px;
    font-weight: bold;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    background-color: #e0e0e0;
    color: #333333;
}

.balance-banner-refresh {
    cursor: pointer;
    margin-left: auto;
    width: 22px;
    height: 22px;
    color: white;
}

/* Digit Timer Boxes */
.digit-box-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.digit-box {
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: #333333;
    font-weight: bold;
    font-size: 16px;
    width: 24px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.digit-separator {
    font-weight: bold;
    font-size: 16px;
    color: #666666;
    margin: 0 2px;
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-52%, -50%);
    }

    75% {
        transform: translate(-48%, -50%);
    }
}

@keyframes dealCard {
    from {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ── Extra small phones < 360px ── */
@media (max-width: 359px) {
    .app-header {
        padding: 10px 12px;
    }

    .app-header h1 {
        font-size: 15px;
    }

    .balance-pill {
        font-size: 11px;
        padding: 4px 8px;
    }

    .sub-tab-item {
        font-size: 10px;
        padding: 9px 2px;
    }

    .btn-bet {
        padding: 11px 2px;
        font-size: 12px;
    }

    .balance-amount {
        font-size: 24px;
    }

    .nav-item {
        font-size: 9px;
    }

    .nav-item svg {
        width: 19px;
        height: 19px;
    }
}

/* ── Utility Classes ── */
.hidden {
    display: none !important;
}

/* ── Centering App & Desktop Viewport ── */
#root {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ── Card Flip Animations (Lucky Hit) ── */
.lucky-card-wrapper {
    width: 32px;
    height: 46px;
    perspective: 800px;
}

.lucky-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lucky-card.flipped {
    transform: rotateY(180deg);
}

.lucky-card-back,
.lucky-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.lucky-card-back {
    background-color: #1e3a8a;
    background-image: radial-gradient(circle at 50% 50%, #3b82f6 0%, #1d4ed8 70%, #1e3a8a 100%);
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lucky-card-front {
    background-color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lucky-card-front.red {
    color: #ef4444;
}

.lucky-card-front.black {
    color: #212121;
}

.lucky-card-value {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.lucky-card-suit {
    font-size: 15px;
    line-height: 1;
    margin-top: 0px;
}

/* ── Zone Buttons & Avatars ── */
.lucky-bet-zones .zone-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.lucky-bet-zones .zone-btn span {
    font-size: 11px;
    opacity: 0.85;
    font-weight: normal;
    margin-top: 2px;
}

.lucky-bet-zones .zone-btn.black {
    background-color: #212121;
}

.lucky-bet-zones .zone-btn.black:active {
    background-color: #000;
}

.lucky-bet-zones .zone-btn.red {
    background-color: var(--color-red);
}

.lucky-bet-zones .zone-btn.red:active {
    background-color: #d32f2f;
}

.lucky-bet-zones .zone-btn.lucky {
    background-color: var(--color-violet);
}

.lucky-bet-zones .zone-btn.lucky:active {
    background-color: #7b1fa2;
}

.lucky-player-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
}

/* ── Restore FontAwesome Icon Families ── */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

/* ── Auth Inputs (Luckman Style) ── */
.auth-input-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.auth-input-card input {
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    color: #333;
    background: transparent;
}

.auth-input-card input::placeholder {
    color: #bdbdbd;
}

/* ── Action Buttons ── */
.auth-btn-primary {
    width: 65%;
    height: 44px;
    background-color: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 136, 209, 0.2);
    margin: 25px auto 15px;
    display: block;
    transition: background-color 0.2s;
}

.auth-btn-primary:active {
    background-color: var(--primary-dark);
}

.auth-btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.auth-btn-secondary {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s;
}

.auth-btn-secondary:active {
    background-color: #f5f5f5;
}

@keyframes spin_loader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes green_pulse {

    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.recharge-select-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    height: 42px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.recharge-select-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.channel-amt-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    height: 42px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.channel-amt-btn.active {
    background: var(--primary) !important;
    color: white !important;
}

/* ── Mine Page Bold Text ── */
#mine-section,
#mine-section * {
    font-weight: bold !important;
}

/* ── Dark Mode Theme Variables & Elements ── */
body.dark-theme {
    --bg-dark: #121212;
    --bg-surface: #1c1c1e;
    --bg-card: #1c1c1e;
    --border: #2d2d2d;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
    background-color: #121212 !important;
    color: #ffffff !important;
}

body.dark-theme .app-container,
body.dark-theme .app-content,
body.dark-theme .main-tab-section,
body.dark-theme #games-section,
body.dark-theme #win-section,
body.dark-theme #aviator-section,
body.dark-theme #luckyhit-section,
body.dark-theme #mine-section {
    background-color: #121212 !important;
    color: #ffffff !important;
}

body.dark-theme .bottom-nav {
    background-color: #1c1c1e !important;
    border-top: 1px solid #2d2d2d !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .nav-item {
    color: #8e8e93 !important;
}

body.dark-theme .nav-item.active {
    color: #0288d9 !important;
}

body.dark-theme .custom-game-card,
body.dark-theme .record-table-container,
body.dark-theme .period-timer-row,
body.dark-theme .mine-user-details,
body.dark-theme .mine-menu-list,
body.dark-theme .mine-menu-item,
body.dark-theme #threedot-dropdown,
body.dark-theme .digit-box,
body.dark-theme .modal-content,
body.dark-theme .pg-modal-sheet,
body.dark-theme .bet-quantity-selector,
body.dark-theme .lucky-cards-container {
    background-color: #1c1c1e !important;
    color: #ffffff !important;
    border-color: #2d2d2d !important;
}

body.dark-theme .record-table,
body.dark-theme .record-table th,
body.dark-theme .record-table td {
    background-color: #1c1c1e !important;
    color: #ffffff !important;
    border-color: #2d2d2d !important;
}

body.dark-theme .record-table tr {
    border-bottom-color: #2d2d2d !important;
}

body.dark-theme .sub-tabs {
    background-color: #1c1c1e !important;
    border-bottom: 1px solid #2d2d2d !important;
}

body.dark-theme .mine-menu-content {
    background-color: #2a2a2a !important;
    color: #dddddd !important;
}

body.dark-theme .mine-menu-list>div {
    border-color: #333333 !important;
}

body.dark-theme .download-app-bar {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-bottom: 1px solid #333333 !important;
}

body.dark-theme .digit-box {
    border-color: #444 !important;
}

body.dark-theme .sub-tab-item {
    color: #aaaaaa !important;
}

body.dark-theme .sub-tab-item.active {
    color: #0288d9 !important;
    border-bottom-color: #0288d9 !important;
}

body.dark-theme input {
    background-color: #2c2c2e !important;
    color: #ffffff !important;
    border-color: #3a3a3c !important;
}