/* ============================================================
   TORNEO ADEX — Premium Futuristic Design System
   ============================================================ */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    /* Palette */
    --bg-void: #06060e;
    --bg-deep: #0b0b1a;
    --bg-surface: #0f0f23;
    --bg-elevated: #14142b;
    --bg-glass: rgba(15, 15, 35, 0.6);
    --bg-glass-hover: rgba(20, 20, 50, 0.7);
    --bg-glass-strong: rgba(15, 15, 35, 0.85);

    --accent-primary: #7c5cfc;
    --accent-primary-dim: rgba(124, 92, 252, 0.15);
    --accent-primary-glow: rgba(124, 92, 252, 0.35);
    --accent-secondary: #a78bfa;
    --accent-warm: #c084fc;
    --accent-hot: #e879f9;
    --accent-cyan: #67e8f9;
    --accent-cyan-dim: rgba(103, 232, 249, 0.12);

    --text-primary: #f0eeff;
    --text-secondary: #a5a3c7;
    --text-muted: #6b6890;
    --text-accent: var(--accent-secondary);

    --success: #34d399;
    --success-dim: rgba(52, 211, 153, 0.12);
    --danger: #fb7185;
    --danger-dim: rgba(251, 113, 133, 0.12);
    --warning: #fbbf24;
    --warning-dim: rgba(251, 191, 36, 0.12);

    /* Borders */
    --border-subtle: rgba(124, 92, 252, 0.08);
    --border-default: rgba(124, 92, 252, 0.12);
    --border-hover: rgba(124, 92, 252, 0.25);
    --border-active: rgba(124, 92, 252, 0.4);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-primary-glow);
    --shadow-glow-sm: 0 0 15px rgba(124, 92, 252, 0.2);
    --shadow-glow-cyan: 0 0 20px rgba(103, 232, 249, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.5s;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 92, 252, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 90%, rgba(103, 232, 249, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(167, 139, 250, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--accent-cyan); }

::selection {
    background: var(--accent-primary-dim);
    color: var(--text-primary);
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.container-sm { max-width: 720px; }
.container-xs { max-width: 460px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ===== GLASS MIXIN (via class) ===== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--border-default);
}

.glass-strong {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid var(--border-default);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    background: rgba(6, 6, 14, 0.6);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border-bottom: 1px solid rgba(167, 139, 250, 0.06);
    transition: background var(--duration-normal) var(--ease-out);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    position: relative;
}
.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, #a78bfa, #e879f9, transparent);
    border-radius: 1px;
}

