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

html,
body {
    background-color: #ffffff;
    color: #242529;
    overflow-x: hidden;

    font-family: "Roboto", sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.3334;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =================================================
   LAYOUT GENERAL (3 COLUMNAS)
   ================================================= */
.app {
    display: grid;

    grid-template-columns:
        280px
        632px
        368px;

    justify-content: center;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    min-height: 100vh;
}

/* =================================================
   SIDEBAR IZQUIERDO
   ================================================= */
.sidebar {
    position: sticky;
    top: 0;

    height: 100vh;

    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;

    box-sizing: content-box;

    max-width: 248px;
    max-height: calc(100vh - 32px);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;

    width: 248px;
    height: 100%;
}

/* avatar AM mini */
.user-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    margin: 4px 16px 24px 16px;
}

/* navegacion lateral */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    width: 248px;
    height: 48px;

    display: flex;
    align-items: center;

    gap: 16px;

    padding-left: 12px;

    border-radius: 999px;

    color: #8a96a3;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}
/*FUENTE DEL MENU*/
.nav-label {
    font-size: 19px;
    font-weight: 500;
}


/* hover: pastilla azul claro del mismo tamaño (sin saltos) */
.nav-item:hover {
    background-color: rgba(0, 175, 240, 0.07);
    color: #00aff0;
}

.nav-item.active {
    color: #242529;
}

.nav-item.active:hover {
    color: #00aff0;
}

.nav-item.active svg path {
    fill:#242529;
}

.nav-item.active .nav-icon {
    color: #0091ea;
}

/* === color del icono svg === */
.nav-item svg path {
  fill: #8a96a3;
  transition: fill 0.15s ease;
}

.nav-item:hover svg path,
.nav-item.active:hover svg path {
  fill: #00aff0;
}
/* === iconos del sidebar === */
.nav-icon {
    width: 24px;
    font-size: 22px;
    text-align: center;
    color: #b0bec5;
    transition: color 0.15s ease;
}

.nav-item:hover .nav-icon {
    color: #00aff0;
}

/* icono inicio - posicion en lista */
.icon-home {
}
/* icono notificaciones */
.icon-bell {
}
/* icono mensajes */
.icon-msg {
}
/* icono colecciones */
.icon-collections {
}
/* icono suscripciones */
.icon-subs {
}
/* icono anadir tarjeta */
.icon-card {
}
/* icono mi perfil */
.icon-profile {
}
/* icono mas (circulo) */
.icon-more {
    position: relative;
}
/* puntos dentro del circulo de mas */
.nav-icon-overlay.icon-more-dots {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #b0bec5;
    pointer-events: none;
}
.nav-item:hover .icon-more-dots {
    color: #00aff0;
}


.btn-new-post {
    margin-top: 16px;
    margin-left: 8px;

    width: 248px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background-color: #00aff0;
    color: #ffffff;

    border: none;
    border-radius: 9999px;

    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

/* hover REALISTA */
.btn-new-post:hover {
    background-color: #0099d6;
}

/* contenedor del icono */
.btn-new-post svg {
    width: 22px;
    height: 22px;

    flex-shrink: 0;
}

/* color del svg */
.btn-new-post svg path {
    fill: white;
}
/* logo OF al fondo del sidebar */
.sidebar-logo {
    margin-top: auto;
    
    color: #ef5b5b;
    font-size: 28px;
    font-weight: 700;
}
.of-logo-letter {
    display: inline-block;
    border: 3px solid #ef5b5b;
    color: #ef5b5b;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    line-height: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

/* =================================================
   COLUMNA CENTRAL - PERFIL
   ================================================= */
.profile-column {
    position: relative;

    width: 600px;
    max-width: 600px;
    flex: 0 0 600px;

    min-height: 100vh;

    background: #fff;

    z-index: 0;
}
.profile-column::after {
    content: "";

    position: absolute;

    inset: 0 -1px;

    pointer-events: none;

    z-index: 7;

    border-left: 1px solid rgba(138, 150, 163, 0.25);
    border-right: 1px solid rgba(138, 150, 163, 0.25);
}

/* HEADER COVER */
.profile-header {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background-color: #d1d5db;
    margin-top: -15px;
}

.cover-photo,
.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-topbar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 60%
    );
}

.cover-topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #ffffff;
}

