/* ============================================================
   Multi Services — Design System (v3, light)
   Estética: fintech clara, confiable, premium. Fondo claro,
   acento verde institucional + tinta profunda. Tarjeta real.
   ============================================================ */

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

:root {
    /* Superficies claras */
    --bg:        #F4F6F8;
    --bg-2:      #FFFFFF;
    --panel:     #FFFFFF;
    --panel-2:   #F8FAFB;
    --line:      #E4E8EC;
    --line-2:    #EDF0F3;

    /* Acento principal: azul institucional */
    --emerald:       #2563EB;
    --emerald-dark:  #1D4ED8;
    --emerald-light: #3B82F6;
    --emerald-dim:   rgba(37,99,235,0.10);
    --emerald-glow:  rgba(37,99,235,0.22);

    /* Azul menta (acento secundario, antes "azul cuenta") */
    --blue:      #0EA5C4;
    --blue-dim:  rgba(14,165,196,0.10);

    /* Tinta (texto) */
    --ink:       #0F1B24;
    --t90:       #16242E;
    --t70:       #45555F;
    --t50:       #6B7882;
    --t30:       #97A2AB;

    /* Semánticos */
    --green:     #0E9E6E;
    --red:       #E0524B;
    --amber:     #C98A00;
    --gold:      #C8A24B;

    --font:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font);
    --font-num:  'Plus Jakarta Sans', var(--font);
    --mono:      'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
    --font-card: 'Kredit', 'JetBrains Mono', ui-monospace, monospace;

    --radius:    16px;
    --radius-sm: 11px;
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
    --shadow:    0 18px 50px -22px rgba(15,27,36,0.22);
    --shadow-sm: 0 6px 20px -10px rgba(15,27,36,0.14);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--t90);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    letter-spacing: -0.003em;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
::selection { background: var(--emerald-dim); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}

/* ---------------- Fondo ambiental ---------------- */
.bg-ambient {
    position: fixed; inset: 0; z-index: -2; overflow: hidden;
    background:
        radial-gradient(900px 540px at 88% -12%, rgba(37,99,235,0.06), transparent 60%),
        radial-gradient(760px 640px at -8% 108%, rgba(37,99,235,0.07), transparent 58%),
        var(--bg);
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; opacity: 0.6;
    background-image:
        linear-gradient(rgba(15,27,36,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,27,36,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 70%);
}

/* ================= LOGO / BRAND ================= */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; min-width: 0; }
.brand-logo {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: block; object-fit: contain;
    box-shadow: 0 8px 20px -8px var(--emerald-glow);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; min-width: 0; }
