/* ╔══════════════════════════════════════════════════════════════╗
   ║           OnePass – Global Stylesheet                       ║
   ║   Palette: #08476B, #07AEDE, #9ABE3C, #FFFFFF, #000000     ║
   ╚══════════════════════════════════════════════════════════════╝ */

:root {
    /* Paleta principal */
    --op-navy:    #08476B;   /* PRINCIPAL */
    --op-blue:    #07AEDE;   /* acento */
    --op-green:   #9ABE3C;   /* éxito */
    --op-white:   #FFFFFF;
    --op-black:   #000000;
    --op-primary: #08476B;   /* color principal de acciones */
    --op-accent:  #07AEDE;
    --op-navy-dk: #063550;
    --op-navy-lt: #0c5f8a;
    --op-blue-dk: #0594c0;
    --op-blue-lt: #39c3ec;
    --op-green-dk:#7ea030;
    --op-green-lt:#b2d455;
    --op-gray-100:#f4f7f9;
    --op-gray-200:#e8edf2;
    --op-gray-300:#cdd6de;
    --op-gray-500:#7a909f;
    --op-gray-700:#3d4f5d;
    --op-danger:  #e63946;
    --op-warning: #f4a261;
    --op-success: #9ABE3C;
    --sidebar-w:  260px;
    --topbar-h:   64px;
    --radius:     10px;
    --shadow:     0 2px 12px rgba(8,71,107,.12);
    --shadow-lg:  0 8px 32px rgba(8,71,107,.18);
    --transition: all .18s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--op-gray-100);
    color: var(--op-gray-700);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

a { color: var(--op-blue); text-decoration: none; }
a:hover { color: var(--op-blue-dk); text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────── */
.op-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
.op-sidebar {
    width: var(--sidebar-w);
    background: var(--op-navy);
    color: var(--op-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0,0,0,.18);
    transition: transform .25s ease;
}

.op-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.op-sidebar-logo .logo-icon {
    width: 40px; height: 40px;
    background: var(--op-blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 2px 8px rgba(7,174,222,.4);
}

.op-sidebar-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--op-white);
}

.op-sidebar-logo .logo-text span { color: var(--op-blue); }

.op-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 8px 12px;
    background: rgba(255,255,255,.07);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--op-white);
    transition: var(--transition);
}
.op-sidebar-user:hover { background: rgba(255,255,255,.13); color: var(--op-white); text-decoration: none; }

.op-user-avatar {
    width: 36px; height: 36px;
    background: var(--op-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}

.op-user-info { flex: 1; min-width: 0; }
.op-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-user-role { font-size: 11px; color: rgba(255,255,255,.55); }

.op-sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }

.op-nav-section {
    padding: 20px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.35);
}

.op-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 2px 8px;
    color: rgba(255,255,255,.75);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.op-nav-item:hover {
    background: rgba(255,255,255,.1);
    color: var(--op-white);
    text-decoration: none;
}
.op-nav-item.active {
    background: var(--op-blue);
    color: var(--op-white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(7,174,222,.3);
}
.op-nav-item .op-nav-icon { width: 18px; text-align: center; font-size: 15px; }
.op-nav-badge {
    margin-left: auto;
    background: var(--op-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.op-nav-badge.green { background: var(--op-green); }
.op-nav-badge.blue { background: var(--op-blue); }

.op-sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* ── Main Content ──────────────────────────────────────────── */
.op-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.op-topbar {
    height: var(--topbar-h);
    background: var(--op-white);
    border-bottom: 1px solid var(--op-gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky; top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.op-search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.op-search-box input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    border: 1.5px solid var(--op-gray-200);
    border-radius: 24px;
    font-size: 14px;
    background: var(--op-gray-100);
    transition: var(--transition);
    outline: none;
}
.op-search-box input:focus {
    border-color: var(--op-blue);
    background: var(--op-white);
    box-shadow: 0 0 0 3px rgba(7,174,222,.15);
}
.op-search-box .op-search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--op-gray-500);
    font-size: 14px;
}

.op-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.op-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--op-gray-500);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    position: relative;
}
.op-icon-btn:hover { background: var(--op-gray-100); color: var(--op-navy); }
.op-icon-btn .op-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 8px; height: 8px;
    background: var(--op-danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ── Page Content ──────────────────────────────────────────── */
.op-content { flex: 1; padding: 28px 32px; }

.op-page-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.op-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--op-navy);
    margin: 0;
    flex: 1;
}
.op-page-subtitle {
    font-size: 14px;
    color: var(--op-gray-500);
    margin: 2px 0 0;
}

