/* ========================================================
   MODALS.CSS — estilos globales de todos los modales Nearby
======================================================== */

/* Fondo oscuro para cualquier modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

/* Caja base de modal */
.modal {
    width: 100%;
    max-width: 480px;
    background: #101010;
    border-radius: 18px;
    padding: 16px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, .8);
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

/* =======================================================
   LOGIN
======================================================= */

#sessionOverlay .session-modal-card {
    background: radial-gradient(circle at top left, #252525 0, #050505 55%, #000);
    border-radius: 18px;
    padding: 16px;
}

.session-field label {
    font-size: 12px;
    color: #ccc;
}

.pass-wrapper {
    display: flex;
    align-items: center;
    background: #121212;
    border: 1px solid #333;
    border-radius: 10px;
    padding-right: 4px;
}

.pass-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px;
    outline: none;
}

.toggle-pass-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* --- OJO SVG --- */
.eye-icon {
    width: 22px;
    height: 22px;
}

.eye-icon path,
.eye-icon circle {
    stroke: #ccc;
    fill: none;
}

/* Mostrar ojo abierto por defecto */
.eye-open {
    display: block;
}

.eye-closed {
    display: none;
}

/* =======================================================
   MI PERFIL — ESTILO PREMIUM
======================================================= */

.profile-sheet-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

/* FOTO PRINCIPAL */

.profile-avatar-big {
    position: relative;
    width: 100%;
    height: 52vh;
    max-height: 520px;
    overflow: hidden;
    border-radius: 22px;
    padding: 4px;

    background: linear-gradient(
        135deg,
        #ffcc00,
        #ff2e63,
        #08d9d6
    );

    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* GRADIENTE SOBRE FOTO */

.profile-avatar-big::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 35%,
        transparent 70%
    );
    pointer-events: none;
}

/* CONTENEDOR INFO */

.profile-info-container {
    margin-top: -80px;
    padding: 22px;
    border-radius: 22px;

    background: rgba(18,18,18,0.85);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* BOTÓN EDITAR FOTO */

.avatar-edit-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;

    width: 46px;
    height: 46px;

    background: #fff;
    border: 2px solid #ffcc00;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    box-shadow: 0 8px 22px rgba(0,0,0,0.45);

    transition: all .2s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.08);
}

/* NOMBRE + EDAD */

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}

.profile-age-pill {
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #ddd;
}

/* STATUS */

.profile-status-line {
    font-size: 13px;
    margin-top: 6px;
    color: #aaa;
}

/* SECCIONES */

.profile-section {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 8px;
    letter-spacing: .3px;
}

/* INPUTS */

.input-std {
    width: 100%;
    padding: 12px 14px;

    border-radius: 12px;

    background: #161616;

    border: 1px solid #2a2a2a;

    color: #fff;

    margin-bottom: 10px;

    font-size: 14px;

    transition: border .2s ease;
}

.input-std:focus {
    border: 1px solid #ffcc00;
    outline: none;
}

/* BOTÓN PRINCIPAL */

.btn-primary {
    width: 100%;
    background: linear-gradient(
        135deg,
        #ffcc00,
        #ff9f1c
    );

    color: #000;

    font-size: 15px;
    font-weight: 800;

    border-radius: 14px;

    padding: 14px;

    border: none;

    margin-top: 14px;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(255,204,0,0.35);

    transition: all .2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

/* ZONA PELIGRO */

.danger-zone {
    background: rgba(255,59,48,0.06);
    border: 1px solid rgba(255,59,48,0.3);

    padding: 16px;
    margin-top: 26px;

    border-radius: 16px;
}

.profile-section-text {
    color: #ffb3b3;
    margin-bottom: 12px;
    font-size: 13px;
}

/* BOTÓN ELIMINAR */

.btn-danger {
    width: 100%;

    background: rgba(255,59,48,0.12);

    border: 1px solid rgba(255,59,48,0.4);

    padding: 12px;

    color: #ffb3b3;

    font-weight: 700;

    border-radius: 12px;

    cursor: pointer;

    transition: all .2s ease;
}

.btn-danger:hover {
    background: rgba(255,59,48,0.25);
}

/* =======================================================
   BUZON
======================================================= */
/* =======================================================
   BUZÓN ESTILO GRINDR - ALTURA COMPLETA
======================================================= */

#inboxModal .modal {
    width: 100%;
    max-width: 420px;
    background: #101010;
    border-radius: 18px;
    padding: 0;
    height: 100vh; /* ocupa toda la ventana */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#inboxModal .modal-header {
    background: #111;
    padding: 14px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.inbox-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth; /* scroll suave al final */
}

.inbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #181818;
    cursor: pointer;
    transition: background .15s;
}

.inbox-item:hover {
    background: #222;
}

.inbox-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.inbox-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inbox-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.inbox-last {
    font-size: 12px;
    color: #bbb;
}

.inbox-meta {
    text-align: right;
    font-size: 11px;
    color: #aaa;
}

.inbox-count {
    background: #ff3b30;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
}

.inbox-item.unread .inbox-last {
    font-weight: 600;
    color: #fff;
}

/* Input de mensaje */
.inbox-input {
    padding: 10px 14px;
    border-top: 1px solid #222;
    background: #111;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.inbox-input input {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: #222;
    color: #fff;
}

.inbox-input button {
    background: #ff3b30;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.inbox-input button:hover {
    background: #e03228;
}

/* =======================================================
   CHAT (Privado + Público)
======================================================= */

.chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .80);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.chat-window {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER CHAT */
.chat-header {
    height: 56px;
    background: #111;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.chat-icon-btn-simple {
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 20px;
    cursor: pointer;
}

/* Avatar en la cabecera del chat */
.chat-header-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.chat-header-status {
    color: #aaa;
    font-size: 12px;
}

/* ZONA DE MENSAJES */
.chat-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 14px 10px;
    background: #050505;
}

/* ===============================
   CHAT PRIVADO — ESTILO PRO MODERNO
================================== */

/* CONTENEDOR GENERAL DE LOS MENSAJES */
.chat-body {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
    overflow-x: hidden !important;
    background: #050505;
}

/* FILA DE MENSAJE */
.msg-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
    padding: 0 6px;
}