.brand-name span { display: block; font-size: 10.5px; font-weight: 600; color: var(--t50); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

.auth-aside-top { margin-bottom: 8px; }
.brand-logo-hero {
    display: block;
    height: 64px; max-width: 100%; width: auto;
    object-fit: contain; object-position: left center;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}

/* ================= AUTH (login) ================= */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
    position: relative; overflow: hidden;
    background:
        radial-gradient(600px 400px at 20% 15%, rgba(255,255,255,0.10), transparent 60%),
        linear-gradient(160deg, #2563EB 0%, #1D4ED8 55%, #0f2f7a 100%);
    color: #fff;
    padding: 56px 52px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-width: 0;
}
.auth-aside::after {
    content: ''; position: absolute; right: -120px; bottom: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    pointer-events: none;
}
.auth-aside .brand-name, .auth-aside .brand-name span { color: #fff; }
.auth-aside .brand-name span { color: rgba(255,255,255,0.7); }
.auth-aside-headline {
    font-family: var(--font-display);
    font-size: 33px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
    max-width: 16ch; position: relative; z-index: 1;
}
.auth-aside-sub { margin-top: 16px; font-size: 15px; color: rgba(255,255,255,0.82); max-width: 34ch; line-height: 1.6; position: relative; z-index: 1; }
.auth-aside-foot { font-size: 12.5px; color: rgba(255,255,255,0.65); position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-aside-foot svg { width: 15px; height: 15px; flex-shrink: 0; }

/* showcase card on login aside */
.aside-card {
    position: relative; z-index: 1; margin: 30px 0;
    align-self: flex-start;
}

.auth-main { display: grid; place-items: center; padding: 40px 28px; }
.auth-card {
    width: 100%;
    max-width: 400px;
}
.auth-card .brand { margin-bottom: 36px; }
.auth-title { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 7px; color: var(--ink); }
.auth-sub { color: var(--t50); font-size: 14.5px; margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 12.5px; font-weight: 650; color: var(--t70);
    margin-bottom: 8px; letter-spacing: 0.005em;
}
.field input, .field select {
    width: 100%;
    background: var(--panel-2);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--emerald);
    background: #fff;
    box-shadow: 0 0 0 4px var(--emerald-dim);
}
.field input::placeholder { color: var(--t30); }
.field-hint { font-size: 12px; color: var(--t50); margin-top: 6px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius-sm);
    padding: 13px 20px;
    font-weight: 650; font-size: 14.5px;
    transition: transform .14s var(--ease), box-shadow .2s var(--ease), background .18s, border-color .18s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
    color: #fff;
    box-shadow: 0 12px 26px -12px var(--emerald-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -14px var(--emerald-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: var(--panel-2); border: 1.5px solid var(--line); color: var(--t90); }
.btn-ghost:hover { border-color: var(--t30); background: #fff; }

.btn-danger { background: rgba(224,82,75,0.10); color: var(--red); border: 1.5px solid rgba(224,82,75,0.25); }
.btn-danger:hover { background: rgba(224,82,75,0.16); }

.btn-outline-emerald { background: var(--emerald-dim); color: var(--emerald-dark); border: 1.5px solid rgba(37,99,235,0.30); }
.btn-outline-emerald:hover { background: rgba(37,99,235,0.16); }

.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.alert {
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 13.5px;
    margin-bottom: 20px;
    border: 1.5px solid;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-error { background: rgba(224,82,75,0.08); border-color: rgba(224,82,75,0.28); color: #b23d37; }
.alert-ok    { background: rgba(22,163,116,0.09); border-color: rgba(22,163,116,0.28); color: #0f7a52; }
.alert-info  { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.25); color: #1d4ed8; }

.auth-hint {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--t50); text-align: center;
}
.auth-hint code { color: var(--emerald-dark); font-family: var(--mono); background: var(--emerald-dim); padding: 1px 6px; border-radius: 5px; }

/* ================= APP SHELL ================= */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 268px; flex-shrink: 0;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    padding: 24px 16px;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { margin-bottom: 30px; padding: 0 6px; align-items: flex-start; }
.sidebar .brand-logo { margin-top: 1px; }
.sidebar .brand-name { font-size: 15.5px; line-height: 1.25; padding-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; border-radius: var(--radius-sm);
    color: var(--t70); font-weight: 600; font-size: 14px;
    transition: background .18s, color .18s;
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.active { background: var(--emerald-dim); color: var(--emerald-dark); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px; margin-bottom: 8px; }
.avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(145deg, var(--emerald-light), var(--emerald-dark));
    display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px;
}
.user-chip .meta { overflow: hidden; }
.user-chip .meta b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.user-chip .meta span { font-size: 11.5px; color: var(--t50); }

.main { flex: 1; padding: 32px 40px; max-width: 100%; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.page-head p { color: var(--t50); font-size: 14px; margin-top: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-card-balance { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card-title { font-size: 12px; font-weight: 700; color: var(--t50); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.card-title.row { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   TARJETA DE CRÉDITO REALISTA (signature element)
   ============================================================ */
.cc-slot { perspective: 1600px; min-width: 0; }
.credit-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1.586 / 1;          /* proporción ID-1 real (85.6 x 53.98mm) */
    border-radius: 18px;
    padding: 26px 28px;
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow:
        0 30px 60px -24px rgba(15,27,36,0.55),
        0 8px 18px -8px rgba(15,27,36,0.3),
        inset 0 1px 0 rgba(255,255,255,0.18);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.14), transparent 45%),
        linear-gradient(135deg, var(--cc-1, #1d2733) 0%, var(--cc-2, #0d141c) 100%);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.credit-card:hover {
    transform: rotateX(4deg) rotateY(-6deg) translateY(-4px);
    box-shadow:
        0 44px 80px -28px rgba(15,27,36,0.6),
        0 12px 24px -10px rgba(15,27,36,0.34),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
/* brillo holográfico que recorre la tarjeta */
.credit-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 47%, rgba(255,255,255,0.05) 53%, transparent 70%);
    transform: translateX(-100%);
    animation: cc-shine 6s ease-in-out infinite;
    animation-delay: 1.2s;
    pointer-events: none;
}
@keyframes cc-shine {
    0%   { transform: translateX(-120%); }
    18%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
/* textura de guilloche sutil */
.credit-card::after {
    content: '';
    position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 120% -10%, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px);
}
.cc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: relative; z-index: 2; }
.cc-brand {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(11.5px, 3.4vw, 14.5px); letter-spacing: 0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0; flex: 1 1 auto;
}
.cc-brand small { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.72; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bank-logo { max-width: 70px; max-height: 30px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); flex-shrink: 0; }
.cc-tier {
    font-size: clamp(8px, 2.2vw, 10px); font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; opacity: 0.85; text-align: right;
    white-space: nowrap; flex-shrink: 0;
}

.cc-mid { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.cc-chip {
    width: 46px; height: 35px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(135deg, #f3d98b 0%, #d9b454 40%, #b8923f 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -1px 2px rgba(0,0,0,0.2);
    position: relative;
}
.cc-chip::before {
    content: ''; position: absolute; inset: 5px 6px;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px);
    background-size: 9px 7px;
    border-radius: 2px;
}
.cc-contactless { width: 22px; height: 22px; opacity: 0.85; }

.cc-number {
    font-family: var(--font-card);
    font-size: clamp(18px, 4.4vw, 23px);
    letter-spacing: 0.14em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.12);
    position: relative; z-index: 2;
    font-weight: 500;
    display: flex; gap: 0.55em; flex-wrap: wrap;
}
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 2; gap: 12px; }
.cc-field-label { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.62; font-weight: 600; margin-bottom: 3px; }
.cc-holder { font-family: var(--font-card); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.cc-exp { font-family: var(--font-card); font-size: 13px; letter-spacing: 0.06em; font-weight: 500; }
.cc-network {
    display: flex; align-items: flex-end;
}
.cc-network-dots { display: flex; }
.cc-network-dots span { width: 22px; height: 22px; border-radius: 50%; display: block; }
.cc-network-dots span:first-child { background: rgba(235,70,49,0.92); }
.cc-network-dots span:last-child { background: rgba(247,158,27,0.88); margin-left: -10px; mix-blend-mode: screen; }

/* ---------- Balance panel (Saldo disponible) ---------- */
.balance-hero { display: flex; flex-direction: column; justify-content: center; }
.balance-hero.has-title { justify-content: flex-start; }
.balance-hero.has-title .card-title { margin-bottom: 18px; }
.balance-hero .lbl { font-size: 12px; font-weight: 700; color: var(--t50); text-transform: uppercase; letter-spacing: 0.07em; }
.balance-hero .amt { font-family: var(--font-num); font-size: clamp(26px, 7vw, 38px); font-weight: 750; letter-spacing: -0.03em; color: var(--ink); margin-top: 8px; line-height: 1.1; word-break: break-word; }
.balance-hero .amt small { font-size: 15px; color: var(--t50); font-weight: 600; margin-left: 4px; }
.balance-hero .acct { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.balance-hero .acct > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.balance-hero .acct span { color: var(--t50); }
.balance-hero .acct b { color: var(--t90); font-weight: 650; }

/* ---------- Stat ---------- */
.stat .num { font-family: var(--font-num); font-size: 28px; font-weight: 750; letter-spacing: -0.025em; color: var(--ink); }
.stat .lbl { color: var(--t50); font-size: 13px; margin-top: 2px; }
.delta { font-size: 12.5px; font-weight: 650; margin-top: 7px; display: inline-flex; align-items: center; gap: 4px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
    text-align: left; font-size: 11px; font-weight: 700; color: var(--t50);
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 14px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--t90); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--t70); }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 100px;
}
.badge.active { background: rgba(22,163,116,0.12); color: #0f7a52; }
.badge.disabled { background: rgba(224,82,75,0.12); color: var(--red); }
.badge.admin { background: var(--emerald-dim); color: var(--emerald-dark); }
.badge.user { background: rgba(15,27,36,0.05); color: var(--t70); }
.badge.deposito { background: rgba(22,163,116,0.12); color: #0f7a52; }
.badge.retiro { background: rgba(224,82,75,0.12); color: var(--red); }
.badge.ajuste { background: rgba(201,138,0,0.12); color: var(--amber); }
.badge svg { width: 13px; height: 13px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------- Formularios admin ---------- */
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-row.single { grid-template-columns: 1fr; }

.toolbar { display: flex; gap: 10px; align-items: center; }

/* ---------- Selector de operación ---------- */
.op-toggle { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.op-toggle input { display: none; }
.op-toggle label {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--panel-2); cursor: pointer; transition: all .18s var(--ease);
    font-size: 12.5px; font-weight: 650; color: var(--t70); text-align: center;
}
.op-toggle label svg { width: 18px; height: 18px; }
.op-toggle input:checked + label.op-deposito { border-color: #16A574; background: rgba(22,163,116,0.10); color: #0f7a52; }
.op-toggle input:checked + label.op-retiro { border-color: var(--red); background: rgba(224,82,75,0.10); color: #b23d37; }
.op-toggle input:checked + label.op-ajuste { border-color: var(--amber); background: rgba(201,138,0,0.10); color: var(--amber); }

.balance-preview {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center;
}
.balance-preview span { font-size: 12.5px; color: var(--t50); }
.balance-preview b { font-size: 16px; font-family: var(--font-num); color: var(--ink); }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,27,36,0.42);
    backdrop-filter: blur(5px); display: none; place-items: center; z-index: 100; padding: 24px;
}
.modal-backdrop.open { display: grid; }
.modal {
    width: 100%; max-width: 480px;
    background: var(--panel);
    border: 1px solid var(--line); border-radius: 20px; padding: 28px;
    box-shadow: var(--shadow);
    max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; color: var(--ink); }
.modal p.sub { color: var(--t50); font-size: 13.5px; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

/* ---------- Banner de advertencia ---------- */
.warning-banner {
    display: flex; align-items: flex-start; gap: 14px;
    background: rgba(224,82,75,0.07);
    border: 1px solid rgba(224,82,75,0.26);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 22px;
}
.warning-banner-icon { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.warning-banner-icon svg { width: 22px; height: 22px; }
.warning-banner-title { font-size: 13.5px; font-weight: 700; color: #b23d37; margin-bottom: 3px; }
.warning-banner-text { font-size: 13.5px; color: #9a4540; line-height: 1.5; }

/* ---------- Info list ---------- */
.info-list { display: flex; flex-direction: column; gap: 13px; }
.info-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.info-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.info-list span { font-size: 13px; color: var(--t50); flex-shrink: 0; }
.info-list b { font-size: 14px; font-weight: 650; text-align: right; color: var(--t90); }

/* ---------- Form sections ---------- */
.form-section-label {
    font-size: 11.5px; font-weight: 700; color: var(--emerald-dark);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line);
}
.form-section-label:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.modal-lg { max-width: 640px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--t70); cursor: pointer; font-weight: 500; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--emerald); }

/* ---------- Color picker ---------- */
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] {
    width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: transparent; cursor: pointer; padding: 2px;
}
.color-text-input {
    flex: 1; background: var(--panel-2); border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink);
    font-family: var(--mono); font-size: 14px;
}
.color-text-input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-dim); }

/* ---------- Tarjetas de tipo de cuenta (admin_banks) ---------- */
.bank-type-card { padding: 0; overflow: hidden; }
.bank-type-card .credit-card {
    max-width: 100%; border-radius: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    aspect-ratio: auto; min-height: 168px;
}
.bank-type-card .credit-card:hover { transform: none; }
.bank-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--panel);
}

/* ---------- Clave de seguridad dinámica (TOTP) ---------- */
.totp-card {
    background: linear-gradient(135deg, #0F1B24, #1D2733);
    border: 1px solid #1D2733;
    color: #fff;
}
.totp-card .card-title { color: rgba(255,255,255,0.55); }
.totp-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.totp-code {
    font-family: var(--font-card); font-size: clamp(24px, 5.5vw, 32px); font-weight: 600;
    letter-spacing: 0.12em; color: #fff;
}
.totp-card .field-hint { color: rgba(255,255,255,0.55); }
.totp-timer { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.totp-ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.totp-ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 3; }
.totp-ring-fg {
    fill: none; stroke: var(--emerald-light); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 97.4; stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.totp-timer-num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: #fff;
}

/* Recordatorio del código vigente dentro del formulario de transferir */
#totpReminder { color: var(--ink); letter-spacing: 0.06em; }

/* ---------- Distintivo del tipo de cuenta (debajo de la tarjeta, encima del saldo) ---------- */
.bank-badge {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 11px 16px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    max-width: 100%; width: 100%; box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}
.bank-badge-logo { height: 24px; max-width: 96px; object-fit: contain; flex-shrink: 0; }
.bank-badge-dot {
    width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.bank-badge-name { font-size: 13px; font-weight: 700; color: var(--t90); letter-spacing: -0.005em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-badge-tag {
    margin-left: auto; flex-shrink: 0;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--emerald-dark); background: var(--emerald-dim);
    padding: 4px 9px; border-radius: 100px;
}

/* ---------- Pestañas (tabs) de wallet en móvil ---------- */
.tabs-mobile { display: none; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.tab-pill {
    flex-shrink: 0; padding: 9px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 650; color: var(--t70);
    background: var(--panel-2); border: 1px solid var(--line);
    white-space: nowrap;
}
.tab-pill.active { background: var(--emerald-dim); color: var(--emerald-dark); border-color: rgba(37,99,235,0.3); }

/* ---------- Tarjeta de tipo de cuenta para ítems de balance bloqueado ---------- */
.locked-banner { display: flex; align-items: center; gap: 8px; color: var(--t50); font-size: 12.5px; margin-top: 10px; }

/* ---------- Bank type badge inside admin settings preview ---------- */
.dev-logo-preview {
    width: 64px; height: 64px; border-radius: 14px; object-fit: contain;
    background: var(--panel-2); border: 1px solid var(--line); padding: 8px;
}
.dev-logo-preview-wide {
    width: 100%; max-width: 220px; height: 64px; border-radius: 12px;
}

/* ---------- Sidebar Modo dev highlight ---------- */
.dev-mode-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--amber);
    background: rgba(201,138,0,0.10); border: 1px solid rgba(201,138,0,0.25);
    padding: 4px 10px; border-radius: 100px; margin-bottom: 18px;
}

/* ---------- Movimientos: tabla en desktop, tarjetas en móvil ---------- */
.movs-list-mobile { display: none; }
.mov-row {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-2);
}
.mov-row:last-child { border-bottom: none; }
.mov-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mov-row-amount { font-weight: 750; font-size: 15px; font-family: var(--font-num); }
.mov-row-desc { font-size: 13.5px; color: var(--t90); line-height: 1.4; margin-bottom: 4px; }
.mov-row-date { font-size: 11.5px; color: var(--t50); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--t50); }
.empty svg { width: 38px; height: 38px; margin: 0 auto 14px; opacity: 0.4; display: block; }

/* ---------- Topbar móvil ---------- */
.mobile-top { display: none; }

/* ---------- Sesión / inactividad ---------- */
.session-warning {
    position: fixed; inset: 0; background: rgba(15,27,36,0.5);
    backdrop-filter: blur(6px); display: none; place-items: center; z-index: 200; padding: 24px;
}
.session-warning.open { display: grid; }
.session-warning-box {
    width: 100%; max-width: 360px; text-align: center;
    background: var(--panel);
    border: 1px solid rgba(201,138,0,0.3); border-radius: 18px; padding: 30px 26px;
    box-shadow: var(--shadow);
}
.session-warning-icon { font-size: 30px; margin-bottom: 10px; }
.session-warning-box h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.session-warning-box p { font-size: 13.5px; color: var(--t70); margin-bottom: 20px; line-height: 1.5; }
.session-warning-box b { color: var(--amber); font-size: 15px; }

/* ---------- Footer seguridad ---------- */
.security-note {
    display: flex; align-items: center; gap: 8px; color: var(--t30); font-size: 12px;
    margin-top: 26px; justify-content: center;
}
.security-note svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-card-balance { grid-template-columns: 1fr; }
    .credit-card { max-width: 100%; }
}
@media (max-width: 860px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 760px) {
    .sidebar { display: none; }
    .main { padding: 18px; }
    .mobile-top {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 18px; border-bottom: 1px solid var(--line); margin: -18px -18px 18px;
        position: sticky; top: 0; background: var(--bg-2); z-index: 10;
    }
    .tabs-mobile { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 22px; }
    .main { padding-bottom: 40px; }
    .movs-table-desktop { display: none; }
    .movs-list-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .credit-card::before { display: none; }
}

/* ============================================================
   WALLET UI — Services Global
   Estética clara tipo Wise/Cash App: superficies limpias,
   jerarquía por peso tipográfico, botones con presencia real.
   ============================================================ */

:root {
    --sg-navy:   #1E3A5F;
    --sg-navy-d: #16294A;
    --sg-slate:  #5B6770;
    --wallet-grad: linear-gradient(135deg, #1E3A5F 0%, #16294A 100%);
}

/* ---------- Saldo principal (hero) ---------- */
.wallet-hero {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 24px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.wallet-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 100% 0%, rgba(30,58,95,0.06), transparent 60%);
    pointer-events: none;
}
.wallet-hero .label {
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--t50);
}
.wallet-hero .amount {
    font-family: var(--font-num);
    font-size: clamp(34px, 9vw, 46px);
    font-weight: 800; letter-spacing: -0.035em;
    color: var(--ink); line-height: 1.05; margin-top: 10px;
    display: flex; align-items: baseline; gap: 6px;
}
.wallet-hero .amount .cur { font-size: 0.5em; font-weight: 700; color: var(--t50); letter-spacing: 0; }
.wallet-hero .acct {
    margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12.5px; color: var(--t70);
    background: var(--panel-2); border: 1px solid var(--line);
    padding: 6px 11px; border-radius: 999px;
}

/* ---------- Acciones rápidas ---------- */
.quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-top: 18px;
}
.qa {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 15px 6px 13px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 15px; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
    text-decoration: none; color: var(--t90);
}
.qa:hover { transform: translateY(-2px); border-color: rgba(30,58,95,0.32); box-shadow: 0 10px 26px -14px rgba(15,27,36,0.28); }
.qa:active { transform: translateY(0); }
.qa .ico {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--wallet-grad); color: #fff;
}
.qa .ico svg { width: 20px; height: 20px; stroke-width: 2.1; }
.qa span { font-size: 12px; font-weight: 650; letter-spacing: -0.01em; text-align: center; }