.cover-back-btn,
.cover-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.cover-back-btn:hover,
.cover-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* icono flecha atras del cover */
.icon-back {
    font-size: 20px;
}

/* icono tres puntos verticales del cover */
.icon-more-vertical {
    font-size: 20px;
}

.cover-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}
.cover-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* icono verificado encima del cover */
.icon-verified-cover {
    color: #00aff0;
    font-size: 16px;
    background: #ffffff;
    border-radius: 50%;
}

.flower-emoji {
    font-size: 16px;
}

.cover-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.cover-stats .sep {
    opacity: 0.7;
}

/* iconos svg del cover (fotos, videos, corazon, verificado) en blanco */
.cover-name > span,
.cover-stats > span {
    display: inline-flex;
    align-items: center;
}
.cover-name svg,
.cover-stats svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.cover-name svg path,
.cover-stats svg path {
    fill: #ffffff;
}
.cover-name .icon-verified {
    width: 22px;
    height: 22px;
}
.cover-stats svg {
    width: 20px;
    height: 20px;
}

/* iconos stats del cover */
.icon-stat-photo,
.icon-stat-video,
.icon-stat-heart {
    font-size: 13px;
    margin-right: 2px;
}

/* AVATAR Y ACCIONES */
.profile-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 24px;
    margin-top: -54px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    background-color: #d1d5db;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #4caf50;
    border: 2px solid #ffffff;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.round-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cfd8dc;
    color: #b0bec5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}
.round-action:hover {
    color: #00aff0;
    border-color: #00aff0;
}

/* icono estrella (favorito) */
.icon-fav {
    font-size: 16px;
}
/* icono compartir */
.icon-share {
    font-size: 15px;
}

/* INFO DEL PERFIL */
.profile-info {
   padding: 14px 20px 0;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1d2939;
}

/* icono verificado en el nombre */
.icon-verified-name {
    color: #00aff0;
    font-size: 18px;
}

.profile-handle {
    margin-top: 4px;
    color: #8898aa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.handle {
    color: #8898aa;
}
.profile-handle .sep {
    opacity: 0.7;
}
.available {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.green-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #4caf50;
    display: inline-block;
}

.bio {
    margin-top: 18px;
    font-size: 15px;
    color: #1d2939;
    line-height: 1.6;
}
.bio p {
    margin-bottom: 6px;
}

.location {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8898aa;
    font-size: 14px;
}

/* icono ubicacion */
.icon-location {
    color: #b0bec5;
    font-size: 15px;
}

.toggle-info {
    display: inline-block;
    margin-top: 16px;
    color: #00aff0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.toggle-info:hover {
    color: #008cc7;
    text-decoration: underline;
}


/* TITULO */
.sub-title {
    color: #8a96a3;

    font-size: 13px;
    font-weight: 500;

    line-height: 16px;

    letter-spacing: .2px;

    text-transform: uppercase;

    margin-bottom: 14px;
}
/* BOTON */
.btn-subscribe {
    width: 100%;
    height: 36px;

    border: none;
    border-radius: 9999px;

    background-color: #00aff0;

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

    padding-left: 20px;
    padding-right: 16px;

    cursor: pointer;

    transition: background-color .15s ease;
}

/* HOVER */
.btn-subscribe:hover {
    background-color: #0099d6;
}

/* TABS */
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
}
.tab {
    padding: 16px 0;
    color: #8898aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #fff;
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}
.tab:hover {
    background-color: #f0f9ff;
    color: #00aff0; 
    margin: 2px 4px;
    
}
.tab.active {
    color: rgb(36, 37, 41);
    border-bottom: 2px solid #242529;
}
.tab.active:hover {
    color: #007aff;
    border-bottom: 2px solid #007aff;
}

/* AREA BLOQUEADA */
.locked-area {
    min-height: 380px;
    background-color: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.locked-area::before,
.locked-area::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: #f1f3f5;
    opacity: 0.7;
}
.locked-area::before {
    left: -120px;
    bottom: -110px;
}
.locked-area::after {
    right: -120px;
    bottom: -110px;
}
/* icono candado grande */
.icon-big-lock {
    font-size: 80px;
    color: #cfd8dc;
    opacity: 0.6;
    z-index: 1;
}