/* TUS MENSAJES (DERECHA) */
.msg-row.me {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* AVATAR */
.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENEDOR DEL MENSAJE */
.msg-body {
    max-width: 72%;
    display: flex;
    flex-direction: column;
}

/* NOMBRE + HORA */
.msg-top {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.msg-row.me .msg-top {
    text-align: right;
}

/* BURBUJA — MENSAJE DE OTRO */
.msg-text {
    background: #181818;
    color: #fff;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    max-width: 100%;
    word-break: break-word;
}

/* BURBUJA — TU MENSAJE */
.msg-row.me .msg-text {
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    color: #000;
    border-radius: 16px 16px 4px 16px;
}

/* ESTADO (âœ“ enviado / âœ“âœ“ visto) */
.msg-status {
    font-size: 10px;
    margin-top: 2px;
    opacity: .85;
    align-self: flex-end;
}

.msg-status .sent {
    color: #777;
}

.msg-status .seen {
    color: #00e676;
    font-weight: 700;
}

/* BOTÓN BORRAR MENSAJE */
.msg-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    margin-top: 4px;
}

.msg-row.me:hover .msg-delete-btn {
    opacity: 1;
}

.msg-delete-btn svg {
    stroke: #f55;
}

/* IMÁGENES DENTRO DEL CHAT */
.msg-image {
    max-width: 75%;
    border-radius: 14px;
    margin-top: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .6);
    cursor: pointer;
}

.msg-row.me .msg-image {
    margin-left: auto;
}

/* INPUT DEL CHAT */
.chat-footer {
    padding: 12px;
    background: #111;
    border-top: 1px solid #222;
}

.chat-input-row {
    background: #181818;
    border-radius: 999px;
    border: 1px solid #333;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.chat-input::placeholder {
    color: #777;
}

.chat-send-btn {
    background: #ffcc00;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

.chat-send-btn:active {
    transform: scale(0.92);
}

/* FOOTER CHAT */
.chat-footer {
    background: #111;
    padding: 12px;
    border-top: 1px solid #222;
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: #181818;
    border: 1px solid #333;
    padding: 12px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
}

.chat-send-btn {
    background: #ffcc00;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    font-weight: 900;
}

/* =======================================================
   HISTORIAS
======================================================= */

#storiesModal .modal {
    padding: 0;
}

.stories-list {
    padding: 10px;
}

/* =======================================================
   VISOR HISTORIA FULLSCREEN
======================================================= */

.story-viewer-modal {
    background: #000;
    padding: 0;
    border-radius: 0;
    max-width: 480px;
}

#storyProgressBar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, .2);
}

#storyProgressFill {
    height: 4px;
    width: 0%;
    background: #ffcc00;
}

.story-media {
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* =======================================================
   IMAGE VIEWER
======================================================= */

.img-viewer-modal {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.img-viewer-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 14px;
}

.img-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
}


/* ============================================================
   CHAT PRIVADO — ESTILO PRO (ARREGLA BURBUJAS Y AVATARES)
   ============================================================ */
/* Tus mensajes alineados a la derecha */
.msg-row.me {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Avatar */
.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Encabezado (nombre + hora) */
.msg-top {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 3px;
}

.msg-row.me .msg-top {
    text-align: right;
}

/* Burbuja cuando es TU mensaje */
.msg-row.me .msg-text {
    background: #ffcc00;
    color: #000;
    border-radius: 16px 16px 4px 16px;
}

/* Estados âœ“ Enviado / âœ“âœ“ Visto */
.msg-status {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.9;
}

.msg-status .sent {
    color: #aaa;
}

.msg-status .seen {
    color: #00e676;
    font-weight: bold;
}

/* Botón de eliminar */
.msg-delete-btn {
    background: none;
    border: none;
    color: #f55;
    font-size: 12px;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* IMÁGENES EN EL CHAT */
.msg-image {
    max-width: 70%;
    border-radius: 12px;
    margin-top: 6px;
    cursor: pointer;
    display: block;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.msg-row.me .msg-image {
    margin-left: auto;
}

/* Fix scroll lateral */
.chat-body {
    overflow-x: hidden !important;
}


/* ============================================================
   CHAT PRIVADO — FIX HEADER VISUAL
   ============================================================ */

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-status {
    font-size: 12px;
    color: #ffcc00;
    opacity: .85;
    margin-top: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

/* Botón secundario – estilo igualado al proyecto */
.btn-secondary,
.session-secondary-btn {
    width: 100%;
    background: #222;
    color: #ffcc00;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #555;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
}

/* Hover */
.btn-secondary:hover,
.session-secondary-btn:hover {
    background: #333;
}

/* Cuando está desactivado */
.btn-secondary:disabled,
.session-secondary-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* MODAL DESTACADO – caja principal */
.modal-featured {
    max-width: 400px;
    background: #101010;
    border-radius: 18px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Texto principal */
.featured-text {
    margin: 10px 0;
    color: #ccc;
    font-size: 14px;
}

/* Caja del plan */
.featured-plan-box {
    background: #181818;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 12px;
    margin: 12px 0;
}

.plan-title {
    font-size: 14px;
    color: #ddd;
}

.plan-price {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--accent);
}

/* BOTONES */
.btn-featured {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.btn-hand {
    background: var(--accent);
    color: #000;
}

.btn-hand:hover {
    background: #ffd933;
}

.btn-paypal {
    background: #003087;
    color: #fff;
}

.btn-paypal:hover {
    background: #0047c0;
}

.btn-cancel {
    background: #222;
    color: #ccc;
    border: 1px solid #444;
}

.btn-cancel:hover {
    background: #333;
}

/* =========================
   MODAL USUARIOS BLOQUEADOS
========================= */

.blocked-users-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ITEM */
.blocked-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;

    background: #0f0f0f;
    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* AVATAR */
.blocked-user-avatar {
    width: 38px;
    /* ðŸ‘ˆ más pequeño */
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.blocked-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NOMBRE */
.blocked-user-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BOTÓN */
.blocked-user-btn {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.35);

    padding: 6px 10px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    cursor: pointer;

    transition: all .2s ease;
}

.blocked-user-btn:hover {
    background: #ffcc00;
    color: #000;
}

/* INDICADOR DE GRABACIÓN */
.recording-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #f55;
    margin-top: 6px;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: #f55;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }

    100% {
        opacity: 1;
    }
}

.chat-icon-btn-simple.recording {
    background: #f55;
    color: #fff;
}

.chat-audio-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.audio-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.audio-bar {
    width: 140px;
    height: 5px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}

.audio-progress {
    width: 0%;
    height: 100%;
    background: #ffcc00;
}

.audio-time {
    font-size: 12px;
    color: #aaa;
    min-width: 40px;
    text-align: right;
}

/* el audio lo ocultamos (controlamos con JS) */
.chat-audio-msg audio {
    display: none;
}

.msg-row.pending-audio {
    opacity: 0.7;
}

/* =========================
   SCROLL MODAL PERFIL
========================= */

.modal {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Chrome / Edge / Safari */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.45);
}

/* =====================================================
   EDITAR PERFIL PREMIUM MATCHBOY
===================================================== */
#profileModal.profile-premium-backdrop{
  background: radial-gradient(circle at 20% 0%, rgba(255,204,0,.12), transparent 32%),
              radial-gradient(circle at 90% 10%, rgba(255,43,214,.12), transparent 30%),
              rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}

#profileModal .profile-premium-modal{
  width: min(520px, 94vw);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #151515 0%, #0b0b0f 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 90px rgba(0,0,0,.72);
}

#profileModal .modal-header{
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 15px 18px;
  margin: 0;
  background: rgba(8,8,10,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#profileModal .modal-title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #00e7ff, #ff2bd6, #ffcc00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#profileModal .close-btn{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}

#profileModal .profile-sheet-header,
#profileModal #profileForm,
#profileModal .danger-zone,
#profileModal #myIdHint{
  margin-left: 16px;
  margin-right: 16px;
}

#profileModal .profile-sheet-header{
  margin-top: 16px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
}