/* ---------- Botones mejorados ---------- */
.btn-wallet {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 22px; border-radius: 13px;
    font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
    letter-spacing: -0.01em; cursor: pointer; border: none;
    background: var(--wallet-grad); color: #fff;
    box-shadow: 0 10px 24px -12px rgba(30,58,95,0.65);
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}
.btn-wallet:hover { transform: translateY(-1.5px); box-shadow: 0 16px 30px -14px rgba(30,58,95,0.72); filter: brightness(1.07); }
.btn-wallet:active { transform: translateY(0); box-shadow: 0 6px 16px -10px rgba(30,58,95,0.6); }
.btn-wallet:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn-wallet.full { width: 100%; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: 13px;
    font-family: var(--font-display); font-size: 14px; font-weight: 650;
    background: var(--panel); color: var(--sg-navy);
    border: 1.5px solid var(--line); cursor: pointer;
    transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.btn-ghost:hover { border-color: rgba(30,58,95,0.4); background: var(--panel-2); transform: translateY(-1px); }

/* ---------- Tarjeta virtual ---------- */
.vcard {
    position: relative; width: 100%; max-width: 400px;
    aspect-ratio: 1.586 / 1; border-radius: 18px;
    background: var(--wallet-grad); color: #fff;
    padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 24px 50px -22px rgba(30,58,95,0.75);
    overflow: hidden;
}
.vcard::before {
    content: ''; position: absolute; right: -60px; top: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 68%);
}
.vcard::after {
    content: ''; position: absolute; left: -40px; bottom: -90px;
    width: 220px; height: 220px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.10);
}
.vcard.frozen { filter: grayscale(0.85) brightness(0.92); }
.vcard .vc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.vcard .vc-brand { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.vcard .vc-chip {
    width: 42px; height: 32px; border-radius: 7px;
    background: linear-gradient(135deg, #E3C77E, #C8A24B 55%, #EBD9A6);
    position: relative; margin-top: 14px;
}
.vcard .vc-chip::after {
    content: ''; position: absolute; inset: 6px 8px;
    border: 1px solid rgba(0,0,0,0.18); border-radius: 3px;
}
.vcard .vc-num {
    font-family: var(--font-card); font-size: clamp(15px, 4.6vw, 19px);
    letter-spacing: 0.14em; font-weight: 600; position: relative; z-index: 1;
}
.vcard .vc-bot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.vcard .vc-lbl { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .68; margin-bottom: 3px; }
.vcard .vc-val { font-family: var(--font-card); font-size: 12.5px; letter-spacing: 0.08em; }
.vcard .vc-bal {
    font-family: var(--font-num); font-size: 20px; font-weight: 750; letter-spacing: -0.02em;
}
.vc-frozen-tag {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
    background: rgba(10,18,28,0.42); backdrop-filter: blur(1.5px);
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- QR / recibir ---------- */
.qr-box {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 18px; padding: 24px; text-align: center;
}
.qr-box img, .qr-box svg { width: 190px; height: 190px; border-radius: 12px; }
.qr-acct {
    margin-top: 16px; font-family: var(--mono); font-size: 16px;
    letter-spacing: 0.09em; color: var(--ink); font-weight: 600;
}

/* ---------- Copiar ---------- */
.copy-btn {
    background: none; border: none; cursor: pointer; color: var(--t50);
    display: inline-grid; place-items: center; padding: 3px; border-radius: 6px;
    transition: color .15s, background .15s;
}
.copy-btn:hover { color: var(--sg-navy); background: var(--panel-2); }
.copy-btn svg { width: 14px; height: 14px; }
.copied-toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(14px);
    background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 11px;
    font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 999;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5);
}
.copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Segmento tarjeta (recargar/devolver) ---------- */
.seg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    background: var(--panel-2); border: 1px solid var(--line);
    padding: 5px; border-radius: 13px; margin-bottom: 16px;
}
.seg input { display: none; }
.seg label {
    text-align: center; padding: 10px 8px; border-radius: 9px;
    font-size: 13.5px; font-weight: 650; color: var(--t50);
    cursor: pointer; transition: background .16s, color .16s, box-shadow .16s;
}
.seg input:checked + label {
    background: var(--panel); color: var(--sg-navy);
    box-shadow: 0 3px 10px -4px rgba(15,27,36,0.22);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .qa { padding: 13px 3px 11px; border-radius: 13px; }
    .qa .ico { width: 38px; height: 38px; border-radius: 11px; }
    .qa span { font-size: 10.5px; }
    .wallet-hero { padding: 22px 18px 20px; }
    .vcard { padding: 18px 19px; border-radius: 16px; }
}

