/* ═══════════════════════════════════════════════════════════
   DigiExpense Web — Stylesheet
   Color Theme: Blue, White, Dark Navy, Yellow
   ═══════════════════════════════════════════════════════════ */

:root {
    --blue: #3B82F6;
    --blue-light: #60A5FA;
    --blue-dark: #2563EB;
    --blue-deep: #1D4ED8;
    --navy: #1E3A8A;
    --navy-dark: #1E293B;
    --navy-deep: #0F172A;
    --slate: #334155;
    --yellow: #FBBF24;
    --yellow-dark: #F59E0B;
    --gold: #EAB308;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --bg: #F0F4FF;
    --green: #10B981;
    --green-light: #34D399;
    --green-soft: #D1FAE5;
    --red: #EF4444;
    --red-light: #F87171;
    --red-soft: #FEE2E2;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(100,116,139,0.08);
    --shadow-md: 0 4px 16px rgba(30,58,138,0.08);
    --shadow-lg: 0 8px 24px rgba(30,58,138,0.12);
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--navy-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ─── AUTH PAGES ──────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy), var(--slate));
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}
.auth-page::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.1), transparent 70%);
    bottom: -50px; left: -50px;
    border-radius: 50%;
}
.auth-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo p {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-500);
    border: none;
    background: transparent;
}
.auth-tab.active {
    background: white;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--off-white);
    color: var(--navy-deep);
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.form-input::placeholder { color: var(--gray-400); }
.phone-input-group {
    display: flex;
    gap: 10px;
}
.phone-prefix {
    padding: 14px 16px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: white;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-outline {
    background: white;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-success {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-danger {
    background: linear-gradient(135deg, var(--red), #DC2626);
    color: white;
}
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; }
.btn-icon { width: auto; padding: 10px 16px; }
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
.otp-input {
    width: 48px; height: 56px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: var(--off-white);
    transition: all 0.3s;
}
.otp-input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.auth-error {
    background: var(--red-soft);
    color: var(--red);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-success {
    background: var(--green-soft);
    color: var(--green);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
}
.auth-link a { color: var(--blue); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
.resend-timer { text-align: center; color: var(--gray-400); font-size: 13px; margin-top: 12px; }
.resend-btn { color: var(--blue); cursor: pointer; font-weight: 600; background: none; border: none; font-family: inherit; font-size: 13px; }
.masked-phone { text-align: center; color: var(--gray-500); font-size: 14px; margin-bottom: 8px; }

/* ─── LAYOUT ──────────────────────────────────────────────── */
.app-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.brand-name { font-size: 18px; font-weight: 800; color: var(--navy); }
.brand-tagline { font-size: 11px; color: var(--gray-400); font-weight: 500; }
.sidebar-close { display: none; background: none; border: none; font-size: 20px; color: var(--gray-400); cursor: pointer; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.sidebar-overlay.active { display: block; }
.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--gray-50); color: var(--navy); }
.nav-item.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.04));
    color: var(--blue);
    font-weight: 600;
}
.nav-item.active i { color: var(--blue); }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-divider { height: 1px; background: var(--gray-100); margin: 12px 0; }
.nav-logout { color: var(--red); }
.nav-logout:hover { background: var(--red-soft); }
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}
.user-card { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}
.user-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.user-phone { font-size: 12px; color: var(--gray-400); }

/* ─── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
}
.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--gray-600); cursor: pointer; }
.page-title { font-size: 20px; font-weight: 700; color: var(--navy); flex: 1; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}
.content-area { padding: 28px; }

/* ─── DASHBOARD ───────────────────────────────────────────── */
.hero-card {
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
    border-radius: var(--radius-xl);
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(59,130,246,0.25);
}
.hero-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -80px; right: -40px;
}
.hero-card::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -60px; left: -30px;
}
.hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hero-balance {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; flex: 1; }
.hero-stat-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-stat-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.savings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.savings-label { font-size: 13px; opacity: 0.8; }
.savings-pct { font-size: 14px; font-weight: 700; }
.savings-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}
.savings-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* ─── STAT CARDS ──────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.stat-card-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.stat-card-value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.stat-card-sub { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ─── SECTION ──────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.section-link { font-size: 13px; font-weight: 600; color: var(--blue); }
.section-link:hover { text-decoration: underline; }

/* ─── QUICK ACTIONS ──────────────────────────────────────── */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.quick-btn {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    border: none;
    font-family: inherit;
}
.quick-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}
.quick-label { font-size: 12px; font-weight: 600; color: var(--gray-600); }

