:root {
    /* Holos & Vintage Premium Palette */
    --color-black: #080808;
    --color-black-light: #1A1A1A;
    --color-white: #F9F7F2;
    /* Holos Bone/Cream */
    --color-bone: #E5E2D9;

    /* Holos Accent */
    --color-holos-orange: #FF4D00;
    --color-bordo: #8B0000;
    --color-gold: #D4AF37;

    /* Tokens de Diseño */
    --radius-premium: 16px;
    --radius-round: 50%;

    /* Fuentes Editorial */
    --font-titles: 'Prata', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-ui: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
    touch-action: pan-x pan-y;
    position: relative;
}

/* Efecto Noise/Grano para acabado editorial */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
}

/* --- Elementos Decorativos (Stickers Notebook) --- */
.tattoo-sticker {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    /* Vibrant and opaque */
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
    transition: transform 0.8s ease-out;
}

.tattoo-sticker img {
    width: 100%;
    height: auto;
    display: block;
}

.sticker-1 {
    top: -10px;
    left: -10px;
    width: 80px;
    transform: rotate(-15deg);
}

.sticker-2 {
    top: -20px;
    right: -10px;
    width: 90px;
    transform: rotate(10deg);
}

.sticker-3 {
    bottom: 10px;
    left: -5px;
    width: 75px;
    transform: rotate(5deg);
}

.sticker-4 {
    bottom: -20px;
    right: 10px;
    width: 85px;
    transform: rotate(-8deg);
}

.sticker-5 {
    top: 40%;
    left: -20px;
    width: 70px;
    transform: rotate(-25deg);
}

.sticker-6 {
    top: 60%;
    right: -15px;
    width: 80px;
    transform: rotate(18deg);
}

.sticker-7 {
    top: 10px;
    left: 40%;
    width: 65px;
    transform: rotate(3deg);
}

.sticker-8 {
    bottom: 30%;
    right: -25px;
    width: 95px;
    transform: rotate(-12deg);
}

/* Animación sutil de entrada */
.page-inner .tattoo-sticker {
    animation: tattooFloatIn 2s ease-out forwards;
}

@keyframes tattooFloatIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }

    to {
        opacity: 0.12;
        transform: scale(1) rotate(inherit);
    }
}

/* === Pantalla de Login Toscana === */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('portada.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-black);
    /* Anti-FOUC solid color until image loads */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(26, 26, 26, 0.9) 100%);
    z-index: 1;
}

.login-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
}

.login-title {
    font-family: var(--font-titles);
    font-size: 3.5rem;
    color: var(--color-white);
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-bone);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin-bottom: 2rem;
}

@media (max-width: 380px) {
    .login-title {
        font-size: 2.8rem;
    }

    .login-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .login-content {
        padding: 1.5rem;
    }
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    /* Pillow button */
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-google:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.google-logo {
    width: 20px;
    height: 20px;
}

.login-hidden {
    opacity: 0;
    pointer-events: none;
}

.album-container.locked {
    display: none;
}

/* --- Contenedor Principal (Scroll Snap) --- */
.album-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100vh;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    z-index: 1;
}

.album-container::-webkit-scrollbar {
    display: none;
}

/* --- Páginas (Aesthetic de Revista Elite) --- */
.page {
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: center;
    /* Mejor centering global */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-content {
    background-color: transparent;
    border: 1px solid rgba(238, 237, 231, 0.1);
    padding: 2.5rem 1.5rem 4rem 1.5rem;
    /* Más bottom padding para el footer global */
    width: 90%;
    max-width: 450px;
    height: 85vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
}

.page-content::-webkit-scrollbar {
    display: none;
}

/* --- Títulos (Header) --- */
.decorative-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.decorative-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--color-bordo);
    margin: 1rem auto 0;
}

.page-header h2 {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--color-bone);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- Grid de Figuritas --- */
.grid-figuritas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    /* Mas espacio entre fotos */
    padding: 2rem 0 5rem 0;
    position: relative;
    z-index: 5;
}

