/* ===== Base ===== */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; padding: 0; line-height: 1.5; color: #222; }
:root { --app-vh: 1vh; }

/* ===== Layout ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background:
        linear-gradient(110deg, rgba(22,16,28,0.96), rgba(48,27,45,0.96)),
        #1a1321;
    color: #fff;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}
.nav {
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.72rem 0.9rem;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    margin-right: 0.15rem;
}
.nav-brand-logo {
    width: auto;
    height: 2.35rem;
    max-height: 2.6rem;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.lang-switcher {
    position: relative;
    flex-shrink: 0;
    z-index: 1365;
}
.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.24rem 0.5rem 0.24rem 0.55rem;
    line-height: 1;
}
.lang-switcher__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}
.lang-switcher__btn:focus-visible {
    outline: 2px solid rgba(255, 180, 210, 0.85);
    outline-offset: 2px;
}
.lang-switcher__chev {
    font-size: 0.62rem;
    opacity: 0.9;
    line-height: 1;
}
.lang-switcher__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 5.5rem;
    padding: 0.35rem;
    margin: 0;
    background: linear-gradient(180deg, #2d1830 0%, #231629 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    z-index: 1365;
}
.lang-switcher__panel[hidden] {
    display: none !important;
}
.lang-switcher__item {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
}
.lang-switcher__item:hover {
    background: rgba(255, 255, 255, 0.12);
}
.lang-switcher__item.is-active {
    background: linear-gradient(145deg, rgba(255, 90, 165, 0.55), rgba(233, 30, 99, 0.55));
}
.nav-main-links,
.nav-user-area,
.nav-guest-links {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
}
.nav-main-links {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.nav-primary-links {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.nav-main-links .nav-user-area { margin-left: auto; }
.nav-brand,
.nav-user-area,
.nav-guest-links {
    flex-shrink: 0;
}
.nav-ico { opacity: 0.95; font-size: 1.02rem; }
.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.42rem 0.4rem;
    margin-left: auto;
    box-sizing: border-box;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}
.nav-link-pill,
.nav-link-utility {
    color: #fff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.nav-link-pill {
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.32rem;
}
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    border-radius: 999px;
    background: #fff;
    color: #c2185b;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}
.nav-link-pill.is-active .nav-badge {
    background: rgba(255, 255, 255, 0.96);
    color: #ad1457;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}
.nav-link-pill:hover,
.nav-link-utility:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-1px);
}
.nav-link-pill.is-active,
.nav-link-utility.is-active {
    background: linear-gradient(145deg, #ff5aa5, #e91e63);
    color: #fff;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.35);
}
.nav-link-utility { background: rgba(255, 255, 255, 0.11); }
.nav-link-register {
    background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.14));
}
.nav-link-logout {
    background: rgba(255, 255, 255, 0.14);
}
.nav-credits {
    font-weight: 700;
    color: #ffe082;
    white-space: nowrap;
    font-size: 0.92rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 224, 130, 0.35);
}
.nav-credits-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.nav-credits-link:hover {
    color: #ffecb3;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}
.nav-credits-link.is-active {
    background: linear-gradient(145deg, rgba(255, 174, 0, 0.24), rgba(255, 193, 7, 0.2));
    border-color: rgba(255, 224, 130, 0.5);
}

/* Nav: en pantallas grandes, Visitas / Favoritos / Regalos van bajo Notificaciones (desplegable) */
.nav-more-mobile {
    display: contents;
}
.nav-more-desktop {
    display: none;
    position: relative;
}
@media (min-width: 1181px) {
    .nav-more-mobile {
        display: none !important;
    }
    .nav-more-desktop {
        display: block;
        position: relative;
        z-index: 20;
    }
    /* El menú absoluto quedaba recortado por overflow-y: hidden del nav */
    .header .nav-main-links,
    .header .nav-primary-links {
        overflow-x: visible;
        overflow-y: visible;
    }
}
.nav-dropdown-split {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    border-radius: 999px;
    overflow: visible;
}
.nav-dropdown-split-main.nav-link-pill {
    border-radius: 999px 0 0 999px;
    margin: 0;
}
.nav-dropdown-split-toggle {
    margin: 0;
    padding: 0 0.55rem 0 0.5rem;
    min-width: 2.35rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    border-radius: 0 999px 999px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-split-toggle:hover {
    background: rgba(255, 255, 255, 0.17);
}
.nav-dropdown-split-toggle:focus-visible {
    outline: 2px solid rgba(255, 180, 210, 0.85);
    outline-offset: 2px;
    z-index: 2;
}
.nav-dropdown-split-main.is-active + .nav-dropdown-split-toggle {
    background: linear-gradient(145deg, rgba(255, 90, 165, 0.65), rgba(233, 30, 99, 0.65));
    border-left-color: rgba(255, 255, 255, 0.22);
}
.nav-dropdown-split-submenu-active .nav-dropdown-split-toggle {
    background: rgba(255, 255, 255, 0.2);
}
.nav-dropdown-split-chevron {
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.95;
}
.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    min-width: 232px;
    padding: 0.4rem;
    margin: 0;
    list-style: none;
    background: linear-gradient(180deg, #2d1830 0%, #231629 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
    z-index: 1350;
}
.nav-dropdown-panel[hidden] {
    display: none !important;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    padding: 0.58rem 0.72rem;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
}
.nav-dropdown-item.is-active {
    background: linear-gradient(145deg, rgba(255, 90, 165, 0.55), rgba(233, 30, 99, 0.55));
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.25);
}
.nav-dropdown-item .nav-badge {
    margin-left: auto;
}

@media (max-width: 1180px) {
    html {
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }
    body {
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }
    /* backdrop-filter en el header crea bloque contenedor: fixed del drawer quedaría anclado al header */
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.66rem 0.76rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    body.header-nav-scroll-collapsed .header {
        transform: translate3d(0, -100%, 0);
    }
    .nav { gap: 0.45rem; }
    .nav-brand { width: auto; margin-bottom: 0; }
    .nav-toggle {
        display: inline-flex;
        width: 3.15rem;
        height: 3.15rem;
        min-width: 3.15rem;
        min-height: 3.15rem;
        padding: 0.5rem 0.45rem;
        gap: 0.26rem;
        border-radius: 14px;
    }
    .nav-toggle span { height: 3px; }
    /* ID sube especificidad y z-index por encima del <main> (el panel va antes en el DOM tras relocate) */
    #nav-mobile-panel.nav-main-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(90vw, 370px);
        max-width: min(90vw, 370px);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        background: linear-gradient(180deg, #231629, #2d1830);
        border-left: 1px solid rgba(255,255,255,0.14);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 13500;
        padding: 4.7rem 1rem 1.15rem;
        overflow-x: hidden;
        overflow-y: auto;
        display: grid;
        align-content: start;
        gap: 0.5rem;
        flex: none;
        transform: translate3d(100%, 0, 0);
        transition: transform .2s ease-out;
        pointer-events: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-primary-links {
        display: grid;
        gap: 0.5rem;
        justify-content: stretch;
        overflow: visible;
    }
    /* Panel suele estar en document.body en móvil (ver script relocate); clase en body evita anclaje erróneo */
    body.nav-mobile-open #nav-mobile-panel.nav-main-links {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }
    body.nav-mobile-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(8, 5, 12, 0.45);
        z-index: 13450;
        pointer-events: auto;
    }
    .nav-main-links .nav-link-pill,
    .nav-main-links .nav-link-utility {
        width: 100%;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        justify-content: flex-start;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 0.66rem 0.86rem;
        border-radius: 10px;
        font-size: 0.97rem;
    }
    .nav-main-links .nav-link-pill .nav-badge {
        margin-left: auto;
    }
    .nav-main-links .nav-link-pill.is-active {
        border-color: rgba(255,255,255,0.28);
    }
    .nav-user-area, .nav-guest-links { margin-left: 0; gap: 0.35rem; }
    .nav-main-links .nav-user-area {
        width: 100%;
        margin: 0.15rem 0 0;
        padding-top: 0.55rem;
        border-top: 1px solid rgba(255,255,255,0.16);
        display: grid;
        gap: 0.45rem;
    }
    .nav-main-links .nav-user-area .nav-credits {
        justify-self: start;
        background: rgba(0, 0, 0, 0.28);
    }
    .nav-main-links .nav-user-area .nav-link-utility {
        width: 100%;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        justify-content: flex-start;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 0.66rem 0.86rem;
        border-radius: 10px;
        font-size: 0.97rem;
    }
    .nav-link-pill, .nav-link-utility, .nav-credits {
        font-size: 0.88rem;
        padding: 0.4rem 0.68rem;
    }
    .nav-link-utility .nav-ico, .nav-main-links .nav-ico { width: 1.22rem; text-align: center; font-size: 1.1rem; }
}

/* Hamburguesa: más visible en anchos “grandes” con menú móvil y en móviles pequeños */
@media (max-width: 1180px) and (min-width: 901px) {
    .nav-toggle {
        width: 3.45rem;
        height: 3.45rem;
        min-width: 3.45rem;
        min-height: 3.45rem;
        padding: 0.55rem 0.48rem;
        gap: 0.3rem;
        border-radius: 14px;
    }
    .nav-toggle span { height: 3px; }
}
@media (max-width: 900px) {
    .nav-toggle {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        min-height: 3.5rem;
        padding: 0.55rem 0.48rem;
        gap: 0.28rem;
        border-radius: 14px;
    }
    .nav-toggle span { height: 3px; }
}