#profileModal .profile-avatar-big{
  height: 42vh;
  min-height: 280px;
  max-height: 430px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffcc00, #ff2e63, #08d9d6);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

#profileModal .profile-avatar-big img{
  border-radius: 20px;
}

#profileModal .avatar-edit-btn{
  width: auto;
  min-width: 96px;
  height: 40px;
  right: 14px;
  bottom: 14px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcc00, #ff9f1c);
  color: #000;
  font-weight: 900;
  border: 0;
}

#profileModal .profile-main-info{
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
}

#profileModal .profile-name{
  font-size: 24px;
}

#profileModal .profile-section{
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

#profileModal .profile-section-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 12px;
}

#profileModal .profile-section-title::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e7ff, #ff2bd6);
  box-shadow: 0 0 12px rgba(255,43,214,.7);
}

#profileModal label{
  display: block;
  margin: 10px 0 6px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 750;
}

#profileModal .input-std,
#profileModal select.input-std{
  min-height: 44px;
  border-radius: 14px;
  background: #101217;
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

#profileModal .input-std:focus,
#profileModal select.input-std:focus{
  border-color: #ffcc00;
  box-shadow: 0 0 0 3px rgba(255,204,0,.12);
}

#profileModal select.input-std{
  appearance: auto;
  cursor: pointer;
}

#profileModal .btn-primary{
  margin: 18px 16px 4px;
  width: calc(100% - 32px);
  border-radius: 16px;
  padding: 15px;
  background: linear-gradient(135deg, #ffcc00, #ff9f1c);
  box-shadow: 0 12px 28px rgba(255,204,0,.26);
}

#profileModal .danger-zone{
  margin-bottom: 16px;
  background: rgba(255,59,48,.08);
  border-color: rgba(255,59,48,.22);
}

#profileModal .profile-photo-warning{
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255,204,0,.10);
  border: 1px solid rgba(255,204,0,.20);
}

@media (max-width: 520px){
  #profileModal .profile-premium-modal{
    width: 96vw;
    max-height: 94vh;
    border-radius: 22px;
  }
  #profileModal .profile-sheet-header,
  #profileModal #profileForm,
  #profileModal .danger-zone,
  #profileModal #myIdHint{
    margin-left: 10px;
    margin-right: 10px;
  }
  #profileModal .profile-avatar-big{
    min-height: 250px;
    height: 38vh;
  }
}


/* ==========================================================
   MATCHBOY PERFIL PUBLICO PRO V2
   Ordena el perfil publico y el album privado.
   ========================================================== */
#viewProfileModal{
  position:fixed !important;
  inset:0 !important;
  z-index:1000002 !important;
  display:none;
  align-items:flex-start !important;
  justify-content:center !important;
  padding:10px 8px 90px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  background:radial-gradient(circle at 50% 0%,rgba(124,60,255,.24),transparent 42%),rgba(0,0,0,.88) !important;
  backdrop-filter:blur(10px) !important;
  -webkit-overflow-scrolling:touch !important;
}

#viewProfileContent{
  width:min(450px,96vw) !important;
  max-width:450px !important;
  margin:0 auto 80px !important;
  border-radius:30px !important;
  overflow:hidden !important;
  background:radial-gradient(circle at 12% 0%,rgba(37,167,255,.14),transparent 34%),radial-gradient(circle at 88% 0%,rgba(255,43,214,.14),transparent 34%),linear-gradient(180deg,#171925,#080911) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 28px 90px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.06) !important;
  color:#fff !important;
}

#viewProfileContent .view-profile-pro-head{
  position:sticky !important;
  top:0 !important;
  z-index:20 !important;
  margin:0 !important;
  padding:14px 16px !important;
  background:rgba(10,12,20,.92) !important;
  backdrop-filter:blur(14px) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}

#viewProfileContent .modal-title{
  font-size:19px !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  background:linear-gradient(90deg,#00e7ff,#ff2bd6,#ffcc00);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
}

