/* ============================================
   LOGIN 2K26 - Redesigned Cinematic Welcome Page
   ============================================ */

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

:root {
    --primary-red: #ff0000;
    --dark-red: #8b0000;
    --blood-red: #660000;
    --crimson: #dc143c;
    --bright-red: #ff3333;
    --white: #ffffff;
    --gray: #888888;
    --dark-gray: #333333;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    overflow: hidden;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    color: var(--white);
}

/* ============================================
   College Logo - Optimized Performance Header
   ============================================ */
.college-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9000;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: auto;
    cursor: pointer;
    
    /* Glass Morphism - Optimized */
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    
    /* Single soft outer glow */
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
    
    /* Border */
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* GPU acceleration & rendering optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout paint;
}

.college-logo.visible {
    opacity: 1;
    transform: translateZ(0);
}

.college-logo.hidden {
    opacity: 0;
    transform: translateY(-15px) translateZ(0);
}

/* Hover state - subtle glow increase */
.college-logo:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.25);
}

/* Logo image - optimized */
.logo-img {
    position: relative;
    z-index: 10;
    width: 250px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
    /* GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover scale effect */
.college-logo:hover .logo-img {
    transform: scale(1.03) translateZ(0);
}

/* Corner accent glows - static, no animation */
.logo-corner-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.logo-corner-glow.top-left {
    top: 0;
    left: 0;
    background: radial-gradient(
        circle at top left,
        rgba(255, 0, 0, 0.4) 0%,
        transparent 70%
    );
    border-radius: 20px 0 0 0;
}

.logo-corner-glow.top-right {
    top: 0;
    right: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255, 50, 50, 0.3) 0%,
        transparent 70%
    );
    border-radius: 0 20px 0 0;
}

.logo-corner-glow.bottom-left,
.logo-corner-glow.bottom-right {
    display: none;
}

/* Top edge highlight - static */
.logo-top-highlight {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    z-index: 6;
    pointer-events: none;
}

/* Hide heavy effect elements by default */
.logo-scanline,
.logo-reflection,
.logo-particles,
.logo-edge-glow,
.logo-rgb-shift,
.logo-ambient-glow,
.logo-img-wrapper::after {
    display: none;
}

/* Logo wrapper - simplified */
.logo-img-wrapper {
    position: relative;
    display: inline-block;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: loadingFadeOut 1s ease-out 2.5s forwards;
}

.loading-content {
    text-align: center;
}

.loading-bar {
    width: clamp(200px, 60vw, 300px);
    height: 3px;
    background: var(--dark-gray);
    margin: 0 auto clamp(10px, 3vh, 20px);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--dark-red), var(--primary-red), var(--bright-red));
    animation: loadingProgress 2s ease-out forwards;
}

.loading-text {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: clamp(4px, 2vw, 8px);
    color: var(--primary-red);
    text-transform: uppercase;
    animation: loadingTextPulse 1s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes loadingFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* ============================================
   Cinematic Intro
   ============================================ */
.cinematic-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5000;
    overflow: hidden;
}

.intro-line {
    position: absolute;
    width: 100%;
    height: 50%;
    background: #000000;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-line.top {
    top: 0;
    transform: translateY(0);
    animation: introLineTop 1.5s cubic-bezier(0.77, 0, 0.175, 1) 2.5s forwards;
}

.intro-line.bottom {
    bottom: 0;
    transform: translateY(0);
    animation: introLineBottom 1.5s cubic-bezier(0.77, 0, 0.175, 1) 2.5s forwards;
}

@keyframes introLineTop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes introLineBottom {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ============================================
   Vignette Effect
   ============================================ */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 35%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.8) 85%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* ============================================
   Film Grain Effect
   ============================================ */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grainMove 0.5s steps(10) infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* ============================================
   Scanlines Effect
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.3;
}

/* ============================================
   Chromatic Aberration Effect
   ============================================ */
.chromatic-aberration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 70;
    background: 
        linear-gradient(90deg, rgba(255, 0, 0, 0.02) 0%, transparent 33%, transparent 66%, rgba(0, 255, 255, 0.02) 100%);
    animation: chromaticShift 8s ease-in-out infinite;
}

@keyframes chromaticShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   Canvas Container - Full Viewport
   ============================================ */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

/* ============================================
   Background Glow Layers - Responsive
   ============================================ */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(clamp(40px, 10vw, 80px));
    opacity: 0.4;
}

.bg-glow-1 {
    width: clamp(300px, 60vw, 600px);
    height: clamp(300px, 60vw, 600px);
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bgGlowPulse1 6s ease-in-out infinite;
}

.bg-glow-2 {
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    background: radial-gradient(circle, var(--crimson) 0%, transparent 70%);
    top: 30%;
    left: 20%;
    animation: bgGlowPulse2 8s ease-in-out infinite;
}

.bg-glow-3 {
    width: clamp(250px, 50vw, 500px);
    height: clamp(250px, 50vw, 500px);
    background: radial-gradient(circle, var(--dark-red) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation: bgGlowPulse3 7s ease-in-out infinite;
}

@keyframes bgGlowPulse1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

@keyframes bgGlowPulse2 {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

@keyframes bgGlowPulse3 {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.2); opacity: 0.55; }
}

/* ============================================
   Main Container - Flexbox Centered
   ============================================ */
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(15px, 4vh, 40px);
    z-index: 10;
    pointer-events: none;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    gap: clamp(10px, 3vh, 30px);
}

/* ============================================
   Date Badge - Responsive
   ============================================ */
.date-badge {
    position: relative;
    opacity: 0;
    animation: dateBadgeFadeIn 1s ease-out 3s forwards;
    width: 100%;
    max-width: 100%;
    text-align: center;
    flex-shrink: 0;
}

.date-text {
    font-size: clamp(10px, 1.5vw, 16px);
    letter-spacing: clamp(4px, 1.5vw, 12px);
    color: var(--gray);
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.date-line {
    width: clamp(40px, 10vw, 60px);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: clamp(8px, 2vh, 15px) auto 0;
    animation: dateLinePulse 2s ease-in-out infinite;
}

@keyframes dateBadgeFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes dateLinePulse {
    0%, 100% { width: 60px; opacity: 0.5; }
    50% { width: 100px; opacity: 1; }
}

/* ============================================
   Title Section - Flexbox Centered
   ============================================ */
.title-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(10px, 3vw, 20px);
    box-sizing: border-box;
}

.title-wrapper {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vh, 20px);
}

/* Prefix - WELCOME TO */
.title-prefix {
    font-size: clamp(10px, 2.5vw, 24px);
    font-weight: 300;
    letter-spacing: clamp(4px, 1.5vw, 15px);
    margin-bottom: clamp(10px, 3vh, 30px);
    opacity: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-wrap: break-word;
    animation: prefixFadeIn 1.5s ease-out 3.2s forwards, prefixColorShift 8s ease-in-out 5s infinite;
}

.prefix-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.4s ease-out forwards;
}

.prefix-space {
    display: inline-block;
    width: clamp(10px, 2vw, 30px);
}

@keyframes prefixFadeIn {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes letterReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes prefixColorShift {
    0%, 100% { color: var(--white); }
    33% { color: var(--primary-red); text-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    66% { color: var(--gray); }
}

/* ============================================
   MAIN TITLE - LOGIN 2K26
   Premium Cinematic Design - Single Clean Definition
   Fully Responsive with clamp() - 320px to 4K
   ============================================ */

/* Main Title Container - Centers everything */
.main-title-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    padding: clamp(10px, 3vh, 30px) clamp(10px, 4vw, 40px);
    box-sizing: border-box;
}

/* Soft Ambient Backlight - Behind the title */
.main-title-backlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 50vw, 600px);
    height: clamp(100px, 25vw, 300px);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 0, 0, 0.15) 0%,
        rgba(255, 0, 0, 0.08) 30%,
        rgba(139, 0, 0, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: backlightFadeIn 2s ease-out 3.5s forwards, backlightPulse 4s ease-in-out 5.5s infinite;
    filter: blur(clamp(20px, 5vw, 60px));
}