/* ─── TRANSACTION LIST ────────────────────────────────────── */
.txn-list { margin-bottom: 24px; }
.txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    cursor: pointer;
}
.txn-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.txn-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.txn-details { flex: 1; min-width: 0; }
.txn-category { font-size: 14px; font-weight: 600; color: var(--navy); }
.txn-note { font-size: 12px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-size: 16px; font-weight: 700; }
.txn-amount.income { color: var(--green); }
.txn-amount.expense { color: var(--red); }
.txn-date { font-size: 11px; color: var(--gray-400); }

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--navy); }

/* ─── WIDGET CARDS (like mobile widgets) ────────────────── */
.widget-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.widget-card:hover { transform: translateY(-2px); }
.widget-card::before {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -40px; right: -20px;
}
.widget-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; position: relative; z-index: 1; }
.widget-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.widget-title { font-size: 16px; font-weight: 700; }
.widget-sub { font-size: 12px; opacity: 0.8; }
.widget-stats {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.widget-stat { flex: 1; text-align: center; }
.widget-stat-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-stat-value { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* ─── ACCOUNT CARDS ───────────────────────────────────────── */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.account-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.account-card:hover { transform: translateY(-2px); }
.account-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.account-badge { font-size: 11px; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.account-name { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
.account-balance { font-size: 22px; font-weight: 800; }

/* ─── BUDGET BARS ──────────────────────────────────────────── */
.budget-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.budget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.budget-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.budget-amounts { font-size: 13px; color: var(--gray-500); }
.budget-amounts span { font-weight: 700; }
.budget-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}
.budget-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* ─── REPORTS ──────────────────────────────────────────────── */
.chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.cat-breakdown { list-style: none; }
.cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.cat-item:last-child { border-bottom: none; }
.cat-color { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.cat-name { flex: 1; font-size: 14px; font-weight: 500; }
.cat-amount { font-size: 14px; font-weight: 700; color: var(--navy); }
.cat-pct { font-size: 12px; color: var(--gray-400); width: 48px; text-align: right; }

/* ─── TREND CHART (simple bars) ───────────────────────────── */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding-top: 20px;
}
.trend-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.trend-bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.trend-bar { width: 18px; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; }
.trend-label { font-size: 10px; color: var(--gray-400); font-weight: 600; }

/* ─── PROFILE ──────────────────────────────────────────────── */
.profile-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    border-radius: var(--radius-xl);
    padding: 32px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
}
.profile-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-name { font-size: 22px; font-weight: 700; }
.profile-email { font-size: 14px; opacity: 0.7; margin-top: 4px; }
.profile-plan {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--navy-deep);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    text-transform: uppercase;
}
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.profile-info-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.profile-info-label { font-size: 12px; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-info-value { font-size: 15px; font-weight: 600; color: var(--navy); margin-top: 4px; }

/* ─── FORM MODALS ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.modal-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400);
    cursor: pointer;
}

/* ─── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--gray-500); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ─── TOAST ───────────────────────────────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ─── LOADING ──────────────────────────────────────────────── */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    flex-direction: column;
    gap: 16px;
}
.page-loading .spinner { width: 40px; height: 40px; border-width: 4px; }

/* ─── TYPE TOGGLE (income/expense) ────────────────────────── */
.type-toggle { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.type-btn {
    flex: 1; padding: 12px; text-align: center; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    font-family: inherit; background: transparent; color: var(--gray-500);
}
.type-btn.active.expense { background: var(--red-soft); color: var(--red); }
.type-btn.active.income { background: var(--green-soft); color: var(--green); }

/* ─── CATEGORY GRID ──────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.cat-chip {
    padding: 12px 8px; text-align: center; border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200); cursor: pointer; transition: all 0.2s;
    background: white; font-family: inherit;
}
.cat-chip:hover { border-color: var(--blue); }
.cat-chip.selected { border-color: var(--blue); background: rgba(59,130,246,0.05); }
.cat-chip-icon { font-size: 22px; margin-bottom: 4px; display: block; }
.cat-chip-name { font-size: 11px; font-weight: 600; color: var(--gray-600); }

/* ─── FILTER CHIPS ────────────────────────────────────────── */
.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    background: white;
    color: var(--gray-600);
    font-family: inherit;
}
.filter-chip:hover { border-color: var(--blue); }
.filter-chip.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ─── TABLE ───────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400);
    font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--gray-100);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.data-table tr:hover td { background: var(--gray-50); }

