/* ─────────────────────────────────────────────────────────────────────────────
   style.css — SVPL · Sangli Volleyball Premier League
   Color palette extracted from brand images:
     Deep black/dark maroon bg · Gold #c9a227 · Crimson #8b1a1a · Fiery orange #e85c04
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Cinzel:wght@700;900&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
    --black: #080305;
    --dark: #110608;
    --maroon: #1e0505;
    --maroon-mid: #2d0808;
    --crimson: #7a1515;
    --crimson-lit: #a31c1c;
    --gold: #c9a227;
    --gold-light: #e8c85a;
    --gold-glow: rgba(201, 162, 39, 0.28);
    --orange: #e85c04;
    --orange-glow: rgba(232, 92, 4, 0.30);
    --white: #ffffff;
    --warm-white: #f5e6c8;
    --text-muted: #a08060;
    --error: #ff4d4d;
    --success: #22c55e;
    --border-gold: rgba(201, 162, 39, 0.30);
    --border-dim: rgba(201, 162, 39, 0.10);
    --card-bg: rgba(15, 3, 3, 0.75);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 12px 50px rgba(0, 0, 0, 0.70);
    --nav-height: 80px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ── Body — deep black with ember glow ─────────────────────────────────────── */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Page Transition ─────────────────────────────────────────────────────── */
@keyframes pageEntrance {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Inter', sans-serif;
    color-scheme: dark;
    background: linear-gradient(-45deg, #080305, #120608, #1e080b, #6a2600, #5e4b14);
    background-size: 400% 400%;
    animation: 
        gradientBG 15s ease infinite,
        fadeIn 0.8s ease forwards;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--white);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Entrance for content only */
.page-entrance {
    animation: pageEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Scroll Reveal Utility ────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(201, 162, 39, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(232, 92, 4, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Page wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
    /* Sufficient top margin to clear the fixed navbar and progress bar */
    margin: 11rem auto 4rem; 
    padding: 0 1.2rem;
    width: 100%;
    /* Max width for large screens */
    max-width: 1200px;
}

@media (max-width: 992px) {
    .page-wrapper {
        max-width: 740px;
        margin-top: 7rem;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        margin-top: 6rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        margin-top: 5.5rem;
        padding: 0 0.75rem;
    }
}

.no-nav-wrapper {
    margin-top: 4rem !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAVBAR (Universal)
   ══════════════════════════════════════════════════════════════════════════════ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 8%; 
    background: rgba(8, 3, 5, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /* Increased priority */
    width: 100%;
    height: var(--nav-height);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure navbar is solid immediately on non-home pages if desired, 
   but for now let's just make the scrolled state more robust */
body.scrolled .navbar {
    --nav-height: 70px;
    background: rgba(8, 3, 5, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 48px; /* Reduced from 60px */
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.4));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.03em;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Buttons in nav */
.nav-btn {
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--warm-white) !important;
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold) !important;
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.25);
}

/* Keep nav links visually consistent */
.register-nav,
.admin-nav,
.logout-nav,
.auction-nav {
    background: transparent;
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Navbar Responsive */
@media (max-width: 860px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 2, 4, 0.95);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--gold);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-full {
        display: none;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BANNER SECTION
   ══════════════════════════════════════════════════════════════════════════════ */
.banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 650px;
    animation: slideUpFade 0.8s ease backwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(-40%) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.banner-content h1 {
    font-size: clamp(2rem, 8vw, 3.8rem);
    font-family: 'Cinzel', serif;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.banner-content p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--warm-white);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.banner-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.banner-btn {
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.banner-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a07818 100%);
    color: var(--black);
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.3);
}

.banner-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 162, 39, 0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--black);
}

.banner-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.2);
}

.banner-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .banner-content {
        left: 5%;
        right: 5%;
        text-align: center;
        width: 90%;
    }

    .banner-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .banner-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* ══════════════════════════════════════════════════════════════════════════════
   HEADER / LOGO
══════════════════════════════════════════════════════════════════════════════ */

.site-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.main-site-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.5));
}

