/* FIFA World Cup 2026 Ticketing - Main Stylesheet */

/* CSS Variables for Premium Dark Theme */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #121420;
    --bg-card: rgba(30, 32, 48, 0.6);
    --bg-input: rgba(15, 17, 26, 0.8);
    
    --accent-gold: #e2b13c;
    --accent-gold-hover: #f3c75d;
    --accent-neon: #00f2fe;
    --accent-emerald: #05ffc8;
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-gold { color: var(--accent-gold); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #252839;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Navigation Bar */
.navbar {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-logo .logo-icon {
    color: var(--accent-gold);
    margin-right: 10px;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(226, 177, 60, 0.4));
}

.nav-logo .logo-text span {
    color: var(--accent-neon);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-admin {
    color: var(--accent-neon);
}
.nav-admin:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent-neon);
}

.nav-cart {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.nav-cart:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(226, 177, 60, 0.4);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-primary);
}

/* User Dropdown */
.nav-user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-secondary);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.nav-user-dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* Cards & Layout Items */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 14, 23, 0.6) 0%, rgba(15, 17, 26, 0.95) 70%), 
                url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 80px 50px;
    text-align: left;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.15) 0%, transparent 55%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: rgba(226, 177, 60, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(226, 177, 60, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(5, 255, 200, 0.2));
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c4962c 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(226, 177, 60, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    box-shadow: 0 6px 24px rgba(226, 177, 60, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #0b0c10;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.5);
}

/* Search and Filter Form */
.search-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: -80px;
    margin-bottom: 55px;
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(226, 177, 60, 0.2);
}

select.form-control option {
    background-color: var(--bg-secondary);
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
}

.section-title span {
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 5px;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.1);
}

.match-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-neon);
}

.match-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.teams-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.team-name {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
}

.vs-divider {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 30px;
}

.match-details-list {
    margin-bottom: 25px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-details-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-details-list li i {
    color: var(--accent-gold);
    width: 16px;
}

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

.match-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-price span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

/* Authentication Page */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(226, 177, 60, 0.3));
}

.auth-header h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--accent-neon);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* Profile page / Booking History */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.profile-sidebar {
    height: fit-content;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-neon) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bg-primary);
    margin: 0 auto 20px;
}

