/* ==========================================================================
   DESIGN TOKENS & ESPORTS PALETTE (DESIGN.md)
   ========================================================================== */
:root {
    --font-family-primary: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-text-primary: #ffffff;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-tertiary: #ffd6f5;
    --color-text-inverse: #ffb9ed;

    --color-surface-base: #030008;
    --color-surface-muted: #1e003a;
    --color-surface-raised: #140026;
    --color-surface-card: rgba(22, 5, 38, 0.78);
    --color-surface-input: rgba(10, 2, 18, 0.85);

    --color-border-default: rgba(255, 255, 255, 0.12);
    --color-border-subtle: rgba(255, 255, 255, 0.06);
    --color-border-muted: #a5f3fc;
    --color-border-focus: #ff00c8;

    --color-accent-orange: #ff8c00;
    --color-accent-gold: #ffbe3b;
    --color-accent-pink: #ff00c8;
    --color-accent-cyan: #00d2ff;
    --color-error: #ff4d6d;
    --color-success: #10b981;

    --space-1: 8px;
    --space-2: 10px;
    --space-3: 12px;
    --space-4: 15px;
    --space-5: 16px;
    --space-6: 20px;
    --space-7: 24px;
    --space-8: 32px;

    --radius-xs: 8px;
    --radius-sm: 16px;
    --radius-md: 20px;

    --shadow-orange-glow: 0 0 15px rgba(255, 140, 0, 0.25), inset 0 0 12px rgba(255, 140, 0, 0.15);
    --shadow-pink-glow: 0 0 20px rgba(255, 0, 200, 0.25), inset 0 0 15px rgba(255, 0, 200, 0.12);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(36, 0, 70, 0.4);

    --motion-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --motion-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-surface-base);
    color: var(--color-text-primary);
    min-height: 100vh;
    line-height: 1.5;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(45, 0, 85, 0.65) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(30, 0, 60, 0.75) 0%, transparent 45%),
        radial-gradient(circle at 50% 40%, rgba(255, 0, 200, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
    padding-bottom: 6rem;
    overflow-x: hidden;
}

body.opener-active {
    overflow: hidden !important;
}

/* ==========================================================================
   CINEMATIC OPENER SPLASH OVERLAY
   ========================================================================== */
.opener-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.opener-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.btn-skip-opener {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 100002;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 5, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-secondary);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all var(--motion-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-skip-opener:hover {
    background: rgba(255, 0, 200, 0.25);
    border-color: var(--color-accent-pink);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.4);
    transform: translateY(-2px);
}

.opener-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    transition: opacity 0.6s ease;
    z-index: 100000;
}

.opener-video-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.opener-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100vw;
    max-height: 100vh;
}

.opener-logo-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(40, 0, 80, 0.85) 0%, #000000 75%);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100001;
    padding: var(--space-6);
}

/* Ambient Glowing Top Line Removed */
.ambient-glow {
    display: none;
}

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-5);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   ICON UTILITIES
   ========================================================================== */
.icon-xs {
    width: 13px;
    height: 13px;
}

.icon-sm {
    width: 15px;
    height: 15px;
}

.icon-md {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 20px;
    height: 20px;
}

.icon-xl {
    width: 24px;
    height: 24px;
}

.icon-xxl {
    width: 36px;
    height: 36px;
}

.icon-pink {
    color: var(--color-accent-pink);
}

.icon-gold {
    color: var(--color-accent-gold);
}

.icon-cyan {
    color: var(--color-accent-cyan);
}

.icon-shrink-0 {
    flex-shrink: 0;
}

/* Utilities */
.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   TOP NAVBAR
   ========================================================================== */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(18, 2, 32, 0.7);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(18px);
    margin-bottom: var(--space-7);
    flex-wrap: wrap;
    gap: 16px;
}

.nav-brands {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-event {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 0, 200, 0.4));
    transition: transform var(--motion-fast);
}

.brand-logo-event:hover {
    transform: scale(1.05);
}

.brand-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.18);
}

.brand-logo-ml {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.4));
    transition: transform var(--motion-fast);
}

.brand-logo-ml:hover {
    transform: scale(1.05);
}