#viewProfileContent .view-profile-close{
  width:40px !important;
  height:40px !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.075) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.view-profile-pro-card{
  margin:14px !important;
  padding:14px !important;
  border-radius:28px !important;
  background:radial-gradient(circle at 18% 0%,rgba(255,204,0,.16),transparent 35%),radial-gradient(circle at 92% 8%,rgba(255,43,214,.16),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 18px 48px rgba(0,0,0,.45) !important;
}

.view-profile-hero{
  display:grid !important;
  grid-template-columns:104px 1fr !important;
  gap:14px !important;
  align-items:center !important;
}

.view-profile-photo{
  width:104px !important;
  height:104px !important;
  padding:3px !important;
  border:0 !important;
  border-radius:24px !important;
  background:linear-gradient(135deg,#25a7ff,#7c3cff,#ff2bd6,#ffcc00) !important;
  box-shadow:0 18px 38px rgba(0,0,0,.48),0 0 28px rgba(124,60,255,.20) !important;
  overflow:hidden !important;
  cursor:pointer !important;
  flex-shrink:0 !important;
}

.view-profile-photo img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:20px !important;
  background:#111827 !important;
}

.view-profile-info{min-width:0 !important;}
.view-profile-name-line{display:flex !important;align-items:center !important;gap:8px !important;min-width:0 !important;}
.view-profile-name{font-size:22px !important;line-height:1.05 !important;font-weight:950 !important;color:#fff !important;letter-spacing:-.03em !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.view-profile-verified{width:22px !important;height:22px !important;min-width:22px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;border-radius:50% !important;background:linear-gradient(135deg,#25a7ff,#7c3cff) !important;color:#fff !important;box-shadow:0 0 18px rgba(37,167,255,.36) !important;}
.view-profile-verified svg{width:13px !important;height:13px !important;stroke:#fff !important;}

.view-profile-pills{display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:8px !important;margin-top:9px !important;}
.view-profile-pill.age{padding:7px 10px !important;border-radius:999px !important;font-size:12px !important;font-weight:950 !important;color:#000 !important;background:linear-gradient(135deg,#ffcc00,#ff8a00) !important;box-shadow:0 8px 20px rgba(255,204,0,.23) !important;}

#viewProfileContent .profile-online-pill{display:inline-flex !important;align-items:center !important;gap:7px !important;padding:7px 10px !important;border-radius:999px !important;font-size:12px !important;font-weight:900 !important;border:1px solid rgba(255,255,255,.10) !important;background:rgba(255,255,255,.06) !important;}
#viewProfileContent .profile-online-pill.online{color:#99ffd0 !important;border-color:rgba(34,231,107,.28) !important;background:rgba(34,231,107,.10) !important;}
#viewProfileContent .profile-online-dot{width:9px !important;height:9px !important;border-radius:50% !important;background:#22e76b !important;box-shadow:0 0 12px #22e76b !important;}
#viewProfileContent .profile-online-pill.offline .profile-online-dot{background:#7b8192 !important;box-shadow:none !important;}

.view-profile-meta{margin-top:9px !important;color:#d8def5 !important;font-size:14px !important;font-weight:850 !important;line-height:1.35 !important;}
.view-profile-status{margin-top:5px !important;color:#f1e9ff !important;font-size:14px !important;font-weight:850 !important;line-height:1.35 !important;}

.view-profile-actions{display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;margin-top:14px !important;}
.view-profile-actions-mini{grid-template-columns:1fr !important;}
.view-action-primary,.view-action-secondary{min-height:46px !important;border-radius:17px !important;border:1px solid rgba(255,255,255,.10) !important;font-size:14px !important;font-weight:950 !important;cursor:pointer !important;display:flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;}
.view-action-primary{background:linear-gradient(135deg,#7c3cff,#ff2bd6) !important;color:#fff !important;box-shadow:0 13px 30px rgba(124,60,255,.32) !important;}
.view-action-secondary{background:rgba(255,255,255,.065) !important;color:#eef2ff !important;}
.view-action-primary:disabled{opacity:.58 !important;cursor:not-allowed !important;}
.view-action-primary:active,.view-action-secondary:active{transform:scale(.97) !important;}
.view-profile-premium-note{margin-top:12px;padding:10px 12px;border-radius:16px;background:rgba(255,204,0,.10);border:1px solid rgba(255,204,0,.18);color:#ffeaa5;font-size:12px;font-weight:800;}

#viewProfileContent .view-profile-section{margin:12px 14px !important;padding:15px !important;border-radius:22px !important;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)) !important;border:1px solid rgba(255,255,255,.08) !important;box-shadow:0 10px 28px rgba(0,0,0,.26) !important;}
#viewProfileContent .profile-section-title{color:#fff !important;font-size:15px !important;font-weight:950 !important;letter-spacing:.01em !important;margin-bottom:10px !important;display:flex !important;align-items:center !important;gap:8px !important;}
#viewProfileContent .profile-section-title:before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#25a7ff,#ff2bd6);box-shadow:0 0 12px rgba(255,43,214,.45);}
.view-profile-bio{color:#dce3f7 !important;font-size:15px !important;line-height:1.55 !important;word-break:break-word !important;}
.view-profile-fields{display:grid !important;gap:9px !important;}
.view-profile-fields > div{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important;padding:11px 12px !important;border-radius:15px !important;background:rgba(0,0,0,.20) !important;border:1px solid rgba(255,255,255,.06) !important;color:#dce3f7 !important;font-size:13px !important;}
.view-profile-fields b{color:#fff !important;}
.view-profile-fields a{color:#72d5ff !important;font-weight:850 !important;text-decoration:none !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.view-profile-empty{padding:12px;border-radius:15px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.06);color:#9ca3af;font-size:13px;}

.view-private-section{background:radial-gradient(circle at 12% 0%,rgba(255,204,0,.13),transparent 33%),linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)) !important;border-color:rgba(255,204,0,.16) !important;}
.view-private-title-row{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important;margin-bottom:8px !important;}
.view-private-subtitle{color:#b8bed3;font-size:12px;font-weight:750;margin-top:-3px;}
.view-private-lock{width:38px;height:38px;min-width:38px;border-radius:15px;background:linear-gradient(135deg,#ffcc00,#ff8a00);color:#000;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(255,204,0,.22);}
.view-private-grid{display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:10px !important;}
.view-private-grid > div:not(.private-album-empty){position:relative !important;aspect-ratio:1/1 !important;border-radius:18px !important;padding:2px !important;background:linear-gradient(135deg,rgba(255,204,0,.85),rgba(124,60,255,.55),rgba(255,43,214,.72)) !important;box-shadow:0 12px 28px rgba(0,0,0,.38) !important;overflow:hidden !important;}
.view-private-grid img{width:100% !important;height:100% !important;min-height:0 !important;max-height:none !important;object-fit:cover !important;border-radius:16px !important;display:block !important;cursor:pointer !important;filter:saturate(1.06) contrast(1.03) !important;}
.private-album-empty{grid-column:1 / -1 !important;padding:16px !important;border-radius:18px !important;background:rgba(0,0,0,.24) !important;border:1px dashed rgba(255,255,255,.13) !important;color:#cfd6ea !important;font-size:13px !important;line-height:1.45 !important;}
.private-album-locked-preview{background:linear-gradient(135deg,rgba(124,60,255,.24),rgba(255,43,214,.16)) !important;border-color:rgba(255,255,255,.12) !important;}
.view-private-locked{margin-top:12px !important;padding:16px !important;border-radius:20px !important;background:radial-gradient(circle at top left,rgba(255,204,0,.18),transparent 38%),rgba(0,0,0,.24) !important;border:1px solid rgba(255,204,0,.18) !important;color:#fff !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;}
.view-private-locked-title{font-size:14px;color:#fff;font-weight:850;margin-bottom:4px;}
.view-private-locked-text{font-size:13px;color:#cdd4e8;margin-bottom:10px;line-height:1.4;}
.view-private-access-btn{min-height:42px !important;border-radius:999px !important;background:linear-gradient(135deg,#ffcc00,#ff8a00) !important;color:#000 !important;font-weight:950 !important;padding:9px 15px !important;border:0 !important;box-shadow:0 12px 24px rgba(255,204,0,.22) !important;cursor:pointer !important;}
.view-private-access-btn:disabled{opacity:.70 !important;cursor:default !important;}
.view-private-timer{margin-left:8px;font-size:12px;color:#ffcc00;display:none;font-weight:900;}
.view-private-manage{margin:12px 14px 18px !important;padding:15px !important;border-radius:22px !important;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)) !important;border:1px solid rgba(255,255,255,.08) !important;color:#fff;}
.view-private-manage-title{font-weight:950;margin-bottom:10px;}
#btnPrivateUpload{min-height:40px;border-radius:999px;border:0;background:linear-gradient(135deg,#25a7ff,#7c3cff);color:#fff;font-weight:950;padding:9px 14px;cursor:pointer;}
.view-private-upload-status{margin-top:8px;font-size:12px;color:#aab2c9;}
#btnDeleteAllPrivate{margin-top:10px;min-height:40px;border-radius:999px;background:rgba(255,59,95,.16);color:#ffd4dc;border:1px solid rgba(255,59,95,.35);font-weight:900;padding:9px 14px;cursor:pointer;}

#imgViewerOverlay{z-index:1000005 !important;background:radial-gradient(circle at 50% 10%,rgba(124,60,255,.20),transparent 42%),rgba(0,0,0,.92) !important;backdrop-filter:blur(10px) !important;touch-action:pan-y !important;}
#imgViewerInner{width:min(520px,96vw) !important;height:min(82vh,780px) !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:12px !important;border-radius:30px !important;background:linear-gradient(135deg,rgba(255,204,0,.16),rgba(124,60,255,.10),rgba(255,43,214,.13)) !important;border:1px solid rgba(255,255,255,.14) !important;box-shadow:0 28px 90px rgba(0,0,0,.82) !important;}
#imgViewerImg{max-width:100% !important;max-height:100% !important;width:auto !important;height:auto !important;object-fit:contain !important;border-radius:24px !important;box-shadow:0 18px 56px rgba(0,0,0,.62) !important;user-select:none !important;-webkit-user-select:none !important;-webkit-user-drag:none !important;transition:transform .18s ease, opacity .18s ease !important;}
#imgViewerImg.mb-swipe-left{transform:translateX(-32px) scale(.985) !important;opacity:.72 !important;}
#imgViewerImg.mb-swipe-right{transform:translateX(32px) scale(.985) !important;opacity:.72 !important;}

@media(max-width:640px){
  #viewProfileModal{padding:8px 6px 90px !important;}
  #viewProfileContent{width:calc(100vw - 12px) !important;border-radius:26px !important;}
  .view-profile-pro-card{margin:10px !important;padding:13px !important;border-radius:24px !important;}
  .view-profile-hero{grid-template-columns:92px 1fr !important;gap:12px !important;}
  .view-profile-photo{width:92px !important;height:92px !important;border-radius:22px !important;}
  .view-profile-photo img{border-radius:19px !important;}
  .view-profile-name{font-size:20px !important;}
  .view-profile-actions{grid-template-columns:1fr !important;}
  #viewProfileContent .view-profile-section{margin:10px !important;padding:13px !important;}
  .view-private-grid{gap:8px !important;}
  #imgViewerInner{width:96vw !important;height:78vh !important;border-radius:24px !important;}
}



/* ==========================================================
   FIX ALBUM PRIVADO - MARGENES Y FOTOS COMPLETAS
   ========================================================== */

/* Caja del album con mejor respiracion */
#privateSection,
.profile-private-section,
.private-album-section{
  padding:18px !important;
  margin:14px !important;
  border-radius:24px !important;
  overflow:hidden !important;
}

/* Contenedor de fotos con margen interno */
#privatePhotosView,
.profile-photos-grid,
.private-photos-grid,
.private-album-grid{
  width:100% !important;
  box-sizing:border-box !important;
  padding:10px !important;
  gap:12px !important;
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  border-radius:22px !important;
  background:rgba(0,0,0,.18) !important;
  border:1px solid rgba(255,255,255,.07) !important;
}

/* Cada foto con marco elegante y sin pegarse al borde */
#privatePhotosView > div,
.profile-photos-grid > div,
.private-photos-grid > div,
.private-album-grid > div{
  position:relative !important;
  width:100% !important;
  aspect-ratio:1 / 1 !important;
  padding:4px !important;
  border-radius:20px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  background:linear-gradient(135deg,#ffcc00,#7c3cff,#ff2bd6) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.42) !important;
}

/* Imagen completa dentro del marco */
#privatePhotosView img,
.profile-photos-grid img,
.private-photos-grid img,
.private-album-grid img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:16px !important;
  margin:0 !important;
  max-width:none !important;
  max-height:none !important;
}

/* Cuando el album esta bloqueado, que no se vea apretado */
.private-locked-box{
  margin:14px 0 0 !important;
  padding:18px !important;
  border-radius:22px !important;
  line-height:1.45 !important;
}

/* Boton de solicitud con margen correcto */
#btnPrivateAccess{
  margin-top:12px !important;
  width:auto !important;
  max-width:100% !important;
}

/* Visor de imagen: foto completa sin recortes */
#imgViewerInner{
  padding:18px !important;
  box-sizing:border-box !important;
}

#imgViewerImg{
  max-width:calc(100vw - 44px) !important;
  max-height:calc(100vh - 150px) !important;
  object-fit:contain !important;
}

/* Movil: mas aire sin romper la grilla */
@media(max-width:640px){
  #privateSection,
  .profile-private-section,
  .private-album-section{
    margin:12px !important;
    padding:14px !important;
  }

  #privatePhotosView,
  .profile-photos-grid,
  .private-photos-grid,
  .private-album-grid{
    padding:9px !important;
    gap:10px !important;
  }

  #privatePhotosView > div,
  .profile-photos-grid > div,
  .private-photos-grid > div,
  .private-album-grid > div{
    padding:3px !important;
    border-radius:18px !important;
  }

  #privatePhotosView img,
  .profile-photos-grid img,
  .private-photos-grid img,
  .private-album-grid img{
    border-radius:15px !important;
  }
}

/* Pantallas muy pequenas: 2 columnas para que no se aplasten */
@media(max-width:360px){
  #privatePhotosView,
  .profile-photos-grid,
  .private-photos-grid,
  .private-album-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}



/* ==========================================================
   FIX PERFIL COMPLETO + EDITAR PERFIL PRO
   Corrige cortes, scroll y aplica estilo premium al editor.
   ========================================================== */

/* Fondo de perfil publico y editor */
#viewProfileModal,
#profileViewModal,
.view-profile-modal,
#profileModal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-height:100vh !important;
  display:none;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:10px 8px 110px !important;
  box-sizing:border-box !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,167,255,.18), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255,43,214,.18), transparent 34%),
    rgba(0,0,0,.88) !important;
  backdrop-filter:blur(10px) !important;
  -webkit-overflow-scrolling:touch !important;
}

#viewProfileModal[style*="display: flex"],
#viewProfileModal[style*="display:flex"],
#profileViewModal[style*="display: flex"],
#profileViewModal[style*="display:flex"],
.view-profile-modal[style*="display: flex"],
.view-profile-modal[style*="display:flex"],
#profileModal[style*="display: flex"],
#profileModal[style*="display:flex"],
#profileModal.active,
#profileModal.is-open{
  display:flex !important;
}

/* Caja principal: nunca cortar contenido */
#viewProfileModal .modal,
#profileViewModal .modal,
.view-profile-modal .modal,
#profileModal .modal,
#profileModal .profile-premium-modal{
  width:min(430px,96vw) !important;
  max-width:430px !important;
  min-height:auto !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin:0 auto 120px !important;
  padding:0 !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(37,167,255,.14), transparent 34%),
    radial-gradient(circle at 90% 4%, rgba(255,43,214,.16), transparent 34%),
    linear-gradient(180deg,#171925,#080911) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 28px 90px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.06) !important;
  color:#fff !important;
  box-sizing:border-box !important;
}

/* Header sticky bonito pero sin cortar */
#viewProfileModal .modal-header,
#profileViewModal .modal-header,
.view-profile-modal .modal-header,
#profileModal .modal-header{
  position:sticky !important;
  top:0 !important;
  z-index:30 !important;
  margin:0 !important;
  padding:14px 16px !important;
  border-radius:28px 28px 0 0 !important;
  background:rgba(10,12,20,.94) !important;
  backdrop-filter:blur(14px) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}

#viewProfileModal .modal-title,
#profileViewModal .modal-title,
.view-profile-modal .modal-title,
#profileModal .modal-title{
  font-size:18px !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  background:linear-gradient(90deg,#00e7ff,#ff2bd6,#ffcc00) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
}

#viewProfileModal .close-btn,
#profileViewModal .close-btn,
.view-profile-modal .close-btn,
#profileModal .close-btn{
  width:38px !important;
  height:38px !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.075) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:26px !important;
  line-height:1 !important;
}

/* ================================
   CABECERA PERFIL PUBLICO
================================ */
#viewProfileModal .profile-sheet-header,
#profileViewModal .profile-sheet-header,
.view-profile-modal .profile-sheet-header{
  margin:14px !important;
  padding:14px !important;
  border-radius:26px !important;
  display:grid !important;
  grid-template-columns:96px 1fr !important;
  gap:13px !important;
  align-items:center !important;
  min-height:auto !important;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,204,0,.16),transparent 35%),
    radial-gradient(circle at 92% 8%,rgba(255,43,214,.19),transparent 36%),
    linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 18px 48px rgba(0,0,0,.45) !important;
  overflow:hidden !important;
}

#viewProfileModal .profile-avatar-big,
#profileViewModal .profile-avatar-big,
.view-profile-modal .profile-avatar-big{
  width:92px !important;
  height:92px !important;
  min-width:92px !important;
  max-width:92px !important;
  min-height:92px !important;
  max-height:92px !important;
  border-radius:22px !important;
  padding:3px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#25a7ff,#7c3cff,#ff2bd6,#ffcc00) !important;
  box-shadow:0 16px 34px rgba(0,0,0,.45),0 0 24px rgba(124,60,255,.20) !important;
  position:relative !important;
}

#viewProfileModal .profile-avatar-big img,
#profileViewModal .profile-avatar-big img,
.view-profile-modal .profile-avatar-big img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:18px !important;
  display:block !important;
}

#viewProfileModal .profile-info-container,
#profileViewModal .profile-info-container,
.view-profile-modal .profile-info-container{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  min-width:0 !important;
}

#viewProfileModal .profile-name,
#profileViewModal .profile-name,
.view-profile-modal .profile-name{
  font-size:21px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
}

/* Botones perfil publico en una fila */
#viewProfileModal .profile-actions,
#profileViewModal .profile-actions,
.view-profile-modal .profile-actions{
  grid-column:1 / -1 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  width:100% !important;
  margin-top:12px !important;
}

/* ================================
   EDITAR PERFIL CON MISMO ESTILO
================================ */
#profileModal .profile-sheet-header{
  margin:14px !important;
  padding:14px !important;
  border-radius:26px !important;
  display:grid !important;
  grid-template-columns:104px 1fr !important;
  gap:14px !important;
  align-items:center !important;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,204,0,.16),transparent 35%),
    radial-gradient(circle at 92% 8%,rgba(255,43,214,.19),transparent 36%),
    linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 18px 48px rgba(0,0,0,.45) !important;
  overflow:hidden !important;
}

#profileModal .profile-avatar-col{
  width:104px !important;
  min-width:104px !important;
}

#profileModal .profile-avatar-big{
  width:104px !important;
  height:104px !important;
  min-width:104px !important;
  max-width:104px !important;
  min-height:104px !important;
  max-height:104px !important;
  border-radius:23px !important;
  padding:3px !important;
  background:linear-gradient(135deg,#25a7ff,#7c3cff,#ff2bd6,#ffcc00) !important;
  box-shadow:0 16px 34px rgba(0,0,0,.45),0 0 24px rgba(124,60,255,.20) !important;
  overflow:hidden !important;
}

#profileModal .profile-avatar-big img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:19px !important;
}

#profileModal .avatar-edit-btn{
  position:absolute !important;
  right:6px !important;
  bottom:6px !important;
  width:auto !important;
  min-width:58px !important;
  height:30px !important;
  padding:0 9px !important;
  border-radius:999px !important;
  font-size:11px !important;
  font-weight:950 !important;
  background:linear-gradient(135deg,#ffcc00,#ff8a00) !important;
  color:#000 !important;
  border:0 !important;
  box-shadow:0 10px 22px rgba(255,204,0,.23) !important;
}

#profileModal .profile-photo-warning{
  margin-top:8px !important;
  padding:8px !important;
  font-size:11px !important;
  border-radius:13px !important;
  line-height:1.25 !important;
}

#profileModal .profile-main-info{
  margin:0 !important;
  padding:0 !important;
  min-width:0 !important;
  background:transparent !important;
  border:0 !important;
}