.profile-info {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-info h3 {
    font-family: var(--font-header);
    font-size: 1.3rem;
}

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

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu-item {
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.profile-menu-item:hover, .profile-menu-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-menu-item.active {
    border-left: 3px solid var(--accent-gold);
}

.booking-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.booking-card:hover {
    border-color: rgba(255,255,255,0.15);
}

.booking-details h4 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.booking-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.booking-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Match Details / Stadium Seat Selection */
.match-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(74, 14, 23, 0.7) 0%, rgba(18, 20, 32, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.match-header-teams {
    display: flex;
    align-items: center;
    gap: 20px;
}

.match-header-teams .team-flag {
    width: 70px;
    height: 46px;
    margin-bottom: 0;
}

.match-header-teams h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
}

.stadium-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
}

/* Interactive Seating Component */
.stadium-map-wrapper {
    text-align: center;
}

.stadium-canvas-container {
    background: #0f1016;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Stadium CSS Vector Map */
.stadium-pitch {
    width: 200px;
    height: 120px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    position: relative;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.stadium-pitch::after {
    content: '';
    width: 80px;
    height: 80px;
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    position: absolute;
}

.stadium-pitch::before {
    content: '';
    width: 2px;
    height: 100%;
    background: rgba(16, 185, 129, 0.4);
    position: absolute;
}

.stadium-stand {
    position: absolute;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.stand-north {
    top: 15px;
    background: rgba(226, 177, 60, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.stand-north:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.stand-south {
    bottom: 15px;
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}
.stand-south:hover {
    background: var(--accent-neon);
    color: var(--bg-primary);
}

.stand-west {
    left: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(5, 255, 200, 0.15);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    padding: 20px 8px;
}
.stand-west:hover {
    background: var(--accent-emerald);
    color: var(--bg-primary);
}

.stand-east {
    right: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
    padding: 20px 8px;
}
.stand-east:hover {
    background: var(--danger);
    color: white;
}

/* Detail Seats Grid Picker */
.seats-picker-section {
    display: none; /* Controlled by JS */
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.seats-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-width: 450px;
    margin: 20px auto;
}

.seat-item {
    background: #252839;
    border: 1px solid rgba(255,255,255,0.05);
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.seat-item:hover:not(.occupied) {
    background: var(--accent-neon);
    color: var(--bg-primary);
    transform: scale(1.15);
}

.seat-item.selected {
    background: var(--accent-emerald) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 10px var(--accent-emerald);
}

.seat-item.occupied {
    background: #1a1c26 !important;
    color: #4a5568 !important;
    cursor: not-allowed;
    opacity: 0.4;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.available { background: #252839; }
.legend-color.selected { background: var(--accent-emerald); }
.legend-color.occupied { background: #1a1c26; opacity: 0.4; }

/* Booking Control Side Form */
.booking-control-card {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.booking-control-card h3 {
    font-family: var(--font-header);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.category-selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.category-select-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-select-item:hover, .category-select-item.active {
    background: rgba(0, 242, 254, 0.03);
    border-color: var(--accent-neon);
}

.category-select-item.active {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.cat-details {
    display: flex;
    flex-direction: column;
}

.cat-name {
    font-weight: 700;
}

.cat-availability {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cat-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.ticket-qty-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qty-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: var(--accent-neon);
    color: var(--bg-primary);
}

.qty-value {
    font-size: 1.2rem;
    font-weight: 700;
    width: 25px;
    text-align: center;
}

/* Cart Page & Reservation Countdown */
.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.timer-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.cart-table-card {
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    border-bottom: 2px solid var(--border-color);
    padding: 15px 20px;
    font-family: var(--font-header);
    color: var(--text-secondary);
    font-weight: 600;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-match {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-match h4 {
    font-family: var(--font-header);
    font-size: 1.1rem;
}

.cart-item-match p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.remove-item-btn:hover {
    color: var(--danger);
}

.cart-summary-card {
    height: fit-content;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Payment Layout & Tab Selection */
.checkout-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.payment-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-header);
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.payment-tab-btn:hover {
    color: white;
}

.payment-tab-btn.active {
    color: var(--accent-neon);
    border-bottom-color: var(--accent-neon);
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

/* Card 3D Flip Visualization */
.card-wrapper {
    perspective: 1000px;
    margin: 20px auto 40px;
    width: 320px;
    height: 190px;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-front {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 2;
}

.card-back {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transform: rotateY(180deg);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e2b13c 0%, #f3c75d 100%);
    border-radius: 6px;
}

.card-logo {
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    align-self: flex-end;
}

.card-number-display {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    margin: 15px 0;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
}

.card-holder-display, .card-expiry-display {
    display: flex;
    flex-direction: column;
}

.card-holder-display span, .card-expiry-display span {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-holder-display .val, .card-expiry-display .val {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.card-magnetic-strip {
    background: #000;
    height: 35px;
    margin-left: -22px;
    margin-right: -22px;
    margin-top: 5px;
}

.card-signature-area {
    background: #e2e8f0;
    height: 35px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    color: #334155;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.cvv-display {
    background: white;
    padding: 2px 6px;
    border-radius: 2px;
}

/* PayPal Simulated Overlay & Modal */
.paypal-simulator-box {
    text-align: center;
    padding: 30px 10px;
}

.paypal-logo-styled {
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    color: #253b80;
    margin-bottom: 25px;
}

.paypal-logo-styled span {
    color: #0079c1;
}

.simulated-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
}

.simulated-modal-content {
    background: white;
    color: #333;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.simulated-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.simulated-modal-body .form-group {
    margin-bottom: 15px;
}

.simulated-modal-body label {
    color: #666;
    font-weight: 600;
}

.simulated-modal-body .form-control {
    background: #f1f5f9;
    color: #333;
    border-color: #cbd5e1;
}

.simulated-modal-body .form-control:focus {
    border-color: #0079c1;
    box-shadow: 0 0 10px rgba(0, 121, 193, 0.2);
}

/* Crypto Simulators & Metamask Wallet */
.crypto-simulator-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.wallet-connector-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.metamask-btn {
    background: #e27625;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.metamask-btn:hover {
    background: #d46514;
    box-shadow: 0 4px 15px rgba(226, 118, 37, 0.4);
}

.crypto-payment-details {
    display: none; /* Controlled by JS */
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.qr-code-box {
    background: white;
    padding: 12px;
    width: 160px;
    height: 160px;
    margin: 20px auto;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

.address-copy-row {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    max-width: 420px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.85rem;
}

.address-copy-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.address-copy-row button {
    background: none;
    border: none;
    color: var(--accent-neon);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.address-copy-row button:hover {
    color: white;
}

/* Spinner / Loader overlays */
.loader-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.05);
    border-top: 4px solid var(--accent-neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Receipt Page Styles */
.receipt-wrapper {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    margin: 0 auto 25px;
    animation: bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.receipt-details-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
}

.receipt-details-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.receipt-details-table td.label {
    color: var(--text-secondary);
    font-weight: 500;
}

.receipt-details-table td.value {
    text-align: right;
    font-weight: 600;
}

/* Printable E-Ticket layout */
.ticket-wrapper {
    max-width: 750px;
    margin: 50px auto;
}

.printable-ticket {
    background: radial-gradient(circle at 100% 50%, transparent 15px, #1a1e29 16px), 
                radial-gradient(circle at 0% 50%, transparent 15px, #1a1e29 16px);
    background-size: 100% 100%;
    background-position: left, right;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.printable-ticket::after {
    content: '';
    position: absolute;
    left: 70%;
    top: 5%;
    bottom: 5%;
    border-left: 2px dashed rgba(255,255,255,0.08);
}

.ticket-main {
    width: 70%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ticket-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.ticket-stage {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
}

.ticket-match-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.ticket-info-item span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ticket-info-item p {
    font-size: 0.88rem;
    font-weight: 600;
}

.ticket-stub {
    width: 30%;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.15);
}

.stub-match {
    font-family: var(--font-header);
    font-size: 0.92rem;
    font-weight: 700;
}

.stub-seat {
    margin: 15px 0;
}

.stub-seat span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.stub-seat p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.barcode-area {
    margin-top: 15px;
}

.barcode-svg {
    height: 45px;
    width: 120px;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.ticket-qr {
    width: 100px;
    height: 100px;
    background: white;
    padding: 6px;
    border-radius: 6px;
    margin: 10px auto;
}

.ticket-qr img {
    width: 100%;
    height: 100%;
}

/* Admin Panel Styling */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-info p {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.stat-icon.sales { background: rgba(0, 242, 254, 0.1); color: var(--accent-neon); }
.stat-icon.revenue { background: rgba(5, 255, 200, 0.1); color: var(--accent-emerald); }
.stat-icon.matches { background: rgba(226, 177, 60, 0.1); color: var(--accent-gold); }
.stat-icon.users { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.admin-table-card {
    overflow-x: auto;
}

/* Site Footer */
.site-footer {
    background: #08090d;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    font-size: 0.88rem;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 50px;
}

.footer-brand .footer-logo {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-brand .footer-logo i {
    color: var(--accent-gold);
}

.footer-brand .footer-logo span {
    color: var(--accent-neon);
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-header);
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--accent-gold);
}

.footer-partners {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.partners-title {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.partner {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .search-form button {
        grid-column: span 2;
    }
    .stadium-container {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-user-dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.02);
        margin-top: 5px;
    }
    .hero-section {
        padding: 40px 20px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .search-widget {
        margin-top: -30px;
    }
    .printable-ticket {
        flex-direction: column;
    }
    .printable-ticket::after {
        left: 5%;
        right: 5%;
        top: 70%;
        bottom: auto;
        border-left: none;
        border-top: 2px dashed rgba(255,255,255,0.08);
    }
    .ticket-main {
        width: 100%;
        padding: 25px;
    }
    .ticket-stub {
        width: 100%;
        padding: 25px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-brand, .footer-links, .footer-contact {
        grid-column: span 1;
    }
}

/* Print Stylesheet for Ticket Download */
@media print {
    body * {
        visibility: hidden;
    }
    .ticket-wrapper, .ticket-wrapper * {
        visibility: visible;
    }
    .ticket-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .printable-ticket {
        background: #1a1e29 !important;
        color: white !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    .ticket-qr, .barcode-svg {
        background: white !important;
    }
}
