* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #1a3a8f;
    --primary-dark: #0f2460;
    --accent: #00d9ff;
    --bg: transparent;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a1a;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ ASOSIY VIDEO BACKGROUND ============ */
.main-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.75);
    z-index: -1;
    backdrop-filter: blur(3px);
}

/* ============ GLASSMORPHISM CLASS ============ */
.glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============ SPLASH SCREEN ============ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
}

.splash-content {
    text-align: center;
    padding: 20px;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 100px;
    font-weight: 900;
}

.logo-d {
    color: #00d9ff;
    text-shadow: 0 0 30px rgba(0,217,255,0.8);
}

.logo-text {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0,217,255,0.5);
}

.logo-subtitle {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 3px;
}

.start-btn {
    background: linear-gradient(135deg, #00d9ff 0%, #6366f1 100%);
    color: #fff;
    border: none;
    padding: 16px 60px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,217,255,0.4);
    transition: transform 0.2s;
}

.start-btn:active {
    transform: scale(0.95);
}

/* ============ MAIN APP ============ */
.main-app {
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ============ PAGE CONTENT - VIDEO MASOFASI UCHUN ============ */
.page-content {
    padding: 20px;
    padding-top: 90px;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ============ HEADER ============ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    margin: 0 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* ============ PAGES ============ */
.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ USER CARD ============ */
.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-greeting {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info h3 {
    font-size: 18px;
    font-weight: 700;
}

/* ============ BALANCE CARD ============ */
.balance-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
}

.balance-topup-btn, .profile-topup-btn {
    background: linear-gradient(135deg, #00d9ff 0%, #6366f1 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* ============ TOP DONATORS ============ */
.top-donators-card {
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.top-donators-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-donators-icon {
    font-size: 32px;
}

.top-donators-left h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.top-donators-left p {
    font-size: 12px;
    opacity: 0.7;
}

.top-donators-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-donators-rating {
    text-align: center;
}

.rating-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.rating-stars {
    font-size: 10px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 10px;
    opacity: 0.7;
}

.top-donators-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.top-user-name {
    font-size: 14px;
    font-weight: 600;
}

.top-donators-arrow {
    font-size: 24px;
    opacity: 0.7;
}

/* ============ SECTION TITLE ============ */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-all-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* ============ GAMES SCROLL ============ */
.games-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.games-scroll::-webkit-scrollbar {
    display: none;
}

.game-scroll-card {
    min-width: 130px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-scroll-card:active {
    transform: scale(0.95);
}

.game-scroll-img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 8px;
}

.game-scroll-info {
    padding: 10px;
    background: rgba(255,255,255,0.05);
}

.game-scroll-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-scroll-currency {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-scroll-rating {
    background: var(--warning);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

/* ============ INFO CARDS ============ */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.info-card {
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.info-card:active {
    transform: scale(0.98);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============ GAMES PAGE ============ */
.search-box {
    margin-bottom: 15px;
    padding: 5px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.tab-switcher {
    display: flex;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.games-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.game-card-full {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-card-full:active {
    transform: scale(0.97);
}

.game-card-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    position: relative;
}

.game-card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.game-card-info {
    padding: 12px;
    background: rgba(255,255,255,0.05);
}

.game-card-name {
    font-size: 14px;
    font-weight: 600;
}

/* ============ TOPUP PAGE ============ */
.balance-display {
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.balance-display-label {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.balance-display-amount {
    font-size: 32px;
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:active {
    transform: scale(0.98);
    border-color: var(--accent);
}

.payment-icon-img {
    width: 60px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 5px;
    overflow: hidden;
}

.payment-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-name {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.payment-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.min-amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.how-to-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.video-icon { background: #ef4444; }
.support-icon { background: #10b981; }

.link-info {
    flex: 1;
}

.link-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.link-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

/* ============ ORDERS PAGE ============ */
.orders-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.orders-filter {
    display: flex;
    gap: 8px;
    padding: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: none;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.orders-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.orders-empty h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.orders-empty p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    padding: 16px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.order-game-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-game-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.order-game-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.order-id {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.status-pending {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.order-detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.order-detail-value {
    font-weight: 600;
}

.price-value {
    color: var(--accent);
    font-weight: 700;
}

/* ============ PROFILE PAGE ============ */
.profile-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
    border: 3px solid var(--accent);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badges {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.profile-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
}

.profile-id {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-balance-card {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-section {
    padding: 20px;
    margin-bottom: 20px;
}

.referral-section, .top-donators-section {
    cursor: pointer;
    transition: transform 0.2s;
}

.referral-section:active, .top-donators-section:active {
    transform: scale(0.98);
}

.referral-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-icon {
    font-size: 32px;
}

.referral-text {
    flex: 1;
}

.referral-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.referral-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.referral-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

.profile-settings {
    margin-bottom: 20px;
    overflow: hidden;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-icon {
    font-size: 20px;
    margin-right: 12px;
}

.setting-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.setting-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

.lang-toggle {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px;
}

.lang-toggle-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.lang-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

.theme-toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.profile-links-section, .profile-about {
    margin-bottom: 20px;
}

.links-section-title {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-link {
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-link span:first-child {
    font-size: 24px;
}

.social-link span:last-child {
    font-size: 13px;
    font-weight: 500;
}

.about-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.about-item:last-of-type {
    border-bottom: none;
}

.about-label {
    font-weight: 600;
    font-size: 14px;
}

.about-value {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============ GAME DETAIL PAGE ============ */
.game-detail-header {
    position: relative;
    height: 220px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    margin: -20px -20px 20px;
}

.game-detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.game-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.game-detail-back {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.game-detail-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.game-detail-info h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.game-detail-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.game-detail-rating span:first-child {
    color: #f59e0b;
}

.game-detail-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 5px;
}

.game-tab {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    transition: all 0.2s;
}

.game-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.packages-grid-nova {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.package-card-nova {
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-card-nova:active {
    transform: scale(0.97);
}

.package-card-nova.selected {
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.package-icon-nova {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-icon-nova .emoji-icon {
    font-size: 48px;
}

.package-info-nova {
    flex: 1;
    min-width: 0;
}

.package-amount-nova {
    font-size: 18px;
    font-weight: 900;
    display: block;
    margin-bottom: 4px;
}

.package-price-nova {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.package-price-nova .currency {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 2px;
}

.player-id-section {
    padding: 20px;
    margin-bottom: 15px;
}

.player-id-input-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.player-id-input-row input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.player-id-input-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.check-id-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.buy-now-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
    transition: transform 0.2s;
    margin-top: 10px;
}

.buy-now-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.buy-now-btn:disabled {
    background: rgba(255,255,255,0.2);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex: 1;
}

.nav-btn.active {
    color: var(--accent);
}

.nav-btn.active .nav-icon {
    background: var(--accent);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.5);
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s;
}

.nav-btn.active .nav-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* ============ MODALS ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content-small {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-content-small h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.how-to-steps, .topup-steps-section {
    margin-bottom: 20px;
}

.how-to-step, .topup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.how-to-step:last-child, .topup-step:last-child {
    border-bottom: none;
}

.how-to-step-num, .topup-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.how-to-step span, .topup-step span {
    font-size: 14px;
    line-height: 1.5;
}

.modal-close-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* AMOUNT MODAL */
.modal-content-amount {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

.modal-header-row h3 {
    font-size: 20px;
    font-weight: 700;
}

.selected-payment-method {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.change-payment-btn {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.amount-input-section {
    margin-bottom: 20px;
}

.amount-input-section label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
}

.amount-input-wrapper input {
    flex: 1;
    border: none;
    font-size: 24px;
    font-weight: 700;
    background: none;
    color: var(--text);
    outline: none;
}

.amount-currency {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 600;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.quick-amount-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.quick-amount-btn:active {
    border-color: var(--accent);
}

.amount-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.topup-steps-section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.topup-steps-section h4 {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.confirm-amount-btn {
    width: 100%;
    background: var(--border);
    color: var(--text-secondary);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
}

.confirm-amount-btn.active {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

/* SUPPORT MODAL */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
}

.support-option-icon {
    font-size: 24px;
}

.support-option-text {
    flex: 1;
}

.support-option-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.support-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* REFERRAL MODAL */
.referral-modal-content {
    margin-bottom: 20px;
}

.referral-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.referral-reward-icon {
    font-size: 32px;
}

.referral-reward-text {
    font-size: 14px;
    font-weight: 600;
}

.referral-link-section {
    margin-bottom: 20px;
}

.referral-link-section label {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    gap: 10px;
}

.referral-link-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 13px;
    color: var(--text);
    outline: none;
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.referral-stat {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.referral-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.referral-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* TOP DONATORS MODAL */
.top-donators-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.top-donator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.top-donator-rank {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.top-donator-name {
    flex: 1;
    font-weight: 600;
}

.top-donator-amount {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

/* BALANCE INSUFFICIENT MODAL */
.balance-modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.balance-modal-icon {
    margin-bottom: 20px;
}

.balance-icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.balance-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.balance-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.balance-details {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.balance-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.balance-detail-row:last-child {
    border-bottom: none;
}

.balance-detail-row.insufficient {
    padding-top: 15px;
}

.balance-detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.balance-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.balance-detail-row.insufficient .balance-detail-label {
    color: #ef4444;
    font-weight: 600;
}

.balance-detail-row.insufficient .balance-detail-value {
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
}

.balance-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.balance-modal-btn {
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.balance-modal-btn:active {
    transform: scale(0.97);
}

.balance-modal-btn.close-btn {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.balance-modal-btn.topup-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* CONFIRM PURCHASE MODAL */
.confirm-modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.confirm-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.confirm-details {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row span:first-child {
    color: var(--text-secondary);
}

.confirm-row strong {
    color: var(--text);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #f59e0b;
    line-height: 1.5;
}

.confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cancel-btn {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.confirm-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 380px) {
    .games-grid-full {
        grid-template-columns: 1fr;
    }
    .payment-methods {
        grid-template-columns: 1fr;
    }
    .packages-grid-nova {
        grid-template-columns: 1fr;
    }
    .package-icon-nova {
        width: 50px;
        height: 50px;
    }
    .page-content {
        padding-top: 80px;
    }
}
/* Yangi qo'shilgan - video masofasi uchun */
.page-content {
    padding: 20px;
    padding-top: 90px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}