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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-active: rgba(99, 102, 241, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #6366f1;
    --accent-blue-light: #818cf8;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --nav-height: 72px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--nav-height) + 24px);
}

/* ===== HEADER ===== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.avatar img,
.avatar-large img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.avatar img {
    width: 42px;
    height: 42px;
}

.avatar-large img {
    width: 68px;
    height: 68px;
    border-width: 3px;
}

.user-details h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-details span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    padding: 0 16px;
    animation: screenSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
}

@keyframes screenSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

/* ===== BALANCE CARD (GLASS) ===== */
.balance-card-new {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 12px;
    flex-wrap: wrap;
}

.balance-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.balance-label-new {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.balance-amount-new {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.balance-amount-new span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.topup-btn-new {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.topup-btn-new:active {
    transform: scale(0.93);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* ===== ACTION BUTTONS (Tarix, Yordam) ===== */
.action-btn-new {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-btn-new:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.action-btn-new i {
    color: var(--accent-blue-light);
    font-size: 16px;
}

/* ===== TABS (O'yinlar, History tabs) ===== */
.tabs {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 20px;
    position: relative;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 0;
    border-radius: 13px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== SCROLLABLE TABS ===== */
.tabs.multi-tabs {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 4px;
}

.tabs.multi-tabs::-webkit-scrollbar {
    display: none;
}

.tabs.multi-tabs .tab-btn {
    flex: 0 0 auto;
    padding: 12px 24px;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-align: center;
    padding-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:active {
    transform: scale(0.95);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 8px;
}

.game-card h4 {
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.badge,
.badge-center {
    position: absolute;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    letter-spacing: 0.5px;
}

.badge {
    top: 8px;
    right: 8px;
}

.badge.global {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.badge.sng {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.badge.avto {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.badge i {
    color: #fbbf24;
    margin-right: 2px;
}

.badge-center.texnik {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f97316, #ea580c);
    width: 80%;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.star-placeholder {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(30, 27, 75, 0.8) 100%);
}

.star-placeholder span {
    margin-top: 8px;
    font-weight: 700;
    color: #fbbf24;
    font-size: 14px;
}

/* ===== HISTORY SCREEN ===== */
.page-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 80px;
}

/* ===== SETTINGS SCREEN ===== */
.settings-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.settings-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 800;
}

.profile-info span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.user-id {
    margin-top: 8px;
    background: rgba(10, 14, 26, 0.6);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
}

.finance-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.finance-card {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.finance-card .label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.finance-card .value {
    font-size: 22px;
    font-weight: 800;
    margin-top: 8px;
}

.finance-card .value span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.text-warning {
    color: #eab308;
}

.settings-section {
    margin-bottom: 24px;
}

.section-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
}

.lang-selector {
    display: flex;
    gap: 12px;
}

.lang-btn {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: rgba(99, 102, 241, 0.12);
    color: white;
    border-color: rgba(99, 102, 241, 0.25);
}

/* ===== BOTTOM NAVIGATION (Premium) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px 2px;
    border-radius: 14px;
    position: relative;
    letter-spacing: 0.2px;
    flex: 1;
    white-space: nowrap;
}

.nav-item.active {
    color: white;
    background: rgba(99, 102, 241, 0.12);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5);
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item lord-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active lord-icon {
    transform: scale(1.1);
}

.bot-username {
    position: fixed;
    bottom: calc(var(--nav-height) + 4px);
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(100, 116, 139, 0.4);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}


/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 68px;
    box-sizing: border-box;
}

.product-card:active {
    transform: scale(0.97);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.product-card .info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    margin-top: 4px;
    font-size: 13px;
    color: var(--accent-blue-light);
    font-weight: 700;
}

.product-card:active .price {
    color: #c7d2fe;
}


/* ===== TOP-UP FLOW (Premium Glass) ===== */
.topup-sub-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    border-bottom: 1px solid var(--border-subtle);
}

.topup-sub-header h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: white;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.08);
}

.topup-balance-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.08) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.topup-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.topup-balance-card .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.topup-balance-card .amount {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.topup-balance-card .amount span:last-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.payment-method-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.payment-method-card:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.payment-method-card .method-icon {
    width: 78px;
    height: 48px;
    background: rgba(10, 14, 26, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-blue-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.payment-method-card .method-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.payment-method-card .method-info {
    text-align: center;
}

.payment-method-card .method-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.payment-method-card .method-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.amount-input-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.amount-input-box input {
    width: 100%;
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 22px;
    padding: 24px 20px;
    font-size: 32px;
    font-weight: 900;
    color: white;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.amount-input-box input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.amount-input-box .currency {
    position: absolute;
    right: 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.quick-amounts button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 0;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
}

.quick-amounts button:active {
    background: rgba(99, 102, 241, 0.15);
    color: white;
    transform: scale(0.94);
    border-color: rgba(99, 102, 241, 0.3);
}

.topup-steps-list {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-item .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
    color: white;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-item .step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 5px;
    font-weight: 500;
}

.exact-amount-box {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(10, 14, 26, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.exact-amount-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.exact-amount-box .label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.exact-amount-box .amount-value {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    margin: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.exact-amount-box .amount-value span {
    color: var(--accent-blue-light);
}

.exact-amount-box .amount-value i {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.exact-amount-box .amount-value:active i {
    color: var(--accent-blue);
}

.exact-amount-box .sub-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.timer-box {
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 18px;
    border-radius: 18px;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(10, 14, 26, 0.6);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.card-details-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
}

.card-details-box .box-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-number-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    background: rgba(10, 14, 26, 0.4);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.card-number-row:active {
    transform: scale(0.98);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-number-row span {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
}

.card-number-row i {
    font-size: 20px;
    color: var(--text-muted);
}

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

.card-badge {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.copy-card-btn {
    width: 100%;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.copy-card-btn:active {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(0.97);
}

.rules-section {
    margin-bottom: 30px;
}

.rules-section h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.rule-item {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.rule-item.success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--text-primary);
}

.rule-item.success i {
    color: var(--accent-green);
    font-size: 18px;
}

.rule-item.error {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.03));
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--text-primary);
}

.rule-item.error i {
    color: var(--accent-red);
    font-size: 18px;
}

.pulsing-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.8);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.sticky-bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 20;
    border-top: 1px solid var(--border-subtle);
}

.primary-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.primary-btn:active {
    transform: scale(0.96);
}

.blue-btn {
    background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.green-btn {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.white-btn {
    background: #ffffff;
    color: var(--bg-primary) !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.white-btn:disabled {
    background: rgba(148, 163, 184, 0.3);
    color: var(--text-muted) !important;
    box-shadow: none;
    cursor: not-allowed;
}


/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    padding-bottom: 40px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* ===== LOADING ANIMATIONS ===== */
.startup-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    background-image: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-blue-light);
    animation: spin 1s linear infinite;
}

.loader-icon {
    font-size: 32px;
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Sticker Animation */
.sticker-anim {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticker-emoji {
    font-size: 80px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    animation: bounce 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate, wiggle 2s ease-in-out infinite;
}

.sticker-shadow {
    width: 50px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin-top: 20px;
    animation: shadowScale 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate;
    filter: blur(2px);
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

@keyframes shadowScale {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.4);
        opacity: 0.2;
    }
}

/* Pacman */
.pacman-loader {
    position: relative;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pacman {
    width: 0;
    height: 0;
    border-right: 40px solid transparent;
    border-top: 40px solid #fbbf24;
    border-left: 40px solid #fbbf24;
    border-bottom: 40px solid #fbbf24;
    border-radius: 50%;
    animation: chomp 0.4s linear infinite alternate;
    z-index: 2;
    position: absolute;
    left: 0;
}

.dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: -20px;
    top: 34px;
    animation: eat 1s linear infinite;
    z-index: 1;
}

@keyframes chomp {
    0% {
        border-right-color: transparent;
        border-top-color: #fbbf24;
        border-bottom-color: #fbbf24;
    }

    100% {
        border-right-color: #fbbf24;
        border-top-color: transparent;
        border-bottom-color: transparent;
        transform: rotate(0deg);
    }
}

@keyframes eat {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(-120px);
        opacity: 0;
    }
}

/* Support Banner */
.support-banner {
    background: var(--glass-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.support-banner i {
    color: var(--accent-green);
    font-size: 24px;
}

.support-banner div {
    display: flex;
    flex-direction: column;
}

.support-banner div strong {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.support-banner div span {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Buy Modal Styles */
.coins {
    display: none;
}

/* Scale-up animations */
@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Misc service items */
.services-list {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--accent-blue-light);
}

.service-icon i {
    font-size: 18px;
}

.service-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.arrow {
    margin-left: auto;
    color: var(--text-muted);
}

/* Phone connect */
.phone-connect-btn {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.phone-connect-btn i {
    color: var(--text-muted);
}

/* Payment card legacy */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.payment-card:first-child {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.payment-card:first-child .icon {
    color: var(--accent-blue);
    font-size: 32px;
}

.payment-card span {
    font-weight: 600;
    font-size: 14px;
}

.icon {
    font-size: 32px;
}

.atm-icon {
    color: var(--accent-green);
}

.sbp-icon {
    color: #ec4899;
}

.stars-icon {
    color: #eab308;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.guide-banner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.guide-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.guide-content i {
    color: var(--accent-blue-light);
}

.guide-link {
    color: var(--accent-blue-light);
    font-size: 13px;
}

.rent-btn {
    display: none;
}

/* ===== ALL GAMES SCREEN & LIVE SEARCH ===== */
.games-badge-counter {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    white-space: nowrap;
}

.games-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3px 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.games-search-wrapper:focus-within {
    border-color: #6366f1;
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.games-search-wrapper .search-icon {
    color: #818cf8;
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
}

.games-search-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 0;
}

.games-search-wrapper input::placeholder {
    color: #64748b;
}

.games-search-wrapper button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.games-search-wrapper button:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.game-card:active {
    transform: scale(0.96);
}