/* FOOTER PERFIL */
.profile-footer {
    padding: 16px 24px 28px 24px;
    border-top: 1px solid #eef0f2;
}
.footer-counts {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8898aa;
    font-size: 13px;
    margin-bottom: 14px;
}
.count-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-counts .sep {
    opacity: 0.6;
}
.footer-lock {
    margin-left: auto;
}

/* iconos del footer */
.icon-total {
    font-size: 14px;
}
.icon-footer-photo {
    font-size: 14px;
}
.icon-footer-video {
    font-size: 14px;
}
.icon-small-lock {
    font-size: 14px;
    color: #b0bec5;
}

.btn-subscribe-full {
    width: 100%;
    padding: 14px 22px;
    background-color: #00aff0;
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}
.btn-subscribe-full:hover {
    background-color: #ffffff;
    color: #00aff0;
    box-shadow: inset 0 0 0 1px #00aff0;
}

/* =================================================
   COLUMNA DERECHA
   ================================================= */
.right-column {
    box-sizing: border-box;

    flex: 1 1 0%;

    max-width: 368px;

    min-height: 473px;

    margin-left: 16px;

    padding-top: 16px;
    padding-bottom: 16px;

    overflow-y: auto;

    position: sticky;
    top: 0;

    z-index: 2;

    scrollbar-width: none;
}
/* CARD */
.right-sub-card {
    width: 100%;

    border: 1px solid rgba(138, 150, 163, 0.22);

    border-radius: 6px;

    background: #fff;

    padding:
        16px
        14px
        16px;

    box-sizing: border-box;
}
/* TEXTO */
.sub-left,
.sub-right {
    color: white;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    text-transform: uppercase;
}

.right-footer-links {
    margin-top: 24px;

    padding-left: 16px;
    padding-right: 16px;

    color: #8a96a3;

    font-size: 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}
.right-footer-links a {
    color: #8898aa;
    transition: color 0.15s ease;
}
.right-footer-links a:hover {
    color: #00aff0;
    text-decoration: underline;
}
.right-footer-links .dot {
    opacity: 0.7;
}

/* =================================================
   BOTON FLOTANTE DE AYUDA
   ================================================= */
.help-fab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 44px;
    background-color: #00aff0;
    color: #ffffff;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    z-index: 10;
}
.help-fab:hover {
    background-color: #008cc7;
}

/* icono ayuda flotante */
.icon-help {
    font-size: 20px;
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 1100px) {
    .app {
        grid-template-columns: 80px 1fr 280px;
    }
    .nav-label,
    .btn-new-post span {
        display: none;
    }
    /* barra colapsada: padding simétrico para centrar bien */
    .sidebar {
        padding-left: 0;
        padding-right: 0;
    }
    /* centrar todos los iconos en la barra colapsada */
    .sidebar-inner,
    .side-nav {
        width: 100%;
        align-items: center;
    }
    .user-avatar-mini {
        margin: 4px auto 24px;
    }
    .nav-item {
        width: 48px;
        padding-left: 0;
        justify-content: center;
        gap: 0;
        align-self: center;
    }
    .btn-new-post {
        width: 48px;
        height: 48px;
        padding: 0;
        margin: 16px 0 0;
        border-radius: 50%;
        gap: 0;
        align-self: center;
    }
}
/* barras moviles: ocultas en escritorio */
.mobile-topbar,
.mobile-bottomnav {
    display: none;
}

@media (max-width: 768px) {
    .app {
        display: block;
        max-width: 100%;
    }
    .sidebar,
    .right-column,
    .help-fab {
        display: none;
    }

    /* columna central a ancho completo */
    .profile-column {
        width: 100%;
        max-width: 100%;
        flex: none;
        min-height: auto;
        padding-bottom: 72px; /* espacio para la barra inferior */
    }
    .profile-column::after {
        border-left: none;
        border-right: none;
    }

    /* barra superior */
    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 900;
        height: 44px;
        padding: 0 14px;
        background-color: #00aff0;
        color: #ffffff;
    }
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 17px;
        font-weight: 700;
        flex-shrink: 0;
    }
    .mobile-logo i {
        font-size: 16px;
    }
    .mobile-topbar-hint {
        font-size: 12px;
        line-height: 1.2;
        opacity: 0.95;
    }
    .mobile-topbar-hint strong {
        font-weight: 700;
    }

    /* el cover empieza bajo la barra */
    .profile-header {
        height: 150px;
    }

    /* barra inferior */
    .mobile-bottomnav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        height: 56px;
        background-color: #ffffff;
        border-top: 1px solid rgba(138, 150, 163, 0.25);
    }
    .mobile-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: #242529;
    }
    .mobile-nav-item svg path {
        fill: #242529;
    }
    .mobile-nav-item:active svg path {
        fill: #00aff0;
    }

    /* los modales ocupan toda la pantalla comoda */
    .sub-modal {
        width: 100%;
    }
    .card-modal {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

}
/* =================================================
   VISTA AÑADIR TARJETA
   ================================================= */