@keyframes backlightFadeIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes backlightPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Main Title - LOGIN 2K26 */
.main-title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 clamp(5px, 2vw, 15px);
    
    /* Responsive Typography - Works from 320px to 4K */
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(32px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: clamp(2px, 0.5vw, 10px);
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    
    /* Base Color */
    color: #ff1a1a;
    
    /* Layered Neon Red Glow Effect */
    text-shadow:
        /* Inner bright core */
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.4),
        /* Neon red layers */
        0 0 10px rgba(255, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.9),
        0 0 40px rgba(255, 0, 0, 0.7),
        0 0 60px rgba(255, 0, 0, 0.5),
        0 0 80px rgba(255, 0, 0, 0.3),
        0 0 100px rgba(255, 0, 0, 0.2),
        /* Outer ambient spread */
        0 0 150px rgba(255, 0, 0, 0.15);
    
    /* Prevent overflow */
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    
    /* Interaction */
    cursor: pointer;
    pointer-events: auto;
    
    /* Initial state for animation */
    opacity: 0;
    transform: scale(0.8);
    filter: blur(15px);
    
    /* Performance optimized animations */
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    
    /* Entrance animation */
    animation: titleReveal 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.5s forwards;
}

/* Title text span for shine effect */
.title-text {
    color: white;
    display: inline-block;
    position: relative;
}

/* Light Reflection Sweep Effect */
.title-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-position: 200% 0;
    pointer-events: none;
    opacity: 0;
    animation: shineSweep 4s ease-in-out 5s infinite;
}

@keyframes shineSweep {
    0%, 80% { 
        background-position: 200% 0; 
        opacity: 0;
    }
    85% {
        opacity: 1;
    }
    100% { 
        background-position: -200% 0; 
        opacity: 0;
    }
}

/* Title Reveal Animation */
@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(15px);
    }
    60% {
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Breathing Pulse Animation - Applied after reveal */
.main-title-container .main-title {
    animation: 
        titleReveal 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.5s forwards,
        titleBreathing 4s ease-in-out 5.5s infinite;
}

@keyframes titleBreathing {
    0%, 100% {
        text-shadow:
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 255, 255, 0.4),
            0 0 10px rgba(255, 0, 0, 1),
            0 0 20px rgba(255, 0, 0, 0.9),
            0 0 40px rgba(255, 0, 0, 0.7),
            0 0 60px rgba(255, 0, 0, 0.5),
            0 0 80px rgba(255, 0, 0, 0.3),
            0 0 100px rgba(255, 0, 0, 0.2),
            0 0 150px rgba(255, 0, 0, 0.15);
    }
    50% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 1),
            0 0 15px rgba(255, 255, 255, 0.5),
            0 0 15px rgba(255, 0, 0, 1),
            0 0 30px rgba(255, 0, 0, 1),
            0 0 50px rgba(255, 0, 0, 0.8),
            0 0 80px rgba(255, 0, 0, 0.6),
            0 0 100px rgba(255, 0, 0, 0.4),
            0 0 130px rgba(255, 0, 0, 0.25),
            0 0 180px rgba(255, 0, 0, 0.2);
    }
}

/* Hover Enhancement */
.main-title:hover {
    color: #ff3333;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 0, 0, 1),
        0 0 30px rgba(255, 0, 0, 1),
        0 0 50px rgba(255, 0, 0, 0.9),
        0 0 80px rgba(255, 0, 0, 0.7),
        0 0 110px rgba(255, 0, 0, 0.5),
        0 0 150px rgba(255, 0, 0, 0.3),
        0 0 200px rgba(255, 0, 0, 0.2);
    transform: scale(1.02);
    letter-spacing: clamp(3px, 0.6vw, 12px);
}

/* Title Underline */
.title-underline {
    position: relative;
    width: 0;
    height: clamp(2px, 0.3vh, 4px);
    max-width: 80%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 0, 0, 0.3) 10%,
        rgba(255, 0, 0, 0.8) 30%,
        rgba(255, 50, 50, 1) 50%,
        rgba(255, 0, 0, 0.8) 70%,
        rgba(255, 0, 0, 0.3) 90%,
        transparent 100%
    );
    margin-top: clamp(15px, 3vh, 30px);
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 0, 0.4),
        0 0 30px rgba(255, 0, 0, 0.2);
    border-radius: 2px;
    animation: underlineExpand 1.5s ease-out 4.5s forwards;
}

@keyframes underlineExpand {
    0% { width: 0; opacity: 0; }
    100% { width: clamp(150px, 40vw, 500px); opacity: 1; }
}

/* ============================================
   Bottom Section - Responsive
   ============================================ */
.bottom-section {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(10px, 3vw, 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 20px);
    flex-shrink: 0;
}

/* Tagline - Responsive */
.tagline-container {
    opacity: 0;
    animation: taglineFadeUp 1.5s ease-out 4s forwards;
    width: 100%;
    max-width: 100%;
}

.tagline {
    font-size: clamp(10px, 2vw, 24px);
    font-weight: 300;
    letter-spacing: clamp(2px, 1vw, 8px);
    color: var(--gray);
    text-transform: uppercase;
    filter: blur(5px);
    animation: taglineFocus 1s ease-out 4.5s forwards;
    text-align: center;
    word-wrap: break-word;
    padding: 0 clamp(5px, 2vw, 10px);
    line-height: 1.4;
}

.tagline-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
}

.deco-line {
    width: clamp(30px, 8vw, 50px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-red));
}

.deco-dot {
    width: clamp(4px, 1.5vw, 6px);
    height: clamp(4px, 1.5vw, 6px);
    background: var(--primary-red);
    border-radius: 50%;
    animation: decoDotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-red);
}

@keyframes taglineFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes taglineFocus {
    0% { filter: blur(5px); }
    100% { filter: blur(0); }
}

@keyframes decoDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* CTA Button - Responsive */
.cta-container {
    opacity: 0;
    animation: ctaFadeIn 1s ease-out 5s forwards;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    margin-top: 40px;
}

.cta-button {
    background: transparent;
    border: clamp(1px, 0.3vw, 2px) solid var(--primary-red);
    color: var(--white);
    padding: clamp(10px, 2.5vh, 18px) clamp(20px, 6vw, 50px);
    font-size: clamp(9px, 2vw, 16px);
    letter-spacing: clamp(2px, 0.5vw, 4px);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
    max-width: 90vw;
    white-space: nowrap;
    text-align: center;
}

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

