/* --- FUENTES Y VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta "Rojito" Premium Refinada */
    --primary-color: #ff4b4b;
    /* Degradado Morado -> Rojo -> Naranja (Para acentos y botones) */
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #ef4444 50%, #ff9068 100%);
    --primary-glow: rgba(239, 68, 68, 0.5);
    --secondary-glow: rgba(168, 85, 247, 0.3); /* Glow Morado */

    --bg-color: #020202;

    /* NUEVO FONDO: Rojo/Negro Desvanecido con Profundidad + Toques Morados */
    --bg-gradient:
        radial-gradient(circle at 50% -20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), /* Luz cenital MORADA */
        radial-gradient(circle at 0% 30%, rgba(127, 29, 29, 0.1) 0%, transparent 40%), /* Luz lateral ROJA */
        radial-gradient(circle at 100% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 40%), /* Luz lateral MORADA baja */
        linear-gradient(to bottom, #0f0505 0%, #020202 100%); /* Base oscura profunda */

    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-hover-bg: rgba(30, 30, 30, 0.8);

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-highlight: #ffcccc;

    --nav-bg: rgba(5, 5, 5, 0.85);
    --blur-strength: 20px;

    --success-color: #10b981;
    --danger-color: #ef4444;

    /* COLOR ORO PURO */
    --gold-color: #ffd700; /* Amarillo Oro Brillante */
    --gold-glow: rgba(255, 215, 0, 0.6);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed; /* El fondo se queda quieto al hacer scroll (Efecto Premium) */
    background-size: cover;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* --- TEXTURA DE FONDO (Para que no se vea seco) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff0000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* --- SCROLLBAR PREMIUM --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* --- CABECERA (HEADER) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-bottom: 1px solid var(--card-border);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s;
}
.logo-container:hover { transform: scale(1.02); }

.logo-wrapper {
    width: var(--logo-desktop-size, 40px);
    height: var(--logo-desktop-size, 40px);
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-gradient);
    padding: 2px;
    box-shadow: 0 0 15px var(--primary-glow);
    flex: 0 0 auto;
    box-sizing: border-box;
}

header img.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background-color: #000;
    display: block;
    transform: scale(var(--logo-desktop-zoom, 1));
    transform-origin: center;
}

@media (max-width: 768px) {
    header.logo-hidden-mobile {
        height: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
    }

    header.logo-hidden-mobile .fireflies-container,
    header.logo-hidden-mobile .logo-container,
    header.logo-hidden-mobile .user-menu {
        display: none !important;
    }

    .logo-wrapper {
        display: var(--logo-mobile-display, block);
        width: var(--logo-mobile-size, 34px);
        height: var(--logo-mobile-size, 34px);
    }

    header img.logo {
        transform: scale(var(--logo-mobile-zoom, 1));
    }
}

header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-menu {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    align-items: center;
    font-weight: 500;
}

/* --- BOTONES PREMIUM DEL HEADER (TODOS IGUALES) --- */

/* Estilo Base Unificado */
.action-btn {
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* FONDO DE GRADIENTE PARA TODOS */
    background: var(--primary-gradient);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px var(--primary-glow); /* Sombra brillante */

    position: relative;
    overflow: hidden;
}

/* Efecto de Destello (Shine) para TODOS */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.5);
}

.workspace-header-menu {
    position: relative;
}

.workspace-header-btn {
    min-width: 126px;
    justify-content: center;
}

.workspace-header-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 50;
}

.workspace-header-menu:hover .workspace-header-dropdown,
.workspace-header-menu:focus-within .workspace-header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.workspace-header-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
}

.workspace-header-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.action-btn:hover::before {
    left: 100%; /* El destello cruza el botón */
}

/* Eliminar estilos específicos antiguos */
.gallery-btn {
    /* Ya no necesitamos estilos diferentes */
}

/* --- ESTILO UNIFICADO PARA TOKENS Y CUPONES (ORO PURO) --- */
.token-badge, .header-coupon-btn {
    /* Fondo dorado más intenso y brillante */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    color: var(--gold-color); /* Texto Oro Brillante */
    border: 1px solid rgba(255, 215, 0, 0.5); /* Borde Oro definido */
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700; /* Texto más grueso */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15); /* Glow base sutil */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); /* Texto brillante */
}