.nav-links {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.nav-links a {
    color: rgba(240, 238, 255, 0.85);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
    letter-spacing: 0.3px;
    position: relative;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(167, 139, 250, 0.1);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    background: var(--accent-secondary);
    border-radius: 1px;
    transition: transform var(--duration-fast) var(--ease-out);
}
.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-logout {
    background: transparent;
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: rgba(251, 113, 133, 0.8);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
    margin-left: 0.75rem;
}
.nav-logout:hover {
    background: rgba(251, 113, 133, 0.08);
    border-color: rgba(251, 113, 133, 0.4);
    color: var(--danger);
}

.admin-navbar .nav-brand {
    background: linear-gradient(90deg, #67e8f9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== HERO VIDEO ===== */
.hero-video {
    overflow: hidden;
    height: calc(100vh - 64px);
    min-height: 500px;
    max-height: calc(100vh - 64px);
}

.hero-video::before { display: none; }

.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    background: var(--bg-void);
}

@media (max-width: 1150px) {
    .hero-video-bg video {
        object-fit: cover;
    }
    .hero-video {
        height: 70vh;
        min-height: 400px;
        max-height: 70vh;
    }
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .hero-tag {
        font-size: 0.7rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    .btn-lg {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 50%,
            rgba(6, 6, 14, 0.5) 58%,
            rgba(6, 6, 14, 0.85) 68%,
            var(--bg-void) 76%
        ),
        linear-gradient(180deg,
            transparent 0%,
            transparent 85%,
            var(--bg-void) 100%
        );
    pointer-events: none;
}

.hero-video .hero-content {
    position: relative;
    z-index: 2;
}

/* Scroll down indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity var(--duration-normal) var(--ease-out);
}
.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-text {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.hero-scroll-arrow {
    font-size: 1.2rem;
    color: #fff;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Hero content aligned to the right */
.hero-content-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1140px;
    padding-right: 10%;
    margin-right: 0;
    margin-left: auto;
    margin-top: -4rem;
}

.hero-content-right .hero-tag { align-self: center; }

.hero-content-right .hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero-content-right .hero-description {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
}

.hero-content-right .hero-actions {
    justify-content: center;
}

@media (max-width: 1600px) {
    .hero-content-right { padding-right: 10%; }
}
@media (max-width: 1500px) {
    .hero-content-right { padding-right: 5%; }
}
@media (max-width: 1400px) {
    .hero-content-right { padding-right: 4%; }
}

@media (max-width: 1200px) {
    .hero-content-right { padding-right: 3%; }
}

@media (max-width: 900px) {
    .hero-content-right { padding-right: 1%; }
}

@media (max-width: 600px) {
    .hero-content-right { padding-right: 0; }
}

@media (max-width: 768px) {
    .hero-video-overlay {
        background:
            linear-gradient(180deg,
                transparent 0%,
                transparent 50%,
                rgba(6, 6, 14, 0.6) 65%,
                rgba(6, 6, 14, 0.9) 85%,
                var(--bg-void) 100%
            );
    }
    .hero-video {
        height: 55vh;
        min-height: 350px;
        max-height: 55vh;
        align-items: flex-end;
        padding-bottom: 1rem;
    }
    .hero-video-bg {
        height: 90%;
        top: 0;
    }
    .hero-video-bg video {
        object-position: left top;
    }
    .hero-content-right {
        padding-right: 0;
        margin: 0 auto;
        margin-top: 0;
    }
    .hero-content-right {
        background: radial-gradient(ellipse at center, rgba(6, 6, 14, 1.75) 5%, transparent 70%);
        padding: 1.5rem;
    }
    .hero-content-right .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .hero-content-right .hero-subtitle {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
        letter-spacing: 2px;
        margin-bottom: 0.15rem;
    }
    .hero-content-right .hero-tag {
        font-size: 0.65rem;
        padding: 0.35rem 1rem;
        margin-bottom: 1rem;
    }
    .hero-content-right .hero-description {
        font-size: 0.85rem;
        max-width: 320px;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    .hero-content-right .hero-actions {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .hero-content-right .hero-actions .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    .hero-scroll-indicator {
        display: none;
    }
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(103, 232, 249, 0.15);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, #a78bfa, #e879f9, #67e8f9, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.35)) drop-shadow(0 0 40px rgba(167, 139, 250, 0.15));
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 300% 50%; }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: #f0eeff;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.25);
}

.hero-description {
    font-size: 1.1rem;
    color: #dddaf0;
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

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

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.4;
}

.btn-lg { padding: 0.9rem 2.8rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(124, 92, 252, 0.45);
    transform: translateY(-2px);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

/* Shimmer effect on primary button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::after { left: 100%; }

.btn-outline {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #e0d8ff;
}
.btn-outline:hover {
    border-color: rgba(167, 139, 250, 0.7);
    color: #fff;
    background: rgba(167, 139, 250, 0.15);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: #0b1a15;
    font-weight: 700;
}
.btn-success:hover {
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    font-weight: 700;
}
.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
}
.btn-ghost:hover {
    background: var(--accent-primary-dim);
    color: var(--text-primary);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STEP CARDS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.step-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}
.step-card:hover::before { opacity: 1; }

.step-number {
    width: 48px; height: 48px;
    background: var(--accent-primary-dim);
    border: 1px solid rgba(124, 92, 252, 0.2);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FORM SYSTEM ===== */
.form-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
}

.form-fieldset legend {
    font-family: var(--font-display);
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 0.75rem;
    letter-spacing: 0.5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease-out);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-dim);
    background: rgba(255, 255, 255, 0.05);
}
.form-input::placeholder { color: var(--text-muted); }

.form-input-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a5a3c7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}
select.form-input option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group, .checkbox-group, .rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    font-size: 0.9rem;
}
.radio-label:hover, .checkbox-label:hover {
    border-color: var(--border-hover);
    background: var(--accent-primary-dim);
}
.radio-label input:checked + span,
.checkbox-label input:checked + span {
    color: var(--accent-secondary);
}
.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
}