.cta-button:hover {
    background: var(--primary-red);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover .cta-arrow {
    transform: translateX(10px);
}

.cta-arrow {
    transition: transform 0.3s ease;
    font-size: 18px;
}

@keyframes ctaFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Corner Decorations - Responsive
   ============================================ */
.corner {
    position: fixed;
    width: clamp(40px, 8vw, 80px);
    height: clamp(40px, 8vw, 80px);
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    animation: cornerFadeIn 1s ease-out 4s forwards;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

.corner-tl {
    top: clamp(15px, 3vh, 30px);
    left: clamp(15px, 3vw, 30px);
}

.corner-tl::before {
    width: clamp(20px, 4vw, 40px);
    height: 2px;
    top: 0;
    left: 0;
}

.corner-tl::after {
    width: 2px;
    height: clamp(20px, 4vh, 40px);
    top: 0;
    left: 0;
}

.corner-tr {
    top: clamp(15px, 3vh, 30px);
    right: clamp(15px, 3vw, 30px);
}

.corner-tr::before {
    width: clamp(20px, 4vw, 40px);
    height: 2px;
    top: 0;
    right: 0;
}

.corner-tr::after {
    width: 2px;
    height: clamp(20px, 4vh, 40px);
    top: 0;
    right: 0;
}

.corner-bl {
    bottom: clamp(15px, 3vh, 30px);
    left: clamp(15px, 3vw, 30px);
}

.corner-bl::before {
    width: clamp(20px, 4vw, 40px);
    height: 2px;
    bottom: 0;
    left: 0;
}

.corner-bl::after {
    width: 2px;
    height: clamp(20px, 4vh, 40px);
    bottom: 0;
    left: 0;
}

.corner-br {
    bottom: clamp(15px, 3vh, 30px);
    right: clamp(15px, 3vw, 30px);
}

.corner-br::before {
    width: clamp(20px, 4vw, 40px);
    height: 2px;
    bottom: 0;
    right: 0;
}

.corner-br::after {
    width: 2px;
    height: clamp(20px, 4vh, 40px);
    bottom: 0;
    right: 0;
}

@keyframes cornerFadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

/* ============================================
   Floating Elements
   ============================================ */
.floating-element {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 60;
    box-shadow: 0 0 10px var(--primary-red), 0 0 20px var(--primary-red);
    opacity: 0;
    animation: floatingElementFadeIn 1s ease-out 4.5s forwards;
}

.fe-1 {
    top: 20%;
    left: 15%;
    animation: float1 8s ease-in-out infinite, floatingElementFadeIn 1s ease-out 4.5s forwards;
}

.fe-2 {
    top: 70%;
    left: 80%;
    animation: float2 10s ease-in-out infinite, floatingElementFadeIn 1s ease-out 4.7s forwards;
}

.fe-3 {
    top: 30%;
    right: 20%;
    animation: float3 7s ease-in-out infinite, floatingElementFadeIn 1s ease-out 4.9s forwards;
}

.fe-4 {
    bottom: 25%;
    left: 25%;
    animation: float4 9s ease-in-out infinite, floatingElementFadeIn 1s ease-out 5.1s forwards;
}

@keyframes floatingElementFadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.8; }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, -50px); }
    75% { transform: translate(30px, -20px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 20px); }
    66% { transform: translate(-20px, -30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 40px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -25px); }
    50% { transform: translate(-25px, -10px); }
    75% { transform: translate(10px, -35px); }
}

/* ============================================
   Responsive Design - Welcome Page Only
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    
    .title-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .title-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }
    
    .title-prefix {
        letter-spacing: clamp(3px, 1vw, 8px);
        margin-bottom: 0;
    }
    
    .main-title {
        font-size: clamp(28px, 8vw, 60px) !important;
        letter-spacing: clamp(2px, 0.5vw, 4px);
        padding: 0 10px;
    }
    
    .main-title-backlight {
        width: clamp(150px, 40vw, 300px) !important;
        height: clamp(70px, 20vw, 150px) !important;
    }
    
    .title-underline {
        margin-top: 10px;
    }
    
    .tagline {
        letter-spacing: clamp(2px, 0.5vw, 4px);
    }
    
    .cta-container {
        width: 100% !important;
    }
    
    .cta-button {
        width: 80% !important;
        max-width: 350px !important;
        padding: clamp(10px, 2vh, 15px) clamp(18px, 5vw, 30px);
    }
    
    /* College Logo - Tablet Optimization */
    .college-logo {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .logo-img {
        width: 100px;
        max-height: 50px;
    }
    
    /* Disable all heavy effects on tablet */
    .logo-corner-glow,
    .logo-edge-glow,
    .logo-ambient-glow,
    .logo-scanline,
    .logo-reflection,
    .logo-particles,
    .logo-rgb-shift {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        padding: 15px 10px !important;
        gap: 12px !important;
    }
    
    .title-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .title-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }
    
    .title-prefix {
        letter-spacing: clamp(2px, 0.8vw, 5px);
        font-size: clamp(8px, 2vw, 12px);
        margin-bottom: 0;
    }
    
    .main-title {
        font-size: clamp(24px, 7vw, 40px) !important;
        letter-spacing: clamp(1px, 0.3vw, 2px);
        padding: 0 5px;
    }
    
    .main-title-backlight {
        width: clamp(120px, 35vw, 250px) !important;
        height: clamp(60px, 18vw, 120px) !important;
    }
    
    .title-underline {
        margin-top: 8px;
    }
    
    .tagline {
        letter-spacing: clamp(1px, 0.3vw, 3px);
        font-size: clamp(8px, 1.8vw, 12px);
    }
    
    .cta-container {
        width: 100% !important;
    }
    
    .cta-button {
        width: 90% !important;
        max-width: 90% !important;
        padding: clamp(8px, 2vh, 12px) clamp(15px, 4vw, 25px);
        font-size: clamp(8px, 1.8vw, 11px);
        letter-spacing: clamp(1px, 0.3vw, 2px);
    }
    
    .date-text {
        letter-spacing: clamp(3px, 1vw, 6px);
        font-size: clamp(8px, 1.5vw, 10px);
    }
    
    /* College Logo - Mobile Responsive */
    .college-logo {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        border-radius: 16px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 3px 15px rgba(255, 0, 0, 0.1);
    }
    
    .logo-img {
        width: 70px;
        max-height: 40px;
    }
    
    /* Disable all heavy effects on mobile */
    .logo-corner-glow,
    .logo-edge-glow,
    .logo-ambient-glow,
    .logo-scanline,
    .logo-reflection,
    .logo-particles,
    .logo-rgb-shift {
        display: none;
    }
}

/* Extra Small Mobile - 320px to 380px */
@media (max-width: 380px) {
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .title-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .title-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
    }
    
    .title-prefix {
        font-size: 8px;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    
    .main-title {
        font-size: clamp(22px, 7vw, 32px) !important;
        letter-spacing: 1px;
        padding: 0 5px;
    }
    
    .main-title-backlight {
        width: clamp(100px, 30vw, 200px) !important;
        height: clamp(50px, 15vw, 100px) !important;
    }
    
    .title-underline {
        margin-top: 6px;
    }
    
    /* College Logo - Extra Small Mobile */
    .college-logo {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(255, 0, 0, 0.08);
    }
    
    .logo-img {
        width: 55px;
        max-height: 35px;
    }
    
    .tagline {
        font-size: 8px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .cta-container {
        width: 100% !important;
    }
    
    .cta-button {
        width: 90% !important;
        max-width: 90% !important;
        padding: 8px 12px;
        font-size: 8px;
        letter-spacing: 1px;
        gap: 6px;
    }
    
    .cta-arrow {
        font-size: 12px;
    }
    
    .date-text {
        font-size: 8px;
        letter-spacing: 2px;
    }
    
    .date-line {
        width: 30px;
        margin-top: 8px;
    }
    
    .deco-line {
        width: 20px;
    }
    
    .deco-dot {
        width: 3px;
        height: 3px;
    }
}

/* ============================================
   Transition Flash Effect
   ============================================ */
.transition-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-red), var(--dark-red), #000000);
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
}

.transition-flash.active {
    animation: transitionFlash 1s ease-in-out forwards;
}

@keyframes transitionFlash {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* ============================================
   Event Page - Futuristic Game Hub Interface
   ============================================ */
.event-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 15000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    overflow: hidden;
}

.event-page.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Game Hub Background */
.game-hub-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.game-hub-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(150px);
}

.game-hub-glow-1 {
    width: clamp(300px, 60vw, 800px);
    height: clamp(300px, 60vw, 800px);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hubGlow1 12s ease-in-out infinite;
}

.game-hub-glow-2 {
    width: clamp(200px, 40vw, 500px);
    height: clamp(200px, 40vw, 500px);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation: hubGlow2 15s ease-in-out infinite;
}

.game-hub-glow-3 {
    width: clamp(250px, 50vw, 600px);
    height: clamp(250px, 50vw, 600px);
    background: radial-gradient(circle, rgba(139, 0, 0, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: hubGlow3 18s ease-in-out infinite;
}

@keyframes hubGlow1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

@keyframes hubGlow2 {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.5); opacity: 0.18; }
}

