/* Page-specific Styles - Hero, Tournaments, Store, Wallet, Profile, Leaderboard */

/* Hero Section */
.hero {
    position: relative;
    padding: 3rem 0;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(27, 86, 253, 0.15), transparent 70%);
    z-index: -1;
}
.hero-content {
    background: white;
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(1, 24, 216, 0.15);
    margin: 0 auto;
}
.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.stat-item i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}
.stat-item h3 {
    font-size: var(--font-size-2xl);
    margin: 0;
    font-weight: 700;
}
.stat-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--font-size-sm);
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.625rem 1rem;
    background: white;
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 24, 216, 0.08);
}
.back-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--glow-primary);
}

/* Grids */
.tournaments-grid, .store-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 769px) {
    .detail-grid {
        grid-template-columns: 2fr 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr 2fr;
    }
    .payment-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Game Cards */
.game-card {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.game-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 8px 25px var(--glow-primary);
}
.game-icon i {
    font-size: var(--font-size-2xl);
    color: white;
}

/* Step Cards */
.step-card {
    background: white;
    backdrop-filter: blur(30px);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(1, 24, 216, 0.1);
}
.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px var(--glow-primary);
    transform: translateY(-3px);
}
.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 20px var(--glow-primary);
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.filter-tab {
    padding: 0.75rem 1.25rem;
    background: white;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(1, 24, 216, 0.08);
}
.filter-tab:hover, .filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px var(--glow-primary);
    transform: translateY(-2px);
}

/* Store */
.store-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.store-price { font-size: 1.25rem; font-weight: bold; color: var(--primary-color); }

/* Participants */
.participants-list { display: flex; flex-direction: column; gap: 1rem; max-height: 500px; overflow-y: auto; }
.participant-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem; background: rgba(27, 86, 253, 0.08); border-radius: 8px;
}
.participant-info { display: flex; align-items: center; gap: 1rem; }
.participant-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary-color); background: var(--border-color);
    display: flex; align-items: center; justify-content: center;
}
.participant-avatar i { color: var(--text-secondary); }
.position-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; color: white;
}
.prize-badge {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem;
    color: white; margin-left: 0.5rem;
}

/* Room Info */
.room-info {
    background: rgba(27, 86, 253, 0.12); border: 1px solid var(--primary-color);
    border-radius: 8px; padding: 1.5rem; margin: 1.5rem 0;
}
.room-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.room-item { display: flex; flex-direction: column; gap: 0.5rem; }
.room-item code {
    background: rgba(1, 24, 216, 0.05); padding: 0.5rem 1rem; border-radius: 6px;
    font-size: 1.125rem; color: var(--primary-color); display: block;
    border: 1px solid var(--border-color);
}

/* Wallet */
.wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2.5rem 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px var(--glow-primary);
}
.balance-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.balance-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}
.balance-info h2 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 800;
}
.balance-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}
.balance-info span {
    font-size: 1.25rem;
    opacity: 0.85;
}