/* ── Octagonal logo badge ───────────────────────────────────────────────────── */
.logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.logo-octagon {
    width: 110px;
    height: 110px;
    position: relative;
    filter: drop-shadow(0 0 18px rgba(201, 162, 39, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

/* The octagon shape via clip-path */
.logo-inner {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, #1a0a00, #0a0000);
    border: 3px solid var(--gold);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.logo-devanagari {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold);
    font-family: 'Noto Serif Devanagari', 'Mangal', serif;
    font-weight: 700;
    text-shadow: 0 0 8px var(--gold-glow);
}

.logo-devanagari-sub {
    font-size: 0.55rem;
    color: var(--gold-light);
    font-family: 'Noto Serif Devanagari', 'Mangal', serif;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ── SVPL big title ─────────────────────────────────────────────────────────── */
.svpl-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #f0d060 0%, #c9a227 40%, #a07818 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 12px rgba(201, 162, 39, 0.45));
}

.svpl-fullname {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.20em;
    color: var(--gold-light);
    margin-top: 0.3rem;
    text-transform: uppercase;
}

/* Organized-by ribbon */
.organized-ribbon {
    display: inline-block;
    background: linear-gradient(90deg, var(--crimson), var(--crimson-lit), var(--crimson));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.35rem 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
}

.organized-ribbon .trust-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.approved-txt {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.06em;
}

/* Registration deadline badge */
.deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 162, 39, 0.10);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════════════════════════════════════════ */

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(201, 162, 39, 0.15),
        0 0 100px rgba(201, 162, 39, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(201, 162, 39, 0.2),
        0 0 120px rgba(201, 162, 39, 0.1);
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.registration-progress {
    position: fixed;
    top: var(--nav-height); /* Automatically syncs with navbar */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2100; /* Above navbar to be visible */
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .registration-progress {
    top: 70px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section titles ─────────────────────────────────────────────────────────── */
.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.section-title i {
    font-size: 1.1rem;
    color: var(--orange);
    filter: drop-shadow(0 0 5px var(--orange-glow));
}

.section-title span {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Form grid ──────────────────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    gap: 1.2rem;
}

.form-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 860px) {

    .form-grid.two-col,
    .form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.8rem 1.2rem;
    }

    .svpl-title {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .logo-octagon,
    .logo-inner {
        width: 95px;
        height: 95px;
    }

    .logo-devanagari {
        font-size: 1.3rem;
    }
}

/* Aadhaar Part Inputs Responsive - Keep in row on all devices */
.aadhaar-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center;
}

.aadhaar-container input {
    flex: 1;
    width: 0; /* This allows flex-grow to take over and share space equally */
    min-width: 60px; /* Ensures they don't get too small to type in */
    text-align: center;
    letter-spacing: 2px;
    padding: 0.8rem 0.5rem;
}

.aadhaar-divider {
    color: var(--gold);
    font-weight: bold;
}

@media (max-width: 480px) {
    .aadhaar-container {
        gap: 5px !important;
    }
    .aadhaar-container input {
        padding: 0.8rem 0.2rem !important; /* Slightly less padding on mobile */
        font-size: 0.85rem;
    }
}

/* ── Form group ─────────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warm-white);
    letter-spacing: 0.04em;
}

.form-label .req {
    color: var(--gold);
    margin-left: 2px;
}

.form-label .opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.73rem;
}

/* ── Inputs / selects / textarea ─────────────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(201, 162, 39, 0.18);
    border-radius: var(--radius-sm);
    color: var(--warm-white);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.72rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(201, 162, 39, 0.06);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18);
}

/* Custom select arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a227' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: #150304;
    color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Radio group ─────────────────────────────────────────────────────────────── */
.radio-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--warm-white);
}

.radio-option input[type="radio"] {
    accent-color: var(--gold);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

/* ── File upload ─────────────────────────────────────────────────────────────── */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px dashed rgba(201, 162, 39, 0.30);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-label:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.06);
}