@keyframes hubGlow3 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.4); opacity: 0.15; }
}

/* Game Particles */
.game-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.game-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.9), 0 0 15px rgba(255, 0, 0, 0.5);
    animation: gameParticleFloat 10s ease-in-out infinite;
}

@keyframes gameParticleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-50px) translateX(30px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-20px) translateX(-20px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-60px) translateX(15px);
        opacity: 1;
    }
}

/* Light Streaks */
.light-streaks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.light-streak {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 0, 0, 0.6), transparent);
    opacity: 0;
    animation: streakMove 8s ease-in-out infinite;
}

.light-streak-1 {
    left: 20%;
    animation-delay: 0s;
}

.light-streak-2 {
    left: 50%;
    animation-delay: 2s;
}

.light-streak-3 {
    left: 80%;
    animation-delay: 4s;
}

@keyframes streakMove {
    0% {
        top: -150px;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Grid Overlay - Enhanced with animated lines */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.6;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.4;
        background-size: 60px 60px;
    }
    50% {
        opacity: 0.7;
        background-size: 65px 65px;
    }
}

/* Energy Waves */
.game-hub-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 0, 0, 0.1) 0%, transparent 40%);
    animation: energyWave 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes energyWave {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px);
    }
}

/* Game Hub Header */
.game-hub-header {
    position: absolute;
    top: clamp(15px, 4vh, 30px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(10px, 3vw, 20px);
    box-sizing: border-box;
}

.hub-title-container {
    position: relative;
}

.hub-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: clamp(4px, 2vw, 15px);
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.5);
    margin-bottom: 8px;
    animation: hubTitlePulse 3s ease-in-out infinite;
}

.hub-subtitle {
    font-size: clamp(10px, 1.5vw, 14px);
    font-weight: 400;
    letter-spacing: clamp(3px, 1.5vw, 8px);
    color: rgba(255, 0, 0, 0.8);
    text-transform: uppercase;
}

@keyframes hubTitlePulse {
    0%, 100% {
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.5);
    }
    50% {
        filter: brightness(1.3);
        text-shadow: 0 0 50px rgba(255, 0, 0, 1), 0 0 100px rgba(255, 0, 0, 0.7);
    }
}

/* ============================================
   EVENT CONTENT AREA - Perfectly Centered Container
   ============================================ */
.event-content-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    padding: 0;
    box-sizing: border-box;
}
/* ============================================
   Welcome Page Hide Animation
   ============================================ */
.main-container.hide {
    opacity: 0;
    transform: scale(1.08) translateY(40px);
    transition: 
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}


#canvas-container.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bg-glow.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.corner.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.floating-element.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ============================================
   Motion Blur Effect
   ============================================ */
.motion-blur {
    filter: blur(8px);
    opacity: 0.8;
}

.motion-blur-strong {
    filter: blur(15px);
    opacity: 0.5;
}

/* ============================================
   Cinematic Zoom Transition
   ============================================ */
.cinematic-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30000;
    pointer-events: none;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25000;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 0, 0, 0.3) 70%, rgba(255, 0, 0, 0.8) 100%);
    opacity: 0;
    pointer-events: none;
}

.zoom-overlay.active {
    animation: zoomOverlayFlash 1.2s ease-in-out forwards;
}

@keyframes zoomOverlayFlash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* ============================================
   Red Glow Burst
   ============================================ */
.glow-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.8) 0%, transparent 70%);
    z-index: 24000;
    pointer-events: none;
}

.glow-burst.active {
    animation: glowBurstExpand 0.8s ease-out forwards;
}

@keyframes glowBurstExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300vw;
        height: 300vw;
        opacity: 0;
    }
}

/* ============================================
   Transition Particle Burst
   ============================================ */
.transition-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 23000;
    pointer-events: none;
    overflow: hidden;
}

.transition-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-red), 0 0 30px var(--bright-red);
    opacity: 0;
}

.transition-particle.active {
    animation: particleBurst 0.8s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* ================================
   AAA GAME-STYLE CARD SLIDER - PERFECTLY CENTERED
   ================================ */

/* Card Container - Perfectly Centered */
.slider-card-container {
    position: relative;
    width: clamp(280px, 90%, 420px);
    max-width: 420px;
    aspect-ratio: 3 / 4;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 50px;
}

/* Individual Event Card - Perfectly Centered */
.event-slider-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 92%;
    max-width: 380px;
    min-width: 260px;
    min-height: 360px;
    border-radius: clamp(16px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 28px);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    will-change: transform, opacity;
    
    /* Simplified Background */
    background: linear-gradient(
        135deg,
        rgba(20, 0, 0, 0.9) 0%,
        rgba(10, 0, 0, 0.95) 100%
    );
    
    /* Single Border Glow */
    border: 1px solid rgba(255, 50, 50, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active Card State - Perfectly Centered */
.event-slider-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    visibility: visible;
    z-index: 10;
}

/* Hover Effect - Optimized */
.event-slider-card.active:hover {
    transform: translate(-50%, -50%) scale(1.02);
    border-color: rgba(255, 80, 80, 0.8);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
}

/* Card Inner Glow - Simplified */
.event-slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: clamp(16px, 3vw, 24px);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 50, 50, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Card Icon - Responsive */
.card-icon {
    width: clamp(50px, 12vw, 80px);
    height: clamp(50px, 12vw, 80px);
    margin: 0 auto clamp(15px, 4vw, 25px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 6vw, 40px);
    color: #ff4444;
    background: radial-gradient(circle, rgba(255, 50, 50, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Card Title - Responsive with clamp */
.card-title {
    font-size: clamp(18px, 4vw, 32px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    margin-bottom: clamp(8px, 2vw, 15px);
    text-align: center;
}

/* Card Description - Responsive */
.card-description {
    font-size: clamp(10px, 2vw, 14px);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-transform: uppercase;
    margin-bottom: clamp(15px, 4vw, 30px);
    text-align: center;
    padding: 0 10px;
}

/* Card Details - Responsive */
.card-details {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 10px);
    margin-bottom: clamp(15px, 4vw, 30px);
    width: 100%;
    max-width: 300px;
}

.card-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(10px, 2vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-align: center;
    flex-wrap: wrap;
}

.card-detail-item span {
    color: #ff4444;
}

/* Card Buttons Container - Responsive */
.card-buttons-container {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
    width: 100%;
    max-width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Card Action Button - Responsive */
.card-action-btn {
    width: 100%;
    max-width: 280px;
    padding: clamp(10px, 3vw, 14px) clamp(20px, 5vw, 40px);
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.3) 0%, rgba(200, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 80, 80, 0.6);
    border-radius: 30px;
    color: #ffffff;
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

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

.card-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.5) 0%, rgba(200, 0, 0, 0.4) 100%);
    border-color: rgba(255, 100, 100, 0.9);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.5);
    transform: translateY(-2px);
}

.card-action-btn:hover::before {
    left: 100%;
}

/* Disabled registration button styles */
.card-action-btn[disabled],
.card-action-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.4) 0%, rgba(80, 80, 80, 0.3) 100%) !important;
    border-color: rgba(100, 100, 100, 0.6) !important;
}

.card-action-btn[disabled]:hover,
.card-action-btn.disabled:hover {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.4) 0%, rgba(80, 80, 80, 0.3) 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Navigation Buttons - Positioned Relative to Event Content Area */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 5vw, 56px);
    height: clamp(40px, 5vw, 56px);
    background: rgba(20, 0, 0, 0.85);
    border: 1px solid rgba(255, 80, 80, 0.4);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    z-index: 100;
    will-change: transform;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                border-color 0.3s ease,
                background 0.3s ease;
}

/* Previous Button - Always on Left Side */
.slider-prev-btn {
    left: clamp(5px, 2vw, 15px);
}

/* Next Button - Always on Right Side */
.slider-next-btn {
    right: clamp(5px, 2vw, 15px);
}