/* ── Cards ─────────────────────────────────────────────────── */
.op-card {
    background: var(--op-white);
    border-radius: var(--radius);
    border: 1px solid var(--op-gray-200);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}
.op-card:hover { box-shadow: var(--shadow-lg); }

.op-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}
.op-card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.op-card-icon.navy { background: rgba(8,71,107,.12); color: var(--op-navy); }
.op-card-icon.blue  { background: rgba(7,174,222,.12); color: var(--op-blue); }
.op-card-icon.green { background: rgba(154,190,60,.12); color: var(--op-green-dk); }
.op-card-icon.red   { background: rgba(230,57,70,.12); color: var(--op-danger); }
.op-card-icon.orange { background: rgba(244,162,97,.15); color: var(--op-warning); }

.op-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--op-navy);
    line-height: 1;
}
.op-stat-label {
    font-size: 13px;
    color: var(--op-gray-500);
    margin-top: 4px;
}

/* ── Vault Grid ────────────────────────────────────────────── */
.op-vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.op-vault-card {
    background: var(--op-white);
    border-radius: var(--radius);
    border: 1px solid var(--op-gray-200);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.op-vault-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--vault-color, var(--op-blue));
}
.op-vault-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.op-vault-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--op-white);
    background: var(--vault-color, var(--op-navy));
}

.op-vault-card-name { font-size: 16px; font-weight: 700; color: var(--op-navy); }
.op-vault-card-desc { font-size: 12px; color: var(--op-gray-500); }
.op-vault-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--op-gray-500);
    margin-top: auto;
}

/* ── Item List ─────────────────────────────────────────────── */
.op-item-list { display: flex; flex-direction: column; gap: 4px; }

.op-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    background: var(--op-white);
    border: 1px solid transparent;
}
.op-item-row:hover {
    background: var(--op-gray-100);
    border-color: var(--op-gray-200);
    text-decoration: none;
    color: inherit;
}
.op-item-row.weak-pw  { border-left: 3px solid var(--op-warning); }
.op-item-row.breached { border-left: 3px solid var(--op-danger); }
.op-item-row.reused   { border-left: 3px solid var(--op-blue); }

/* Zona clicable de la fila (separada del checkbox y acciones) */
.op-item-link {
    display: flex; align-items: center; gap: 14px;
    flex: 1; min-width: 0;
    text-decoration: none; color: inherit;
}
.op-item-link:hover { text-decoration: none; color: inherit; }

.op-item-favicon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--op-gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: var(--op-gray-500);
    flex-shrink: 0;
    overflow: hidden;
}
.op-item-favicon img { width: 100%; height: 100%; object-fit: cover; }

