/* ═══════════════════════════════════════════════════════
   LI Modelo Panel — Mobile-first CSS
   Target: escorts on budget Android phones, 3G/4G
   ═══════════════════════════════════════════════════════ */

:root {
    /* Reskin premium oscuro/dorado (estilo /unete/) — solo tokens, sin tocar layout/lógica. */
    --li-mp-primary: #0e0d0b;        /* fondo del header (casi-negro cálido) */
    --li-mp-accent: #C9A96E;         /* dorado de marca */
    --li-mp-accent-hover: #d9bd87;
    --li-mp-success: #4ADE80;
    --li-mp-warning: #f0c674;
    --li-mp-error: #F87171;
    --li-mp-bg: #0A0A0A;             /* fondo oscuro del sitio */
    --li-mp-card-bg: #161513;        /* tarjetas oscuras cálidas */
    --li-mp-text: #cfc9bd;           /* cuerpo claro, buen contraste */
    --li-mp-text-muted: #9a917f;     /* atenuado pero legible */
    --li-mp-border: rgba(201,169,110,0.20); /* borde sutil dorado */
    --li-mp-radius: 14px;
    --li-mp-radius-sm: 10px;
    --li-mp-shadow: 0 8px 30px rgba(0,0,0,0.45);
    --li-mp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Matches the site logo "LUJOINTIMO.VIP" (Cormorant Garamond, serif). */
    --li-mp-font-logo: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --li-mp-max-w: 440px;
}

/* ── Reset for panel pages ─────────────────────────────── */
.li-mp-body {
    margin: 0;
    padding: 0;
    background: var(--li-mp-bg);
    font-family: var(--li-mp-font);
    color: var(--li-mp-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ────────────────────────────────────────────── */
.li-mp-header {
    background: var(--li-mp-primary);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.li-mp-header__inner {
    max-width: var(--li-mp-max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.li-mp-header__logo {
    color: var(--li-mp-accent);
    font-family: var(--li-mp-font-logo);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.li-mp-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--li-mp-radius-sm);
    transition: background 0.2s;
}

.li-mp-nav-link:active {
    background: rgba(255,255,255,0.1);
}

/* ── Main ──────────────────────────────────────────────── */
.li-mp-main {
    max-width: var(--li-mp-max-w);
    margin: 0 auto;
    padding: 16px;
    min-height: calc(100vh - 120px);
}

/* ── Card ──────────────────────────────────────────────── */
.li-mp-card {
    background: var(--li-mp-card-bg);
    border-radius: var(--li-mp-radius);
    padding: 24px 20px;
    box-shadow: var(--li-mp-shadow);
}

.li-mp-card--centered {
    text-align: center;
}

/* ── Typography ────────────────────────────────────────── */
.li-mp-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--li-mp-primary);
}

.li-mp-text {
    font-size: 15px;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.li-mp-text--center { text-align: center; }
.li-mp-text--small { font-size: 13px; color: var(--li-mp-text-muted); }
.li-mp-text--muted { color: var(--li-mp-text-muted); }

.li-mp-step__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--li-mp-primary);
}

/* ── Form fields ───────────────────────────────────────── */
.li-mp-field {
    margin-bottom: 16px;
}

.li-mp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--li-mp-text);
}

.li-mp-label--note {
    font-weight: 400;
    color: var(--li-mp-text-muted);
    font-size: 12px;
}

.li-mp-input,
.li-mp-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 2px solid var(--li-mp-border);
    border-radius: var(--li-mp-radius-sm);
    background: #ffffff;
    color: var(--li-mp-text);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.li-mp-input:focus,
.li-mp-select:focus {
    outline: none;
    border-color: var(--li-mp-accent);
}

.li-mp-input--code {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    font-variant-numeric: tabular-nums;
}

/* ── Password input with toggle ────────────────────────── */
.li-mp-input-wrap {
    position: relative;
}

.li-mp-input-wrap .li-mp-input {
    padding-right: 48px;
}

.li-mp-input-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.li-mp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ── Buttons ───────────────────────────────────────────── */
.li-mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--li-mp-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px; /* Touch target */
}

.li-mp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.li-mp-btn--primary {
    background: var(--li-mp-accent);
    color: #ffffff;
}

.li-mp-btn--primary:active:not(:disabled) {
    background: var(--li-mp-accent-hover);
    transform: scale(0.98);
}

.li-mp-btn--ghost {
    background: transparent;
    color: var(--li-mp-accent);
    border: 1px solid var(--li-mp-border);
}

.li-mp-btn--ghost:active {
    background: rgba(200,169,110,0.1);
}

.li-mp-btn--full {
    width: 100%;
    margin-bottom: 12px;
}

/* ── Checkbox ──────────────────────────────────────────── */
.li-mp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.li-mp-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--li-mp-accent);
}

/* ── Alerts ────────────────────────────────────────────── */
.li-mp-alert {
    padding: 12px 16px;
    border-radius: var(--li-mp-radius-sm);
    font-size: 14px;
    margin: 12px 0;
}

