/* ============================================
   EVENT SPESIAL ULTAH IRSYAD & NEXUS
   Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #66e5ff;
    --secondary: #7c3aed;
    --secondary-dark: #5b21b6;
    --secondary-light: #a78bfa;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(15, 15, 35, 0.8);
    --bg-card-hover: rgba(20, 20, 50, 0.9);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #ffd700 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #050510 100%);
    --font-main: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-pixel: 'Press Start 2P', cursive;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ---- Glassmorphism ---- */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ---- Particles ---- */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* ---- Floating Blocks ---- */
.floating-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.block {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    animation: floatBlock linear infinite;
}

.block-1 { left: 5%; animation-duration: 20s; animation-delay: 0s; top: 10%; }
.block-2 { left: 15%; animation-duration: 25s; animation-delay: 2s; top: 20%; }
.block-3 { left: 30%; animation-duration: 18s; animation-delay: 4s; top: 5%; }
.block-4 { left: 50%; animation-duration: 22s; animation-delay: 1s; top: 15%; }
.block-5 { left: 65%; animation-duration: 19s; animation-delay: 3s; top: 25%; }
.block-6 { left: 80%; animation-duration: 24s; animation-delay: 5s; top: 8%; }
.block-7 { left: 90%; animation-duration: 21s; animation-delay: 2.5s; top: 18%; }
.block-8 { left: 45%; animation-duration: 23s; animation-delay: 6s; top: 30%; }

@keyframes floatBlock {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-40px) rotate(270deg);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
}