.grid-figuritas>.figurita-slot {
    margin: 0;
}

.grid-figuritas>.figurita-slot:nth-child(1) {
    align-self: flex-start;
    margin-left: 4%;
    --final-rot: -3deg;
    transform: rotate(var(--final-rot));
}

.grid-figuritas>.figurita-slot:nth-child(2) {
    align-self: flex-end;
    margin-right: 4%;
    --final-rot: 4deg;
    transform: rotate(var(--final-rot));
}

.grid-figuritas>.figurita-slot:nth-child(3) {
    align-self: center;
    --final-rot: -1.5deg;
    transform: rotate(var(--final-rot));
}

/* --- Slots Standar --- */
.figurita-slot {
    aspect-ratio: 4/3;
    background-color: var(--color-black-light);
    border: 1px dashed var(--color-bone);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.figurita-slot.pending {
    opacity: 0.8;
}

.figurita-slot.pending:active {
    background-color: #222;
}

.silhouette-box {
    width: 40%;
    opacity: 0.2;
}

.icon-silhouette {
    fill: var(--color-white);
    width: 100%;
    height: 100%;
}

.consigna {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    color: var(--color-bone);
    opacity: 0.7;
    text-align: center;
    margin-top: 15px;
    padding: 0 10px;
    font-style: italic;
    line-height: 1.2;
}

.numero {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    color: var(--color-white);
    opacity: 0.4;
}



/* SUBIENDO */
.figurita-slot.uploading .silhouette-box,
.figurita-slot.uploading .numero,
.figurita-slot.uploading .cta-text,
.figurita-slot.uploading .consigna {
    opacity: 0;
}

.spinner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphingPulse 2s ease-in-out infinite both;
    opacity: 0.8;
}

@keyframes morphingPulse {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1) rotate(0deg);
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: scale(1.1) rotate(120deg);
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: scale(0.9) rotate(240deg);
    }
}

/* COLECCIONADA */
.figurita-slot.collected {
    border: none;
    background-color: transparent;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Sombra para dar efecto relieve polaroid */
}

.figurita-slot.aspect-3-4 {
    aspect-ratio: 3/4;
}

/* Ocultar elementos sobrantes del slot al estar colectada */
.figurita-slot.collected .silhouette-box,
.figurita-slot.collected .consigna,
.figurita-slot.collected .numero,
.figurita-slot.collected .cta-text {
    display: none !important;
}