#profileModal .profile-name{
  font-size:21px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
}

#profileModal .profile-status-line{
  margin-top:7px !important;
  color:#cdd4eb !important;
  font-size:13px !important;
  line-height:1.35 !important;
}

/* Formulario editar perfil */
#profileModal #profileForm{
  margin:0 !important;
  padding:0 14px 28px !important;
  box-sizing:border-box !important;
}

#profileModal .profile-section{
  margin:14px 0 !important;
  padding:15px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.26) !important;
}

#profileModal .profile-section-title{
  color:#fff !important;
  font-size:14px !important;
  font-weight:950 !important;
  margin-bottom:12px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

#profileModal .profile-section-title:before{
  content:"" !important;
  width:8px !important;
  height:8px !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#25a7ff,#ff2bd6) !important;
  box-shadow:0 0 12px rgba(255,43,214,.45) !important;
}

#profileModal label{
  color:#e5e7eb !important;
  font-size:13px !important;
  font-weight:800 !important;
  margin:10px 0 6px !important;
}

#profileModal .input-std,
#profileModal select.input-std,
#profileModal textarea.input-std{
  width:100% !important;
  min-height:44px !important;
  box-sizing:border-box !important;
  border-radius:15px !important;
  background:#101217 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#fff !important;
  padding:12px 13px !important;
  margin-bottom:10px !important;
}

