/* --- PRESENTATION PAGE STYLES --- */

/* Hero Section */
.hero-section {
    min-height: 80vh;
    /* Ocupa gran parte de la pantalla inicial */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--card-color) 30%, var(--bg-color)), var(--bg-color));
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.hero-logo,
.curso-img {
    pointer-events: none;
    /* Prevent drag and right click specific to these images */
}

.hero-logo {
    max-width: 300px;
    /* Tamaño controlado pero visible */
    width: 80%;
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 4px 6px var(--shadow-color));
    animation: fadeInDown 1s ease-out;
}

.hero-text {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    animation: fadeInUp 1s ease-out 0.3s backwards;
    /* Retraso ligero */
}

.hero-slogan-1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-slogan-2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: block;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slogan-1 {
        font-size: 1.2rem;
    }

    .hero-slogan-2 {
        font-size: 1.5rem;
    }
}

/* --- SECTION: Course Showcase --- */
.courses-showcase {
    padding: 3rem 2rem;
    text-align: center;
}

.permanencia-wrapper {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.permanencia-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.curso-img {
    width: 120px;
    /* Ancho fijo */
    height: 120px;
    /* Alto fijo */
    object-fit: contain;
    /* Ajuste sin distorsión */
    border-radius: var(--border-radius-md);
    filter: drop-shadow(0 4px 6px var(--shadow-color));
    /* Mejor que box-shadow para PNGs transparentes */
    transition: transform 0.3s ease;
    display: block;
    /* Sutil fondo si son muy transparentes, opcional */
}

.curso-img:hover {
    transform: translateY(-5px);
}

.armies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    /* Más espacio entre columnas (antes 2rem) */
    max-width: 1400px;
    /* Más ancho total (antes 1200px) */
    padding: 0 2rem;
    /* Margen lateral extra para que no pegue a los bordes */
    margin: 0 auto;
}

.army-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.course-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* Espacio entre imagen y contador */
}

.test-counter {
    margin-top: 0;
    /* Ya usamos gap */
    font-size: 0.8rem;
    /* Un poco más pequeño */
    color: var(--text-muted);
    background-color: var(--card-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px var(--shadow-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.counter-number {
    font-weight: 700;
    color: var(--accent-color);
    /* font-size: 1.1rem; Eliminado para igualar al texto */
}

.army-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .armies-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 Columnas solicitadas */
        gap: 0.2rem;
        /* Espacio mínimo */
    }

    .curso-img {
        width: 60px;
        /* Reducido para encajar */
        height: 60px;
    }

    .army-title {
        font-size: 0.65rem;
        /* Texto muy pequeño para que quepa */
        margin-bottom: 0.2rem;
        min-height: 2.5em;
        /* Altura mínima para alinear filas */
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
    }

    .army-column {
        gap: 0.3rem;
    }

    /* Contadores muy compactos */
    .test-counter {
        font-size: 0.65rem;
        /* Reducido */
        padding: 0.1rem 0.2rem;
        gap: 0.1rem;
        flex-direction: column;
        /* Apilar número y texto si es necesario, o mantener inline pero pequeño */
        text-align: center;
        width: 100%;
        /* Ocupar ancho disponible */
    }

    /* Ocultar texto "Tests Disponibles" en móvil si es necesario, O reducirlo mucho */


}

/* --- SECTION: Pricing (Precios) --- */
.pricing-section {
    margin-top: 4rem;
    text-align: center;
    padding: 0 2rem 3rem 2rem;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.pricing-title {
    font-size: 3.5rem;
    /* Mucho más grande */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;

    /* Efecto Degradado Animado */
    background: linear-gradient(90deg,
            #FFD700,
            /* Gold */
            #ffecb3,
            /* Light Gold */
            #bfa15f,
            /* Dark Gold */
            #FFD700
            /* Repeat for smooth loop */
        );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineFlow 4s linear infinite;
}

@keyframes shineFlow {
    to {
        background-position: 200% center;
    }
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    /* Más espacio entre tarjetas */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    /* Vertical: Título arriba, Precio abajo */
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.pricing-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-amount {
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 15px var(--accent-color);
    /* Mantener pulsación suave de fondo */
    animation: glowPulse 3s infinite alternate;

    /* Configuración para el brillo (Shimmer) */
    position: relative;
    overflow: hidden;
}

/* Efecto Destello (Shimmer) */
.pricing-amount::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 215, 0, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 60%,
            transparent 80%);
    transform: skewX(-25deg);
    animation: shineMove 4s ease-in-out infinite;
    /* 4s para que no sea muy frenético */
    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -150%;
    }

    10% {
        left: -150%;
    }

    60% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px var(--accent-color);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 20px var(--accent-color), 0 0 5px rgba(255, 215, 0, 0.5);
        transform: scale(1.03);
    }
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
        /* Ajuste para móvil más contenido */
        margin-bottom: 2rem;
    }

    .pricing-container {
        flex-direction: row;
        /* Forzar horizontal */
        gap: 0.5rem;
        /* Espacio mínimo entre tarjetas */
        padding: 0;
        align-items: stretch;
    }

    .pricing-item {
        width: auto;
        flex: 1;
        /* Repartir espacio equitativamente */
        border-bottom: none;
        padding: 0;
        gap: 0.5rem;
    }

    .pricing-label {
        font-size: 0.75rem;
        /* Texto pequeño para que quepa "Permanencia" */
        height: 2.5em;
        /* Altura fija para alinear */
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
    }

    .pricing-amount {
        font-size: 1.1rem;
        /* Precio reducido */
        padding: 0.4rem 0.5rem;
        /* Padding reducido */
        width: 100%;
        display: flex;
        justify-content: center;
        box-shadow: 0 0 8px var(--accent-color);
        /* Brillo un poco más suave en móvil */
    }
}