.token-badge:hover, .header-coupon-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
    box-shadow: 0 0 20px var(--gold-glow); /* Glow intenso al hover */
    transform: translateY(-2px);
    border-color: var(--gold-color);
    color: #fff; /* Texto blanco al hover para máximo contraste */
    text-shadow: 0 0 10px var(--gold-color);
}

/* Iconos dentro de los botones dorados */
.token-badge i, .header-coupon-btn i {
    color: var(--gold-color);
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}
.token-badge:hover i, .header-coupon-btn:hover i {
    color: #fff;
}

/* Asegurar que el botón de cupones no herede estilos conflictivos si tiene la clase action-btn */
.header-coupon-btn.action-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15)) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
}
.header-coupon-btn.action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25)) !important;
    box-shadow: 0 0 20px var(--gold-glow) !important;
    border-color: var(--gold-color) !important;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--primary-glow);
    border: 2px solid rgba(255,255,255,0.1);
}

.auth-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 5px 10px;
}
.auth-links a:hover { color: var(--primary-color); }

/* --- BARRA DE OFERTA --- */
.oferta-bar {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px
        ),
        linear-gradient(90deg,
            var(--offer-bar-start, #4c0519),
            var(--offer-bar-mid, #e11d48),
            var(--offer-bar-end, #fb7185)
        );

    background-size: 200% 200%;

    color: var(--offer-bar-text-color, #ffffff);
    text-align: center;
    padding: 0 10px;
    font-size: clamp(8px, 2.8vw, 18px);
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;

    border-bottom: 2px solid var(--offer-bar-border, #ff8ab3);

    box-shadow: 0 4px 25px var(--offer-bar-glow, rgba(225, 29, 72, 0.55));

    position: relative;
    z-index: 90;

    /* Sombra de texto fuerte para contraste máximo */
    text-shadow:
        0 2px 0 #000000,
        0 0 10px rgba(0,0,0,0.5);

    animation: stripesMove 20s linear infinite;
}

.oferta-bar__text {
    display: block;
    max-width: 100%;
    line-height: 1;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

@keyframes stripesMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* --- HERO SECTION (CONTENEDOR OSCURO) --- */
.hero-section {
    position: relative; /* Para contener los elementos absolutos */
    display: flex;
    align-items: center; /* Centrar verticalmente el texto */
    justify-content: flex-start; /* Alinear texto a la izquierda */
    min-height: 85vh; /* Altura considerable para el banner */
    padding: 0; /* CAMBIO: Eliminado el padding */
    overflow: hidden; /* Recortar lo que sobresalga */
}

/* El contenedor del carrusel ahora es el FONDO */
.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Detrás de todo */
}

.hero-slide {
    position: absolute; /* Añadido para superponer slides */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 1s ease-in-out; /* Transición suave */
    z-index: 1; /* Capa base */
}

.hero-slide.active {
    opacity: 1; /* Visible */
    z-index: 2; /* Por encima de los otros */
}

.hero-image-half {
    width: 100%;
    height: 100%;
}

.hero-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubrir todo el espacio sin deformarse */

    /* MÁSCARA: Transparente a la izquierda (para leer texto) -> Sólido a la derecha */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, black 60%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, black 60%, black 100%);
}

/* El texto ahora flota ENCIMA */
.hero-text {
    position: relative;
    z-index: 10; /* Encima de la imagen */
    width: 100%;
    max-width: none; /* El ancho visual del hero se controla desde generate.html */
    text-align: left;
    padding: 0 0 0 clamp(48px, 5vw, 110px);
    box-sizing: border-box; /* CAMBIO: Añadido para un padding predecible */
    /* Sombra de texto opcional para mejorar legibilidad extrema */
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 0.8s ease-out;
}

/* ANIMACIÓN DE BORDE DE TEXTO (PULSO) */
@keyframes textStrokePulse {
    0%, 100% {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); /* Casi apagado */
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8); /* Encendido */
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)); /* Resplandor */
    }
}