.li-mp-alert--warning {
    background: #fef5e7;
    color: #8a6d3b;
    border: 1px solid #f5deb3;
}

.li-mp-alert--error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.li-mp-alert--success {
    background: #e8f8f0;
    color: #1e7e34;
    border: 1px solid #b8e6c8;
}

/* ── Hidden utility ────────────────────────────────────── */
.li-mp-hidden {
    display: none !important;
}

/* ── Progress bar ──────────────────────────────────────── */
.li-mp-progress {
    background: var(--li-mp-border);
    border-radius: 4px;
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.li-mp-progress__bar {
    background: var(--li-mp-accent);
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.li-mp-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.li-mp-progress__label {
    font-size: 11px;
    color: var(--li-mp-text-muted);
    font-weight: 500;
}

.li-mp-progress__label--active {
    color: var(--li-mp-accent);
    font-weight: 700;
}

/* ── Success icon ──────────────────────────────────────── */
.li-mp-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--li-mp-success);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.li-mp-success-icon--large {
    width: 72px;
    height: 72px;
    font-size: 36px;
}

/* ── Divider ───────────────────────────────────────────── */
.li-mp-divider {
    border: none;
    border-top: 1px solid var(--li-mp-border);
    margin: 20px 0;
}

/* ── Link ──────────────────────────────────────────────── */
.li-mp-link {
    color: var(--li-mp-accent);
    text-decoration: none;
    font-weight: 600;
}

.li-mp-link:active {
    opacity: 0.7;
}

/* ── Camera ────────────────────────────────────────────── */
.li-mp-camera {
    position: relative;
    width: 100%;
    border-radius: var(--li-mp-radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.li-mp-camera__video {
    width: 100%;
    display: block;
    transform: scaleX(-1); /* Mirror for selfie */
}

.li-mp-camera__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.li-mp-camera__guide-frame {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px dashed rgba(200,169,110,0.6);
    border-radius: var(--li-mp-radius);
}

/* Vertical full-body framing guide (authorization video). */
.li-mp-camera--body {
    aspect-ratio: 9 / 16;
    max-height: 62vh;
    margin-left: auto;
    margin-right: auto;
}
.li-mp-camera--body .li-mp-camera__video {
    transform: none; /* no mirror — full-body / rear camera */
    height: 100%;
    object-fit: cover;
}
.li-mp-camera__body-frame {
    position: absolute;
    top: 4%;
    bottom: 4%;
    left: 20%;
    right: 20%;
    border: 3px dashed rgba(200,169,110,0.9);
    border-radius: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.li-mp-camera__body-frame span {
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.li-mp-camera__captured {
    width: 100%;
    border-radius: var(--li-mp-radius);
    display: block;
    margin-bottom: 16px;
}

.li-mp-camera__actions {
    display: flex;
    flex-direction: column; /* stack full-width — no overlap on narrow mobile */
    gap: 10px;
}

.li-mp-camera__actions > .li-mp-btn {
    width: 100%;
    margin-bottom: 0; /* spacing handled by the column gap */
}

/* Post-capture pair (Repetir / Usar) stays side-by-side when shown.
   .li-mp-hidden uses !important, so these don't force-show. */
.li-mp-camera__actions #camera-post-capture,
.li-mp-camera__actions #rec-post {
    display: flex;
    gap: 10px;
}

.li-mp-camera__actions #camera-post-capture .li-mp-btn,
.li-mp-camera__actions #rec-post .li-mp-btn {
    flex: 1;
    margin-bottom: 0;
}

/* ── Checklist ─────────────────────────────────────────── */
.li-mp-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.li-mp-checklist li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--li-mp-text);
}

.li-mp-camera-guide {
    background: #f8f6f0;
    padding: 12px 16px;
    border-radius: var(--li-mp-radius-sm);
    margin-bottom: 16px;
}

/* ── Upload zone ───────────────────────────────────────── */
.li-mp-upload-zone {
    position: relative;
    border: 2px dashed var(--li-mp-border);
    border-radius: var(--li-mp-radius);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.li-mp-upload-zone:active {
    border-color: var(--li-mp-accent);
}

.li-mp-upload-zone__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.li-mp-upload-zone__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.li-mp-upload-zone__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: var(--li-mp-text-muted);
}

/* ── Photo grid (preview) ──────────────────────────────── */
.li-mp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.li-mp-photo-grid__item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--li-mp-radius-sm);
    overflow: hidden;
}

.li-mp-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.li-mp-photo-grid__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Video preview ─────────────────────────────────────── */
.li-mp-video-preview {
    width: 100%;
    border-radius: var(--li-mp-radius);
    margin-bottom: 16px;
}

/* ── Legal scroll container ────────────────────────────── */
.li-mp-legal-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--li-mp-border);
    border-radius: var(--li-mp-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}