#profileModal textarea.input-std{
  min-height:92px !important;
  resize:vertical !important;
}

#profileModal .btn-primary{
  width:100% !important;
  margin:16px 0 0 !important;
  border-radius:17px !important;
  padding:15px !important;
  background:linear-gradient(135deg,#7c3cff,#ff2bd6) !important;
  color:#fff !important;
  box-shadow:0 14px 30px rgba(124,60,255,.30) !important;
}

#profileModal .danger-zone{
  margin:14px !important;
  padding:15px !important;
  border-radius:22px !important;
}

/* ================================
   SECCIONES PERFIL PUBLICO
================================ */
#viewProfileModal .profile-section,
#profileViewModal .profile-section,
.view-profile-modal .profile-section{
  margin:12px 14px !important;
  padding:15px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.26) !important;
  overflow:visible !important;
}

/* Album privado con aire y sin cortes */
#privateSection,
.profile-private-section,
.private-album-section{
  margin:12px 14px 22px !important;
  padding:16px !important;
  border-radius:24px !important;
  overflow:visible !important;
  min-height:auto !important;
}

.private-locked-box{
  margin:12px 0 0 !important;
  padding:16px !important;
  border-radius:20px !important;
  overflow:visible !important;
  line-height:1.45 !important;
}

/* Evitar que el bottom nav tape el final */
body:has(#viewProfileModal[style*="display: flex"]) .bottom-nav,
body:has(#viewProfileModal[style*="display:flex"]) .bottom-nav,
body:has(#profileModal[style*="display: flex"]) .bottom-nav,
body:has(#profileModal[style*="display:flex"]) .bottom-nav{
  z-index:1 !important;
}

/* PC */
@media(min-width:800px){
  #viewProfileModal .modal,
  #profileViewModal .modal,
  .view-profile-modal .modal,
  #profileModal .modal,
  #profileModal .profile-premium-modal{
    width:min(460px,94vw) !important;
    max-width:460px !important;
  }
}

/* Movil */
@media(max-width:640px){
  #viewProfileModal,
  #profileViewModal,
  .view-profile-modal,
  #profileModal{
    padding:8px 6px 120px !important;
  }

  #viewProfileModal .modal,
  #profileViewModal .modal,
  .view-profile-modal .modal,
  #profileModal .modal,
  #profileModal .profile-premium-modal{
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    border-radius:26px !important;
    margin-bottom:130px !important;
  }

  #viewProfileModal .profile-sheet-header,
  #profileViewModal .profile-sheet-header,
  .view-profile-modal .profile-sheet-header{
    grid-template-columns:88px 1fr !important;
    gap:11px !important;
    padding:13px !important;
    margin:10px !important;
  }

  #viewProfileModal .profile-avatar-big,
  #profileViewModal .profile-avatar-big,
  .view-profile-modal .profile-avatar-big{
    width:86px !important;
    height:86px !important;
    min-width:86px !important;
    max-width:86px !important;
    min-height:86px !important;
    max-height:86px !important;
    border-radius:20px !important;
  }

  #profileModal .profile-sheet-header{
    grid-template-columns:92px 1fr !important;
    gap:12px !important;
    padding:13px !important;
    margin:10px !important;
  }

  #profileModal .profile-avatar-col{
    width:92px !important;
    min-width:92px !important;
  }

  #profileModal .profile-avatar-big{
    width:92px !important;
    height:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    min-height:92px !important;
    max-height:92px !important;
    border-radius:21px !important;
  }

  .profile-name,
  #profileModal .profile-name{
    font-size:18px !important;
  }

  .profile-age-pill{
    font-size:11px !important;
    padding:5px 8px !important;
  }

  #viewProfileModal .profile-actions,
  #profileViewModal .profile-actions,
  .view-profile-modal .profile-actions{
    grid-template-columns:1fr 1fr !important;
  }

  #profileModal #profileForm{
    padding:0 10px 34px !important;
  }
}



