/* ==========================================
   GAN - Gaming Arena Network
   Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6c5ce7;
    --primary-dark: #5541d7;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    
    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #1a1a25;
    --border-color: #2d2d3a;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c7c;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a855f7);
    --gradient-gold: linear-gradient(135deg, #f5af19, #f12711);
    --gradient-silver: linear-gradient(135deg, #bdc3c7, #2c3e50);
    --gradient-bronze: linear-gradient(135deg, #c56f33, #8b4513);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(108, 92, 231, 0.4);
    
    /* Spacing */
    --header-height: 70px;
    --container-width: 1200px;
    
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

/* ==========================================
   Utility Classes
   ========================================== */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.small { font-size: 0.85rem; }

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    background: white;
    color: #333;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-google img {
    width: 24px;
    height: 24px;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================
   Header
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--primary);
}

/* Main Nav */
.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    background: var(--gradient-primary);
}

/* Wallet Button */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.wallet-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.wallet-btn i {
    color: var(--warning);
}

.token-balance {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--warning);
}

.token-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.user-avatar:hover {
    border-color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header span {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ==========================================
   Modal
   ========================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h2 {
    font-size: 1.25rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* Login Modal */
.login-modal {
    max-width: 450px;
    text-align: center;
}

.login-header {
    padding: 40px 24px 20px;
}

.login-header .logo {
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.login-header .logo i {
    font-size: 3rem;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tagline {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.login-body {
    padding: 24px;
}

.login-body h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-body > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.login-body .btn-google {
    margin: 0 auto 32px;
}

.login-features {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.login-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.login-features .feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.login-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   Forms
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.phone-input {
    display: flex;
    align-items: stretch;
}

.phone-input .country-code {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.phone-input input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================
   Profile Builder
   ========================================== */

.profile-builder {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: 100vh;
}

.profile-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-header h1 i {
    color: var(--primary);
}

.profile-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

/* WhatsApp Verification */
.verification-section {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
    margin-top: 16px;
}

.verified-badge i {
    font-size: 1.5rem;
}

/* Payment Options */
.payment-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

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

.form-actions {
    text-align: center;
    margin-top: 32px;
}

/* ==========================================
   Dashboard
   ========================================== */

.dashboard-page main {
    padding-top: var(--header-height);
}

.hero-section {
    background: var(--gradient-primary);
    padding: 60px 24px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Game Filters */
.filter-section {
    padding: 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.game-filters {
    display: flex;
    gap: 12px;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Tournaments Grid */
.tournaments-section,
.registrations-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title i {
    color: var(--primary);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Tournament Card */
.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.card-banner {
    position: relative;
    height: 160px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag.open {
    background: var(--success);
}

.status-tag.upcoming {
    background: var(--warning);
    color: #333;
}

.status-tag.active {
    background: var(--danger);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.entry-fee {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.entry-fee strong {
    color: var(--warning);
    font-family: var(--font-display);
}

.prize-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-weight: 600;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 32px;
}

/* ==========================================
   Tournament Detail Page
   ========================================== */

.tournament-page main {
    padding-top: var(--header-height);
}

.tournament-banner {
    position: relative;
    height: 300px;
    background: var(--gradient-primary);
    display: flex;
    align-items: flex-end;
}

.tournament-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 1), rgba(10, 10, 15, 0.3));
}

.banner-content {
    position: relative;
    padding: 40px;
    width: 100%;
}

.game-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tournament-meta {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
}

.tournament-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tournament Details */
.tournament-details {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Status Card */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.status-header {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.status-badge.upcoming {
    background: rgba(253, 203, 110, 0.2);
    color: var(--warning);
}

.status-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.info-item .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-item .value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.registered-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
}

/* Prize Card */
.prize-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.prize-card h3 {
    margin-bottom: 20px;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.prize-item.gold { border-left: 4px solid #FFD700; }
.prize-item.silver { border-left: 4px solid #C0C0C0; }
.prize-item.bronze { border-left: 4px solid #CD7F32; }

.prize-item .position {
    font-weight: 600;
}

.prize-item .reward {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--warning);
}

/* Room Card */
.room-card {
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.room-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-item label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.room-value {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.room-value span {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.copy-btn {
    padding: 8px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.room-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Description & Rules */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.description-card,
.rules-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.description-card h3,
.rules-card h3 {
    margin-bottom: 16px;
}

.rules-card ul {
    list-style: none;
    padding-left: 0;
}

.rules-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.rules-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Participants */
.participants-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.participants-section h3 {
    margin-bottom: 24px;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.participant-card img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.participant-info {
    flex: 1;
}

.participant-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.participant-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   Wallet Page
   ========================================== */

.wallet-page main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Balance Card */
.balance-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.balance-header i {
    font-size: 2rem;
}

.balance-display {
    margin-bottom: 24px;
}

.total-balance {
    text-align: center;
    margin-bottom: 24px;
}

.total-balance .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.total-balance .amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
}

.total-balance .unit {
    font-size: 1.5rem;
    opacity: 0.8;
}

.balance-breakdown {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.breakdown-item .label {
    font-size: 0.9rem;
}

.breakdown-item .value {
    font-family: var(--font-display);
    font-weight: 600;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.balance-actions .btn {
    min-width: 150px;
}

/* Bundles */
.bundles-section {
    margin-bottom: 40px;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.bundle-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.bundle-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.bundle-card.featured {
    border-color: var(--warning);
}

.bundle-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 6px 12px;
    background: var(--warning);
    color: #333;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bundle-tokens {
    text-align: center;
    margin-bottom: 16px;
}

.bundle-tokens .amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warning);
}

.bundle-tokens .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bundle-bonus {
    text-align: center;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-weight: 600;
}

.bundle-price {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.bundle-price .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Transactions */
.transactions-section {
    margin-bottom: 40px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
}

.transaction-icon.purchase { color: var(--success); }
.transaction-icon.spend { color: var(--danger); }
.transaction-icon.reward { color: var(--warning); }
.transaction-icon.transfer { color: var(--secondary); }

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.transaction-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .tokens {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount .tokens.positive { color: var(--success); }
.transaction-amount .tokens.negative { color: var(--danger); }

.transaction-amount .status {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Payment Modal */
.payment-modal .selected-bundle {
    text-align: center;
    padding: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.selected-bundle h3 {
    margin-bottom: 8px;
}

.bundle-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.bundle-details .bonus {
    color: var(--success);
}

.selected-bundle .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.payment-methods h4 {
    margin-bottom: 16px;
}

.method-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.method-option {
    flex: 1;
    cursor: pointer;
}

.method-option input {
    display: none;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.method-option input:checked + .method-card,
.method-option.selected .method-card {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

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

/* Processing Modal */
.processing-modal {
    text-align: center;
}

.processing-content {
    padding: 40px 24px;
}

.processing-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 2.5rem;
}

.processing-content h2 {
    margin-bottom: 12px;
}

.processing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin: 24px 0;
    color: var(--primary);
}

.processing-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-content {
    padding: 40px 24px;
}

.success-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: rgba(0, 184, 148, 0.2);
    border-radius: var(--radius-full);
    font-size: 4rem;
    color: var(--success);
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

/* ==========================================
   Loading Overlay
   ========================================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.9);
    z-index: 3000;
}

.loader {
    text-align: center;
}

.loader i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
    .tournament-details {
        grid-template-columns: 1fr;
    }
    
    .details-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .balance-breakdown {
        flex-direction: column;
        gap: 16px;
    }
    
    .total-balance .amount {
        font-size: 3rem;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .balance-actions .btn {
        width: 100%;
    }
    
    .status-info {
        grid-template-columns: 1fr;
    }
    
    .banner-content h1 {
        font-size: 1.75rem;
    }
    
    .tournament-meta {
        flex-direction: column;
        gap: 8px;
    }
}