.nav-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    background: rgba(36, 0, 70, 0.7);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 200, 0.3);
    box-shadow: 0 0 12px rgba(255, 0, 200, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   HERO SPOTLIGHT BANNER
   ========================================================================== */
.hero-banner {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    padding: 2.8rem 2.2rem;
    backdrop-filter: blur(20px);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 0, 200, 0.2) 0%, rgba(255, 140, 0, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-logos-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.hero-logo-main {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 25px rgba(255, 0, 200, 0.35));
}

.hero-logo-ml {
    max-height: 60px;
}

.hero-cross {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 200, 0.12);
    border: 1px solid var(--color-accent-pink);
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.2);
    color: var(--color-text-inverse);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: var(--space-4);
}

h1.hero-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: var(--space-3);
    line-height: 1.25;
}

p.hero-desc {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto var(--space-6);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.highlight-pill svg {
    color: var(--color-accent-gold);
}

/* ==========================================================================
   WEB BANNER SECTION
   ========================================================================== */
.web-banner-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-8);
    border: 1px solid var(--color-border-default);
    box-shadow: var(--shadow-card), 0 0 35px rgba(255, 0, 200, 0.25);
    position: relative;
    background: rgba(22, 5, 38, 0.6);
    line-height: 0;
    transition: all var(--motion-normal);
}

.web-banner-wrapper:hover {
    border-color: rgba(255, 0, 200, 0.4);
    box-shadow: var(--shadow-card), 0 0 45px rgba(255, 0, 200, 0.4);
}

.web-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--motion-normal);
}

.web-banner-wrapper:hover .web-banner-img {
    transform: scale(1.012);
}

/* ==========================================================================
   FORM SECTIONS & CARDS
   ========================================================================== */
.form-section {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    padding: var(--space-7);
    margin-bottom: var(--space-7);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: all var(--motion-fast);
}

.form-section:focus-within {
    border-color: rgba(255, 0, 200, 0.45);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 0, 200, 0.12);
    border: 1px solid rgba(255, 0, 200, 0.35);
    box-shadow: 0 0 12px rgba(255, 0, 200, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title-wrap h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-wrap p {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

/* ==========================================================================
   INPUTS & CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group:last-child {
    margin-bottom: 0;
}

label.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.required-mark {
    color: var(--color-accent-pink);
    font-weight: 900;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color var(--motion-fast);
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: var(--color-surface-input);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xs);
    transition: all var(--motion-fast);
}

.form-control.has-icon {
    padding-left: 44px;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    resize: vertical;
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-pink);
    box-shadow: var(--shadow-pink-glow);
    background: rgba(18, 4, 30, 0.95);
}

.form-control:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-accent-pink);
}

.input-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        padding: var(--space-6);
    }

    h1.hero-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   ROSTER PLAYER CARDS
   ========================================================================== */
.roster-card {
    background: rgba(14, 2, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    position: relative;
    transition: all var(--motion-fast);
}

.roster-card:hover {
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-2px);
}

.roster-card.captain-card {
    border: 1px solid rgba(255, 190, 59, 0.45);
    background: rgba(22, 5, 38, 0.85);
    box-shadow: 0 0 20px rgba(255, 190, 59, 0.12);
}

.roster-card.reserve-card {
    border-color: rgba(0, 210, 255, 0.35);
}

.roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: 8px;
}

.roster-badge {
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roster-badge.captain {
    color: var(--color-accent-gold);
}

.roster-badge.member {
    color: var(--color-text-secondary);
}

.roster-badge.reserve {
    color: var(--color-accent-cyan);
}

.captain-note-badge {
    font-size: 12px;
    color: var(--color-accent-gold);
    background: rgba(255, 190, 59, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 190, 59, 0.25);
}

/* ==========================================================================
   DROPZONE FILE UPLOADER
   ========================================================================== */
.dropzone-container {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xs);
    padding: var(--space-6);
    text-align: center;
    background: rgba(10, 2, 20, 0.5);
    cursor: pointer;
    transition: all var(--motion-fast);
    position: relative;
}

.dropzone-container:hover,
.dropzone-container.drag-over {
    border-color: var(--color-accent-pink);
    background: rgba(36, 0, 70, 0.45);
    box-shadow: var(--shadow-pink-glow);
}

.dropzone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.dropzone-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    color: var(--color-accent-pink);
    transition: all var(--motion-fast);
}

.dropzone-container:hover .dropzone-icon-wrap {
    transform: translateY(-3px);
    background: rgba(255, 0, 200, 0.15);
}

