/* ============================================================
   BANCO POSTA — Design System
   Couleurs: Jaune clair #FFF3C4, Jaune foncé #F5A623, Bleu #1A3C6B
============================================================ */

:root {
    --gold-light:  #FFF3C4;
    --gold-mid:    #FFD66B;
    --gold:        #F5A623;
    --gold-dark:   #D4891A;
    --blue-deep:   #1A3C6B;
    --blue:        #2457A0;
    --blue-mid:    #3B6FBF;
    --blue-light:  #EBF1FA;
    --white:       #FFFFFF;
    --gray-50:     #F9F8F5;
    --gray-100:    #F0EDE6;
    --gray-300:    #C8C0B0;
    --gray-500:    #7A7060;
    --gray-700:    #3D3830;
    --success:     #2E8B57;
    --danger:      #C0392B;
    --warning:     #F5A623;
    --radius:      12px;
    --radius-lg:   20px;
    --shadow:      0 2px 12px rgba(26,60,107,.10);
    --shadow-md:   0 6px 24px rgba(26,60,107,.15);
    --font-main:   'DM Sans', sans-serif;
    --font-display:'Playfair Display', serif;
    --transition:  .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--gray-50);
    color: var(--gray-700);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   AUTH
============================================================ */
#authPage {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
}

.auth-lang-bar {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 100;
}

.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background: var(--blue-deep);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(245,166,35,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,214,107,.10) 0%, transparent 50%);
    display: flex;
    align-items: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    border: 2px solid rgba(245,166,35,.15);
}
.auth-left::after {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 2px solid rgba(255,214,107,.10);
}

.auth-left-content { position: relative; z-index: 1; }

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .02em;
}

.brand-logo {
    width: 44px; height: 44px;
    background: var(--gold);
    color: var(--blue-deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-display);
}

.auth-headline {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.auth-headline em {
    font-style: italic;
    color: var(--gold);
}

.auth-tagline {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 48px;
}

.auth-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
}

.stat-label {
    font-size: .73rem;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-right {
    width: 480px;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 48px 48px;
}

.auth-form-wrap { width: 100%; }

.form-header { margin-bottom: 28px; }
.form-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--blue-deep);
    margin-bottom: 6px;
}
.form-header p { color: var(--gray-500); font-size: .9rem; }

.field-group { margin-bottom: 18px; }
.field-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.field-group input, .field-group select, .field-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: .9rem;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.field-group input:focus, .field-group select:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245,166,35,.12);
}

.field-hint {
    display: block;
    text-align: right;
    font-size: .78rem;
    color: var(--blue-mid);
    text-decoration: none;
    margin-top: 6px;
}
.field-hint:hover { color: var(--gold-dark); }

.btn-primary {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--gold);
    color: var(--blue-deep);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: .02em;
    margin-top: 4px;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,166,35,.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--blue-deep);
    border: 1.5px solid var(--blue-deep);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-500);
    font-size: .85rem;
}
.auth-switch a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { color: var(--gold-dark); }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.msg-box {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 12px;
    background: var(--gold-light);
    color: var(--blue-deep);
    border: 1px solid var(--gold-mid);
}

/* ============================================================
   APP LAYOUT
============================================================ */
#appPage {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

aside#sidebar {
    width: 240px;
    background: var(--blue-deep);
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
}

.brand-logo-sm {
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--blue-deep);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-item.active {
    color: var(--blue-deep);
    background: var(--gold);
    font-weight: 600;
}
.nav-item.active svg { stroke: var(--blue-deep); }

.nav-logout:hover { color: #ff6b6b !important; background: rgba(255,107,107,.08) !important; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* MAIN */
main#mainContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* TOPBAR */
.topbar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 40;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    padding: 4px;
}
.menu-toggle svg { stroke: currentColor; fill: none; stroke-width: 2; display: block; }

.topbar-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
    font-family: var(--font-display);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LANG SELECTOR */
.lang-selector {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.lang-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-main);
}
.lang-btn.active {
    background: var(--white);
    color: var(--blue-deep);
    box-shadow: 0 1px 3px rgba(0,0,0,.10);
}
.lang-btn:hover:not(.active) { color: var(--blue-deep); }

/* Auth page lang */
.auth-lang-bar .lang-selector { background: rgba(255,255,255,.15); }
.auth-lang-bar .lang-btn { color: rgba(255,255,255,.7); }
.auth-lang-bar .lang-btn.active { background: var(--white); color: var(--blue-deep); }

/* NOTIF */
.notif-btn {
    position: relative;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}
.notif-btn:hover { background: var(--gold-light); color: var(--gold-dark); }
.notif-btn svg { stroke: currentColor; fill: none; stroke-width: 2; }