/* ============================================================
   TARJETA v2 — tipo de cuenta, clave dinámica y acciones
   ============================================================ */

.credit-card.cc-v2 { padding-bottom: 16px; }

.cc-tier-main {
    font-family: var(--font-display);
    font-size: 15.5px; font-weight: 750; letter-spacing: -0.015em;
    line-height: 1.2;
}
.cc-tier-main::after {
    content: ''; display: block; width: 26px; height: 2px;
    background: currentColor; opacity: .45; margin-top: 6px; border-radius: 2px;
}

.cc-number span { transition: opacity .2s var(--ease); }

/* Clave dinámica dentro de la tarjeta */
.cc-totp {
    margin-top: 14px; padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,0.16);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cc-totp-code {
    font-family: var(--mono); font-size: 19px; font-weight: 600;
    letter-spacing: 0.16em; margin-top: 2px;
}
.cc-totp-ring { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.cc-totp-ring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.cc-totp-ring circle { fill: none; stroke-width: 2.6; }
.cc-totp-ring .totp-ring-bg { stroke: rgba(255,255,255,0.22); }
.cc-totp-ring .totp-ring-fg {
    stroke: currentColor; stroke-linecap: round;
    stroke-dasharray: 97.4; transition: stroke-dashoffset .95s linear;
}
.cc-totp-ring span {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-num); font-size: 11.5px; font-weight: 700;
}