/* Botón Me gusta (crea el camino al match) */
.btn-like { background: #e91e63; color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-like:hover { background: #c2185b; }
.btn-like[disabled] { background: #f3f3f3; color: #777; border: 1px solid #ddd; cursor: not-allowed; }
.btn-like[disabled]:hover { background: #f3f3f3; color: #777; }
.btn-secondary { display: inline-block; margin-top: 0.5rem; margin-right: 0.5rem; padding: 0.4rem 0.8rem; background: #555; color: #fff; text-decoration: none; border-radius: 4px; font-size: 0.9rem; }
.btn-secondary:hover { background: #333; color: #fff; }
.profile-actions-help { margin: 0.5rem 0 0.25rem; font-size: 0.9rem; color: #555; }
.matches-empty { color: #666; }
.main { max-width: 900px; margin: 0 auto; padding: 1rem; min-height: 60vh; }
.main:has(.chat-page.chat-inbox) { max-width: 1200px; }
.main:has(.discover-catalog) { max-width: 1280px; }

/* Móvil / tablet menú hamburguesa: header fijo + espacio bajo barra (orden tras .main para que no lo pise el padding corto) */
@media (max-width: 1180px) {
    .main {
        padding-top: calc(1rem + var(--header-nav-height, 3.65rem));
        transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.header-nav-scroll-collapsed .main {
        padding-top: 1rem;
    }
    .main:has(.login-landing) {
        padding-top: calc(1rem + var(--header-nav-height, 3.65rem));
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1rem;
        transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.header-nav-scroll-collapsed .main:has(.login-landing) {
        padding-top: 1rem;
    }
}

@media (max-width: 1180px) and (prefers-reduced-motion: reduce) {
    .header,
    .main,
    .main:has(.login-landing) {
        transition: none;
    }
}
.footer { text-align: center; padding: 1rem; color: #666; font-size: 0.9rem; border-top: 1px solid #eee; }
.footer-legal-links {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.footer-legal-links a {
    color: #666;
    text-decoration: none;
}
.footer-legal-links a:hover { text-decoration: underline; }

/* ===== Alertas ===== */
.alert { padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 4px; }
.alert-error { background: #fee; color: #c00; border: 1px solid #fcc; }
.alert-success { background: #efe; color: #060; border: 1px solid #cfc; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.alert-profile-incomplete {
    background: linear-gradient(135deg, #fff8fb 0%, #fce4ec 100%);
    border: 1px solid #f8bbd9;
    color: #4a3540;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.08);
}
.alert-profile-incomplete-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    font-size: 0.98rem;
    color: #ad1457;
}
.alert-profile-incomplete-text { margin: 0 0 0.55rem; font-size: 0.92rem; line-height: 1.45; }
.alert-profile-incomplete-actions { margin: 0; }
.alert-profile-incomplete-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}
.alert-profile-incomplete-btn:hover { filter: brightness(1.05); color: #fff; }
.alert-profile-floating {
    position: fixed;
    right: 1rem;
    top: calc(88px + env(safe-area-inset-top, 0px));
    width: min(360px, calc(100vw - 2rem));
    max-height: calc(100vh - 120px);
    overflow: auto;
    z-index: 2600;
    margin-bottom: 0;
}
.alert-profile-floating-close {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    border: none;
    background: transparent;
    color: #8a5f71;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 900px) {
    .alert-profile-floating {
        right: 0.75rem;
        left: 0.75rem;
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-height: min(44vh, 360px);
    }
}

/* Bienvenida: overlay + tarjeta centrada (no página completa) */
.welcome-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(255, 105, 180, 0.18), transparent 55%),
        radial-gradient(850px 450px at 85% 100%, rgba(233, 30, 99, 0.2), transparent 58%),
        rgba(10, 6, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: welcomeFadeIn .22s ease-out;
}
.welcome-modal {
    width: min(560px, calc(100vw - 1.5rem));
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    margin: auto;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(233, 30, 99, 0.15);
    background:
        linear-gradient(145deg, rgba(38, 22, 42, 0.98), rgba(28, 14, 32, 0.98));
    color: #fff;
    animation: welcomeModalPop .32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.welcome-modal-inner {
    padding: clamp(1.15rem, 3.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}
.welcome-pill {
    margin: 0;
    align-self: flex-start;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}
.welcome-modal h2 {
    margin: 0.15rem 0 0.25rem;
    font-size: clamp(1.6rem, 4.2vw, 2.8rem);
    line-height: 1.1;
}
.welcome-lead {
    margin: 0;
    max-width: 45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2.2vw, 1.16rem);
    line-height: 1.45;
}
.welcome-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-top: 0.35rem;
}
@media (min-width: 480px) {
    .welcome-benefits {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
.welcome-benefits span {
    display: block;
    font-size: 0.92rem;
    padding: 0.55rem 0.68rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.welcome-boost {
    margin: 0.5rem 0 0;
    color: #ffd7ea;
    font-weight: 600;
}
.welcome-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.welcome-btn-primary,
.welcome-btn-secondary {
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.65rem 1rem;
}
.welcome-btn-primary {
    background: linear-gradient(145deg, #ff4f9a, #e91e63);
    color: #fff;
}
.welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.welcome-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.welcome-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.login-rate-limit-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 8, 18, 0.6);
    backdrop-filter: blur(2px);
}
.login-rate-limit-overlay-hidden {
    display: none !important;
}
.login-rate-limit-modal {
    width: min(480px, 100%);
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f0d7e3;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
    padding: 1.15rem 1.1rem 1rem;
    text-align: center;
}
.login-rate-limit-icon {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(145deg, #fce4ec, #fff5f8);
    border: 1px solid #f8bbd9;
}
.login-rate-limit-title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    color: #ad1457;
    font-weight: 800;
}
.login-rate-limit-message {
    margin: 0 0 0.85rem;
    color: #4a3d46;
    line-height: 1.5;
    font-size: 0.93rem;
}
.login-rate-limit-countdown {
    margin: -0.25rem 0 0.8rem;
    color: #6d4c5b;
    font-size: 0.86rem;
}
.login-rate-limit-countdown strong {
    color: #ad1457;
    font-weight: 800;
}
.login-rate-limit-btn {
    border: none;
    border-radius: 999px;
    padding: 0.62rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.28);
}
.login-rate-limit-btn:hover {
    filter: brightness(1.05);
}
#login-form.is-disabled {
    opacity: 0.78;
    pointer-events: none;
}
.welcome-modal-closing { animation: welcomeFadeOut .18s ease-in forwards; }
@keyframes welcomeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes welcomeModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .welcome-modal-overlay,
    .welcome-modal {
        animation: none;
    }
}

@media (max-width: 900px) {
    .welcome-modal {
        width: min(520px, calc(100vw - 1.25rem));
        max-height: min(90vh, 780px);
        max-height: min(90dvh, 780px);
        border-radius: 18px;
    }
}
@media (max-width: 640px) {
    .welcome-modal-overlay {
        padding:
            max(0.5rem, env(safe-area-inset-top, 0px))
            max(0.5rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px))
            max(0.5rem, env(safe-area-inset-left, 0px));
    }
    .welcome-modal {
        width: min(100%, calc(100vw - 1rem));
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
        max-height: min(92vh, 820px);
        max-height: min(92dvh, 820px);
    }
    .welcome-modal-inner {
        padding: 1rem 1rem 1.35rem;
        gap: 0.75rem;
    }
    .welcome-modal h2 {
        font-size: 1.38rem;
        padding-right: 2rem;
    }
    .welcome-lead {
        font-size: 0.95rem;
        max-width: none;
    }
    .welcome-actions {
        flex-direction: column;
    }
    .welcome-btn-primary,
    .welcome-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .welcome-age-form {
        max-width: none;
    }
    .welcome-wizard-actions {
        flex-direction: column;
    }
    .welcome-wizard-actions .welcome-btn-primary,
    .welcome-wizard-actions .welcome-btn-secondary {
        width: 100%;
    }
}

.welcome-age-gate {
    margin-top: 0.7rem;
    padding: 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.welcome-age-gate h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}
.welcome-age-gate p {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.welcome-inline-error {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(254, 202, 202, 0.45);
    color: #fee2e2;
    font-size: 0.9rem;
    line-height: 1.35;
}
.welcome-age-form {
    display: grid;
    gap: 0.45rem;
    max-width: 320px;
}
.welcome-wizard-form {
    max-width: 420px;
}
.welcome-wizard-progress {
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffd7ea;
}
.welcome-step {
    display: none;
    gap: 0.45rem;
}
.welcome-wizard-actions {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.welcome-wizard-actions .welcome-btn-primary,
.welcome-wizard-actions .welcome-btn-secondary {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.welcome-age-form label {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}
.welcome-age-form input[type="date"] {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
}
.welcome-age-form select {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
}
.welcome-interest-fieldset {
    margin: 0.1rem 0 0.2rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: grid;
    gap: 0.45rem;
}
.welcome-interest-fieldset legend {
    padding: 0 0.3rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.welcome-interest-fieldset label {
    margin: 0;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 500;
}
.welcome-age-note {
    margin: 0.55rem 0 0;
    font-size: 0.84rem;
    color: #ffd7ea;
}

.verified-badge { display: inline-block; margin-left: 0.35rem; padding: 0.15rem 0.5rem; font-size: 0.85rem; font-weight: 600; color: #0a6; background: #e8f5e9; border-radius: 4px; border: 1px solid #b7e4c7; }
.email-verified-badge { display: inline-block; margin-left: 0.35rem; padding: 0.15rem 0.5rem; font-size: 0.82rem; font-weight: 600; color: #3949ab; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 4px; }

/* ===== Formularios ===== */
.form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="date"],
.form input[type="file"],
.form textarea,
.form select { width: 100%; max-width: 100%; padding: 0.5rem; margin-bottom: 0.75rem; border: 1px solid #ccc; border-radius: 4px; }
.form button { padding: 0.5rem 1rem; cursor: pointer; background: #333; color: #fff; border: none; border-radius: 4px; }
.form button:hover { background: #555; }
.inline { display: inline; }
.inline button { margin-left: 0.25rem; }

/* ===== Auth ===== */
.auth-box { max-width: 400px; margin: 2rem auto; padding: 1.5rem; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
.auth-box h1 { margin-top: 0; }
.auth-hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Login Landing ===== */
.main:has(.login-landing) {
    max-width: 100%;
    padding: 1rem 1.5rem;
    overflow-x: hidden;
}
/* Registro: mismo layout que login; formulario un poco más ancho (más campos) */
.register-hero .login-hero-form,
.register-hero-form {
    max-width: 360px;
    width: min(360px, calc(100% - 2 * clamp(0.75rem, 3vw, 2.6rem)));
}
.login-landing {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 1rem;
    min-width: 0;
    background:
        radial-gradient(1200px 300px at 20% -10%, rgba(233,30,99,0.08), transparent 60%),
        radial-gradient(900px 240px at 85% 0%, rgba(173,20,87,0.08), transparent 60%);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background-color: #111;
    background-image: url('https://images.unsplash.com/photo-1484863137850-59afcfe05386?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 36px rgba(0,0,0,0.12);
    border: none;
    isolation: isolate;
}
.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, rgba(14,12,22,0.75), rgba(20,14,30,0.25));
    pointer-events: none;
}
.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    mix-blend-mode: screen;
    pointer-events: none;
}
/* Columna de mensaje + topbar (sin capa de imagen duplicada; el fondo es .login-hero) */
.login-hero-marketing {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: clamp(260px, 52vw, 360px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
/* Marca en tarjeta: pastilla con logo + eslogan centrado (referencia mockup) */
.login-hero-brand--card {
    position: relative;
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}
.login-hero-brand--card .login-hero-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}
.login-hero-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 1.35rem 0.42rem 1.1rem;
    background: #fff;
    border-radius: 999px;
    box-shadow:
        0 6px 22px rgba(15, 12, 28, 0.1),
        0 1px 4px rgba(15, 12, 28, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.login-hero-brand--card .login-hero-brand-logo {
    display: block;
    width: auto;
    max-width: min(220px, 72vw);
    height: auto;
    max-height: 46px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}
.login-hero-brand--card .login-hero-brand-tagline {
    margin: 0;
    width: 100%;
    max-width: 24rem;
    font-size: clamp(0.8rem, 2.1vw, 0.93rem);
    font-weight: 600;
    line-height: 1.45;
    color: #4a4a55;
    text-align: center;
}

.login-hero-topbar {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.login-top-pill {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
}
.login-top-btn {
    background: rgba(15,15,15,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
}
.login-top-btn:hover { background: rgba(15,15,15,0.7); }

.login-hero-copy {
    position: absolute;
    z-index: 2;
    right: 2.6rem;
    bottom: 2rem;
    color: #fff;
    max-width: 430px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(10, 8, 18, 0.33);
    backdrop-filter: blur(2px);
}
.login-hero-badge { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 999px; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; margin-bottom: 0.8rem; }
.login-hero-copy h1 { margin: 0 0 0.45rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }
.login-hero-copy p { margin: 0; color: rgba(255,255,255,0.9); line-height: 1.35; font-size: 0.92rem; }
.login-hero-stats { margin-top: 1rem; display: flex; gap: 0.65rem; flex-wrap: wrap; }
.login-hero-stats span { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.36); color: #fff; border-radius: 999px; padding: 0.28rem 0.62rem; font-size: 0.8rem; }
.login-hero-stats strong { font-weight: 900; }

.login-hero-form {
    padding: 1.2rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    max-width: 360px;
    width: min(360px, calc(100% - 2 * clamp(0.75rem, 3vw, 2.6rem)));
    min-width: 0;
    border-radius: 12px;
    border: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
    align-self: center;
    flex-shrink: 0;
    overflow: visible;
}
.login-hero-form::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,30,99,0.14) 0%, rgba(233,30,99,0) 70%);
    pointer-events: none;
}
.login-hero-form h2 { margin: 0 0 0.3rem; font-size: 1.45rem; }
.login-hero-form-subtitle { margin: 0 0 0.75rem; color: #666; font-size: 0.88rem; }
.login-inline-alert {
    margin: 0 0 0.7rem;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
    border: 1px solid #f8bbd9;
    background: linear-gradient(180deg, #fff7fb, #fff);
    color: #8e1f54;
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 600;
}
.login-form-lock-note {
    margin: 0 0 0.7rem;
    padding: 0.55rem 0.68rem;
    border-radius: 9px;
    background: #fff6f8;
    border: 1px solid #f8bbd9;
    color: #8e1f54;
    font-size: 0.82rem;
    line-height: 1.4;
}
.login-form-lock-note strong {
    font-weight: 800;
}
.login-form-lock-note.is-hidden {
    display: none;
}
.login-hero-form .form { gap: 0.75rem; }
.login-hero-form .form label { font-weight: 600; color: #333; }
.login-hero-form .form { width: 100%; min-width: 0; }
.login-hero-form .form input { width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 0.25rem; padding: 0.62rem 0.68rem; border: 1px solid #ddd; border-radius: 8px; font-size: 0.92rem; }
.login-password-field {
    margin-top: 0.25rem;
    position: relative;
    display: block;
}
.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: #ad1457;
    font-size: 1.08rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: none;
    filter: none;
}
.form .login-password-toggle {
    background: transparent !important;
    color: #ad1457 !important;
    border: none !important;
    padding: 0 !important;
}
.login-password-toggle:hover { background: transparent; }
.form .login-password-toggle:hover {
    background: transparent !important;
}
.login-password-field input {
    margin-top: 0 !important;
    padding-right: 2.35rem !important;
}
.login-hero-form .form input:focus { border-color: #e91e63; outline: none; box-shadow: 0 0 0 2px rgba(233,30,99,0.15); }
.login-hero-form .form button[type="submit"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.72rem 0.95rem;
    font-weight: 800;
    cursor: pointer;
}
.login-hero-form .form button[type="submit"]:hover { filter: brightness(1.05); }
.login-forgot-row {
    margin: -0.15rem 0 0.75rem;
    text-align: right;
}
.login-forgot-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ad1457;
    text-decoration: none;
}
.login-forgot-link:hover {
    text-decoration: underline;
}
.login-hero-form-alt { margin: 0.75rem 0 0; color: #666; font-size: 0.9rem; }
.login-hero-form-alt a { color: #ad1457; font-weight: 700; text-decoration: none; }
.login-hero-form-alt a:hover { text-decoration: underline; }
.register-age-consent {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #555;
    background: linear-gradient(135deg, #fff8f8 0%, #fce4ec 100%);
    border: 1px solid #f8bbd9;
    border-radius: 10px;
}
.register-age-consent strong { color: #ad1457; }

.login-community, .login-steps, .login-testimonials, .login-cta {
    background: #fff;
    border: none;
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 10px 30px rgba(19, 14, 28, 0.08), 0 2px 8px rgba(19, 14, 28, 0.04);
}
.login-community:hover, .login-steps:hover, .login-testimonials:hover, .login-cta:hover {
    box-shadow: 0 14px 34px rgba(19, 14, 28, 0.12), 0 4px 12px rgba(19, 14, 28, 0.06);
    transform: translateY(-2px);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.login-community h3, .login-steps h3, .login-testimonials h3, .login-cta h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.login-community p, .login-cta p { margin: 0; color: #666; }

.login-community-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
}
.avatar-item {
    width: 127px;
    height: 234px;
    border-radius: 47px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.avatar-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-item { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.avatar-item:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 18px rgba(173,20,87,0.24); }

.login-steps {
    padding: 1.45rem 1.35rem;
    background: linear-gradient(165deg, #fff, #fff6fb);
}
.login-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: center;
    gap: 1.1rem;
    margin-top: 0.9rem;
}
.login-step-card {
    border: none;
    background: linear-gradient(170deg, rgba(255,255,255,0.98), rgba(255,245,250,0.95));
    border-radius: 18px;
    min-height: 290px;
    padding: 1.1rem 0.95rem 1.05rem;
    box-shadow: 0 12px 28px rgba(233,30,99,0.10), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.login-step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(233,30,99,0.16), 0 8px 18px rgba(0,0,0,0.06); }
.login-step-icon {
    display: inline-flex;
    width: 82px;
    height: 82px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-size: 2.35rem;
    background: linear-gradient(145deg, #ffe7f2, #fff);
    box-shadow: inset 0 0 0 1px rgba(233,30,99,0.14);
    margin: 0 0 0.7rem;
}
.step-chip {
    display: inline-block;
    margin: 0 0 0.55rem;
    transform: none;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ad1457;
    background: #ffe5f0;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.login-step-card h4 { margin: 0.1rem 0 0.55rem; font-size: 1.08rem; }
.login-step-card p { margin: 0; color: #555; font-size: 0.94rem; line-height: 1.42; max-width: 24ch; }

.login-testimonials {
    background: linear-gradient(165deg, #fff, #fff7fb);
}
.login-testimonials-disclaimer {
    margin: -0.15rem 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #888;
    text-align: center;
}
.login-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
    gap: 1rem;
    margin-top: 0.85rem;
}
.testimonial-card {
    margin: 0;
    border: none;
    border-radius: 16px;
    padding: 1rem 0.95rem;
    background: linear-gradient(180deg, #fff, #fff9fc);
    box-shadow: 0 12px 28px rgba(233,30,99,0.10), 0 4px 12px rgba(0,0,0,0.05);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; position: relative; }
.testimonial-card::before { content: "“"; position: absolute; top: 0.1rem; right: 0.55rem; color: rgba(233,30,99,0.2); font-size: 2rem; line-height: 1; font-weight: 900; }
.testimonial-card:hover { transform: translateY(-4px); border-color: #f0d0de; box-shadow: 0 16px 30px rgba(233,30,99,0.16), 0 8px 18px rgba(0,0,0,0.08); }
.testimonial-rating { letter-spacing: 0.14em; color: #f9a825; font-size: 0.82rem; margin-bottom: 0.5rem; }
.testimonial-card p { margin: 0 0 0.7rem; color: #3f3f3f; line-height: 1.5; font-size: 0.95rem; }
.testimonial-card footer { color: #ad1457; font-weight: 700; font-size: 0.86rem; }

.login-cta { text-align: center; background: linear-gradient(160deg, #fff, #fff5fa); }
.btn-login-cta { display: inline-block; margin-top: 0.75rem; padding: 0.72rem 1.2rem; border-radius: 999px; text-decoration: none; background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(233,30,99,0.25); }
.btn-login-cta:hover { filter: brightness(1.05); }

/* Escritorio: el hero crece con la altura del formulario (login y registro) */
@media (min-width: 981px) {
    .login-hero {
        flex-direction: row-reverse;
        align-items: stretch;
        min-height: 520px;
        overflow: hidden;
        box-sizing: border-box;
        /* Aire respecto al viewport en pantallas grandes (evita tarjetas pegadas a los bordes) */
        padding-inline: clamp(1.35rem, 5vw, 4rem);
        padding-block: clamp(0.85rem, 2vw, 1.35rem);
    }
    .login-hero-marketing {
        flex: 1 1 58%;
        min-width: 0;
        min-height: 520px;
        align-self: stretch;
        width: auto;
        height: auto;
        display: block;
        border-radius: 0;
        overflow: visible;
    }
    .login-hero-form {
        margin: 1.35rem 0;
        flex: 0 0 auto;
    }
    .login-hero-copy {
        right: clamp(1.15rem, 3.5vw, 2.75rem);
        bottom: clamp(1.15rem, 2.8vw, 2.25rem);
    }
    .login-hero-topbar {
        top: clamp(0.85rem, 2vw, 1.35rem);
        right: clamp(1rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
    .login-hero-form {
        margin-left: 0;
        margin-right: 0;
        width: min(350px, 100%);
        max-width: 350px;
        padding: 1.05rem 0.9rem;
    }
    .register-hero .login-hero-form,
    .register-hero-form {
        width: min(335px, calc(100% - 2.5rem));
        max-width: 335px;
    }
    .login-hero-copy {
        right: clamp(1rem, 3vw, 1.85rem);
        bottom: clamp(1rem, 2.5vw, 1.85rem);
        max-width: min(360px, calc(100% - 350px - 2.75rem));
        padding: 0.85rem 0.9rem;
    }
    .login-hero-copy h1 { font-size: clamp(1.15rem, 2.1vw, 1.5rem); }
    .login-hero-copy p { font-size: 0.86rem; }
    .login-hero-stats span { font-size: 0.74rem; }
}

@media (max-width: 980px) {
    .main:has(.login-landing) {
        padding-top: calc(0.85rem + var(--header-nav-height, 3.65rem));
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.header-nav-scroll-collapsed .main:has(.login-landing) {
        padding-top: 0.85rem;
    }
    .login-hero {
        min-height: 0;
        min-width: 0;
        flex-direction: column;
        border-radius: 12px;
        overflow-x: hidden;
        overflow-y: visible;
        background-image: url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1200&q=80');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 20%;
    }
    .login-hero-marketing {
        min-height: clamp(260px, 52vw, 360px);
        width: 100%;
        flex: 0 0 auto;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .login-hero-topbar {
        right: 0.75rem;
        top: 0.65rem;
        left: 0.75rem;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.4rem;
        z-index: 3;
    }
    .login-top-pill, .login-top-btn { font-size: 0.72rem; padding: 0.32rem 0.5rem; }
    .login-hero-copy {
        position: relative;
        right: auto;
        bottom: 1.35rem;
        max-width: none;
        margin: 0 0.85rem 0.2rem;
        padding: 0.85rem 0.95rem;
        backdrop-filter: blur(4px);
    }
    .login-hero-copy h1 { font-size: clamp(1.2rem, 4.5vw, 1.55rem); }
    .login-hero-copy p { font-size: 0.88rem; }
    .login-hero-stats { margin-top: 0.65rem; gap: 0.45rem; }
    .login-hero-stats span { font-size: 0.72rem; padding: 0.22rem 0.5rem; }
    .login-hero-form {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: calc(100% - 1.7rem);
        max-width: 420px;
        min-width: 0;
        margin: -1.75rem auto 1rem;
        padding: 1.15rem 1rem;
        box-sizing: border-box;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.18);
        align-self: center;
    }
    .register-hero .login-hero-form,
    .register-hero-form {
        max-width: 440px;
        width: calc(100% - 1.7rem);
    }
    .login-hero-form h2 { font-size: 1.28rem; }
    .login-hero-form-subtitle { font-size: 0.85rem; }
    .login-steps-grid, .login-testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .main:has(.login-landing) {
        padding-top: calc(0.65rem + var(--header-nav-height, 3.65rem));
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 0.85rem;
        transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.header-nav-scroll-collapsed .main:has(.login-landing) {
        padding-top: 0.65rem;
    }
    .login-hero {
        background-image: url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1000&q=80');
        background-position: center 24%;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .login-hero-marketing {
        min-height: clamp(230px, 62vw, 300px);
    }
    .login-hero-copy { margin: 0 0.65rem 0.7rem; padding: 0.75rem 0.85rem; }
    .login-hero-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; margin-bottom: 0.55rem; }
    .login-hero-form {
        width: calc(100% - 1.3rem);
        max-width: none;
        margin: -1.35rem auto 0.85rem;
        padding: 1rem 0.9rem;
    }
    .login-hero-form .form input { font-size: 16px; }
    .login-community, .login-steps, .login-testimonials, .login-cta {
        padding: 1rem 0.85rem;
        border-radius: 14px;
    }
    .avatar-item {
        width: 96px;
        height: 178px;
        border-radius: 36px;
    }
}

/* ===== Descubrir ===== */
.discover { }
.cards-swipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.card { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.card-link-wrapper { position: relative; cursor: pointer; }
.card-link-wrapper .card-link { position: absolute; inset: 0; z-index: 0; }
.card-link-wrapper .card-actions { position: relative; z-index: 1; margin: 0 1rem 0.75rem; }
.card-link-wrapper .card-actions a, .card-link-wrapper .card-actions form { display: inline-block; margin-right: 0.25rem; margin-bottom: 0.25rem; }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card .placeholder { width: 100%; height: 200px; background: #eee; display: flex; align-items: center; justify-content: center; color: #666; }
.card h3 { margin: 0.5rem 1rem; font-size: 1rem; }
.card p { margin: 0 1rem 0.5rem; font-size: 0.9rem; color: #555; }
.card a, .card form { margin: 0 1rem 0.75rem; display: inline-block; }
.card .btn-gift-card { padding: 0.4rem 0.8rem; background: #ff9800; color: #fff; text-decoration: none; border-radius: 4px; font-size: 0.9rem; }
.card .btn-gift-card:hover { background: #f57c00; color: #fff; }

/* ===== Descubrir modo juego (una carta + Me interesa / No me interesa) ===== */
.discover-catalog .discover-empty { text-align: center; color: #666; padding: 2rem; }

.discover-catalog .catalog-page-header,
.discover-game .catalog-page-header {
    margin: 0 0 1.35rem;
    padding-bottom: 0.15rem;
}
.discover-catalog .catalog-page-eyebrow,
.discover-game .catalog-page-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ad1457;
}
.discover-catalog .catalog-page-title,
.discover-game .catalog-page-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 2.9vw, 1.72rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #141414;
}
.discover-catalog .catalog-page-lead,
.discover-game .catalog-page-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #555;
}
.discover-catalog .catalog-page-lead strong,
.discover-game .catalog-page-lead strong {
    color: #4a3540;
    font-weight: 600;
}
.discover-game .catalog-page-lead a {
    color: #ad1457;
    font-weight: 600;
    text-decoration: none;
}
.discover-game .catalog-page-lead a:hover {
    text-decoration: underline;
}

/* Tarjetas de persona (Citas, matches, likes, favoritos): mismo lenguaje visual */
.person-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 1fr));
    gap: 0.85rem 1rem;
}
.discover-catalog .person-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
@media (min-width: 1100px) {
    .discover-catalog .person-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem 1.1rem;
    }
}

.discover-catalog .catalog-pagination {
    margin: 1.25rem 0 0;
    padding: 0 0.15rem;
}
.discover-catalog .catalog-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    background: #faf8fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}
.discover-catalog .catalog-pagination-meta {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.45;
    min-width: min(100%, 12rem);
}
.discover-catalog .catalog-pagination-range {
    display: block;
}
.discover-catalog .catalog-pagination-pages {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
}
.discover-catalog .catalog-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    color: #831843;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.discover-catalog .catalog-pagination-btn:hover:not(.is-disabled) {
    background: #fdf2f8;
    border-color: #ec4899;
}
.discover-catalog .catalog-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.08);
    color: #9ca3af;
}

.discover-catalog .catalog-results-summary {
    margin: 0.75rem 0 1rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 699px) {
    .person-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
        gap: 0.75rem 0.85rem;
    }
}

.person-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(45, 20, 40, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.person-card:hover {
    box-shadow: 0 10px 28px rgba(45, 20, 40, 0.11), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.person-card-main {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 0;
}

.person-card-media {
    position: relative;
    margin: 0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: linear-gradient(160deg, #f3e8ee 0%, #e8e4ea 100%);
}
.person-card-media img {
    width: 100%;
    height: 198px;
    object-fit: cover;
    display: block;
}
.person-card-placeholder {
    width: 100%;
    height: 198px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7a88;
    font-size: 0.88rem;
    font-weight: 500;
}
.person-card-placeholder.is-initial {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #e91e63, #ad1457);
}

.person-card-status-dot {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #bdbdbd;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.person-card-status-dot.is-recent {
    background: #43a047;
}

.person-card-body {
    padding: 0.65rem 0.75rem 0.55rem;
    flex: 1;
}

.person-card-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    margin: 0 0 0.28rem;
    line-height: 1.25;
}
.person-card-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}
.person-card-verified {
    color: #2e7d32;
    font-size: 0.82rem;
    font-weight: 700;
}
.person-card-email-verified {
    color: #3949ab;
    font-size: 0.8rem;
    font-weight: 700;
}
.person-card-person {
    font-size: 0.72rem;
    opacity: 0.45;
    line-height: 1;
    margin-left: 0.05rem;
}

.person-card-meta {
    margin: 0 0 0.32rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #666;
}
.person-card-seeking {
    margin: 0 0 0.28rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #555;
}
.person-card-active {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.35;
    color: #888;
}
.person-card-tag {
    margin: 0 0 0.28rem;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 600;
    color: #ad1457;
}
.person-card-tag--match {
    color: #c2185b;
}

.person-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.25rem;
    padding: 0.45rem 0.5rem 0.5rem;
    margin-top: auto;
    background: linear-gradient(180deg, #faf7f9 0%, #f3f0f5 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.person-toolbar-form {
    margin: 0;
    display: inline-flex;
}

.person-tool-btn {
    box-sizing: border-box;
    width: 2.125rem;
    height: 2.125rem;
    min-width: 2.125rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    color: #444;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.person-tool-btn:hover {
    background: #fff;
    border-color: rgba(233, 30, 99, 0.35);
    color: #ad1457;
    transform: scale(1.06);
}

.person-tool-btn.btn-like {
    background: #fff5f8;
    border-color: rgba(233, 30, 99, 0.22);
    color: #c2185b;
    font-weight: 700;
}
.person-tool-btn.btn-like:hover:not([disabled]) {
    background: #fce4ec;
    border-color: #e91e63;
    color: #ad1457;
}
.person-tool-btn.btn-like[disabled] {
    background: #eef0f2;
    color: #6d6d6d;
    border-color: #ddd;
    cursor: not-allowed;
    transform: none;
}

.person-tool-btn.btn-fav {
    background: #fffaf0;
    border-color: rgba(255, 152, 0, 0.28);
    color: #e65100;
    font-size: 1.05rem;
}
.person-tool-btn.btn-fav:hover:not([disabled]) {
    background: #fff3e0;
    border-color: #ff9800;
}
.person-tool-btn.btn-fav[disabled] {
    background: #eef0f2;
    color: #6d6d6d;
    border-color: #ddd;
    cursor: not-allowed;
    transform: none;
}

.person-tool-chat {
    font-size: 0.95rem;
}

.person-tool-gift {
    font-size: 0.95rem;
}

.person-tool-profile {
    font-size: 0.88rem;
}

/* Descubrir catálogo: tarjeta imagen completa + overlay */
.discover-catalog .person-card--discover-cover {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.discover-catalog .person-card--discover-cover:hover {
    transform: none;
    box-shadow: none;
}
.discover-catalog .person-card-cover {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 440px;
    box-shadow:
        0 14px 42px rgba(35, 10, 28, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.discover-catalog .person-card-cover-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #ece8ec 0%, #ddd8df 100%);
}
.discover-catalog .person-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.discover-catalog .person-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 10vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #e91e63, #880e4f);
}
.discover-catalog .person-card-cover-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}
.discover-catalog .person-card-cover-hit:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}
.discover-catalog .person-card-cover-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 5, 12, 0) 0%,
        rgba(8, 5, 12, 0.12) 50%,
        rgba(10, 6, 14, 0.38) 100%
    );
}
.discover-catalog .person-card-cover-status {
    position: absolute;
    right: 12px;
    bottom: auto;
    top: 52px;
    z-index: 3;
}
.discover-catalog .person-card-cover-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 0.5rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    pointer-events: none;
}
/* El enlace .person-card-cover-hit va debajo; el texto deja pasar el clic; la barra de iconos lo captura */
.discover-catalog .person-card-cover-text-strip {
    padding: 0.15rem 0 0;
    pointer-events: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.discover-catalog .person-card-cover-text {
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 16px rgba(0, 0, 0, 0.55);
}
.discover-catalog .person-card-cover-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    margin: 0 0 0.15rem;
}
.discover-catalog .person-card-cover-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.discover-catalog .person-card-cover-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.06rem 0.28rem;
    border-radius: 6px;
}
.discover-catalog .person-card-cover-badge--ok {
    background: rgba(46, 125, 50, 0.92);
    color: #fff;
}
.discover-catalog .person-card-cover-badge--mail {
    background: rgba(57, 73, 171, 0.92);
    color: #fff;
}
.discover-catalog .person-card-cover-meta {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.25;
}
.discover-catalog .person-card-cover-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding-top: 0.1rem;
    position: relative;
    z-index: 6;
    pointer-events: auto;
}
.discover-catalog .person-card-cover-icon-btn {
    box-sizing: border-box;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(10, 8, 14, 0.35);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}
.discover-catalog .person-card-cover-icon-btn:hover {
    background: rgba(10, 8, 14, 0.52);
    transform: scale(1.05);
}
.discover-catalog .person-card-cover-icon-form {
    margin: 0;
    display: inline-flex;
}

.person-card-footer {
    padding: 0 0.65rem 0.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f3f0f5 0%, #f0ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.person-card-unfavorite {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #888;
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.person-card-unfavorite:hover {
    color: #c62828;
}

/* Discover cards: ajuste para pantallas pequeñas reales */
@media (max-width: 520px) {
    .discover-catalog .person-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
    .discover-catalog .person-card {
        border-radius: 12px;
    }
    .discover-catalog .person-card-media,
    .discover-catalog .person-card-media img,
    .discover-catalog .person-card-placeholder {
        height: 154px;
    }
    .discover-catalog .person-card-body {
        padding: 0.5rem 0.55rem 0.45rem;
    }
    .discover-catalog .person-card-name {
        font-size: 0.82rem;
        line-height: 1.15;
    }
    .discover-catalog .person-card-meta {
        font-size: 0.73rem;
        line-height: 1.22;
        margin: 0 0 0.22rem;
    }
    .discover-catalog .person-card-seeking {
        font-size: 0.71rem;
        line-height: 1.22;
        margin: 0 0 0.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .discover-catalog .person-card-active {
        font-size: 0.7rem;
        line-height: 1.2;
        margin: 0;
    }
    .discover-catalog .person-card-toolbar {
        padding: 0.34rem 0.36rem 0.4rem;
        gap: 0.26rem;
    }
    .discover-catalog .person-tool-btn {
        width: 1.85rem;
        height: 1.85rem;
        min-width: 1.85rem;
        font-size: 0.88rem;
    }
    .discover-catalog .person-card-status-dot {
        right: 7px;
        bottom: 7px;
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 390px) {
    .discover-catalog .person-card-media,
    .discover-catalog .person-card-media img,
    .discover-catalog .person-card-placeholder {
        height: 138px;
    }
    .discover-catalog .person-card-name {
        font-size: 0.78rem;
    }
    .discover-catalog .person-card-meta,
    .discover-catalog .person-card-seeking,
    .discover-catalog .person-card-active {
        font-size: 0.68rem;
    }
    .discover-catalog .person-tool-btn {
        width: 1.72rem;
        height: 1.72rem;
        min-width: 1.72rem;
        font-size: 0.82rem;
    }
}

.catalog-filters { background: #f5f5f5; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid #eee; }
.catalog-filters-toggle {
    display: none;
    width: 100%;
    border: 1px solid rgba(173, 20, 87, 0.22);
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}
.catalog-filters-toggle-left,
.catalog-filters-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.catalog-filters-toggle-title {
    line-height: 1.2;
}
.catalog-filters-toggle-caret {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}
.catalog-filters-active-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    background: #fce4ec;
    color: #ad1457;
    font-size: 0.74rem;
    font-weight: 700;
}
.catalog-filters-panel {
    margin-top: 0;
}
.filters-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.filters-row { display: flex; align-items: center; gap: 0.5rem; }
.filter-label { font-size: 0.9rem; font-weight: 600; color: #444; white-space: nowrap; }
.filter-select, .filter-input { padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 8px; font-size: 0.95rem; }
.filter-input-num { width: 4rem; text-align: center; }
.filter-age span { margin: 0 0.25rem; color: #666; }
.filters-actions { margin-left: 0.5rem; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 0.55rem 0.9rem; }
.filter-checks label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; color: #444; }
.filter-checks input[type="checkbox"] { accent-color: #e91e63; }
.btn-filters { padding: 0.5rem 1.25rem; background: #e91e63; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-filters:hover { background: #c2185b; }
.btn-filters-clear { padding: 0.5rem 1rem; color: #666; text-decoration: none; font-size: 0.9rem; }
.btn-filters-clear:hover { color: #333; text-decoration: underline; }
@media (max-width: 920px) {
    .catalog-filters {
        padding: 0.7rem;
        border-radius: 14px;
    }
    .catalog-filters-toggle {
        display: inline-flex;
    }
    .catalog-filters-panel {
        display: none;
        margin-top: 0.7rem;
        padding-top: 0.7rem;
        border-top: 1px solid #f0d7e3;
    }
    .catalog-filters.is-open .catalog-filters-panel {
        display: block;
    }
    .catalog-filters.is-open .catalog-filters-toggle-caret {
        transform: rotate(180deg);
    }
    .filters-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .filters-row {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        align-items: stretch;
    }
    .filter-age {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 0.35rem;
    }
    .filter-select,
    .filter-input,
    .filter-input-num {
        width: 100%;
        min-width: 0;
    }
    .filters-actions {
        margin-left: 0;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        flex-wrap: wrap;
    }
}

/* ===== Actividad ===== */
.activity-page { max-width: 980px; margin: 0 auto; }
.activity-lead { margin-top: 0.2rem; color: #666; }
.activity-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.1rem;
}
.activity-kpi-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.activity-kpi-label { margin: 0; font-size: 0.82rem; color: #666; }
.activity-kpi-value { margin: 0.3rem 0 0; font-size: 1.45rem; font-weight: 800; color: #1f2937; }
.activity-events h2 { margin: 0 0 0.65rem; font-size: 1.08rem; }
.activity-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.activity-event-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.65rem;
    align-items: start;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 0.68rem 0.75rem;
}
.activity-event-item.is-unread {
    border-color: rgba(233, 30, 99, 0.35);
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.08);
}
.activity-event-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f7f7f7;
    font-size: 1.1rem;
}
.activity-event-title { margin: 0; font-weight: 700; color: #111827; font-size: 0.94rem; }
.activity-event-body { margin: 0.18rem 0 0; color: #4b5563; font-size: 0.88rem; line-height: 1.35; }
.activity-event-date { margin: 0.22rem 0 0; color: #9ca3af; font-size: 0.76rem; }
.activity-empty { margin: 0; color: #666; }
@media (max-width: 860px) {
    .activity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Móvil: aprovechar el ancho (2×2 compacto); una sola columna solo en pantallas muy estrechas */
@media (max-width: 640px) {
    .activity-page {
        max-width: none;
        margin-inline: 0;
    }
    .activity-page > h1 {
        font-size: 1.35rem;
        margin-bottom: 0.15rem;
    }
    .activity-lead {
        font-size: 0.88rem;
        line-height: 1.35;
        margin-bottom: 0.35rem;
    }
    .activity-kpis {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin: 0.65rem 0 0.85rem;
    }
    .activity-kpi-card {
        padding: 0.55rem 0.6rem;
        border-radius: 10px;
        min-height: 4.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    }
    .activity-kpi-label {
        font-size: 0.68rem;
        line-height: 1.2;
        color: #6b7280;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .activity-kpi-value {
        margin: 0.2rem 0 0;
        font-size: 1.22rem;
        letter-spacing: -0.02em;
    }
    .activity-events h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 360px) {
    .activity-kpis {
        gap: 0.4rem;
    }
    .activity-kpi-card {
        padding: 0.5rem 0.5rem;
        min-height: 4.1rem;
    }
    .activity-kpi-label {
        font-size: 0.64rem;
    }
    .activity-kpi-value {
        font-size: 1.1rem;
    }
}
@media (max-width: 320px) {
    .activity-kpis {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .activity-kpi-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        min-height: 0;
        padding: 0.55rem 0.7rem;
    }
    .activity-kpi-label {
        -webkit-line-clamp: 3;
        flex: 1;
        min-width: 0;
    }
    .activity-kpi-value {
        margin: 0;
        flex-shrink: 0;
        font-size: 1.15rem;
    }
}

/* ===== Notificaciones ===== */
.notifications-page { max-width: 860px; margin: 0 auto; }
.notifications-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0.25rem 0 1.25rem; }
.notifications-title { margin: 0; font-size: 1.6rem; letter-spacing: -0.01em; }
.notifications-subtitle { margin: 0.35rem 0 0; }
.notifications-muted { color: #777; font-size: 0.95rem; }
.notifications-unread-pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: #fce4ec; color: #ad1457; border: 1px solid rgba(173, 20, 87, 0.18); font-weight: 700; }
.notifications-actions { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.15rem; }
.notifications-actions .btn-secondary[disabled] { opacity: 0.6; cursor: not-allowed; }

.notifications-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.notification-item { display: grid; grid-template-columns: 44px 1fr; gap: 0.8rem; align-items: start; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 0.85rem 0.9rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.notification-item-unread { border-color: rgba(233, 30, 99, 0.28); box-shadow: 0 4px 16px rgba(233, 30, 99, 0.10); }
.notification-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fafafa, #fff); border: 1px solid #eee; font-size: 1.25rem; }

.notification-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.notification-title { margin: 0; font-weight: 800; color: #222; font-size: 1.02rem; line-height: 1.25; }
.notification-body { margin: 0.25rem 0 0; color: #555; font-size: 0.93rem; line-height: 1.35; }
.notification-meta { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.notification-time { font-size: 0.8rem; color: #888; }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: #e91e63; box-shadow: 0 0 0 3px rgba(233,30,99,0.14); }

.notification-bottom { margin-top: 0.65rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.notification-link { color: #ad1457; text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.notification-link:hover { text-decoration: underline; }
.notification-read-form { margin: 0; }
.notification-read-btn { border: 1px solid #ddd; background: #fafafa; color: #444; padding: 0.35rem 0.6rem; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.notification-read-btn:hover { background: #f3f3f3; }

.notifications-empty { border: 1px solid #eee; background: linear-gradient(180deg, #fafafa, #fff); border-radius: 16px; padding: 2rem 1.5rem; }
.notifications-empty-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.notifications-empty-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.35rem; }
.notifications-empty-text { color: #666; margin: 0 0 1rem; }

@media (max-width: 640px) {
    .notifications-header { flex-direction: column; align-items: stretch; }
    .notifications-actions { justify-content: flex-start; }
    .notification-item { grid-template-columns: 40px 1fr; padding: 0.75rem 0.8rem; }
    .notification-icon { width: 40px; height: 40px; border-radius: 11px; }
}
.discover-game {
    max-width: 440px;
    margin: 0 auto;
    padding-bottom: 2rem;
    --discover-card-h: 540px;
    --discover-photo-h: 300px;
}
.discover-game-intro {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
    background: linear-gradient(180deg, #faf7fb, #ffffff);
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    line-height: 1.45;
}
.discover-game-intro strong { color: #222; }
.discover-game-intro a { color: #ad1457; text-decoration: none; font-weight: 600; }
.discover-game-intro a:hover { text-decoration: underline; }
.discover-game-intro-links { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; margin-left: 0.35rem; }
@media (max-width: 420px) {
    .discover-game-intro-links { white-space: normal; display: inline; }
}
.discover-game-container { min-height: 480px; }
.discover-game-intro-bottom { margin-top: 0.85rem; }
.discover-card-stage { position: relative; }
.discover-card-wrap { position: relative; margin-bottom: 1.5rem; }
.discover-game-card { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid #eee; height: var(--discover-card-h); }
.discover-game-card-inner { position: relative; z-index: 1; pointer-events: none; height: 100%; display: flex; flex-direction: column; }
.discover-game-photo { width: 100%; height: var(--discover-photo-h); object-fit: cover; display: block; flex: 0 0 auto; }
.discover-game-photo-placeholder { height: var(--discover-photo-h); background: linear-gradient(145deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; color: #888; font-size: 1rem; flex: 0 0 auto; }

.discover-game-card--immersive .discover-game-card-inner--immersive {
    display: block;
    height: 100%;
}
.discover-game-photo--cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    flex: none !important;
}
.discover-game-photo-placeholder.discover-game-photo--cover {
    height: 100% !important;
    font-size: 1.15rem;
    background: linear-gradient(145deg, #e91e63, #6a1b9a);
    color: rgba(255, 255, 255, 0.92);
}
.discover-game-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Ligero: la legibilidad del texto va con sombra, no con una franja negra */
    background: linear-gradient(
        180deg,
        rgba(10, 8, 14, 0) 0%,
        rgba(10, 8, 14, 0.1) 45%,
        rgba(10, 8, 14, 0.22) 68%,
        rgba(10, 8, 14, 0.38) 100%
    );
}
.discover-game-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(12, 8, 16, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}
.discover-game-info-btn:hover {
    background: rgba(12, 8, 16, 0.58);
}
.discover-game-extra {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 255px;
    width: min(360px, calc(100% - 28px));
    max-width: calc(100% - 28px);
    transform: translateX(-50%);
    box-sizing: border-box;
    z-index: 3;
    max-height: 38%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    background: rgba(8, 6, 12, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: auto;
    text-align: justify;
}
.discover-game-extra .discover-game-chips {
    justify-content: center;
}
.discover-game-extra[hidden] {
    display: none !important;
}
.discover-game-extra .discover-game-interested,
.discover-game-extra .discover-game-occupation,
.discover-game-extra .discover-game-bio,
.discover-game-extra .discover-game-active {
    color: rgba(255, 255, 255, 0.92);
}
.discover-game-extra .discover-game-chip {
    color: #311b92;
    background: #e8eaf6;
}
.discover-game-extra .discover-game-chip-looking {
    color: #5d1033;
    background: #f8bbd0;
}
.discover-game-extra .discover-game-interested,
.discover-game-extra .discover-game-occupation,
.discover-game-extra .discover-game-bio {
    font-size: 0.82rem;
}
.discover-game-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.85rem 1rem 5.75rem;
    pointer-events: auto;
    text-align: left;
}
.discover-game-card-caption .discover-game-name--overlay,
.discover-game-card-caption .discover-game-meta-on-photo,
.discover-game-card-caption .discover-game-marks {
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 16px rgba(0, 0, 0, 0.55);
}
.discover-game-overlay-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.discover-game-name--overlay {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    flex: 0 1 auto;
    min-width: 0;
}
.discover-game-marks {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}
.discover-game-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.28rem;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
}
.discover-game-mark--ok {
    background: rgba(46, 125, 50, 0.95);
    color: #fff;
}
.discover-game-mark--mail {
    background: rgba(57, 73, 171, 0.95);
    color: #fff;
}
.discover-game-meta-on-photo {
    color: #fff;
    margin: 0 0 0.35rem;
}
.discover-game-card-caption .discover-game-meta-line {
    font-weight: 600;
}
.discover-game-card-caption .discover-game-location {
    margin-bottom: 0.45rem;
}
.discover-game-overlay-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.42rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}
.discover-game-overlay-profile-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}
.discover-game-overlay-profile-link:active {
    transform: translateY(0);
}
.discover-game-overlay-profile-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}
.discover-game-body { padding: 0.85rem 1rem 1.15rem; }
.discover-game-name { margin: 0 0 0.35rem; font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.discover-game-meta-line { margin: 0 0 0.35rem; font-size: 0.9rem; color: #fff; }
.discover-game-meta-dot { opacity: 0.5; font-weight: 400; }
.discover-game-location {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.discover-game-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.discover-game-chip { font-size: 0.72rem; padding: 0.22rem 0.55rem; border-radius: 999px; background: #ede7f6; color: #5e35b1; font-weight: 600; letter-spacing: 0.01em; }
.discover-game-chip-looking { background: #fce4ec; color: #ad1457; }
.discover-game-interested {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.discover-game-occupation {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discover-game-body { padding: 0.85rem 1rem 1.15rem; flex: 1 1 auto; overflow: hidden; }
.discover-game-bio { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.45; color: #444; display: -webkit-box; line-clamp: 4; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.discover-game-active { margin: 0; font-size: 0.75rem; color: #888; }

@media (max-width: 420px) {
    .discover-game { --discover-card-h: 520px; --discover-photo-h: 280px; }
}
.discover-game-actions { display: flex; justify-content: center; gap: 2rem; align-items: center; }
.discover-game-actions-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 5;
    justify-content: center;
    align-items: center;
    padding: 12px 14px;
    pointer-events: none;
}
.discover-game-actions-overlay .discover-btn { pointer-events: auto; }
.discover-btn { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.75rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.15s, box-shadow 0.15s; }
.discover-btn:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.discover-btn:active { transform: scale(0.98); }
.discover-btn-nope { background: #fff; color: #e53935; border: 3px solid #e53935; }
.discover-btn-like { background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; }
.discover-card-exit { animation: discover-card-out 0.3s ease forwards; pointer-events: none; }
.discover-card-exit-left { animation-name: discover-card-out-left; }
.discover-card-exit-right { animation-name: discover-card-out-right; }
@keyframes discover-card-out-left { to { transform: translateX(-120%); opacity: 0; } }
@keyframes discover-card-out-right { to { transform: translateX(120%); opacity: 0; } }
.discover-game-empty { text-align: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #fafafa, #fff); border-radius: 16px; border: 1px solid #eee; }
.discover-game-empty-inner { max-width: 320px; margin: 0 auto; }
.discover-game-empty-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.discover-game-empty p { color: #666; margin-bottom: 1rem; }
.btn-discover-reload { display: inline-block; margin: 0.25rem; padding: 0.6rem 1.25rem; background: #e91e63; color: #fff; text-decoration: none; border-radius: 24px; font-weight: 600; }
.btn-discover-reload:hover { background: #c2185b; color: #fff; }
.discover-toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%); z-index: 100; max-width: 90%; }

/* ===== Descubrir: modal de match (química) ===== */
.discover-match-overlay { position: fixed; inset: 0; background: rgba(15, 12, 20, 0.55); z-index: 25000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.discover-match-modal { width: 100%; max-width: 440px; background: radial-gradient(120% 120% at 20% 10%, #fff 0%, #fff 55%, #fff7fb 100%); border-radius: 18px; border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 18px 60px rgba(0,0,0,0.35); position: relative; padding: 1.1rem 1.1rem 1.2rem; overflow: hidden; }
.discover-match-modal::before { content: ""; position: absolute; inset: -2px; background: radial-gradient(55% 65% at 50% 0%, rgba(233,30,99,0.25), rgba(173,20,87,0) 70%); pointer-events: none; }
.discover-match-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #eee; background: rgba(255,255,255,0.9); color: #555; font-size: 1.35rem; line-height: 1; cursor: pointer; z-index: 2; }
.discover-match-close:hover { background: #fff; color: #000; }

.discover-match-hero { padding-top: 0.25rem; padding-bottom: 0.35rem; position: relative; z-index: 1; }
.discover-match-orbit { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 0.65rem; }
.discover-match-avatar { width: 120px; height: 120px; border-radius: 999px; overflow: hidden; border: 4px solid rgba(255,255,255,0.92); box-shadow: 0 10px 26px rgba(233,30,99,0.18); background: #fff; justify-self: center; }
.discover-match-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.discover-match-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #ad1457; background: linear-gradient(145deg, #fce4ec, #fff); }
.discover-match-heart { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; font-size: 1.35rem; box-shadow: 0 10px 24px rgba(233,30,99,0.32); animation: discover-match-pulse 1.05s ease-in-out infinite; }
@keyframes discover-match-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.discover-match-title { margin: 0.65rem 0 0.25rem; text-align: center; font-size: 1.35rem; letter-spacing: -0.01em; position: relative; z-index: 1; }
.discover-match-subtitle { margin: 0; text-align: center; color: #555; font-size: 0.98rem; line-height: 1.35; position: relative; z-index: 1; }
.discover-match-subtitle strong { color: #222; }

.discover-match-actions { margin-top: 0.95rem; display: grid; gap: 0.55rem; position: relative; z-index: 1; }
.discover-match-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.65rem 0.85rem; border-radius: 14px; text-decoration: none; font-weight: 800; cursor: pointer; border: 1px solid transparent; }
.discover-match-btn-primary { background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; border: none; }
.discover-match-btn-primary:hover { filter: brightness(1.03); }
.discover-match-btn-secondary { background: #fff; color: #ad1457; border-color: rgba(173,20,87,0.22); }
.discover-match-btn-secondary:hover { background: #fff7fb; }
.discover-match-btn-ghost { background: #fafafa; color: #444; border-color: #eee; }
.discover-match-btn-ghost:hover { background: #f3f3f3; }

@media (max-width: 420px) {
    .discover-match-avatar { width: 104px; height: 104px; }
}

/* Descubrir: modal de créditos insuficientes */
.discover-credits-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 25100;
    background: rgba(15, 12, 20, 0.55);
    backdrop-filter: blur(3px);
    padding: 1rem;
}
.discover-credits-overlay[aria-hidden="false"] {
    display: flex;
}
.discover-credits-modal {
    width: 100%;
    max-width: 410px;
    background: radial-gradient(120% 120% at 20% 10%, #fff 0%, #fff 56%, #fff7fb 100%);
    border-radius: 16px;
    border: 1px solid rgba(233, 30, 99, 0.22);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
    position: relative;
    padding: 1.1rem 1.1rem 1.15rem;
    text-align: center;
}
.discover-credits-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: rgba(255, 255, 255, 0.9);
    color: #555;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.discover-credits-close:hover { color: #000; background: #fff; }
.discover-credits-icon {
    font-size: 2rem;
    line-height: 1;
    margin: 0.15rem 0 0.4rem;
}
.discover-credits-title {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    color: #ad1457;
}
.discover-credits-message {
    margin: 0 0 0.95rem;
    color: #4b5563;
    line-height: 1.35;
}
.discover-credits-actions {
    display: grid;
    gap: 0.55rem;
}
.discover-credits-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.68rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}
.discover-credits-btn-primary {
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
}
.discover-credits-btn-primary:hover { filter: brightness(1.04); color: #fff; }
.discover-credits-btn-ghost {
    background: #fff;
    color: #6b7280;
    border-color: #e5e7eb;
}
.discover-credits-btn-ghost:hover { background: #f9fafb; }

/* ===== Perfil (diseño web de citas) ===== */
.profile-view { max-width: 900px; margin: 0 auto; padding-bottom: 2rem; }

.profile-own-public-banner {
    margin: 0 0 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5d4037;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffe082;
    border-radius: 12px;
}
.profile-own-public-banner-text { margin: 0; }
.profile-own-public-banner a {
    font-weight: 700;
    color: #c2185b;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.profile-own-public-banner a:hover { color: #ad1457; }

.profile-feed-edit-intro {
    margin: 0 0 1rem;
    max-width: 52rem;
}
.profile-feed-tab--edit {
    margin-top: 0.25rem;
}
.profile-view-dating .profile-content { padding: 0 0.5rem; }

/* Cabecera tipo Facebook: portada + avatar + info + acciones */
.profile-header { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(233, 30, 99, 0.12); margin-bottom: 0; background: #fff; }
.profile-header-cover { position: relative; aspect-ratio: 2.6/1; max-height: 340px; background: linear-gradient(145deg, #fce4ec, #f8bbd9); }
.profile-header-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-header-cover-img.profile-header-open-fullscreen { cursor: zoom-in; }
.profile-header-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f8bbd9 0%, #fce4ec 100%); }

.profile-header-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.profile-header-cover-upload {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    pointer-events: none;
}
.profile-header-cover-upload-form {
    pointer-events: auto;
}
.profile-header-cover-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.profile-header-cover-upload-btn:hover {
    background: rgba(194, 24, 91, 0.88);
    border-color: rgba(255, 255, 255, 0.5);
}

.profile-header-avatar-wrap--own {
    position: relative;
}
.profile-header-avatar-upload-form {
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 3;
    pointer-events: none;
}
.profile-header-avatar-fab {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.profile-header-avatar-fab:hover {
    filter: brightness(1.06);
}

.profile-header-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 0 1.25rem 1.25rem; background: #fff; position: relative; margin-top: -52px; z-index: 1; }
.profile-header-avatar-wrap { flex-shrink: 0; }
.profile-header-avatar { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15); display: block; }
.profile-header-avatar.profile-header-open-fullscreen { cursor: zoom-in; }
.profile-header-avatar-placeholder { width: 168px; height: 168px; border-radius: 50%; border: 4px solid #fff; background: #e0e0e0; color: #888; font-size: 3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.profile-header-info { flex: 1; min-width: 0; padding-bottom: 0.25rem; }
.profile-header-name { margin: 0 0 0.2rem 0; font-size: 1.75rem; font-weight: 700; color: #1a1a1a; }
.profile-header-meta { margin: 0.35rem 0 0; font-size: 0.95rem; color: #666; }
.profile-edit-header .profile-header-meta a {
    color: #c2185b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.profile-edit-header .profile-header-meta a:hover { color: #ad1457; }
.profile-header-seeking { margin: 0.35rem 0 0; font-size: 0.9rem; color: #ad1457; font-weight: 500; }
.profile-header-last, .profile-header-credits { margin: 0.25rem 0 0; }
/* Botones de acción del header: ordenados y agrupados */
.profile-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; padding-bottom: 0.25rem; flex-shrink: 0; }
.profile-header-actions-primary { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.profile-header-actions-secondary { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.profile-header-action-form { margin: 0; display: inline-flex; }
.profile-header-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0 1.1rem; border-radius: 22px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s; white-space: nowrap; box-sizing: border-box; }
.profile-header-btn-icon { font-size: 1.1em; line-height: 1; }
.profile-header-btn-like { background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; box-shadow: 0 2px 8px rgba(233, 30, 99, 0.35); }
.profile-header-btn-like:hover { background: linear-gradient(145deg, #c2185b, #ad1457); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45); }
.profile-header-btn-like-sent,
.profile-header-btn-like[disabled] {
    background: #f3f3f3;
    color: #777;
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid #ddd;
}
.profile-header-btn-like-sent:hover,
.profile-header-btn-like[disabled]:hover {
    background: #f3f3f3;
    color: #777;
    transform: none;
    box-shadow: none;
}
.profile-header-btn-chat { background: #fff; color: #e91e63; border: 2px solid #e91e63; }
.profile-header-btn-chat:hover { background: #fce4ec; color: #c2185b; border-color: #c2185b; transform: translateY(-1px); }
.profile-header-btn-fav { background: #fff; color: #555; border: 2px solid #e0e0e0; }
.profile-header-btn-fav:hover { background: #fff8e1; color: #f57c00; border-color: #ffb74d; }
.profile-header-btn-fav-sent,
.profile-header-btn-fav[disabled] {
    background: #f3f3f3;
    color: #777;
    border-color: #ddd;
    cursor: not-allowed;
}
.profile-header-btn-fav-sent:hover,
.profile-header-btn-fav[disabled]:hover {
    background: #f3f3f3;
    color: #777;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}
.profile-header-btn-gift { background: linear-gradient(145deg, #fff3e0, #ffe0b2); color: #e65100; border: 1px solid #ffcc80; }
.profile-header-btn-gift:hover { background: #ffe0b2; color: #bf360c; border-color: #ffb74d; transform: translateY(-1px); }
.profile-header-btn-report { background: #fff5f5; color: #b71c1c; border: 1px solid #f2c1c1; }
.profile-header-btn-report:hover { background: #ffe6e6; color: #8e0000; border-color: #e7a7a7; transform: translateY(-1px); }
.profile-header-actions-own { justify-content: flex-end; }
.profile-header-btn-edit { background: #fff; color: #e91e63; border: 2px solid #e91e63; }
.profile-header-btn-edit:hover { background: #fce4ec; color: #c2185b; border-color: #c2185b; transform: translateY(-1px); }
@media (max-width: 640px) {
    .profile-header-cover { aspect-ratio: 2/1; /*max-height: 200px; */}
    .profile-header-bar { margin-top: -40px; padding-left: 1rem; padding-right: 1rem; }
    .profile-header-avatar { width: 120px; height: 120px; border-width: 3px; }
    .profile-header-avatar-placeholder { width: 120px; height: 120px; border-width: 3px; font-size: 2.25rem; }
    .profile-header-name { font-size: 1.35rem; }
    .profile-header-actions { align-items: stretch; }
    .profile-header-actions-primary, .profile-header-actions-secondary { justify-content: flex-end; }
    .profile-header-btn { min-height: 42px; padding: 0 0.9rem; font-size: 0.85rem; }
}
@media (max-width: 520px) {
    .profile-header-cover-upload {
        right: 1.5rem;
        bottom: 0.5rem;
    }
    .profile-header-cover-upload-btn {
        font-size: 0.8rem;
        padding: 0.38rem 0.72rem;
    }
    .profile-header-avatar-fab {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
        border-width: 2px;
    }
    .profile-header-cover {
        /*height: 170px;*/
        max-height: 170px;
        min-height: 200px;
        overflow: hidden;
    }
    .profile-header-cover-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        display: block;
        object-fit: cover;
        object-position: center center;
    }
    .profile-header-bar {
        margin-top: 0;
        padding: 3.45rem 0.85rem 0.95rem;
        gap: 0.7rem;
        align-items: stretch;
    }
    .profile-header-avatar-wrap {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        z-index: 2;
        display: flex;
        justify-content: center;
    }
    .profile-header-avatar,
    .profile-header-avatar-placeholder {
        width: 110px;
        height: 110px;
        border-width: 4px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    .profile-header-info {
        width: 100%;
        text-align: center;
        padding-bottom: 0;
    }
    .profile-header-name {
        font-size: 1.2rem;
        line-height: 1.25;
    }
    .profile-header-meta,
    .profile-header-seeking,
    .profile-header-last,
    .profile-header-credits {
        font-size: 0.84rem;
        line-height: 1.35;
    }
    .profile-header-actions {
        width: 100%;
        gap: 0.45rem;
    }
    .profile-header-actions-primary,
    .profile-header-actions-secondary {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .profile-header-actions-primary .profile-header-action-form,
    .profile-header-actions-secondary .profile-header-action-form,
    .profile-header-actions-primary .profile-header-btn,
    .profile-header-actions-secondary .profile-header-btn {
        width: 100%;
    }
    .profile-header-btn {
        min-height: 40px;
        width: 100%;
        padding: 0 0.55rem;
        font-size: 0.81rem;
        border-radius: 12px;
    }
}
@media (max-width: 390px) {
    .profile-header-cover {
        height: 152px;
        max-height: 152px;
        min-height: 178px;
    }
    .profile-header-bar {
        padding-top: 3.25rem;
    }
    .profile-header-avatar,
    .profile-header-avatar-placeholder {
        width: 98px;
        height: 98px;
    }
}
@media (min-width: 520px) {
    .profile-header-actions { flex-direction: row; align-items: center; gap: 1rem; }
    .profile-header-actions-secondary { padding-left: 0.75rem; border-left: 1px solid #eee; }
}

/* Pestañas Todo | Fotos */
.profile-tabs { display: flex; gap: 0; background: #fff; border-bottom: 2px solid #fce4ec; padding: 0 0.5rem 0 1rem; margin-top: 0.5rem; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.profile-tab { padding: 0.9rem 1.25rem; font-size: 1rem; font-weight: 600; color: #666; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.profile-tab:hover { color: #ad1457; }
.profile-tab-active { color: #e91e63; border-bottom-color: #e91e63; }
.profile-tab-panel { display: none; padding: 1rem 0.5rem 2rem; }
.profile-tab-panel-active { display: block; }
.profile-tab-panel[hidden] { display: none !important; }
.profile-tab-panel-active:not([hidden]) { display: block; }

/* Perfil: pestaña Feed (publicaciones del usuario) */
.profile-feed-tab {
    max-width: 760px;
    margin: 0 auto;
}
.profile-feed-composer-trigger {
    margin-bottom: 1rem;
}
.profile-feed-post-stats {
    margin: 0;
    border-radius: 0;
}
.profile-feed-post-actions {
    padding-bottom: 0.65rem;
}
.profile-feed-empty {
    margin: 0;
    padding: 1rem 0.75rem;
    color: #65676b;
    text-align: center;
}
.profile-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.profile-feed-post {
    border: 1px solid #dce1e8;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 20, 30, 0.08);
    overflow: hidden;
}
.profile-feed-post-head {
    padding: 0.65rem 1rem 0.35rem;
    border-bottom: 1px solid #f0f2f5;
}
.profile-feed-post-time {
    font-size: 0.82rem;
    color: #65676b;
}
.profile-feed-post-body {
    margin: 0;
    padding: 0.65rem 1rem 0.55rem;
    color: #1c1e21;
    line-height: 1.55;
    font-size: 0.95rem;
}
.profile-feed-post-body-muted {
    color: #65676b;
    font-style: italic;
}
.profile-feed-post-media {
    margin: 0;
    border-top: 1px solid #f0f2f5;
    background: #f4f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    /* Marco más “cuadrado” y alto automático según ancho / pantalla */
    aspect-ratio: 4 / 3;
    min-height: clamp(200px, 36vmin, 320px);
    max-height: min(72vh, 680px);
}
.profile-feed-post .profile-feed-post-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #fff;
    cursor: zoom-in;
}

/* Galería de fotos en miniatura (pestaña Fotos) */
.profile-photos-grid-wrap { padding: 0.25rem 0; }
.profile-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.profile-photo-thumb { margin: 0; padding: 0; border: none; border-radius: 12px; overflow: hidden; cursor: pointer; background: #f5f5f5; display: block; width: 100%; aspect-ratio: 1; transition: transform 0.2s, box-shadow 0.2s; }
.profile-photo-thumb:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25); }
.profile-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: middle; }
.profile-photos-empty { text-align: center; color: #888; padding: 2rem; margin: 0; }
@media (min-width: 640px) {
    .profile-photos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
}

/* Carrusel tipo libro (ya no usado en Fotos; se mantiene por si se reutiliza) */
.profile-carousel { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(233, 30, 99, 0.12); margin-bottom: 1.5rem; background: #fff; }
.profile-carousel-inner { position: relative; aspect-ratio: 4/3; max-height: 440px; background: linear-gradient(145deg, #fce4ec, #f8bbd9); overflow: hidden; width: 100%; }
.profile-carousel-track { display: flex; height: 100%; width: 100%; transition: transform 0.35s ease-out; }
.profile-carousel-slide { flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; position: relative; overflow: hidden; box-sizing: border-box; }
.profile-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-carousel-placeholder { display: flex; align-items: center; justify-content: center; }
.profile-carousel-placeholder-inner { color: #888; font-size: 1.1rem; }
.profile-carousel-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 1.25rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.profile-carousel-name { margin: 0 0 0.25rem 0; font-size: 1.4rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.profile-carousel-meta { margin: 0; font-size: 0.95rem; opacity: 0.95; }

.profile-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,0.9); color: #333; font-size: 1.75rem; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: background 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; }
.profile-carousel-arrow:hover { background: #fff; color: #e91e63; }
.profile-carousel-prev { left: 12px; }
.profile-carousel-next { right: 12px; }

.profile-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.75rem; flex-wrap: wrap; }
.profile-carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ddd; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.profile-carousel-dot:hover { background: #f8bbd9; }
.profile-carousel-dot.active { background: #e91e63; transform: scale(1.2); }

.profile-carousel-thumbs { display: flex; justify-content: center; gap: 0.5rem; padding: 0 0.75rem 0.75rem; overflow-x: auto; }
.profile-carousel-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: none; transition: border-color 0.2s, opacity 0.2s; }
.profile-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-carousel-thumb:hover { opacity: 0.9; }
.profile-carousel-thumb.active { border-color: #e91e63; }

.profile-carousel-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: #fff; border-top: 1px solid #fce4ec; }
.profile-carousel-info { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: 0.9rem; color: #666; }
.profile-carousel-counter { font-weight: 600; color: #ad1457; }
.profile-carousel-seeking { color: #ad1457; }
.profile-carousel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.profile-carousel-img.profile-carousel-open-fullscreen { cursor: pointer; }
.profile-hero-form { margin: 0; }

/* Pantalla completa fotos */
.profile-fullscreen { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; overflow: hidden; box-sizing: border-box; max-width: 100%; }
.profile-fullscreen.profile-fullscreen-visible { opacity: 1; visibility: visible; }
.profile-fullscreen-inner {
    position: relative;
    width: min(1380px, calc(100% - 8rem));
    min-width: 0;
    height: min(92vh, 960px);
    padding: 3.5rem 4rem;
    box-sizing: border-box;
}
.profile-fullscreen-layout {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
}
.profile-fullscreen-media {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: center;
    justify-items: center;
    padding: 1rem 1.4rem;
    background: #000;
    overflow: hidden;
}
.profile-fullscreen-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.profile-fullscreen-counter { color: #fff; font-size: 0.95rem; font-weight: 600; white-space: nowrap; margin-top: 0.45rem; }
.profile-fullscreen-stats {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.profile-fullscreen-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.83rem;
}
.profile-fullscreen-side {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #121212;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem;
    overflow: hidden;
}
.profile-fullscreen-side > * {
    min-width: 0;
}
.profile-fullscreen-comments-head {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-fullscreen-comments-list {
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding-right: 0.1rem;
}
.profile-fullscreen-comment-item {
    color: #f3f4f6;
    font-size: 0.82rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.38rem 0.5rem;
}
.profile-fullscreen-comment-item strong { color: #fff; }
.profile-fullscreen-comment-item span {
    display: block;
    margin-top: 0.1rem;
    color: #d1d5db;
    font-size: 0.72rem;
}
.profile-fullscreen-comments-empty {
    margin: 0;
    color: #e5e7eb;
    font-size: 0.8rem;
}
.profile-fullscreen-comment-form {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #121212;
    z-index: 2;
}
.profile-fullscreen-comment-form textarea {
    width: 100%;
    resize: none;
    min-height: 42px;
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    padding: 0.48rem 0.55rem;
    font-size: 0.82rem;
}
.profile-fullscreen-comment-form button {
    border: none;
    border-radius: 10px;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0 0.9rem;
    min-height: 42px;
    cursor: pointer;
}
.profile-fullscreen-comment-form button:hover { filter: brightness(1.06); }
.profile-fullscreen-like-btn {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.55rem;
}
.profile-fullscreen-like-btn.is-liked {
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    border-color: transparent;
}
.profile-fullscreen-gift { margin-top: 0.6rem; flex-shrink: 0; align-self: flex-start; }
.profile-fullscreen-gift.profile-hero-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
.profile-fullscreen-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s; }
.profile-fullscreen-close:hover { background: rgba(255,255,255,0.35); }
.profile-fullscreen-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: none; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s, color 0.2s; }
.profile-fullscreen-arrow:hover { background: rgba(255,255,255,0.4); color: #fff; }
.profile-fullscreen-prev { left: 1rem; }
.profile-fullscreen-next { right: 1rem; }
.profile-fullscreen-single .profile-fullscreen-prev,
.profile-fullscreen-single .profile-fullscreen-next { display: none !important; }
@media (max-width: 1100px) {
    .profile-fullscreen-inner { width: min(1180px, calc(100% - 6.5rem)); padding: 3.2rem 3.2rem; }
    .profile-fullscreen-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
    .profile-fullscreen-inner { width: min(1040px, calc(100% - 3rem)); height: min(94vh, 980px); padding: 2.6rem 1.5rem; }
    .profile-fullscreen-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(240px, 42vh); }
    .profile-fullscreen-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 640px) {
    .profile-fullscreen-inner {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        padding: 2.7rem 0.5rem 0.5rem;
        box-sizing: border-box;
    }
    .profile-fullscreen-layout { border-radius: 10px; }
    .profile-fullscreen-media { padding: 0.6rem; }
    .profile-fullscreen-arrow { width: 44px; height: 44px; font-size: 2rem; }
    .profile-fullscreen-prev { left: 0.5rem; }
    .profile-fullscreen-next { right: 0.5rem; }
    .profile-fullscreen-close { top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; font-size: 1.75rem; }
    .profile-fullscreen-comment-form { grid-template-columns: 1fr; }
    .profile-fullscreen-comment-form button { width: 100%; }
}

/* Visor móvil simplificado: solo imagen, sin controles extra */
@media (max-width: 640px) {
    .feed-image-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        box-sizing: border-box;
    }
    .feed-image-modal-img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        box-sizing: border-box;
    }
    .feed-image-modal-stats,
    .feed-image-modal-actions {
        display: none !important;
    }
    .feed-image-modal-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        top: 0.65rem;
        right: 0.65rem;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .profile-fullscreen {
        background: #000;
        align-items: stretch;
        justify-content: stretch;
        inset: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    .profile-fullscreen-inner {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .profile-fullscreen-layout {
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        background: #000;
    }
    .profile-fullscreen-media {
        width: 100%;
        height: 100%;
        padding: 0;
        grid-template-rows: 1fr;
    }
    .profile-fullscreen-img {
        width: 100%;
        height: 100%;
    }
    .profile-fullscreen-arrow,
    .profile-fullscreen-counter,
    .profile-fullscreen-stats,
    .profile-fullscreen-side {
        display: none !important;
    }
    .profile-fullscreen-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        top: 0.65rem;
        right: 0.65rem;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 10002;
    }
}
.profile-hero-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 24px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.profile-hero-btn-like { background: #e91e63; color: #fff; }
.profile-hero-btn-like:hover { background: #c2185b; color: #fff; transform: scale(1.02); box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4); }
.profile-hero-btn-chat { background: #fff; color: #e91e63; border: 2px solid #e91e63; }
.profile-hero-btn-chat:hover { background: #fce4ec; color: #c2185b; border-color: #c2185b; }
.profile-hero-btn-fav { background: #f5f5f5; color: #555; }
.profile-hero-btn-fav:hover { background: #ffecb3; color: #f57c00; }
.profile-hero-btn-gift { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.profile-hero-btn-gift:hover { background: #ffe0b2; color: #bf360c; }

/* Pestaña Todo: bloques organizados */
/*.profile-todo { max-width: 720px; }*/
.profile-block { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #fce4ec; }
.profile-block-title { margin: 0 0 1rem 0; font-size: 1.05rem; font-weight: 700; color: #ad1457; padding-bottom: 0.5rem; border-bottom: 2px solid #fce4ec; }
.profile-block-body { margin: 0; font-size: 0.95rem; color: #444; line-height: 1.6; }
.profile-bio { margin: 0; white-space: pre-line; }
.profile-empty { color: #999; font-style: italic; }

/* Detalles: grid de datos */
.profile-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
.profile-detail-item { display: flex; flex-direction: column; gap: 0.2rem; }
.profile-detail-label { font-size: 0.85rem; color: #666; }
.profile-detail-value { font-weight: 500; color: #333; }
@media (max-width: 500px) {
    .profile-details-grid { grid-template-columns: 1fr; }
}

/* Qué busco */
.profile-seeking-line { margin: 0 0 0.75rem 0; font-weight: 500; color: #333; }
.profile-seeking-line:last-child { margin-bottom: 0; }
.profile-seeking-text { margin: 0; }

/* Gustos e intereses: tags */
.profile-interests-row { margin: 0; }
.profile-interests-row strong { display: inline-block; margin-right: 0.35rem; }
.profile-tags { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.profile-tag { display: inline-block; padding: 0.25rem 0.6rem; background: #fce4ec; color: #ad1457; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.profile-safety-summary { margin: 0 0 0.65rem 0; }
.profile-safety-summary:last-of-type { margin-bottom: 1rem; }
.profile-safety-link { display: inline-flex; align-items: center; gap: 0.3rem; color: #e91e63; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.profile-safety-link:hover { color: #c2185b; border-bottom-color: #c2185b; }

/* Carrusel: más perfiles de tu interés */
.profile-more-section {
    margin-top: 2.5rem;
    padding: 1.5rem 1.1rem 1.65rem;
    border-radius: 20px;
    border: 1px solid #f8bbd9;
    background: linear-gradient(165deg, #fff 0%, #fff8fb 45%, #fce4ec 160%);
    box-shadow: 0 4px 24px rgba(173, 20, 87, 0.06);
}
.profile-more-head { margin-bottom: 1.1rem; }
.profile-more-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #880e4f;
}
.profile-more-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #7a5568;
    line-height: 1.4;
    max-width: 36rem;
}
.profile-more-carousel-wrap {
    position: relative;
    padding: 0.35rem 2.65rem;
    margin: 0 -0.15rem;
}
.profile-more-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(233, 30, 99, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #ad1457;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.profile-more-arrow:hover {
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
}
.profile-more-arrow:active { transform: translateY(-50%) scale(0.96); }
.profile-more-arrow:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 3px;
}
.profile-more-prev { left: 0.15rem; }
.profile-more-next { right: 0.15rem; }
.profile-more-carousel {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.35rem;
    padding: 0.45rem 0.15rem 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f8bbd9 transparent;
}
.profile-more-carousel::-webkit-scrollbar { height: 7px; }
.profile-more-carousel::-webkit-scrollbar-track { background: rgba(248, 187, 217, 0.25); border-radius: 4px; }
.profile-more-carousel::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #f48fb1, #e91e63); border-radius: 4px; }
.profile-more-card {
    flex: 0 0 clamp(152px, 38vw, 196px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 12px 28px rgba(173, 20, 87, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.profile-more-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.07),
        0 18px 40px rgba(233, 30, 99, 0.16);
}
.profile-more-card:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 3px;
}
.profile-more-card-inner {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(160deg, #fce4ec, #f5f5f5);
}
.profile-more-card-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.profile-more-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}
.profile-more-card:hover .profile-more-card-photo img { transform: scale(1.06); }
.profile-more-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.25rem;
    color: #c2185b;
    font-weight: 700;
    opacity: 0.45;
}
.profile-more-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.35rem 0.75rem 0.7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 52%, transparent 100%);
    color: #fff;
    pointer-events: none;
}
.profile-more-card-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.profile-more-card-name-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-more-card-meta {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-more-card-cta {
    display: block;
    text-align: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c2185b;
    background: linear-gradient(180deg, #fff 0%, #fff5f9 100%);
    border-top: 1px solid #fce4ec;
}
.profile-more-card:hover .profile-more-card-cta {
    color: #880e4f;
    background: linear-gradient(180deg, #fff0f5 0%, #fce4ec 100%);
}
@media (max-width: 640px) {
    .profile-more-section { padding: 1.25rem 0.75rem 1.35rem; border-radius: 16px; }
    .profile-more-title { font-size: 1.1rem; }
    .profile-more-carousel-wrap { padding: 0.25rem 2.35rem; }
    .profile-more-arrow { width: 40px; height: 40px; }
    .profile-more-prev { left: 0; }
    .profile-more-next { right: 0; }
    .profile-more-card { flex: 0 0 clamp(142px, 44vw, 168px); }
    .profile-more-card-inner { aspect-ratio: 3 / 3.95; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-more-carousel { scroll-behavior: auto; }
    .profile-more-card,
    .profile-more-card-photo img,
    .profile-more-arrow { transition: none; }
    .profile-more-card:hover { transform: none; }
    .profile-more-card:hover .profile-more-card-photo img { transform: scale(1.02); }
}

/* Secciones de información (legacy / otros usos) */
.profile-main-col { max-width: 640px; }
.profile-section-heading { margin: 0 0 0.75rem 0; font-size: 1rem; font-weight: 700; color: #ad1457; }
.profile-view-dating .profile-section { margin-bottom: 1.25rem; padding: 1.25rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #fce4ec; }
.profile-section-content { margin: 0; font-size: 0.95rem; color: #444; line-height: 1.6; }
.profile-quick-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.profile-quick-table td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid #f5f5f5; vertical-align: top; }
.profile-quick-label { color: #666; width: 38%; }
.profile-quick-value { color: #333; }

/* Legacy / classic profile (por si se usa) */
.profile-view-classic .profile-layout { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.profile-view-classic .profile-left { flex: 0 0 280px; }
.profile-view-classic .profile-main-photo { margin-bottom: 0.75rem; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.profile-photo-large { width: 100%; aspect-ratio: 4/5; max-height: 380px; object-fit: cover; display: block; }
.profile-photo-large.profile-photo-placeholder { aspect-ratio: 4/5; min-height: 280px; display: flex; align-items: center; justify-content: center; color: #888; }
.profile-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile-thumb { display: block; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.profile-thumb.active { border-color: #8b4513; }
.profile-header-block { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #e0e0e0; }
.profile-name { margin: 0 0 0.25rem 0; font-size: 1.5rem; font-weight: 700; color: #1a1a1a; }
.profile-demographics, .profile-status-line, .profile-seeking-line, .profile-last-login, .profile-credits { margin: 0.35rem 0 0; font-size: 0.9rem; color: #555; }
.profile-status-line .profile-id { color: #06c; }
.profile-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.profile-action-circle-form, .profile-icon-form { margin: 0; }
.profile-btn-circle { width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; text-decoration: none; background: #555; color: #fff; }
.profile-btn-like:hover { background: #c2185b; }
.profile-btn-chat:hover { background: #1976d2; }
.profile-btn-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; background: #f5f5f5; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; color: #666; text-decoration: none; }
.profile-actions-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.profile-actions-inline .btn-like, .profile-actions-inline .btn-secondary { margin: 0; }

/* Feed (estilo tipo social timeline) */
.feed-page {
    max-width: 760px;
    margin: 0 auto;
}

.feed-page-heading {
    margin: 0 0 0.85rem;
    padding: 0 0.15rem;
}
.feed-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1c1e21;
    letter-spacing: -0.02em;
}
.feed-page-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #65676b;
    line-height: 1.35;
}

/* Disparador compacto tipo “¿Qué estás pensando?” */
.feed-composer-trigger-card {
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}
.feed-composer-trigger-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.feed-composer-trigger-avatar-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e4e6eb;
    text-decoration: none;
}
.feed-composer-trigger-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-composer-trigger-avatar-placeholder {
    font-size: 1.35rem;
    line-height: 1;
}
.feed-composer-trigger-input {
    flex: 1;
    margin: 0;
    padding: 0.65rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: #f0f2f5;
    color: #65676b;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.feed-composer-trigger-input:hover {
    background: #e4e6eb;
}
.feed-composer-trigger-input:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
}

/* Modal crear publicación */
.feed-create-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.55);
    display: none;
    z-index: 1225;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.feed-create-modal-overlay[aria-hidden="false"] {
    display: flex;
}
.feed-create-modal {
    width: min(500px, 100%);
    max-height: min(90vh, 720px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dce1e8;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.feed-create-modal-header {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #edf0f3;
    min-height: 48px;
}
.feed-create-modal-header-spacer {
    width: 36px;
}
.feed-create-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c1e21;
    text-align: center;
}
.feed-create-modal-close {
    grid-column: 3;
    justify-self: end;
    border: none;
    background: #e4e6eb;
    color: #5f6368;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.feed-create-modal-close:hover {
    background: #d8dadf;
}
.feed-create-modal-body {
    padding: 0.75rem 1rem 1rem;
    overflow: auto;
    overscroll-behavior: contain;
}
.feed-create-modal-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}
.feed-create-modal-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.feed-create-modal-avatar-placeholder {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4e6eb;
    font-size: 1.25rem;
}
.feed-create-modal-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.feed-create-modal-user-name {
    font-size: 0.98rem;
    color: #1c1e21;
}
.feed-create-modal-audience {
    font-size: 0.78rem;
    font-weight: 600;
    color: #65676b;
}

.feed-composer-form.feed-composer-form--modal {
    padding: 0;
    position: relative;
}
.feed-create-textarea {
    min-height: 140px;
    border: none !important;
    border-radius: 8px !important;
    background: #f8f9fb !important;
    box-shadow: none !important;
    font-size: 1.05rem !important;
    resize: vertical;
}
.feed-create-textarea:focus {
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(233, 30, 99, 0.25) !important;
}

/* Vista previa + selector: fondo tipo “tarjeta de texto” (solo sin imagen) */
.feed-create-text-wrap {
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.feed-create-text-wrap--styled {
    padding: 0.75rem 0.85rem;
    min-height: min(42vh, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.feed-create-text-wrap.feed-text-bg--violet {
    background: linear-gradient(145deg, #7c4dff 0%, #5c6bc0 45%, #3949ab 100%);
}
.feed-create-text-wrap.feed-text-bg--rose {
    background: linear-gradient(160deg, #ec407a 0%, #e91e63 50%, #ad1457 100%);
}
.feed-create-text-wrap.feed-text-bg--crimson {
    background: linear-gradient(145deg, #c62828 0%, #b71c1c 100%);
}
.feed-create-text-wrap.feed-text-bg--midnight {
    background: linear-gradient(165deg, #263238 0%, #102027 100%);
}
.feed-create-text-wrap.feed-text-bg--ocean {
    background: linear-gradient(155deg, #0288d1 0%, #01579b 100%);
}
.feed-create-text-wrap.feed-text-bg--sunset {
    background: linear-gradient(145deg, #ff6f00 0%, #ff9800 40%, #ffc107 100%);
}
.feed-create-text-wrap.feed-text-bg--forest {
    background: linear-gradient(155deg, #2e7d32 0%, #1b5e20 100%);
}
.feed-create-text-wrap.feed-text-bg--slate {
    background: linear-gradient(160deg, #546e7a 0%, #37474f 100%);
}
.feed-create-text-wrap.feed-text-bg--cosmic {
    background:
        radial-gradient(ellipse 120% 80% at 20% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(129, 212, 250, 0.35) 0%, transparent 40%),
        linear-gradient(165deg, #311b92 0%, #4527a0 40%, #1a237e 100%);
}
.feed-create-text-wrap--styled .feed-create-textarea--card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    line-height: 1.38;
    min-height: 120px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    caret-color: #fff;
}
.feed-create-text-wrap--styled .feed-create-textarea--card::placeholder {
    color: rgba(255, 255, 255, 0.72);
}
.feed-text-bg-picker {
    margin-top: 0.55rem;
    padding: 0.55rem 0.5rem 0.45rem;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1px solid #e4e6eb;
}
.feed-text-bg-picker--disabled {
    opacity: 0.48;
    pointer-events: none;
}
.feed-text-bg-picker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.45rem;
    padding: 0 0.15rem;
}
.feed-text-bg-picker-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1c1e21;
}
.feed-text-bg-picker-hint {
    font-size: 0.72rem;
    color: #65676b;
}
.feed-text-bg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.feed-text-bg-swatch {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feed-text-bg-swatch:hover {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.feed-text-bg-swatch:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}
.feed-text-bg-swatch.is-selected {
    border-color: #1c1e21;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e91e63;
}
.feed-text-bg-swatch--none {
    background: #fff;
    border: 1px solid #ccd0d5;
    color: #65676b;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-text-bg-swatch-none-icon {
    line-height: 1;
    opacity: 0.75;
}
.feed-text-bg-swatch--chip-violet { background: linear-gradient(145deg, #7c4dff, #5c6bc0); }
.feed-text-bg-swatch--chip-rose { background: linear-gradient(160deg, #ec407a, #c2185b); }
.feed-text-bg-swatch--chip-crimson { background: linear-gradient(145deg, #c62828, #b71c1c); }
.feed-text-bg-swatch--chip-midnight { background: linear-gradient(165deg, #37474f, #102027); }
.feed-text-bg-swatch--chip-ocean { background: linear-gradient(155deg, #0288d1, #01579b); }
.feed-text-bg-swatch--chip-sunset { background: linear-gradient(145deg, #ff6f00, #ffc107); }
.feed-text-bg-swatch--chip-forest { background: linear-gradient(155deg, #2e7d32, #1b5e20); }
.feed-text-bg-swatch--chip-slate { background: linear-gradient(160deg, #607d8b, #37474f); }
.feed-text-bg-swatch--chip-cosmic {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
        linear-gradient(165deg, #4527a0, #1a237e);
}

/* Publicación en feed: bloque de texto con fondo */
.feed-post-body-wrap {
    margin: 0 1rem 0.85rem;
    border-radius: 16px;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    min-height: min(38vh, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.feed-post-body.feed-post-body--card {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #fff;
    font-size: clamp(1.05rem, 3.2vw, 1.42rem);
    font-weight: 700;
    line-height: 1.38;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.feed-post-body-wrap.feed-text-bg--violet { background: linear-gradient(145deg, #7c4dff 0%, #5c6bc0 45%, #3949ab 100%); }
.feed-post-body-wrap.feed-text-bg--rose { background: linear-gradient(160deg, #ec407a 0%, #e91e63 50%, #ad1457 100%); }
.feed-post-body-wrap.feed-text-bg--crimson { background: linear-gradient(145deg, #c62828 0%, #b71c1c 100%); }
.feed-post-body-wrap.feed-text-bg--midnight { background: linear-gradient(165deg, #263238 0%, #102027 100%); }
.feed-post-body-wrap.feed-text-bg--ocean { background: linear-gradient(155deg, #0288d1 0%, #01579b 100%); }
.feed-post-body-wrap.feed-text-bg--sunset { background: linear-gradient(145deg, #ff6f00 0%, #ff9800 40%, #ffc107 100%); }
.feed-post-body-wrap.feed-text-bg--forest { background: linear-gradient(155deg, #2e7d32 0%, #1b5e20 100%); }
.feed-post-body-wrap.feed-text-bg--slate { background: linear-gradient(160deg, #546e7a 0%, #37474f 100%); }
.feed-post-body-wrap.feed-text-bg--cosmic {
    background:
        radial-gradient(ellipse 120% 80% at 20% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(129, 212, 250, 0.35) 0%, transparent 40%),
        linear-gradient(165deg, #311b92 0%, #4527a0 40%, #1a237e 100%);
}

.profile-feed-post-body-wrap {
    margin: 0;
    border-radius: 14px;
    padding: clamp(1.1rem, 3.5vw, 1.75rem) 1rem;
    min-height: min(34vh, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
.profile-feed-post-body.profile-feed-post-body--card {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #fff;
    font-size: clamp(1rem, 3vw, 1.28rem);
    font-weight: 700;
    line-height: 1.38;
    word-break: break-word;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.profile-feed-post-body-wrap.feed-text-bg--violet { background: linear-gradient(145deg, #7c4dff 0%, #5c6bc0 45%, #3949ab 100%); }
.profile-feed-post-body-wrap.feed-text-bg--rose { background: linear-gradient(160deg, #ec407a 0%, #e91e63 50%, #ad1457 100%); }
.profile-feed-post-body-wrap.feed-text-bg--crimson { background: linear-gradient(145deg, #c62828 0%, #b71c1c 100%); }
.profile-feed-post-body-wrap.feed-text-bg--midnight { background: linear-gradient(165deg, #263238 0%, #102027 100%); }
.profile-feed-post-body-wrap.feed-text-bg--ocean { background: linear-gradient(155deg, #0288d1 0%, #01579b 100%); }
.profile-feed-post-body-wrap.feed-text-bg--sunset { background: linear-gradient(145deg, #ff6f00 0%, #ff9800 40%, #ffc107 100%); }
.profile-feed-post-body-wrap.feed-text-bg--forest { background: linear-gradient(155deg, #2e7d32 0%, #1b5e20 100%); }
.profile-feed-post-body-wrap.feed-text-bg--slate { background: linear-gradient(160deg, #546e7a 0%, #37474f 100%); }
.profile-feed-post-body-wrap.feed-text-bg--cosmic {
    background:
        radial-gradient(ellipse 120% 80% at 20% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(129, 212, 250, 0.35) 0%, transparent 40%),
        linear-gradient(165deg, #311b92 0%, #4527a0 40%, #1a237e 100%);
}

@media (prefers-reduced-motion: reduce) {
    .feed-text-bg-swatch {
        transition: none;
    }
    .feed-text-bg-swatch:hover {
        transform: none;
    }
}

.feed-create-add-card {
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    background: #fafbfc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.feed-create-add-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1c1e21;
}
.feed-create-add-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}
.feed-create-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.38rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1c1e21;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.feed-create-add-btn:hover {
    background: #f0f2f5;
    border-color: #ccd0d5;
}
.feed-create-add-btn--photo {
    cursor: pointer;
}
.feed-create-add-btn-ico {
    font-size: 1.1rem;
    line-height: 1;
}
.feed-create-file-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #e91e63;
    font-weight: 600;
    min-height: 1.15em;
}
.feed-create-image-preview-wrap {
    margin-top: 0.65rem;
}
.feed-create-image-preview-wrap[hidden] {
    display: none !important;
}
.feed-create-image-preview-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    background: #f8f9fb;
}
.feed-create-image-preview-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #edf0f3;
}
.feed-create-image-preview-remove {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #e91e63;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.feed-create-image-preview-remove:hover {
    color: #ad1457;
}
.feed-create-image-preview-remove:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}
.feed-file-input--modal {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.feed-mood-row--modal {
    margin-top: 0.65rem;
}
.feed-composer-actions--modal {
    margin-top: 1rem;
    justify-content: stretch;
}
.feed-create-submit {
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.98rem;
    border-radius: 8px;
}

@media (max-width: 560px) {
    .feed-create-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .feed-create-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 14px 14px 0 0;
    }
}

.feed-post,
.feed-empty {
    border: 1px solid #dce1e8;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 20, 30, 0.08);
    background: #fff;
}

.feed-composer-form {
    margin: 0;
    padding: 0.5rem 1rem 1rem;
}

.feed-textarea,
.feed-comment-textarea {
    width: 100%;
    border: 1px solid #ccd0d5;
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    background: #f0f2f5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.feed-textarea:focus,
.feed-comment-textarea:focus {
    outline: none;
    border-color: #e91e63;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.14);
}

.feed-composer-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.feed-upload-label {
    margin-top: 0.55rem;
    display: inline-block;
    color: #e91e63;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.feed-file-input {
    margin-top: 0.4rem;
    width: 100%;
    font-size: 0.86rem;
    color: #65676b;
}

.feed-mood-row {
    margin-top: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1px dashed #d8dde6;
    border-radius: 10px;
    background: #fafbfc;
}
.feed-mood-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #65676b;
    margin-bottom: 0.45rem;
}
.feed-mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.feed-mood-chip {
    cursor: pointer;
    user-select: none;
}
.feed-mood-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.feed-mood-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 0.45rem;
    border-radius: 999px;
    border: 1px solid #e4e6eb;
    background: #fff;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.feed-mood-chip input:focus-visible + span {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
}
.feed-mood-chip input:checked + span {
    border-color: #e91e63;
    background: #fde7ef;
    transform: translateY(-1px);
}

.feed-collapsible {
    margin-top: 0.45rem;
}
.feed-inline-icons-collapsible {
    margin-top: 0.55rem;
}
.feed-collapsible-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0.42rem 0.65rem;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    background: #f0f2f5;
    color: #65676b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.feed-collapsible-toggle:hover {
    background: #e4e6eb;
    border-color: #ccd0d5;
}
.feed-collapsible-toggle:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
}
.feed-collapsible-toggle-label {
    flex: 1;
}
.feed-collapsible-toggle-chevron {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.2s ease;
    color: #65676b;
}
.feed-collapsible-toggle[aria-expanded="true"] .feed-collapsible-toggle-chevron {
    transform: rotate(-180deg);
}
.feed-collapsible-panel {
    margin-top: 0.45rem;
}
.feed-inline-icons-panel .feed-inline-icons-scroll {
    margin-top: 0;
}
.feed-reactions-collapsible {
    border-top: 1px solid #f0f2f5;
    margin-top: 0;
    padding-top: 0.35rem;
}
.feed-reactions-collapsible-toggle {
    border-radius: 8px;
    background: #fafbfc;
}
.feed-reactions-collapsible-toggle:hover {
    background: #f0f2f5;
}
.feed-reactions-panel-wrap:not([hidden]) {
    animation: feed-collapsible-open 0.18s ease;
}
@keyframes feed-collapsible-open {
    from {
        opacity: 0.85;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.feed-inline-icons-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 6rem;
    overflow-y: auto;
    padding: 0.45rem 0.55rem;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    background: #fff;
}
.feed-inline-icon-btn {
    margin: 0;
    border: none;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.28rem 0.42rem;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease;
}
.feed-inline-icon-btn:hover {
    background: #e7f3ff;
    transform: scale(1.06);
}
.feed-inline-icon-btn:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
}

.feed-post-mood-badge {
    margin-left: auto;
    font-size: 1.15rem;
    line-height: 1;
}

.feed-reactions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem 1rem 0.55rem;
    border-top: none;
    background: #fafbfc;
    border-radius: 0 0 10px 10px;
}
.feed-reactions-panel-wrap:not([hidden]) .feed-reactions-bar {
    border-top: 1px solid #f0f2f5;
}
.feed-react-form {
    margin: 0;
}
.feed-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e4e6eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    cursor: pointer;
    font-size: 0.86rem;
    color: #65676b;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.feed-react-btn:hover {
    border-color: #ccd0d5;
    background: #f0f2f5;
}
.feed-react-btn.is-active {
    border-color: #f3a3bf;
    background: #fde7ef;
    color: #ad1457;
}
.feed-react-emoji {
    font-size: 1rem;
    line-height: 1;
}
.feed-react-count {
    min-width: 1.1rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.feed-empty {
    padding: 1rem;
}

.feed-post {
    margin-bottom: 1rem;
    overflow: hidden;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem 0.55rem;
}

.feed-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #e4e6eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-avatar-placeholder {
    color: #7a7d81;
}

.feed-author-name {
    display: block;
    font-size: 0.95rem;
    color: #050505;
}

.feed-author-link {
    text-decoration: none;
    color: inherit;
}

.feed-author-link:hover .feed-author-name {
    text-decoration: underline;
}

.feed-author-meta {
    display: inline-flex;
    flex-direction: column;
}

.feed-time {
    font-size: 0.79rem;
    color: #65676b;
}

.feed-post-body {
    margin: 0;
    padding: 0 1rem 0.8rem;
    color: #1c1e21;
    line-height: 1.55;
    white-space: pre-wrap;
    font-size: 0.98rem;
}

.feed-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 1rem;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    background: #fff;
}

.feed-post-media {
    margin: 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    background: #f4f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    min-height: clamp(200px, 36vmin, 320px);
    max-height: min(72vh, 680px);
}

.feed-page .feed-post .feed-post-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #fff;
    cursor: zoom-in;
}

.feed-like-count,
.feed-comment-count {
    color: #65676b;
    font-size: 0.82rem;
}

.feed-post-actions {
    padding: 0.45rem 0.75rem 0.5rem;
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
}

.feed-like-form {
    margin: 0;
    flex: 1;
}

.feed-delete-form {
    margin: 0;
    flex: 1;
}

.feed-action-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #65676b;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.52rem 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    line-height: 1;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.feed-action-btn:active {
    transform: translateY(1px);
}

.feed-action-label {
    display: inline;
}

.feed-like-btn {
    width: 100%;
}

.feed-like-btn:hover {
    background: #f0f2f5;
    color: #e91e63;
}

.feed-like-btn.is-liked {
    color: #e91e63;
    background: #fde7ef;
}

.feed-open-comments-btn {
    flex: 1;
}

.feed-open-comments-btn:hover {
    background: #f0f2f5;
    color: #e91e63;
}

.feed-gift-btn {
    flex: 1;
}

.feed-gift-btn:hover {
    background: #fff3e0;
    color: #e65100;
}

.feed-delete-btn {
    color: #8d1b1b;
}

@media (max-width: 700px) {
    .feed-post-actions {
        gap: 0.25rem;
        padding: 0.38rem 0.5rem 0.45rem;
    }
    .feed-action-btn {
        padding: 0.46rem 0.45rem;
        min-height: 38px;
        border-radius: 9px;
        font-size: 1.05rem;
        gap: 0;
    }
    .feed-action-btn .feed-action-label {
        display: none;
    }
}

.feed-delete-btn:hover {
    background: #ffebee;
    color: #b71c1c;
}

.feed-comment-form {
    margin: 0;
    padding: 0 1rem 0.7rem;
    display: flex;
    gap: 0.55rem;
    align-items: flex-end;
}

.feed-comment-actions {
    margin: 0;
}

.feed-comment-actions .btn-secondary {
    margin: 0;
    white-space: nowrap;
}

.feed-comment-textarea {
    min-height: 42px;
    max-height: 120px;
}

.feed-comments {
    margin: 0;
    padding: 0;
}

.feed-comment-item {
    background: #f0f2f5;
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: #1c1e21;
    border: 1px solid #e9ebee;
}

.feed-comment-item:last-child {
    margin-bottom: 0;
}

.feed-comment-time {
    margin-top: 0.12rem;
    color: #65676b;
    font-size: 0.75rem;
}

body.feed-modal-open {
    overflow: hidden;
}

.feed-comments-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.52);
    display: none;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feed-comments-modal-overlay[aria-hidden="false"] {
    display: flex;
}

.feed-comments-modal {
    width: min(640px, 100%);
    max-height: min(84vh, 760px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dce1e8;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-comments-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf0f3;
}

.feed-comments-modal-close {
    border: none;
    background: #f1f2f4;
    color: #5f6368;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.feed-comments-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.85rem 1rem 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-comments-modal-body::-webkit-scrollbar {
    display: none;
}

.feed-no-comments {
    margin: 0;
    color: #65676b;
}

.feed-image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feed-image-modal-overlay[aria-hidden="false"] {
    display: flex;
}

.feed-image-modal {
    position: relative;
    width: min(96vw, 1400px);
    height: min(94vh, 980px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.feed-image-modal-stats {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.65rem;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.feed-image-modal-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    font-size: 0.82rem;
}
.feed-image-modal-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2.9rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.feed-image-modal-like-btn {
    margin: 0;
}
.feed-image-modal-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 999px;
    padding: 0.44rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.feed-image-modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.feed-image-modal-close {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 720px) {
    .feed-page {
        max-width: 100%;
    }

    .feed-comment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-comment-actions .btn-secondary {
        width: 100%;
    }

    .feed-post-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .feed-like-form,
    .feed-delete-form,
    .feed-open-comments-btn,
    .feed-gift-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .feed-open-comments-btn,
    .feed-gift-btn {
        width: auto;
        text-align: center;
    }
    .feed-image-modal-actions {
        width: calc(100% - 1rem);
        bottom: 3.4rem;
    }
}

/* Feed: overrides contra estilos globales de .card */
.feed-page .feed-composer-form,
.feed-page .feed-like-form,
.feed-page .feed-comment-form,
.feed-page .feed-react-form,
.profile-view .feed-composer-form,
.profile-view .feed-like-form,
.profile-view .feed-comment-form,
.profile-view .feed-react-form {
    margin: 0;
}

.feed-page .feed-like-form,
.profile-view .feed-like-form {
    display: block;
}

.feed-page .feed-comment-form,
.profile-view .feed-comment-form {
    display: flex;
}

.feed-page .feed-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    vertical-align: middle;
}

.feed-page .feed-post .feed-post-body {
    margin: 0;
    color: #1c1e21;
    font-size: 0.98rem;
}

.feed-page .feed-post .feed-post-body--card {
    color: #fff;
    font-size: clamp(1.05rem, 3.2vw, 1.42rem);
    font-weight: 700;
}

.feed-page .feed-comments p,
.feed-page .feed-post-stats p,
.feed-page .feed-post-actions p,
.profile-view .feed-comments p,
.profile-view .feed-post-stats p,
.profile-view .feed-post-actions p {
    margin: 0;
}

/* Pagina de seguridad */
.safety-page { max-width: 760px; margin: 0 auto; }
.safety-page h1 { margin: 0 0 0.75rem 0; font-size: 1.8rem; color: #1f1f1f; }
.safety-intro { margin: 0 0 1.25rem 0; color: #555; line-height: 1.6; }
.safety-card { background: #fff; border: 1px solid #fce4ec; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.safety-card h2 { margin: 0 0 0.6rem 0; font-size: 1.05rem; color: #ad1457; }
.safety-card ul { margin: 0; padding-left: 1.15rem; color: #444; line-height: 1.6; }
.safety-footer-note { margin-top: 1rem; color: #666; font-style: italic; }

/* Legacy profile (si se usa en otros sitios) */
.profile-photo { max-width: 200px; height: auto; border-radius: 8px; display: block; }
.profile-photo.placeholder { width: 200px; height: 200px; background: #eee; display: flex; align-items: center; justify-content: center; color: #666; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.photo-item { position: relative; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.photo-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.photo-item-gift { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.4rem; font-size: 0.8rem; background: rgba(0,0,0,0.6); color: #fff; text-align: center; text-decoration: none; }

/* ===== Editar perfil ===== */
.profile-edit {
    max-width: 920px;
    margin: 0 auto;
    padding-bottom: 4.5rem;
}
.profile-edit [id^="profile-section-"] { scroll-margin-top: 5.5rem; }
.profile-edit h1, .profile-edit h2 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.profile-edit h2:first-of-type { margin-top: 1rem; }
.profile-edit-header { margin-bottom: 0.5rem; }
.profile-edit-header .profile-header-bar { align-items: flex-start; flex-wrap: wrap; gap: 1rem 1.25rem; }
.profile-edit-kicker {
    margin: 0 0 0.15rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ad1457;
    opacity: 0.9;
}
.profile-edit-header-actions { margin-top: 0.65rem; }
.profile-edit-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c2185b;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.profile-edit-preview-link:hover { color: #ad1457; border-bottom-color: #f8bbd9; }
.profile-edit-header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.profile-edit-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.profile-edit-status-chip--ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.profile-edit-status-chip--pending {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}
.profile-edit-credits {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    text-align: right;
}
.profile-edit-credits strong { color: #1a1a1a; font-size: 1.05em; }
.profile-edit-credits-label { display: block; font-size: 0.75rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-edit-progress { margin-top: 0.6rem; }
.profile-edit-progress-bar { width: 260px; max-width: 100%; height: 10px; border-radius: 999px; background: #f1f1f1; overflow: hidden; }
.profile-edit-progress-bar span { display: block; height: 100%; background: linear-gradient(145deg, #e91e63, #c2185b); transition: width 0.35s ease; }
.profile-edit-progress small { display: block; margin-top: 0.35rem; color: #666; font-size: 0.82rem; }
.profile-edit-todo {
    background: linear-gradient(135deg, #fff5f8 0%, #fce4ec 100%);
    border: 1px solid #f8bbd9;
    border-radius: 14px;
    padding: 0.9rem 1.1rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 14px rgba(233, 30, 99, 0.08);
}
.profile-edit-todo-title { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.95rem; color: #ad1457; }
.profile-edit-todo-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.profile-edit-todo-list li { margin: 0; }
.profile-edit-todo-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c2185b;
    background: #fff;
    border: 1px solid #f48fb1;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.12s;
}
.profile-edit-todo-link:hover { background: #fff0f5; transform: translateY(-1px); color: #ad1457; }
.profile-verification-open-btn {
    background: none;
    border: none;
    padding: 0;
    color: #ad1457;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.profile-verification-open-btn:hover { color: #e91e63; }
.profile-verification-open-btn--pill {
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #f48fb1;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.profile-verification-open-btn--pill:hover { background: #fff; border-color: #e91e63; color: #ad1457; }
.profile-verification-pending-note { color: #b8860b !important; font-weight: 600; }
.profile-verification-status-msg { border-radius: 12px; padding: 1rem 1.1rem; line-height: 1.45; }
.profile-verification-status-msg strong { display: block; margin-bottom: 0.5rem; font-size: 1.05rem; }
.profile-verification-status-msg p { margin: 0 0 0.65rem; color: #444; font-size: 0.95rem; }
.profile-verification-status-msg p:last-child { margin-bottom: 0; }
.profile-verification-status-pending {
    background: linear-gradient(145deg, #fff8e1, #ffecb3);
    border: 1px solid #ffe082;
}
.profile-verification-status-pending strong { color: #f57f17; }
.profile-verification-status-success {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border: 1px solid #a5d6a7;
}
.profile-verification-status-success strong { color: #2e7d32; }
.profile-verification-status-rejected {
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
    border: 1px solid #ef9a9a;
    margin-bottom: 1rem;
}
.profile-verification-status-rejected strong { color: #c62828; }
.profile-verification-status-hint { font-size: 0.9rem !important; color: #666 !important; }
.profile-verification-submitted-at { margin-top: 0.75rem !important; color: #777 !important; }
.profile-edit-tabs { margin-bottom: 0.5rem; }
.profile-edit-panel { display: none; }
.profile-edit-panel.profile-edit-panel-active { display: block; }
.profile-edit-section { background: #fff; border: 1px solid #fce4ec; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.profile-edit-section h2 { color: #ad1457; border-bottom: 1px solid #fce4ec; padding-bottom: 0.4rem; }
.profile-edit-note { color: #666; margin-bottom: 0.7rem; }
.profile-photos-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.profile-photos-toolbar h2 { margin: 0; }
.profile-photos-hint { margin-top: 0; margin-bottom: 1rem; }
.btn-profile-add-photo {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 1.1rem; border: none; border-radius: 999px;
    background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.35);
}
.btn-profile-add-photo:hover { filter: brightness(1.05); color: #fff; }
.btn-profile-add-photo:focus-visible { outline: 2px solid #e91e63; outline-offset: 2px; }

.profile-photo-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 20000;
    background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
    padding: 1rem; box-sizing: border-box;
}
.profile-photo-modal-overlay.profile-photo-modal-open { display: flex; }

/* Flash success (Mi cuenta / perfil) — mismo patrón que modales del feed */
.flash-success-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 20001;
    background: rgba(0, 0, 0, 0.45); align-items: center; justify-content: center;
    padding: 1rem; box-sizing: border-box;
}
.flash-success-modal-overlay.flash-success-modal-open { display: flex; }
.flash-success-modal-dialog {
    background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); overflow: hidden;
}
.flash-success-modal-title {
    margin: 0; padding: 1rem 1.25rem 0.35rem; font-size: 1.15rem; color: #ad1457;
    font-weight: 700;
}
.flash-success-modal-text {
    margin: 0; padding: 0 1.25rem 1.25rem; font-size: 0.95rem; color: #333;
    line-height: 1.45;
}
.flash-success-modal-footer {
    padding: 0 1.25rem 1.25rem; display: flex; justify-content: flex-end;
}
.flash-success-modal-btn {
    padding: 0.55rem 1.25rem; border: none; border-radius: 999px;
    background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.35);
}
.flash-success-modal-btn:hover { filter: brightness(1.05); color: #fff; }
.flash-success-modal-btn:focus-visible { outline: 2px solid #e91e63; outline-offset: 2px; }

.profile-photo-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
    max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.profile-photo-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid #fce4ec;
}
.profile-photo-modal-header h3 { margin: 0; font-size: 1.15rem; color: #ad1457; }
.profile-photo-modal-close {
    background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
    color: #888; padding: 0 0.25rem;
}
.profile-photo-modal-close:hover { color: #333; }
.profile-photo-modal-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.profile-photo-modal-body label { display: block; font-size: 0.9rem; color: #444; }
.profile-photo-modal-body input[type="text"] { width: 100%; box-sizing: border-box; margin-top: 0.35rem; padding: 0.5rem 0.65rem; border: 1px solid #ddd; border-radius: 8px; }
.profile-photo-modal-body select,
.profile-photo-modal-body textarea { width: 100%; box-sizing: border-box; margin-top: 0.35rem; padding: 0.55rem 0.65rem; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.profile-photo-modal-body textarea { resize: vertical; min-height: 92px; }
.profile-photo-file-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.profile-photo-file-input { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1; }
.profile-photo-file-btn {
    display: inline-block; padding: 0.5rem 1rem; background: #f5f5f5; border: 1px solid #ddd;
    border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; color: #333;
}
.profile-photo-file-label:hover .profile-photo-file-btn { background: #eee; border-color: #ccc; }
.profile-photo-file-name { font-size: 0.85rem; color: #666; flex: 1; min-width: 120px; word-break: break-all; }
.profile-photo-modal-footer {
    display: flex; justify-content: flex-end; gap: 0.65rem; padding: 1rem 1.25rem;
    border-top: 1px solid #eee; background: #fafafa;
}
.btn-profile-modal-cancel {
    padding: 0.5rem 1rem; border: 1px solid #ccc; background: #fff; border-radius: 8px;
    cursor: pointer; font-size: 0.95rem; color: #444;
}
.btn-profile-modal-cancel:hover { background: #f5f5f5; }
.btn-profile-modal-submit {
    padding: 0.5rem 1.15rem; border: none; background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.btn-profile-modal-submit:hover { filter: brightness(1.05); }

.profile-privacy-section { padding: 1.25rem; }
.profile-password-card {
    background: #fff;
    border: 1px solid #f3d7e5;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.profile-password-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #ad1457;
}
.profile-delete-account-card {
    border-color: #ffcdd2;
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}
.profile-delete-account-card h3 {
    color: #b71c1c;
}
.profile-delete-account-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
    cursor: pointer;
    margin-bottom: 1rem;
}
.profile-delete-account-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.profile-delete-account-submit {
    background: linear-gradient(145deg, #e53935, #c62828) !important;
    color: #fff !important;
    border: none;
}
.profile-delete-account-submit:hover {
    filter: brightness(1.05);
}
.profile-delete-account-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

/* Modal asistente: baja de cuenta (estilo bienvenida + pasos tipo “hoja”) */
.profile-delete-account-modal-overlay {
    z-index: 3200;
}
.profile-delete-account-modal-overlay[aria-hidden="true"] {
    display: none !important;
}

/* Confirmación final de baja (encima del asistente) */
.profile-delete-final-confirm-overlay {
    z-index: 3300;
}
.profile-delete-final-confirm-overlay[aria-hidden="true"] {
    display: none !important;
}
.profile-delete-final-confirm-card {
    width: min(440px, calc(100vw - 1.5rem));
    border-color: rgba(255, 182, 193, 0.35);
    animation: welcomeModalPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.profile-delete-final-confirm-inner {
    text-align: center;
    align-items: center;
}
.profile-delete-final-confirm-visual {
    position: relative;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 0.35rem;
}
.profile-delete-final-confirm-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 55%),
        linear-gradient(145deg, rgba(229, 57, 53, 0.35), rgba(183, 28, 28, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.profile-delete-final-confirm-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.profile-delete-final-pill {
    align-self: center;
    background: rgba(229, 57, 53, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.profile-delete-final-confirm-card h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    line-height: 1.2;
    font-weight: 800;
}
.profile-delete-final-lead {
    text-align: center;
    margin-bottom: 0.65rem !important;
    font-size: clamp(0.95rem, 2vw, 1.05rem) !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.profile-delete-final-points {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    list-style: none;
    text-align: left;
    width: 100%;
    max-width: 26rem;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.profile-delete-final-points li {
    position: relative;
    padding-left: 1.15rem;
    margin: 0.35rem 0;
}
.profile-delete-final-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb3c6, #e91e63);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.25);
}
.profile-delete-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.15rem;
}
.profile-delete-final-actions .welcome-btn-secondary,
.profile-delete-final-actions .welcome-btn-primary {
    flex: 1 1 auto;
    min-width: 8.5rem;
    justify-content: center;
}
.profile-delete-final-confirm-btn {
    background: linear-gradient(145deg, #e53935, #b71c1c) !important;
    border: 0;
}
.profile-delete-final-confirm-btn:hover {
    filter: brightness(1.06);
}
.profile-delete-wizard-card {
    border-color: rgba(255, 107, 107, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 8px 28px rgba(183, 28, 28, 0.12);
}
.profile-delete-wizard-inner .welcome-lead {
    margin-bottom: 0.35rem;
}
.profile-delete-wizard-viewport {
    perspective: 920px;
    min-height: min(42vh, 280px);
    position: relative;
}
.profile-delete-wizard-step {
    gap: 0.55rem;
}
.profile-delete-wizard-step-flip {
    animation: profileDeletePageTurn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes profileDeletePageTurn {
    from {
        opacity: 0;
        transform: rotateY(-14deg) translateZ(-10px) translateX(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.profile-delete-reasons-fieldset .profile-delete-wizard-hint {
    margin: 0 0 0.35rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}
.profile-delete-reason-option span {
    font-weight: 500;
}
.profile-delete-wizard-form textarea.profile-delete-other-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
    margin-bottom: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 6rem;
}
.profile-delete-password-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 0.95rem;
}
.profile-delete-password-hint {
    margin: 0.45rem 0 0;
}
.profile-delete-wizard-submit {
    background: linear-gradient(145deg, #e53935, #b71c1c) !important;
    border: 0;
}
.profile-delete-wizard-submit:hover {
    filter: brightness(1.06);
}
.profile-delete-wizard-inline-error {
    margin-bottom: 0.35rem;
}
.profile-delete-wizard-form .profile-muted-label {
    color: rgba(255, 255, 255, 0.58);
    font-weight: 500;
}
html.profile-delete-modal-open body {
    overflow: hidden;
}

.profile-password-intro {
    margin: 0 0 1rem;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.45;
}
.profile-password-form label {
    display: block;
    margin-bottom: 0.85rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #444;
}
.profile-password-form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 22rem;
    box-sizing: border-box;
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
}
.profile-password-form input[type="password"]:focus {
    outline: none;
    border-color: #f48fb1;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}
.profile-password-actions {
    margin-top: 0.5rem;
}
.profile-password-submit {
    padding: 0.65rem 1.35rem !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
}

.profile-privacy-highlight {
    background: linear-gradient(145deg, #fff0f6, #fce4ec);
    border: 1px solid #f8bbd9;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}
.profile-privacy-highlight h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #ad1457;
}
.profile-privacy-highlight p {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.4;
}
.profile-privacy-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.profile-privacy-link {
    display: block;
    background: #fff;
    border: 1px solid #f3d7e5;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.profile-privacy-link-button {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.profile-privacy-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(233, 30, 99, 0.12);
    border-color: #f8bbd9;
}
.profile-privacy-link-title {
    display: block;
    color: #ad1457;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.profile-privacy-link small {
    display: block;
    color: #666;
    font-size: 0.86rem;
}

.profile-edit .hidden { display: none; }
.profile-edit-form .profile-section label { margin-bottom: 0.85rem; }
.profile-edit-form .profile-section input[type="text"],
.profile-edit-form .profile-section input[type="tel"],
.profile-edit-form .profile-section input[type="date"],
.profile-edit-form .profile-section input[type="number"],
.profile-edit-form .profile-section select,
.profile-edit-form .profile-section textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-edit-form .profile-section input:focus,
.profile-edit-form .profile-section select:focus,
.profile-edit-form .profile-section textarea:focus {
    outline: none;
    border-color: #f48fb1;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}
.profile-edit-form .profile-section .form-note {
    display: block;
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.84rem;
    line-height: 1.35;
}
.profile-edit-form-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #fce4ec;
}
.profile-edit-submit-main {
    padding: 0.75rem 1.75rem !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}
.profile-edit-save-hint { margin: 0.6rem 0 0; font-size: 0.82rem; color: #888; max-width: 36rem; }
.profile-edit-save-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1200;
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}
.profile-edit-save-float:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(233, 30, 99, 0.5); color: #fff; }
.profile-edit-save-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.profile-edit-photos-grid { margin-top: 0.5rem; }
.profile-edit-photo-card {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid #f3d7e5 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: #fff !important;
}
.profile-edit-photo-thumb { position: relative; }
.profile-edit-photo-thumb img { height: 200px !important; }
.profile-edit-photo-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.profile-edit-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.65rem;
    background: linear-gradient(180deg, #fafafa, #fff);
    border-top: 1px solid #fce4ec;
}
.profile-edit-photo-form { margin: 0; flex: 1 1 auto; min-width: 0; }
.profile-edit-photo-btn {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c2185b;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.profile-edit-photo-btn:hover { background: #fff5f8; border-color: #f8bbd9; }
.profile-edit-photo-btn--danger { color: #c62828; border-color: #ffcdd2; }
.profile-edit-photo-btn--danger:hover { background: #ffebee; border-color: #ef9a9a; }
.profile-edit-photos-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #fafafa;
    border: 1px dashed #f8bbd9;
    border-radius: 14px;
    margin-top: 0.5rem;
}
.profile-edit-photos-empty p { margin: 0 0 1rem; color: #666; font-size: 0.95rem; }
.profile-section { background: #f9f9f9; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid #eee; }
.profile-section h2 { margin-top: 0; margin-bottom: 1rem; font-size: 1.1rem; color: #333; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: normal; }
.checkbox-label input[type="checkbox"] { margin: 0; }
.age-range { display: flex; align-items: center; gap: 0.5rem; }
.age-range input { width: 5rem; }
.btn-submit { padding: 0.6rem 1.5rem; background: #e91e63; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 0.5rem; }
.btn-submit:hover { background: #c2185b; }
.my-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.my-photos .photo-item { display: flex; flex-direction: column; }
@media (max-width: 640px) {
    .profile-edit-header-meta { align-items: flex-start; width: 100%; }
    .profile-edit-progress-bar { width: 100%; }
    .profile-edit-tabs { overflow-x: auto; white-space: nowrap; }
    .profile-edit-tabs .profile-tab { flex: 0 0 auto; }
    .profile-privacy-section { padding: 1rem; }
    .profile-privacy-link { padding: 0.8rem 0.85rem; }
    .profile-edit-save-float { bottom: 1rem; right: 1rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; }
}

/* ===== Matches ===== */
.matches-page { max-width: 960px; margin: 0 auto; }
.matches-page h1 { margin-top: 0; }
.matches-help { background: linear-gradient(135deg, #fce4ec, #f8bbd9); padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.matches-help a { color: #c2185b; font-weight: 600; }
.matches-empty-box { text-align: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #fafafa, #fff); border-radius: 16px; border: 1px solid #eee; max-width: 400px; margin: 0 auto; }
.matches-empty-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.matches-empty-box p { color: #666; margin-bottom: 1rem; }
.matches-empty-box a { color: #e91e63; }
.btn-matches-primary { display: inline-block; padding: 0.6rem 1.5rem; background: #e91e63; color: #fff; text-decoration: none; border-radius: 24px; font-weight: 600; margin-top: 0.5rem; }
.btn-matches-primary:hover { background: #c2185b; color: #fff; }
.match-card-btn { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 20px; font-size: 0.9rem; text-decoration: none; font-weight: 500; transition: transform 0.15s; }
.match-card-btn:hover { transform: scale(1.03); }
.match-card-btn-chat { background: #e91e63; color: #fff; }
.match-card-btn-chat:hover { color: #fff; background: #c2185b; }
.match-card-btn-gift { background: #ff9800; color: #fff; }
.match-card-btn-gift:hover { color: #fff; background: #f57c00; }
.match-card-btn-profile { background: #f5f5f5; color: #333; border: 1px solid #ddd; }
.match-card-btn-profile:hover { color: #111; background: #eee; }
.matches-list { }
.matches-list h1 { margin-top: 0; }
.match-card { padding: 0.75rem; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.match-card a { color: #06c; text-decoration: none; }
.match-card a:hover { text-decoration: underline; }

/* ===== Likes (recibidos / enviados) ===== */
.likes-page { max-width: 960px; margin: 0 auto; }
.likes-page-title { margin-top: 0; }
.likes-page-help { color: #555; margin-bottom: 1.25rem; line-height: 1.45; font-size: 0.95rem; }
.likes-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.35rem; }
.likes-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.likes-tab:hover { background: #eee; color: #333; }
.likes-tab-active { background: linear-gradient(145deg, #fce4ec, #f8bbd9); color: #ad1457; border-color: #f48fb1; }
.likes-tab-count {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(173, 20, 87, 0.12);
    color: #ad1457;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}
.likes-tab-active .likes-tab-count { background: rgba(173, 20, 87, 0.2); }
.likes-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(180deg, #fafafa, #fff);
    border-radius: 16px;
    border: 1px solid #eee;
    max-width: 480px;
    margin: 0 auto;
}
.likes-empty-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; color: #333; }
.likes-empty p { margin: 0; color: #666; line-height: 1.45; }
.likes-empty a { color: #e91e63; font-weight: 600; }
.likes-grid { margin-top: 0.25rem; }

/* ===== Favoritos ===== */
.btn-fav { background: #ff9800; color: #fff; border: none; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.btn-fav:hover { background: #f57c00; }
.btn-fav[disabled] { background: #f3f3f3; color: #777; border: 1px solid #ddd; cursor: not-allowed; }
.btn-fav[disabled]:hover { background: #f3f3f3; color: #777; }
.favorites-list { max-width: 960px; margin: 0 auto; }
.favorites-list h1 { margin-top: 0; }
.favorites-help { background: #fff8e1; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.95rem; }
.favorites-help a { color: #e65100; }
.favorites-empty { color: #666; }

/* ===== Visitas / Likes recibidos ===== */
.visits-list ul, .likes-received ul { list-style: none; padding: 0; margin: 0; }
.visits-list li, .likes-received li { padding: 0.75rem; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.visits-list .thumb, .likes-received .thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.visits-list .date, .likes-received .date { font-size: 0.85rem; color: #666; margin-left: auto; }

/* Visitas (nuevo diseño) */
.visits-page h1 { margin-top: 0; }
.visits-help { background: linear-gradient(135deg, #fce4ec, #f8bbd9); padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: 0.95rem; color: #5d2a45; }
.visits-empty-box { text-align: center; padding: 3rem 1.5rem; background: linear-gradient(180deg, #fafafa, #fff); border-radius: 16px; border: 1px solid #eee; max-width: 420px; margin: 0 auto; }
.visits-empty-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.visits-empty-box p { color: #666; margin-bottom: 1rem; }
.visits-section { margin-bottom: 1.5rem; }
.visits-section-title { margin: 0 0 0.9rem 0; font-size: 1.05rem; color: #ad1457; font-weight: 700; }
.visits-rows { list-style: none; margin: 0; padding: 0; border: 1px solid #eee; border-radius: 12px; background: #fff; overflow: hidden; }
.visit-row { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; padding: 0.85rem 1rem; border-bottom: 1px solid #f1f1f1; }
.visit-row:last-child { border-bottom: none; }
.visit-row-main { display: flex; align-items: center; gap: 0.8rem; min-width: 0; text-decoration: none; color: inherit; flex: 1; }
.visit-row-main:hover { color: inherit; }
.visit-row-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.visit-row-photo-placeholder { background: linear-gradient(145deg, #e91e63, #ad1457); color: #fff; font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.visit-row-info { min-width: 0; }
.visit-row-name { margin: 0 0 0.2rem; font-size: 1rem; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-row-date { margin: 0; font-size: 0.85rem; color: #666; }
.visit-row-count { display: inline-block; margin-top: 0.4rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #fce4ec; color: #ad1457; font-size: 0.75rem; font-weight: 700; }
.visit-row-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.visit-row-actions .match-card-btn { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
@media (max-width: 680px) {
    .visit-row { flex-direction: column; align-items: stretch; }
    .visit-row-actions { justify-content: flex-start; }
}

/* Ajustes globales (no-admin) para pantallas pequeñas */
@media (max-width: 520px) {
    .cards-swipe {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
    .cards-swipe .card img,
    .cards-swipe .card .placeholder {
        height: 145px;
    }
    .cards-swipe .card h3 {
        margin: 0.45rem 0.55rem 0.2rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }
    .cards-swipe .card p {
        margin: 0 0.55rem 0.35rem;
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .cards-swipe .card-link-wrapper .card-actions,
    .cards-swipe .card a,
    .cards-swipe .card form {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .matches-page,
    .likes-page,
    .favorites-list,
    .visits-page {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
    .matches-help,
    .likes-page-help,
    .favorites-help,
    .visits-help {
        font-size: 0.84rem;
        line-height: 1.35;
        padding: 0.72rem 0.85rem;
    }
    .match-card {
        padding: 0.58rem;
        gap: 0.42rem;
    }
    .match-card-btn {
        padding: 0.34rem 0.64rem;
        font-size: 0.78rem;
        border-radius: 14px;
    }

    .likes-tabs {
        gap: 0.35rem;
        margin-bottom: 0.9rem;
    }
    .likes-tab {
        padding: 0.38rem 0.64rem;
        font-size: 0.78rem;
        gap: 0.25rem;
    }
    .likes-tab-count {
        font-size: 0.68rem;
        padding: 0.08rem 0.3rem;
    }

    .visit-row {
        padding: 0.62rem 0.7rem;
        gap: 0.55rem;
    }
    .visit-row-photo {
        width: 48px;
        height: 48px;
    }
    .visit-row-name {
        font-size: 0.88rem;
    }
    .visit-row-date {
        font-size: 0.76rem;
    }
    .visit-row-count {
        font-size: 0.66rem;
    }
}

@media (max-width: 390px) {
    .cards-swipe .card img,
    .cards-swipe .card .placeholder {
        height: 130px;
    }
    .cards-swipe .card h3 {
        font-size: 0.76rem;
    }
    .cards-swipe .card p {
        font-size: 0.67rem;
    }
    .match-card-btn {
        font-size: 0.74rem;
        padding: 0.3rem 0.56rem;
    }
    .likes-tab {
        font-size: 0.73rem;
    }
}

/* ===== Regalos ===== */
.gifts-page { }
.gifts-page h1, .gifts-page h2 { margin-top: 0; margin-bottom: 0.75rem; }
.gifts-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.gifts-kpi { background: #fff; border: 1px solid #f3d7e5; border-radius: 10px; padding: 0.65rem 0.85rem; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.gifts-kpi .k { display: block; font-size: 0.8rem; color: #777; margin-bottom: 0.25rem; }
.gifts-kpi strong { font-size: 1.05rem; color: #333; }
.gifts-kpi small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #666; }
.gifts-top-actions { margin: 0 0 0.8rem; display: flex; justify-content: flex-end; }
.gifts-recharge-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #f06292 0%, #e91e63 55%, #ad1457 100%);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    font-size: 0.87rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(233, 30, 99, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
    position: relative;
    overflow: hidden;
}
.gifts-recharge-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-120%);
    transition: transform 0.4s ease;
}
.gifts-recharge-btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(233, 30, 99, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.gifts-recharge-btn:hover::before {
    transform: translateX(120%);
}
.gifts-recharge-btn:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.35);
    outline-offset: 2px;
}
.gifts-coming-soon {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #f8bbd9;
    background: linear-gradient(140deg, #fff4f8 0%, #fce4ec 100%);
    box-shadow: 0 1px 10px rgba(233, 30, 99, 0.08);
}
.gifts-coming-soon-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
}
.gifts-coming-soon h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #ad1457;
}
.gifts-coming-soon p {
    margin: 0 0 0.45rem;
    color: #555;
    font-size: 0.92rem;
}
.gifts-coming-soon p:last-child { margin-bottom: 0; }
.gifts-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #ad1457;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.gifts-coming-soon-note {
    font-size: 0.84rem !important;
    color: #6b5c63 !important;
}
.gifts-tabs { display: flex; gap: 0; background: #fff; border-bottom: 2px solid #fce4ec; border-radius: 10px 10px 0 0; overflow: hidden; }
.gifts-tab { padding: 0.75rem 1rem; background: none; border: none; border-bottom: 3px solid transparent; font-weight: 600; color: #666; cursor: pointer; }
.gifts-tab-active { color: #e91e63; border-bottom-color: #e91e63; }
.gifts-panel { display: none; padding: 1rem 0 0; }
.gifts-panel-active { display: block; }
.gifts-store-help { margin: 0 0 0.85rem; color: #555; }
.gifts-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.gifts-filter { border: 1px solid #e0e0e0; background: #fff; color: #555; border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer; font-size: 0.85rem; }
.gifts-filter-active { background: #fce4ec; color: #ad1457; border-color: #f8bbd9; }
.gifts-sort-wrap { margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.gifts-sort-wrap label { font-size: 0.9rem; color: #666; }
.gifts-sort { border: 1px solid #ddd; border-radius: 8px; padding: 0.35rem 0.55rem; background: #fff; color: #444; }
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.gift-item { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; text-align: center; }
.gift-item-upgraded { border-color: #f3d7e5; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.gift-item-upgraded { position: relative; }
.gift-badge { position: absolute; top: 0.45rem; left: 0.45rem; border-radius: 999px; font-size: 0.7rem; padding: 0.15rem 0.45rem; font-weight: 700; }
.gift-badge-popular { background: #e8f5e9; color: #2e7d32; }
.gift-badge-premium { background: #fff3e0; color: #e65100; }
.gift-item img { max-width: 100%; height: auto; }
.gift-item form { margin-top: 0.5rem; }
.gift-item button[type="submit"] { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
.gift-item button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.gifts-send-context { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.gifts-received ul { list-style: none; padding: 0; }
.gifts-received li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.gifts-received-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gifts-received-block { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 0.85rem 1rem; }
.gifts-received-list { list-style: none; padding: 0; margin: 0; }
.gifts-received-list li { padding: 0.5rem 0; border-bottom: 1px solid #f1f1f1; color: #444; font-size: 0.92rem; }
.gifts-received-list li:last-child { border-bottom: none; }
.gifts-received-list li span { color: #777; }
.gifts-received-list li.empty { color: #888; font-style: italic; }
.gifts-received-experience-head p {
    margin: 0 0 0.9rem;
    color: #6b7280;
    font-size: 0.92rem;
}
.gifts-empty-state {
    margin: 0;
    color: #666;
    padding: 0.35rem 0 0.15rem;
}
.gifts-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.85rem;
}
.gift-event-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 0.7rem;
    background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
    border: 1px solid #f2d8e6;
    border-radius: 12px;
    padding: 0.75rem;
}
.gift-event-media img,
.gift-event-fallback {
    width: 82px;
    height: 82px;
    border-radius: 10px;
}
.gift-event-media img {
    object-fit: contain;
    background: #fff;
    border: 1px solid #f3d7e5;
    display: block;
    padding: 0.25rem;
    box-sizing: border-box;
}
.gift-event-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fce4ec, #f8bbd9);
    color: #ad1457;
    font-size: 1.55rem;
}
.gift-event-body h3 {
    margin: 0.1rem 0 0.18rem;
    font-size: 0.98rem;
}
.gift-event-type {
    margin: 0;
    color: #ad1457;
    font-weight: 700;
    font-size: 0.75rem;
}
.gift-event-from {
    margin: 0;
    color: #4b5563;
    font-size: 0.86rem;
}
.gift-event-meta {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.8rem;
}
.gift-event-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.45rem;
}
.gift-event-open-btn,
.gift-event-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, background 0.14s ease;
}
.gift-event-open-btn {
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.28);
}
.gift-event-open-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.gift-event-chat-btn {
    background: #fff;
    color: #ad1457;
    border-color: rgba(173, 20, 87, 0.25);
}
.gift-event-chat-btn:hover { background: #fff3f8; transform: translateY(-1px); }

.gift-open-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20300;
    background: rgba(15, 12, 20, 0.55);
    backdrop-filter: blur(3px);
    padding: 1rem;
}
.gift-open-overlay[aria-hidden="false"] { display: flex; }
.gift-open-modal {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(120% 120% at 20% 10%, #fff 0%, #fff 56%, #fff7fb 100%);
    border-radius: 16px;
    border: 1px solid rgba(233, 30, 99, 0.22);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
    position: relative;
    padding: 1rem 1.05rem 1.1rem;
    text-align: center;
}
.gift-open-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: rgba(255, 255, 255, 0.92);
    color: #555;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.gift-open-ribbon {
    display: inline-block;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: #fce4ec;
    color: #ad1457;
    font-size: 0.73rem;
    font-weight: 700;
}
.gift-open-media {
    width: 112px;
    height: 112px;
    margin: 0.25rem auto 0.55rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fce4ec, #f8bbd9);
}
.gift-open-media.has-image { background: #fff; border: 1px solid #f2d8e6; }
.gift-open-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}
.gift-open-emoji {
    font-size: 2.2rem;
    line-height: 1;
}
.gift-open-modal h3 {
    margin: 0.1rem 0 0.35rem;
    font-size: 1.25rem;
    color: #ad1457;
}
.gift-open-from,
.gift-open-message,
.gift-open-value {
    margin: 0.2rem 0;
    color: #4b5563;
}
.gift-open-actions {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.48rem;
}
.gift-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}
.gift-open-btn-primary {
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
}
.gift-open-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.gift-open-btn-chat {
    background: #fff;
    color: #ad1457;
    border-color: rgba(173, 20, 87, 0.25);
}
.gift-open-modal-info { max-width: 430px; }
.gift-thanks-templates {
    display: grid;
    gap: 0.5rem;
}
.gift-thanks-templates .gift-open-btn {
    text-align: left;
    justify-content: flex-start;
}

/* ===== Modal de regalos ===== */
.gift-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    box-sizing: border-box;
    overscroll-behavior: contain;
}
.gift-modal-overlay.gift-modal-open {
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.gift-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    /* Evita desbordes cuando vh/dvh difieren entre navegadores (barra de URL móvil, zoom del sistema) */
    max-height: min(720px, calc(var(--app-vh, 1vh) * 100 - 2rem));
    max-height: min(720px, calc(100dvh - 2rem));
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.gift-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.gift-modal-header h3 { margin: 0; font-size: clamp(0.95rem, 2.8vw, 1.1rem); }
.gift-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 0.25rem;
    flex-shrink: 0;
}
.gift-modal-close:hover { color: #000; }
.gift-modal-balance {
    margin: 0 1.25rem 0.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
}
.gift-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}
.gift-modal-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative;
    background: #fff;
}
.gift-modal-item--locked {
    opacity: 0.75;
}
.gift-modal-item-inner {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.gift-modal-item-media {
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
    min-height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-modal-item-media--empty {
    min-height: 56px;
    background: #e8e8e8;
}
.gift-modal-item-media img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    display: block;
}
.gift-modal-media-meta {
    display: none;
}
.gift-modal-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    min-width: 0;
}
.gift-modal-item-body strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    line-height: 1.25;
}
.gift-modal-item-cost {
    font-size: 0.8rem;
    color: #666;
}
.gift-modal-send {
    margin-top: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}
.gift-modal-send:hover:not(:disabled) { background: #f57c00; }
.gift-modal-send:disabled { opacity: 0.6; cursor: not-allowed; }

/* Modal elegir regalo (perfil / feed): en pantallas pequeñas, cuadrícula de varias columnas
   con miniaturas completas (contain), sin lista vertical que recorta las imágenes */
@media (max-width: 640px) {
    .gift-modal-overlay {
        align-items: flex-start;
        justify-content: center;
        padding-top: max(0.45rem, env(safe-area-inset-top));
    }
    .gift-modal {
        max-width: calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        width: 100%;
        max-height: min(720px, calc(var(--app-vh, 1vh) * 100 - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom))));
        max-height: min(720px, calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom))));
        border-radius: 14px;
        margin-top: max(0.35rem, env(safe-area-inset-top));
        margin-bottom: max(0.35rem, env(safe-area-inset-bottom));
    }
    .gift-modal-header {
        padding: 0.75rem 0.95rem;
    }
    .gift-modal-header h3 {
        font-size: 1rem;
    }
    .gift-modal-balance {
        margin: 0 0.95rem 0.35rem;
        font-size: 0.84rem;
    }
    .gift-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
        gap: 0.55rem 0.42rem;
        padding: 0.65rem 0.75rem 0.95rem;
        align-content: start;
    }
    .gift-modal-item {
        text-align: center;
        border-radius: 10px;
    }
    .gift-modal-item:not(.gift-modal-item--locked) {
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    }
    .gift-modal-item:not(.gift-modal-item--locked):active {
        transform: scale(0.98);
    }
    .gift-modal-item-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.45rem 0.4rem 0.5rem;
    }
    .gift-modal-item-media {
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        aspect-ratio: 1;
        max-height: 118px;
        border-radius: 10px;
    }
    .gift-modal-item-media img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: center;
    }
    .gift-modal-item-media--empty {
        height: auto;
        min-height: unset;
        aspect-ratio: 1;
        max-height: 118px;
    }
    .gift-modal-item-body {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 0.12rem;
        min-width: 0;
        min-height: 2.2em;
        visibility: visible;
        opacity: 1;
    }
    .gift-modal-item-body strong {
        margin-top: 0;
        font-size: 0.76rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        color: #2f2f2f !important;
        visibility: visible;
        opacity: 1;
    }
    .gift-modal-item-cost {
        font-size: 0.7rem;
        line-height: 1.2;
        color: #666 !important;
        display: block !important;
        visibility: visible;
        opacity: 1;
    }
    /* Ocultar botón: toda la tarjeta envía el regalo */
    .gift-modal-send {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        pointer-events: none;
    }

    .gift-open-modal {
        max-width: min(100%, calc(100vw - 1.15rem));
    }
    .gift-open-media {
        width: min(78vw, 240px);
        height: min(78vw, 240px);
        max-height: min(42vh, 240px);
    }
}

/* Pantallas muy pequeñas: reforzar visibilidad de nombre+precio dentro de la miniatura */
@media (max-width: 420px) {
    .gift-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 0.45rem 0.35rem;
        padding: 0.55rem 0.55rem 0.8rem;
    }
    .gift-modal-item-media {
        max-height: 100px;
    }
    .gift-modal-item-media img {
        object-fit: contain;
        object-position: center 42%;
    }
    /* En pantallas mini, mantener título/precio DEBAJO de la imagen (sin superposición). */
    .gift-modal-media-meta {
        display: none !important;
    }
    .gift-modal-item-inner {
        gap: 0.28rem;
        padding: 0.42rem 0.34rem 0.45rem;
    }
    .gift-modal-item-body {
        display: flex !important;
        position: static !important;
        min-height: 2.05em;
        gap: 0.05rem;
        padding-bottom: 0.02rem;
    }
    .gift-modal-item-body strong {
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: hidden !important;
        clip: auto !important;
        white-space: normal !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.66rem;
        line-height: 1.05;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    .gift-modal-item-cost {
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        font-size: 0.6rem;
        line-height: 1.05;
    }
}

/* Confirmación de regalo enviado (modal simple, muy visible) */
.gift-success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20050;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 12, 20, 0.55);
    backdrop-filter: blur(3px);
}
.gift-success-overlay.gift-success-open {
    display: flex;
}
.gift-success-modal {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    border-radius: 16px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    padding: 1.5rem 1.35rem 1.35rem;
    text-align: center;
    box-sizing: border-box;
}
.gift-success-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 2px 6px rgba(233, 30, 99, 0.25));
}
.gift-success-heading {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ad1457;
    letter-spacing: -0.02em;
}
.gift-success-lead {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #444;
}
.gift-success-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}
.gift-success-btn:hover {
    filter: brightness(1.05);
}
.gift-success-btn:focus-visible {
    outline: 2px solid #ad1457;
    outline-offset: 2px;
}

/* ===== Chat ===== */
.chat-page { max-width: 720px; margin: 0 auto; padding-bottom: 2rem; }

/* Inbox dos columnas (estilo WhatsApp Web en pantallas grandes) */
.chat-page.chat-inbox {
    max-width: 1180px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 1rem;
}
.chat-inbox {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: calc(100dvh - 11.5rem);
    max-height: calc(100dvh - 11.5rem);
    min-height: 300px;
    border: 1px solid #f3d7e5;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 32px rgba(233, 30, 99, 0.08);
}
body.no-footer-page .chat-inbox {
    height: calc(100dvh - 9.5rem);
    max-height: calc(100dvh - 9.5rem);
}
.chat-inbox-sidebar {
    width: 320px;
    min-width: 260px;
    max-width: 38%;
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fffafc, #fff);
    border-right: 1px solid #fce4ec;
}
.chat-inbox-sidebar-head {
    padding: 1rem 1rem 0.65rem;
    border-bottom: 1px solid #fce4ec;
    flex-shrink: 0;
    background: #fff;
}
.chat-inbox-sidebar-title {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ad1457;
    letter-spacing: -0.02em;
}
.chat-inbox-sidebar-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
}
.chat-inbox-sidebar-empty {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-inbox-sidebar-empty::-webkit-scrollbar { display: none; width: 0; height: 0; }
.chat-empty-compact { padding: 1.25rem 1rem; border-radius: 12px; }
.chat-empty-compact .chat-empty-title { font-size: 1.05rem; }
.chat-empty-compact .chat-empty-text { font-size: 0.88rem; margin-bottom: 1rem; }

.chat-conversation-list--inbox {
    flex: 1 1 0;
    min-height: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-conversation-list--inbox::-webkit-scrollbar { display: none; width: 0; height: 0; }
.chat-conversation-list--inbox .chat-conversation-chevron { display: none; }

.chat-conversation-row-active {
    background: linear-gradient(90deg, rgba(252, 228, 236, 0.95), rgba(255, 245, 248, 0.5)) !important;
    box-shadow: inset 3px 0 0 #e91e63;
}
.chat-conversation-row-active:hover { background: linear-gradient(90deg, #fce4ec, #fff5f8) !important; color: inherit; }

.chat-inbox-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}
.chat-inbox-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(165deg, #faf8fa 0%, #fff 50%, #fff5f8 100%);
}
.chat-inbox-placeholder-inner {
    text-align: center;
    max-width: 320px;
}
.chat-inbox-placeholder-icon { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.85; }
.chat-inbox-placeholder-title { margin: 0 0 0.35rem; font-size: 1.25rem; font-weight: 700; color: #ad1457; }
.chat-inbox-placeholder-text { margin: 0; font-size: 0.95rem; color: #777; line-height: 1.5; }

@media (max-width: 899px) {
    .chat-inbox--list .chat-inbox-main { display: none; }
    .chat-inbox--list .chat-inbox-sidebar {
        max-width: none;
        width: 100%;
        border-right: none;
    }
    .chat-inbox--list {
        height: calc(100dvh - 10rem);
        max-height: calc(100dvh - 10rem);
        border-radius: 12px;
    }
    body.no-footer-page .chat-inbox--list {
        height: calc(100dvh - 8rem);
        max-height: calc(100dvh - 8rem);
    }
    .chat-inbox--room .chat-inbox-sidebar { display: none; }
    .chat-inbox--room {
        border: none;
        border-radius: 0;
        box-shadow: none;
        height: calc(100dvh - 10rem);
        max-height: calc(100dvh - 10rem);
    }
    body.no-footer-page .chat-inbox--room {
        height: calc(100dvh - 8rem);
        max-height: calc(100dvh - 8rem);
    }
    .chat-inbox--room .chat-inbox-main {
        width: 100%;
        background: #fff;
    }
    .chat-page.chat-inbox {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (min-width: 900px) {
    .chat-inbox--room .chat-room-back {
        display: none;
    }
}
.chat-page-header { margin-bottom: 1.25rem; }
.chat-page-title { margin: 0 0 0.35rem; font-size: 1.65rem; font-weight: 700; color: #ad1457; letter-spacing: -0.02em; }
.chat-page-subtitle { margin: 0; color: #666; font-size: 0.95rem; line-height: 1.45; }

.chat-empty { border-radius: 16px; border: 1px solid #f8bbd9; background: linear-gradient(180deg, #fffafc, #fff); box-shadow: 0 4px 24px rgba(233, 30, 99, 0.08); padding: 2.5rem 1.5rem; text-align: center; }
.chat-empty-inner { max-width: 360px; margin: 0 auto; }
.chat-empty-title { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 700; color: #333; }
.chat-empty-text { margin: 0 0 1.25rem; color: #666; font-size: 0.95rem; line-height: 1.5; }
.chat-empty-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

.chat-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
    text-decoration: none; border: 2px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.chat-btn:active { transform: scale(0.98); }
.chat-btn-primary {
    background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}
.chat-btn-primary:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4); }
.chat-btn-outline {
    background: #fff; color: #ad1457; border-color: #f8bbd9;
}
.chat-btn-outline:hover { background: #fce4ec; color: #880e4f; border-color: #f48fb1; }
.chat-btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; }

.chat-conversation-list { list-style: none; margin: 0; padding: 0; border: 1px solid #fce4ec; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.chat-conversation-list li { border-bottom: 1px solid #fce4ec; }
.chat-conversation-list li:last-child { border-bottom: none; }

/* Sobrescribe overflow:hidden del bloque anterior: sin esto la lista del inbox no hace scroll */
.chat-conversation-list.chat-conversation-list--inbox {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.chat-conversation-row {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem 0.9rem 0.95rem;
    text-decoration: none; color: inherit; transition: background 0.15s;
}
.chat-conversation-row:hover { background: #fff5f8; color: inherit; }
.chat-conversation-avatar {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(145deg, #fce4ec, #f8bbd9); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}
.chat-conversation-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-conversation-avatar-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-size: 1.15rem; font-weight: 700; color: #ad1457;
}
.chat-conversation-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.chat-conversation-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.chat-conversation-name { font-weight: 700; color: #222; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conversation-time { flex-shrink: 0; font-size: 0.78rem; color: #999; }
.chat-conversation-preview { font-size: 0.85rem; color: #888; }
.chat-conversation-badge {
    flex-shrink: 0; min-width: 1.35rem; height: 1.35rem; padding: 0 0.4rem; border-radius: 999px;
    background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; font-size: 0.72rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.chat-conversation-row-unread {
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.08), rgba(255, 255, 255, 0));
    border-left: 3px solid #e91e63;
    padding-left: calc(0.95rem - 3px);
}
.chat-conversation-row-unread .chat-conversation-name {
    color: #ad1457;
}
.chat-conversation-row-unread .chat-conversation-preview {
    color: #ad1457;
    font-weight: 600;
}
.chat-conversation-row-unread:hover {
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.12), #fff5f8);
}
.chat-conversation-chevron {
    flex-shrink: 0; width: 0.5rem; height: 0.5rem; border-right: 2px solid #e1bee7; border-bottom: 2px solid #e1bee7;
    transform: rotate(-45deg); margin-left: 0.15rem; opacity: 0.7;
}

/* Panel de conversación (dentro del inbox; altura la define .chat-inbox) */
.chat-room-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    padding: 0 0.65rem 0.35rem;
    background: #fff;
}
.chat-room-topbar {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 0.65rem; /*margin-bottom: 0.75rem; padding: 0.35rem 0*/;
    background: #fff;
}
.chat-room-back {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: #fce4ec; color: #ad1457; text-decoration: none; font-size: 1.25rem; font-weight: 700;
    transition: background 0.15s, color 0.15s;
}
.chat-room-back:hover { background: #f8bbd9; color: #880e4f; }
.chat-room-peer {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem; border-radius: 14px; transition: background 0.15s;
}
.chat-room-peer:hover { background: #fff5f8; color: inherit; }
.chat-room-peer-avatar {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    border: 2px solid #fce4ec; box-shadow: 0 2px 10px rgba(233, 30, 99, 0.12);
}
.chat-room-peer-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-room-peer-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(145deg, #e91e63, #ad1457); color: #fff; font-size: 1.1rem; font-weight: 700;
}
.chat-room-peer-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.chat-room-peer-name { font-weight: 700; font-size: 1.1rem; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-peer-hint { font-size: 0.8rem; color: #c2185b; font-weight: 500; }

.chat-room-panel .chat-credits-alert {
    flex-shrink: 0;
    border-radius: 12px; border: 1px solid #ffcc80; padding: 0.85rem 1rem; margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff8e1, #ffecb3); color: #5d4037; font-size: 0.92rem; line-height: 1.45;
}

.chat-messages-wrap {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    overflow: hidden;
}
.chat-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px; border: 1px solid #f3d7e5;
    background: linear-gradient(180deg, #faf8fa 0%, #fff 40%); padding: 1rem 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-messages::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.chat-messages-inner { display: flex; flex-direction: column; gap: 0.65rem; max-width: 100%; padding-bottom: 0.35rem; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; gap: 0.2rem; }
.chat-msg-own { align-self: flex-end; align-items: flex-end; }
.chat-msg-other { align-self: flex-start; }
.chat-msg-bubble {
    padding: 0.65rem 0.95rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; word-break: break-word;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-msg-other .chat-msg-bubble {
    background: #fff; color: #333; border: 1px solid #f0e6ec; border-bottom-left-radius: 4px;
}
.chat-msg-own .chat-msg-bubble {
    background: linear-gradient(145deg, #e91e63, #c2185b); color: #fff; border-bottom-right-radius: 4px;
}
.chat-msg-time { font-size: 0.72rem; color: #999; padding: 0 0.35rem; }

.chat-messages-wrap-locked .chat-messages-locked {
    filter: blur(5px); user-select: none; pointer-events: none; opacity: 0.55;
}
.chat-messages-lock-panel {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1.5rem; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(2px);
    border-radius: 16px; border: 1px dashed #f8bbd9;
}
.chat-messages-lock-title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; color: #ad1457; }
.chat-messages-lock-text { margin: 0 0 1rem; font-size: 0.9rem; color: #666; max-width: 260px; line-height: 1.45; }

.chat-composer {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0.85rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #fce4ec;
    background: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
    position: relative;
}
.chat-composer-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.chat-composer-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
}
.chat-emoji-wrap {
    position: relative;
    flex-shrink: 0;
}
.chat-emoji-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #e8c4d6;
    background: linear-gradient(180deg, #fff, #fff5f8);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.chat-emoji-toggle:hover {
    border-color: #e91e63;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.2);
}
.chat-emoji-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.25);
}
.chat-emoji-toggle:active { transform: scale(0.96); }

.chat-emoji-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(340px, calc(100vw - 2rem));
    max-height: min(280px, 45vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f3d7e5;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 40;
    overflow: hidden;
}
.chat-emoji-panel[hidden] { display: none !important; }

.chat-emoji-cost-note {
    margin: 0;
    padding: 0.5rem 0.65rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6d4c5b;
    background: linear-gradient(180deg, #fff5f8, #fff);
    border-bottom: 1px solid #fce4ec;
    flex-shrink: 0;
}
.chat-emoji-cost-note strong { color: #ad1457; }

.chat-emoji-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.35rem;
    overflow-x: auto;
    flex-shrink: 0;
    border-bottom: 1px solid #fce4ec;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-emoji-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.chat-emoji-tab {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    border: none;
    border-radius: 999px;
    background: #f5f5f5;
    color: #555;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.chat-emoji-tab:hover { background: #eee; color: #333; }
.chat-emoji-tab-active {
    background: linear-gradient(145deg, #fce4ec, #f8bbd9);
    color: #ad1457;
}
.chat-emoji-tab-active:hover { color: #880e4f; }

.chat-emoji-grids {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-emoji-grids::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.15rem;
}
.chat-emoji-grid-hidden { display: none !important; }

.chat-emoji-cell {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.12s;
}
.chat-emoji-cell:hover { background: #fce4ec; }
.chat-emoji-cell:active { background: #f8bbd9; }

.chat-composer-row { flex: 1; display: flex; gap: 0.65rem; align-items: flex-end; min-width: 0; }
.chat-composer-input {
    flex: 1; margin: 0; padding: 0.75rem 1rem; border: 1px solid #e8c4d6; border-radius: 22px; font-size: 0.95rem;
    background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
    resize: none; overflow-y: hidden; line-height: 1.35;
    min-height: 2.85rem; max-height: 9rem; box-sizing: border-box;
    font-family: inherit;
}
textarea.chat-composer-input {
    display: block;
}
.chat-composer-input:focus {
    outline: none; border-color: #e91e63; box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}
.chat-composer-send {
    flex-shrink: 0; padding: 0.75rem 1.25rem; border: none; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
    cursor: pointer; color: #fff; background: linear-gradient(145deg, #e91e63, #c2185b);
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.3); transition: filter 0.15s, transform 0.15s;
}
.chat-send-icon { display: none; }
.chat-composer-send:hover { filter: brightness(1.06); }
.chat-composer-send:active { transform: scale(0.98); }

.chat-room-panel .chat-form-disabled {
    flex-shrink: 0;
    color: #888; font-size: 0.92rem; margin: 0.5rem 0 0; text-align: center; padding: 0.65rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

#chat-form.chat-composer { display: flex; flex-direction: column; }

.chat-composer-flash-error {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.chat-composer-emoji-hint {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.35;
}
.chat-composer-emoji-hint strong { color: #ad1457; font-weight: 600; }

@media (max-width: 640px) {
    .chat-page:not(.chat-inbox) { padding-left: 0.25rem; padding-right: 0.25rem; }
    .chat-msg { max-width: 92%; }
    .chat-conversation-row { padding: 0.8rem 0.85rem; }
    .chat-composer-row { flex-wrap: nowrap; }
    .chat-composer-send { padding: 0.75rem 1rem; }
    .chat-emoji-panel {
        left: auto;
        right: 0;
        width: min(320px, calc(100vw - 1.5rem));
    }
    .chat-emoji-grid { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 520px) {
    .chat-composer-row { gap: 0.45rem; }
    .chat-composer-input {
        padding: 0.68rem 0.85rem;
        font-size: 0.9rem;
    }
    .chat-composer-send {
        width: 2.55rem;
        min-width: 2.55rem;
        height: 2.55rem;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .chat-send-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        padding: 0;
    }
    .chat-send-icon {
        display: inline-block;
        font-size: 1rem;
        line-height: 1;
        transform: translateX(1px);
    }
}

/* ===== Notificaciones ===== */
.notifications-list { }
.notifications-list h1 { margin-top: 0; }
.notifications-list ul { list-style: none; padding: 0; margin: 0; }
.notifications-list li { padding: 0.75rem; border-bottom: 1px solid #eee; }
.notifications-list li.unread { background: #f0f8ff; }

/* ===== Tablas (admin, etc.) ===== */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.5rem 0.75rem; border: 1px solid #ddd; text-align: left; }
th { background: #f5f5f5; font-weight: 600; }
tr:hover { background: #fafafa; }

/* ===== Admin ===== */
/* Más ancho que el resto del sitio (900px) para tablas admin con muchas columnas */
.main:has(.admin-shell) {
    max-width: min(96vw, 1600px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.admin-shell {
    padding-bottom: 2rem;
}

/* ----- Admin: resumen (dashboard) ----- */
.admin-dashboard-header {
    margin-bottom: 0.25rem;
}
.admin-dashboard-lead {
    margin-bottom: 0.75rem;
}
.admin-dashboard-meta {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.admin-dashboard-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.admin-dashboard-meta-sep {
    color: #cbd5e1;
    font-weight: 400;
}

.admin-dashboard-attention {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(230, 81, 0, 0.35);
    background: linear-gradient(135deg, #fff8f5 0%, #fff3e0 100%);
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.08);
}
.admin-dashboard-attention-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.admin-dashboard-attention-body {
    flex: 1 1 200px;
    min-width: 0;
}
.admin-dashboard-attention-title {
    display: block;
    font-size: 0.92rem;
    color: #5d4037;
    margin-bottom: 0.2rem;
}
.admin-dashboard-attention-text {
    margin: 0;
    font-size: 0.9rem;
    color: #6d4c41;
    line-height: 1.45;
}
.admin-dashboard-attention-text a {
    color: #bf360c;
    font-weight: 700;
    text-decoration: none;
}
.admin-dashboard-attention-text a:hover {
    text-decoration: underline;
}
.admin-dashboard-attention-btn {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #e65100, #bf360c);
    border: none;
    box-shadow: 0 2px 10px rgba(191, 54, 12, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.admin-dashboard-attention-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.admin-dashboard-ok {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(46, 125, 50, 0.28);
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
}
.admin-dashboard-ok-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #2e7d32;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-dashboard-ok-title {
    display: block;
    font-size: 0.92rem;
    color: #1b5e20;
    margin-bottom: 0.15rem;
}
.admin-dashboard-ok-text {
    margin: 0;
    font-size: 0.88rem;
    color: #33691e;
    line-height: 1.4;
}

.admin-dashboard-panel {
    margin-bottom: 1.35rem;
    padding: 1.35rem 1.4rem 1.4rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfcfd 0%, #faf8fa 100%);
    border: 1px solid rgba(173, 20, 87, 0.1);
    box-shadow: 0 2px 16px rgba(45, 31, 46, 0.06);
}
.admin-dashboard-panel--actions {
    background: linear-gradient(180deg, #faf9fb 0%, #fff 100%);
}
.admin-dashboard-panel-head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-dashboard-panel-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}
.admin-dashboard-panel-desc {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 48rem;
}

.admin-stat-grid--dash {
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 1rem;
}

.admin-stat-card.admin-stat-card--dash {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
    min-height: 5.5rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.admin-stat-card.admin-stat-card--dash-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45, 31, 46, 0.12);
    border-color: rgba(233, 30, 99, 0.22);
}
.admin-stat-card.admin-stat-card--dash .admin-stat-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.admin-stat-card.admin-stat-card--dash .admin-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}
.admin-stat-card.admin-stat-card--dash .admin-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.admin-stat-card.admin-stat-card--dash .admin-stat-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.1rem;
}
.admin-stat-hint {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ad1457;
    opacity: 0.85;
}
.admin-stat-card.admin-stat-card--dash-link .admin-stat-hint {
    margin-top: 0.45rem;
}

.admin-stat-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-stat-card.admin-stat-card--tone-rose .admin-stat-icon {
    background: linear-gradient(145deg, #fce4ec, #f8bbd9);
    border-color: rgba(233, 30, 99, 0.15);
}
.admin-stat-card.admin-stat-card--tone-rose.admin-stat-card--dash-link .admin-stat-value {
    color: #ad1457;
}

.admin-stat-card.admin-stat-card--tone-slate .admin-stat-icon {
    background: linear-gradient(145deg, #eceff1, #cfd8dc);
    border-color: rgba(55, 71, 79, 0.12);
}
.admin-stat-card.admin-stat-card--tone-slate .admin-stat-value {
    color: #263238;
}

.admin-stat-card.admin-stat-card--tone-indigo .admin-stat-icon {
    background: linear-gradient(145deg, #e8eaf6, #c5cae9);
    border-color: rgba(63, 81, 181, 0.18);
}
.admin-stat-card.admin-stat-card--tone-indigo .admin-stat-value {
    color: #283593;
}

.admin-stat-card.admin-stat-card--tone-violet .admin-stat-icon {
    background: linear-gradient(145deg, #ede7f6, #d1c4e9);
    border-color: rgba(103, 58, 183, 0.18);
}
.admin-stat-card.admin-stat-card--tone-violet .admin-stat-value {
    color: #4527a0;
}

.admin-stat-card.admin-stat-card--tone-amber .admin-stat-icon {
    background: linear-gradient(145deg, #fff8e1, #ffecb3);
    border-color: rgba(255, 152, 0, 0.28);
}
.admin-stat-card.admin-stat-card--tone-amber.admin-stat-card--dash-link .admin-stat-value {
    color: #e65100;
}

.admin-stat-card.admin-stat-card--tone-emerald .admin-stat-icon {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-color: rgba(46, 125, 50, 0.2);
}
.admin-stat-card.admin-stat-card--tone-emerald .admin-stat-value {
    color: #1b5e20;
}

.admin-quick-links--dash {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.admin-quick-card--dash {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.05rem 1.15rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.admin-quick-card--dash:hover {
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.1);
}
.admin-quick-ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(145deg, #faf7f9, #fff);
    border: 1px solid rgba(173, 20, 87, 0.12);
}
.admin-quick-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}
.admin-quick-card--dash .admin-quick-title {
    font-size: 1rem;
}
.admin-quick-card--dash .admin-quick-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.35;
}
.admin-quick-status {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
}
.admin-quick-status--ok {
    color: #2e7d32;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #e8f5e9;
}
.admin-quick-status--link {
    color: #ad1457;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #2d1f2e 0%, #4a3148 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(45, 31, 46, 0.2);
}
.admin-subnav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-subnav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.admin-subnav a.is-active {
    color: #fff;
    background: rgba(233, 30, 99, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.admin-subnav-site {
    margin-left: auto;
    opacity: 0.9;
}

.admin-page-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}
.admin-lead {
    margin: 0 0 1.25rem;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
    max-width: 52rem;
}
.admin-lead-muted {
    margin: -0.5rem 0 1rem;
    font-size: 0.88rem;
    color: #666;
}
.admin-code-path {
    font-size: 0.8rem;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.admin-orphan-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.admin-orphan-summary {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}
.admin-orphan-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}
.admin-orphan-bulk-form {
    margin-bottom: 0.75rem;
}
.admin-th-narrow {
    width: 2.25rem;
}
.admin-orphan-thumb-cell {
    width: 92px;
}
.admin-orphan-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    display: block;
}
.admin-orphan-thumb-empty {
    font-size: 0.75rem;
    color: #777;
}

.admin-alert-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #fff3e0, #ffe0b2);
    border: 1px solid rgba(230, 81, 0, 0.25);
    color: #5d4037;
    font-size: 0.92rem;
}
.admin-alert-banner a {
    color: #bf360c;
    font-weight: 700;
    text-decoration: none;
}
.admin-alert-banner a:hover {
    text-decoration: underline;
}

.admin-section {
    margin-bottom: 1.75rem;
}
.admin-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    font-weight: 700;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(45, 20, 40, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
a.admin-stat-card:hover {
    box-shadow: 0 8px 24px rgba(45, 20, 40, 0.1);
    transform: translateY(-2px);
}
.admin-stat-card-static {
    cursor: default;
}
.admin-stat-card-static:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(45, 20, 40, 0.06);
}

.admin-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}
.admin-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ad1457;
    line-height: 1.1;
}
.admin-stat-card-static .admin-stat-value {
    color: #333;
}
.admin-stat-meta {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.35;
}

.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.admin-quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #faf7f9, #fff);
    border: 1px solid rgba(173, 20, 87, 0.15);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-quick-card:hover {
    border-color: rgba(233, 30, 99, 0.35);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.12);
}
.admin-quick-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: #1a1a1a;
}
.admin-quick-desc {
    font-size: 0.88rem;
    color: #666;
}
.admin-quick-badge {
    margin-top: 0.35rem;
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #ffebee;
    color: #c62828;
}

.admin-empty {
    color: #666;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

.admin-mail-card.card {
    margin-top: 0.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px solid rgba(173, 20, 87, 0.12);
    background: linear-gradient(180deg, #faf7f9, #fff);
}
.admin-mail-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}
.admin-mail-subheading {
    margin: 1.25rem 0 0.65rem;
    font-size: 1rem;
    color: #ad1457;
}
.admin-mail .admin-field-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.admin-mail .admin-field-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.admin-mail-actions {
    margin-top: 1rem;
}
.admin-mail-test {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(248, 187, 217, 0.6);
}
.admin-mail-test .admin-muted {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.admin-promo-intro {
    margin-top: 0;
    max-width: 52rem;
}
.admin-promo-picker {
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.25rem;
}
.admin-promo-picker-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: flex-end;
}
.admin-promo-picker-grow {
    flex: 1 1 220px;
    min-width: 180px;
}
.admin-promo-picker-actions {
    flex: 0 0 auto;
    padding-bottom: 0.15rem;
}
.admin-promo-picker-status {
    margin: 0.65rem 0 0.35rem;
    min-height: 1.35rem;
    font-size: 0.9rem;
}
.admin-promo-picker-table-wrap {
    margin-top: 0.5rem;
}
.admin-promo-picker-table .admin-promo-picker-col-check {
    width: 2.5rem;
    text-align: center;
}
.admin-promo-picker-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-promo-id-count-wrap {
    font-weight: 500;
    color: #666;
}
.admin-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #ad1457;
    cursor: pointer;
    text-decoration: underline;
}
.admin-link-btn:hover {
    color: #880e4f;
}

.admin-promo-form-section .card {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
}
.admin-promo-form .admin-field-textarea {
    width: 100%;
    max-width: 100%;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
}
.admin-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}
.admin-promo-preview-block {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}
.admin-promo-preview-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: #111827;
}
.admin-promo-meta {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #444;
}
.admin-promo-warning {
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #f2c1c1;
    color: #8e0000;
    font-size: 0.9rem;
}
.admin-promo-candidates-table td:last-child {
    white-space: nowrap;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.admin-table-wrap .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.88rem;
}
.admin-table-wrap .admin-table th,
.admin-table-wrap .admin-table td {
    padding: 0.55rem 0.7rem;
    border: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.admin-table-wrap .admin-table th {
    background: linear-gradient(180deg, #faf8fa, #f3f0f4);
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}
.admin-table-wrap .admin-table tbody tr:hover {
    background: #fff8fb;
}
.admin-row-muted {
    opacity: 0.72;
}
.admin-muted {
    color: #999;
}
.admin-nowrap {
    white-space: nowrap;
    font-size: 0.82rem;
}
.admin-center {
    text-align: center;
}
.admin-table-wrap .admin-table .admin-center {
    font-variant-numeric: tabular-nums;
}
.admin-security-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
}
.admin-security-kpi {
    border: 1px solid #f1d6e4;
    background: #fff;
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
}
.admin-security-kpi-label {
    margin: 0;
    font-size: 0.8rem;
    color: #6b5a64;
}
.admin-security-kpi-value {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #8e1f54;
}
.admin-security-topips {
    margin: 0 0 0.95rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
}
.admin-security-topips h2 {
    margin: 0 0 0.55rem;
    font-size: 0.98rem;
}
.admin-security-topips-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.25rem;
}
.admin-security-topips-list li {
    font-size: 0.88rem;
    color: #444;
}
.admin-security-topips-list li span {
    color: #777;
}

.admin-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.admin-pill-role {
    background: #e3f2fd;
    color: #1565c0;
}

/* Admin: filtros listado usuarios */
.admin-users-filters {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf7f9, #fff);
    border: 1px solid rgba(173, 20, 87, 0.12);
}
.admin-users-filters-form {
    margin: 0;
}
.admin-users-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: flex-end;
}
.admin-users-filters-grid .admin-field {
    flex: 1 1 12rem;
    min-width: 0;
}
.admin-users-filters-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}
.admin-users-filters-clear {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ad1457;
    text-decoration: none;
}
.admin-users-filters-clear:hover {
    text-decoration: underline;
}
.admin-users-empty {
    text-align: center;
    padding: 1.5rem 1rem;
}

.admin-actions-cell {
    white-space: normal;
    vertical-align: middle;
}
.admin-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.admin-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid #c5b8d4;
    border-radius: 10px;
    background: #faf8fc;
    color: #5e35b1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-btn-icon:hover {
    background: #f3e5f5;
    border-color: #ab47bc;
    color: #4a148c;
}
.admin-btn-icon svg {
    display: block;
}
.admin-user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 12rem;
}

/* Modal: acciones de usuario (admin) */
.admin-user-actions-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25000;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(15, 10, 20, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
    overscroll-behavior: contain;
}
.admin-user-actions-overlay.admin-user-actions-overlay-open {
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal: encuesta de baja (admin usuarios) */
.admin-closure-survey-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 26000;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(15, 10, 20, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
    overscroll-behavior: contain;
}
.admin-closure-survey-overlay.admin-closure-survey-overlay-open {
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-closure-survey-modal {
    background: #fff;
    border-radius: 14px;
    max-width: min(640px, calc(100vw - 1.5rem));
    width: 100%;
    margin: auto;
    flex-shrink: 0;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid #e8e0e8;
    overflow: hidden;
}
.admin-closure-survey-body {
    padding: 0 1.1rem 1.1rem;
}
.admin-closure-survey-loading {
    margin: 0.25rem 0 0;
}
.admin-closure-survey-content {
    margin-top: 0.35rem;
}
.admin-closure-survey-table-wrap {
    margin-top: 0;
}
.admin-closure-survey-table th[scope='row'] {
    width: 38%;
    max-width: 12rem;
    font-weight: 600;
    color: #444;
    vertical-align: top;
}
.admin-closure-survey-table td {
    vertical-align: top;
    word-break: break-word;
}
.admin-closure-survey-motives {
    margin: 0;
    padding-left: 1.15rem;
}
.admin-closure-survey-motives li {
    margin: 0.2rem 0;
}
.admin-closure-survey-comment {
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.45;
    max-height: min(40vh, 280px);
    overflow-y: auto;
}
.admin-closure-survey-error {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #ffebee;
    color: #b71c1c;
    font-size: 0.9rem;
}
.admin-user-actions-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    margin: auto;
    flex-shrink: 0;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid #e8e0e8;
    overflow: hidden;
}
.admin-user-actions-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #eee;
}
.admin-user-actions-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #4a148c;
}
.admin-user-actions-close {
    border: none;
    background: #f5f5f5;
    color: #666;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.admin-user-actions-close:hover {
    background: #eee;
    color: #111;
}
.admin-user-actions-modal-meta {
    margin: 0;
    padding: 0.5rem 1.1rem 0.75rem;
    font-size: 0.88rem;
    color: #555;
    word-break: break-all;
}
.admin-user-actions-section {
    padding: 0 1.1rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.admin-user-actions-section:last-of-type {
    border-bottom: none;
}
.admin-user-actions-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}
.admin-user-actions-form {
    display: grid;
    gap: 0.65rem;
}
.admin-user-actions-form-inline {
    grid-template-columns: 1fr;
}
.admin-user-actions-field {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}
.admin-user-actions-field .admin-field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
}
.admin-user-actions-form .admin-btn-sm {
    justify-self: start;
    margin-top: 0.15rem;
}
.admin-user-actions-self-hint {
    margin: 0;
    padding: 0 1.1rem 1rem;
    font-size: 0.84rem;
}
.admin-grant-credits-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}
.admin-input-credits-qty {
    min-width: 4.25rem;
    max-width: 6rem;
    width: 4.5rem;
}
.admin-input-credits-note {
    min-width: 7rem;
    max-width: 14rem;
    flex: 1 1 8rem;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}
.admin-btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.admin-btn-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.admin-btn-ok:hover {
    background: #c8e6c9;
}
.admin-btn-warn {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}
.admin-btn-warn:hover {
    background: #ffe0b2;
}
.admin-btn-danger {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}
.admin-btn-danger:hover {
    background: #ffcdd2;
}

.admin-input-inline {
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 0.35rem;
    min-width: 8rem;
}

.admin-reports-summary {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.admin-report-status {
    border: 1px solid transparent;
    text-transform: none;
    font-size: 0.77rem;
}
.admin-report-status-pending { background: #fff8e1; color: #ef6c00; border-color: #ffe0b2; }
.admin-report-status-reviewed { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.admin-report-status-resolved { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.admin-report-status-dismissed { background: #f3e5f5; color: #6a1b9a; border-color: #e1bee7; }
.admin-report-description {
    min-width: 14rem;
    max-width: 22rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}
.admin-report-manage-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
.admin-report-status-select {
    min-width: 7.5rem;
}

.admin-verification .inline { display: inline-block; margin-right: 0.5rem; }
.admin-verification .btn-approve { padding: 0.35rem 0.75rem; background: #2e7d32; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.admin-verification .btn-reject { padding: 0.35rem 0.75rem; background: #c62828; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.admin-verification .btn-approve:hover { background: #1b5e20; }
.admin-verification .btn-reject:hover { background: #b71c1c; }

/* Admin: formulario regalos */
.admin-gift-create {
    margin-bottom: 2rem;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf7f9, #fff);
    border: 1px solid rgba(173, 20, 87, 0.12);
}
.admin-gift-form {
    margin-top: 0.75rem;
}
.admin-gift-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: flex-end;
    margin-bottom: 0.85rem;
}
.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.admin-field-full {
    width: 100%;
    margin-bottom: 0.85rem;
}
.admin-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
}
.admin-field-input {
    padding: 0.5rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 100%;
}
.admin-field-input-narrow {
    max-width: 8rem;
}
.admin-field-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.35rem;
}
.admin-field-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
}
.admin-field-file {
    font-size: 0.88rem;
}
.admin-field-hint {
    font-size: 0.78rem;
    color: #777;
}
.admin-btn-primary {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
}
.admin-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}
.admin-btn-secondary {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}
.admin-btn-secondary:hover {
    background: #eee;
}
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.5rem;
}
.admin-gift-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    vertical-align: middle;
}
.admin-gift-thumb-cell {
    width: 52px;
}
.admin-gift-desc {
    max-width: 14rem;
    font-size: 0.82rem;
    color: #555;
    word-break: break-word;
}
.admin-gift-actions {
    white-space: nowrap;
}
.admin-gift-actions .admin-inline-form {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.admin-link-edit {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ad1457;
    text-decoration: none;
}
.admin-link-edit:hover {
    text-decoration: underline;
}
.admin-gift-current-img {
    margin-bottom: 1rem;
}
.admin-gift-preview {
    max-width: 160px;
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-top: 0.35rem;
}
.verification-page .verification-intro { color: #555; margin-bottom: 1rem; }
.verification-page .verification-status { margin: 0.5rem 0; }
.verification-page .verification-form { margin-top: 1rem; }
.profile-verification-link { margin-bottom: 1rem; font-size: 0.95rem; }
.profile-verification-link a { color: #06c; text-decoration: none; }
.profile-verification-link a:hover { text-decoration: underline; }
.image-upload-loading-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 21000;
    background: rgba(15, 10, 20, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.image-upload-loading-modal.image-upload-loading-open {
    display: flex;
}
.image-upload-loading-box {
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    padding: 1.25rem 1rem;
    text-align: center;
}
.image-upload-loading-box p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #2f233f;
}
.image-upload-loading-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #eadff5;
    border-top-color: #9c27b0;
    margin: 0 auto 0.8rem;
    animation: image-upload-spin 0.9s linear infinite;
}
@keyframes image-upload-spin {
    to { transform: rotate(360deg); }
}
