﻿.textLogin {
    font-size: 0.85rem;
    color: #f5f7ff !important;
}

.btnInicio {
    font-weight: 600;
    background-color: #ffffff !important;
    border-radius: 35px !important;
    color: #2f1742 !important;
    margin: 7px 0 !important;
    font-size: 16px;
}

#portada {
    margin-bottom: 30px;
}

.card-img-top {
    object-fit: contain;
    width: 100%;
    height: auto;
    background-color: #f8f9fa;
}

.miniatura {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.plus-card {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px dashed #aaa;
    margin-bottom: 10px;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d90429;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

#imagenesExtras {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-rosa {
    background-color: #e75480;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-rosa:hover {
    background-color: #d64570;
    color: #fff;
}

/* Auth screens: login / registro / recuperar */
.bg-login {
    background: linear-gradient(145deg, #4f1f7a 0%, #7b2cbf 42%, #b5179e 100%);
    min-height: 100vh;
}

.cardLogin {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px);
    background: rgba(20, 10, 34, 0.2);
}

.cardLogin .card-body {
    background: transparent;
}

.auth-panel {
    background: rgba(44, 20, 68, 0.45);
}

.auth-field-label {
    color: #ffeb99;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cardLogin .form-control-user {
    border-radius: 0.75rem !important;
    border: 1px solid #e5d9f5;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    transition: all 0.2s ease-in-out;
}

.cardLogin .form-control-user:focus {
    border-color: #b24bff;
    box-shadow: 0 0 0 0.2rem rgba(178, 75, 255, 0.22);
}

.auth-brand {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: #fcf9ff;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.auth-btn-primary {
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(90deg, #14c97b, #0ea769);
    box-shadow: 0 10px 20px rgba(20, 201, 123, 0.3);
}

.auth-btn-primary:hover {
    background: linear-gradient(90deg, #10b36e, #0b8f59);
}

.auth-btn-secondary {
    border-radius: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #f7f0ff !important;
    background: rgba(255, 255, 255, 0.14);
}

.auth-btn-secondary:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.24);
}

/* Login: crear cuenta — rojo medio, acorde al branding */
.auth-btn-create-account {
    border-radius: 0.75rem;
    font-weight: 600;
    color: #fff !important;
    border: 1px solid rgba(190, 55, 65, 0.85);
    background: linear-gradient(180deg, #cf4a56 0%, #b33642 48%, #9e2e38 100%);
    box-shadow: 0 8px 20px rgba(160, 40, 52, 0.42);
    text-decoration: none !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.auth-btn-create-account:hover,
.auth-btn-create-account:focus {
    color: #fff !important;
    border-color: rgba(255, 170, 175, 0.65);
    background: linear-gradient(180deg, #dc5864 0%, #bf3f4c 50%, #a93440 100%);
    box-shadow: 0 10px 26px rgba(180, 50, 62, 0.5);
    transform: translateY(-1px);
    text-decoration: none !important;
    outline: none;
}

/* Logo cerezas: más grande y contraste sobre fondo violeta */
.auth-cherry-wrap {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 12px 18px;
    border-radius: 1.35rem;
    background: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 200, 205, 0.2) 45%, rgba(180, 50, 65, 0.12) 100%);
    border: 1px solid rgba(220, 100, 110, 0.55);
    box-shadow:
        0 6px 22px rgba(120, 25, 40, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-cherry-logo {
    width: 156px !important;
    max-width: 55vw;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(100, 20, 30, 0.55)) drop-shadow(0 0 20px rgba(220, 90, 100, 0.45));
}

.auth-radio .form-check-label {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.auth-radio input[type="radio"]:checked + label,
.auth-radio label:has(input[type="radio"]:checked) {
    background-color: #e75480;
    border-color: #e75480;
    color: #fff;
}

/* Lovify home (dating style) */
.lovify-home {
    padding-top: 4px;
}

.lovify-sidebar {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #ece7f4;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(68, 24, 108, 0.08);
    /* Permite @container para el layout de “Aceptado” cuando el panel es estrecho */
    container-type: inline-size;
    container-name: lovify-sidebar;
}

.lovify-sidebar-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    margin: 0;
    background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Barra superior del panel al abrir tab (móvil/tablet): título + cerrar */
.lovify-contact-pane-toolbar {
    display: none !important;
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane .lovify-contact-pane-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lovify-contact-pane-toolbar-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.28);
}

.lovify-contact-pane-search {
    padding: 10px 12px 8px;
    flex-shrink: 0;
    background: #faf8fc;
    border-bottom: 1px solid #eadcf7;
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-search {
    background: rgba(255, 255, 255, 0.98);
}

.lovify-contact-search-wrap .lovify-contact-search-icon {
    background: rgba(123, 44, 191, 0.12);
    color: #7b2cbf;
    border-color: #d8c8eb;
}

.lovify-contact-search-wrap .form-control {
    border-color: #d8c8eb;
    font-size: 0.875rem;
}

.lovify-contact-search-wrap .form-control:focus {
    border-color: #7b2cbf;
    box-shadow: 0 0 0 0.15rem rgba(123, 44, 191, 0.2);
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-close:hover,
.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-close:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.6);
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 214, 248, 0.55);
}

.lovify-home.lovify-home--mobile-tabs .lovify-contact-pane-close:active {
    transform: scale(0.96);
}

.lovify-sidebar-tabs .lovify-tab-btn {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lovify-sidebar-tabs .lovify-tab-btn:hover,
.lovify-sidebar-tabs .lovify-tab-btn:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.lovify-sidebar-tabs .lovify-tab-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 214, 248, 0.55);
}

/* Pestaña activa: pastilla clara (lectura clara de “tab” seleccionado) */
.lovify-sidebar-tabs .lovify-tab-btn.active {
    background: #ffffff;
    color: #5a189a;
    border-color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
    box-shadow: 0 6px 18px rgba(32, 8, 51, 0.22), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transform: translateY(-1px);
}

.lovify-sidebar-tabs .lovify-tab-btn .lovify-tab-icon {
    font-size: 0.95rem;
    opacity: 0.95;
}

.lovify-sidebar-tabs .lovify-tab-btn.active .lovify-tab-icon {
    color: #7b2cbf;
    opacity: 1;
}

.lovify-sidebar-tabs .lovify-tab-btn .lovify-tab-label {
    white-space: nowrap;
}

.lovify-sidebar-tabs .lovify-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #7b2cbf, #b5179e);
    box-shadow: 0 1px 4px rgba(123, 44, 191, 0.45);
}

.lovify-sidebar-tabs .lovify-tab-btn.active .lovify-pending-badge {
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.35);
}

.lovify-sidebar-tabs .lovify-pending-badge {
    margin-left: 0;
}

.lovify-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d63384;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(214, 51, 132, 0.3);
}

.lovify-contact-list {
    max-height: 570px;
    overflow-y: auto;
    padding: 10px 12px;
}

.lovify-contact-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 6px;
    border-radius: 10px;
}

.lovify-contact-item:hover {
    background: #f6f0fd;
}