.logo-text .accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link i {
    font-size: 0.8rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-bright);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 6px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-google {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        linear-gradient(180deg, rgba(5, 5, 16, 0.3) 0%, rgba(10, 10, 26, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

.hero-title {
    margin-bottom: 16px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.title-names {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
}

.name-irsyad {
    background: linear-gradient(135deg, #00d4ff, #66e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.ampersand {
    color: var(--accent);
    margin: 0 10px;
    font-size: 0.8em;
}

.name-nexus {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.info-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ---- Countdown ---- */
.countdown-container {
    margin-bottom: 40px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    padding: 12px 16px;
    background-color: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius);
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    font-weight: 600;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    animation: blinkSep 1s infinite;
}

@keyframes blinkSep {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Hero Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-glow {
    animation: btnGlow 2s infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.2); }
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ---- Quota Bar Hero ---- */
.quota-bar-hero {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.quota-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: scrollBounce 2s infinite;
    display: block;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: rgba(5, 5, 16, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.about-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.about-card:hover .about-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Organizers ---- */
.organizers {
    text-align: center;
}

.organizers-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
}

.organizers-title i {
    margin-right: 8px;
}

.organizers-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.organizer-card {
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    min-width: 200px;
}

.organizer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.2);
}

.organizer-avatar {
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.avatar-placeholder.nexus {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.organizer-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.organizer-card p {
    font-size: 0.85rem;
    color: #5865F2;
    margin-bottom: 8px;
}

.organizer-role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PRIZES SECTION
   ============================================ */
.prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    align-items: end;
}

.prize-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.prize-card:hover {
    transform: translateY(-8px);
}

.prize-card.featured {
    padding-top: 48px;
}

.prize-crown {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--gold);
    animation: crownBounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes crownBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.prize-rank {
    margin-bottom: 20px;
}

.rank-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: var(--font-display);
    position: relative;
}

.rank-badge i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.rank-badge span {
    font-size: 0.8rem;
    font-weight: 800;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #1a1a2e;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #1a1a2e;
    box-shadow: 0 4px 30px rgba(192, 192, 192, 0.3);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8690e);
    color: #1a1a2e;
    box-shadow: 0 4px 30px rgba(205, 127, 50, 0.3);
}

.prize-card.prize-gold {
    border-color: rgba(255, 215, 0, 0.3);
}

.prize-card.prize-silver {
    border-color: rgba(192, 192, 192, 0.2);
}

.prize-card.prize-bronze {
    border-color: rgba(205, 127, 50, 0.2);
}

.prize-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 24px;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.prize-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.prize-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.prize-icon.money {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.prize-icon.crate {
    background: rgba(124, 58, 237, 0.15);
    color: var(--secondary-light);
}

.prize-icon.ingame {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.prize-icon.special {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
}

.prize-detail {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.prize-value {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 0.95rem;
}

.prize-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   RULES SECTION
   ============================================ */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-category {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.rule-category:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.rule-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rule-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.rule-icon.general {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
}

.rule-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.rule-icon.info {
    background: rgba(124, 58, 237, 0.15);
    color: var(--secondary-light);
}

.rule-icon.sport {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.rule-header h3 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.rule-toggle {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.rule-header.active .rule-toggle {
    transform: rotate(180deg);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.rule-content.open {
    max-height: 2000px;
    padding: 0 24px 24px;
}

.rule-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.rule-warning i {
    color: var(--danger);
    font-size: 1.2rem;
    margin-top: 2px;
}

.rule-warning p {
    font-size: 0.85rem;
    color: var(--text);
}

.rule-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.2);
    min-width: 40px;
}

.rule-item.danger .rule-number {
    color: rgba(239, 68, 68, 0.2);
}

.rule-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-text h4 i {
    color: var(--primary);
    font-size: 0.85rem;
}

.rule-item.danger .rule-text h4 i {
    color: var(--danger);
}

.rule-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.register-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.quota-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: sticky;
    top: 100px;
}

.quota-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.quota-header i {
    font-size: 1.3rem;
    color: var(--primary);
}

.quota-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
}

.quota-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.quota-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quota-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.quota-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.quota-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.quota-current {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quota-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 2px;
}

.quota-max {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quota-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Form Card ---- */
.form-card {
    padding: 36px;
    border-radius: var(--radius-lg);
}

.login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.login-prompt h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.login-prompt p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-google-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-google-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-google-large i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Form User Info ---- */
.form-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.form-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.form-user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.form-user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Form Groups ---- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 60px 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-bright);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-head {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    image-rendering: pixelated;
}

#mc-head-placeholder {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.input-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ---- Account Type Selector ---- */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.type-option input:checked + .type-card {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.type-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

/* ---- Checkbox ---- */
.form-agreement {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    margin-top: 1px;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.btn-register {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    justify-content: center;
}

.btn-register:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Already Registered ---- */
.already-registered {
    text-align: center;
    padding: 40px 20px;
}

.registered-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--success);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.already-registered h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 12px;
}

.already-registered p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ============================================
   PLAYERS SECTION
   ============================================ */
.players-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-bright);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.player-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-number {
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
}

.player-card {
    position: relative;
}

.player-head {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    margin: 0 auto 12px;
    image-rendering: pixelated;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.player-card:hover .player-head {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.player-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
    word-break: break-all;
}

.player-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-type.premium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.player-type.crack {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.player-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.players-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.players-loading p {
    color: var(--text-muted);
}

.no-players {
    text-align: center;
    padding: 60px 20px;
}

.no-players i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-players h3 {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.no-players p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(5, 5, 16, 0.8);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-bright);
}

.footer-brand .accent {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4, .footer-organizers h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.footer-links a, .footer-organizers a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover, .footer-organizers a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-made {
    font-size: 0.8rem;
}

.footer-made i {
    color: var(--danger);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: toastIn 0.4s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.toast.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.toast.warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.toast.info {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-light);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    max-width: 500px;
    width: 100%;
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .prizes-grid {
        grid-template-columns: 1fr;
    }

    .prize-card.featured {
        order: -1;
    }

    .register-container {
        grid-template-columns: 1fr;
    }

    .quota-card {
        position: static;
    }

    .players-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .user-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 16px 50px;
    }

    .title-line {
        font-size: 1.1rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 12px;
    }

    .countdown {
        gap: 4px;
    }

    .countdown-number {
        font-size: 1.5rem;
        min-width: 60px;
        padding: 10px 8px;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .players-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
    }
}