.op-item-info { flex: 1; min-width: 0; }
.op-item-name { font-size: 14px; font-weight: 600; color: var(--op-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-item-username { font-size: 12px; color: var(--op-gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.op-item-badges { display: flex; gap: 4px; flex-shrink: 0; }
.op-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.op-badge-danger { background: rgba(230,57,70,.12); color: var(--op-danger); }
.op-badge-warning { background: rgba(244,162,97,.15); color: #c07a3a; }
.op-badge-blue { background: rgba(7,174,222,.12); color: var(--op-blue-dk); }
.op-badge-green { background: rgba(154,190,60,.12); color: var(--op-green-dk); }
.op-badge-gray { background: var(--op-gray-200); color: var(--op-gray-500); }

.op-item-actions { display: flex; gap: 4px; opacity: 0; transition: var(--transition); }
.op-item-row:hover .op-item-actions { opacity: 1; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-op-primary {
    background: var(--op-primary);          /* #08476B navy = color principal */
    color: var(--op-white);
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-op-primary:hover {
    background: var(--op-navy-dk);
    color: var(--op-white);
    box-shadow: 0 4px 12px rgba(8,71,107,.35);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Botón de acento (cian) para acciones secundarias destacadas */
.btn-op-accent {
    background: var(--op-blue);
    color: var(--op-white);
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-op-accent:hover {
    background: var(--op-blue-dk);
    color: var(--op-white);
    box-shadow: 0 4px 12px rgba(7,174,222,.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-op-secondary {
    background: var(--op-gray-100);
    color: var(--op-navy);
    border: 1.5px solid var(--op-gray-200);
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-op-secondary:hover {
    background: var(--op-gray-200);
    color: var(--op-navy);
    text-decoration: none;
}

.btn-op-danger {
    background: transparent;
    color: var(--op-danger);
    border: 1.5px solid var(--op-danger);
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-op-danger:hover { background: var(--op-danger); color: #fff; text-decoration: none; }

.btn-op-green {
    background: var(--op-green);
    color: var(--op-white);
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-op-green:hover { background: var(--op-green-dk); color: #fff; text-decoration: none; }

/* ── Forms ─────────────────────────────────────────────────── */
.op-form-group { margin-bottom: 18px; }
.op-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--op-navy);
    margin-bottom: 6px;
}
.op-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--op-gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: var(--op-white);
    transition: var(--transition);
    outline: none;
    color: var(--op-gray-700);
}
.op-input:focus {
    border-color: var(--op-blue);
    box-shadow: 0 0 0 3px rgba(7,174,222,.15);
}
.op-input.is-invalid { border-color: var(--op-danger); }
.op-input-password { position: relative; }
.op-input-password .op-input { padding-right: 44px; }
.op-input-password .op-eye-btn {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--op-gray-500); cursor: pointer;
    font-size: 15px;
    padding: 2px;
}
.op-input-password .op-eye-btn:hover { color: var(--op-blue); }

.op-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--op-gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: var(--op-white);
    transition: var(--transition);
    outline: none;
    appearance: none;
    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='%237a909f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.op-select:focus { border-color: var(--op-blue); box-shadow: 0 0 0 3px rgba(7,174,222,.15); }

/* ── Password Strength Bar ─────────────────────────────────── */
.op-strength-bar { height: 4px; border-radius: 2px; background: var(--op-gray-200); margin: 6px 0 4px; overflow: hidden; }
.op-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s ease, background .3s ease;
}
.strength-0 { width: 10%; background: #e63946; }
.strength-1 { width: 30%; background: #e63946; }
.strength-2 { width: 55%; background: var(--op-warning); }
.strength-3 { width: 78%; background: var(--op-blue); }
.strength-4 { width: 100%; background: var(--op-green); }

/* ── Security Score ────────────────────────────────────────── */
.op-score-ring {
    width: 100px; height: 100px;
    border-radius: 50%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.op-score-value { font-size: 28px; font-weight: 800; position: relative; z-index: 1; }

/* ── TOTP Code ─────────────────────────────────────────────── */
.op-totp-code {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--op-blue);
    font-family: 'Courier New', monospace;
    user-select: all;
}
.op-totp-timer {
    font-size: 12px;
    color: var(--op-gray-500);
    margin-top: 4px;
}

/* ── Alerts & Messages ─────────────────────────────────────── */
.op-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.op-alert-danger { background: rgba(230,57,70,.08); border: 1px solid rgba(230,57,70,.25); color: #b02030; }
.op-alert-warning { background: rgba(244,162,97,.1); border: 1px solid rgba(244,162,97,.3); color: #8a5020; }
.op-alert-success { background: rgba(154,190,60,.1); border: 1px solid rgba(154,190,60,.3); color: var(--op-green-dk); }
.op-alert-info { background: rgba(7,174,222,.08); border: 1px solid rgba(7,174,222,.25); color: var(--op-blue-dk); }

/* ── Empty State ───────────────────────────────────────────── */
.op-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--op-gray-500);
}
.op-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: .3;
}
.op-empty h3 { color: var(--op-navy); font-size: 18px; margin-bottom: 8px; }
.op-empty p { font-size: 14px; margin-bottom: 20px; }

/* ── Utilidad: ocultar ─────────────────────────────────────── */
.d-none { display: none !important; }

/* ── Footer ArguedasOne ────────────────────────────────────── */
.op-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    margin-top: 24px;
    border-top: 1px solid var(--op-gray-200);
    color: var(--op-gray-500);
    font-size: 12px;
}
.op-footer img { height: 26px; width: auto; opacity: .9; }
.op-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--op-gray-500);
    font-size: 11px;
    text-align: center;
}
.op-auth-footer img { height: 22px; width: auto; }

/* ── Tabs ──────────────────────────────────────────────────── */
.op-tab-pane { display: none; }
.op-tab-pane.active { display: block; }
.op-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--op-gray-200);
    margin-bottom: 20px;
}
.op-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--op-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.op-tab:hover { color: var(--op-blue); }
.op-tab.active { color: var(--op-blue); border-bottom-color: var(--op-blue); }

/* ── Watchtower ────────────────────────────────────────────── */
.op-wt-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: var(--op-white);
    border: 1px solid var(--op-gray-200);
    margin-bottom: 8px;
    transition: var(--transition);
}
.op-wt-alert:hover { border-color: var(--op-blue); }
.op-wt-critical { border-left: 4px solid var(--op-danger); }
.op-wt-warning  { border-left: 4px solid var(--op-warning); }
.op-wt-info     { border-left: 4px solid var(--op-blue); }

/* ── Generator ─────────────────────────────────────────────── */
.op-gen-output {
    background: var(--op-gray-100);
    border: 1.5px solid var(--op-gray-200);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    letter-spacing: 2px;
    word-break: break-all;
    text-align: center;
    color: var(--op-navy);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.op-gen-output:hover { border-color: var(--op-blue); background: rgba(7,174,222,.05); }

/* ── Login / Auth Pages ────────────────────────────────────── */
.op-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--op-navy) 0%, var(--op-navy-lt) 40%, #0d6e9e 100%);
    padding: 20px;
}

.op-auth-card {
    background: var(--op-white);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.op-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.op-auth-logo .logo-icon {
    width: 60px; height: 60px;
    background: var(--op-blue);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 4px 16px rgba(7,174,222,.4);
}
.op-auth-logo h1 { font-size: 26px; font-weight: 800; color: var(--op-navy); margin: 0; }
.op-auth-logo span { color: var(--op-blue); }
.op-auth-logo p { font-size: 14px; color: var(--op-gray-500); margin: 6px 0 0; }

/* ── QR Code ───────────────────────────────────────────────── */
.op-qr-container {
    text-align: center;
    padding: 20px;
    background: var(--op-gray-100);
    border-radius: 12px;
    border: 1px solid var(--op-gray-200);
}
.op-qr-container img { border-radius: 8px; max-width: 200px; }

/* ── Travel Mode Banner ────────────────────────────────────── */
.op-travel-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}
.op-travel-banner .fa-plane { color: var(--op-blue); animation: fly .8s ease infinite alternate; }
@keyframes fly { from { transform: rotate(-5deg); } to { transform: rotate(5deg) translateX(4px); } }

/* ── Tooltip ───────────────────────────────────────────────── */
.op-tooltip {
    position: relative;
    display: inline-block;
}
.op-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--op-navy);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 1000;
}
.op-tooltip:hover::after { opacity: 1; }

/* ── Helpers de layout ─────────────────────────────────────── */
.op-grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
.op-menu-btn { display: none; }   /* solo visible en móvil */
.op-sidebar-backdrop {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.op-sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .op-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Sidebar deslizante + botón de menú */
    .op-sidebar { transform: translateX(-100%); }
    .op-sidebar.open { transform: translateX(0); }
    .op-main { margin-left: 0; }
    .op-menu-btn { display: inline-flex; }

    /* Espaciados y rejillas */
    .op-content { padding: 14px; }
    .op-vault-grid { grid-template-columns: 1fr; }
    .op-topbar { padding: 0 12px; gap: 8px; }
    .op-auth-card { padding: 26px 18px; }

    /* Encabezados de página: apilar acciones */
    .op-page-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .op-page-header h1 { font-size: 22px; }

    /* Tablas: scroll horizontal en pantallas pequeñas */
    .op-card table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Rejillas inline de 2 columnas que quepan mejor */
    .op-vault-grid, .op-stats-grid { grid-template-columns: 1fr !important; }

    /* Footer compacto */
    .op-footer { flex-direction: column; gap: 6px; padding: 14px; text-align: center; }

    /* Apila las rejillas fijas de 2 columnas (inline) en móvil */
    [style*="grid-template-columns:3fr 2fr"],
    [style*="grid-template-columns: 3fr 2fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:1fr 2fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .op-topbar .op-search-box { display: none; }   /* la búsqueda está también en el menú */
    .op-content { padding: 10px; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-navy  { color: var(--op-navy) !important; }
.text-blue  { color: var(--op-blue) !important; }
.text-green { color: var(--op-green) !important; }
.text-danger { color: var(--op-danger) !important; }
.text-muted  { color: var(--op-gray-500) !important; }
.bg-navy  { background: var(--op-navy) !important; }
.bg-blue  { background: var(--op-blue) !important; }
.bg-green { background: var(--op-green) !important; }
.font-mono { font-family: 'Courier New', monospace; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--op-gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--op-gray-500); }