.file-upload-label.has-file {
    border-style: solid;
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.file-upload-label.error {
    border-color: var(--error);
    border-style: solid;
}

.file-upload-icon {
    font-size: 1.3rem;
}

.file-upload-text {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-text.selected {
    color: var(--warm-white);
}

input[type="file"] {
    display: none;
}

/* ── Error / hint ────────────────────────────────────────────────────────────── */
.field-error {
    font-size: 0.73rem;
    color: var(--error);
    font-weight: 500;
    display: none;
    margin-top: 0.1rem;
}

.field-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Submit button ───────────────────────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d4a01a 0%, #a07010 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: #0a0000;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(10, 0, 0, 0.30);
    border-top-color: #0a0000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Alert banners ───────────────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: fadeIn 0.4s ease;
    border: 1px solid transparent;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #a7f3d0;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}

.alert-success strong {
    color: var(--gold-light);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecaca;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO / FEATURES / STATS
   ══════════════════════════════════════════════════════════════════════════════ */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #0a0000 0%, #1e0505 100%);
    border-bottom: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 30px var(--gold-glow);
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features .card {
    background: rgba(15, 3, 3, 0.4);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.features .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features .card:hover {
    transform: translateY(-12px);
    border-color: var(--border-gold);
    background: rgba(45, 12, 12, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.features .card:hover::before {
    opacity: 1;
}

.features .card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.features .card:hover h3 {
    transform: scale(1.05);
}

.features .card .feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.features .card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.6));
}

.features .card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.stats-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 5, 5, 0.8));
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    flex-wrap: wrap;
    backdrop-filter: blur(5px);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: 900;
    font-family: 'Cinzel', serif;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .features {
        padding: 40px 15px;
        grid-template-columns: 1fr;
    }

    .stats-section {
        gap: 30px;
        padding: 40px 15px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER (Universal)
   ══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, rgba(8, 3, 5, 0.95) 0%, #060101 100%);
    border-top: 1px solid var(--border-gold);
    padding: 50px 5% 30px;
    color: var(--warm-white);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
}

.footer-column h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-about .footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.footer-about p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--gold);
    margin-top: 4px;
}

.dev-info {
    background: rgba(201, 162, 39, 0.03);
    border: 1px solid var(--border-gold);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dev-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.dev-logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
}

.dev-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 5px;
    display: block;
}

.dev-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.dev-link:hover { opacity: 0.8; }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom strong { color: var(--gold-light); }

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ── Decorative gold divider ─────────────────────────────────────────────────── */
.gold-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.6rem auto 0;
}

/* --- Global Responsive Overrides for Public Pages --- */
@media (max-width: 1024px) {
    .banner-content h1 { font-size: clamp(2rem, 8vw, 4rem); }
}

@media (max-width: 768px) {
    .svpl-title { font-size: clamp(2.5rem, 8vw, 4rem); }
    .page-wrapper.login-wrapper, .page-wrapper.register-wrapper { margin-top: 5rem !important; }
    .form-row, .three-col, .form-row.three-col { flex-direction: column !important; }
    .form-group { width: 100% !important; flex: none !important; margin-bottom: 1rem; }
    .hero-split { flex-direction: column; text-align: center; }
    .photo-preview { width: 100%; height: auto; min-height: 200px; }
    /* NOTE: Do NOT override nav-links here — the mobile slide-in menu handles it at breakpoint 860px */
    .logo-inner { width: 80px; height: 80px; }
    .logo-octagon { width: 80px; height: 80px; }
    /* Footer bottom stacks on small screens */
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    /* Stats section wraps nicely */
    .stats-section { gap: 20px; padding: 30px 15px; }
    .stat-item { padding: 10px; }
    .stat-number { font-size: 2.2rem; }
    /* Banner */
    .banner-content { left: 4%; right: 4%; width: 92%; }
    /* Feature cards stack */
    .features { padding: 40px 15px; }
}

@media (max-width: 480px) {
    .banner-buttons { flex-direction: column; width: 100%; }
    .banner-btn { text-align: center; justify-content: center; width: 100%; }
    .brand-group { flex-direction: column; align-items: flex-start; }
    /* Form card shrinks nicely */
    .form-card { padding: 1.5rem 1rem; }
    /* Section titles adjust */
    .section-title { margin: 2rem 0 1rem; }
    /* Stat items go full width */
    .stat-item { flex: 1 1 100%; }
    /* Footer single column */
    .footer-container { gap: 25px; }
    .footer-about p { max-width: 100%; }
}