/* Hover Effects */
.slider-nav-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 50, 50, 0.3) 0%,
        rgba(255, 50, 50, 0.15) 100%
    );
    border-color: rgba(255, 100, 100, 0.7);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Mobile Navigation Container - Hidden */
.mobile-nav-container {
    display: none;
}

.nav-arrow {
    font-size: clamp(14px, 3vw, 18px);
    color: #ff4444;
}

.nav-text {
    font-size: clamp(7px, 1.5vw, 9px);
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.slider-nav-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 50, 50, 0.3) 0%,
        rgba(255, 50, 50, 0.15) 100%
    );
    border-color: rgba(255, 100, 100, 0.7);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Card Indicators - Transform Centered */
.slider-indicators {
    position: absolute;
    bottom: clamp(8px, 2vw, 15px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(6px, 1.5vw, 10px);
    z-index: 100;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 90%;
}

.indicator-dot {
    width: clamp(8px, 2vw, 10px);
    height: clamp(8px, 2vw, 10px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator-dot.active {
    background: rgba(255, 50, 50, 0.8);
    border-color: rgba(255, 100, 100, 0.9);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.6);
    transform: scale(1.3);
}

.indicator-dot:hover {
    background: rgba(255, 50, 50, 0.5);
    border-color: rgba(255, 100, 100, 0.7);
}

/* Card Number Badge - Responsive */
.card-number {
    position: absolute;
    top: clamp(10px, 3vw, 20px);
    right: clamp(10px, 3vw, 20px);
    font-size: clamp(10px, 2vw, 12px);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - PERFECTLY CENTERED
   ============================================ */

/* Desktop - 1201px and above (default styles apply) */
/* Navigation buttons on left/right side of card */

/* Small Laptop - 769px to 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
    .slider-prev-btn { left: 10px; }
    .slider-next-btn { right: 10px; }
}

/* Tablet - 481px to 768px */
@media (max-width: 768px) {
    .game-hub-header {
        top: 15px;
    }
    
    .hub-title {
        letter-spacing: 6px;
    }
    
    .hub-subtitle {
        letter-spacing: 3px;
    }
    
    .slider-card-container {
        width: clamp(260px, 85%, 380px);
    }
    
    /* Navigation buttons stay on sides */
    .slider-prev-btn { left: 8px; }
    .slider-next-btn { right: 8px; }
}

/* Small Mobile - 320px to 480px */
@media (max-width: 480px) {
    .game-hub-header {
        top: 10px;
    }
    
    .hub-title {
        font-size: clamp(18px, 5vw, 26px);
        letter-spacing: 4px;
    }
    
    .hub-subtitle {
        font-size: clamp(8px, 2vw, 10px);
        letter-spacing: 2px;
    }
    
    /* Card Container - Proportionally smaller on mobile */
    .slider-card-container {
        width: clamp(200px, 90%, 300px);
        min-height: 320px;
    }
    
    /* Card - Compact padding */
    .event-slider-card {
        width: 92%;
        min-width: 180px;
        min-height: 300px;
        padding: clamp(8px, 3vw, 15px);
    }
    
    /* Navigation buttons - Symmetric on sides */
    .slider-nav-btn {
        width: clamp(32px, 9vw, 40px);
        height: clamp(32px, 9vw, 40px);
    }
    
    /* Keep buttons symmetrically positioned */
    .slider-prev-btn { left: 4px; }
    .slider-next-btn { right: 4px; }
    
    /* Indicators - Transform centered */
    .slider-indicators {
        bottom: 5px;
        gap: 4px;
    }
    
    .indicator-dot {
        width: 5px;
        height: 5px;
    }
    
    /* Buttons - Compact */
    .card-buttons-container {
        gap: 5px;
        max-width: 200px;
    }
    
    .card-action-btn,
    .card-rules-btn {
        padding: 6px 14px;
        font-size: 9px;
    }
}

/* Extra Small Mobile - 320px to 380px */
@media (max-width: 380px) {
    .slider-card-container {
        width: clamp(180px, 90%, 260px);
        min-height: 280px;
    }
    
    .event-slider-card {
        width: 92%;
        min-width: 160px;
        min-height: 260px;
        padding: 8px;
    }
    
    .card-title {
        font-size: clamp(13px, 4vw, 16px);
        letter-spacing: 1px;
    }
    
    .card-description {
        font-size: clamp(7px, 2vw, 9px);
    }
    
    .card-details {
        gap: 3px;
    }
    
    .card-detail-item {
        font-size: clamp(7px, 2vw, 9px);
    }
    
    .card-icon {
        width: clamp(28px, 9vw, 36px);
        height: clamp(28px, 9vw, 36px);
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 6px;
    }
    
    .card-action-btn,
    .card-rules-btn {
        padding: 5px 10px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    /* Navigation buttons - Smaller but still symmetric */
    .slider-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .nav-arrow {
        font-size: 9px;
    }
    
    .nav-text {
        font-size: 5px;
    }
    
    /* Keep buttons symmetrically positioned even on 320px */
    .slider-prev-btn { left: 3px; }
    .slider-next-btn { right: 3px; }
    
    .slider-indicators {
        bottom: 3px;
        gap: 3px;
    }
    
    .indicator-dot {
        width: 4px;
        height: 4px;
    }
}

/* ================================
   RULES & REGULATIONS BUTTON
   ================================ */
.card-buttons-container {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
    align-items: center;
    width: 100%;
    max-width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
}

.card-rules-btn {
    width: 100%;
    max-width: 280px;
    padding: clamp(10px, 3vw, 14px) clamp(20px, 5vw, 40px);
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.15) 0%, rgba(150, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 80, 80, 0.5);
    border-radius: 30px;
    color: #ffffff;
    font-size: clamp(11px, 2.5vw, 11px);
    font-weight: 600;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

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

.card-rules-btn:hover {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.35) 0%, rgba(200, 0, 0, 0.25) 100%);
    border-color: rgba(255, 100, 100, 0.9);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.card-rules-btn:hover::before {
    left: 100%;
}

.card-rules-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ================================
   FULL-SCREEN SLIDING PANELS - ULTRA OPTIMIZED
   ================================ */
.slide-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 45%;
    z-index: 1000;
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
    /* Performance containment */
    contain: layout paint;
}

/* Left Panel - Registration */
.left-panel {
    left: 0;
    transform: translateX(-100%) translateZ(0);
    /* Simplified solid background - no gradient repaint */
    background: rgba(12, 0, 0, 0.98);
    border-right: 1px solid rgba(255, 50, 50, 0.3);
    /* Optimized transition - transform only */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.left-panel.active {
    transform: translateX(0) translateZ(0);
    pointer-events: auto;
}

/* Right Panel - Rules */
.right-panel {
    right: 0;
    transform: translateX(100%) translateZ(0);
    /* Simplified solid background */
    background: rgba(12, 0, 0, 0.98);
    border-left: 1px solid rgba(255, 50, 50, 0.3);
    /* Optimized transition */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.right-panel.active {
    transform: translateX(0) translateZ(0);
    pointer-events: auto;
}

/* Panel Content - Optimized */
.slide-panel-content {
    width: 100%;
    height: 100%;
    padding: clamp(20px, 5vh, 40px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease 0.15s;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    /* GPU Acceleration */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.left-panel.active .slide-panel-content,
.right-panel.active .slide-panel-content {
    opacity: 1;
}

/* Panel Header - Optimized */
.slide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(15px, 4vh, 30px);
    padding-bottom: clamp(10px, 2vh, 20px);
    border-bottom: 1px solid rgba(255, 50, 50, 0.3);
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.slide-panel-title {
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    /* Reduced text-shadow for performance */
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.4);
}

.slide-panel-close {
    width: clamp(28px, 8vw, 36px);
    height: clamp(28px, 8vw, 36px);
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.5);
    border-radius: 50%;
    color: #ff4444;
    font-size: clamp(14px, 4vw, 18px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optimized - only transform transition */
    transition: transform 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide-panel-close:hover {
    background: rgba(255, 50, 50, 0.4);
    transform: rotate(90deg) translateZ(0);
}

/* Panel Border Glow - Reduced for performance */
.left-panel {
    border-right: 2px solid rgba(255, 50, 50, 0.5);
    /* Single shadow instead of multiple */
    box-shadow: 8px 0 30px rgba(255, 0, 0, 0.2);
}

.right-panel {
    border-left: 2px solid rgba(255, 50, 50, 0.5);
    box-shadow: -8px 0 30px rgba(255, 0, 0, 0.2);
}

/* Backdrop - NO blur for performance */
.slide-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker background instead of blur */
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
    /* GPU Acceleration */
    will-change: opacity;
    transform: translateZ(0);
}

.slide-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive for Panels */
@media (max-width: 1200px) {
    .left-panel.active,
    .right-panel.active {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .left-panel.active,
    .right-panel.active {
        width: 65%;
    }
    
    .slide-panel-content {
        padding: 25px;
    }
    
    .slide-panel-title {
        font-size: 15px;
        letter-spacing: 2px;
    }
}

/* Mobile - Panels slide from bottom (full-screen) */
@media (max-width: 480px) {
    .slide-panel {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(100%) translateZ(0) !important;
        transition: transform 0.3s ease-out !important;
    }
    
    .left-panel,
    .right-panel {
        width: 100% !important;
        transform: translateY(100%) translateZ(0) !important;
        border: none !important;
        border-top: 2px solid rgba(255, 50, 50, 0.5) !important;
        box-shadow: 0 -10px 50px rgba(255, 0, 0, 0.3) !important;
    }
    
    .left-panel.active,
    .right-panel.active {
        transform: translateY(0) translateZ(0) !important;
        width: 100% !important;
    }
    
    .slide-panel-content {
        padding: 18px;
        opacity: 1 !important;
    }
    
    .slide-panel-title {
        font-size: 13px;
    }
    
    .slide-panel-close {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Extra Small Mobile - 320px to 380px */
@media (max-width: 380px) {
    .slide-panel-content {
        padding: 15px;
    }
    
    .slide-panel-title {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .slide-panel-close {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 12px;
        right: 12px;
    }
}

/* ================================
   REGISTRATION FORM STYLING - OPTIMIZED
   ================================ */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vh, 20px);
    flex: 1;
    overflow-y: auto;
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1vh, 8px);
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.form-label {
    font-size: clamp(9px, 2vw, 11px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 2px);
}

.form-input {
    padding: clamp(10px, 2.5vh, 14px) clamp(12px, 3vw, 18px);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: clamp(6px, 1.5vw, 10px);
    color: #ffffff;
    font-size: clamp(11px, 2.5vw, 14px);
    font-family: inherit;
    letter-spacing: 0.5px;
    /* Optimized - only transition border-color and background */
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: rgba(255, 80, 80, 0.8);
    /* Single shadow instead of multiple */
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.form-input:hover {
    border-color: rgba(255, 80, 80, 0.5);
}

.form-input.readonly {
    background: rgba(255, 50, 50, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border-style: dashed;
}

.form-input.error {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.form-input.success {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.25);
}

.error-message {
    font-size: clamp(8px, 2vw, 10px);
    color: #ff4444;
    letter-spacing: 1px;
    display: none;
}

.error-message.show {
    display: block;
}

.payment-btn {
    padding: clamp(12px, 3vh, 16px) clamp(20px, 5vw, 40px);
    /* Solid background instead of gradient */
    background: rgba(255, 50, 50, 0.35);
    border: 2px solid rgba(255, 80, 80, 0.7);
    border-radius: 30px;
    color: #ffffff;
    font-size: clamp(11px, 2.5vw, 15px);
    font-weight: 700;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    text-transform: uppercase;
    cursor: pointer;
    /* Optimized transition */
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-top: clamp(8px, 2vh, 10px);
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Removed ::before pseudo-element animation for performance */

.payment-btn:hover {
    background: rgba(255, 50, 50, 0.55);
    border-color: rgba(255, 100, 100, 1);
    /* Single shadow */
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.4);
    transform: translateY(-2px) translateZ(0);
}

.payment-btn:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

/* ================================
   RULES LIST STYLING
   ================================ */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.rules-list li {
    position: relative;
    padding: clamp(10px, 2vh, 14px) 0 clamp(10px, 2vh, 14px) clamp(15px, 4vw, 25px);
    font-size: clamp(10px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 50, 50, 0.15);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(5px, 1.5vw, 8px);
    height: clamp(5px, 1.5vw, 8px);
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.rules-list li {
    position: relative;
    padding: clamp(8px, 2vh, 12px) 0 clamp(8px, 2vh, 12px) clamp(12px, 3vw, 20px);
    font-size: clamp(9px, 2vw, 12px);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 50, 50, 0.15);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 50, 50, 0.5);
}

/* Responsive for Sliding Panels */
@media (max-width: 768px) {
    .slide-panel {
        width: 60%;
    }
    
    .slide-panel-content {
        padding: 25px;
    }
    
    .slide-panel-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .rules-list li {
        font-size: 12px;
        padding: 10px 0 10px 20px;
    }
}

@media (max-width: 480px) {
    .slide-panel {
        width: 80%;
    }
    
    .slide-panel-content {
        padding: 20px;
    }
    
    .slide-panel-title {
        font-size: 14px;
    }
    
    .rules-list li {
        font-size: 11px;
        padding: 8px 0 8px 18px;
    }
    
    .rules-list li::before {
        width: 5px;
        height: 5px;
    }
}

/* ================================
   RULES LIST STYLING
   ================================ */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.rules-list li {
    position: relative;
    padding: 12px 0 12px 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 50, 50, 0.15);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 50, 50, 0.5);
}

/* ================================
   ADDITIONAL FORM STYLES
   ================================ */
.registration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(15px, 4vh, 25px);
    padding-bottom: clamp(10px, 2vh, 15px);
    border-bottom: 1px solid rgba(255, 50, 50, 0.3);
}

.registration-title {
    font-size: clamp(13px, 3vw, 18px);
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    text-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
}

.registration-close-btn {
    width: clamp(26px, 7vw, 32px);
    height: clamp(26px, 7vw, 32px);
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.5);
    border-radius: 50%;
    color: #ff4444;
    font-size: clamp(12px, 3vw, 16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.registration-close-btn:hover {
    background: rgba(255, 50, 50, 0.4);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
    transform: rotate(90deg);
}

/* Form Styling */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-input {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: rgba(255, 80, 80, 0.8);
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.3), inset 0 0 10px rgba(255, 50, 50, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.form-input:hover {
    border-color: rgba(255, 80, 80, 0.5);
}

/* Read-only Event Name Field */
.form-input.readonly {
    background: rgba(255, 50, 50, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border-style: dashed;
}

.form-input.readonly:focus {
    box-shadow: none;
}

/* Validation States */
.form-input.error {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.form-input.success {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.error-message {
    font-size: 10px;
    color: #ff4444;
    letter-spacing: 1px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Payment Button - Optimized */
.payment-btn {
    padding: 16px 40px;
    /* Solid background instead of gradient */
    background: rgba(255, 50, 50, 0.35);
    border: 2px solid rgba(255, 80, 80, 0.7);
    border-radius: 30px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    /* Optimized transition */
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    /* GPU Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Removed ::before animation for performance */

.payment-btn:hover {
    background: rgba(255, 50, 50, 0.55);
    border-color: rgba(255, 100, 100, 1);
    /* Single shadow */
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.4);
    transform: translateY(-2px) translateZ(0);
}

.payment-btn:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

/* Responsive for Registration Form */
@media (max-width: 768px) {
    .registration-content {
        padding: 18px;
    }
    
    .registration-title {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    .form-input {
        padding: 11px 14px;
        font-size: 12px;
    }
    
    .form-label {
        font-size: 9px;
    }
    
    .payment-btn {
        padding: 12px 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .registration-content {
        padding: 15px;
    }
    
    .registration-title {
        font-size: 11px;
    }
    
    .form-input {
        padding: 9px 12px;
        font-size: 11px;
    }
    
    .form-label {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .payment-btn {
        padding: 10px 20px;
        font-size: 11px;
        letter-spacing: 2px;
    }
}

@media (max-width: 380px) {
    .registration-content {
        padding: 12px;
    }
    
    .registration-title {
        font-size: 10px;
    }
    
    .form-input {
        padding: 8px 10px;
        font-size: 10px;
    }
    
    .form-label {
        font-size: 7px;
    }
    
    .payment-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
}

/* ================================
   CINEMATIC RULES PANEL - OPTIMIZED FOR 60FPS SCROLLING
   ================================ */
.rules-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    /* Hardware Acceleration */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Contain repaints */
    contain: layout style paint;
}

/* Panel Background - No blur, minimal shadow */
.rules-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 0, 0, 0.98) 0%,
        rgba(20, 0, 0, 0.96) 50%,
        rgba(10, 0, 0, 0.98) 100%
    );
    border-left: 1px solid rgba(255, 50, 50, 0.3);
    /* Reduced shadow intensity */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    /* No backdrop-filter or blur */
}

/* Panel Inner Content - Separate from scroll */
.rules-panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* Hardware acceleration */
    transform: translateZ(0);
}

/* Close Button - Minimal hover effect */
.rules-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.5);
    border-radius: 50%;
    color: #ff4444;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* No transition for performance */
    transition: none;
}

.rules-panel-close:active {
    background: rgba(255, 50, 50, 0.3);
    transform: scale(0.95);
}

/* No hover glow - disabled for scroll performance */
.rules-panel-close:hover {
    background: rgba(255, 50, 50, 0.25);
}

/* Energy Sweep Animation - Only plays once on open */
.rules-energy-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 50, 50, 0.08) 50%,
        transparent 100%
    );
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.rules-panel.active .rules-energy-sweep {
    animation: energySweep 0.6s ease-out forwards;
}

@keyframes energySweep {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Scrollable Content - Optimized for 60fps */
.rules-panel-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 40px;
    /* Hardware acceleration */
    will-change: scroll-position;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Scroll behavior */
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    /* Contain repaints */
    contain: layout style paint;
    /* Minimal scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 50, 50, 0.4) transparent;
}

/* Minimal Custom Scrollbar - No animations */
.rules-panel-scroll::-webkit-scrollbar {
    width: 5px;
}

.rules-panel-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.rules-panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 50, 50, 0.4);
    border-radius: 3px;
}

.rules-panel-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 50, 50, 0.6);
}

/* Section Styling - No transitions inside scroll */
.rules-section {
    margin-bottom: 30px;
    /* No opacity or transform transitions for scroll performance */
    /* Static styling only */
}

/* Stagger Animation DISABLED for scroll performance */
/* Sections now appear instantly without animation */

/* Section Title - No text-shadow for performance */
.rules-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.3);
}