.add-card-column {
    background-color: #ffffff;
    border-left: 1px solid #eef0f2;
    border-right: 1px solid #eef0f2;
    min-height: 100vh;
    animation: ac-fade 0.25s ease;
}

@keyframes ac-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.add-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f2;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 5;
}

.add-card-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #1d2939;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.add-card-back:hover {
    background-color: #f1f5f9;
}

.add-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #1d2939;
}

.add-card-form {
    padding: 22px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- Campo con etiqueta flotante ---- */
.ac-field {
    position: relative;
}

.ac-field input,
.ac-field select {
    width: 100%;
    height: 56px;
    padding: 18px 14px 6px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1d2939;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ac-field input::placeholder {
    color: transparent;
}

.ac-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    font-size: 15px;
    pointer-events: none;
    background-color: transparent;
    padding: 0 4px;
    transition:
        top 0.15s ease,
        font-size 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.ac-field input:focus,
.ac-field select:focus {
    border-color: #00aff0;
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.12);
}

.ac-field input:focus + label,
.ac-field input:not(:placeholder-shown) + label,
.ac-field select:focus + label,
.ac-field select.has-value + label,
.ac-field.ac-select select:valid + label {
    top: 14px;
    transform: translateY(-100%);
    font-size: 12px;
    color: #00aff0;
    background-color: #ffffff;
}

/* select: usa caret propio */
.ac-field.ac-select select {
    padding-right: 38px;
    cursor: pointer;
}
.ac-field.ac-select .ac-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    pointer-events: none;
}

/* iconos de marcas tarjeta dentro del input */
.ac-field .ac-card-brands {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.ac-field .ac-brand {
    display: block;
}

/* icono ayuda CVC */
.ac-field .ac-help {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    cursor: help;
}

/* fila de 2 columnas */
.ac-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* texto legal */
.ac-legal {
    margin-top: 4px;
    color: #8898aa;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* boton anadir tarjeta */
.btn-add-card {
    margin-top: 6px;
    width: 100%;
    padding: 15px 22px;
    background-color: #00aff0;
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}
.btn-add-card:hover {
    background-color: #ffffff;
    color: #00aff0;
    box-shadow: inset 0 0 0 1px #00aff0;
}
.btn-add-card:active {
    transform: scale(0.99);
}

/* toast de exito */
.ac-success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #1d2939;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.ac-success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ac-success-toast .ac-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #4caf50;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ac-success-toast .ac-check svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .add-card-form {
        padding: 18px 16px 28px 16px;
    }
}


/* =================================================
   AJUSTES PARA IGUALAR EL PERFIL DE REFERENCIA
   ================================================= */

/* sidebar: avatar generico y espaciado del menu */
.sidebar {
    padding-left: 0;
}
.user-avatar-mini {
    width: 36px;
    height: 36px;
    margin: 6px 0 20px 1px;
    background-color: #e8ebee;
    color: #a3adb8;
    font-size: 18px;
}
.side-nav {
    gap: 12px;
}
.nav-item {
    height: 44px;
    padding-left: 6px;
    gap: 20px;
}

/* cover */
.profile-header {
    aspect-ratio: auto;
    height: 180px;
    margin-top: 0;
}
.cover-topbar {
    padding: 12px 8px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0) 55%
    );
}
.cover-topbar-left {
    gap: 8px;
}
.cover-back-btn {
    margin-top: 1px;
}
.cover-name-wrap {
    gap: 2px;
    padding-top: 0;
}
.cover-name {
    gap: 0;
    font-size: 17px;
    font-weight: 500;
}
.cover-name .flower-emoji {
    font-size: 15px;
}
.cover-name .icon-verified {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}
.cover-stats {
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
}
.cover-stats svg {
    width: 17px;
    height: 17px;
}