.hero-text h1 {
    font-size: 4rem;
    margin: 0 0 20px 0;
    line-height: 1.05;
    font-weight: 800;
    /* Degradado de Texto: Blanco -> Morado -> Naranja */
    background: linear-gradient(to right, #ffffff 20%, #d8b4fe 60%, #ff9068 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ANIMACIÓN DE BORDE APLICADA */
    animation: textStrokePulse 3s infinite ease-in-out;

    /* RESPONSIVIDAD TEXTO (MEJORADA) */
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
}

/* Subtítulo */
.hero-text h2 {
    /* RESPONSIVIDAD TEXTO (MEJORADA) */
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: none;
    max-width: 100%;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
    white-space: normal;
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 10px 30px -5px var(--primary-glow);

    /* RESPONSIVIDAD BOTÓN */
    max-width: 100%;
    box-sizing: border-box;
}
.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -5px var(--primary-glow);
}
.cta-button::after {
    content: '\f061'; /* FontAwesome arrow right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
}
.cta-button:hover::after { transform: translateX(5px); }

/* --- SECCIÓN PERSONAJES --- */
.personajes-section {
    padding: 40px 3% 100px;
    flex: 1;
    /* Fondo desvanecido rojo/negro específico para el catálogo */
    background: radial-gradient(circle at 50% 50%, rgba(127, 29, 29, 0.1) 0%, transparent 70%);
    position: relative;
}

.filter-buttons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: rgba(255,255,255,0.03);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background-color: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px -5px var(--primary-glow);
    font-weight: 600;
}

.album-container {
    display: grid;
    /* Móvil y Tablet: Auto-fill flexible */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ESCRITORIO: FORZAR 5 COLUMNAS */
@media (min-width: 1024px) {
    .album-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* PANTALLAS GRANDES: 6 COLUMNAS */
@media (min-width: 1600px) {
    .album-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Tarjetas de Personajes */
.character-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    display: block;
    position: relative;
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 75, 75, 0.6);
    box-shadow: 0 20px 50px -10px rgba(255, 75, 75, 0.15);
}

.carousel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.carousel-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.carousel-image.active { opacity: 1; }
.character-card:hover .carousel-image { transform: scale(1.08); }

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    /* CAMBIO: Gradiente mucho más limpio y transparente para lucir la imagen */
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 25%, transparent 50%);
    padding: 30px 15px 15px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

/* ELIMINADO: Efecto de oscurecimiento al hover para que la imagen se vea siempre clara */
/* .character-card:hover .card-overlay { ... } */

.character-card h2 {
    font-size: 1.15rem;
    margin: 0 0 4px 0;
    color: white;
    font-weight: 700;
    /* Sombra de texto fuerte para legibilidad sin fondo negro */
    text-shadow: 0 2px 4px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s;
}

.character-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.3;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    width: fit-content;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.character-card:hover .chat-badge {
    opacity: 1;
    transform: translateY(0);
}

.carousel-progress-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    transform: none;
    display: flex;
    gap: 3px;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    padding: 3px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.progress-segment {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.progress-segment.active {
    background-color: white;
    transform: scale(1.2);
}

/* --- MODALES (ESTILOS GLOBALES) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #141414;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--card-border);
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; /* Para que el header no se salga */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    background-color: rgba(20, 20, 20, 0.95);
}
.modal-header h3 { margin: 0; font-size: 1.2rem; color: var(--text-main); }

.close-btn { color: var(--text-muted); font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--primary-color); }

.modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; background-color: #141414; }

.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: rgba(20, 20, 20, 0.95);
}