/* Botones bajo la tarjeta */
.cc-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-top: 14px;
}
.cc-act {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 11px 5px; border-radius: 12px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--t70); text-decoration: none;
    font-size: 11.5px; font-weight: 650; font-family: var(--font);
    transition: border-color .16s var(--ease), color .16s var(--ease),
                transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cc-act svg { width: 17px; height: 17px; }
.cc-act:hover {
    border-color: rgba(30,58,95,0.35); color: var(--sg-navy);
    transform: translateY(-1.5px); box-shadow: 0 8px 18px -10px rgba(15,27,36,0.3);
}
.cc-act:active { transform: translateY(0); }

/* ---------- Historial de actividad ---------- */
.log-list { display: flex; flex-direction: column; }
.log-item {
    display: flex; gap: 13px; padding: 13px 2px;
    border-bottom: 1px solid var(--line-2);
}
.log-item:last-child { border-bottom: none; }
.log-dot {
    width: 9px; height: 9px; border-radius: 50%; margin-top: 6px;
    flex-shrink: 0; background: var(--t30);
}
.log-dot.log-login        { background: var(--green); }
.log-dot.log-logout       { background: var(--t30); }
.log-dot.log-password     { background: var(--amber); }
.log-dot.log-transferencia{ background: var(--emerald); }
.log-dot.log-saldo        { background: var(--gold); }
.log-dot.log-usuario      { background: var(--blue); }
.log-dot.log-tarjeta      { background: var(--sg-navy); }
.log-body { flex: 1; min-width: 0; }
.log-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 10px; margin-bottom: 2px;
}
.log-accion {
    font-family: var(--font-display); font-size: 13.5px;
    font-weight: 700; color: var(--ink);
}
.log-fecha {
    font-family: var(--mono); font-size: 11px; color: var(--t30);
    white-space: nowrap; flex-shrink: 0;
}
.log-detalle { font-size: 13px; color: var(--t70); line-height: 1.45; }
.log-actor {
    font-size: 11.5px; color: var(--t50); margin-top: 3px;
    display: inline-block; background: var(--panel-2);
    border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px;
}

