:root {
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.7);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --primary: #6c5ce7;
    --primary-hover: #5b4dd4;
    --secondary: #e84393;
    --danger: #d63031;
    --success: #00b894;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --transition: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: 80px; /* navbar kiritildi */
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

.page {
    width: 100%;
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-md);
    padding: 15px;
    border: 1px solid var(--glass-border);
}

/* Typography & Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.d-flex { display: flex; align-items: center; justify-content: space-between; }
.w-100 { width: 100%; }
.w-50 { width: 48%; }
.mt-2 { margin-top: 15px; }

/* Buttons */
.btn {
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-icon {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

/* Forms */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}
.input-group label {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-muted);
}
.input-group input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: max(8px, var(--border-radius-md));
    color: #fff;
    outline: none;
    transition: var(--transition);
}
.input-group input:focus {
    border-color: var(--primary);
}

/* Headers */
.header {
    padding: 20px;
    border-radius: 0 0 calc(var(--border-radius-lg)*1.5) calc(var(--border-radius-lg)*1.5);
    margin-bottom: 10px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
.greeting {
    font-size: 12px;
    color: var(--text-muted);
}
.balance-card h1 {
    font-size: 32px;
    margin: 5px 0 15px 0;
}
.balance-card small {
    font-size: 16px;
    color: var(--text-muted);
}
.balance-actions {
    display: flex;
    gap: 10px;
}

/* Section Common */
.section-title {
    padding: 0 20px;
    margin-bottom: 15px;
}
.section-title h3 {
    font-size: 18px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Grid Layouts */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}
.game-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(0);
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.game-card:active {
    transform: translateY(4px) scale(0.98);
}
/* Rasm wrapper — aspect-ratio bilan universal hajm */
.game-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #222;
}
.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.game-card:hover .game-image {
    transform: scale(1.04);
}
/* Badge overlay — rasmning ustida chiqadi */
.game-badge-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
}
.badge-chip.hot   { background: rgba(214,48,49,0.92); color:#fff; }
.badge-chip.new   { background: rgba(0,184,148,0.92); color:#fff; }
.badge-chip.sale  { background: rgba(253,203,110,0.95); color:#222; }
.badge-chip.purple{ background: rgba(108,92,231,0.92); color:#fff; }
.badge-chip.blue  { background: rgba(9,132,227,0.92);  color:#fff; }
/* Chegirma badge (product) */
.prod-discount-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #e17055, #d63031);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.product-row-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
}
.game-info {
    padding: 10px 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}
.game-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.tag {
    font-size: 10px;
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Products Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 30px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}
.product-card:active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}
.product-icon {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 10px;
}
.product-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.product-price {
    font-size: 12px;
    color: var(--success);
}

.game-cover-container { padding: 0 20px; margin-bottom: 15px;}
.game-cover { width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius-md); }

/* External ID Form Container */
.external-id-wrapper {
    padding: 0 20px; margin-bottom: 15px;
}

/* History items */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 0 20px 10px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: var(--transition);
}
.nav-item i { font-size: 24px; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: var(--transition);
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background: #1a1a2e;
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    transform: translateY(0);
    transition: var(--transition);
    display: none; /* JS will toggle */
}
.modal-content.active { display: block; }
.transform-down { transform: translateY(50px); }
.modal-overlay:not(.hidden) .transform-down { transform: translateY(0); }

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

/* Notification Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: var(--transition);
    font-size: 14px;
}
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }
.toast.hidden { transform: translateX(-50%) translateY(-100px); opacity: 0;}

/* Pages Logic */
.page {
    animation: fadeIn 0.3s ease-in-out;
}
.page.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Faza 4: Buy Modal CSS */
.buy-modal-content {
    background: #111e3b; /* Navy rang rasmga asoslangan */
    max-width: 400px;
    border-radius: 20px;
    margin: 50px auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 20px;
}
.warning-banner {
    background: rgba(214, 162, 48, 0.15);
    color: #e6b840;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(214, 162, 48, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 14px;
}
.warning-banner.hidden { display: none; }
.product-showcase {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.product-showcase img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}
.product-showcase .prod-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}
.price-tag { 
    font-size: 18px; 
    font-weight: 700; 
    color: #8c7ffa; /* Ochroq binafsha/kok */
}
.navy-input-group {
    margin-bottom: 20px;
}
.navy-input-group label {
    display: block;
    color: #8db0cf;
    font-size: 13px;
    margin-bottom: 8px;
}
.navy-input-flex {
    display: flex;
    gap: 10px;
}
.navy-input {
    flex: 1;
    background: #0f172a;
    border: none;
    padding: 14px 15px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
}
.navy-input::placeholder { color: #64748b; }
.btn-apply {
    background: #475569;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}
.btn-confirm {
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    opacity: 1;
}
.btn-confirm:active:not(:disabled) { transform: scale(0.98); }
.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-transparent {
    background: transparent;
    color: #8db0cf;
    border: none;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* ===== BANNER SLIDER ===== */
.banner-slider-wrap {
    position: relative;
    margin: -10px 0 20px 0;
    overflow: hidden;
}
.banner-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.banner-slider::-webkit-scrollbar { display: none; }
.banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    display: block;
    text-decoration: none;
    position: relative;
}
/* Gradient overlay chiroyli ko'rinishi uchun */
.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,0,0,0.6) 100%
    );
    pointer-events: none;
}
.placeholder-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #2d2b55);
}
/* Dots — pill shimmer effect */
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
    z-index: 10;
}
.banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.banner-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* ===== GAME COVER OVERLAY ===== */
.game-cover-container {
    position: relative;
    padding: 0;
    margin-bottom: 0;
}
.game-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.game-cover-overlay {
    position: absolute;
    bottom: 10px;
    right: 15px;
}
.game-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.game-badge.hidden { display: none; }

