/* ============================================================
   PLATAFORMA — nav-bottom.css  ·  Branding base: Monetiva
   Menú inferior tipo app móvil
   Incluir en el <head> de header.php (después de app.css):
   <link rel="stylesheet" href="<?= url('assets/css/nav-bottom.css') ?>">
   Usa las variables definidas en app.css / admin.css.
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,.94);
    border-top: 1px solid rgba(18,48,74,.08);
    box-shadow: 0 -10px 30px rgba(18,48,74,.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: stretch;
    z-index: 500;
    /* Espacio seguro iPhone con notch */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Cada ítem ────────────────────────────────────────────── */
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: .6rem .2rem .6rem;
    color: #8a9caa;
    text-decoration: none;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    transition: color .2s, background .2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-item i {
    font-size: 1.3rem;
    line-height: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 30px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.nav-item:hover,
.nav-item:focus {
    color: #12304a;
    outline: none;
}

.nav-item:focus-visible i { box-shadow: 0 0 0 2px #19b7a5; }

/* ── Ítem activo: píldora mint con ícono teal ─────────────── */
.nav-item--active {
    color: #12304a !important;
}

.nav-item--active i {
    background: #e8f8f5;
    color: #0f9587;
}

/* ── Ítem logout (admin) ──────────────────────────────────── */
.nav-item--logout { color: #8a9caa; }
.nav-item--logout:hover { color: #d64545 !important; }
.nav-item--logout:hover i { background: rgba(214,69,69,.08); }

/* ── Feedback táctil al presionar ────────────────────────── */
.nav-item:active { transform: scale(.96); }

/* ── Desktop: bordes laterales para mantener el look app ─── */
@media (min-width: 500px) {
    .bottom-nav {
        border-left:  1px solid #dce8ed;
        border-right: 1px solid #dce8ed;
    }
}

/* ── Espacio para que el contenido no quede tapado ────────── */
.app-body      { padding-bottom: 84px !important; }
.admin-content { padding-bottom: 84px !important; }
.admin-shell   { min-height: calc(100vh - 64px); }

/* ── Card toggle (ojito tarjeta personal) ─────────────────── */
.card-toggle-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.eye-btn {
    background: none;
    border: none;
    color: #617586;
    cursor: pointer;
    padding: .2rem .3rem;
    border-radius: 8px;
    font-size: .9rem;
    transition: color .2s;
    line-height: 1;
}

.eye-btn:hover { color: #0f9587; }

/* Dentro de la tarjeta navy el ojito va en claro */
.solvex-card .eye-btn       { color: rgba(255,255,255,.7); }
.solvex-card .eye-btn:hover { color: #56d6c7; }

/* ── Select banco en registro ─────────────────────────────── */
.select-group { position: relative; }

.select-group .form-input-solvex {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 14px;
    color: #617586;
    font-size: .8rem;
    pointer-events: none;
    z-index: 2;
}

/* ── Hint de seguridad en registro ───────────────────────── */
.register-hint {
    font-size: .74rem;
    color: #617586;
    padding: 0 .2rem;
}

/* ── Formato tarjeta en input ────────────────────────────── */
.card-format { letter-spacing: 1px; }