/* Botones del Modal */
.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.modal-btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}
.modal-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* --- FOOTER --- */
footer {
    background-color: #020202;
    color: var(--text-muted);
    padding: 60px 5% 40px;
    margin-top: auto;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p { line-height: 1.6; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
}
.social-links a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- BOTTOM NAVIGATION (MOBILE) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--card-border);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
    gap: 4px;
}
.bottom-nav-item i { font-size: 1.3rem; transition: transform 0.2s; }
.bottom-nav-item:hover { color: #cbd5e1; }
.bottom-nav-item.active { color: var(--primary-color); }
.bottom-nav-item.active i { transform: translateY(-2px); }

/* --- ANIMACIONES --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header { padding: 0 15px; height: 60px; }
    header h1 { display: none; }
    .user-menu { gap: 10px; }

    /* Ajuste para Token Badge y Botón de Cupones en Móvil */
    .token-badge, .header-coupon-btn { font-size: 0.7rem; padding: 4px 10px; }
    .token-badge span, .header-coupon-btn span { display: none; }
    .token-badge::after { content: attr(data-tokens); display: block; }

    .hero-section {
        padding: 0;
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        min-height: auto;
        margin: 0; /* CAMBIO: Eliminado el margin */
    }

    .hero-text {
        padding: 30px 20px;
    }

    /* Ajuste de fuentes para móvil */
    .hero-text h1 { font-size: 2rem; }
    .hero-text h2 { font-size: 1.5rem !important; } /* Forzar reducción del subtítulo */
    .hero-text p { font-size: 1rem; margin-bottom: 25px; }

    .hero-carousel-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 450px;
        border-radius: 20px;
    }

    /* Botón full width en móvil */
    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .album-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .character-card {
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }

    .card-overlay { padding: 15px 12px 12px; }
    .character-card h2 { font-size: 1rem; margin-bottom: 4px; }
    .character-card p { font-size: 0.75rem; -webkit-line-clamp: 2; }
    .chat-badge { display: none; }

    .desktop-nav-btn { display: none !important; }
    .bottom-nav { display: flex; }
    body:not(.no-pad-bottom) { padding-bottom: 70px; }
}

/* --- ESTILOS SECCIÓN SHOWCASE --- */
.showcase-section {
    padding: 80px 5%;
    background-color: #080808;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.prompt-box {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-mid); /* Usa el color de la marca */
    min-height: 120px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: var(--primary-mid);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.showcase-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(255, 75, 75, 0.2); /* Glow llamativo */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Hacerlo más pequeño y centrado */
    max-width: 70%;
    margin: 0 auto;
    aspect-ratio: 3 / 4; /* Mantener proporción de retrato */
    /* Efecto 3D sutil */
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.showcase-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 75, 75, 0.4);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* Responsive para la sección Showcase */
@media (max-width: 900px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .showcase-text {
        text-align: center;
    }
    .prompt-box {
        text-align: left;
    }
    .showcase-image {
        max-width: 90%; /* Un poco más grande en móvil, pero no al 100% */
        transform: none; /* Quitar efecto 3D en móvil */
    }
    .showcase-image:hover {
        transform: none;
    }
}

/* --- AGE GATE STYLES (VERIFICACIÓN DE EDAD - DISEÑO PREMIUM) --- */
#age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999; /* Por encima de TODO */
    /* Fondo oscuro pero con un toque sutil de la marca */
    background: radial-gradient(circle at center, #1a0b1a 0%, #000000 100%);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.age-gate-content {
    /* Estilo Glassmorphism Oscuro */
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    color: #d1d5db;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Borde superior brillante sutil */
.age-gate-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.age-gate-logo {
    max-height: 70px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.age-gate-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.age-gate-subtitle {
    color: var(--primary-mid); /* Color de acento de la marca */
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.age-gate-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #9ca3af;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-enter {
    /* Gradiente de la marca */
    background: var(--primary-gradient);
    color: white;
    font-weight: 800;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}
.btn-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); /* Glow rojizo */
    filter: brightness(1.1);
}