/* Event Title Section */
.rules-title-section {
    text-align: center;
    padding: 20px 0 30px;
}

.rules-event-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    /* No text-shadow for scroll performance */
    margin-bottom: 15px;
}

.rules-title-underline {
    margin-top: 100px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    margin: 0 auto;
    /* No box-shadow for scroll performance */
}

/* Details Grid */
.rules-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.rules-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 15px;
    background: rgba(255, 50, 50, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 8px;
}

.rules-detail-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rules-detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

/* About Text */
.rules-about-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    position: relative;
    padding: 12px 0 12px 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 50, 50, 0.1);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    /* No box-shadow for scroll performance */
}

/* Rounds Container */
.rules-rounds-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rules-round-item {
    padding: 15px;
    background: rgba(255, 50, 50, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.round-number {
    font-size: 10px;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.round-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.round-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.rules-round-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.rules-round-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rules-round-tag {
    padding: 5px 12px;
    background: rgba(255, 50, 50, 0.15);
    border-radius: 15px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* Judging Grid */
.rules-judging-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rules-judging-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 50, 50, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 6px;
}

.judging-criteria {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.judging-weight {
    font-size: 14px;
    font-weight: 600;
    color: #ff4444;
    /* No text-shadow for scroll performance */
}

.rules-judging-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.rules-judging-value {
    font-size: 14px;
    font-weight: 600;
    color: #ff4444;
}

/* Coordinators Section */
.rules-coordinators-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-coordinator-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-coordinator-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rules-coordinator-name {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

.rules-student-coords {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-coord-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    padding: 5px 0;
}

.rules-student-coord {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

/* Panel Active State */
.rules-panel.active {
    transform: translateX(0);
    pointer-events: auto;
}

/* Panel Closed State */
.rules-panel:not(.active) {
    transform: translateX(100%);
}

/* Scrolling State - Disable all animations while scrolling */
.rules-panel.scrolling .rules-energy-sweep,
.rules-panel.scrolling .rules-section,
.rules-panel.scrolling .rules-event-title,
.rules-panel.scrolling .rules-title-underline,
.rules-panel.scrolling .rules-detail-item,
.rules-panel.scrolling .rules-list li::before,
.rules-panel.scrolling .rules-round-item,
.rules-panel.scrolling .rules-judging-item {
    /* Disable all transitions and animations during scroll */
    transition: none !important;
    animation: none !important;
}

/* Ensure panel stays in place during scroll */
.rules-panel.scrolling {
    will-change: scroll-position;
}

/* Responsive */
@media (max-width: 1200px) {
    .rules-panel {
        width: 50%;
    }
}

/* Tablet - Rules panel slides from right */
@media (max-width: 768px) {
    .rules-panel {
        width: 65%;
    }
    
    .rules-panel-scroll {
        padding: 20px 22px;
    }
    
    .rules-event-title {
        font-size: 22px;
        letter-spacing: 4px;
    }
    
    .rules-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile - Rules panel slides from bottom (full-screen) */
@media (max-width: 480px) {
    .rules-panel {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        /* Change transform from horizontal to vertical slide */
        transform: translateY(100%) translateZ(0) !important;
        transition: transform 0.3s ease-out !important;
    }
    
    .rules-panel.active {
        transform: translateY(0) translateZ(0) !important;
    }
    
    .rules-panel:not(.active) {
        transform: translateY(100%) translateZ(0) !important;
    }
    
    .rules-panel-scroll {
        padding: 15px 18px;
    }
    
    .rules-event-title {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .rules-section-title {
        font-size: 9px;
        letter-spacing: 2px;
    }
    
    .rules-panel-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .rules-title-section {
        padding: 12px 0 18px;
    }
    
    .rules-section {
        margin-bottom: 18px;
    }
    
    .rules-list li {
        padding: 8px 0 8px 18px;
        font-size: 11px;
    }
    
    .rules-list li::before {
        width: 5px;
        height: 5px;
    }
    
    .rules-round-item {
        padding: 10px;
    }
    
    .round-name {
        font-size: 13px;
    }
    
    .round-desc {
        font-size: 10px;
    }
    
    .rules-judging-grid {
        grid-template-columns: 1fr;
    }
    
    .rules-judging-item {
        padding: 7px 10px;
    }
    
    .judging-criteria {
        font-size: 10px;
    }
    
    .judging-weight {
        font-size: 11px;
    }
    
    .rules-coordinator-name {
        font-size: 12px;
    }
    
    .student-coord-name {
        font-size: 11px;
    }
}

/* Extra Small Mobile - 320px to 380px */
@media (max-width: 380px) {
    .rules-panel {
        width: 100%;
    }
    
    .rules-panel-scroll {
        padding: 12px 15px;
    }
    
    .rules-event-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .rules-section-title {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .rules-about-text {
        font-size: 11px;
    }
    
    .rules-list li {
        padding: 6px 0 6px 15px;
        font-size: 10px;
    }
    
    .rules-detail-item {
        padding: 8px 10px;
    }
    
    .rules-detail-value {
        font-size: 11px;
    }
    
    .rules-panel-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* ============================================
   PAYMENT SUCCESS SCREEN - Cinematic Style
   ============================================ */
.payment-success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.payment-success-screen.active {
    display: flex;
    opacity: 1;
}

.payment-success-content {
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.98) 0%, rgba(10, 0, 0, 0.99) 100%);
    border: 2px solid rgba(255, 50, 50, 0.6);
    border-radius: clamp(15px, 3vw, 25px);
    padding: clamp(25px, 5vh, 50px);
    max-width: clamp(300px, 90%, 500px);
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 0.3),
        0 0 100px rgba(255, 0, 0, 0.2),
        inset 0 0 50px rgba(255, 0, 0, 0.05);
    animation: successPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 200, 0, 0.1) 100%);
    border: 3px solid rgba(0, 255, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto clamp(15px, 3vh, 25px);
    font-size: clamp(30px, 8vw, 50px);
    color: #00ff00;
    animation: successPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 0, 0.6);
        transform: scale(1.05);
    }
}

.success-title {
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 900;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 5px);
    margin-bottom: clamp(8px, 2vh, 15px);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.success-message {
    font-size: clamp(12px, 3vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: clamp(15px, 3vh, 25px);
}

/* Registration Extension Popup Styles */
.popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(145deg, #1a0a0a 0%, #0d0505 100%);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: clamp(20px, 5vw, 40px);
    max-width: clamp(300px, 90vw, 500px);
    width: 90%;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4), 0 0 80px rgba(255, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    font-size: clamp(20px, 4vw, 28px);
    width: clamp(30px, 6vw, 40px);
    height: clamp(30px, 6vw, 40px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    z-index: 10001;
    pointer-events: auto;
}

.popup-close:hover {
    background: #ff0000;
    color: #000;
    transform: rotate(90deg);
}

.popup-content {
    text-align: center;
    padding: 10px;
    width: 100%;
}

.popup-title {
    color: #ff0000;
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 15px;
    text-align: center;
}

.popup-message {
    color: #fff;
    font-size: clamp(14px, 4vw, 20px);
    line-height: 1.6;
    margin-bottom: 15px;
}

.popup-message strong {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.popup-submessage {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 3vw, 16px);
    margin-top: 20px;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .popup-container {
        padding: 15px;
        border-width: 1px;
    }
    
    .popup-close {
        top: 8px;
        right: 10px;
    }
}

.transaction-details {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: clamp(8px, 2vw, 12px);
    padding: clamp(12px, 3vh, 20px);
    margin-bottom: clamp(15px, 3vh, 25px);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(6px, 1.5vh, 10px) 0;
    border-bottom: 1px solid rgba(255, 50, 50, 0.15);
}

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

.detail-label {
    font-size: clamp(10px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: clamp(11px, 2.5vw, 14px);
    color: #ff4444;
    font-weight: 600;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.confirmation-message {
    font-size: clamp(10px, 2vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: clamp(15px, 3vh, 25px);
    line-height: 1.5;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vh, 12px);
}

.download-receipt-btn {
    width: 100%;
    padding: clamp(12px, 3vh, 16px) clamp(20px, 5vw, 30px);
    background: linear-gradient(135deg, rgba(0, 200, 0, 0.3) 0%, rgba(0, 150, 0, 0.2) 100%);
    border: 2px solid rgba(0, 255, 0, 0.6);
    border-radius: 30px;
    color: #00ff00;
    font-size: clamp(12px, 3vw, 15px);
    font-weight: 700;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-receipt-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.4) 0%, rgba(0, 200, 0, 0.3) 100%);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: clamp(14px, 4vw, 18px);
}

.close-success-btn {
    width: 100%;
    padding: clamp(10px, 2.5vh, 14px) clamp(20px, 5vw, 30px);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Responsive - Payment Success */
@media (max-width: 480px) {
    .payment-success-content {
        padding: 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .success-title {
        font-size: 18px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .payment-success-content {
        padding: 15px;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .success-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .transaction-details {
        padding: 10px;
    }
    
    .detail-label {
        font-size: 9px;
    }
    
    .detail-value {
        font-size: 10px;
    }
}

/* ============================================
   QR PAYMENT SCREEN STYLES - OPTIMIZED
   ============================================ */
.qr-payment-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: clamp(15px, 4vh, 30px);
    width: 100%;
    max-width: 100%;
    /* Removed animation for instant load */
}

.qr-payment-header {
    text-align: center;
    margin-bottom: clamp(15px, 3vh, 25px);
}

.qr-title {
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: clamp(3px, 1vw, 6px);
    text-transform: uppercase;
    margin-bottom: 8px;
    /* Removed text-shadow for performance */
}

.qr-subtitle {
    font-size: clamp(11px, 2.5vw, 14px);
    color: var(--gray);
    letter-spacing: 1px;
}

.qr-code-wrapper {
    width: clamp(180px, 45vw, 250px);
    height: clamp(180px, 45vw, 250px);
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: clamp(15px, 3vh, 25px);
    /* Removed box-shadow for performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-details-box {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(12px, 3vh, 18px);
    margin-bottom: clamp(15px, 3vh, 20px);
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--gray);
    font-weight: 500;
}

.detail-value {
    font-size: clamp(11px, 3vw, 14px);
    color: var(--white);
    font-weight: 600;
}

.detail-value.amount {
    color: var(--primary-red);
    font-size: clamp(13px, 3.5vw, 16px);
}

.payment-instructions {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 0, 0, 0.03);
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-radius: 10px;
    padding: clamp(12px, 3vh, 18px);
    margin-bottom: clamp(20px, 4vh, 30px);
}

.payment-instructions p {
    font-size: clamp(10px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    line-height: 1.5;
}

.payment-instructions strong {
    color: var(--primary-red);
}

.payment-verification-form {
    width: 100%;
    max-width: 350px;
}

.payment-verification-form .form-group {
    margin-bottom: clamp(15px, 3vh, 20px);
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-btn {
    width: 100%;
    padding: clamp(15px, 4vh, 25px);
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.file-upload-btn:hover {
    border-color: rgba(255, 0, 0, 0.5);
}

.upload-icon {
    font-size: clamp(24px, 6vw, 36px);
    color: var(--primary-red);
    font-weight: 300;
}

.upload-text {
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--gray);
    text-align: center;
}

.file-preview {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    align-items: center;
    gap: 10px;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-file-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.error-message {
    display: none;
    font-size: clamp(9px, 2vw, 11px);
    color: var(--primary-red);
    margin-top: 6px;
    padding-left: 5px;
}

.error-message.show {
    display: block;
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.submit-payment-btn {
    width: 100%;
    padding: clamp(14px, 3.5vh, 18px) clamp(20px, 5vw, 30px);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: clamp(12px, 3vw, 15px);
    font-weight: 700;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.submit-payment-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--bright-red) 0%, var(--primary-red) 100%);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.submit-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    font-size: clamp(11px, 2.5vw, 14px);
}

.back-to-form-btn {
    width: 100%;
    padding: clamp(12px, 3vh, 16px) clamp(20px, 5vw, 30px);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 600;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.back-to-form-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Responsive - QR Payment */
@media (max-width: 480px) {
    .qr-code-wrapper {
        width: 180px;
        height: 180px;
        padding: 10px;
    }
    
    .payment-details-box,
    .payment-instructions,
    .payment-verification-form {
        max-width: 100%;
    }
    
    .file-upload-btn {
        padding: 20px 15px;
    }
}

@media (max-width: 380px) {
    .qr-title {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .qr-code-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .payment-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