/* avatar + boton compartir */
.profile-avatar-row {
    padding: 0 16px;
    margin-top: -33px;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    border: 2px solid #ffffff;
    box-shadow: none;
}
.profile-actions {
    margin-bottom: 0;
}
.round-action {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(138, 150, 163, 0.25);
}
.round-action svg path {
    fill: #00aff0;
}

/* nombre, usuario y bio */
.profile-info {
    padding: 14px 16px 12px;
}
.profile-name {
    gap: 0;
    font-size: 19px;
    font-weight: 500;
    color: #000000;
}
.profile-name .flower-emoji {
    font-size: 17px;
}
.profile-name > span {
    display: inline-flex;
    align-items: center;
}
.profile-name .icon-verified {
    display: block;
    width: 22px;
    height: 22px;
    margin-left: 4px;
}
.profile-handle {
    margin-top: 3px;
    color: #8a96a3;
    gap: 8px;
}
.handle {
    color: #8a96a3;
}
.bio {
    margin-top: 14px;
    font-size: 16px;
    line-height: 24px;
    color: #242529;
}
.bio p {
    margin-bottom: 0;
}
.bio.is-collapsed {
    max-height: 84px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.toggle-info {
    margin-top: 8px;
}

/* bloque suscripcion central */
.sub-block {
    padding: 16px;
    border-top: 8px solid #f4f5f6;
    border-bottom: 8px solid #f4f5f6;
    box-shadow: inset 0 1px 0 rgba(138, 150, 163, 0.2);
}
.sub-title {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    margin-bottom: 16px;
}
.sub-block .btn-subscribe {
    height: 48px;
    padding-left: 22px;
    padding-right: 22px;
}
.sub-left,
.sub-right {
    font-size: 14px;
}

/* tabs */
.tabs {
    border-top: none;
    border-bottom: 1px solid rgba(138, 150, 163, 0.25);
}
.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: #8a96a3;
    /* el borde transparente reserva el hueco; el fondo se recorta a él */
    border: 4px solid transparent;
    border-bottom-width: 2px;
    border-radius: 8px 8px 0 0;
    background-clip: padding-box;
}
.tab:hover {
    margin: 0;
    background-color: #eef9fe;
    color: #00aff0;
    border-bottom-color: #00aff0;
}
.tab.active {
    color: #242529;
    border-bottom-color: #242529;
}
.tab.active:hover {
    color: #00aff0;
    border-bottom-color: #00aff0;
}

/* area bloqueada con la tarjeta dentro */
.locked-area {
    min-height: 338px;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #f4f5f6;
    padding: 16px;
}
.locked-area > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 1;
}
.locked-area > span svg {
    width: 56px;
    height: 56px;
}
.locked-area > span svg path {
    fill: #c9ced3;
}
.locked-area::before,
.locked-area::after {
    background-color: #eceef0;
}
.locked-area::before {
    width: 260px;
    height: 260px;
    left: -60px;
    bottom: -80px;
}
.locked-area::after {
    width: 300px;
    height: 300px;
    left: 160px;
    right: auto;
    bottom: -140px;
}
.profile-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 12px 16px 16px;
    border: 1px solid rgba(138, 150, 163, 0.25);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.6);
}
.footer-counts {
    gap: 4px;
    font-size: 12px;
    color: #8a96a3;
    margin-bottom: 8px;
}
.count-item {
    gap: 4px;
}
.footer-counts svg path {
    fill: #8a96a3;
}
.btn-subscribe-full {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

/* columna derecha */
.right-column {
    margin-left: 0;
    padding-top: 16px;
}
.right-sub-card {
    padding: 16px;
    border-radius: 6px;
}
.right-sub-card .btn-subscribe {
    padding-left: 18px;
    padding-right: 18px;
}
.right-footer-links {
    margin-top: 16px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(138, 150, 163, 0.25);
    justify-content: center;
    gap: 12px;
}

/* boton de ayuda */
.help-fab {
    top: auto;
    bottom: 250px;
    transform: none;
    width: 42px;
    height: 42px;
}
.help-fab svg {
    width: 28px;
    height: 28px;
}
.help-fab svg path {
    fill: #ffffff;
}

/* =================================================
   PANEL "MÁS" + FONDO OSCURO
   ================================================= */
.more-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    z-index: 1000;
}
.more-overlay.open {
    opacity: 1;
    visibility: visible;
}