/* ── Dashboard metrics ─────────────────────────────────── */
.li-mp-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.li-mp-metric-card {
    background: var(--li-mp-card-bg);
    border-radius: var(--li-mp-radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--li-mp-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.li-mp-metric-card__icon {
    font-size: 24px;
}

.li-mp-metric-card__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--li-mp-primary);
    font-variant-numeric: tabular-nums;
}

.li-mp-metric-card__label {
    font-size: 12px;
    color: var(--li-mp-text-muted);
}

/* ── Action buttons (dashboard) ────────────────────────── */
.li-mp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.li-mp-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--li-mp-card-bg);
    border-radius: var(--li-mp-radius);
    box-shadow: var(--li-mp-shadow);
    text-decoration: none;
    color: var(--li-mp-text);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.1s;
}

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

.li-mp-action-btn__icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

/* ── Footer ────────────────────────────────────────────── */
.li-mp-footer {
    max-width: var(--li-mp-max-w);
    margin: 0 auto;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--li-mp-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.li-mp-footer__logout {
    color: var(--li-mp-text-muted);
    text-decoration: none;
    font-size: 12px;
}

/* ── Notifications ─────────────────────────────────────── */
.li-mp-notifications {
    margin-top: 24px;
}

/* ── Desktop enhancement (not priority) ────────────────── */
@media (min-width: 768px) {
    .li-mp-main {
        padding: 32px 16px;
    }
    .li-mp-card {
        padding: 32px;
    }
    .li-mp-input--code {
        font-size: 36px;
    }
}

/* ═══════════════════════════════════════════════════════
   Reskin premium oscuro/dorado (estilo /unete/) — SOLO PIEL.
   Overrides para lo que estaba hardcodeado en claro + títulos serif
   + bordes dorados de tarjeta. No cambia layout, flujos ni lógica.
   ═══════════════════════════════════════════════════════ */

/* Tarjetas / superficies: borde sutil dorado como las cards de /unete/ */
.li-mp-card,
.li-mp-metric-card,
.li-mp-action-btn {
    border: 1px solid var(--li-mp-border);
}

/* Títulos de paso en Cormorant serif claro (decoupled de --li-mp-primary,
   que ahora es el fondo del header). */
.li-mp-title,
.li-mp-step__title {
    font-family: var(--li-mp-font-logo);
    color: #F5F5F5;
    letter-spacing: .01em;
}
.li-mp-metric-card__value { color: var(--li-mp-accent); }
.li-mp-action-btn { color: var(--li-mp-text); }
.li-mp-nav-link { color: #cfc9bd; }

/* Inputs / selects oscuros, texto claro, foco dorado */
.li-mp-input,
.li-mp-select {
    background: #0f0e0c;
    border-color: var(--li-mp-border);
    color: #F5F5F5;
}
.li-mp-input::placeholder { color: #6f6a5f; }
.li-mp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* Botón primario: dorado sólido + texto oscuro (token /unete/) */
.li-mp-btn--primary { color: #0A0A0A; }
/* Secundario / ghost: borde dorado */
.li-mp-btn--ghost { border-color: var(--li-mp-border); color: var(--li-mp-accent); }

/* Alerts en dark */
.li-mp-alert--warning { background: rgba(240,198,116,0.08); color: #e6cf9a; border-color: rgba(240,198,116,0.22); }
.li-mp-alert--error   { background: rgba(248,113,113,0.08); color: #F87171; border-color: rgba(248,113,113,0.22); }
.li-mp-alert--success { background: rgba(74,222,128,0.08);  color: #4ADE80; border-color: rgba(74,222,128,0.22); }

/* Contenedores oscuros */
.li-mp-camera-guide { background: #141210; border: 1px solid var(--li-mp-border); }
.li-mp-legal-scroll { background: #100f0d; border-color: var(--li-mp-border); color: #cfc9bd; }
.li-mp-checklist li { color: #cfc9bd; }
.li-mp-upload-zone__label { color: #9a917f; }

/* Ícono de candado dorado junto al aviso de privacidad */
.li-mp-lock { color: var(--li-mp-accent); display: inline-flex; vertical-align: -2px; margin-right: 6px; }

/* ════════════════════════════════════════════════════════════════════
   A4 (2026-06-01) — Silueta vectorial dorada como guía de encuadre en el
   video de autorización (reemplaza el texto que estorbaba en pantalla chica).
   ════════════════════════════════════════════════════════════════════ */
.li-mp-body-silhouette {
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    height: 86%;
    width: auto;
    color: var(--li-mp-accent);
    opacity: 0.25;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════
   A5 (2026-06-01) — Microcopy de seguridad persistente y discreto en los
   pasos de subir identidad / fotos / video. Reusa el dorado del candado.
   ════════════════════════════════════════════════════════════════════ */
.li-mp-reassure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #a99f8c;
    background: rgba(201,169,110,0.05);
    border: 1px solid var(--li-mp-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
}
.li-mp-reassure svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--li-mp-accent);
}