/* ===== PRODUCT ROW (yangi dizayn) ===== */
.products-list {
    padding: 10px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    transition: var(--transition);
}
.product-row:active {
    border-color: var(--primary);
    background: rgba(108,92,231,0.08);
}
/* product-row-img responsive */
.product-row-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: #333;
    flex-shrink: 0;
    display: block;
}
.product-row-info {
    flex: 1;
    min-width: 0;
}
.product-row-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-row-price {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}
.product-row-btn {
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    color: white;
    border: none;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}
.product-row-btn:active { transform: scale(0.95); }

/* ===== CUSTOM AMOUNT SECTION ===== */
.custom-top-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 16px 16px 20px;
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: var(--border-radius-md);
    padding: 16px;
}
#custom-amount-section .navy-input {
    width: 100%;
    font-size: 18px;
    padding: 16px;
}
#custom-amount-section .btn-confirm {
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    font-size: 17px;
    letter-spacing: 0.5px;
}

/* ===== BUY MODAL wrapper ===== */
#modal-buy {
    padding: 0;
    background: transparent;
    border: none;
}
#modal-buy.active { display: block; }

/* ===== STATUS DOT ===== */
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.4s;
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: var(--danger); }

/* ===== OPERATOR ICON ===== */
.operator-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #a29bfe);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white;
    flex-shrink: 0;
}
.operator-icon.small {
    width: 40px; height: 40px;
    border-radius: 12px;
    font-size: 18px;
}

/* ===== SETTINGS PAGE ===== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.profile-avatar-big {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
    overflow: hidden;
}
.profile-info { flex: 1; min-width: 0; }
.profile-fullname { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.profile-username { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.profile-badge {
    display: inline-block;
    font-size: 12px;
    background: rgba(108,92,231,0.15);
    border-radius: 20px;
    padding: 3px 10px;
    color: #a29bfe;
}

.settings-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.settings-chat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 14px 16px;
    transition: var(--transition);
}
.settings-chat-btn:active { transform: scale(0.98); opacity: 0.9; }

/* ===== CHAT PAGE ===== */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 0 0 16px 16px;
}
.chat-messages {
    flex: 1;
    padding: 16px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: calc(100vh - 140px);
    overflow-y: auto;
}
.chat-system-msg {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 8px auto;
    max-width: 240px;
}
.chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.2s ease;
}
.chat-bubble.mine {
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}
.chat-time {
    font-size: 10px;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}
.chat-img {
    max-width: 200px;
    border-radius: 10px;
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
}
.chat-text-content { margin-bottom: 2px; word-break: break-word; }

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    padding: 10px 14px 20px;
    background: rgba(18,18,18,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
}
.chat-attach-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 20px;
    cursor: pointer; flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.chat-attach-btn:active { opacity:0.7; }
.chat-text-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.chat-text-input::placeholder { color: #64748b; }
.chat-send-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    color: white; border: none;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.chat-send-btn:active { transform: scale(0.9); }

/* Chat page body bo'sh bo'lishi uchun */
#page-chat { padding-bottom: 0; display: flex; flex-direction: column; }

/* === HISTORY items refresh dot animation === */
#history-refresh-dot { transition: transform 0.3s; }

/* Telegram Lock Screen */
.tg-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tg-lock-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.tg-lock-icon {
    font-size: 80px;
    color: #24A1DE;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Lang Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 16px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 10px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}
.lang-divider {
    width: 1px;
    height: 12px;
    background: var(--glass-border);
    margin: 0 2px;
}
/* Kategoriyalar (Tabs) */
.categories-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 20px 15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.categories-tabs::-webkit-scrollbar { display: none; } /* Chrome, Safari */

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}
.category-tab i { font-size: 14px; }
.category-tab.active {
    background: linear-gradient(135deg, var(--primary), #8c7ffa);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}
.category-tab:active { transform: scale(0.95); }

/* Input Select styling for navy inputs */
select.navy-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Maintenance Screen */
.maintenance-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10000;
    padding: 20px;
}
.maintenance-content {
    max-width: 400px;
}
.maintenance-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: maintenance-pulse 2.5s ease-in-out infinite;
}
@keyframes maintenance-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px var(--primary)); }
    100% { transform: scale(1); opacity: 0.8; }
}
.maintenance-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.maintenance-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}
.maintenance-footer {
    margin-top: 40px;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

/* Disabled game card */
.game-card.disabled {
    filter: grayscale(0.85);
    opacity: 0.75;
    pointer-events: none;
    cursor: not-allowed;
}

/* Red status badge */
.badge-chip.danger {
    background: rgba(214, 48, 49, 0.15) !important;
    color: #ff7675 !important;
    border: 1px solid rgba(214, 48, 49, 0.3) !important;
}