/* =====================================================
   DESTACADO ACTIVO - ESTADO DEL PAQUETE
===================================================== */
#featuredModal .modal-featured{
  overflow-y:auto;
}

.featured-current-status{
  margin:12px 0 14px;
  padding:14px;
  border-radius:18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,204,0,.22), transparent 42%),
    linear-gradient(135deg,#241b04,#101827);
  border:1px solid rgba(255,204,0,.38);
  box-shadow:0 16px 36px rgba(255,204,0,.10), inset 0 1px 0 rgba(255,255,255,.05);
  color:#fff;
}

.featured-current-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#ffcc00;
  color:#000;
  font-size:11px;
  font-weight:950;
  margin-bottom:8px;
}

.featured-current-title{
  font-size:16px;
  font-weight:950;
  color:#fff;
  margin-bottom:10px;
}

.featured-current-dates{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.featured-current-dates div{
  padding:10px;
  border-radius:14px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.08);
}

.featured-current-dates span{
  display:block;
  color:#aeb4c7;
  font-size:11px;
  font-weight:800;
  margin-bottom:4px;
}

.featured-current-dates strong{
  display:block;
  color:#ffcc00;
  font-size:13px;
  line-height:1.3;
}

.featured-current-note{
  margin-top:10px;
  color:#d1d5db;
  font-size:12px;
  font-weight:800;
}