/* Efecto Pegado de Sticker Animación - Enhanced Spring Bounce */
@keyframes stickerPaste {
    0% {
        transform: scale(0.5) rotate(15deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(calc(var(--final-rot, 0deg) - 5deg));
        opacity: 1;
    }

    70% {
        transform: scale(0.95) rotate(calc(var(--final-rot, 0deg) + 2deg));
    }

    100% {
        transform: scale(1) rotate(var(--final-rot, 0deg));
        opacity: 1;
    }
}

.figurita-slot.collected {
    animation: stickerPaste 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Base style for regular collected images */
.figurita-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 10;
    border-radius: 2px;
    border: 6px solid #FFF;
    box-sizing: border-box;
    animation: editorialFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Estilo Golden especial para fotos tipo especial */
.figurita-slot[data-type="especial"] .figurita-img {
    border-color: var(--color-gold);
}

@keyframes editorialFadeIn {
    from {
        opacity: 0;
        filter: grayscale(100%);
    }

    to {
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* === UI FOTO RECOLECTADA (100% VISIBLE) === */
.collected-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    /* Clics pasan al slot primario al principio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.figurita-slot.collected .collected-ui {
    pointer-events: auto;
    /* Activar clicks de UI en state collected */
}

/* TOP BAR (Numero + 3 Puntos) */
.top-bar {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.badge-numero {
    background: rgba(238, 237, 231, 0.2);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-dots {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* MENU CONTEXTUAL (Desplegable) */
.context-menu {
    position: absolute;
    top: 40px;
    right: 10px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 30;
    transform-origin: top right;
    animation: scaleIn 0.2s ease;
}

.context-menu.hidden {
    display: none;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cm-item {
    background: transparent;
    border: none;
    color: var(--color-bone);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.cm-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.cm-delete {
    color: #ff6b6b;
}

/* SOCIAL STATS (Bottom Bar Glassmorphism) */
.social-stats {
    width: 100%;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.social-stats span {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Modificador cuando el slot general es Privado (Grisado en cuadrícula) */
.figurita-slot.is-private .social-stats {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* --- Botones Wizard Internos --- */
.wizard-nav {
    position: absolute;
    z-index: 10;
}

.wizard-left {
    bottom: 10%;
    left: 8%;
}

.wizard-right {
    bottom: 10%;
    right: 8%;
}

.wizard-center {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.btn-wizard {
    background-color: transparent;
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 2px solid var(--color-holos-orange);
    /* Holos Orange Accent */
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wizard:hover,
.btn-wizard:active {
    opacity: 0.7;
}


/* ==================================
   PAGINACIÓN GLOBAL (FOOTER DIAL)
   ================================== */
.pagination-footer.dial-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 50;
    padding: 0 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
}

.dial-node {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--color-bone);
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    opacity: 0.6;
}

.dial-node:disabled {
    opacity: 0;
    pointer-events: none;
}

.dial-node.current-node {
    opacity: 1;
    color: var(--color-gold);
    font-family: var(--font-titles);
    font-size: 1.2rem;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    flex: 1;
    justify-content: center;
    text-align: center;
}

.dial-node.prev-node,
.dial-node.next-node {
    font-size: 0.85rem;
    max-width: 100px;
    width: 30%;
}

.dial-node.prev-node {
    justify-content: flex-start;
    text-align: left;
}

.dial-node.next-node {
    justify-content: flex-end;
    text-align: right;
}

.dial-arrow {
    font-size: 1.2rem;
    color: var(--color-holos-orange);
}

.dial-node.prev-node .dial-arrow {
    margin-right: 5px;
}

.dial-node.next-node .dial-arrow {
    margin-left: 5px;
}

.dial-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Modal Base --- */
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 2, 2, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-black-light);
    padding: 2.5rem;
    border-radius: var(--radius-premium);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 77, 0, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* === PREVIEW MODAL (Insta-Style) === */
.insta-modal-content {
    background-color: transparent;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    animation: modalFadeGlass 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalFadeGlass {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Modal Instagram-Style Layout === */
.insta-layout {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.insta-photo-container {
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 85vh;
    position: relative;
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: none;
}

/* Efecto de Viñeteado elegante superpuesto */
.insta-photo-container::after {
    display: none;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.btn-close-modal {
    position: absolute;
    top: 25px;
    /* Más abajo para no chocar con bordes/celular */
    right: 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--color-white);
    border: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 101;
    backdrop-filter: blur(5px);
}

/* === Panel Social Inferior === */
.insta-social-container {
    width: 100%;
    height: 35vh;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    background: var(--color-black-light);
    position: relative;
    transition: all 0.3s ease;
}

/* Estado Privado (Grisado y Bloqueado) */
.insta-social-container.private-view {
    opacity: 0.4;
    filter: grayscale(100%);
    pointer-events: none;
}

.insta-social-container.private-view::after {
    content: "Foto Privada 🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

.insta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.insta-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.insta-btn:active {
    transform: scale(1.2);
}

.insta-likes-count {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

.insta-comments-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
}

.insta-comments-list::-webkit-scrollbar {
    width: 4px;
}

.insta-comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.comment-item {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-white);
    margin-bottom: 6px;
    line-height: 1.3;
}

.comment-item strong {
    color: var(--color-bone);
    font-weight: 600;
    margin-right: 5px;
}

.insta-input-area {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    gap: 10px;
}

#comment-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
}

#comment-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#post-comment-btn {
    background: none;
    border: none;
    color: var(--color-beige);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.8;
}

#post-comment-btn:active {
    opacity: 1;
}

/* === Onboarding Modal: Educar Privacidad Única Vez === */
.privacy-content {
    background: var(--color-black-light);
    border: 1px solid var(--color-bordo);
    border-radius: 12px;
    width: 85%;
    max-width: 350px;
    height: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.privacy-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.privacy-subtitle {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-bone);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.privacy-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.btn-privacy-action {
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn-privacy-action:active {
    transform: scale(0.98);
}

.btn-public {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-bordo);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:active {
    transform: scale(0.95);
    background-color: var(--color-black);
}

/* === Perfil flotante superior ====================== */
#user-profile-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.figurita-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-black-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-premium);
    /* Premium Rounded Corners */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.avatar-circle {
    position: relative;
    width: 45px;
    height: 45px;
    background-color: var(--color-black-light);
    border: 1px solid rgba(255, 77, 0, 0.4);
    /* Holos highlight */
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.3s;
}

.points-badge {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: var(--color-holos-orange);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-black-light);
    z-index: 10;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.avatar-icon {
    width: 60%;
    height: 60%;
}

/* === TEAM DRINK VOTING === */
.drinks-battle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.voting-module {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.voting-title {
    font-family: var(--font-titles);
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.vote-buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-vote {
    flex: 1;
    padding: 12px 0;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.btn-vote:active {
    transform: scale(0.95);
}

.btn-vote.vote-novia {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 44px 10px rgba(255, 107, 107, 0.4);
}

.btn-vote.vote-novio {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.4);
}

.vote-results-container {
    width: 100%;
    margin-top: 10px;
}

.vote-labels-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
}

.percent-novia {
    color: #ff8e8e;
}

.percent-novio {
    color: #4facfe;
}

.split-bar-bg {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    /* Base color is right side (Novio) */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.split-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    /* Overlay color is left side (Novia) */
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-right: 2px solid var(--color-white);
}

.vote-thanks {
    font-family: var(--font-ui);
    color: var(--color-green);
    font-size: 0.95rem;
    margin-top: 20px;
    animation: fadeIn 0.5s;
}

#profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 77, 0, 0.2);
    border-radius: var(--radius-premium);
    padding: 8px 0;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 160px;
}

.dropdown-item {
    background: transparent;
    color: var(--color-white);
    border: none;
    padding: 12px 15px;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
    color: #ff6b6b;
    /* Cerrar sesión */
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modal UI: Cambiar Nombre */
.name-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
    text-align: center;
}

.name-input:focus {
    border-color: var(--color-bordo);
}

/* === SECCIÓN SOLTEROS === */
.solteros-warning {
    background-color: rgba(255, 65, 108, 0.1);
    border: 1px solid #FF416C;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #FF416C;
}

.silhouette-locked {
    font-size: 2.5rem;
    color: var(--color-beige);
    opacity: 0.5;
}

.soltero-mock {
    opacity: 0.7;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.soltero-mock.unlocked {
    opacity: 1;
    filter: grayscale(0);
    cursor: pointer;
}

/* === PRIVATE ZONE (SOLTEROS) === */
.solteros-protected-zone {
    position: relative;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.protected-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease;
}

.protected-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    background: var(--color-black-light);
    border: 1px solid var(--color-bordo);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lock-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.protected-title {
    font-family: var(--font-titles);
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.protected-text {
    font-family: var(--font-ui);
    color: var(--color-bone);
    font-size: 0.9rem;
    line-height: 1.4;
}

.blurred-grid {
    filter: blur(8px) grayscale(50%);
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.5s ease;
}

.blurred-grid.unlocked-grid {
    filter: blur(0px) grayscale(0%);
    opacity: 1;
    pointer-events: auto;
}

.hidden-slot {
    display: none !important;
}

/* === TEMPORARY: HEADLESS SOCIAL (Hide likes/comments) === */
.social-stats,
.insta-social-container {
    display: none !important;
}

/* === EXCEPTION: SINGLES MATCH OVERRIDE === */
#preview-modal.solteros-active .insta-social-container {
    display: flex !important;
}

#preview-modal.solteros-active .insta-likes-count,
#preview-modal.solteros-active .insta-comments-list,
#preview-modal.solteros-active .insta-input-area {
    display: none !important;
}

/* === QUICK LIKE BUTTON (Grilla Solteros) === */
.quick-like-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    opacity: 0;
    /* Oculto por defecto hasta desbloquear */
    pointer-events: none;
    filter: grayscale(1);
}

.soltero-mock.unlocked .quick-like-btn {
    opacity: 1;
    pointer-events: auto;
}

.quick-like-btn.liked {
    filter: grayscale(0);
    background: rgba(255, 77, 0, 0.3);
    border-color: var(--color-holos-orange);
    color: var(--color-holos-orange);
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}

.quick-like-btn:hover {
    transform: scale(1.1);
}

.quick-like-btn:active {
    transform: scale(0.9);
}

/* === MATCH BADGE (Vintage Ribbon) === */
.match-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg) scale(0);
    background: var(--color-holos-orange);
    color: white;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 30px;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);

    /* Shield/Ribbon body */
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.match-badge::before {
    content: "¡MATCH!";
    letter-spacing: 3px;
    display: block;
}

.match-badge.show-match {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) rotate(-5deg) scale(1.1);
}

/* === HEART POP ANIMATION (Double Tap) === */
.heart-pop-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--color-holos-orange);
    /* Matching color pop */
    pointer-events: none;
    z-index: 50;
    opacity: 0;
}

.heart-pop-container.animate-pop {
    animation: popHeart 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popHeart {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
        text-shadow: 0 0 20px var(--color-holos-orange);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* === MATCH CONTACT BUTTON === */
.match-contact-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Forcing it to show logic is coupled with .show-match on badge or via JS injecting class */
.match-contact-btn.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.match-contact-btn.disabled {
    background: #555;
    color: #ccc;
    pointer-events: none;
    box-shadow: none;
}

/* Ajuste específico para el botón en el modal gigante */
#modal-match-contact {
    bottom: -40px;
    /* Posicionarlo debajo de la foto */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    padding: 10px 20px;
}

#modal-match-contact.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    bottom: 20px;
    /* Animar hacia arriba */
}

/* === INPUT ERROR VALIDATION === */
.input-error {
    border-color: #ff3333 !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* === LEADERBOARD FAB E ESTILOS === */
.fab-leaderboard {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 900;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fab-leaderboard:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.leaderboard-content {
    background: linear-gradient(to bottom, var(--color-black-light) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--color-gold);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.leaderboard-header {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    text-align: center;
}

.leaderboard-title {
    font-family: var(--font-titles);
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.leaderboard-user-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-list-container {
    overflow-y: auto;
    padding: 20px 25px;
    flex: 1;
}

/* Ocultar scrollbar modal */
.leaderboard-list-container::-webkit-scrollbar {
    width: 4px;
}

.leaderboard-list-container::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lb-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lb-rank {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-bone);
    width: 25px;
    text-align: center;
}

.rank-1 .lb-rank {
    color: #ffd700;
    font-size: 1.5rem;
}

.rank-2 .lb-rank {
    color: #c0c0c0;
    font-size: 1.4rem;
}

.rank-3 .lb-rank {
    color: #cd7f32;
    font-size: 1.3rem;
}

.lb-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.rank-1 .lb-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rank-2 .lb-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.rank-3 .lb-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.lb-name {
    font-family: var(--font-ui);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

.lb-current-user {
    border: 1px solid var(--color-holos-orange);
    background: rgba(255, 77, 0, 0.05);
}

.lb-current-user .lb-name {
    color: var(--color-holos-orange);
}

.lb-points {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* === FLOATING HELP BUTTON === */
.fab-help {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: var(--font-titles);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 900;
    /* Same as leaderboard */
    transition: all 0.3s ease;
}

.fab-help:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

/* === TUTORIAL OVERLAY === */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.tutorial-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.tutorial-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-overlay:not(.hidden) .tutorial-card {
    transform: translateY(0);
}

.tutorial-card h2 {
    font-family: var(--font-titles);
    color: var(--color-gold);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.t-step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.t-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.t-step p {
    font-family: var(--font-ui);
    color: var(--color-bone);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Swipe Animation */
.swipe-animation {
    width: 60px;
    height: 4px;
    background: var(--color-holos-orange);
    border-radius: 2px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.swipe-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(2px);
    animation: swipeAnim 2s infinite ease-in-out;
}

@keyframes swipeAnim {
    0% {
        left: -20px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.lb-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.rank-1 .lb-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rank-2 .lb-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.rank-3 .lb-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.lb-name {
    font-family: var(--font-ui);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

.lb-current-user {
    border: 1px solid var(--color-holos-orange);
    background: rgba(255, 77, 0, 0.05);
}

.lb-current-user .lb-name {
    color: var(--color-holos-orange);
}

.lb-points {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* === FLOATING HELP BUTTON === */
.fab-help {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: var(--font-titles);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 900;
    /* Same as leaderboard */
    transition: all 0.3s ease;
}

.fab-help:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

/* === TUTORIAL OVERLAY === */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.tutorial-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.tutorial-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-overlay:not(.hidden) .tutorial-card {
    transform: translateY(0);
}

.tutorial-card h2 {
    font-family: var(--font-titles);
    color: var(--color-gold);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.t-step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.t-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.t-step p {
    font-family: var(--font-ui);
    color: var(--color-bone);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Swipe Animation */
.swipe-animation {
    width: 60px;
    height: 4px;
    background: var(--color-holos-orange);
    border-radius: 2px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.swipe-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(2px);
    animation: swipeAnim 2s infinite ease-in-out;
}

@keyframes swipeAnim {
    0% {
        left: -20px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* --- Notificaciones --- */
.notification-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(238, 237, 231, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
}

.notification-container:active {
    transform: scale(0.95);
}

.bell-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.unread-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--color-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 77, 0, 0.8);
    pointer-events: none;
}

.notifications-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(238, 237, 231, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notifications-header h4 {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-decorative);
    font-size: 1.2rem;
    font-weight: 300;
}

.btn-clear-notifications {
    background: transparent;
    border: none;
    color: var(--color-orange);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 5px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 340px;
    scrollbar-width: thin;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(255, 77, 0, 0.05);
}

.notif-title {
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.notif-body {
    color: var(--color-bone);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.notif-time {
    color: rgba(238, 237, 231, 0.4);
    font-size: 0.75rem;
    align-self: flex-end;
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: rgba(238, 237, 231, 0.6);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

/* ==================================
   PUBLIC VIEW MODE (Read Only)
   ================================== */
body.public-view-mode .figurita-slot.pending {
    pointer-events: none;
    opacity: 0.4;
}

body.public-view-mode #btn-edit-ig,
body.public-view-mode #btn-change-name,
body.public-view-mode #btn-share-album,
body.public-view-mode #btn-logout,
body.public-view-mode #btn-help-tutorial,
body.public-view-mode #btn-notifications,
body.public-view-mode .avatar-circle,
body.public-view-mode .cm-change,
body.public-view-mode .cm-delete,
body.public-view-mode .cm-privacy,
body.public-view-mode #btn-unlock-solteros,
body.public-view-mode #my-soltero-slot.pending {
    display: none !important;
}

body.public-view-mode .figurita-slot.collected .btn-dots {
    display: none !important;
}

/* Banner de Vista Pública */
#public-view-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-holos-orange);
    color: white;
    text-align: center;
    padding: 8px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#public-view-banner a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}