/* --- 🏆 PREMIUM EYE-CATCHY TABLES (Public) --- */
.public-table-container {
    overflow-x: auto;
    border-radius: 20px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
}

.public-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.public-table th {
    color: #c9a227;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 15px;
    border-bottom: 1px solid #c9a227;
}

.public-table td {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    border-style: solid none;
}

.public-table td:first-child { border-left: 1px solid rgba(255,255,255,0.05); border-radius: 10px 0 0 10px; }
.public-table td:last-child { border-right: 1px solid rgba(255,255,255,0.05); border-radius: 0 10px 10px 0; }

.public-table tr:hover td {
    background: rgba(201, 162, 39, 0.08);
    border-color: #c9a227;
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE — Public / Registration Pages
   ═══════════════════════════════════════════════════════════════════════ */

/* ── About / Info sections ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid,
    .features-grid,
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-split {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .hero-split img,
    .hero-split .hero-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Stats row wraps */
    .stats-section {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ── 768px ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Page wrapper narrower */
    .page-wrapper {
        padding: 0 1rem;
    }

    /* Form card */
    .form-card {
        padding: 1.5rem 1.2rem;
        border-radius: 10px;
    }

    /* Registration / login headings */
    .svpl-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    /* Two-col forms → single column */
    .form-grid.two-col,
    .form-grid.three-col {
        grid-template-columns: 1fr !important;
    }

    /* Photo preview full width */
    .photo-preview {
        width: 100%;
        height: auto;
    }

    /* About page sections stack */
    .about-section {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .about-section img {
        width: 100%;
        border-radius: 10px;
    }

    /* Team cards */
    .teams-grid,
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Logo smaller on mobile */
    .logo-octagon,
    .logo-inner {
        width: 80px;
        height: 80px;
    }

    /* Banner: center content */
    .banner-content {
        left: 4% !important;
        right: 4% !important;
        text-align: center;
    }

    .banner-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    /* Registration deadline badge: wrap */
    .deadline-badge {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 0.72rem;
        margin: 2rem 0 1rem;
    }
}

/* ── 576px: Small phones ──────────────────────────────────────────────── */
@media (max-width: 576px) {

    /* Very compact page wrapper */
    .page-wrapper {
        padding: 0 0.75rem;
        margin-top: 5rem !important;
    }

    /* Form card ultra compact */
    .form-card {
        padding: 1.2rem 1rem;
    }

    /* Single column teams/cards */
    .teams-grid,
    .card-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stat items: full width */
    .stat-item {
        flex: 1 1 100%;
    }

    /* Banner buttons stacked */
    .banner-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .banner-btn {
        width: 100%;
        justify-content: center;
    }

    /* Register form submit button */
    .btn-submit,
    .submit-btn {
        width: 100%;
    }

    /* Logo title */
    .svpl-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    /* Logo badge */
    .logo-octagon,
    .logo-inner {
        width: 70px;
        height: 70px;
    }

    /* Table responsive: stacked on very small screens */
    .public-table th:nth-child(n+4),
    .public-table td:nth-child(n+4) {
        display: none;
    }

    /* Organized ribbon: smaller text */
    .organized-ribbon {
        font-size: 0.72rem;
        padding: 0.3rem 0.8rem;
    }

    /* About page: all images full width */
    .about-img {
        width: 100%;
        height: auto;
    }
}

/* ── 400px: Very tiny phones ──────────────────────────────────────────── */
@media (max-width: 400px) {
    .page-wrapper {
        padding: 0 0.5rem;
    }

    .form-card {
        padding: 1rem 0.75rem;
    }

    .banner-content h1 {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
    }

    .banner-content p {
        font-size: 0.88rem;
    }

    .svpl-fullname {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    /* Input text slightly smaller */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.88rem;
        padding: 0.6rem 0.8rem;
    }
}

