/* ═══════════════════════════════════════════
   CSR Mini ERP - CSRLens
   Fonts: IBM Plex Sans / JetBrains Mono
   Theme: Blue sidebar + Green accents (configurable)
   ═══════════════════════════════════════════ */
:root {
    --sidebar-bg: #1a3a5c;
    --sidebar-hover: #24507a;
    --sidebar-active: #2d6296;
    --primary-btn: #1a73e8;
    --primary-btn-hover: #1557b0;
    --accent: #1b8a2a;
    --table-header: #1a3a5c;
    --topbar-border: #1a73e8;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #1a1a1a;
    background: #f5f5f5;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ─── TYPOGRAPHY ─── */
.mono, .num, td.num, th.num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #888; }
.text-sm { font-size: 0.85rem; }
.neg { color: #c62828; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }

/* ─── STATUS BADGE ─── */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--badge-color);
    background: color-mix(in srgb, var(--badge-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
    border-radius: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-primary { background: var(--primary-btn); color: #fff; border-color: var(--primary-btn); }
.btn-primary:hover { background: #333; }
.btn-secondary { background: #fff; color: #1a1a1a; border-color: var(--primary-btn); }
.btn-secondary:hover { background: #f0f0f0; }
.btn-danger { background: #c62828; color: #fff; border-color: #c62828; }
.btn-danger:hover { background: #a52020; }
.btn-sm { padding: 4px 12px; font-size: 0.82rem; }
.btn-xs { padding: 2px 8px; font-size: 0.78rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-group { display: flex; gap: 8px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #333;
}
.form-group label .req { color: #c62828; }
.form-control {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    transition: border-color 0.15s;
    font-size: 0.9rem;
}
.form-control:focus { outline: none; border-color: var(--primary-btn); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form-help { font-size: 0.78rem; color: #888; margin-top: 3px; }
.form-error { font-size: 0.78rem; color: #c62828; margin-top: 3px; }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.data-table thead th {
    background: var(--table-header);
    color: #fff;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
    border: none;
}
table.data-table thead th.num {
    text-align: right;
}
table.data-table tbody td,
table.data-table tfoot td {
    padding: 7px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}
table.data-table tbody tr:nth-child(even) { background: #fafafa; }
table.data-table tbody tr:hover { background: #f0f0f0; }

/* Numeric cells — applies to tbody AND tfoot */
table.data-table td.num,
table.data-table th.num {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* tfoot styling */
table.data-table tfoot tr {
    font-weight: 600;
    border-top: 2px solid var(--table-header);
}
table.data-table tfoot td {
    background: #fafafa;
}
table.data-table .actions { white-space: nowrap; }
table.data-table .actions a,
table.data-table .actions button {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 0.78rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 4px;
    color: #1a1a1a;
}
table.data-table .actions a:hover,
table.data-table .actions button:hover { background: #f0f0f0; }
table.data-table .actions .del { color: #c62828; border-color: #c62828; }
table.data-table .actions .del:hover { background: #fde; }

/* ─── CARDS ─── */
.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}
.card-header h2 { font-size: 1.05rem; font-weight: 600; }
.card-header h3 { font-size: 0.95rem; font-weight: 600; }

/* ─── KPI CARDS ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 14px 16px;
}
.kpi-card .kpi-label { font-size: 0.78rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-card .kpi-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    color: #1a1a1a;
}
.kpi-card .kpi-sub { font-size: 0.78rem; color: #888; margin-top: 2px; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.pagination a {
    padding: 5px 12px;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    border-radius: 2px;
}
.pagination a.active { background: var(--primary-btn); color: #fff; border-color: var(--primary-btn); }
.pagination a:hover:not(.active) { background: #f0f0f0; }

/* ─── FLASH MESSAGES ─── */
.flash {
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 2px;
    font-size: 0.9rem;
    border: 1px solid;
}
.flash-success { color: #1b8a2a; background: #e8f5e9; border-color: #c8e6c9; }
.flash-error { color: #c62828; background: #fce4ec; border-color: #f8bbd0; }
.flash-warning { color: #c77d00; background: #fff8e1; border-color: #ffecb3; }
.flash-info { color: #1a1a1a; background: #f5f5f5; border-color: #e0e0e0; }

/* ─── MODAL ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: 2px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e5e5;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 0 4px; color: #888; }
.modal-close:hover { color: #1a1a1a; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #e5e5e5; display: flex; gap: 8px; justify-content: flex-end; }

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.empty-state p { font-size: 0.95rem; }


/* ═══════════════════════════════════════════
   ADMIN LAYOUT (Post-Login)
   ═══════════════════════════════════════════ */

.admin-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.sidebar-brand {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.sidebar-brand small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}
.sidebar-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 52px;
    background: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    color: #ccc;
    font-size: 0.88rem;
    font-weight: 400;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: #252525; color: #fff; }
.sidebar-nav a.active {
    background: #252525;
    color: #fff;
    border-left-color: #fff;
    font-weight: 500;
}
.sidebar-nav a svg { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.sidebar-nav .nav-section {
    font-size: 0.68rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 18px 4px;
}
.sidebar-user {
    padding: 12px 18px;
    border-top: 1px solid #333;
    font-size: 0.82rem;
}
.sidebar-user .user-name { font-weight: 500; color: #fff; }
.sidebar-user .user-role { font-size: 0.72rem; color: #888; }

/* Main Content */
.main-content {
    margin-left: 230px;
    flex: 1;
    min-height: 100vh;
}
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar .page-title { font-size: 1rem; font-weight: 600; }
.top-bar .top-right { display: flex; align-items: center; gap: 16px; }
.top-bar .top-right select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.85rem;
    background: #fff;
}
.page-content { padding: 20px 24px; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.page-header h1 { font-size: 1.2rem; font-weight: 700; }
.page-header .subtitle { font-size: 0.85rem; color: #888; margin-top: 2px; }

/* ─── Filters Bar ─── */
.filters-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filters-bar select, .filters-bar input[type="text"], .filters-bar input[type="search"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.85rem;
    background: #fff;
}
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 18px; }
.tab-bar a {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.12s;
}
.tab-bar a:hover { color: #1a1a1a; }
.tab-bar a.active { color: #1a1a1a; border-bottom-color: var(--primary-btn); }

/* ─── Progress Bar ─── */
.progress-bar {
    height: 6px;
    background: #e5e5e5;
    border-radius: 1px;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: #1a1a1a;
    transition: width 0.3s;
}
.progress-bar .fill.green { background: #1b8a2a; }
.progress-bar .fill.amber { background: #c77d00; }
.progress-bar .fill.red { background: #c62828; }


/* ═══════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════ */

body.landing { background: #fff; }

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #e5e5e5;
    backdrop-filter: blur(8px);
}
.landing-nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.landing-nav .nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.02em;
}
.landing-nav .nav-brand .brand-mark {
    font-weight: 800;
    font-size: 1.3rem;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}
.landing-nav .nav-brand .brand-mark span {
    color: #1b8a2a;
}
.landing-nav .nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav .nav-links a { font-size: 0.9rem; color: #555; font-weight: 500; transition: color 0.15s; }
.landing-nav .nav-links a:hover { color: #1a1a1a; }
.landing-nav .nav-links .btn-login {
    background: var(--primary-btn);
    color: #fff;
    padding: 7px 22px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.88rem;
}
.landing-nav .nav-links .btn-login:hover { background: #333; }

/* Hero */
.hero {
    padding: 120px 24px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 5px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero .hero-actions { display: flex; gap: 12px; justify-content: center; }
.hero .hero-actions .btn { padding: 12px 32px; font-size: 1rem; }

/* Stats strip */
.stats-strip {
    background: #1a1a1a;
    padding: 40px 24px;
    color: #fff;
}
.stats-strip .stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stats-strip .stat-item .stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
}
.stats-strip .stat-item .stat-label {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 4px;
    font-weight: 500;
}

/* Feature cards */
.landing-section {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section.dark {
    background: #1a1a1a;
    color: #fff;
    max-width: 100%;
    padding: 60px 24px;
}
.landing-section.dark .section-inner { max-width: 1100px; margin: 0 auto; }
.landing-section .section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 8px;
}
.landing-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.landing-section .section-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 36px;
    max-width: 550px;
}
.dark .section-desc { color: #aaa; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: 24px;
}
.feature-card .fc-icon {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: #666; line-height: 1.5; }

.dark .feature-card { background: #252525; border-color: #333; }
.dark .feature-card p { color: #aaa; }
.dark .feature-card .fc-icon { background: #fff; color: #1a1a1a; }

/* Pillars section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pillar-card {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    border-left: 4px solid var(--primary-btn);
}
.pillar-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.pillar-card p { font-size: 0.82rem; color: #666; }

/* Workflow steps */
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.workflow-step {
    position: relative;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 2px;
}
.workflow-step .step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}
.dark .workflow-step .step-num { color: #555; }
.workflow-step h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.workflow-step p { font-size: 0.82rem; color: #888; }

/* CTA */
.cta-section {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 60px 24px;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: #aaa; margin-bottom: 24px; font-size: 1rem; }
.cta-section .btn-primary { background: #fff; color: #1a1a1a; border-color: #fff; padding: 12px 36px; font-size: 1rem; }
.cta-section .btn-primary:hover { background: #eee; }

/* Footer */
.landing-footer {
    border-top: 1px solid #e5e5e5;
    padding: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
}


/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 36px;
    width: 100%;
    max-width: 380px;
}
.login-box h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.login-box .login-sub { font-size: 0.88rem; color: #888; margin-bottom: 24px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn { width: 100%; justify-content: center; padding: 10px; font-size: 0.95rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .features-grid, .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-strip .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .landing-nav .nav-links a:not(.btn-login) { display: none; }
}
@media (max-width: 600px) {
    .features-grid, .pillars-grid, .workflow-steps { grid-template-columns: 1fr; }
    .stats-strip .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── NOTIFICATION BELL ─── */
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    color: #555;
}
.notif-bell:hover { color: #1a1a1a; }
.notif-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #c62828;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* ─── TOPBAR AVATAR ─── */
.topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 2px;
    text-decoration: none;
}
.topbar-avatar:hover { background: #333; }

/* ─── NOTIFICATION LIST ─── */
.notif-list { list-style: none; }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    transition: background 0.1s;
}
.notif-item:hover { background: #fafafa; }
.notif-item.unread { background: #f8f9fa; border-left: 3px solid var(--primary-btn); }
.notif-item .notif-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.notif-item .notif-body { flex: 1; min-width: 0; }
.notif-item .notif-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 2px; }
.notif-item .notif-msg { font-size: 0.82rem; color: #666; line-height: 1.4; }
.notif-item .notif-time { font-size: 0.75rem; color: #aaa; margin-top: 3px; font-family: 'JetBrains Mono', monospace; }

/* ─── PROFILE PAGE ─── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-avatar-lg {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-bottom: 12px;
}

/* ─── SETTINGS TABS ─── */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.settings-nav { border-right: 1px solid #e5e5e5; }
.settings-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: #555;
    border-right: 2px solid transparent;
    margin-right: -1px;
}
.settings-nav a:hover { color: #1a1a1a; }
.settings-nav a.active { color: #1a1a1a; font-weight: 500; border-right-color: var(--primary-btn); }

/* ─── BUDGET COMPARISON BAR ─── */
.budget-compare-bar {
    display: flex;
    height: 24px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}
.budget-compare-bar .bar-segment {
    height: 100%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}
.budget-compare-bar .bar-spent { background: var(--sidebar-bg); }
.budget-compare-bar .bar-received { background: #1b8a2a; }
.budget-compare-bar .bar-budget { background: #e0e0e0; color: #666; }