/* Transactions */
.transactions-list { display: flex; flex-direction: column; gap: 1rem; }
.transaction-item {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.transaction-item.small { padding: 1rem; }
.transaction-icon {
    width: 50px; height: 50px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.transaction-icon.positive { background: rgba(16, 185, 129, 0.2); color: var(--success-color); }
.transaction-icon.negative { background: rgba(239, 68, 68, 0.2); color: var(--danger-color); }
.transaction-info { flex: 1; }
.transaction-info h4 { margin: 0 0 0.25rem 0; }
.transaction-info p, .transaction-info small { color: var(--text-secondary); margin: 0; }
.transaction-amount { font-size: 1.5rem; font-weight: bold; text-align: right; }
.transaction-amount.positive { color: var(--success-color); }
.transaction-amount.negative { color: var(--danger-color); }
.transaction-amount small { display: block; font-size: 0.875rem; color: var(--text-secondary); font-weight: normal; }

/* Coin Packages */
.package-card {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 2rem; text-align: center;
    transition: all 0.3s ease; position: relative;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.package-card:hover, .package-card.popular {
    border-color: var(--primary-color); box-shadow: 0 10px 30px var(--glow-primary);
    transform: scale(1.05);
}
.package-icon {
    width: 80px; height: 80px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: white;
}
.package-price { font-size: 2rem; font-weight: bold; color: var(--primary-color); margin: 1rem 0; }
.package-info { margin: 1rem 0; text-align: left; }

/* Payment */
.qr-card {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 2rem; text-align: center;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.qr-image { background: white; padding: 1rem; border-radius: 8px; margin: 2rem 0; }
.qr-image img { max-width: 300px; margin: 0 auto; }
.payment-info { text-align: left; margin: 1rem 0; }
.instructions { text-align: left; margin-top: 1.5rem; }
.instructions h4 { margin-bottom: 0.5rem; }
.payment-card {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 2rem; text-align: center; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.payment-card:hover {
    border-color: var(--primary-color); box-shadow: 0 10px 30px var(--glow-primary);
    transform: translateY(-5px);
}
.payment-icon {
    width: 60px; height: 60px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
}
.payments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.payment-card.pending { background: white; border: 2px solid var(--border-color); padding: 1.5rem; box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08); }
.payment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.payment-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.payment-date { color: var(--text-secondary); font-size: 0.875rem; }
.payment-details { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.payment-row { display: flex; justify-content: space-between; }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 2rem; }
.order-card {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-date { color: var(--text-secondary); font-size: 0.875rem; margin: 0.25rem 0 0 0; }
.order-item { display: flex; gap: 1.5rem; margin: 1rem 0; }
.order-image {
    width: 100px; height: 100px; object-fit: cover; border-radius: 8px;
    background: var(--border-color); display: flex; align-items: center; justify-content: center;
}
.order-placeholder { width: 100px; height: 100px; }
.order-placeholder i { font-size: 2rem; color: var(--text-secondary); }
.order-details { flex: 1; }
.order-info { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }

/* Profile */
.profile-card {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 2rem;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.profile-header { text-align: center; margin-bottom: 2rem; }
.profile-avatar {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-color); margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--border-color); font-size: 3rem; color: var(--text-secondary);
}
.profile-id { color: var(--text-secondary); }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.stat-card {
    background: rgba(27, 86, 253, 0.12); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 1.5rem; text-align: center;
}
.stat-card i { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.stat-card h3 { font-size: 2rem; margin: 0; }
.stat-card p { color: var(--text-secondary); margin: 0; }
.profile-info { margin: 2rem 0; }
.referral-section { margin-top: 2rem; }
.referral-code { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.referral-code code {
    flex: 1; padding: 1rem; background: var(--dark-bg);
    border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 1.25rem; text-align: center; color: var(--primary-color);
}
.profile-content { display: flex; flex-direction: column; gap: 0; }
.history-list { display: flex; flex-direction: column; gap: 1rem; }
.history-item {
    display: flex; align-items: center; gap: 1.5rem; padding: 1rem;
    background: rgba(27, 86, 253, 0.08); border-radius: 8px;
}
.history-icon {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.25rem; flex-shrink: 0;
}
.history-info { flex: 1; }
.history-info h4 { margin: 0 0 0.25rem 0; }
.history-info p { color: var(--text-secondary); margin: 0; font-size: 0.875rem; }
.current-avatar { margin-bottom: 1rem; }
.current-avatar img { max-width: 200px; border-radius: 8px; }

/* Leaderboard */
.leaderboard-preview, .leaderboard-list { display: flex; flex-direction: column; gap: 1rem; }
.leaderboard-item {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 1.5rem; display: flex;
    align-items: center; gap: 1.5rem; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.leaderboard-item:hover { border-color: var(--primary-color); box-shadow: 0 5px 20px var(--glow-primary); }
.leaderboard-item.top-1 { border-color: #fbbf24; }
.leaderboard-item.top-2 { border-color: #9ca3af; }
.leaderboard-item.top-3 { border-color: #fb923c; }
.rank {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; flex-shrink: 0; color: white;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.rank-2 { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.rank-3 { background: linear-gradient(135deg, #fb923c, #f97316); }
.player-info { display: flex; align-items: center; gap: 1rem; flex: 1; }
.player-avatar {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary-color); background: var(--border-color);
    display: flex; align-items: center; justify-content: center;
}
.player-avatar i { color: var(--text-secondary); }
.player-info h4 { margin: 0; }
.player-info p { color: var(--text-secondary); margin: 0; font-size: 0.875rem; }
.player-stats { display: flex; gap: 2rem; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.stat i { color: var(--primary-color); }
.stat span { font-weight: bold; }
.stat small { color: var(--text-secondary); font-size: 0.75rem; }

/* Podium */
.podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 2rem; margin-bottom: 3rem;
}
.podium-item {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 2rem; text-align: center;
    min-width: 200px; position: relative;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.podium-item.first {
    border-color: #fbbf24; box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
}
.podium-item.second {
    border-color: #9ca3af; box-shadow: 0 10px 40px rgba(156, 163, 175, 0.3);
}
.podium-item.third {
    border-color: #fb923c; box-shadow: 0 10px 40px rgba(251, 146, 60, 0.3);
}
.podium-crown {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    font-size: 2rem; color: #fbbf24; animation: float 2s ease-in-out infinite;
}
.podium-rank {
    width: 50px; height: 50px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; color: white;
}
.podium-avatar {
    width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--primary-color);
    background: var(--border-color); display: flex; align-items: center; justify-content: center;
}
.podium-avatar i { font-size: 2rem; color: var(--text-secondary); }
.podium-id { color: var(--text-secondary); font-size: 0.875rem; }
.podium-stats { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Notifications */
.notifications-list { display: flex; flex-direction: column; gap: 1rem; }
.notification-item {
    background: white; border: 2px solid var(--border-color);
    border-radius: 12px; padding: 1.5rem; display: flex;
    align-items: center; gap: 1.5rem; transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 24, 216, 0.08);
}
.notification-item.unread {
    border-color: var(--primary-color);
    background: rgba(27, 86, 253, 0.08);
}
.notification-icon {
    width: 50px; height: 50px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.notification-icon.tournament { background: rgba(27, 86, 253, 0.2); color: var(--primary-color); }
.notification-icon.payment { background: rgba(16, 185, 129, 0.2); color: var(--success-color); }
.notification-icon.order { background: rgba(59, 130, 246, 0.2); color: var(--secondary-color); }
.notification-icon.system { background: rgba(245, 158, 11, 0.2); color: var(--warning-color); }
.notification-content { flex: 1; }
.notification-content h4 { margin: 0 0 0.25rem 0; }
.notification-content p { color: var(--text-secondary); margin: 0 0 0.25rem 0; }
.notification-content small { color: var(--text-secondary); font-size: 0.75rem; }

/* Auth Pages */
.auth-section {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 2rem;
}
.auth-container { max-width: 500px; width: 100%; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header i {
    font-size: 3rem; color: var(--primary-color);
    margin-bottom: 1rem; display: block;
}
.auth-header h1 { margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-secondary); }
.auth-form { margin: 2rem 0; }
.auth-footer { text-align: center; margin-top: 2rem; }
.auth-footer p { color: var(--text-secondary); }
.auth-footer a { color: var(--primary-color); font-weight: 600; }

/* Delivery Steps */
.delivery-steps { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.delivery-step { display: flex; gap: 1rem; }
.delivery-step .step-icon {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; flex-shrink: 0;
}
.step-info h4 { margin: 0 0 0.25rem 0; font-size: 1rem; }
.step-info p { color: var(--text-secondary); margin: 0; font-size: 0.875rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; }
.feature-list li i { color: var(--success-color); }

/* Responsive */
@media (max-width: 1024px) {
    .podium {
        flex-direction: column;
        align-items: center;
    }
    .podium-item {
        min-width: 280px;
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
    }
    .stat-item i {
        font-size: 1.75rem;
    }
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .tournaments-grid, .store-grid, .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wallet-balance {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .balance-card {
        flex-direction: column;
        gap: 1rem;
    }
    .balance-info h2 {
        font-size: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .step-card {
        padding: 1.5rem 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header .btn {
        width: 100%;
    }
}

/* Tournament Creation Pages */
.create-tournament-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

body {
    background: #f5f5f5;
}

.info-banner {
    display: none;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.game-title .game-name {
    color: #374151;
}

.game-title .matchroom-text {
    color: #dc2626;
}

.game-title::before,
.game-title::after {
    display: none;
}

.tournament-form {
    background: white;
    padding: 2rem;
    border-radius: 0;
}

.tournament-form::before,
.tournament-form::after {
    display: none;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section h3 {
    color: #2563eb;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.form-section h3::before {
    display: none;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.mode-btn,
.team-btn,
.map-btn {
    padding: 0.875rem 1.5rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 1rem;
}

.mode-btn::before,
.team-btn::before,
.map-btn::before {
    display: none;
}

.mode-btn:hover,
.team-btn:hover,
.map-btn:hover {
    border-color: #2563eb;
}

.mode-btn.active,
.team-btn.active,
.map-btn.active {
    background: #dbeafe;
    color: #2563eb;
    border-color: #2563eb;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: none;
}

.setting-row label {
    font-weight: 400;
    color: #374151;
}

.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.toggle-btn::after {
    display: none;
}

.toggle-btn:hover {
    border-color: #2563eb;
}

.toggle-btn.active {
    background: #dbeafe;
    color: #2563eb;
    border-color: #2563eb;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
    color: #374151;
}

.form-input::placeholder {
    color: #d1d5db;
}

.form-input:hover {
    border-color: #2563eb;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-row-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #374151;
    font-size: 0.95rem;
}

.form-group label::before {
    display: none;
}

.rules-dropdown {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.rules-dropdown summary {
    cursor: pointer;
    font-weight: 400;
    color: #dc2626;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.rules-dropdown summary::-webkit-details-marker {
    display: none;
}

.rules-dropdown summary::before {
    display: none;
}

.rules-dropdown summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.rules-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.form-textarea {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s ease;
    min-height: 120px;
    color: #374151;
}

.form-textarea::placeholder {
    color: #d1d5db;
}

.form-textarea:hover {
    border-color: #2563eb;
}

.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.checkbox-label span {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 400;
}

.btn-create-matchroom {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-create-matchroom::before,
.btn-create-matchroom::after {
    display: none;
}

.btn-create-matchroom:hover {
    background: #1d4ed8;
}

.btn-create-matchroom:active {
    background: #1e40af;
}

.points-badge {
    display: none;
}

/* Clean form styling - no decorations */

/* Modern Tournament Cards - Horizontal Layout */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.tournament-card-modern {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tournament-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.tournament-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(1, 24, 216, 0.12), 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.tournament-card-modern:hover::before {
    opacity: 1;
}

.tournament-image-left {
    width: 120px;
    min-width: 120px;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tournament-image-left::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.tournament-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.tournament-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.tournament-info-right {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.tournament-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tournament-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.status-badge-modern {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-ongoing {
    background: #dcfce7;
    color: #166534;
}

.badge-completed {
    background: #e5e7eb;
    color: #374151;
}

.tournament-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item i {
    font-size: 0.85rem;
}

.tournament-bottom {
    margin-top: auto;
    padding-top: 1rem;
}

.time-rewards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-box,
.rewards-box {
    flex: 1;
}

.label-small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.value-with-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.value-with-icon i {
    font-size: 0.85rem;
    color: #6b7280;
}

.rewards-value {
    background: #eff6ff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #1e40af;
    font-weight: 600;
}

.rewards-value i {
    color: #3b82f6;
}

.btn-join-modern {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-join-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-join-modern:hover::before {
    left: 100%;
}

.btn-join-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
}

.btn-join-modern:active {
    transform: translateY(0);
}

/* Created Tournaments Cards - Profile Page */
.full-width {
    grid-column: 1 / -1;
}

.created-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.created-tournament-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.created-tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(1, 24, 216, 0.15);
}

.created-tournament-card.match-ready {
    border-color: #10b981;
    background: linear-gradient(to bottom, #ecfdf5 0%, white 40%);
}

.created-tournament-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.created-tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.created-tournament-image .default-game-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

/* Default Game Icons */
.default-game-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.detail-image.default-game-icon {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.tournament-image.default-game-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(1, 24, 216, 0.05), rgba(27, 86, 253, 0.05));
}

.created-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.match-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.match-status-badge.ready {
    background: #10b981;
    color: white;
}

.match-status-badge.waiting {
    background: #f59e0b;
    color: white;
}

.created-tournament-info {
    padding: 1.25rem;
}

.created-tournament-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.created-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.created-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.created-meta i {
    font-size: 0.85rem;
}

.created-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.created-time i {
    color: #6b7280;
}

.created-rewards {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.created-rewards i {
    color: #3b82f6;
}

.created-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Game Store Cards - Compact Design */
.game-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.game-store-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px rgba(1, 24, 216, 0.1);
}

.game-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--glow-primary);
    background: var(--card-hover);
}

.game-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.game-card-info {
    padding: 0.75rem;
    background: transparent;
}

.game-card-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-provider {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 400;
}

.featured-badge-new {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
}

/* Filter Tabs Responsive */
.filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

.filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .form-row-double {
        grid-template-columns: 1fr;
    }

    .button-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .toggle-group {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
    }

    .game-title::before,
    .game-title::after {
        width: 20px;
    }
    
    .tournament-form {
        padding: 1.5rem;
    }
    
    .btn-create-matchroom {
        font-size: 1rem;
        padding: 1.125rem;
    }
    
    /* Filter tabs on mobile */
    .filter-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-tab {
        width: 100%;
        min-width: unset;
    }
    
    /* Modern tournament cards on mobile */
    .tournament-card-modern {
        flex-direction: column;
    }
    
    .tournament-image-left {
        width: 100%;
        height: 140px;
    }
    
    .tournament-info-right {
        padding: 1.25rem;
    }
    
    .tournament-title-modern {
        font-size: 1.05rem;
    }
    
    .tournament-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .time-rewards {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-join-modern {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Created tournaments grid on mobile */
    .created-tournaments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .created-tournament-image {
        height: 120px;
    }
    
    .created-tournament-info {
        padding: 1rem;
    }
    
    .created-tournament-title {
        font-size: 1rem;
    }
    
    /* 2 game cards per row on mobile */
    .game-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .game-card-title {
        font-size: 0.8rem;
    }
    
    .game-card-provider {
        font-size: 0.7rem;
    }
    
    .game-card-info {
        padding: 0.5rem;
    }
    
    /* Store items grid - 2 per row on mobile */
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Prize breakdown for full tournaments on mobile */
    .prize-breakdown {
        margin-top: 6px;
        padding: 4px 6px;
    }
    
    .prize-breakdown small {
        font-size: 0.7rem;
    }
}

/* Prize breakdown for full tournaments */
.prize-breakdown {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.prize-breakdown small {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}
