@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --navy: #1e3a5f;
    --navy-dark: #152a45;
    --navy-mid: #274b73;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-soft: #ccfbf1;
    --gold: #c9a227;
    --gold-soft: #fef9e7;
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary: #1e3a5f;
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --bg: #f4f6f9;
    --bg-card: #ffffff;
    --border: #e5e9f0;
    --text: #0f1c2e;
    --text-muted: #8b95a5;
    --sidebar-width: 268px;
    --topbar-height: 68px;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 28, 46, 0.04), 0 4px 16px rgba(15, 28, 46, 0.04);
    --shadow-lg: 0 4px 24px rgba(15, 28, 46, 0.08);
    --font: 'DM Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ========== LOGIN ========== */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
}

.login-visual {
    background: var(--navy);
    color: #fff;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-visual::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--navy-mid);
    top: -120px;
    right: -100px;
    opacity: .55;
}

.login-visual::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--teal);
    bottom: -80px;
    left: -60px;
    opacity: .18;
}

.login-visual-inner { position: relative; z-index: 1; }
.login-visual .bank-logo { justify-content: flex-start; margin-bottom: 3rem; }
.login-visual h1 { font-size: 2rem; font-weight: 700; line-height: 1.25; max-width: 16ch; margin-bottom: .75rem; }
.login-visual p { color: rgba(255,255,255,.75); max-width: 32ch; font-size: .95rem; }
.login-visual-footer { position: relative; z-index: 1; font-size: .8rem; color: rgba(255,255,255,.55); }

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.login-container { width: 100%; max-width: 400px; }

.login-header { margin-bottom: 2rem; }
.login-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .35rem; }
.login-hint { color: var(--text-muted); font-size: .9rem; }

.login-card { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.login-footer { margin-top: 1.5rem; text-align: center; }
.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: .8rem;
}