.dropzone-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.dropzone-subtext {
    font-size: 12px;
    color: var(--color-text-muted);
}

.dropzone-preview {
    display: none;
    margin-top: var(--space-4);
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 16px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-border-default);
}

.dropzone-preview img {
    max-width: 56px;
    max-height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--color-border-default);
}

.dropzone-file-name {
    font-size: 13px;
    color: var(--color-border-muted);
    font-family: monospace;
    word-break: break-all;
}

/* ==========================================================================
   PAYMENT BOX & BCA LOGO
   ========================================================================== */
.payment-info-card {
    background: rgba(22, 5, 38, 0.85);
    border: 1px solid rgba(255, 140, 0, 0.4);
    box-shadow: var(--shadow-orange-glow);
    border-radius: var(--radius-xs);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.payment-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent-gold);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.payment-info-desc {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.bank-details-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 190, 59, 0.35);
    border-radius: var(--radius-xs);
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.bank-brand-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bank-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
    display: inline-block;
}

.bank-numbers {
    font-family: monospace;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.bank-owner {
    color: var(--color-text-tertiary);
    font-weight: 600;
    font-size: 14px;
}

.btn-copy-acc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--motion-fast);
}

.btn-copy-acc:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: var(--color-accent-orange);
    color: var(--color-accent-gold);
}

/* ==========================================================================
   RULEBOOK CARD
   ========================================================================== */
.rulebook-card {
    background: rgba(22, 5, 38, 0.85);
    border: 1px solid var(--color-accent-pink);
    box-shadow: var(--shadow-pink-glow);
    border-radius: var(--radius-xs);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.rulebook-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.rulebook-desc {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.rulebook-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-rules-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff00c8;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(255, 0, 200, 0.35);
    transition: all var(--motion-fast);
}

.btn-rules-download:hover {
    background: #e000b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 200, 0.55);
}

.btn-rules-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-default);
    color: var(--color-border-muted);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--motion-fast);
}

.btn-rules-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-border-muted);
    color: #ffffff;
}

.rules-link {
    color: var(--color-accent-pink);
    text-decoration: underline;
    font-weight: 700;
}

/* ==========================================================================
   CHECKBOX & SUBMIT BUTTON
   ========================================================================== */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: var(--space-6) 0;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border-default);
    border-radius: 6px;
    background: rgba(10, 0, 20, 0.9);
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all var(--motion-fast);
}

.checkbox-container input[type="checkbox"]:checked {
    background: var(--color-accent-pink);
    border-color: var(--color-accent-pink);
    box-shadow: var(--shadow-pink-glow);
}