@media (max-width: 560px) {
    .cc-totp-code { font-size: 17px; }
    .cc-act { font-size: 10.5px; padding: 10px 3px; }
    .log-top { flex-direction: column; gap: 1px; }
    .log-fecha { font-size: 10.5px; }
}

/* ---------- Panel de inyección de economía ---------- */
.inject-card {
    border-left: 3px solid var(--gold);
    background:
        linear-gradient(180deg, rgba(200,162,75,0.045), transparent 55%),
        var(--panel);
}
.inject-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px; align-items: end;
}
.inject-card .field { margin-bottom: 14px; }
@media (max-width: 720px) {
    .inject-grid { grid-template-columns: 1fr; gap: 0; }
}
.log-dot.log-economia { background: var(--gold); }

/* ---------- Logo de red de la tarjeta (Visa / Mastercard) ---------- */
.cc-network { display: flex; align-items: center; justify-content: flex-end; }
.cc-net-svg { display: block; width: auto; }
.cc-net-mc { height: 30px; }
.cc-net-visa { height: 22px; }

/* ============================================================
   PANTALLA DE ÉXITO DE TRANSFERENCIA (estilo Zelle)
   ============================================================ */
.success-screen {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px 18px; position: relative; z-index: 1;
}
.success-card {
    width: 100%; max-width: 440px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(15,27,36,0.4);
    position: relative;
    padding: 0 30px 30px;
    animation: successIn .5s var(--ease) both;
}
@keyframes successIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
/* Listón verde superior */
.success-ribbon {
    height: 8px; margin: 0 -30px 0;
    background: linear-gradient(90deg, #10B981, #059669 55%, #10B981);
    background-size: 200% 100%;
    animation: ribbonShift 3s linear infinite;
}
@keyframes ribbonShift {
    from { background-position: 0 0; }
    to   { background-position: 200% 0; }
}

.success-check {
    width: 92px; height: 92px; margin: 30px auto 22px;
    border-radius: 50%;
    background: rgba(16,185,129,0.10);
    display: grid; place-items: center;
}
.success-check svg { width: 60px; height: 60px; }
.success-check-circle {
    stroke: #10B981; stroke-width: 3;
    stroke-dasharray: 151; stroke-dashoffset: 151;
    animation: drawCircle .5s var(--ease) .15s forwards;
}
.success-check-mark {
    stroke: #10B981; stroke-width: 4;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: drawMark .35s var(--ease) .55s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawMark   { to { stroke-dashoffset: 0; } }

.success-title {
    text-align: center; font-family: var(--font-display);
    font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
    color: var(--ink);
}
.success-sub {
    text-align: center; color: var(--t50);
    font-size: 14px; margin-top: 5px;
}
.success-amount {
    text-align: center; font-family: var(--font-num);
    font-size: 46px; font-weight: 800; letter-spacing: -0.035em;
    color: var(--ink); margin: 20px 0 24px;
}

.success-to {
    display: flex; align-items: center; gap: 14px;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 15px; padding: 15px 16px; margin-bottom: 8px;
}
.success-to-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: var(--wallet-grad); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.success-to-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--t50); font-weight: 600;
}
.success-to-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: 16px; color: var(--ink); margin-top: 1px;
}
.success-to-acct { font-family: var(--mono); font-size: 12px; color: var(--t50); margin-top: 2px; }