.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.notif-panel {
    position: absolute;
    top: 64px; right: 16px;
    width: 340px;
    max-height: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: .9rem;
    color: var(--blue-deep);
}

.notif-header button {
    font-size: .78rem;
    color: var(--blue-mid);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.notif-list { overflow-y: auto; flex: 1; }

.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
}
.notif-item:hover { background: var(--gold-light); }
.notif-item.unread { background: rgba(255,243,196,.4); }
.notif-item-title { font-weight: 600; font-size: .85rem; color: var(--blue-deep); margin-bottom: 3px; }
.notif-item-msg { font-size: .8rem; color: var(--gray-500); }
.notif-item-time { font-size: .72rem; color: var(--gray-300); margin-top: 4px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--gold-light);
    border-radius: 10px;
    cursor: pointer;
}

.user-avatar-sm {
    width: 28px; height: 28px;
    background: var(--gold);
    color: var(--blue-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
}

#userNameSm { font-size: .85rem; font-weight: 600; color: var(--blue-deep); }

/* CONTENT */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px 32px;
    background: var(--gray-50);
}

.section { display: none; }
.section.active { display: block; }
.hidden { display: none !important; }

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.section-sub { color: var(--gray-500); font-size: .88rem; margin-top: 4px; }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-title { font-weight: 700; color: var(--blue-deep); font-size: .95rem; }
.card-link { font-size: .82rem; color: var(--blue-mid); text-decoration: none; font-weight: 500; }
.card-link:hover { color: var(--gold-dark); }
.card-divider { height: 1px; background: var(--gray-100); margin: 20px 0; }

/* BALANCE STRIP */
.balance-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.balance-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.balance-card.primary {
    background: var(--blue-deep);
    background-image: radial-gradient(ellipse at 80% 20%, rgba(245,166,35,.2) 0%, transparent 60%);
    color: var(--white);
}

.balance-card.secondary { background: var(--white); border: 1.5px solid var(--gray-100); }
.balance-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.bc-country {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 4px;
}

.bc-type {
    font-size: .75rem;
    opacity: .65;
    margin-bottom: 12px;
}

.bc-balance {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bc-iban {
    font-size: .72rem;
    font-family: monospace;
    opacity: .5;
}

.balance-card.primary .bc-country { color: var(--gold); opacity: 1; }
.balance-card.primary .bc-balance { color: var(--white); }
.balance-card.secondary .bc-balance { color: var(--blue-deep); }
.balance-card.secondary .bc-country { color: var(--gray-500); }

/* DASH GRID */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.card-wide { grid-column: 1 / -1; }

/* TX LIST */
.tx-list { display: flex; flex-direction: column; }

.tx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-50);
}
.tx-item:last-child { border-bottom: none; }

.tx-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.tx-icon.credit { background: rgba(46,139,87,.1); color: var(--success); }
.tx-icon.debit  { background: rgba(192,57,43,.1);  color: var(--danger); }
.tx-icon.pending{ background: var(--gold-light);    color: var(--gold-dark); }

.tx-info { flex: 1; min-width: 0; }
.tx-label { font-weight: 600; font-size: .88rem; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date  { font-size: .75rem; color: var(--gray-300); margin-top: 2px; }

.tx-amount { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }
.tx-amount.pending{ color: var(--gray-500); }

/* QUICK GRID */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: .78rem;
    color: var(--gray-700);
    font-weight: 500;
}
.quick-btn:hover { background: var(--gold-light); border-color: var(--gold-mid); color: var(--blue-deep); transform: translateY(-2px); }

.quick-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.quick-icon.gold { background: var(--gold-light); color: var(--gold-dark); }
.quick-icon.blue { background: var(--blue-light); color: var(--blue); }
.quick-icon.amber{ background: #FFF8E1; color: #F57F17; }
.quick-icon.dark { background: var(--gray-100); color: var(--blue-deep); }

/* ACCOUNTS GRID */
.accounts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }

.acc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1.5px solid var(--gray-100);
    box-shadow: var(--shadow);
}
.acc-card.primary {
    background: var(--blue-deep);
    color: var(--white);
    border-color: transparent;
    background-image: radial-gradient(ellipse at 80% 10%, rgba(245,166,35,.25) 0%, transparent 60%);
}
.acc-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: 4px; }
.acc-type  { font-size: .8rem; opacity: .65; margin-bottom: 14px; }
.acc-balance {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.acc-card.primary .acc-balance { color: var(--white); }
.acc-card:not(.primary) .acc-balance { color: var(--blue-deep); }
.acc-iban { font-family: monospace; font-size: .72rem; opacity: .5; }

/* TWO-COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* TOGGLE TABS */
.toggle-tabs { display: flex; gap: 4px; background: var(--gray-100); padding: 4px; border-radius: 10px; }
.ttab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}
.ttab.active {
    background: var(--white);
    color: var(--blue-deep);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* INVESTMENTS */
.inv-packs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.inv-pack {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1.5px solid var(--gray-100);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.inv-pack::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gold);
    opacity: 0;
    transition: var(--transition);
}
.inv-pack:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-mid); }
.inv-pack:hover::before { opacity: 1; }
.inv-pack.featured { border-color: var(--gold); }
.inv-pack.featured::before { opacity: 1; }

.pack-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.pack-badge.blue-badge {
    background: var(--blue-light);
    color: var(--blue);
}

.pack-rate {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1;
    margin-bottom: 4px;
}
.pack-rate span { font-size: 1rem; color: var(--gray-500); }
.pack-name { font-size: .9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 16px; }
.pack-detail { font-size: .78rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.6; }
.pack-min { font-size: .75rem; color: var(--gray-300); margin-bottom: 16px; }
.pack-btn { width: 100%; }

/* LOAN SIMULATOR */
.sim-form input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}
.range-val { font-weight: 700; color: var(--blue-deep); margin-top: 4px; font-size: .9rem; }

.loan-result {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    background: var(--gold-light);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--gold-mid);
}
.loan-stat { text-align: center; }
.loan-stat-val { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--blue-deep); }
.loan-stat-label { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.vcard {
    background: var(--blue-deep);
    background-image: 
        radial-gradient(ellipse at 90% 10%, rgba(245,166,35,.3) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(36,87,160,.4) 0%, transparent 50%);
    border-radius: 16px;
    padding: 24px;
    color: var(--white);
    position: relative;
    min-height: 160px;
}
.vcard-network { position: absolute; top: 16px; right: 16px; font-size: .75rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.vcard-currency { font-size: .75rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.vcard-number { font-family: monospace; letter-spacing: .2em; font-size: .9rem; margin-bottom: 20px; opacity: .8; }
.vcard-holder { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.vcard-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--gold); }

/* PROFILE */
.kyc-status-block { padding-top: 4px; }
.kyc-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-pending  { background: var(--gold-light);      color: var(--gold-dark); }
.badge-approved { background: rgba(46,139,87,.12);    color: var(--success); }
.badge-rejected { background: rgba(192,57,43,.12);    color: var(--danger); }

/* FILTER */
.filter-row { display: flex; gap: 8px; align-items: center; }
.filter-select {
    padding: 6px 10px;
    border: 1.5px solid var(--gray-100);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: .8rem;
    background: var(--gray-50);
    color: var(--gray-700);
    cursor: pointer;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    color: var(--gray-300);
    font-size: .88rem;
    padding: 32px 16px;
    font-style: italic;
}

/* TOAST */
#toastArea {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
    min-width: 280px;
    max-width: 360px;
    animation: slideIn .3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--gold); }

.toast-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--gold-light);
    color: var(--gold-dark);
}
.toast.success .toast-icon { background: rgba(46,139,87,.1); color: var(--success); }
.toast.error .toast-icon   { background: rgba(192,57,43,.1); color: var(--danger); }

.toast-title { font-weight: 700; font-size: .88rem; color: var(--blue-deep); }
.toast-msg   { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }

/* OVERLAY/MODAL */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,60,107,.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 460px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(26,60,107,.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--blue-deep);
}
.modal-header button {
    width: 32px; height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-500);
}

/* UTILS */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

@keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .balance-strip { grid-template-columns: 1fr 1fr 1fr; }
    .dash-grid     { grid-template-columns: 1fr; }
    .card-wide     { grid-column: 1; }
    .inv-packs     { grid-template-columns: 1fr 1fr; }
    .accounts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    aside#sidebar { position: fixed; left: -240px; height: 100%; transition: left .3s; z-index: 100; }
    aside#sidebar.open { left: 0; }
    .menu-toggle { display: block; }
    .auth-split  { flex-direction: column; }
    .auth-left   { display: none; }
    .auth-right  { width: 100%; padding: 40px 24px; }
    .content-area{ padding: 20px 16px; }
    .balance-strip{ grid-template-columns: 1fr; }
    .two-col     { grid-template-columns: 1fr; }
    .inv-packs   { grid-template-columns: 1fr; }
    .cards-grid  { grid-template-columns: 1fr; }
    .accounts-grid{ grid-template-columns: 1fr; }
    .quick-grid  { grid-template-columns: repeat(3,1fr); }
}