.btn-exit {
    /* Estilo Ghost moderno */
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    font-weight: 600;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.btn-exit:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.age-gate-footer {
    font-size: 0.75rem;
    color: #555;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}
.age-gate-footer a { color: #777; text-decoration: none; transition: color 0.2s; }
.age-gate-footer a:hover { color: #aaa; text-decoration: underline; }

/* CAMBIO: Estilo para el logo RTA CSS */
.rta-logo-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #444;
    background: #111;
    padding: 6px 12px;
    border-radius: 6px;
    color: #888;
    transition: all 0.3s;
    margin-top: 15px;
}
.rta-logo-container:hover {
    border-color: #666;
    background: #1a1a1a;
    color: #ccc;
    transform: scale(1.02);
}
.rta-big-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-right: 10px;
    color: #ccc;
}
.rta-small-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    border-left: 1px solid #555;
    padding-left: 8px;
    font-weight: 700;
    text-align: left;
}

@media (min-width: 640px) {
    .age-gate-buttons { flex-direction: row; }
    .btn-enter, .btn-exit { flex: 1; }
}

/* --- ESTILOS FOOTER 3 COLUMNAS (HORIZONTAL) --- */
footer {
    padding: 15px 5% !important;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; /* Necesario para z-index */
    z-index: 2000; /* Asegurar que esté por encima si es necesario */
}
.footer-content {
    display: flex !important;
    flex-direction: row !important; /* Horizontal */
    justify-content: space-between !important; /* Esparcir columnas */
    align-items: center !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap; /* Permitir que baje en pantallas muy pequeñas */
}
.footer-section {
    margin: 0 !important;
    flex: 1; /* Distribuir espacio */
    min-width: 200px; /* Ancho mínimo para no aplastarse */
}

/* Alineación específica por columna */
.footer-section:nth-child(1) { text-align: left; }
.footer-section:nth-child(2) { text-align: center; }
.footer-section:nth-child(3) { text-align: right; display: flex; justify-content: flex-end; }

/* Títulos ocultos para ahorrar espacio */
.footer-section h3 {
    display: none !important;
}
.footer-section p {
    font-size: 0.8rem !important;
    margin: 0 !important;
    color: #888;
    line-height: 1.4;
}

/* CAMBIO: Habilitar visibilidad del copyright */
.copyright {
    display: block !important; /* FORZAR VISIBILIDAD */
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: #555;
    width: 100%;
}

/* Iconos sociales */
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    font-size: 1.1rem !important;
    color: #aaa !important;
    transition: color 0.3s;
}
.social-links a:hover {
    color: white !important;
}

/* Ajuste Móvil: Apilar si no cabe */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .footer-section {
        text-align: center !important;
    }
    .footer-section:nth-child(3) { justify-content: center; }
}

/* Estilo para el Botón Flotante (FAB) */
.fab-create {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 75, 75, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: all 0.1s ease-out; /* Transición más rápida para el movimiento */
    border: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;

    /* Inicialmente oculto y pequeño para la animación de entrada */
    opacity: 0;
    transform: scale(0) translateY(20px);
    pointer-events: none; /* No clicable mientras está oculto */
}

.fab-create.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.fab-create:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 75, 75, 0.6);
}

/* Icono SVG Estrella 4 Puntas (Grupo) */
.star-icon {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.6));
}

/* Icono SVG Estrella Pequeño (Para menús) */
.star-icon-sm {
    width: 18px;
    height: 18px;
    fill: currentColor; /* Hereda el color del texto */
}

/* Partícula viajera (Estrella fugaz) */
.traveling-star {
    position: fixed;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8), 0 0 30px 10px var(--primary-color);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.traveling-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    transform: translateY(-50%) rotate(180deg); /* Cola hacia atrás */
    transform-origin: left center;
    opacity: 0.6;
}

/* Estilo para ocultar el botón original suavemente */
.cta-button.hidden-hero {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Ajuste para móvil: subirlo un poco para no tapar el bottom nav */
@media (max-width: 768px) {
    .fab-create {
        bottom: 90px; /* Aumentado para asegurar que no tape el nav */
        right: 20px;
        padding: 12px 24px;
        font-size: 1rem;
        /* Asegurar que esté por encima del bottom nav */
        z-index: 10001;
    }
}

/* --- ESTILOS BOTÓN PRIVATE (GOLD) --- */
.filter-btn.private-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-btn.private-btn:hover, .filter-btn.private-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

/* --- ESTILOS BOTÓN UNLOCK --- */
.unlock-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    display: none; /* Oculto por defecto */
}
.unlock-btn {
    background: transparent;
    border: 2px dashed #fbbf24;
    color: #fbbf24;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.unlock-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.02);
}

/* --- ANIMACIÓN DE ESTRELLAS MEJORADA (CONFETTI EXPLOSION) --- */
.unlock-particle {
    position: fixed; /* CAMBIO: Fixed para que sea relativo a la pantalla */
    pointer-events: none;
    z-index: 10000; /* Muy alto para estar encima del modal */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); /* Brillo */
}