.success-details {
    margin: 18px 0 24px; padding: 4px 2px;
}
.success-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; border-bottom: 1px solid var(--line-2);
    font-size: 13.5px;
}
.success-row:last-child { border-bottom: none; }
.success-row span { color: var(--t50); }
.success-row b { color: var(--ink); font-weight: 650; }
.success-status { color: #059669 !important; }

.success-actions { display: flex; flex-direction: column; gap: 10px; }

.success-brand {
    margin-top: 22px; color: var(--t50); font-size: 12.5px;
    display: inline-flex; align-items: center; gap: 7px;
}
.success-brand svg { width: 15px; height: 15px; }

@media (max-width: 480px) {
    .success-amount { font-size: 38px; }
    .success-title { font-size: 21px; }
}

/* Modalidad (ahorros/corriente) bajo el tipo de cuenta en la tarjeta */
.cc-tier-kind {
    display: block; font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0.7; margin-top: 3px;
}
.cc-tier-main::after { content: none; }

/* Iconos de las flechas de "Total depositado / retirado" (ajuste de la versión Cloudflare) */
.delta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* En pantallas angostas la tarjeta v2 (con clave dinámica) crece según su contenido para no recortarse */
@media (max-width: 480px) {
    .credit-card.cc-v2 { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; }
}

/* El icono del botón "Copiar número de cuenta" no debe heredar el tamaño del código QR */
.qr-box .btn-wallet { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.qr-box .btn-wallet svg { width: 17px; height: 17px; border-radius: 0; flex-shrink: 0; }