.more-panel {
    position: fixed;
    top: 13px;
    /* alineado con el sidebar (layout centrado de 1280px) */
    left: max(8px, calc(50% - 642px));
    width: 248px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    z-index: 1001;
}
.more-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 8px;
    border-bottom: 1px solid rgba(138, 150, 163, 0.25);
}
.more-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e8ebee;
    color: #a3adb8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.more-close {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    color: #8a96a3;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.more-close:hover {
    color: #00aff0;
}

.more-panel-group {
    padding: 4px 0;
}
.more-panel-group + .more-panel-group {
    border-top: 1px solid rgba(138, 150, 163, 0.25);
    padding-bottom: 12px;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 16px 0 18px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}
.more-item:hover {
    background-color: #f0f9ff;
    color: #00aff0;
}
.more-icon {
    width: 20px;
    font-size: 19px;
    text-align: center;
}
.more-chevron {
    margin-left: auto;
    font-size: 15px;
    transition: transform 0.2s ease;
}
.more-item.expanded .more-chevron {
    transform: rotate(180deg);
}

.more-lang-list {
    display: none;
    padding: 0 0 4px 50px;
}
.more-lang-list.open {
    display: block;
}
.more-lang-option {
    display: block;
    padding: 8px 0;
    color: #8a96a3;
    font-size: 14px;
    font-weight: 500;
}
.more-lang-option:hover,
.more-lang-option.active {
    color: #00aff0;
}

/* avatar del sidebar abre el panel "Más" */
.user-avatar-mini {
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.user-avatar-mini:hover,
.user-avatar-mini:focus-visible {
    color: #00aff0;
    background-color: #e1f4fd;
    outline: none;
}

/* =================================================
   MODAL DE SUSCRIPCION
   ================================================= */
.sub-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    z-index: 1100;
}
.sub-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sub-modal {
    width: 344px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}
.sub-modal-overlay.open .sub-modal {
    transform: scale(1);
}

.sub-modal-cover {
    height: 80px;
    background-color: #d1d5db;
}
.sub-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-modal-user {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0 16px;
    margin-top: -42px;
}
.sub-modal-avatar {
    position: relative;
    flex-shrink: 0;
    width: 98px;
    height: 98px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #d1d5db;
}
.sub-modal-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.sub-modal-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #2fcc71;
    border: 2px solid #ffffff;
}
.sub-modal-names {
    padding-bottom: 6px;
    min-width: 0;
}
.sub-modal-name {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}
.sub-modal-name .flower-emoji {
    font-size: 14px;
}
.sub-modal-name > span {
    display: inline-flex;
}
.sub-modal-name .icon-verified {
    display: block;
    margin-left: 4px;
}
.sub-modal-handle {
    margin-top: 4px;
    color: #8a96a3;
    font-size: 14px;
}

.sub-modal-body {
    padding: 16px 16px 14px;
}
.sub-modal-title {
    color: #8a96a3;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 12px;
}
.sub-modal-list {
    list-style: none;
    margin-bottom: 12px;
}
.sub-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 12px;
}
.sub-modal-list li i {
    color: #00aff0;
    font-size: 18px;
    width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sub-modal-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 12px 24px;
    border: 1px solid rgba(138, 150, 163, 0.35);
    border-radius: 9999px;
    color: #00aff0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}
.sub-modal-card-btn:hover {
    background-color: #f0f9ff;
    border-color: #00aff0;
}

.sub-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    border-top: 1px solid rgba(138, 150, 163, 0.25);
}
.sub-modal-close {
    padding: 8px 14px;
    border-radius: 9999px;
    color: #00aff0;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}
.sub-modal-close:hover {
    background-color: #f0f9ff;
}

/* boton nueva publicacion alineado con el menu */
.btn-new-post {
    margin-left: 0;
}

/* =================================================
   MODAL AÑADIR TARJETA
   ================================================= */
.card-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    z-index: 1200;
}
.card-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.card-modal {
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
    transform: scale(0.97);
    transition: transform 0.2s ease;
}
.card-modal-overlay.open .card-modal {
    transform: scale(1);
}