/* Tarjetas en pestaña Aceptado */
.lovify-contact-item--accepted {
    align-items: flex-start;
    padding: 14px 14px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(152deg, #ffffff 0%, #faf7fe 55%, #f5effb 100%);
    border: 1px solid rgba(123, 44, 191, 0.18);
    box-shadow: 0 4px 18px rgba(68, 24, 108, 0.07), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.lovify-contact-item--accepted:hover {
    background: linear-gradient(152deg, #ffffff 0%, #fbf8ff 50%, #f3ebfb 100%);
    border-color: rgba(123, 44, 191, 0.22);
    box-shadow: 0 8px 26px rgba(68, 24, 108, 0.11), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-1px);
}

.lovify-contact-item--accepted:last-child {
    margin-bottom: 4px;
}

.lovify-avatar--accepted,
.lovify-avatar--pending {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(111, 45, 189, 0.22);
}

.lovify-accepted-body {
    min-width: 0;
}

.lovify-accepted-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.lovify-contact-item--accepted h6.lovify-accepted-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #2d1a3d;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lovify-contact-item--accepted .lovify-accepted-location {
    display: block;
    margin-top: 6px;
    color: #8976a3;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.lovify-contact-item--accepted .lovify-accepted-hint {
    display: block;
    margin-top: 6px;
    color: #7b2cbf;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.lovify-contact-item h6 {
    margin: 0;
    color: #342046;
    font-weight: 700;
    font-size: 0.95rem;
}

/* No aplicar a nombre/edad en Pendiente ni a badges (tienen sus propias reglas) */
.lovify-contact-item span:not(.js-open-pending-profile):not(.lovify-contact-badge):not(.lovify-chat-btn-inner):not(.sr-only):not(.lovify-accepted-location) {
    color: #9282a6;
    font-size: 0.82rem;
}

.lovify-contact-item-pending {
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: linear-gradient(152deg, #ffffff 0%, #fcfbff 55%, #f8f5fc 100%);
    border: 1px solid rgba(123, 44, 191, 0.16);
    box-shadow: 0 2px 12px rgba(68, 24, 108, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.lovify-contact-item-pending:last-child {
    margin-bottom: 4px;
}

.lovify-contact-item-pending:hover {
    background: #f6f0fd;
    border-color: rgba(123, 44, 191, 0.26);
    box-shadow: 0 4px 16px rgba(68, 24, 108, 0.09);
}

.lovify-contact-item-pending.is-rejected {
    border-color: rgba(108, 117, 125, 0.22);
    background: linear-gradient(152deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 2px 10px rgba(60, 60, 67, 0.06);
}

.lovify-contact-item-pending.is-rejected:hover {
    background: #f1f1f2;
    border-color: rgba(108, 117, 125, 0.32);
}

.js-accepted-item {
    cursor: pointer;
}

/* Íconos WhatsApp / Telegram (aceptados): pill group junto al nombre */
.lovify-contact-chat-strip {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(123, 44, 191, 0.14);
    box-shadow: 0 2px 12px rgba(68, 24, 108, 0.07);
}

.lovify-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s ease;
    box-shadow: 0 5px 16px rgba(18, 52, 46, 0.28), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
    position: relative;
}

.lovify-chat-btn:hover {
    transform: translateY(-3px) scale(1.04);
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(18, 52, 46, 0.35), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.lovify-chat-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.45), 0 5px 16px rgba(18, 52, 46, 0.28);
}

.lovify-chat-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.lovify-chat-btn .fab {
    font-size: 1.12rem;
    line-height: 1;
    color: #fff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.lovify-chat-btn-wa {
    background: linear-gradient(160deg, #25d366 0%, #128c7e 48%, #075e54 100%);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.lovify-chat-btn-wa:hover {
    box-shadow: 0 10px 26px rgba(18, 140, 126, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.lovify-chat-btn-tg {
    background: linear-gradient(160deg, #37aee2 0%, #0088cc 52%, #006699 100%);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 5px 16px rgba(0, 102, 153, 0.32), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.lovify-chat-btn-tg:hover {
    box-shadow: 0 10px 26px rgba(0, 102, 153, 0.42), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

/* Aceptados: iconos debajo del nombre en móvil o sidebar estrecho */
@media (max-width: 767.98px) {
    .lovify-accepted-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .lovify-contact-item--accepted h6.lovify-accepted-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .lovify-contact-chat-strip {
        align-self: flex-start;
    }
}

@container lovify-sidebar (max-width: 380px) {
    .lovify-accepted-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .lovify-contact-item--accepted h6.lovify-accepted-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .lovify-contact-chat-strip {
        align-self: flex-start;
    }
}

.lovify-contact-item-pending h6 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* Misma tipografía que el nombre en pestaña Aceptado (.lovify-accepted-title) */
.lovify-contact-item-pending h6 .js-open-pending-profile {
    color: #2d1a3d;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.lovify-contact-item-pending:hover h6 .js-open-pending-profile {
    color: #7b2cbf;
}

/* Ciudad (primer span bajo el bloque de texto; no el tiempo relativo) */
.lovify-contact-item-pending .flex-grow-1 > span:first-of-type {
    font-size: 0.9rem;
}

.lovify-pending-time {
    color: #8976a3;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
}

.lovify-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f2dbd, #d63384);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.lovify-avatar.lovify-avatar-img {
    padding: 0;
    overflow: hidden;
    background: #e8dff5;
}

.lovify-avatar.lovify-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lovify-contact-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #f0e8fa;
    color: #7b2cbf;
}

.lovify-contact-badge-pending {
    background: linear-gradient(180deg, #fff9e6 0%, #fff3cd 100%);
    color: #946200;
    border: 1px solid rgba(234, 179, 8, 0.55);
    box-shadow: 0 1px 4px rgba(148, 98, 0, 0.12);
}

.lovify-contact-badge-rejected {
    background: #fdeaea;
    color: #b4232f;
}

/* Configuración de búsqueda */
.lovify-search-config {
    padding-top: 0.25rem;
}

.lovify-search-title {
    font-weight: 800;
    color: #342046;
    letter-spacing: 0.02em;
}

.lovify-search-form {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ece7f4;
    box-shadow: 0 10px 28px rgba(68, 24, 108, 0.08);
    padding: 1.5rem 1.75rem 2rem;
    width: 100%;
}

.lovify-search-section {
    margin-bottom: 1.35rem;
}

.lovify-search-label {
    font-weight: 700;
    color: #4a3560;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lovify-search-input {
    border-radius: 12px !important;
    border: 2px solid #c84277 !important;
    padding: 0.65rem 1rem !important;
    max-width: 100%;
    width: 100% !important;
}

.lovify-search-input:focus {
    border-color: #7b2cbf !important;
    box-shadow: 0 0 0 0.2rem rgba(123, 44, 191, 0.15) !important;
}

.lovify-dual-range {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lovify-dual-range-overlay {
    position: relative;
    min-height: 26px;
    justify-content: center;
}

.lovify-dual-range-overlay .lovify-range {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
}

.lovify-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    accent-color: #c84277;
    cursor: pointer;
}

.lovify-range-min {
    z-index: 2;
}

.lovify-range-max {
    z-index: 3;
}

.lovify-range-single {
    margin-top: 0.25rem;
}

.lovify-search-check .lovify-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #4a3560;
    margin: 0;
}

.lovify-search-check .lovify-check-label input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #7b2cbf;
}

.lovify-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lovify-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.lovify-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lovify-chip span {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #d5c8e8;
    background: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    color: #342046;
    transition: all 0.18s ease;
}

.lovify-chip input:focus + span {
    box-shadow: 0 0 0 2px rgba(200, 66, 119, 0.35);
}

.lovify-chip input:checked + span {
    background: linear-gradient(135deg, #c84277, #b5179e);
    border-color: transparent;
    color: #fff;
}

.lovify-chip-radio input:checked + span {
    background: linear-gradient(135deg, #c84277, #b5179e);
    border-color: transparent;
    color: #fff;
}

.lovify-search-submit {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1f9d55, #15803d);
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
}

.lovify-search-submit:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #16a34a, #166534);
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.42);
    transform: translateY(-1px);
}

.lovify-search-submit:focus,
.lovify-search-submit:active {
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.28), 0 6px 18px rgba(21, 128, 61, 0.35);
}

.lovify-search-select {
    height: calc(1.5em + 1.4rem + 4px) !important;
    padding-right: 2.2rem !important;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.lovify-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lovify-toolbar button {
    border: 1px solid #d9cceb;
    background: #fdfcff;
    color: #6f5e83;
    border-radius: 999px;
    padding: 8px 18px;
    min-width: 180px;
    font-weight: 600;
}

.lovify-toolbar button.active {
    border-color: transparent;
    background: linear-gradient(90deg, #5f2796, #7b2cbf);
    color: #fff;
}

.lovify-select {
    border: 1px solid #d7cae6;
    border-radius: 999px;
    padding: 8px 14px;
    color: #5a476f;
    background: #fff;
    min-width: 170px;
}

.lovify-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lovify-match-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(68, 24, 108, 0.11);
    border: 1px solid #ece7f4;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lovify-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(68, 24, 108, 0.16);
}

.lovify-match-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(120deg, #b5179e, #7b2cbf, #3a86ff, #b5179e);
    background-size: 260% 260%;
    animation: lovify-border-shift 4.5s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.lovify-match-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Identidad verificada: check-circle outline verde, fondo transparente */
.lovify-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    vertical-align: middle;
    line-height: 0;
    color: #10b981;
    background: transparent;
}

.lovify-verified-badge__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lovify-verified-badge--sidebar {
    width: 1rem;
    height: 1rem;
    margin-left: 0.28rem;
    transform: translateY(-0.5px);
}

.lovify-verified-badge--modal {
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 0.3rem;
    transform: translateY(-0.5px);
}

/* Junto al nombre / edad en tarjetas del feed */
.lovify-verified-badge--feed {
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.32rem;
    flex-shrink: 0;
}

.lovify-match-card-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.lovify-match-card-name {
    line-height: 1.3;
}

/* Compatibilidad con clases anteriores */
.lovify-photo-verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 0;
}

.lovify-modal-verified {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 0;
}

.lovify-sidebar-verified-icon {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 0;
}

.lovify-selfie-video {
    width: 100%;
    max-height: 420px;
    min-height: 200px;
    object-fit: cover;
    vertical-align: middle;
    background: #1a1a1a;
}

.lovify-selfie-preview {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    vertical-align: middle;
    background: #1a1a1a;
}

.lovify-match-info {
    padding: 12px 14px;
}

.verif-modal-thumb {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media (min-width: 576px) {
    .verif-modal-thumb {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.verif-modal-thumb img {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
}

.verif-modal-user-header .verif-modal-user-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.verif-modal-photo-frame {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.verif-modal-photo-img {
    display: block;
    width: 100%;
    min-height: 220px;
    max-height: 340px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .verif-modal-photo-img {
        min-height: 260px;
        max-height: 400px;
    }
}

.verif-modal-selfie-frame {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.verif-modal-selfie-img {
    max-width: 100%;
    width: auto;
    max-height: 520px;
    height: auto;
    object-fit: contain;
}

@media (max-height: 700px) {
    .verif-modal-selfie-img {
        max-height: 45vh;
    }
}

.verif-list-thumb-wrap {
    max-height: 280px;
}

.verif-list-thumb-img {
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

.lovify-match-info h5 {
    margin: 0;
    color: #3f2b55;
    font-size: 1rem;
    font-weight: 700;
}

.lovify-match-info p {
    margin: 4px 0 0 0;
    color: #8e7da3;
    font-size: 0.86rem;
}

.lovify-distance {
    color: #6f5f83 !important;
    font-weight: 600;
}

/* Campana de notificaciones (header) */
.lovify-notif-bell.dropdown-toggle::after {
    display: none;
}

.lovify-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #c9184a, #ff6b6b);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(201, 24, 74, 0.45);
    pointer-events: none;
}

.lovify-notif-dropdown {
    /* Bootstrap .dropdown-menu trae padding: 0.5rem 0 → franja blanca arriba del header */
    padding: 0 !important;
    width: min(360px, calc(100vw - 2rem));
    max-height: 420px;
    overflow: hidden;
    border-radius: 14px !important;
    margin-top: 0.5rem;
}

/* Móvil/tablet: el #wrapper lleva overflow-x:hidden y el panel ancho queda recortado
   si el menú sigue anclado al icono (dropdown-menu-right). Centrar en viewport. */
@media (max-width: 991.98px) {
    #lovifyNotifNavItem .lovify-notif-dropdown.dropdown-menu {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: calc(5.25rem + env(safe-area-inset-top, 0px)) !important;
        transform: translate3d(-50%, 0, 0) !important;
        float: none !important;
        width: min(360px, calc(100vw - 1.25rem)) !important;
        max-width: min(360px, calc(100vw - 1.25rem));
        margin-top: 0 !important;
        max-height: min(420px, calc(100vh - 6.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
        z-index: 1055;
    }
}

.lovify-notif-dropdown-header {
    background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 50%, #b5179e 100%);
    color: #fff !important;
    border-radius: 14px 14px 0 0;
}

.lovify-notif-dropdown-header span {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.2);
}

.lovify-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.lovify-notif-item {
    color: #4a3560;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lovify-notif-item:hover {
    background: #f8f2ff;
    border-color: #eadcf7;
    color: #3f2b55;
}

.lovify-notif-item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(123, 44, 191, 0.12);
    color: #7b2cbf;
}

.lovify-notif-item-title {
    font-size: 0.88rem;
    color: #3f2b55;
}

.lovify-notif-item-text {
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.lovify-notif-item-date {
    font-size: 0.72rem;
}

.lovify-notif-item--read {
    opacity: 0.92;
}

.lovify-notif-item--read .lovify-notif-item-title {
    color: #6c5a7d;
    font-weight: 600 !important;
}

.lovify-notif-read-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #856404;
    background: #fff3cd;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

.lovify-reportes-tabla .lovify-reporte-motivo {
    display: inline-block;
    max-width: 320px;
    white-space: pre-wrap;
    word-break: break-word;
}

.lovify-profile-modal .modal-content {
    border-radius: 20px;
    border: 1px solid #ebdff8;
    box-shadow: 0 22px 48px rgba(66, 21, 107, 0.22);
}

/* Detalle perfil / anuncio: misma franja horizontal que formularios (.lovify-form-card-header) */
.lovify-profile-modal .modal-content.lovify-form-card {
    overflow: hidden;
}

.lovify-profile-modal .lovify-form-card-header .lovify-profile-modal-header-close {
    color: #ffffff;
    opacity: 0.92;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.28);
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
}

.lovify-profile-modal .lovify-form-card-header .lovify-profile-modal-header-close:hover,
.lovify-profile-modal .lovify-form-card-header .lovify-profile-modal-header-close:focus {
    color: #ffffff;
    opacity: 1;
    outline: none;
}

.lovify-modal-main-photo {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3ecfb;
    cursor: zoom-in;
}

.lovify-modal-photo-stage {
    position: relative;
    border-radius: 16px;
}

.lovify-modal-photo-stage .lovify-modal-main-photo {
    display: block;
}

.lovify-photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 31, 122, 0.58);
    color: #ffffff;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(47, 23, 66, 0.35);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lovify-photo-nav-btn:hover,
.lovify-photo-nav-btn:focus {
    background: rgba(79, 31, 122, 0.78);
    color: #ffffff;
    outline: none;
}

.lovify-photo-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.lovify-photo-nav-btn--prev {
    left: 10px;
}

.lovify-photo-nav-btn--next {
    right: 10px;
}

@media (min-width: 768px) {
    .lovify-modal-photo-stage .lovify-photo-nav-btn {
        display: none !important;
    }
}

.lovify-modal-thumbs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 2px;
}

.lovify-thumb-btn {
    border: 1px solid #e6d9f5;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.lovify-thumb-btn.active {
    border-color: #bb4d88;
    box-shadow: 0 0 0 1px rgba(187, 77, 136, 0.28);
}

.lovify-thumb-btn img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
    background: #f7f2fd;
}

.lovify-photo-fullscreen-modal .modal-content {
    background: rgba(0, 0, 0, 0.92);
    border: none;
    border-radius: 12px;
    position: relative;
}

.lovify-photo-fullscreen-modal .lovify-photo-fullscreen-body {
    padding: 10px;
    display: block;
    position: relative;
}

.lovify-photo-fullscreen-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68vh;
}

.lovify-photo-fullscreen-modal #photoFullscreenImg {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lovify-photo-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lovify-photo-fullscreen-nav:hover,
.lovify-photo-fullscreen-nav:focus {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    outline: none;
}

.lovify-photo-fullscreen-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.lovify-photo-fullscreen-nav--prev {
    left: 8px;
}

.lovify-photo-fullscreen-nav--next {
    right: 8px;
}

.lovify-photo-fullscreen-close {
    position: absolute;
    right: 12px;
    top: 8px;
    z-index: 2;
    color: #fff;
    opacity: 1;
    text-shadow: none;
    font-size: 2rem;
}

@media (max-width: 767.98px) {
    .lovify-modal-thumbs-col {
        display: none;
    }
}

.lovify-photo-fullscreen-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px 14px;
}

.btn.lovify-photo-close-btn {
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 16px;
    background: linear-gradient(90deg, #d95771, #c2415d);
}

.btn.lovify-photo-close-btn:hover,
.btn.lovify-photo-close-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #cb4a64, #ad3451);
}

.lovify-modal-headline {
    color: #352245;
}

.lovify-modal-headline-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.lovify-modal-headline-main strong {
    font-size: 1.05rem;
}

.lovify-modal-distance {
    font-size: 0.88rem;
    color: #8a769f;
    font-weight: 600;
}

.lovify-modal-dist-icon {
    color: #7b2cbf;
    margin-right: 4px;
    font-size: 0.85em;
}

.lovify-modal-description {
    color: #655376;
    font-size: 0.92rem;
    line-height: 1.45;
}

.lovify-modal-section {
    border: 1px solid #efe3fb;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fcfaff;
}

.lovify-modal-section h6 {
    color: #7a2f6f;
    font-weight: 700;
    margin-bottom: 8px;
}

.lovify-modal-dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lovify-modal-dl-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    padding: 8px 9px;
    border: 1px solid #efe6fb;
    border-radius: 10px;
    background: #ffffff;
}

.lovify-modal-dl-row--block {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
}

.lovify-modal-dl-row--block dt {
    margin-bottom: 4px;
}

.lovify-modal-dl dt {
    margin: 0;
    color: #8a769f;
    font-weight: 600;
    font-size: 0.82rem;
}

.lovify-modal-dl dd {
    margin: 0;
    color: #352245;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .lovify-modal-dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lovify-modal-dl {
        grid-template-columns: 1fr;
    }
}

.lovify-modal-dt-icon {
    color: #7b2cbf;
    width: 1.1em;
    margin-right: 4px;
}

.lovify-modal-dl dd span {
    vertical-align: middle;
}

.lovify-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lovify-modal-chip {
    border: 1px solid #e26490;
    color: #6d2141;
    background: #fff6fa;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.82rem;
    font-weight: 600;
}

.lovify-modal-chip i {
    margin-right: 6px;
}

/* Mayor especificidad que .btn de sb-admin-2 (evita color gris #858796) */
.btn.lovify-invite-btn {
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 9px 18px;
    background: linear-gradient(90deg, #7b2cbf, #b5179e);
    box-shadow: 0 10px 18px rgba(123, 44, 191, 0.32);
}

.btn.lovify-invite-btn i {
    color: #ffffff;
}

.btn.lovify-invite-btn:hover,
.btn.lovify-invite-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #6d22af, #9e1189);
}

.btn.lovify-invite-btn:hover i,
.btn.lovify-invite-btn:focus i {
    color: #ffffff;
}

.btn.lovify-close-btn {
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 9px 18px;
    background: linear-gradient(90deg, #d95771, #c2415d);
    box-shadow: 0 10px 18px rgba(194, 65, 93, 0.24);
}

.btn.lovify-close-btn i {
    color: #ffffff;
}

.btn.lovify-close-btn:hover,
.btn.lovify-close-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #cb4a64, #ad3451);
}

.btn.lovify-close-btn:hover i,
.btn.lovify-close-btn:focus i {
    color: #ffffff;
}

.btn.lovify-accepted-btn {
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 9px 18px;
    background: #8f8f98;
    opacity: 1;
}

.btn.lovify-rejected-btn {
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 9px 18px;
    background: #cf4a57;
    opacity: 1;
}

.lovify-profile-modal .modal-footer {
    gap: 10px;
}

@keyframes lovify-border-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@media (max-width: 1200px) {
    .lovify-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lovify-toolbar {
        flex-wrap: wrap;
    }

    .lovify-toolbar button {
        min-width: auto;
    }

    .lovify-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Main left sidebar */
.lovify-main-sidebar {
    background: linear-gradient(180deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
    box-shadow: 8px 0 24px rgba(50, 18, 78, 0.2);
}

.lovify-main-sidebar .sidebar-brand {
    height: 5rem;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lovify-sidebar-brand-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Botón cerrar drawer móvil: ícono circular tipo vidrio, alineado a la derecha de la marca */
.lovify-sidebar-close-fab {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(32, 8, 51, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lovify-sidebar-close-fab i {
    font-size: 1.05rem;
    line-height: 1;
}

.lovify-sidebar-close-fab:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(32, 8, 51, 0.32);
}

.lovify-sidebar-close-fab:focus {
    outline: none;
}

.lovify-sidebar-close-fab:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 16px rgba(32, 8, 51, 0.28);
}

.lovify-sidebar-close-fab:active {
    transform: translateY(-50%) scale(0.94);
}

@media (max-width: 767.98px) {
    .lovify-sidebar-close-fab.d-md-none {
        display: inline-flex;
    }

    .lovify-main-sidebar .lovify-sidebar-brand-wrap .sidebar-brand {
        padding-right: 3.35rem;
        padding-left: 0.65rem;
    }
}

.lovify-main-sidebar .sidebar-brand-icon {
    font-size: 1.25rem;
    color: #ffffff;
}

.lovify-main-sidebar .sidebar-brand-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Drawer móvil: marca tipográfica sin ícono (misma idea que Lovify + web en escritorio) */
.lovify-main-sidebar .sidebar-brand-text--app {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.38rem;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.lovify-main-sidebar .sidebar-brand-text--app .sidebar-brand-sup-app {
    font-size: 0.58em;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 230, 250, 0.95);
    top: -0.42em;
    margin-left: 0.1em;
    position: relative;
    line-height: 0;
}

.lovify-main-sidebar .sidebar-heading {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.8px;
    margin-top: 0.7rem;
}

.lovify-main-sidebar .nav-item {
    margin: 0.2rem 0.55rem;
}

.lovify-main-sidebar .nav-item .nav-link {
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    color: rgba(255, 255, 255, 0.93);
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.lovify-main-sidebar .nav-item .nav-link i {
    color: #ffd3ef;
    transition: all 0.2s ease-in-out;
}

.lovify-main-sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateX(2px);
}

.lovify-main-sidebar .nav-item .nav-link:hover i {
    color: #ffffff;
}

.lovify-main-sidebar .nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 8px 18px rgba(32, 8, 51, 0.25);
    color: #ffffff;
    transform: translateX(2px);
}

.lovify-main-sidebar .nav-item.active .nav-link i {
    color: #ffe6f6;
}

.lovify-main-sidebar .nav-item.active .nav-link span {
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.lovify-main-sidebar .sidebar-divider {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.lovify-main-sidebar #sidebarToggle {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Sidebar: más ancho + una sola línea (sb-admin en <768px y .toggled usa 6.5rem y apila ícono/texto) */
ul.lovify-main-sidebar.sidebar .nav-item .nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    box-sizing: border-box;
}

ul.lovify-main-sidebar.sidebar .nav-item .nav-link i {
    margin-right: 0.65rem;
    flex-shrink: 0;
}

ul.lovify-main-sidebar.sidebar .nav-item .nav-link span {
    white-space: nowrap;
}

/* Móvil: barra más ancha que los 6.5rem por defecto */
@media (max-width: 767.98px) {
    /* Sidebar tipo drawer (superpuesto) para no romper el ancho del contenido */
    #wrapper {
        overflow-x: hidden;
    }

    ul.lovify-main-sidebar.sidebar {
        width: min(18.5rem, calc(100vw - 3rem)) !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform 0.22s ease-in-out;
        margin: 0 !important;
    }

    body.sidebar-toggled ul.lovify-main-sidebar.sidebar {
        transform: translateX(0);
    }

    body.sidebar-toggled .lovify-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    #content-wrapper {
        width: 100% !important;
        min-width: 0;
        margin-left: 0 !important;
    }

    #content {
        width: 100%;
    }

    .container-fluid.lovify-home {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .lovify-cards-grid {
        gap: 12px;
    }

    .lovify-match-card img {
        height: 300px;
    }

    .lovify-topbar-brand {
        margin-left: 0.2rem;
    }

    .lovify-topbar-brand-text:not(.lovify-topbar-brand-text--compact) {
        font-size: calc(1rem + 1pt);
        margin-left: 0.45rem;
    }

    .lovify-topbar-brand-text--compact {
        margin-left: 0.45rem;
    }

    .lovify-topbar-brand-text--compact .lovify-topbar-brand-word {
        font-size: calc(1.08rem + 1pt);
    }

    ul.lovify-main-sidebar.sidebar .nav-item .nav-link {
        width: 100% !important;
    }

    ul.lovify-main-sidebar.sidebar .nav-item .nav-link span {
        font-size: 0.82rem;
    }
}

/* Inicio (anuncios): pestañas al pie, feed primero — móvil y tablet (por debajo de lg, como col-* apilados) */
@media (max-width: 991.98px) {
    .lovify-home.lovify-home--mobile-tabs {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-home-row {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-home-feed-col {
        order: -1;
        width: 100%;
        max-width: 100%;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-home-sidebar-col {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        margin-bottom: 0 !important;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-sidebar {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-sidebar-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1038;
        margin: 0;
        border-bottom: none;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
        background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -10px 28px rgba(68, 24, 108, 0.28);
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-mobile-contacts-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1036;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(32, 8, 51, 0.38);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-mobile-contacts-backdrop.d-none {
        display: none !important;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-contact-pane {
        position: fixed;
        z-index: 1037;
        left: 0.75rem;
        right: 0.75rem;
        top: 4.75rem;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        max-height: none;
        border-radius: 16px;
        border: 1px solid #ece7f4;
        background: #ffffff;
        box-shadow: 0 16px 48px rgba(68, 24, 108, 0.18);
        overflow: hidden;
        display: none !important;
        flex-direction: column;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-contact-pane:not(.d-none) {
        display: flex !important;
    }

    .lovify-home.lovify-home--mobile-tabs .lovify-contact-pane .lovify-contact-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 12px;
    }
}

@media (min-width: 768px) {
    ul.lovify-main-sidebar.sidebar {
        width: 21rem !important;
    }

    ul.lovify-main-sidebar.sidebar .nav-item .nav-link {
        width: 100% !important;
        max-width: none;
    }
}

/* Tablet (768–991px): sin cambios al comportamiento anterior del toggle */
@media (min-width: 768px) and (max-width: 991.98px) {
    ul.lovify-main-sidebar.sidebar.toggled {
        width: 16.25rem !important;
    }

    ul.lovify-main-sidebar.sidebar.toggled .nav-item .nav-link {
        width: 100% !important;
        padding: 0.65rem 0.75rem !important;
    }

    ul.lovify-main-sidebar.sidebar.toggled .nav-item .nav-link span {
        display: inline !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    ul.lovify-main-sidebar.sidebar.toggled .nav-item .nav-link i {
        margin-right: 0.65rem !important;
    }

    ul.lovify-main-sidebar.sidebar.toggled .sidebar-brand .sidebar-brand-text {
        display: inline !important;
    }
}

/* Escritorio (≥992px): ocultar menú lateral al pulsar la flecha */
@media (min-width: 992px) {
    ul.lovify-main-sidebar.sidebar {
        transition: width 0.22s ease, opacity 0.18s ease, visibility 0.22s ease;
    }

    ul.lovify-main-sidebar.sidebar.toggled {
        width: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.lovify-sidebar-hidden #content-wrapper {
        width: 100% !important;
    }

    body.lovify-sidebar-hidden .lovify-topbar-menu-btn--desktop-reopen {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2.65rem;
        height: 2.65rem;
        line-height: 1;
        padding: 0;
        color: #ffffff !important;
        background: linear-gradient(145deg, #5f2796 0%, #7b2cbf 50%, #b5179e 100%) !important;
        border: 2px solid #ffffff !important;
        box-shadow:
            0 4px 14px rgba(79, 31, 122, 0.38),
            0 0 0 1px rgba(95, 39, 150, 0.2);
        font-size: 1.1rem;
        transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    }

    body.lovify-sidebar-hidden .lovify-topbar-menu-btn--desktop-reopen i {
        color: #ffffff;
        line-height: 1;
    }

    body.lovify-sidebar-hidden .lovify-topbar-menu-btn--desktop-reopen:hover,
    body.lovify-sidebar-hidden .lovify-topbar-menu-btn--desktop-reopen:focus {
        color: #ffffff !important;
        background: linear-gradient(145deg, #4a1d75 0%, #6a24a8 50%, #9c1488 100%) !important;
        border-color: #ffffff !important;
        box-shadow:
            0 6px 18px rgba(79, 31, 122, 0.45),
            0 0 0 2px rgba(123, 44, 191, 0.35);
        transform: translateY(-1px);
    }

    body.lovify-sidebar-hidden .lovify-topbar-menu-btn--desktop-reopen:focus-visible {
        outline: none;
        box-shadow:
            0 6px 18px rgba(79, 31, 122, 0.45),
            0 0 0 3px rgba(123, 44, 191, 0.45);
    }
}

@media (max-width: 991.98px) {
    .lovify-topbar-menu-btn--desktop-reopen {
        display: none !important;
    }
}

.profile-main-photo {
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #eadcf7;
}

.profile-thumb {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eadcf7;
}

.lovify-profile-form .card {
    border-radius: 16px;
}

/* Franja superior del título: mismo morado que el menú lateral (.lovify-main-sidebar) */
.lovify-form-card {
    border-radius: 16px;
    overflow: hidden;
}

.lovify-form-card .lovify-form-card-header {
    background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
    padding: 0.55rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.lovify-form-card .lovify-form-card-header--compact {
    padding: 0.45rem 1.25rem;
}

.lovify-form-card .lovify-form-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.28);
}

.lovify-form-card .lovify-form-card-header--compact .lovify-form-card-title {
    font-size: 0.98rem;
}

/* Perfil usuario: secciones tipo acordeón en móvil / tablet (solo ≤991px) */
@media (max-width: 991.98px) {
    .lovify-perfil-accordion-header {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: filter 0.15s ease, box-shadow 0.15s ease;
    }

    .lovify-perfil-accordion-header:hover {
        filter: brightness(1.06);
    }

    .lovify-perfil-accordion-header:active {
        filter: brightness(0.96);
    }

    .lovify-perfil-accordion-header:focus {
        outline: none;
    }

    .lovify-perfil-accordion-header:focus-visible {
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
    }

    .lovify-perfil-section-icon {
        font-size: 1.15rem;
        line-height: 1;
        color: rgba(255, 250, 255, 0.98);
        filter: drop-shadow(0 2px 4px rgba(32, 8, 51, 0.35));
        background: rgba(255, 255, 255, 0.18);
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 4px 12px rgba(47, 23, 66, 0.22);
    }

    .lovify-perfil-accordion-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.38);
        box-shadow: 0 1px 2px rgba(32, 8, 51, 0.18);
        flex-shrink: 0;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .lovify-perfil-accordion-chevron i {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.96);
        opacity: 1;
        line-height: 1;
        filter: drop-shadow(0 1px 1px rgba(32, 8, 51, 0.35));
    }

    .lovify-perfil-accordion-header[aria-expanded="true"] .lovify-perfil-accordion-chevron {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.48);
    }

    .lovify-perfil-accordion-header[aria-expanded="true"] .lovify-perfil-accordion-chevron i {
        transform: rotate(180deg);
    }
}

@media (min-width: 992px) {
    .lovify-perfil-accordion-header {
        cursor: default;
        pointer-events: none;
    }

    .lovify-perfil-page .lovify-perfil-accordion-panel.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
}

/* Configuración de búsqueda: contenedor con franja y cuerpo del formulario unificados */
.lovify-search-form-shell {
    border-radius: 18px;
    border: 1px solid #ece7f4;
    box-shadow: 0 10px 28px rgba(68, 24, 108, 0.08);
}

.lovify-search-form-shell > form.lovify-search-form {
    border-radius: 0 0 17px 17px;
    border-top: none;
    box-shadow: none;
    margin: 0;
}

.lovify-form-card-header--page {
    padding: 0.6rem 1.4rem;
}

.lovify-form-card-header--page .lovify-form-card-title {
    font-size: 1.18rem;
}

/* Login / registro / recuperar: franja morada en la columna del formulario */
.lovify-auth-form-header {
    background: linear-gradient(90deg, #4f1f7a 0%, #7b2cbf 45%, #b5179e 100%);
    padding: 0.52rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    text-align: center;
    flex-shrink: 0;
}

.lovify-auth-form-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(32, 8, 51, 0.28);
}

@media (min-width: 992px) {
    .lovify-auth-form-title {
        font-size: 1.08rem;
    }
}

.lovify-profile-form .form-control:focus {
    border-color: #b24bff;
    box-shadow: 0 0 0 0.2rem rgba(178, 75, 255, 0.15);
}

.profile-badge-option {
    border: 1px solid #d43e73;
    color: #a1184f;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 8px 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-badge-option input {
    display: none;
}

.profile-badge-option.active,
.profile-badge-option:hover {
    background: linear-gradient(90deg, #7b2cbf, #b5179e);
    border-color: #7b2cbf;
    color: #fff;
}

.profile-photo-slot {
    position: relative;
    border: 1px solid #eadcf7;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.profile-photo-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 9, 24, 0.72);
    color: #fff;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

.lovify-perfil-solo-una-foto .profile-photo-remove {
    display: none !important;
}

.profile-extra-photo {
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eadcf7;
}

/* Lovify topbar (header) */
.lovify-topbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f2ff 45%, #fce8f4 100%);
    border: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 28px rgba(79, 31, 122, 0.12);
    padding: 0.65rem 1.25rem;
    min-height: 4rem;
}

.lovify-topbar-menu-btn {
    color: #5f2796;
    background: rgba(123, 44, 191, 0.12);
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
}

.lovify-topbar-menu-btn:hover {
    background: rgba(123, 44, 191, 0.22);
    color: #4a1d75;
}

.lovify-topbar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7b2cbf, #b5179e);
    color: #fff;
    font-size: calc(1rem + 1pt);
}

.lovify-topbar-brand-text {
    font-weight: 800;
    font-size: calc(1.35rem + 1pt);
    letter-spacing: 0.5px;
    color: #3f2b55;
    margin-left: 10px;
}

/* Móvil / tablet: misma jerarquía visual que Lovify + sup en sidebar (marca + etiqueta pequeña) */
.lovify-topbar-brand-text--compact {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    margin-left: 10px;
    line-height: 1;
}

.lovify-topbar-brand-word {
    font-weight: 800;
    font-size: calc(1.22rem + 1pt);
    letter-spacing: 0.02em;
    color: #2f2340;
}

.lovify-topbar-brand-mark {
    font-size: 0.58em;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7b2cbf;
    line-height: 1;
    top: -0.42em;
    margin-left: 0.12em;
    position: relative;
    vertical-align: baseline;
}

.lovify-sidebar-close-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.lovify-sidebar-close-btn:hover,
.lovify-sidebar-close-btn:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

.lovify-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 10, 38, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lovify-topbar-tagline {
    font-size: calc(0.82rem + 1pt);
    color: #7a6b8c;
    font-weight: 500;
    max-width: 320px;
    line-height: 1.3;
}

.lovify-topbar-nav .nav-link {
    padding: 0.35rem 0.5rem;
}

.lovify-topbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #7b2cbf;
    background: rgba(123, 44, 191, 0.1);
    transition: all 0.2s ease;
}

.lovify-topbar-icon-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #7b2cbf, #b5179e);
    text-decoration: none;
}

/* Misma caja que la casita; acento rojo (power / cerrar sesión) */
.lovify-topbar-icon-btn.lovify-topbar-icon-btn--logout {
    color: #c81e1e;
    background: rgba(200, 30, 30, 0.1);
}

.lovify-topbar-icon-btn.lovify-topbar-icon-btn--logout:hover,
.lovify-topbar-icon-btn.lovify-topbar-icon-btn--logout:focus {
    color: #fff;
    background: linear-gradient(135deg, #e03131, #b4232f);
    text-decoration: none;
    outline: none;
}

.lovify-topbar-divider {
    border-left: 1px solid rgba(123, 44, 191, 0.2);
    height: 28px;
    margin: 0 0.5rem;
}

.lovify-user-pill {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    border-radius: 999px;
    /* Padding alrededor de foto + nombre; sin hueco extra a los lados */
    padding: 3px 10px 3px 4px !important;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e8d9f5;
    box-shadow: 0 4px 14px rgba(79, 31, 122, 0.08);
}

.lovify-user-pill::after {
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.lovify-user-name {
    font-weight: 600;
    font-size: calc(0.9rem + 1pt);
    color: #4a3560;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
}

.lovify-user-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid #e8d9f5;
    flex-shrink: 0;
}

/* Menú de cuenta (dropdown usuario) */
.lovify-user-dropdown {
    min-width: 17.5rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0;
    margin-top: 0.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 44, 191, 0.14);
    box-shadow: 0 14px 40px rgba(68, 24, 108, 0.18), 0 2px 8px rgba(79, 31, 122, 0.08);
}

.lovify-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #5a1f8f 0%, #7b2cbf 45%, #b5179e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lovify-user-dropdown-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(32, 8, 51, 0.35);
    flex-shrink: 0;
}

.lovify-user-dropdown-heading-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.lovify-user-dropdown-kicker {
    display: block;
    font-size: calc(0.68rem + 0.5pt);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 240, 250, 0.85);
    margin-bottom: 4px;
    line-height: 1.2;
}

.lovify-user-dropdown-title {
    display: block;
    font-size: calc(1.05rem + 1pt);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.lovify-user-dropdown-body {
    padding: 8px 8px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
}

.lovify-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 14px;
    margin: 2px 0;
    border-radius: 11px;
    font-size: calc(0.95rem + 0.5pt);
    font-weight: 600;
    color: #3a2d4d;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lovify-user-dropdown-item:hover,
.lovify-user-dropdown-item:focus {
    background: rgba(123, 44, 191, 0.1);
    color: #5f2590;
    text-decoration: none;
}

.lovify-user-dropdown-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: rgba(123, 44, 191, 0.1);
    color: #7b2cbf;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.lovify-user-dropdown-item:hover .lovify-user-dropdown-item-icon,
.lovify-user-dropdown-item:focus .lovify-user-dropdown-item-icon {
    background: rgba(123, 44, 191, 0.22);
    color: #5f2590;
}

.lovify-user-dropdown-item--danger {
    color: #a61e4d;
}

.lovify-user-dropdown-item--danger .lovify-user-dropdown-item-icon {
    background: rgba(166, 30, 77, 0.12);
    color: #c81e5c;
}

.lovify-user-dropdown-item--danger:hover,
.lovify-user-dropdown-item--danger:focus {
    background: rgba(166, 30, 77, 0.08);
    color: #8b1840;
}

.lovify-user-dropdown-divider {
    height: 1px;
    margin: 6px 12px;
    background: rgba(123, 44, 191, 0.12);
    border: none;
    padding: 0;
}

/* Solo foto en header (viewport menor que lg: nombre oculto): mismo tamaño que .lovify-topbar-icon-btn */
@media (max-width: 991.98px) {
    .lovify-topbar-nav .nav-link.lovify-user-pill {
        padding: 0 !important;
    }

    .lovify-user-pill {
        width: 42px;
        height: 42px;
        min-width: 42px;
        box-sizing: border-box;
        justify-content: center;
        padding: 0 !important;
        border-radius: 12px;
        background: rgba(123, 44, 191, 0.1);
        border: none;
        box-shadow: none;
    }

    .lovify-user-pill.dropdown-toggle::after {
        display: none;
    }

    .lovify-user-pill .lovify-user-avatar {
        width: 34px;
        height: 34px;
        margin-right: 0 !important;
        border-width: 2px;
    }
}

/* Área de página: alto mínimo = ventana para que el footer quede abajo con poco contenido.
   En ≤767px el sidebar es fixed y ya no aporta min-height al #wrapper. */
html body #wrapper #content-wrapper.d-flex.flex-column {
    min-height: 100vh;
    min-height: 100dvh;
}

html body #wrapper #content-wrapper #content {
    flex: 1 1 auto !important;
}

/* Inicio (listado): móvil/tablet — topbar fijo y #content con padding; grilla sin scroll interno.
   Escritorio (≥992px) — igual que el resto del sitio: topbar con degradado, sin padding extra en #content. */
@media (max-width: 991.98px) {
    body:has(.lovify-home) #content > nav.lovify-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        margin-bottom: 0 !important;
        padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
        box-sizing: border-box;
        background: linear-gradient(135deg, #ffffff 0%, #f8f2ff 45%, #fce8f4 100%);
        border: none;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 8px 28px rgba(79, 31, 122, 0.12);
        z-index: 1040;
    }

    body:has(.lovify-home) #content {
        padding-top: calc(4.75rem + 1.5rem + env(safe-area-inset-top, 0px));
    }

    .lovify-home .lovify-home-feed-col .lovify-cards-grid {
        max-height: none !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: auto;
    }
}

@media (min-width: 992px) {
    body:has(.lovify-home) #content {
        padding-top: 0 !important;
    }

    body:has(.lovify-home) #content > nav.lovify-topbar {
        position: sticky;
        top: 0;
        z-index: 1040;
        flex-shrink: 0;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: none !important;
        margin-bottom: 1rem !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        box-sizing: border-box;
        background: linear-gradient(135deg, #ffffff 0%, #f8f2ff 45%, #fce8f4 100%) !important;
        border: none;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 8px 28px rgba(79, 31, 122, 0.12) !important;
    }

    /* Grilla de anuncios: alto máximo = ventana menos topbar + footer + márgenes.
       Scroll interno cuando hay más tarjetas (como antes); 10rem aprovecha más alto que 14rem. */
    body:has(.lovify-home) .lovify-home-feed-col .lovify-cards-grid {
        max-height: calc(100dvh - 10rem);
        max-height: calc(100vh - 10rem);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        align-content: start;
    }

    /* Sidebar contactos: mismo criterio de alto en escritorio */
    body:has(.lovify-home) .lovify-sidebar {
        max-height: calc(100dvh - 10rem);
        max-height: calc(100vh - 10rem);
        display: flex;
        flex-direction: column;
    }

    body:has(.lovify-home) .lovify-contact-pane:not(.d-none) {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    body:has(.lovify-home) .lovify-contact-pane:not(.d-none) .lovify-contact-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Asegurar franja y pie Lovify en pantallas grandes (evita reglas conflictivas) */
    nav.lovify-topbar {
        background: linear-gradient(135deg, #ffffff 0%, #f8f2ff 45%, #fce8f4 100%) !important;
        box-shadow: 0 8px 28px rgba(79, 31, 122, 0.12) !important;
        border-radius: 0 0 18px 18px;
    }

    footer.lovify-footer {
        background: linear-gradient(180deg, #3d1a5c 0%, #2f1742 100%) !important;
        color: rgba(255, 255, 255, 0.88) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 -4px 16px rgba(47, 23, 66, 0.12) !important;
    }
}

/* Lovify footer (compacto; anula padding grande de sb-admin .sticky-footer) */
footer.lovify-footer.sticky-footer {
    padding: 0.55rem 0 !important;
}

.lovify-footer {
    background: linear-gradient(180deg, #3d1a5c 0%, #2f1742 100%);
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 16px rgba(47, 23, 66, 0.12);
}

.lovify-footer .lovify-footer-inner {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.lovify-footer-brand {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    line-height: 1.3;
}

.lovify-footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

.lovify-footer-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

/* Página de pago / Izipay */
.lovify-pago-page {
    max-width: 960px;
    margin: 0 auto;
}

.lovify-pago-card .card-body {
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.lovify-pago-intro {
    color: #4a3560;
    font-size: 1rem;
    line-height: 1.5;
}

.lovify-pago-plans {
    display: grid;
    gap: 14px;
}

@media (min-width: 576px) {
    .lovify-pago-plans {
        grid-template-columns: 1fr 1fr;
    }
}

.lovify-pago-plan {
    display: block;
    margin: 0;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.lovify-pago-plan-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lovify-pago-plan-inner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100%;
    padding: 18px 18px 18px 18px;
    border-radius: 14px;
    border: 2px solid #e8d9f5;
    background: linear-gradient(160deg, #ffffff 0%, #faf7fe 100%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lovify-pago-plan-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding-right: 36px;
}

.lovify-pago-plan-radio {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #b8a4cf;
    background: #fff;
    box-shadow: inset 0 0 0 0 #7b2cbf;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    z-index: 1;
}

.lovify-pago-plan-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.15s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.lovify-pago-plan:hover .lovify-pago-plan-inner {
    border-color: rgba(123, 44, 191, 0.4);
    box-shadow: 0 6px 20px rgba(68, 24, 108, 0.08);
}

.lovify-pago-plan:hover .lovify-pago-plan-radio {
    border-color: #9b6fd4;
}

.lovify-pago-plan-input:focus-visible + .lovify-pago-plan-inner {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.35);
}

.lovify-pago-plan-input:checked + .lovify-pago-plan-inner {
    border-color: #7b2cbf;
    background: linear-gradient(160deg, #ffffff 0%, #f6f0fd 100%);
    box-shadow: 0 10px 28px rgba(123, 44, 191, 0.2);
}

.lovify-pago-plan-input:checked + .lovify-pago-plan-inner .lovify-pago-plan-radio {
    border-color: #7b2cbf;
    background: linear-gradient(135deg, #7b2cbf, #b5179e);
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.35);
}

.lovify-pago-plan-input:checked + .lovify-pago-plan-inner .lovify-pago-plan-radio::after {
    transform: scale(1);
}

.lovify-pago-plan-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7b2cbf;
    background: rgba(123, 44, 191, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
}

.lovify-pago-plan-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2d1a3d;
}

.lovify-pago-plan-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: #7b2cbf;
    line-height: 1.1;
}

.lovify-pago-plan-desc {
    font-size: 0.85rem;
    color: #8976a3;
    line-height: 1.35;
}

.lovify-pago-policies {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f9f6fc;
    border: 1px solid #ece7f4;
}

.lovify-pago-policies-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #3a2d4d;
    margin-bottom: 12px;
}

.lovify-pago-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.lovify-pago-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8d9f5;
    color: #4a3560;
    font-size: 1.65rem;
}

.lovify-pago-brand--text {
    font-size: 0.78rem;
    font-weight: 700;
    min-width: auto;
    padding: 0 12px;
}

.lovify-pago-brand .fa-cc-visa { color: #1a1f71; }
.lovify-pago-brand .fa-cc-mastercard { color: #eb001b; }
.lovify-pago-brand .fa-cc-amex { color: #006fcf; }
.lovify-pago-brand .fa-cc-diners-club { color: #0079be; }

.lovify-pago-policies-text p {
    line-height: 1.5;
}

.lovify-pago-accept .custom-control-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a3560;
    line-height: 1.4;
}

.lovify-pago-actions {
    gap: 12px;
}

.lovify-pago-redirect-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f2ff 0%, #fce8f4 100%);
}

.lovify-pago-redirect-wrap {
    padding: 2rem;
}

.lovify-pago-redirect-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid rgba(123, 44, 191, 0.2);
    border-top-color: #7b2cbf;
    animation: lovify-pago-spin 0.85s linear infinite;
}

@keyframes lovify-pago-spin {
    to { transform: rotate(360deg); }
}

.lovify-pago-result-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.lovify-pago-result-icon--ok { color: #2e9e5b; }
.lovify-pago-result-icon--error { color: #c81e1e; }
