/* ==========================================================================
   EVENT CS 2026 — STYLESHEET
   Aesthetic: Premium Cyberpunk / Purple Neon Esports Portal
   Author: Antigravity Code Assistant / EventAndParty
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-deep: #07081a;
    --bg-dark: #05162b;
    --bg-card: #180b33;
    --bg-input: #120726;
    --primary: #cecb3f;
    --primary-glow: #b6b321;
    --primary-dark: #a2ad06;
    --accent: #ec4899;
    --accent-glow: #d6d6d6;
    --cyan: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #bb1d1d;
    --text-main: #f3e8ff;
    --text-muted: #a78bfa;
    --border-color: #b6c52f;
    --glass-bg: rgba(24, 11, 51, 0.6);
    --glass-border: rgba(168, 85, 247, 0.2);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-gaming: 'Orbitron', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Offset anchor targets so sticky header doesn't cover them */
section[id] {
    scroll-margin-top: 96px; /* adjust if header height changes */
}

/* --- BASE STYLING --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Ensure anchor scrolling accounts for the fixed header height */
    scroll-padding-top: 96px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-glow-purple {
    color: #fff;
    text-shadow: 0 0 10px var(--primary), 0 0 30px var(--primary-glow);
}
.font-orbitron { font-family: var(--font-gaming); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-block { display: block; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.w-full { width: 100%; }

/* --- BACKGROUNDS & GLOW EFFECT --- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -3;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
}

.bg-purple-glow-1 {
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
}

.bg-purple-glow-2 {
    bottom: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5), 0 0 10px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary);
    color: #fff;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- HEADER / NAVIGATION --- */
.main-header {
    background: rgba(8, 3, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--primary);
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.event-badge-glow {
    display: inline-flex;
    align-items: center;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--accent-glow);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-gaming);
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.event-details-bar {
    display: flex;
    gap: 40px;
    background: rgba(24, 11, 51, 0.4);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

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

.detail-item i {
    font-size: 1.8rem;
}

.detail-item .d-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item .d-val {
    font-weight: 700;
    color: #fff;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

/* Simulated monitor styling */
.esports-monitor {
    width: 100%;
    perspective: 1000px;
}

.monitor-header {
    background: #1c0e3a;
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 8px 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.monitor-header .live-label {
    font-weight: 700;
    letter-spacing: 1px;
}

.monitor-header .viewer-count {
    color: var(--cyan);
    font-weight: 600;
}

.monitor-screen {
    width: 100%;
    height: 280px;
    background: #000;
    border: 2px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(8, 3, 20, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.screen-overlay {
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.map-label, .tourney-label {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.map-label {
    color: var(--warning);
}

.live-stream-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2;
    margin: auto 0;
}

.stream-team {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-gaming);
    font-weight: 900;
}

.stream-team .logo {
    font-size: 2.2rem;
}

.stream-team .name {
    font-size: 1.3rem;
}

.stream-team .score {
    background: var(--bg-deep);
    border: 2px solid var(--primary);
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.stream-vs {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

.stream-dynamic-ticker {
    z-index: 2;
    background: rgba(8, 3, 20, 0.85);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.3s ease-out;
}

.stream-dynamic-ticker i {
    color: var(--accent);
}

.monitor-stand {
    width: 60px;
    height: 40px;
    background: #1c0e3a;
    border: 1px solid var(--border-color);
    margin: 0 auto;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

/* --- DOMAINS SECTION --- */
.about-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 7, 35, 0.3);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-gaming);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid-5-domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.domain-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
}

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

.domain-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.domain-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.domain-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- TICKETS SECTION --- */
.tickets-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ticket-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(24, 11, 51, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

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

.ticket-card.vip {
    border-color: var(--accent);
}

.ticket-card.vip:hover {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.ticket-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.ticket-name {
    font-family: var(--font-gaming);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ticket-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 60px;
}

.ticket-stock {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.stock-indicator-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-deep);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.stock-indicator-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
}

.ticket-card.vip .stock-indicator-fill {
    background: var(--accent);
}

.ticket-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    margin-bottom: 25px;
}

.ticket-price-row .price-val {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-gaming);
}

.ticket-price-row .price-currency {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.ticket-action-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.ticket-action-group .btn-sm {
    padding: 8px 14px;
}



/* --- LIVE DRAWER / BRACKETS --- */
.live-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 7, 35, 0.2);
}

.live-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.bracket-panel, .match-detail-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    min-height: 480px;
}

.panel-title {
    font-family: var(--font-gaming);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-item {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.match-item:hover, .match-item.active {
    border-color: var(--primary);
    transform: scale(1.01);
}

.match-item.active {
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.match-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-item-header .stage-badge {
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary-glow);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.match-status-badge {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.match-status-badge.live {
    color: var(--accent);
}

.match-status-badge.ongoing {
    color: var(--primary);
}

.match-status-badge.upcoming {
    color: var(--warning);
}

.match-status-badge.completed {
    color: var(--success);
}

.match-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.match-team-row.winner {
    color: #fff;
    text-shadow: 0 0 5px var(--primary);
}

.match-team-logo {
    font-size: 1.2rem;
}

.match-scores-grid {
    text-align: right;
    font-family: var(--font-gaming);
    font-weight: 700;
    font-size: 1.2rem;
}

.match-scores-grid .score-row {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 20px;
}

.panel-empty-state i {
    font-size: 4rem;
    color: var(--border-color);
}

/* Detailed Match view */
.detailed-match-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

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

.detail-header .stage {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.detail-header .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-board {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
}

.detail-team {
    text-align: center;
    width: 40%;
}

.detail-team .logo {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.detail-team .name {
    font-family: var(--font-gaming);
    font-size: 1.25rem;
    font-weight: 800;
}

.detail-team .captain {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-score {
    font-family: var(--font-gaming);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    background: var(--bg-deep);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: auto;
    min-width: 140px;
    height: 90px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.detail-score.live-pulse {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.detail-vs {
    font-weight: 700;
    color: var(--text-muted);
}

.detail-logs-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    flex-grow: 1;
}

.logs-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logs-box {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.log-row {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-row .round-badge {
    background: var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.log-row .log-text {
    flex-grow: 1;
    margin: 0 15px;
}

.log-row .cond {
    font-weight: 600;
}

.log-row .cond.defusal { color: var(--cyan); }
.log-row .cond.explosion { color: var(--warning); }
.log-row .cond.elimination { color: var(--accent); }

/* --- CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(8, 3, 20, 0.8);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.cart-drawer.open {
    right: 0;
}

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

.close-drawer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.close-drawer-btn:hover {
    color: #fff;
}

.cart-drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

.cart-drawer-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-deep);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total-price {
    color: var(--primary-glow);
}

.empty-cart-message {
    text-align: center;
    margin: auto 0;
    color: var(--text-muted);
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- MODAL OVERLAYS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 3, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.checkout-modal-card {
    max-width: 600px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #fff;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.checkout-steps .step {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

.checkout-steps .step.active {
    color: var(--primary-glow);
}

.checkout-step-content {
    display: none;
}

.checkout-step-content.active {
    display: block;
}

.modal-title {
    font-family: var(--font-gaming);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* --- FORMS --- */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, textarea {
    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);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Payment steps styling */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.payment-card {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.payment-card.active {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
}

.payment-card-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.payment-method-details {
    display: none;
    margin-bottom: 25px;
}

.payment-method-details.active {
    display: block;
}

.twint-simulation {
    text-align: center;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.twint-qr-mock {
    font-size: 5rem;
    color: white;
    background: white;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.twint-qr-mock i {
    color: #000;
}

.twint-logo-placeholder {
    font-size: 0.75rem;
    font-weight: 800;
    color: #008040;
    background: #e6ffe6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

.twint-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-summary-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Success screens */
.success-screen {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.ticket-receipt {
    background: #ffffff;
    color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ticket-receipt-header {
    background: #000;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-badge {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.ticket-receipt-header h4 {
    font-family: var(--font-gaming);
    margin-top: 4px;
    font-size: 1.1rem;
}

.ticket-receipt-logo {
    font-weight: 800;
    font-size: 1.2rem;
}

.ticket-receipt-logo span {
    color: var(--primary);
}

.ticket-receipt-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-grow: 1;
}

.receipt-info-grid .label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #777;
    font-weight: 700;
}

.receipt-info-grid .val {
    font-weight: 700;
    font-size: 0.85rem;
}

.receipt-qr-code {
    border-left: 1px dashed #ccc;
    padding-left: 20px;
    text-align: center;
}

.receipt-qr-code i {
    font-size: 3.5rem;
    color: #000;
}

.receipt-qr-code .qr-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    color: #555;
    margin-top: 5px;
}

/* --- ADMIN OVERLAYS --- */
.admin-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-deep);
    z-index: 150;
    display: none;
    overflow-y: auto;
    padding: 40px 0;
}

.admin-full-overlay.open {
    display: block;
}

.admin-panel-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.admin-panel-header h2 {
    font-family: var(--font-gaming);
    font-size: 1.5rem;
}

.admin-auth-view {
    display: none;
}

.admin-auth-view.active {
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-card h3 {
    font-family: var(--font-gaming);
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-intro {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.alert {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.alert i {
    font-size: 1.1rem;
    color: var(--primary-glow);
}

.alert-warning-outline {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--warning);
}

.alert-warning-outline i { color: var(--warning); }

.security-shield-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
/* Admin Dashboard View */
.admin-dashboard-view {
    display: none;
}

.admin-dashboard-view.active {
    display: block;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

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

.stat-card.span-2 {
    grid-column: span 1;
}

@media (min-width: 900px) {
    .stat-card.span-2 {
        grid-column: span 1;
    }
}

.stat-card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.stat-number {
    font-family: var(--font-gaming);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.stat-online-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.stat-financial-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.financial-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.val-current {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-gaming);
    color: var(--cyan);
}

.val-target {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-deep);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.financial-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
    margin-bottom: 30px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.admin-tab-btn:hover {
    color: #fff;
}

.admin-tab-btn.active {
    color: var(--primary-glow);
    border-bottom-color: var(--primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin lists & Tables */
.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-card);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.admin-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.02);
}

.admin-table td {
    color: var(--text-main);
}

.badge-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-status.paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* Admin Matches Control */
.admin-matches-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.admin-match-control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

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

.control-card-header h4 {
    font-family: var(--font-gaming);
    font-weight: 700;
}

.control-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.control-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 35%;
}

.control-team .logo { font-size: 2.5rem; }
.control-team .name { font-weight: 700; font-size: 0.9rem; }

.control-score-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-adjust-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.score-adjust-btn:hover { border-color: var(--primary); }

.control-score-val {
    font-family: var(--font-gaming);
    font-size: 1.8rem;
    font-weight: 800;
}

.control-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

/* --- FOOTER --- */
.main-footer {
    background: #05020c;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 900px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-desc {
    font-size: 0.85rem;
    margin: 20px 0;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.footer-links h4, .footer-contact h4 {
    color: #fff;
    font-family: var(--font-gaming);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-glow);
    padding-left: 5px;
}

.sponsors-grid-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: #030107;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

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

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
    .main-header {
        position: relative;
        height: auto;
        padding: 14px 0;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        justify-items: center;
        align-items: center;
    }

    .hero-text-content,
    .hero-gfx-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-gfx-content {
        display: flex;
        justify-content: center;
    }

    .hero-gfx-content .esports-monitor {
        max-width: 100%;
    }
    
    .hero-title { font-size: 2.8rem; }
    .hero-tagline { margin: 0 auto 30px auto; max-width: 100%; }
    .event-details-bar {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        max-width: 520px;
        margin: 0 auto 40px auto;
    }
    
    .hero-cta-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-cta-group .btn {
        min-width: 170px;
    }
    
    .live-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .ticket-receipt-body {
        flex-direction: column;
        gap: 20px;
    }

    .cart-drawer {
        width: min(100%, 360px);
    }

    .modal-card {
        max-width: 95%;
        padding: 28px 20px;
    }

    .checkout-modal-card {
        max-width: 95%;
        padding: 28px 18px;
    }

    .checkout-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .checkout-step-content {
        padding: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-header {
        padding: 12px 10px;
    }

    .logo-link {
        font-size: 1.15rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .nav-menu ul {
        gap: 8px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
    }

    .event-details-bar {
        width: 100%;
    }

    .monitor-screen {
        height: auto;
        min-height: 220px;
        padding: 18px;
    }

    .ticket-receipt {
        padding: 20px;
    }

    .checkout-security-badges {
        grid-template-columns: 1fr;
    }

    .footer-bottom-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0;
    }

    .hero-tagline {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 12px 18px;
    }

    .hero-gfx-content .esports-monitor {
        width: 100%;
        max-width: 100%;
    }

    .monitor-screen {
        min-height: 200px;
        padding: 16px;
    }

    .monitor-header {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        text-align: center;
    }

    .screen-overlay {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .screen-overlay span {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 12px;
    }
}

@media (max-width: 500px) {
    .hero-section {
        padding: 50px 0 60px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .event-details-bar {
        gap: 12px;
        padding: 16px;
    }

    .event-details-bar .detail-item {
        gap: 10px;
    }

    .hero-cta-group {
        gap: 10px;
    }

    .hero-gfx-content {
        margin-top: 20px;
    }

    .monitor-screen {
        min-height: 180px;
    }

    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .hero-section {
        padding: 40px 0 50px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .hero-tagline {
        font-size: 0.82rem;
        max-width: 100%;
    }

    .event-badge-glow {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .event-details-bar {
        padding: 14px;
        gap: 8px;
    }

    .detail-item {
        gap: 10px;
    }

    .detail-item i {
        font-size: 1.4rem;
    }

    .hero-cta-group {
        gap: 8px;
    }

    .hero-cta-group .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .hero-gfx-content {
        margin-top: 16px;
    }

    .monitor-header {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .screen-overlay {
        gap: 6px;
    }

    .screen-overlay span {
        font-size: 0.7rem;
    }

    .monitor-screen {
        min-height: 160px;
        padding: 14px;
    }

    .container {
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .hero-section {
        padding: 36px 0 42px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-tagline {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .event-badge-glow {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .event-details-bar {
        padding: 12px;
        gap: 6px;
    }

    .detail-item i {
        font-size: 1.2rem;
    }

    .hero-cta-group {
        gap: 6px;
    }

    .hero-cta-group .btn {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .hero-gfx-content {
        margin-top: 12px;
    }

    .monitor-screen {
        min-height: 150px;
        padding: 12px;
    }

    .monitor-header {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .screen-overlay span {
        font-size: 0.65rem;
    }

    .container {
        padding: 0 8px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.45rem;
    }

    .hero-tagline {
        font-size: 0.72rem;
    }

    .event-badge-glow {
        padding: 3px 8px;
    }

    .hero-cta-group .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .monitor-screen {
        min-height: 140px;
        padding: 10px;
    }

    .monitor-header {
        padding: 5px 8px;
        font-size: 0.6rem;
    }

    .screen-overlay span {
        font-size: 0.6rem;
    }

    .event-details-bar {
        padding: 10px;
    }

    .hero-container {
        gap: 24px;
    }

    .container {
        padding: 0 6px;
    }
}

@media (max-aspect-ratio: 5/9) {
    .hero-section {
        padding: 32px 0 38px;
    }

    .hero-container {
        gap: 18px;
    }

    .hero-title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 0.72rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .event-badge-glow {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .event-details-bar {
        padding: 10px;
        gap: 6px;
    }

    .detail-item i {
        font-size: 1.1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .hero-gfx-content {
        margin-top: 10px;
    }

    .monitor-screen {
        min-height: 140px;
        padding: 10px;
    }

    .monitor-header {
        padding: 5px 8px;
        font-size: 0.6rem;
    }

    .screen-overlay {
        flex-direction: column;
        gap: 4px;
    }

    .screen-overlay span {
        font-size: 0.6rem;
    }

    .container {
        padding: 0 6px;
    }
}

/* --- SECURE PAYMENT STYLING --- */
.card-input-wrapper {
    position: relative;
    width: 100%;
}

.card-brand-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
}

.card-brand-icon.visa {
    color: #55a3ff !important; /* Premium Visa Light Blue */
    text-shadow: 0 0 10px rgba(85, 163, 255, 0.4);
}

.card-brand-icon.mastercard {
    color: #ff9d5c !important; /* Premium Mastercard Orange */
    text-shadow: 0 0 10px rgba(255, 157, 92, 0.4);
}

.card-brand-icon.amex {
    color: #22d3ee !important; /* Premium Amex Teal */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.validation-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
    min-height: 16px;
    display: block;
}

input.invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important;
}

/* Trust Badges */
.checkout-security-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 25px;
}

.security-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-badge-item i {
    font-size: 1.4rem;
}

.badge-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.badge-sub {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* 3D Secure Modal & Loading elements */
.secure-modal-card {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3) !important;
}

.d-none {
    display: none !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-success {
    color: var(--success) !important;
}

@media (max-width: 600px) {
    .checkout-security-badges {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