.card-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(138, 150, 163, 0.25);
}
.card-modal-header h3 {
    color: #242529;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.card-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-section-title {
    color: #8a96a3;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.card-section-title--spaced {
    margin-top: 6px;
}
.card-note {
    color: #242529;
    font-size: 15px;
    line-height: 1.5;
    margin-top: -8px;
}

/* icono camara en numero de tarjeta */
.ac-cam {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #00aff0;
    font-size: 20px;
    pointer-events: none;
}
.card-longer-link {
    display: inline-block;
    margin-top: -10px;
    color: #00aff0;
    font-size: 14px;
}
.card-longer-link:hover {
    text-decoration: underline;
}

/* casilla edad */
.card-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #242529;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
}
.card-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.card-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #cfd8dc;
    border-radius: 50%;
    position: relative;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}
.card-check input:checked + .card-check-box {
    border-color: #00aff0;
    background-color: #00aff0;
}
.card-check input:checked + .card-check-box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.card-check input:focus-visible + .card-check-box {
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.2);
}

/* logos de marcas */
.card-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 34px;
}

/* footer */
.card-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid rgba(138, 150, 163, 0.25);
}
.card-cancel,
.card-send {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background-color 0.15s ease;
}
.card-cancel {
    color: #8a96a3;
}
.card-cancel:hover {
    background-color: #f1f3f5;
}
.card-send {
    color: #00aff0;
}
.card-send:hover {
    background-color: #f0f9ff;
}

@media (max-width: 560px) {
    .card-modal {
        width: 100%;
    }
}

/* texto legal del modal de tarjeta */
.card-legal {
    margin-top: 2px;
    color: #8a96a3;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* =================================================
   PANEL "MÁS" COMO CAJÓN LATERAL EN MÓVIL
   (al final del archivo para tener prioridad)
   ================================================= */
@media (max-width: 768px) {
    .more-panel {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 62%;
        max-width: 320px;
        max-height: none;
        border-radius: 0;
        box-shadow: -4px 0 18px rgba(0, 0, 0, 0.18);
        transform: translateX(100%);
    }
    .more-panel.open {
        transform: translateX(0);
    }
    .more-panel-header {
        padding: 16px;
    }
    .more-item {
        height: 48px;
    }
}

/* =================================================
   TOAST "ENLACE COPIADO" CON BARRA DE PROGRESO
   ================================================= */
.link-toast {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 300px;
    max-width: calc(100vw - 40px);
    padding: 16px 44px 16px 16px;
    background-color: #e8f6fd;
    color: #4a5a6a;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    z-index: 2000;
}
.link-toast.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.link-toast-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a3;
    font-size: 18px;
    transition: color 0.15s ease;
}
.link-toast-close:hover {
    color: #00aff0;
}

.link-toast-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #00aff0;
}
.link-toast.show .link-toast-bar {
    animation: link-toast-progress 4s linear forwards;
}
@keyframes link-toast-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* =================================================
   DESPLEGABLE PERSONALIZADO (País / Estado)
   ================================================= */
.cs-field {
    position: relative;
}
.cs-trigger {
    width: 100%;
    height: 56px;
    padding: 18px 42px 6px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1d2939;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.cs-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-field > label {
    position: absolute;
    left: 14px;
    top: 14px;
    transform: translateY(-100%);
    font-size: 12px;
    color: #8898aa;
    background-color: #ffffff;
    padding: 0 4px;
    pointer-events: none;
    transition: color 0.15s ease;
}
.cs-field.open .cs-trigger {
    border-color: #00aff0;
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.12);
}
.cs-field.open > label {
    color: #00aff0;
}

/* flecha */
.cs-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8898aa;
    pointer-events: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}
.cs-caret i {
    transition: transform 0.2s ease;
}
.cs-field.open .cs-caret {
    background-color: #e8f6fd;
    color: #00aff0;
}
.cs-field.open .cs-caret i {
    transform: rotate(180deg);
}

/* lista de opciones */
.cs-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 244px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #00aff0;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}
.cs-field.open .cs-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cs-option {
    padding: 13px 16px;
    font-size: 16px;
    color: #1d2939;
    cursor: pointer;
    transition: background-color 0.12s ease;
}
.cs-option:hover {
    background-color: #f0f9ff;
}
.cs-option.selected {
    background-color: #00aff0;
    color: #ffffff;
}