/* ─── MOBILE BOTTOM NAV ──────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
}
.bottom-nav-item.active { color: var(--blue); }
.bottom-nav-item i { display: block; font-size: 18px; margin-bottom: 2px; }
.bottom-nav-add {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-btn-circle {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-top: -24px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-close { display: block; position: absolute; top: 24px; right: 20px; }
    .main-content { margin-left: 0; padding-bottom: 80px; }
    .menu-toggle { display: block; }
    .content-area { padding: 16px; }
    .hero-balance { font-size: 28px; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .hero-stat { min-width: calc(33% - 12px); }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-label { font-size: 10px; }
    .mobile-bottom-nav { display: flex; }
    .profile-info-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 24px; }
    .stat-grid { grid-template-columns: 1fr; }
    .hero-card { padding: 24px; }
    .hero-balance { font-size: 24px; }
    .hero-stats { gap: 8px; }
}

/* ─── SKELETON LOADING ────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── SELECT INPUT ────────────────────────────────────────── */
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--off-white);
    color: var(--navy-deep);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-select:focus { outline: none; border-color: var(--blue); background-color: white; }

/* ─── BUSINESS HUB GRID ──────────────────────────────────── */
.biz-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}
.biz-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    text-decoration: none;
    transition: transform 0.2s;
}
.biz-action-btn:hover { transform: translateY(-2px); }
.biz-action-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: box-shadow 0.2s;
}
.biz-action-btn:hover .biz-action-icon { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.biz-action-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.3;
}
.biz-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.biz-kpi-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.biz-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 8px;
}
.biz-kpi-label { font-size: 10px; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.biz-kpi-value { font-size: 16px; font-weight: 800; margin-top: 4px; color: var(--navy); }

@media (max-width: 480px) {
    .biz-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .biz-action-icon { width: 48px; height: 48px; font-size: 18px; }
    .biz-action-label { font-size: 10px; }
    .biz-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ WEBCOMPLETE v1 additions ═══════════ */
.fab { position: fixed; bottom: 90px; right: 24px; width: 56px; height: 56px; background: linear-gradient(135deg, #1E40AF, #3B82F6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 6px 24px rgba(30,64,175,0.4); z-index: 50; text-decoration: none; border: none; cursor: pointer; transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
@media (min-width: 768px) { .fab { bottom: 32px; } }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.badge-green { background: var(--green-soft); color: #047857; }
.badge-red { background: var(--red-soft); color: #B91C1C; }
.badge-yellow { background: #FEF3C7; color: #B45309; }
.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.seg-control { display: flex; background: var(--gray-100); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg-btn { flex: 1; padding: 9px 6px; border: none; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; font-family: inherit; }
.seg-btn.active { background: #fff; color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.item-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.btn-chip { padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; border: 1px solid var(--gray-200); background: #fff; color: var(--navy-dark); cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-chip:hover { border-color: var(--blue); color: var(--blue); }
.btn-chip.danger:hover { border-color: var(--red); color: var(--red); }
.btn-chip.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress-track { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--blue); transition: width .3s; }
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.detail-row .k { color: var(--gray-500); }
.detail-row .v { font-weight: 600; color: var(--navy-deep); }
/* Chat (AI Insights) */
.chat-box { display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 55vh; overflow-y: auto; padding: 4px 2px 12px; }
.chat-msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, #1E40AF, #3B82F6); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--gray-200); color: var(--navy-deep); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
.chat-input-row .form-input { flex: 1; margin: 0; }
/* Vault */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vault-doc { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.vault-doc .vd-icon { font-size: 30px; margin-bottom: 8px; }
.vault-doc .vd-name { font-size: 12px; font-weight: 600; color: var(--navy-deep); word-break: break-all; margin-bottom: 2px; }
.vault-doc .vd-meta { font-size: 11px; color: var(--gray-400); margin-bottom: 10px; }
.pin-row { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.pin-digit { width: 52px; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 2px solid var(--gray-200); border-radius: 12px; outline: none; }
.pin-digit:focus { border-color: var(--blue); }
/* Daily bars */
.day-bar-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.day-bar { height: 8px; border-radius: 999px; min-width: 2px; }
/* Broadcast */
.broadcast-item { background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--blue); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
/* Invoice/doc list card */
.doc-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.doc-card .doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.doc-no { font-weight: 700; color: var(--navy-deep); font-size: 14px; }
.doc-party { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.doc-amt { font-size: 16px; font-weight: 800; color: var(--navy-deep); white-space: nowrap; }
/* Modal scroll safety */
.modal-card { max-height: 88vh; overflow-y: auto; }
.form-hint { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   APK THEME v2 — match the DigiExpense Android app look
   ═══════════════════════════════════════════════════════════ */
:root {
    --purple: #7C3AED;
    --pink: #EC4899;
}
.card, .stat-card, .doc-card, .widget-card, .txn-list { border-radius: 20px; }
.modal-card { border-radius: 22px; }

/* ── Greeting strip ── */
.greet-row { display:flex; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.greet-hi { font-size:20px; font-weight:800; color:var(--navy-deep); }
.greet-sub { font-size:12.5px; color:var(--gray-500); }
.greet-badge { background:linear-gradient(135deg,#F59E0B,#FBBF24); color:#fff; font-size:11px; font-weight:800; padding:4px 12px; border-radius:999px; letter-spacing:.4px; box-shadow:0 3px 8px rgba(245,158,11,.35); }
.greet-pill { margin-left:auto; background:#fff; border:1px solid var(--gray-200); border-radius:999px; padding:7px 14px; font-size:12.5px; font-weight:700; color:var(--navy-dark); display:flex; align-items:center; gap:7px; }

/* ── APK pastel KPI cards ── */
.kpi-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:18px; }
@media (min-width:900px){ .kpi-grid { grid-template-columns:repeat(4,1fr); } }
.kpi-card { border-radius:20px; padding:16px 16px 14px; text-decoration:none; display:block; transition:transform .15s; position:relative; }
.kpi-card:hover { transform:translateY(-2px); }
.kpi-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.kpi-name { font-size:13px; font-weight:600; color:var(--navy-dark); }
.kpi-ic { width:34px; height:34px; border-radius:11px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; }
.kpi-val { font-size:23px; font-weight:800; color:var(--navy-deep); letter-spacing:-.5px; }
.kpi-sub { font-size:12px; font-weight:600; margin-top:4px; }
.kpi-green  { background:#E8F9F0; } .kpi-green .kpi-ic{ background:#D1FAE5; color:#059669; } .kpi-green .kpi-sub{ color:#059669; }
.kpi-red    { background:#FDEEEE; } .kpi-red .kpi-ic{ background:#EF4444; } .kpi-red .kpi-sub{ color:#EF4444; }
.kpi-blue   { background:#EBF1FE; } .kpi-blue .kpi-ic{ background:#3B82F6; } .kpi-blue .kpi-sub{ color:#3B82F6; }
.kpi-yellow { background:#FEF7E6; } .kpi-yellow .kpi-ic{ background:#F59E0B; } .kpi-yellow .kpi-sub{ color:#D97706; }

/* ── Ask AI gradient banner ── */
.ai-banner { display:block; text-decoration:none; background:linear-gradient(120deg,#6D28D9,#7C3AED 45%,#4F46E5); border-radius:24px; padding:22px; color:#fff; margin-bottom:20px; position:relative; overflow:hidden; box-shadow:0 10px 26px rgba(109,40,217,.28); }
.ai-banner::after { content:''; position:absolute; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.07); top:-90px; right:-60px; }
.ai-row { display:flex; align-items:center; gap:14px; }
.ai-bot { width:56px; height:56px; border-radius:16px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:30px; flex-shrink:0; }
.ai-title { font-size:19px; font-weight:800; display:flex; align-items:center; gap:8px; }
.ai-copilot { font-size:10.5px; font-weight:700; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.25); padding:3px 10px; border-radius:999px; }
.ai-sub { font-size:13px; color:rgba(255,255,255,.85); margin-top:2px; }
.ai-arrow { margin-left:auto; font-size:20px; color:rgba(255,255,255,.9); }
.ai-chips { display:flex; gap:10px; margin-top:16px; overflow-x:auto; scrollbar-width:none; position:relative; z-index:1; }
.ai-chips::-webkit-scrollbar { display:none; }
.ai-chip { flex-shrink:0; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.22); color:#fff; font-size:13px; font-weight:600; padding:10px 16px; border-radius:999px; white-space:nowrap; }

/* ── Pastel action tiles (Quick Actions / Business Hub / Top Tools) ── */
.qa-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px 8px; margin-bottom:22px; }
@media (min-width:900px){ .qa-grid { grid-template-columns:repeat(8,1fr); } .qa-grid.cols4 { grid-template-columns:repeat(4,1fr); } }
.qa-tile { text-decoration:none; text-align:center; display:block; }
.qa-ic { width:64px; height:64px; max-width:100%; margin:0 auto 8px; border-radius:22px; display:flex; align-items:center; justify-content:center; font-size:22px; transition:transform .15s; }
.qa-tile:hover .qa-ic { transform:translateY(-3px) scale(1.04); }
.qa-lb { font-size:12px; font-weight:600; color:var(--navy-dark); line-height:1.25; }
.t-green  { background:#DCFCE7; color:#16A34A; }
.t-red    { background:#FEE2E2; color:#EF4444; }
.t-blue   { background:#DBEAFE; color:#3B82F6; }
.t-yellow { background:#FEF3C7; color:#D97706; }
.t-purple { background:#EDE9FE; color:#7C3AED; }
.t-pink   { background:#FCE7F3; color:#DB2777; }
.t-teal   { background:#CCFBF1; color:#0D9488; }
.t-indigo { background:#E0E7FF; color:#4F46E5; }
.t-orange { background:#FFEDD5; color:#EA580C; }
.t-gray   { background:#E5E7EB; color:#4B5563; }

/* ── Premium promo cards ── */
.promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:20px; }
@media (max-width:520px){ .promo-grid { grid-template-columns:1fr; } }
.promo-card { border-radius:24px; padding:20px; color:#fff; text-decoration:none; display:flex; flex-direction:column; min-height:190px; position:relative; overflow:hidden; box-shadow:0 10px 24px rgba(15,23,42,.18); transition:transform .15s; }
.promo-card:hover { transform:translateY(-3px); }
.promo-card::after { content:''; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,.08); top:-70px; right:-50px; }
.promo-khata { background:linear-gradient(135deg,#7C3AED,#C026D3 55%,#F97316); }
.promo-biz { background:linear-gradient(135deg,#1E3A8A,#2563EB 60%,#3B82F6); }
.promo-tag { font-size:10.5px; font-weight:700; background:rgba(255,255,255,.18); padding:3px 10px; border-radius:999px; width:fit-content; display:flex; align-items:center; gap:5px; }
.promo-emoji { font-size:40px; margin:12px 0 8px; }
.promo-title { font-size:19px; font-weight:800; }
.promo-sub { font-size:12px; color:rgba(255,255,255,.85); margin-top:4px; line-height:1.45; flex:1; }
.promo-open { margin-top:14px; display:flex; justify-content:space-between; align-items:center; }
.promo-open-btn { background:#fff; color:var(--navy-deep); font-size:13px; font-weight:800; padding:8px 22px; border-radius:999px; }
.promo-open i { color:rgba(255,255,255,.9); }

/* ── Gradient banner rows ── */
.banner-row { display:flex; align-items:center; gap:14px; border-radius:22px; padding:18px 20px; color:#fff; text-decoration:none; margin-bottom:14px; position:relative; overflow:hidden; box-shadow:0 8px 20px rgba(15,23,42,.15); transition:transform .15s; }
.banner-row:hover { transform:translateY(-2px); }
.banner-ic { width:48px; height:48px; border-radius:14px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; font-size:21px; flex-shrink:0; }
.banner-title { font-size:16.5px; font-weight:800; }
.banner-sub { font-size:12.5px; color:rgba(255,255,255,.85); margin-top:2px; }
.banner-arrow { margin-left:auto; width:40px; height:40px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.banner-pill { margin-left:auto; background:#fff; color:#B45309; font-weight:800; font-size:13.5px; padding:9px 20px; border-radius:999px; display:flex; align-items:center; gap:7px; flex-shrink:0; }
.bnr-purple { background:linear-gradient(120deg,#5B21B6,#7C3AED); } .bnr-purple .banner-arrow i{ color:#7C3AED; }
.bnr-green  { background:linear-gradient(120deg,#047857,#10B981); } .bnr-green .banner-arrow i{ color:#059669; }
.bnr-dark   { background:linear-gradient(120deg,#0F172A,#3730A3); } .bnr-dark .banner-arrow i{ color:#3730A3; }
.bnr-amber  { background:linear-gradient(120deg,#D97706,#F59E0B); } .bnr-amber .banner-arrow i{ color:#D97706; }

/* ── Soft alert ── */
.alert-soft { display:flex; align-items:center; gap:12px; background:#FEFCE8; border:1px solid #FDE68A; border-radius:16px; padding:13px 16px; margin-bottom:14px; text-decoration:none; }
.alert-soft .as-ic { width:40px; height:40px; border-radius:12px; background:#FEF3C7; color:#B45309; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.alert-soft .as-title { font-size:14.5px; font-weight:800; color:#92400E; }
.alert-soft .as-sub { font-size:12px; color:#B45309; }
.alert-soft .as-arrow { margin-left:auto; color:#B45309; }

/* ── Recent activity gradient icons ── */
.ticon-in  { background:linear-gradient(135deg,#10B981,#059669) !important; color:#fff !important; }
.ticon-out { background:linear-gradient(135deg,#F87171,#E11D48) !important; color:#fff !important; }
.ticon-in i, .ticon-out i { color:#fff !important; }

/* ── Bank gradient cards ── */
.bank-grid { display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; scrollbar-width:none; }
.bank-grid::-webkit-scrollbar { display:none; }
.bank-card { flex:0 0 280px; border-radius:22px; padding:18px; color:#fff; position:relative; overflow:hidden; box-shadow:0 8px 22px rgba(15,23,42,.2); }
.bank-card::after { content:''; position:absolute; width:150px; height:150px; border-radius:50%; background:rgba(255,255,255,.08); top:-50px; right:-40px; }
.bank-top { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.bank-chip { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); font-size:10.5px; font-weight:800; padding:6px 10px; border-radius:10px; letter-spacing:.5px; }
.bank-name { font-size:15.5px; font-weight:800; }
.bank-mask { font-size:11.5px; color:rgba(255,255,255,.75); letter-spacing:1px; }
.bank-bal { font-size:26px; font-weight:800; letter-spacing:-.5px; }
.bank-split { display:flex; gap:22px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.18); position:relative; z-index:1; }
.bank-split .k { font-size:11px; color:rgba(255,255,255,.75); }
.bank-split .v { font-size:14px; font-weight:800; margin-top:2px; }
.bg-bank-1 { background:linear-gradient(135deg,#1D4ED8,#3B82F6); }
.bg-bank-2 { background:linear-gradient(135deg,#6D28D9,#8B5CF6); }
.bg-bank-3 { background:linear-gradient(135deg,#0F766E,#14B8A6); }
.bg-bank-4 { background:linear-gradient(135deg,#BE185D,#EC4899); }

/* ── APK style bottom nav ── */
.mobile-bottom-nav { border-radius:22px 22px 0 0; box-shadow:0 -6px 24px rgba(15,23,42,.08); }
.bottom-nav-item span { font-weight:600; }
.bottom-nav-item .nav-dot { display:block; width:5px; height:5px; border-radius:50%; margin:3px auto 0; background:transparent; }
.bottom-nav-item.nv-home.active   { color:#2563EB; } .bottom-nav-item.nv-home.active .nav-dot{ background:#2563EB; }
.bottom-nav-item.nv-history       { color:#D97706; } .bottom-nav-item.nv-history .nav-dot{ background:#FBBF24; }
.bottom-nav-item.nv-budget.active { color:#7C3AED; } .bottom-nav-item.nv-budget.active .nav-dot{ background:#7C3AED; }
.bottom-nav-item.nv-profile       { color:#DB2777; } .bottom-nav-item.nv-profile .nav-dot{ background:#F9A8D4; }
.nav-ai-circle { width:58px; height:58px; border-radius:50%; background:linear-gradient(135deg,#7C3AED,#6D28D9); display:flex; align-items:center; justify-content:center; font-size:26px; margin-top:-26px; border:5px solid #fff; box-shadow:0 8px 20px rgba(109,40,217,.35); }
.bottom-nav-ai { text-align:center; text-decoration:none; }
.bottom-nav-ai span { display:block; font-size:10.5px; font-weight:700; color:#6D28D9; margin-top:2px; }

/* ── Print (invoice) ── */
@media print {
    body { background:#fff !important; }
    .sidebar, .sidebar-overlay, .top-bar, .mobile-bottom-nav, .no-print, .toast-container { display:none !important; }
    .main-content { margin:0 !important; }
    .content-area { padding:0 !important; }
    .invoice-sheet { box-shadow:none !important; border:none !important; max-width:100% !important; padding:10px !important; }
    .badge { border:1px solid currentColor; }
}

/* ═══════════════════════════════════════════════════════════
   WEB PRO DASHBOARD v3 — desktop-grade business hub
   ═══════════════════════════════════════════════════════════ */
.dash-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.sp12{grid-column:span 12;} .sp8{grid-column:span 8;} .sp6{grid-column:span 6;} .sp4{grid-column:span 4;} .sp3{grid-column:span 3;}
@media (max-width:1100px){ .sp8,.sp6{grid-column:span 12;} .sp4{grid-column:span 6;} .sp3{grid-column:span 6;} }
@media (max-width:640px){ .sp4,.sp3{grid-column:span 12;} }

.chart-card { background:#fff; border-radius:20px; padding:20px 22px; box-shadow:0 2px 12px rgba(15,23,42,.05); border:1px solid rgba(226,232,240,.7); }
.chart-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:10px; flex-wrap:wrap; }
.chart-title { font-size:15.5px; font-weight:800; color:var(--navy-deep); }
.chart-sub { font-size:12px; color:var(--gray-400); margin-top:2px; }
.chart-wrap { position:relative; height:290px; }
.chart-wrap.sm { height:220px; }

/* KPI with delta */
.kpi-delta { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:800; padding:3px 9px; border-radius:999px; }
.kpi-delta.up { background:#DCFCE7; color:#15803D; }
.kpi-delta.down { background:#FEE2E2; color:#B91C1C; }
.kpi-delta.flat { background:#E5E7EB; color:#4B5563; }

/* Ranked bars (top customers / items) */
.rank-row { display:flex; align-items:center; gap:12px; padding:9px 0; }
.rank-num { width:26px; height:26px; border-radius:9px; background:var(--gray-100); color:var(--navy-dark); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rank-body { flex:1; min-width:0; }
.rank-name { font-size:13.5px; font-weight:700; color:var(--navy-deep); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-track { height:7px; border-radius:999px; background:var(--gray-100); margin-top:5px; overflow:hidden; }
.rank-fill { height:100%; border-radius:999px; }
.rank-amt { font-size:13.5px; font-weight:800; color:var(--navy-deep); white-space:nowrap; }

/* Web table */
.tbl-wrap { overflow-x:auto; }
.tbl { width:100%; border-collapse:collapse; font-size:13.5px; min-width:640px; }
.tbl th { text-align:left; padding:11px 14px; font-size:11px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; color:var(--gray-400); border-bottom:1px solid var(--gray-100); }
.tbl td { padding:13px 14px; border-bottom:1px solid var(--gray-50); color:var(--navy-dark); }
.tbl tr:hover td { background:#F8FAFF; }
.tbl .amt { font-weight:800; text-align:right; }
.tbl th.amt { text-align:right; }
.tbl a.rowlink { color:var(--blue); font-weight:700; text-decoration:none; }

/* Compact header strip */
.biz-strip { display:flex; align-items:center; gap:16px; background:linear-gradient(120deg,#0F172A,#1E3A8A 70%,#2563EB); border-radius:22px; padding:20px 24px; color:#fff; margin-bottom:20px; position:relative; overflow:hidden; flex-wrap:wrap; }
.biz-strip::after { content:''; position:absolute; width:260px; height:260px; border-radius:50%; background:rgba(59,130,246,.14); top:-110px; right:-70px; }
.biz-logo { width:52px; height:52px; border-radius:16px; background:linear-gradient(135deg,#3B82F6,#1D4ED8); display:flex; align-items:center; justify-content:center; font-size:23px; flex-shrink:0; }
.biz-cta { display:flex; gap:10px; margin-left:auto; position:relative; z-index:1; flex-wrap:wrap; }
.biz-btn { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:800; padding:11px 18px; border-radius:12px; text-decoration:none; }
.biz-btn.solid { background:#fff; color:#1D4ED8; }
.biz-btn.ghost { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22); }