/* --- UI COMPONENTS: Dividers --- */
.subtle-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    margin: 2rem auto;
    width: 80%;
    max-width: 600px;
}

/* --- MOCKUP: Failed Questions Interface --- */
/* Wrapper similar to app container */
.mockup-container {
    background-color: #1D2229;
    /* Dark App Background */
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    /* border: 1px solid var(--border-color); REMOVED per request */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); REMOVED per request */
    text-align: left;
    /* App layout is LTR */
}

/* Replicating .topic-item from menu_styles.css */
.mock-topic-item {
    display: block;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px -1px var(--shadow-color);
    border-left: 4px solid transparent;
    /* Default */
}

.mock-topic-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.mock-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
}

.mock-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.mock-btn-fichas {
    background-color: #5F9ED9;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: default;
    /* FIX: Remove pointer */
}

.mock-btn-fail {
    background-color: var(--flag-color);
    color: #1a1d23;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    /* Glow Animation for Fails */
    animation: pulseGlow 2s infinite;
    cursor: default;
    /* FIX: Remove pointer */
}

/* Bottom Action Section */
.mock-action-area {
    text-align: center;
    margin-top: 2rem;
}

.mock-action-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.mock-btn-review-all {
    display: inline-block;
    background-color: var(--flag-color);
    color: #1a1d23;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px -5px var(--shadow-color);
    /* Glow Animation */
    animation: pulseGlow 2s infinite;
    cursor: default;
    /* FIX: Remove pointer */
}

/* Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 0px rgba(212, 168, 83, 0.7);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
        transform: scale(1);
    }
}

/* Responsive Mockup */
@media (max-width: 768px) {
    .mock-topic-content {
        /* FIX: Keep horizontal but allow wrap if tight */
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        /* Match App Mobile Padding */
    }

    .mock-title {
        flex-grow: 1;
        font-size: 1rem;
    }

    .mock-details {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .mock-btn-fichas,
    .mock-btn-fail {
        /* Smaller buttons on mobile */
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }

    .mock-btn-fichas .material-icons {
        font-size: 12px !important;
    }

    /* FIX: Reduce font sizes for bottom action area on mobile */
    .mock-action-title {
        font-size: 0.8rem;
        /* Smaller than desktop 1.1rem */
        margin-bottom: 0.5rem;
    }

    .mock-btn-review-all {
        font-size: 0.9rem;
        /* Smaller than desktop 1.1rem */
        padding: 0.8rem 1.5rem;
        /* Slightly reduced padding */
        width: 100%;
        /* Full width on mobile for easier tapping */
        box-sizing: border-box;
    }
}

/* --- FLASHCARDS MOCKUP SPECIFIC --- */
.mock-topic-item.fichas-mode {
    border-left: 4px solid #5F9ED9;
}

.mock-btn-fichas.active-mode {
    box-shadow: 0 0 15px rgba(95, 158, 217, 0.6);
    transform: scale(1.05);
}

.mock-btn-fail.dimmed-mode {
    opacity: 0.5;
    filter: grayscale(0.8);
    animation: none;
    cursor: default;
}

/* --- SUMMARIES & AUDIO MOCKUP --- */

.mock-summary-container {
    background-color: #1a1e24;
    /* Dark blue/grey background like the screenshot */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-bottom: 70px;
    /* Space for the audio player */
    height: 500px;
    /* Fixed height for scroll effect */
}

.mock-summary-content {
    padding: 2rem;
    height: 100%;
    overflow-y: hidden;
    /* Hide scroll for aesthetics, or auto if interactive */
    position: relative;
    /* Fade out at bottom to imply more text */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.mock-sum-title {
    color: #e0e0e0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.mock-sum-subtitle {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mock-sum-text p {
    color: #b0b3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.mock-sum-text strong {
    color: #fff;
    font-weight: 700;
}

/* Mock Audio Player */
.mock-audio-player {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Increased height for 2 rows */
    background-color: #15181d;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 10;
}

.mock-player-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    /* Space between progress and controls */
}

.mock-time {
    color: #888;
    font-size: 0.75rem;
    font-family: monospace;
    min-width: 35px;
}

.mock-progress-bar {
    flex: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.mock-progress-fill {
    height: 100%;
    background-color: #5F9ED9;
    border-radius: 2px;
}

.mock-progress-knob {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Row 2: Controls Container */
.mock-player-controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.mock-player-controls-group {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Good spacing between buttons */
}

.mock-ctrl-icon {
    color: #888;
    font-size: 24px;
    cursor: default;
}

.mock-play-btn {
    width: 40px;
    height: 40px;
    background-color: #5F9ED9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 10px rgba(95, 158, 217, 0.4);
}

.mock-play-btn .material-icons {
    font-size: 24px;
}

.mock-player-speed {
    position: absolute;
    right: 0;
}

.mock-speed-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .summaries-title {
        font-size: 1.5rem !important;
        padding: 0 10px;
    }

    .summaries-description {
        font-size: 0.9rem;
        padding: 0 15px;
        margin-bottom: 2rem !important;
    }

    .mock-summary-container {
        height: 600px;
        margin: 0 10px;
        /* Padding bottom adjusted for taller player */
        padding-bottom: 100px;
    }

    .mock-sum-title {
        font-size: 1.1rem;
    }

    .mock-sum-subtitle {
        font-size: 0.85rem;
    }

    .mock-sum-text p {
        font-size: 0.85rem;
    }

    /* Mobile overrides for player */
    .mock-audio-player {
        padding: 12px 15px;
        height: 100px;
        /* Keep height consistent */
        flex-direction: column;
        justify-content: flex-start;
    }

    .mock-player-progress {
        gap: 10px;
        margin-bottom: 8px;
    }

    /* .mock-player-controls-container removed empty rule */

    .mock-player-controls-group {
        gap: 20px;
        /* Reduce gap slightly on mobile */
    }

    .mock-play-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .summaries-title {
        font-size: 1.3rem !important;
    }

    .mock-player-progress {
        gap: 5px;
    }
}

/* --- Statistics Mockup Styles --- */
.stats-mockup-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-color), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Card */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    /* Dark mode default */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.kpi-content h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-content .value {
    margin: 0.25rem 0 0 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

/* KPI Colors */
.kpi-card:nth-child(1) .kpi-icon {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.1);
}

.kpi-card:nth-child(2) .kpi-icon {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.kpi-card:nth-child(3) .kpi-icon {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.kpi-card:nth-child(4) .kpi-icon {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .charts-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .grid-col-8 {
        grid-column: span 8;
    }

    .grid-col-4 {
        grid-column: span 4;
    }

    .grid-col-12 {
        grid-column: span 12;
    }
}

.chart-card h2 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    border-bottom: none;
}

/* --- Mobile Fix for Ranking Panel --- */
@media (max-width: 992px) {
    .ranking-content {
        width: 100%;

    }
}

/* --- Arena 1vs1 Mockup Styles --- */
.arena-section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.arena-visual-container {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* Background Grid Effect */
.arena-visual-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.5;
}

.arena-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 1;
    background-color: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-left {
    border-color: #10B981;
    /* User Color */
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.avatar-right {
    border-color: var(--text-muted);
    border-style: dashed;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* VS Badge */
.vs-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    animation: vs-pulse 2s infinite;
}

@keyframes vs-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Radar Scan Effect for Opponent */
.radar-effect::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    animation: radar-spin 1.5s linear infinite;
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.arena-statsFooter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arena-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: blink-live 2s infinite;
}

@keyframes blink-live {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    .arena-avatar {
        width: 80px;
        height: 80px;
    }

    .vs-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .arena-visual-container {
        gap: 1rem;
        padding: 2rem 1rem;
    }
}

.arena-context-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 450px;
    margin: 2rem auto 0 auto;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.arena-context-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.arena-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arena-card-btn {
    background: linear-gradient(135deg, var(--accent-color), #4338ca);
    border: none;
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.arena-card-btn:hover {
    opacity: 0.9;
}

/* --- Survival Mode Mockup Styles --- */
.survival-section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto 6rem auto;
    text-align: center;
}

.survival-mockup-container {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.survival-header-mockup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.streak-label-mockup {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

.streak-counter-mockup {
    font-size: 3rem;
    font-weight: 900;
    /* Gold Gradient from survival_view.php */
    background: -webkit-linear-gradient(#FFD700, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #DAA520;
    /* Fallback */
    line-height: 1;
}

.survival-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.survival-options-grid {
    display: grid;
    gap: 1rem;
}

.survival-option {
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-color);
    color: var(--text-color);
    cursor: default;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.survival-option.selected {
    border-color: var(--accent-color);
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

.survival-option:hover {
    border-color: var(--text-muted);

}

/* --- Closing Statement Styles --- */
.closing-section {
    padding: 6rem 1rem 8rem 1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.closing-text-line1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.closing-text-line2 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .closing-text-line1 {
        font-size: 1.5rem;
    }

    .closing-text-line2 {
        font-size: 2rem;
    }
}

.closing-cta-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), #4338ca);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.closing-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    color: white;
}

/* --- Shared Premium Title Style (1vs1 Style) --- */
.premium-title-gradient {
    font-size: 2.5rem;
    /* Matches 1vs1 size */
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-color), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
    line-height: 1.2;
}

/* Mobile adjustment for premium title */
@media (max-width: 768px) {
    .premium-title-gradient {
        font-size: 1.8rem;
    }
}

/* --- Simulation & Baremo Section Styles --- */
.simulation-baremo-section {
    padding: 2rem 1rem 4rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.equation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.equation-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
    transition: transform 0.3s ease;
}

.equation-card:hover {
    transform: translateY(-5px);
}

.eq-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.eq-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    display: block;
}

.eq-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.text-accent {
    color: var(--accent-color);
}

.text-success {
    color: #10B981;
}

/* Final Score Layout */
.final-score-card {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.text-gradient-final {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

.eq-operator {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* Baremo Mini List customization */
.baremo-card {
    min-width: 220px;
}

.baremo-mini-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.baremo-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.baremo-item .material-icons {
    font-size: 14px;
    color: #10B981;
}

.more-item {
    background: transparent;
    font-style: italic;
    opacity: 0.7;
    margin-left: 5px;
}

/* Disclaimer Box */
.disclaimer-box {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-box .material-icons {
    color: #F59E0B;
    font-size: 1.5rem;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .equation-container {
        flex-direction: column;
        gap: 1rem;
    }

    .eq-operator {
        transform: rotate(90deg);
        /* Rotate plus/equals for vertical layout? Or just keep simple */
        margin: -0.5rem 0;
        font-size: 2rem;
    }

    .equation-card {
        width: 100%;
        min-width: auto;
    }

    .baremo-mini-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- SECTION: THEME SHOWCASE SIMULATION --- */
.theme-showcase-section {
    padding: 4rem 2rem;
    text-align: center;
}

.mock-theme-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    margin: 3rem auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #EDEEEB;
    /* Start Light */
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* THEME CHANGE ANIMATION ON WRAPPER */
    animation: themeBgCycle 9s infinite;
}

/* Simulated Navbar inside Theme Section */
.mock-navbar.theme-nav {
    background: rgba(0, 0, 0, 0.05);
    /* Subtle tint */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

/* Mock Content Generic */
.mock-theme-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-card-generic {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mock-stats-row {
    display: flex;
    gap: 15px;
}

.mock-stat-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button Logic */
.mock-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.mock-theme-btn .material-icons {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ANIMATION KEYFRAMES - 9s Cycle (3s per theme) */

/* 1. Background & Text Colors */
@keyframes themeBgCycle {

    0%,
    30% {
        /* LIGHT MODE */
        background-color: #EDEEEB;
        color: #444B57;
    }

    33%,
    63% {
        /* DARK MODE */
        background-color: #1D2229;
        color: #ECEFF4;
    }

    66%,
    96% {
        /* SEPIA MODE */
        background-color: #393e46;
        /* Using sepia-theme bg-color from main.css */
        color: #E0E0E0;
        /* Sepia Theme actually uses a darker BG in main.css: #393E46. 
           Wait, main.css says html.sepia-theme { --bg-color: #393E46; ... }
           Wait, Sepia Mode usually implies yellowish.
           Let's check main.css lines 66-88.
           Ah, Sepia Theme in code is #393E46 (Dark Grey) with Accent #8EB7FF?
           Wait, maybe 'Sepia' is a misnomer in the existing code or I misread?
           Let's standardise to what main.css has for 'sepia-theme'.
           Line 68: --bg-color: #393E46; 
           Line 69: --card-color: #4A515C;
        */
    }

    100% {
        /* Loop back to LIGHT */
        background-color: #EDEEEB;
        color: #444B57;
    }
}

/* 2. Icons Toggle */
.icon-sun {
    animation: iconSunCycle 9s infinite;
}

.icon-moon {
    animation: iconMoonCycle 9s infinite;
}

.icon-sepia {
    animation: iconSepiaCycle 9s infinite;
}

@keyframes iconSunCycle {

    0%,
    30% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    33%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }
}

@keyframes iconMoonCycle {

    0%,
    30% {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }

    33%,
    63% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    66%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }
}

@keyframes iconSepiaCycle {

    0%,
    63% {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }

    66%,
    96% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }
}

/* Label Indicator at bottom */
.theme-cycle-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.cycle-text {
    opacity: 0.3;
    transition: opacity 0.3s;
}

.cycle-text.light {
    animation: labelLight 9s infinite;
}

.cycle-text.dark {
    animation: labelDark 9s infinite;
}

.cycle-text.sepia {
    animation: labelSepia 9s infinite;
}

@keyframes labelLight {

    0%,
    30% {
        opacity: 1;
        color: #3979D6;
    }

    33%,
    100% {
        opacity: 0.3;
    }
}

@keyframes labelDark {

    0%,
    30% {
        opacity: 0.3;
    }

    33%,
    63% {
        opacity: 1;
        color: #68A0E4;
    }

    66%,
    100% {
        opacity: 0.3;
    }
}

@keyframes labelSepia {

    0%,
    63% {
        opacity: 0.3;
    }

    66%,
    96% {
        opacity: 1;
        color: #8EB7FF;
    }

    100% {
        opacity: 0.3;
    }
}

.bod-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Wrapper mimicking the layout */
.bod-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    margin: 3rem auto;
    background: #1D2229;
    /* Match App BG */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 1. MOCK NAVBAR */
.mock-navbar {
    height: 60px;
    background: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.mock-nav-left {
    display: flex;
    gap: 10px;
}

.mock-nav-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.mock-nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Bell Icon */
.mock-bell {
    color: var(--text-muted);
    font-size: 24px;
    cursor: default;
    transition: color 0.3s;
    position: relative;
}

/* Orange Shake Animation (The requested effect) */
.mock-bell.active {
    color: #ff9800 !important;
    /* Orange */
    animation: bell-shake 2s infinite;
}

/* 2. MOCK DROPDOWN */
.mock-dropdown {
    position: absolute;
    top: 55px;
    /* Below navbar */
    right: 15px;
    width: 320px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    text-align: left;

    /* Animation: Slide In */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.mock-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mock-notif-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mock-notif-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.mock-notif-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mock-notif-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 8px;
}

/* 3. MOCK CONTENT (The Scanner Area) */
.mock-content-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.mock-doc-small {
    width: 140px;
    height: 180px;
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Laser specific to this mockup */
.mock-laser {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    opacity: 0;
    /* Animation defined inline or via JS class for sync */
    animation: mockScan 3s ease-in-out infinite;
}

@keyframes mockScan {
    0% {
        top: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Animation Delays for sequence */
/* 
   Cycle: 
   0-3s: Scan
   3.5s: Bell Activates
   4s: Dropdown Opens
   7s: Reset
*/
.mock-dropdown {
    animation: dropdownCycle 8s infinite;
}

.mock-bell {
    animation: bellCycle 8s infinite;
}

@keyframes bellCycle {

    0%,
    40% {
        color: var(--text-muted);
        transform: rotate(0);
    }

    45%,
    85% {
        color: #ff9800;
        /* The shake keyframes are complex, borrowing simple shake here for CSS-only sync */
        transform: rotate(15deg);
    }

    46% {
        transform: rotate(-15deg);
    }

    47% {
        transform: rotate(10deg);
    }

    48% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }

    /* Continue shake simulated or simplified */
    90%,
    100% {
        color: var(--text-muted);
        transform: rotate(0);
    }
}

@keyframes dropdownCycle {

    0%,
    45% {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }

    50%,
    85% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bod-mockup-wrapper {
        height: 400px;
        /* More height for dropdown */
    }

    .mock-dropdown {
        width: 90%;
        right: 5%;
    }
}