.checkbox-container input[type="checkbox"]:checked::before {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.checkbox-label {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.btn-submit {
    width: 100%;
    height: 58px;
    background: #ff00c8;
    border: none;
    border-radius: var(--radius-xs);
    color: #ffffff;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255, 0, 200, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--motion-fast);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #e000b0;
    box-shadow: 0 8px 35px rgba(255, 0, 200, 0.65);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* ==========================================================================
   ALERTS & SPINNER
   ========================================================================== */
.alert-box {
    display: none;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xs);
    font-size: 14px;
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

.alert-box.alert-error {
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid var(--color-error);
    color: #ffb3c1;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SUCCESS / TICKET PAGE STYLING
   ========================================================================== */
.success-page-body {
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-container {
    max-width: 820px;
    width: 100%;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    padding: 2.8rem 2.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ticket-container::before {
    display: none;
}

.ticket-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.ticket-logos img {
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 0, 200, 0.3));
}

.ticket-cross {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.ticket-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #ffffff;
}

.ticket-desc {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.code-card {
    background: rgba(10, 2, 20, 0.95);
    border: 1px solid var(--color-accent-pink);
    box-shadow: var(--shadow-pink-glow);
    border-radius: var(--radius-xs);
    padding: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.code-label {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    margin-bottom: 4px;
}

.code-value {
    font-family: monospace;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid var(--color-accent-orange);
    color: var(--color-accent-orange);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.details-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xs);
    padding: 1.6rem;
    text-align: left;
    margin-bottom: 2rem;
}

.details-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-accent-gold);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-val {
    font-weight: 700;
    color: #ffffff;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 13.5px;
}

.players-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--color-text-tertiary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.players-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
}

.player-role {
    font-weight: 700;
}

.player-nickname {
    color: #ffffff;
    font-weight: 700;
}

.actions-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wa {
    background: #ff00c8;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--radius-xs);
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 200, 0.35);
}

.btn-wa:hover {
    background: #e000b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 200, 0.5);
}

.btn-home {
    background: rgba(36, 0, 70, 0.8);
    border: 1px solid var(--color-border-default);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--radius-xs);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-home:hover {
    border-color: var(--color-border-muted);
    transform: translateY(-2px);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--space-4) var(--space-3);
    }

    .top-navbar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .nav-brands {
        justify-content: center;
        gap: 12px;
    }

    .brand-logo-event {
        height: 36px;
    }

    .brand-logo-ml {
        height: 26px;
    }

    .brand-divider {
        height: 22px;
    }

    .nav-status-badge {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 6px 12px;
    }

    .web-banner-wrapper {
        border-radius: var(--radius-sm);
        margin-bottom: var(--space-6);
    }

    .hero-banner {
        padding: 1.8rem 1.2rem;
        border-radius: var(--radius-sm);
        margin-bottom: var(--space-6);
    }

    .hero-logo-main {
        max-height: 56px;
    }

    .hero-logo-ml {
        max-height: 44px;
    }

    h1.hero-title {
        font-size: 22px;
    }

    p.hero-desc {
        font-size: 14px;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .highlight-pill {
        width: 100%;
        justify-content: center;
        font-size: 12.5px;
    }

    .form-section {
        padding: var(--space-5) var(--space-4);
        border-radius: var(--radius-sm);
        margin-bottom: var(--space-5);
    }

    .section-header {
        gap: 10px;
        margin-bottom: var(--space-5);
    }

    .section-title-wrap h2 {
        font-size: 17px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .roster-card {
        padding: var(--space-4);
        border-radius: var(--radius-xs);
    }

    .roster-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .captain-note-badge {
        width: 100%;
        justify-content: flex-start;
        font-size: 11.5px;
    }

    .bank-details-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 16px 12px;
    }

    .bank-brand-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .btn-copy-acc {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .rulebook-card {
        padding: var(--space-5) var(--space-4);
    }

    .rulebook-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-rules-download,
    .btn-rules-view {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn-submit {
        height: 52px;
        font-size: 15px;
    }

    .ticket-container {
        padding: 2rem 1.4rem;
    }

    .code-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .players-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .btn-wa,
    .btn-home {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1.hero-title {
        font-size: 20px;
    }

    .bank-numbers {
        font-size: 18px;
    }

    .dropzone-container {
        padding: var(--space-5) var(--space-3);
    }

    .ticket-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   CINEMATIC OPENER & LOGO SPLASH OVERLAY
   ========================================================================== */
body.opener-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.opener-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #060812;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.opener-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   WELCOME GATE (ESPORTS TAP TO ENTER)
   ========================================================================== */
.opener-gate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    background: #060812;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
    overflow: hidden;
}

.opener-gate.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    pointer-events: none;
}

.opener-gate-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    background: #060812 url('/img/openBG.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px clamp(130px, 22vh, 190px) 24px;
    box-sizing: border-box;
}

.btn-enter-tournament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    background: #ff00c8;
    border: none;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.btn-enter-tournament:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-enter-tournament:active {
    transform: translateY(1px);
}

.btn-enter-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

/* Opener Video Container */
.opener-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.opener-video-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.opener-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Opener Logo Stage (After Video) */
.opener-logo-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
    pointer-events: none;
    z-index: 10;
}

.opener-logo-stage.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.opener-logo-img {
    position: relative;
    max-width: 260px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    animation: none;
    z-index: 2;
}

.opener-tagline {
    margin-top: 24px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 0, 200, 0.4);
    z-index: 2;
    animation: openerFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes openerPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

@keyframes openerFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes openerFadeUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .opener-logo-img {
        max-width: 200px;
        max-height: 160px;
    }

    .opener-tagline {
        font-size: 12px;
        letter-spacing: 3px;
        margin-top: 18px;
    }

    .opener-gate-container {
        max-width: 100%;
        padding: 0 20px clamp(110px, 18vh, 160px) 20px;
    }

    .btn-enter-tournament {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
}