.rating-label {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-out);
}
.rating-label:hover {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-dim);
}
.rating-label:has(input:checked) {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-dim);
}
.rating-label input { display: none; }

.rules-checkbox { font-size: 0.9rem; }

.inline-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.assign-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.alert ul { margin: 0.5rem 0 0 1.2rem; }
.alert p { margin-bottom: 0.25rem; }
.alert p:last-child { margin-bottom: 0; }

.alert-success {
    background: var(--success-dim);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--success);
}
.alert-danger {
    background: var(--danger-dim);
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: var(--danger);
}
.alert-warning {
    background: var(--warning-dim);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--warning);
}
.alert-warning a { color: var(--warning); text-decoration: underline; }

/* ===== SUCCESS PAGE ===== */
.success-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.06);
}

.success-icon {
    width: 72px; height: 72px;
    background: var(--success-dim);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.75rem;
    color: var(--success);
}

.success-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.success-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.success-submessage {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== EQUIPOS — PUBLIC VIEW ===== */
/* Grupo nav tabs */
.grupo-nav {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: sticky;
    top: 60px;
    z-index: 10;
    background: var(--bg-void);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.grupo-nav-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.grupo-nav-btn:hover,
.grupo-nav-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 92, 252, 0.3);
}

.grupo-section { margin-bottom: 3.5rem; scroll-margin-top: 120px; }

.grupo-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grupo-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-warm));
    border-radius: 2px;
}

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.equipo-card {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all var(--duration-normal) var(--ease-out);
}
.equipo-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}

.equipo-casilla {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.equipo-nombre {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.equipo-vacio {
    opacity: 0.3;
    border-style: dashed;
    border-color: var(--border-subtle);
}
.equipo-vacio:hover {
    opacity: 0.4;
    transform: none;
    box-shadow: none;
}

.equipo-vacante {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 0;
    letter-spacing: 1px;
}

.jugador-info {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.jugador-label {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 28px;
}
.jugador-nombre { color: var(--text-primary); }
.jugador-dispositivo {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    margin-left: auto;
}
.jugador-dispositivo.pc {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}
.jugador-dispositivo.movil {
    background: var(--accent-primary-dim);
    color: var(--accent-secondary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
    font-size: 0.95rem;
}

/* ===== ADMIN LAYOUT ===== */
.admin-body {
    background: var(--bg-void);
}
.admin-body::before {
    background:
        radial-gradient(ellipse 60% 40% at 10% 10%, rgba(103, 232, 249, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 90% 80%, rgba(124, 92, 252, 0.04) 0%, transparent 60%);
}

.admin-content { padding-top: 2rem; }

.admin-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.admin-subtitle {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 2.5rem 0 1rem;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-default);
    transition: all var(--duration-normal) var(--ease-out);
}
.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-total .stat-number { color: var(--accent-secondary); }
.stat-pending .stat-number { color: var(--warning); }
.stat-confirmed .stat-number { color: var(--success); }
.stat-rejected .stat-number { color: var(--danger); }

/* ===== PROGRESS BARS ===== */
.grupos-progress { display: flex; flex-direction: column; gap: 0.75rem; }

.grupo-progress-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
}

.grupo-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.grupo-progress-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.grupo-progress-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm));
    border-radius: var(--radius-full);
    transition: width 0.8s var(--ease-out);
}
.progress-full {
    background: linear-gradient(90deg, var(--danger), var(--warning));
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-purple { background: var(--accent-primary-dim); color: var(--accent-secondary); }

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(124, 92, 252, 0.06);
    color: var(--text-secondary);
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-default);
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr {
    transition: background var(--duration-fast) var(--ease-out);
}
.admin-table tr:hover td {
    background: rgba(124, 92, 252, 0.03);
}