/* =================================================
   AVISO GEOGRÁFICO Y BLOQUEO DEL FORMULARIO DE TARJETA
   ================================================= */
.card-geo-notice[hidden] {
    display: none;
}
.card-geo-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -6px;
    padding: 12px 14px;
    background-color: #fff4e5;
    border: 1px solid #ffd9a0;
    border-radius: 8px;
    color: #8a5a00;
    font-size: 14px;
    line-height: 1.45;
}
.card-geo-notice i {
    color: #f0a020;
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* campos deshabilitados cuando el país no es México */
.card-form.is-locked .ac-field,
.card-form.is-locked .cs-field:not([data-cs-country]),
.card-form.is-locked .card-longer-link,
.card-form.is-locked .card-check {
    opacity: 0.5;
}
.card-form input:disabled {
    background-color: #f4f5f6;
    cursor: not-allowed;
}
.cs-field.cs-disabled .cs-trigger {
    background-color: #f4f5f6;
    cursor: not-allowed;
    color: #8a96a3;
}
.card-send:disabled {
    color: #b7c2cc;
    cursor: not-allowed;
}
.card-send:disabled:hover {
    background-color: transparent;
}

/* =================================================
   CONTENIDO DESBLOQUEADO (publicaciones y medios)
   ================================================= */
.content-area {
    padding: 8px 16px 24px;
}

/* --- Publicaciones --- */
.posts-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
}
.post-card {
    border: 1px solid rgba(138, 150, 163, 0.22);
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}
.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.post-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.post-name {
    font-size: 15px;
    font-weight: 500;
    color: #242529;
}
.post-time {
    font-size: 13px;
    color: #8a96a3;
}
.post-text {
    padding: 0 14px 12px;
    font-size: 15px;
    color: #242529;
    line-height: 1.5;
}
.post-image {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
}
.post-actions {
    display: flex;
    gap: 20px;
    padding: 12px 14px;
    color: #8a96a3;
    font-size: 14px;
}
.post-actions i {
    margin-right: 4px;
}

/* --- Medios (fotos) --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding-top: 12px;
}
.media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.media-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* el atributo hidden debe ganar sobre display:flex/grid de estas secciones */
.locked-area[hidden],
.content-area[hidden],
.posts-view[hidden],
.media-view[hidden] {
    display: none;
}

/* ===== Pago PayPal en el modal de suscripción ===== */
.sub-modal-price {
    text-align: center;
    font-size: 15px;
    color: #1d2939;
    margin: 4px 0 14px;
}
.sub-modal-price strong { font-weight: 700; }
#paypal-button-container { margin: 0 auto; max-width: 320px; }
.sub-modal-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #667085;
}
.sub-modal-secure i { font-size: 11px; }

/* ===== Pago por transferencia + código de acceso ===== */
.pay-transfer { text-align: left; margin-top: 6px; }
.pay-step { font-size: 14px; color: #1d2939; margin: 10px 0 6px; }
.pay-step a { color: #0a84ff; text-decoration: none; font-weight: 600; }
.pay-data {
    background: #f2f4f7;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    display: grid;
    gap: 4px;
}
.pay-data span { color: #667085; }
.pay-code-row { display: flex; gap: 8px; margin-top: 4px; }
.pay-code-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 15px;
    text-transform: uppercase;
}
.pay-code-row button {
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #0a84ff;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.pay-code-row button:hover { background: #0071e3; }
.pay-code-msg { font-size: 13px; margin-top: 8px; }
.pay-code-msg.is-ok { color: #067647; }
.pay-code-msg.is-err { color: #b42318; }

/* =================================================
   STRIPE ELEMENTS — campos de tarjeta
   ================================================= */
.stripe-el-field {
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 14px 0;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stripe-el-field.stripe-focused {
    border-color: #00aff0;
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.12);
}
.stripe-el-field.stripe-error-border {
    border-color: #ef4444;
}
.stripe-el-label {
    font-size: 11px;
    color: #00aff0;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}
.stripe-error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: -10px;
    min-height: 16px;
}

/* Spinner del botón VERIFICAR */
.card-send-spinner {
    display: none;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(0, 175, 240, 0.3);
    border-top-color: #00aff0;
    border-radius: 50%;
    animation: stripe-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}
.card-send.loading .card-send-spinner { display: inline-block; }
@keyframes stripe-spin { to { transform: rotate(360deg); } }