@keyframes confetti-explosion {
    0% {
        /* Empezar pequeño pero visible */
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 1;
    }
    20% {
        /* Explotar a tamaño completo rápidamente */
        transform: translate(calc(-50% + (var(--tx) * 0.2)), calc(-50% + (var(--ty) * 0.2))) scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        /* Desvanecerse y moverse al destino final */
        transform: translate(calc(-50% + var(--tx)), calc(var(--ty) * -1)) scale(0.8);
        opacity: 0;
    }
}

/* --- AJUSTES PARA AVATAR EN MÓVIL --- */
@media (max-width: 768px) {
    /* Ocultar avatar del header en móvil */
    header .user-avatar {
        display: none !important;
    }
}

/* Estilo para el avatar en la barra inferior */
.bottom-nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- ESTILOS PARA MODALES LEGALES --- */
.legal-modal-overlay {
    position: fixed; inset: 0;
    z-index: 100000; /* CAMBIO: Mayor que el Age Gate (99999) */
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.legal-modal-overlay.active { opacity: 1; pointer-events: auto; }

.legal-modal-content {
    background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; width: 90%; max-width: 600px; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.legal-modal-overlay.active .legal-modal-content { transform: scale(1); }

.legal-modal-header {
    padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.legal-modal-title { font-size: 1.25rem; font-weight: bold; color: white; margin: 0; }
.legal-modal-close {
    background: none; border: none; color: rgba(255, 255, 255, 0.6);
    cursor: pointer; font-size: 1.5rem; transition: color 0.2s;
}
.legal-modal-close:hover { color: white; }

.legal-modal-body {
    padding: 24px; overflow-y: auto; color: #d1d5db; font-size: 0.95rem; line-height: 1.6; text-align: left;
}
/* Estilos básicos para el contenido HTML dentro del modal */
.legal-modal-body h1, .legal-modal-body h2, .legal-modal-body h3 { color: white; margin-top: 1em; margin-bottom: 0.5em; font-weight: bold; }
.legal-modal-body p { margin-bottom: 1em; }
.legal-modal-body ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
.legal-modal-body a { color: var(--primary-mid); text-decoration: underline; }

/* --- User theme presets --- */
body.theme-dark_neon {
    --primary-start: #b76cf6;
    --primary-mid: #f04473;
    --primary-end: #fb8a70;
    --accent-glow: #f04473;
    --primary-color: var(--primary-mid);
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 50%, var(--primary-end) 100%);
    --primary-glow: color-mix(in srgb, var(--accent-glow), transparent 50%);
    --offer-bar-color: #d83a68;
    --offer-bar-start: #4c0519;
    --offer-bar-mid: #d83a68;
    --offer-bar-end: #fb8a70;
    --offer-bar-border: #f6a1b8;
    --offer-bar-glow: rgba(216, 58, 104, 0.42);
    --offer-bar-text-color: #fff7fb;
    --bg-gradient: radial-gradient(circle at 50% -20%, rgba(183, 108, 246, 0.12), transparent 50%), radial-gradient(circle at 0% 30%, rgba(240, 68, 115, 0.09), transparent 40%), linear-gradient(to bottom, #0d0609 0%, #020202 100%);
}

body.theme-clean_black {
    --primary-start: #f5d0dc;
    --primary-mid: #d35d7f;
    --primary-end: #8a314d;
    --accent-glow: #d35d7f;
    --primary-color: var(--primary-mid);
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 50%, var(--primary-end) 100%);
    --primary-glow: color-mix(in srgb, var(--accent-glow), transparent 50%);
    --offer-bar-color: #a94763;
    --offer-bar-start: #08080a;
    --offer-bar-mid: #8a314d;
    --offer-bar-end: #d35d7f;
    --offer-bar-border: #eaa5b8;
    --offer-bar-glow: rgba(211, 93, 127, 0.32);
    --offer-bar-text-color: #fff7f7;
    --bg-gradient: radial-gradient(circle at 50% -20%, rgba(211, 93, 127, 0.08), transparent 42%), linear-gradient(to bottom, #050505 0%, #000000 100%);
}

body.theme-soft_pink {
    --primary-start: #f7a8c7;
    --primary-mid: #e86f9c;
    --primary-end: #c6537a;
    --accent-glow: #e86f9c;
    --primary-color: var(--primary-mid);
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 50%, var(--primary-end) 100%);
    --primary-glow: color-mix(in srgb, var(--accent-glow), transparent 50%);
    --offer-bar-color: #d95d8e;
    --offer-bar-start: #831843;
    --offer-bar-mid: #d95d8e;
    --offer-bar-end: #f7a8c7;
    --offer-bar-border: #f5bfd2;
    --offer-bar-glow: rgba(217, 93, 142, 0.38);
    --offer-bar-text-color: #fff7fb;
    --bg-gradient: radial-gradient(circle at 50% -20%, rgba(247, 168, 199, 0.15), transparent 48%), linear-gradient(to bottom, #13080e 0%, #050305 100%);
}

body.theme-cyber_purple {
    --primary-start: #8b5cf6;
    --primary-mid: #c061cb;
    --primary-end: #f08ab8;
    --accent-glow: #c061cb;
    --primary-color: var(--primary-mid);
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 50%, var(--primary-end) 100%);
    --primary-glow: color-mix(in srgb, var(--accent-glow), transparent 50%);
    --offer-bar-color: #a66ad8;
    --offer-bar-start: #2f235d;
    --offer-bar-mid: #a66ad8;
    --offer-bar-end: #f08ab8;
    --offer-bar-border: #dfb4ff;
    --offer-bar-glow: rgba(166, 106, 216, 0.38);
    --offer-bar-text-color: #ffffff;
    --bg-gradient: radial-gradient(circle at 20% 18%, rgba(139, 92, 246, 0.13), transparent 34%), radial-gradient(circle at 76% 38%, rgba(192, 97, 203, 0.16), transparent 38%), linear-gradient(180deg, #070514 0%, #020208 100%);
}

body.theme-luxury_minimal {
    --primary-start: #f7e7b6;
    --primary-mid: #c8a452;
    --primary-end: #8b6f36;
    --accent-glow: #c8a452;
    --primary-color: var(--primary-mid);
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 50%, var(--primary-end) 100%);
    --primary-glow: color-mix(in srgb, var(--accent-glow), transparent 50%);
    --offer-bar-color: #c8a452;
    --offer-bar-start: #2d2410;
    --offer-bar-mid: #a88642;
    --offer-bar-end: #f0d995;
    --offer-bar-border: #f7e7b6;
    --offer-bar-glow: rgba(200, 164, 82, 0.3);
    --offer-bar-text-color: #fffbe8;
    --bg-gradient: radial-gradient(circle at 20% 20%, rgba(200, 164, 82, 0.1), transparent 30%), linear-gradient(180deg, #090806 0%, #020202 100%);
}

/* --- Minimal site footer --- */
.site-footer {
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(12, 8, 10, 0.98), #050505);
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 2000;
}

.site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, auto) minmax(220px, 1fr);
    align-items: center;
    gap: 22px;
}

.site-footer__brand,
.site-footer__legal,
.site-footer__contact {
    min-width: 0;
}

.site-footer__brand {
    display: grid;
    gap: 5px;
}

.site-footer__brand strong {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.1;
}

.site-footer__brand span,
.site-footer__legal span {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.3;
}

.site-footer__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer__link,
.site-footer__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.045);
    color: #cbd5e1;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.site-footer__link {
    padding: 0 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-footer__icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
}

.site-footer__link:hover,
.site-footer__icon-link:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.075);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__legal button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.site-footer__legal button:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 14px !important;
    }

    .site-footer__inner {
        width: min(calc(100% - 36px), 420px);
        min-height: 0;
        padding: 22px 0 18px;
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .site-footer__brand,
    .site-footer__contact,
    .site-footer__legal {
        justify-content: center;
    }

    .site-footer__brand {
        justify-items: center;
    }

    .site-footer__legal {
        gap: 10px 14px;
    }

    .site-footer__link {
        max-width: 100%;
    }

    .site-footer__link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