.admin-table small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; }
.actions-cell .btn { margin-left: 0.25rem; }

/* ===== LOGIN ===== */
.login-card {
    max-width: 400px;
    margin: 0 auto;
}
.login-card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.footer-social:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social svg {
    flex-shrink: 0;
}

/* ===== HOME SOCIALS SECTION ===== */
.home-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.home-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 120px;
}

.home-social-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-secondary);
    background: rgba(167, 139, 250, 0.12);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 92, 252, 0.2);
}

.home-social-card svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.home-social-card:hover svg {
    opacity: 1;
}

.home-social-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.home-social-card:hover .home-social-name {
    color: #fff;
}

.home-social-user {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== DIVIDER ===== */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm));
    border-radius: 2px;
    margin: 0 auto 2rem;
}

/* ===== UTILITY: Fade-in animation ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }

/* ===== WIZARD — MULTI-STEP FORM ===== */
.wizard-progress {
    margin-bottom: 1.5rem;
}

.wizard-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.wizard-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm));
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-out);
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.wizard-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out);
}

.wizard-step-dot.active {
    color: var(--text-primary);
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary-glow);
}

.wizard-step-dot.completed {
    color: var(--success);
    background: var(--success-dim);
    border-color: rgba(52, 211, 153, 0.3);
}

/* Wizard steps visibility */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: wizardFadeIn 0.35s var(--ease-out);
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide transitions */
.wizard-step.slide-out-left {
    animation: slideOutLeft 0.25s var(--ease-out) forwards;
}
.wizard-step.slide-out-right {
    animation: slideOutRight 0.25s var(--ease-out) forwards;
}
.wizard-step.slide-in-right {
    animation: slideInRight 0.35s var(--ease-out) forwards;
}
.wizard-step.slide-in-left {
    animation: slideInLeft 0.35s var(--ease-out) forwards;
}

@keyframes slideOutLeft {
    to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(30px); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Wizard navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.btn-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-next:hover .btn-arrow { transform: translateX(3px); }
.btn-prev:hover .btn-arrow { transform: translateX(-3px); }

.btn-submit-final {
    flex: 1;
    max-width: 280px;
}

/* Validation shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s var(--ease-out);
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px var(--danger-dim) !important;
}

/* ===== REGISTRATION FORM — BANNER ===== */
.form-banner {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(103, 232, 249, 0.08), rgba(192, 132, 252, 0.1));
    border: 1px solid var(--border-default);
    overflow: hidden;
}