.featured-plan-grid{
  display:grid !important;
  gap:10px !important;
}

.featured-wallet-plan{
  position:relative;
  width:100% !important;
  padding:16px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:#111827 !important;
  color:#fff !important;
  text-align:left !important;
  cursor:pointer !important;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease !important;
  overflow:hidden;
}

.featured-wallet-plan:active{
  transform:scale(.985);
}

.featured-wallet-plan.active-plan{
  border:2px solid #ffcc00 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,204,0,.22), transparent 42%),
    linear-gradient(135deg,#2d2105,#111827) !important;
  box-shadow:0 0 0 1px rgba(255,204,0,.18), 0 0 22px rgba(255,204,0,.28) !important;
}

.featured-wallet-plan.active-plan::after{
  content:"ACTIVO";
  position:absolute;
  top:10px;
  right:10px;
  background:#ffcc00;
  color:#000;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(255,204,0,.25);
}

.featured-plan-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  padding-right:62px;
}

.featured-plan-title{
  font-weight:900;
  font-size:15px;
}

.featured-plan-pill{
  background:#ffcc00;
  color:#000;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}

.featured-plan-price{
  color:#ffcc00;
  font-size:23px;
  font-weight:950;
  margin-top:5px;
}

.featured-plan-desc{
  color:#aaa;
  font-size:12px;
  margin-top:4px;
  line-height:1.35;
}

.featured-plan-active-info{
  display:none;
  margin-top:10px;
  padding:9px 10px;
  border-radius:13px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,204,0,.20);
  color:#ffe9a3;
  font-size:12px;
  line-height:1.4;
  font-weight:800;
}

.featured-wallet-plan.active-plan .featured-plan-active-info{
  display:block;
}

.featured-wallet-help{
  margin-top:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:11px;
  color:#aaa;
  font-size:12px;
  line-height:1.4;
}

.featured-recharge-btn{
  margin-top:12px !important;
}

@media(max-width:420px){
  .featured-current-dates{
    grid-template-columns:1fr;
  }

  .featured-plan-top{
    padding-right:58px;
  }
}



/* =====================================================
   BOTON PAGAR EN PAQUETES DESTACADOS
===================================================== */
.featured-plan-pay-btn{
  margin-top:12px;
  min-height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg,#ffcc00,#ff9f0a);
  color:#000;
  font-size:13px;
  font-weight:950;
  box-shadow:0 12px 24px rgba(255,204,0,.22);
  border:1px solid rgba(255,255,255,.16);
  text-align:center;
}

.featured-plan-pay-btn::before{
  content:"";
  width:17px;
  height:17px;
  display:inline-block;
  background:currentColor;
  opacity:.9;
  -webkit-mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7.5A3.5 3.5 0 0 1 6.5 4H18a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6.5A3.5 3.5 0 0 1 3 16.5v-9ZM6.5 6A1.5 1.5 0 0 0 5 7.5v9A1.5 1.5 0 0 0 6.5 18H18a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H6.5Zm9 5.25a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7.5A3.5 3.5 0 0 1 6.5 4H18a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6.5A3.5 3.5 0 0 1 3 16.5v-9ZM6.5 6A1.5 1.5 0 0 0 5 7.5v9A1.5 1.5 0 0 0 6.5 18H18a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H6.5Zm9 5.25a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.featured-wallet-plan.active-plan .featured-plan-pay-btn{
  background:rgba(255,255,255,.08);
  color:#ffcc00;
  border-color:rgba(255,204,0,.28);
  box-shadow:none;
}

.featured-wallet-plan.active-plan .featured-plan-pay-btn::after{
  content:" activo";
}