.bank-logo { display: flex; align-items: center; gap: .75rem; }
.bank-logo h1, .bank-logo span { font-size: 1.15rem; font-weight: 700; color: #fff; }
.bank-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.bank-logo-text span { font-size: .95rem; font-weight: 700; color: #fff; }
.bank-logo-text small { font-size: .7rem; color: rgba(255,255,255,.55); font-weight: 500; margin-top: 2px; }

/* ========== APP LAYOUT ========== */
.banking-app { overflow-x: hidden; }
.app-layout { display: flex; min-height: 100vh; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 46, .45);
    z-index: 90;
    opacity: 0;
    transition: opacity .25s ease;
}
.sidebar-overlay.visible { display: block; opacity: 1; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform .3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
}

.sidebar-nav { flex: 1; padding: .75rem .75rem 1rem; overflow-y: auto; }

.nav-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    padding: .85rem .85rem .35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--teal); color: #fff; }
.sidebar-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.08); }
.nav-item.logout { color: rgba(255,255,255,.5); }
.nav-item.logout:hover { color: #fca5a5; background: rgba(220,38,38,.12); }

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.topbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.topbar-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.topbar-search input {
    width: 100%;
    padding: .6rem 1rem .6rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    transition: border-color .2s;
}
.topbar-search input:focus { outline: none; border-color: var(--teal); background: #fff; }

.topbar-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.icon-btn {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--teal); }
.icon-btn .badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--error);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu { display: flex; align-items: center; gap: .75rem; }
.user-avatar {
    width: 38px; height: 38px;
    background: var(--teal);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.user-role { font-size: .75rem; color: var(--text-muted); }

.content { flex: 1; padding: 1.5rem 2rem; width: 100%; max-width: none; }

[hidden] { display: none !important; }

/* Page Elements */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; }
.page-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.card h2 { font-size: 1.05rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Balance Hero */
.balance-hero {
    background: var(--navy);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.balance-label { font-size: .85rem; opacity: .8; }
.balance-total { font-size: 2.5rem; font-weight: 700; margin: .25rem 0; letter-spacing: -1px; }
.balance-meta { display: flex; gap: .5rem; font-size: .85rem; opacity: .7; }
.balance-stats { display: flex; gap: 2rem; }
.stat-box { text-align: right; }
.stat-label { display: block; font-size: .8rem; opacity: .7; }
.stat-value { font-size: 1.25rem; font-weight: 700; }
.stat-value.positive { color: #6ee7b7; }
.stat-value.negative { color: #fca5a5; }

/* Quick Actions */
.quick-actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    min-width: 100px;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.quick-action:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.qa-icon { font-size: 1.5rem; }

/* Accounts */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.accounts-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.account-card-mini, .account-card-full {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color .2s;
}
.account-card-full { background: var(--bg-card); }
.account-card-mini:hover, .account-card-full:hover { border-color: var(--teal); }
.account-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.account-type-badge {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .2rem .6rem;
    border-radius: 6px;
    background: var(--teal-soft);
    color: var(--teal-dark);
}
.account-type-badge.checking { background: #dbeafe; color: #1d4ed8; }
.account-type-badge.savings { background: #d1fae5; color: #065f46; }
.account-type-badge.investment { background: var(--gold-soft); color: #92400e; }
.account-type-badge.business { background: #fef3c7; color: #92400e; }
.account-mask, .account-number-full { font-size: .8rem; color: var(--text-muted); font-family: var(--mono); }
.account-balance-lg { font-size: 1.5rem; font-weight: 700; margin: .5rem 0; }
.interest-rate { font-size: .8rem; color: var(--success); font-weight: 500; }
.primary-badge { font-size: .7rem; background: var(--teal); color: #fff; padding: .15rem .5rem; border-radius: 6px; margin-left: .5rem; }
.account-stats-row { display: flex; gap: 1.5rem; margin: 1rem 0; flex-wrap: wrap; }
.account-stats-row div { display: flex; flex-direction: column; }
.account-actions { display: flex; gap: .5rem; margin-top: 1rem; }

/* Transactions */
.tx-list { display: flex; flex-direction: column; }
.tx-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: var(--bg); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 8px; }
.tx-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg);
}
.tx-icon.deposit, .tx-icon.interest { background: #d1fae5; color: var(--success); }
.tx-icon.withdrawal, .tx-icon.fee { background: #fee2e2; color: var(--error); }
.tx-icon.transfer { background: #dbeafe; color: #2563eb; }
.tx-icon.payment { background: #fef3c7; color: var(--warning); }
.tx-info { flex: 1; min-width: 0; }
.tx-desc { display: block; font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: .8rem; color: var(--text-muted); }
.tx-amount-col { text-align: right; }
.tx-amount { font-weight: 600; font-size: .95rem; }
.tx-amount.positive { color: var(--success); }
.tx-amount.negative { color: var(--error); }

.status-pill {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: .15rem .5rem;
    border-radius: 6px;
    margin-top: .2rem;
}
.status-pill.success { background: #d1fae5; color: #065f46; }
.status-pill.warning { background: #fef3c7; color: #92400e; }
.status-pill.error { background: #fee2e2; color: #991b1b; }
.status-pill.info { background: #dbeafe; color: #1e40af; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.data-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg); }
.amount-cell { font-weight: 600; text-align: right; }
.amount-cell.positive { color: var(--success); }
.amount-cell.negative { color: var(--error); }

.filters-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }
.filters-bar input, .filters-bar select {
    padding: .5rem .75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .875rem;
    background: #fff;
}

.pagination { display: flex; gap: .5rem; margin-top: 1.25rem; justify-content: center; }
.page-btn {
    padding: .4rem .75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.page-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 500; font-size: .875rem; }
.form-group input, .form-group select, .form-group textarea {
    padding: .7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .2s;
    background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-actions { display: flex; gap: .75rem; margin-top: .5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border: none;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; }
.btn-block { width: 100%; }

.text-link { color: var(--teal); font-weight: 500; font-size: .875rem; }
.text-link:hover { text-decoration: underline; }
.text-btn { background: none; border: none; color: var(--teal); cursor: pointer; font-size: .875rem; }
.text-muted { color: var(--text-muted); }

/* Transfer */
.transfer-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.transfer-type-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color .2s;
}
.transfer-type-card:hover { border-color: var(--teal); }
.transfer-type-card.active { border-color: var(--teal); background: var(--teal-soft); }
.tt-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.transfer-type-card h4 { font-size: .95rem; margin-bottom: .25rem; }
.transfer-type-card p { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.tt-meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.bank-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.card-visual {
    background: var(--navy);
    padding: 1.5rem;
    color: #fff;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-visual.virtual { background: var(--navy-mid); }
.card-visual.credit { background: var(--teal); }
.card-chip { width: 40px; height: 30px; background: var(--gold); border-radius: 6px; margin-bottom: 1rem; }
.card-number { font-family: var(--mono); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.card-bottom { display: flex; gap: 2rem; }
.card-label { display: block; font-size: .6rem; opacity: .6; text-transform: uppercase; letter-spacing: 1px; }
.card-value { font-size: .85rem; font-weight: 600; }
.card-type-label { position: absolute; top: 1rem; right: 1rem; font-size: .7rem; text-transform: uppercase; opacity: .7; }
.card-details { padding: 1.25rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .85rem; }
.card-actions { display: flex; gap: .5rem; margin-top: 1rem; }

/* Beneficiaries */
.beneficiaries-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.beneficiary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.ben-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.ben-account { font-family: var(--mono); font-size: .8rem; color: var(--text-muted); }
.ben-actions { display: flex; gap: .5rem; }

/* Analytics */
.analytics-bars { display: flex; flex-direction: column; gap: 1rem; }
.analytics-bar-item .bar-label { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .875rem; }
.bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); border-radius: 4px; transition: width .5s ease; }
.monthly-chart { display: flex; align-items: flex-end; gap: 1rem; height: 160px; padding: 1rem 0; }
.monthly-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.month-label { font-size: .7rem; color: var(--text-muted); }
.month-bars { display: flex; gap: 4px; align-items: flex-end; height: 120px; }
.income-bar { width: 16px; background: var(--success); border-radius: 4px 4px 0 0; min-height: 4px; }
.expense-bar { width: 16px; background: var(--error); border-radius: 4px 4px 0 0; min-height: 4px; }
.chart-legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1rem; font-size: .8rem; }
.legend-income::before, .legend-expense::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: .4rem;
    vertical-align: middle;
}
.legend-income::before { background: var(--success); }
.legend-expense::before { background: var(--error); }

/* Statements */
.statement-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}
.statement-summary div { display: flex; flex-direction: column; gap: .25rem; }
.statement-summary span { font-size: .8rem; color: var(--text-muted); }

/* Support */
.ticket-card { background: var(--bg); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.admin-reply { background: var(--teal-soft); padding: .75rem; border-radius: 8px; margin: .75rem 0; font-size: .875rem; }
.ticket-meta { font-size: .75rem; color: var(--text-muted); }

/* Security */
.security-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    width: 380px;
    max-height: calc(100vh - var(--topbar-height));
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
    flex-direction: column;
}
.notifications-panel.is-open {
    display: flex;
}
.notifications-panel[hidden] {
    display: none !important;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.panel-body { overflow-y: auto; flex: 1; }
.notification-item {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.notification-item.unread { background: #f0fdfa; }
.notification-item strong { font-size: .875rem; }
.notification-item p { font-size: .8rem; color: var(--text-muted); margin: .25rem 0; }
.notif-time { font-size: .7rem; color: var(--text-muted); }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.toast {
    padding: .875rem 1.25rem;
    border-radius: 10px;
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }

/* Alerts */
.alert { padding: .875rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .875rem; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Loading & Empty */
.loading-state, .error-state, .empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.error-state h2 { color: var(--text); margin-bottom: .5rem; }
.error-state .btn { margin-top: 1.25rem; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.positive { color: var(--success); }
.negative { color: var(--error); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .balance-hero { flex-direction: column; align-items: flex-start; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .sidebar-overlay.visible { display: block; }
    .app-main { margin-left: 0; }
    .menu-toggle { display: flex; }
    .user-info { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .notifications-panel { width: 100%; }
    .balance-total { font-size: 2rem; }
    .content { padding: 1rem; }
}