.form-banner-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 80%, rgba(124, 92, 252, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.form-banner-content { position: relative; z-index: 1; }

.form-banner-fire {
    font-size: 1rem;
    color: var(--accent-warm);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.form-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.form-banner-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== REGISTRATION FORM — SECTIONS ===== */
.registro-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: border-color var(--duration-normal) var(--ease-out);
}
.form-section:hover {
    border-color: var(--border-hover);
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.form-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.form-label-required::after {
    content: ' *';
    color: var(--danger);
    font-weight: 400;
}

.optional-tag {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== DEVICE & SOCIAL GRIDS ===== */
.device-grid, .social-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.device-grid-header, .social-grid-header {
    display: grid;
    background: rgba(124, 92, 252, 0.06);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.device-grid-header {
    grid-template-columns: 1fr 100px 100px;
}

.social-grid-header {
    grid-template-columns: 1fr 80px 80px;
}

.device-grid-row, .social-grid-row {
    display: grid;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration-fast) var(--ease-out);
}
.device-grid-row:last-child, .social-grid-row:last-child {
    border-bottom: none;
}
.device-grid-row:hover, .social-grid-row:hover {
    background: rgba(124, 92, 252, 0.03);
}

.device-grid-row {
    grid-template-columns: 1fr 100px 100px;
}

.social-grid-row {
    grid-template-columns: 1fr 80px 80px;
}

.device-grid-label, .social-grid-label {
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.device-grid-option, .social-grid-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom radio for grids */
.device-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.device-radio input {
    display: none;
}

.device-radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.device-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.device-radio input:checked + .device-radio-mark {
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary-glow);
}

.device-radio input:checked + .device-radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.device-radio:hover .device-radio-mark {
    border-color: var(--accent-secondary);
}

/* ===== RULES BOX ===== */
.rules-box {
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.rules-accept {
    font-weight: 600;
    padding: 0.65rem 1.2rem;
}

/* ===== AGRADECIMIENTO BOX ===== */
.agradecimiento-box {
    background: rgba(124, 92, 252, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
.agradecimiento-box p {
    margin-bottom: 0.75rem;
}
.agradecimiento-box p:last-child {
    margin-bottom: 0;
}
.agradecimiento-box strong {
    color: var(--accent-secondary);
}

/* ===== RATING SCALE (horizontal) ===== */
.rating-scale {
    display: flex;
    gap: 0;
    margin-top: 0.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rating-scale-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.75rem 0;
    border-right: 1px solid var(--border-subtle);
    transition: all var(--duration-fast) var(--ease-out);
}
.rating-scale-option:last-child {
    border-right: none;
}
.rating-scale-option:hover {
    background: var(--accent-primary-dim);
}

.rating-scale-option input { display: none; }

.rating-scale-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.rating-scale-option:has(input:checked) {
    background: var(--accent-primary-dim);
}
.rating-scale-option:has(input:checked) .rating-scale-number {
    color: var(--accent-secondary);
}

/* ===== FINAL MESSAGE ===== */
.final-message-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(103, 232, 249, 0.04));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.final-message-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.final-message-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FORM SUBMIT ===== */
.form-submit {
    padding-top: 0.5rem;
}

/* ===== THEME TOGGLE BUTTON ===== */
/* Theme switch — pill toggle */
.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
}

.theme-switch-track {
    width: 52px;
    height: 28px;
    border-radius: 99px;
    background: rgba(30, 20, 60, 0.7);
    border: 2px solid rgba(167, 139, 250, 0.5);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.theme-switch:hover .theme-switch-track {
    border-color: rgba(167, 139, 250, 0.8);
    background: rgba(30, 20, 60, 0.85);
}

.theme-switch-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #e879f9);
    position: absolute;
    left: 1px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.theme-switch-icon {
    font-size: 0.75rem;
    position: absolute;
    transition: all 0.3s ease;
    line-height: 1;
}

.theme-switch-icon.moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: #fff;
}

.theme-switch-icon.sun {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    color: #fff;
}

/* Light mode — thumb moves right, show sun */
.light .theme-switch-track {
    background: rgba(245, 240, 255, 0.85);
    border-color: rgba(124, 58, 237, 0.5);
}

.light .theme-switch:hover .theme-switch-track,
.light .theme-switch-track:hover {
    border-color: rgba(124, 58, 237, 0.7);
    background: rgba(245, 240, 255, 0.95);
}

.light .theme-switch-thumb {
    left: calc(100% - 23px);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.light .theme-switch-icon.moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.light .theme-switch-icon.sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ===== LIGHT THEME ===== */
.light {
    --bg-void: #f0edfa;
    --bg-deep: #e8e4f5;
    --bg-surface: #e0dbf0;
    --bg-elevated: #d6d0eb;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);

    --text-primary: #120e28;
    --text-secondary: #3d3660;
    --text-muted: #686088;
    --text-accent: #6d3bea;

    --accent-primary: #6d3bea;
    --accent-secondary: #7c4dff;
    --accent-warm: #b040e0;
    --accent-cyan: #0097a7;

    --border-subtle: rgba(109, 59, 234, 0.1);
    --border-default: rgba(109, 59, 234, 0.18);
    --border-hover: rgba(109, 59, 234, 0.3);
    --border-active: rgba(109, 59, 234, 0.45);

    --accent-primary-dim: rgba(109, 59, 234, 0.1);
    --accent-primary-glow: rgba(109, 59, 234, 0.25);
    --accent-cyan-dim: rgba(0, 151, 167, 0.1);

    --success: #0d9668;
    --success-dim: rgba(13, 150, 104, 0.12);
    --danger: #dc2626;
    --danger-dim: rgba(220, 38, 38, 0.1);
    --warning: #d97706;
    --warning-dim: rgba(217, 119, 6, 0.1);

    --shadow-sm: 0 2px 8px rgba(80, 50, 160, 0.08);
    --shadow-md: 0 4px 20px rgba(80, 50, 160, 0.1);
    --shadow-lg: 0 8px 40px rgba(80, 50, 160, 0.12);
    --shadow-glow-sm: 0 0 15px rgba(109, 59, 234, 0.12);
}

.light body::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(109, 59, 234, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 90%, rgba(0, 151, 167, 0.05) 0%, transparent 60%);
}

.light #particles-canvas { opacity: 0.25; }

/* Light navbar */
.light .navbar {
    background: rgba(240, 237, 250, 0.85);
    border-bottom: 1px solid rgba(109, 59, 234, 0.1);
    box-shadow: 0 1px 12px rgba(80, 50, 160, 0.06);
}
.light .nav-brand { color: #120e28; }
.light .nav-brand::after {
    background: linear-gradient(90deg, #6d3bea, #b040e0, transparent);
}
.light .nav-links a { color: #3d3660; }
.light .nav-links a:hover { color: #120e28; background: rgba(109, 59, 234, 0.08); }
.light .nav-links a::after { background: #6d3bea; }


/* Light inputs */
.light .form-input {
    background: #fff;
    border-color: rgba(109, 59, 234, 0.18);
    color: #120e28;
}
.light .form-input:focus {
    background: #fff;
    border-color: #6d3bea;
    box-shadow: 0 0 0 3px rgba(109, 59, 234, 0.12);
}
.light .form-input::placeholder { color: #8880a8; }

.light select.form-input {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%233d3660' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}
.light select.form-input option {
    background: #fff;
    color: #120e28;
}

/* Light cards */
.light .form-section,
.light .form-card,
.light .step-card,
.light .stat-card,
.light .equipo-card,
.light .grupo-nav {
    background: var(--bg-void);
    border-bottom-color: rgba(109, 59, 234, 0.08);
}
.light .grupo-nav-btn {
    background: #fff;
    border-color: rgba(124, 58, 237, 0.12);
    color: #5b4a8a;
}
.light .grupo-nav-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.light .grupo-progress-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(109, 59, 234, 0.1);
    box-shadow: 0 2px 12px rgba(80, 50, 160, 0.06);
}
.light .step-card:hover {
    border-color: rgba(109, 59, 234, 0.25);
    box-shadow: 0 4px 20px rgba(109, 59, 234, 0.1);
}
.light .step-number {
    background: rgba(109, 59, 234, 0.1);
    border-color: rgba(109, 59, 234, 0.2);
    color: #6d3bea;
}

/* Light radio/checkbox */
.light .radio-label,
.light .checkbox-label {
    background: #fff;
    border-color: rgba(109, 59, 234, 0.12);
    color: #3d3660;
}
.light .radio-label:hover,
.light .checkbox-label:hover {
    border-color: rgba(109, 59, 234, 0.3);
    background: rgba(109, 59, 234, 0.04);
}
.light .radio-label:has(input:checked),
.light .checkbox-label:has(input:checked) {
    border-color: #6d3bea;
    background: rgba(109, 59, 234, 0.08);
}
.light .radio-label input:checked + span,
.light .checkbox-label input:checked + span {
    color: #6d3bea;
}

/* Light device/social grid */
.light .device-grid,
.light .social-grid {
    border-color: rgba(109, 59, 234, 0.12);
}
.light .device-grid-header,
.light .social-grid-header {
    background: rgba(109, 59, 234, 0.05);
    color: #3d3660;
}
.light .device-grid-row,
.light .social-grid-row {
    border-bottom-color: rgba(109, 59, 234, 0.06);
}
.light .device-grid-row:hover,
.light .social-grid-row:hover {
    background: rgba(109, 59, 234, 0.03);
}
.light .device-radio-mark {
    border-color: rgba(109, 59, 234, 0.25);
}
.light .device-radio-mark::after {
    background: #6d3bea;
}
.light .device-radio input:checked + .device-radio-mark {
    border-color: #6d3bea;
    box-shadow: 0 0 8px rgba(109, 59, 234, 0.2);
}

/* Light rating */
.light .rating-scale {
    border-color: rgba(109, 59, 234, 0.12);
}
.light .rating-scale-option {
    border-right-color: rgba(109, 59, 234, 0.08);
}
.light .rating-scale-option:hover {
    background: rgba(109, 59, 234, 0.05);
}
.light .rating-scale-number { color: #686088; }
.light .rating-scale-option:has(input:checked) {
    background: rgba(109, 59, 234, 0.08);
}
.light .rating-scale-option:has(input:checked) .rating-scale-number {
    color: #6d3bea;
}

/* Light tables */
.light .table-responsive {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(109, 59, 234, 0.1);
    box-shadow: 0 2px 12px rgba(80, 50, 160, 0.06);
}
.light .admin-table th {
    background: rgba(109, 59, 234, 0.05);
    color: #3d3660;
}
.light .admin-table td { border-bottom-color: rgba(109, 59, 234, 0.06); }
.light .admin-table tr:hover td { background: rgba(109, 59, 234, 0.03); }
.light .admin-table small { color: #686088; }

/* Light buttons */
.light .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.light .btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #a21caf);
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5);
}
.light .btn-outline {
    background: #fff;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    font-weight: 700;
}
.light .btn-outline:hover {
    border-color: #6d28d9;
    color: #fff;
    background: #7c3aed;
}
.light .btn-success { background: #0d9668; color: #fff; }
.light .btn-danger { background: #dc2626; color: #fff; }

/* Light badges */
.light .badge-success { background: rgba(13, 150, 104, 0.12); color: #0d9668; }
.light .badge-danger { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.light .badge-warning { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.light .badge-purple { background: rgba(109, 59, 234, 0.1); color: #6d3bea; }

/* Light stats */
.light .stat-total .stat-number { color: #6d3bea; }
.light .stat-pending .stat-number { color: #d97706; }
.light .stat-confirmed .stat-number { color: #0d9668; }
.light .stat-rejected .stat-number { color: #dc2626; }

/* Light footer */
.light .footer {
    color: #8880a8;
    border-top-color: rgba(109, 59, 234, 0.08);
}
.light .footer-social {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
    color: #5b4a8a;
}
.light .footer-social:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.light .home-social-card {
    background: #fff;
    border-color: rgba(124, 58, 237, 0.12);
}
.light .home-social-card:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}
.light .home-social-name { color: #1a1a2e; }
.light .home-social-card:hover .home-social-name { color: #fff; }
.light .home-social-user { color: #686088; }
.light .home-social-card:hover .home-social-user { color: rgba(255,255,255,0.8); }

/* Light misc */
.light .rules-box {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.18);
    color: #3d3660;
}
.light .agradecimiento-box {
    background: rgba(109, 59, 234, 0.04);
    border-color: rgba(109, 59, 234, 0.1);
    color: #3d3660;
}
.light .agradecimiento-box strong { color: #6d3bea; }
.light .final-message-box {
    background: linear-gradient(135deg, rgba(109, 59, 234, 0.06), rgba(0, 151, 167, 0.04));
    border-color: rgba(109, 59, 234, 0.1);
}
.light .final-message-title { color: #120e28; }
.light .final-message-text { color: #3d3660; }
.light .empty-state {
    background: rgba(255, 255, 255, 0.6);
    color: #3d3660;
}
.light .progress-bar { background: rgba(109, 59, 234, 0.06); }

/* Light wizard */
.light .wizard-progress-bar { background: rgba(109, 59, 234, 0.08); }
.light .wizard-step-dot {
    background: #fff;
    border-color: rgba(109, 59, 234, 0.15);
    color: #8880a8;
}
.light .wizard-step-dot.active {
    background: rgba(109, 59, 234, 0.1);
    border-color: #6d3bea;
    color: #6d3bea;
    box-shadow: 0 0 10px rgba(109, 59, 234, 0.15);
}
.light .wizard-step-dot.completed {
    background: rgba(13, 150, 104, 0.1);
    border-color: rgba(13, 150, 104, 0.3);
    color: #0d9668;
}

/* Light alerts */
.light .alert-success {
    background: rgba(13, 150, 104, 0.08);
    border-color: rgba(13, 150, 104, 0.2);
    color: #0d9668;
}
.light .alert-danger {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.18);
    color: #dc2626;
}
.light .alert-warning {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.18);
    color: #d97706;
}

/* Light form banner */
.light .form-banner {
    background: linear-gradient(135deg, rgba(109, 59, 234, 0.08), rgba(176, 64, 224, 0.06), rgba(0, 151, 167, 0.05));
    border-color: rgba(109, 59, 234, 0.12);
}
.light .form-banner-fire { color: #b040e0; }
.light .form-banner-title { color: #120e28; }
.light .form-banner-sub { color: #3d3660; }

/* Light section titles */
.light .section-title { color: #120e28; }
.light .form-section-title { color: #120e28; }
.light .form-section-desc { color: #5a5280; }
.light .form-fieldset legend { color: #6d3bea; }
.light .gradient-text {
    background: linear-gradient(135deg, #6d3bea, #b040e0, #0097a7);
    -webkit-background-clip: text;
    background-clip: text;
}
.light .divider {
    background: linear-gradient(90deg, #6d3bea, #b040e0);
}

/* Hero: keep dark overlay in light mode */
.light .hero-video-overlay {
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 50%,
            rgba(6, 6, 14, 0.5) 58%,
            rgba(6, 6, 14, 0.85) 68%,
            #06060e 76%
        ),
        linear-gradient(180deg,
            transparent 0%,
            transparent 85%,
            #06060e 100%
        );
}
.light .hero-video { background: #06060e; }
.light .hero-video-bg video { background: #06060e; }
.light .hero-video .hero-title { color: #edebf6; }
.light .hero-video .hero-subtitle { color: #f0eeff; }
.light .hero-video .hero-description { color: #dddaf0; }
.light .hero-video .hero-tag {
    color: #67e8f9;
    background: rgba(103, 232, 249, 0.08);
    border-color: rgba(103, 232, 249, 0.15);
}
.light .hero-video .gradient-text {
    background: linear-gradient(90deg, #a78bfa, #e879f9, #67e8f9, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.35)) drop-shadow(0 0 40px rgba(167, 139, 250, 0.15));
}

@media (max-width: 768px) {
    .light .hero-video-overlay {
        background:
            linear-gradient(180deg,
                transparent 0%,
                transparent 50%,
                rgba(6, 6, 14, 0.6) 65%,
                rgba(6, 6, 14, 0.9) 85%,
                #06060e 100%
            );
    }
}

/* Light form banner */
.light .form-banner {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(6, 182, 212, 0.04), rgba(192, 132, 252, 0.05));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.75rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
    .form-fieldset { padding: 1.25rem; }
    .hero { min-height: auto; padding: 4rem 0; }
    .hero-title { letter-spacing: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .inline-form { flex-direction: column; align-items: stretch; }
    .assign-form { flex-wrap: wrap; }
    .section { padding: 3rem 0; }
    .form-section { padding: 1.25rem 1.25rem; }
    .device-grid-header, .device-grid-row { grid-template-columns: 1fr 80px 80px; }
    .social-grid-header, .social-grid-row { grid-template-columns: 1fr 60px 60px; }
    .social-grid-label { font-size: 0.8rem; padding-left: 0.75rem; }
    .form-banner { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; }
    .success-actions { flex-direction: column; align-items: center; }
    .equipos-grid { grid-template-columns: 1fr; }
    .success-card { padding: 2.5rem 1.5rem; }
}
