@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Montserrat:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

:root {
    --black: #0a0008;
    --deep: #130011;
    --card-bg: #1a0018;
    --pink-dark: #8b1a5c;
    --pink: #c4307a;
    --pink-bright: #e8488f;
    --pink-light: #f4a0c8;
    --pink-glow: rgba(228, 72, 143, 0.25);
    --gold: #d4a843;
    --gold-light: #f0c96a;
    --white: #fff5f9;
    --muted: #9d7a8a;
    --border: rgba(196, 48, 122, 0.25);
    --gradient-main: linear-gradient(135deg, #c4307a 0%, #8b1a5c 50%, #4a0f35 100%);
    --gradient-gold: linear-gradient(135deg, #d4a843, #f0c96a, #d4a843);
    --gradient-card: linear-gradient(145deg, #1a0018, #250020);
    --shadow-pink: 0 0 30px rgba(196, 48, 122, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ NAVBAR ━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 0, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--gold-light);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 20px var(--gold);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.navbar-nav a {
    color: var(--pink-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.navbar-nav a:hover { color: var(--gold-light); }

.btn-nav {
    background: var(--gradient-main);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem !important;
    box-shadow: var(--shadow-pink);
    transition: all 0.3s !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,48,122,0.5) !important; color: white !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━ HERO ━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(139, 26, 92, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 80% 30%, rgba(196, 48, 122, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(212, 168, 67, 0.1) 0%, transparent 60%),
        var(--black);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff5f9 30%, var(--pink-light) 60%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-script {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--gold-light);
    display: block;
    -webkit-text-fill-color: var(--gold-light);
    text-shadow: 0 0 30px rgba(212,168,67,0.5);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.badge-item {
    background: rgba(196,48,122,0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    color: var(--pink-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ BUTTONS ━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-pink);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196,48,122,0.5);
    color: white;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212,168,67,0.5);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--pink-light);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: rgba(196,48,122,0.1);
    border-color: var(--pink);
    color: white;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ SECTIONS ━━━━━━━━━━━━━━━━━━━━━━ */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gold-divider {
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ PRIZES ━━━━━━━━━━━━━━━━━━━━━━ */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.prize-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.prize-card:hover { transform: translateY(-5px); }

.prize-card.first {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    grid-row: span 1;
    transform: scale(1.05);
}
.prize-card.first:hover { transform: scale(1.05) translateY(-5px); }

.prize-medal {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prize-place {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.prize-card.first .prize-place { color: var(--gold-light); }
.prize-card.second .prize-place { color: #c0c0c0; }
.prize-card.third .prize-place { color: #cd7f32; }

.prize-name {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ HOW IT WORKS ━━━━━━━━━━━━━━━━━━━━━━ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1.2rem;
    box-shadow: var(--shadow-pink);
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 0.95rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ CONTESTANTS GRID ━━━━━━━━━━━━━━━━━━━━━━ */
.contestants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contestant-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.contestant-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}

.contestant-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.contestant-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a0018, #2d0028);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--pink-dark);
}

.contestant-info {
    padding: 1.2rem;
}

.contestant-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.contestant-school {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.contestant-votes {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.votes-count {
    font-size: 0.85rem;
    color: var(--pink-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ FORMS ━━━━━━━━━━━━━━━━━━━━━━ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    background: 
        radial-gradient(ellipse 60% 60% at 30% 40%, rgba(139,26,92,0.3) 0%, transparent 70%),
        var(--black);
}

.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .script {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--gold-light);
    text-shadow: 0 0 20px var(--gold);
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.3rem;
}

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

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--pink);
    background: rgba(196,48,122,0.08);
    box-shadow: 0 0 0 3px rgba(196,48,122,0.15);
}

.form-control::placeholder { color: var(--muted); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.form-divider {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━ ALERTS ━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.alert-success { background: rgba(76,175,80,0.15); border: 1px solid rgba(76,175,80,0.3); color: #81c784; }
.alert-error { background: rgba(244,67,54,0.15); border: 1px solid rgba(244,67,54,0.3); color: #e57373; }
.alert-info { background: rgba(196,48,122,0.15); border: 1px solid var(--border); color: var(--pink-light); }
.alert-warning { background: rgba(212,168,67,0.15); border: 1px solid rgba(212,168,67,0.3); color: var(--gold-light); }

/* ━━━━━━━━━━━━━━━━━━━━━━ PAYMENT BOX ━━━━━━━━━━━━━━━━━━━━━━ */
.payment-box {
    background: rgba(212,168,67,0.08);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.payment-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-label {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ PROFILE ━━━━━━━━━━━━━━━━━━━━━━ */
.profile-header {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pink);
    box-shadow: var(--shadow-pink);
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-pink);
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ FOOTER ━━━━━━━━━━━━━━━━━━━━━━ */
footer {
    background: var(--deep);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--gold-light);
    display: block;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--pink-light); }

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━ DASHBOARD ━━━━━━━━━━━━━━━━━━━━━━ */
.dashboard-page {
    min-height: 100vh;
    padding: 6rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(196,48,122,0.15);
    color: var(--pink-light);
}

.main-content {
    min-height: 400px;
}

.content-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━ TABLE ━━━━━━━━━━━━━━━━━━━━━━ */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table th {
    text-align: left;
    padding: 0.8rem 1rem;
    background: rgba(196,48,122,0.1);
    color: var(--pink-light);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(196,48,122,0.1);
    color: var(--white);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(196,48,122,0.05); }

/* ━━━━━━━━━━━━━━━━━━━━━━ BADGE/STATUS ━━━━━━━━━━━━━━━━━━━━━━ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pending { background: rgba(255,152,0,0.15); color: #ffb74d; }
.status-approved { background: rgba(76,175,80,0.15); color: #81c784; }
.status-rejected { background: rgba(244,67,54,0.15); color: #e57373; }
.status-paid { background: rgba(76,175,80,0.15); color: #81c784; }

/* ━━━━━━━━━━━━━━━━━━━━━━ AGE GATE ━━━━━━━━━━━━━━━━━━━━━━ */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10,0,8,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.age-gate-card {
    background: var(--gradient-card);
    border: 1px solid var(--gold);
    border-radius: 24px;
    padding: 3rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━ RESPONSIVE ━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .prizes-grid { grid-template-columns: 1fr; }
    .prize-card.first { transform: none; }
    .prize-card.first:hover { transform: translateY(-5px); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .navbar-nav { gap: 1rem; }
    .profile-header { flex-direction: column; text-align: center; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━ ANIMATIONS ━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(196,48,122,0.3); }
    50% { box-shadow: 0 0 40px rgba(196,48,122,0.6); }
}

.pulse { animation: pulse-glow 2s ease-in-out infinite; }

/* Scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-area:hover {
    border-color: var(--pink);
    background: rgba(196,48,122,0.05);
}
.upload-area .icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-area p { color: var(--muted); font-size: 0.9rem; }
