/* ─────────────────────────────────────────
   ROOT VARIABLES
───────────────────────────────────────── */
:root {
    --bg: #eef2ff;
    --surface: #ffffff;
    --text: #1e1b4b;
    --muted: #64748b;
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #e0e7ff;
    --accent: #0891b2;
    --accent2: #7c3aed;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --shadow: 0 8px 24px rgba(79, 70, 229, 0.13);
    --shadow-sm: 0 2px 10px rgba(79, 70, 229, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background:
        radial-gradient(ellipse at 5% 5%, rgba(129, 140, 248, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 15%, rgba(110, 231, 183, 0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(196, 181, 254, 0.25) 0%, transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.container-mobile {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 96px !important;
}

/* ─────────────────────────────────────────
   CARD BASE
───────────────────────────────────────── */
.soft-card,
.auth-card,
.summary-card,
.menu-card,
.transaction-item,
.insight-item {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.soft-card,
.auth-card,
.summary-card,
.transaction-item,
.insight-item {
    padding: 14px;
}

.auth-card {
    max-width: 440px;
    overflow: hidden;
}

/* ─────────────────────────────────────────
   AUTH CARD — gradient header
───────────────────────────────────────── */
.auth-card > .text-center:first-child {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #0891b2 100%);
    margin: -14px -14px 24px;
    padding: 32px 14px 26px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.auth-card > .text-center:first-child h1 {
    color: #fff;
}

.auth-card > .text-center:first-child p {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* ─────────────────────────────────────────
   APP BRAND
───────────────────────────────────────── */
.app-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card > .text-center:first-child .app-brand {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.auth-brand-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.auth-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.36);
    padding: 5px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

/* ─────────────────────────────────────────
   HERO CARD
───────────────────────────────────────── */
.hero-card {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #0891b2 100%);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(67, 56, 202, 0.32);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -35px;
    right: -35px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 15px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.hero-card-compact {
    position: relative;
    padding: 16px 16px 14px;
}

.hero-greeting {
    padding-right: 160px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.hero-name {
    margin-top: 2px;
    line-height: 1.1;
    padding-right: 160px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

/* ─────────────────────────────────────────
   HERO LANGUAGE TOGGLE
───────────────────────────────────────── */
.hero-lang-corner {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 2;
}

.lang-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.lang-active-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-switch-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lang-flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.lang-flag.active {
    color: #fff;
}

.lang-toggle-input {
    width: 34px !important;
    height: 18px;
}

.lang-toggle-input.form-check-input {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.lang-toggle-input.form-check-input:checked {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #fff;
}

/* ─────────────────────────────────────────
   SUMMARY CARDS
───────────────────────────────────────── */
.summary-card {
    border-left: 3px solid var(--primary);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
    overflow: hidden;
}

.summary-card--blue {
    border-left-color: #4f46e5;
    background: linear-gradient(115deg, rgba(79, 70, 229, 0.12), rgba(255, 255, 255, 0.92));
}

.summary-card--cyan {
    border-left-color: #0891b2;
    background: linear-gradient(115deg, rgba(6, 182, 212, 0.12), rgba(255, 255, 255, 0.92));
}

.summary-card--purple {
    border-left-color: #7c3aed;
    background: linear-gradient(115deg, rgba(147, 51, 234, 0.12), rgba(255, 255, 255, 0.92));
}

.summary-card--warning {
    border-left-color: #f59e0b;
    background: linear-gradient(115deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.92));
}

.summary-card span {
    color: var(--muted);
    font-size: 12px;
}

.summary-card h6 {
    margin: 3px 0 0;
    font-weight: 700;
    font-size: 15px;
}

.summary-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
}

.summary-card-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-card-copy span {
    display: block;
    line-height: 1.15;
    font-weight: 600;
}

.summary-card-copy small {
    display: block;
    min-height: 12px;
    font-size: 10px;
    line-height: 1.15;
    color: var(--muted);
}

.summary-card-bodyline {
    margin-top: 8px;
}

.summary-card-amount {
    margin: 0;
    line-height: 1.15;
    word-break: break-word;
}

.summary-card-amount--success {
    color: var(--success);
}

.summary-card-rate {
    font-size: 10px;
    font-weight: 500;
    opacity: .75;
    margin-left: 2px;
}

.summary-card-subnote {
    display: block;
    margin-top: auto;
    min-height: 13px;
    font-size: 10px;
    line-height: 1.2;
    color: var(--muted);
}

.summary-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.22);
    background: rgba(79, 70, 229, 0.1);
    box-shadow: none;
    flex-shrink: 0;
}

.summary-card--blue .summary-icon {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.14);
    border-color: rgba(79, 70, 229, 0.28);
}

.summary-card--cyan .summary-icon {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.14);
    border-color: rgba(8, 145, 178, 0.3);
}

.summary-card--purple .summary-icon {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.3);
}

.summary-card--warning .summary-icon {
    color: #d97706;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.32);
}

.summary-warning {
    border-left-color: #f59e0b !important;
    background: linear-gradient(115deg, rgba(245, 158, 11, 0.15), rgba(255, 255, 255, 0.92)) !important;
}

/* ─────────────────────────────────────────
   MENU CARDS
───────────────────────────────────────── */
.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.14);
    color: var(--text);
}

.menu-card:active {
    transform: translateY(1px);
}

.menu-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid currentColor;
    background: rgba(79, 70, 229, 0.1);
    font-size: 17px;
    box-shadow: none;
}

/* 9 menu items — each a unique gradient */
.menu-grid-wrap .col:nth-child(1) .menu-icon-wrap { color: #0ea5a3; background: rgba(20, 184, 166, 0.14); }
.menu-grid-wrap .col:nth-child(2) .menu-icon-wrap { color: #0891b2; background: rgba(8, 145, 178, 0.14); }
.menu-grid-wrap .col:nth-child(3) .menu-icon-wrap { color: #dc2626; background: rgba(239, 68, 68, 0.14); }
.menu-grid-wrap .col:nth-child(4) .menu-icon-wrap { color: #4f46e5; background: rgba(79, 70, 229, 0.14); }
.menu-grid-wrap .col:nth-child(5) .menu-icon-wrap { color: #7c3aed; background: rgba(124, 58, 237, 0.14); }
.menu-grid-wrap .col:nth-child(6) .menu-icon-wrap { color: #d97706; background: rgba(245, 158, 11, 0.16); }
.menu-grid-wrap .col:nth-child(7) .menu-icon-wrap { color: #059669; background: rgba(5, 150, 105, 0.14); }
.menu-grid-wrap .col:nth-child(8) .menu-icon-wrap { color: #9333ea; background: rgba(147, 51, 234, 0.14); }
.menu-grid-wrap .col:nth-child(9) .menu-icon-wrap { color: #0284c7; background: rgba(2, 132, 199, 0.14); }

/* fallback for plain i inside menu-card */
.menu-card > i {
    color: var(--primary);
    font-size: 20px;
}

.menu-card small {
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    color: #475569;
}

/* ─────────────────────────────────────────
   PROFILE PAGES
───────────────────────────────────────── */
.profile-page-head {
    margin-top: 4px;
}

.profile-identity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.10);
}

.profile-identity-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #0891b2);
    box-shadow: 0 12px 24px rgba(67, 56, 202, 0.22);
}

.profile-identity-label,
.profile-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.profile-section-card,
.profile-menu-card,
.about-app-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.09);
}

.profile-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.profile-menu-card {
    padding: 10px 14px;
}

.profile-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.profile-nav-row + .profile-nav-row {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-nav-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.10);
    border: 1px solid rgba(79, 70, 229, 0.14);
    flex-shrink: 0;
}

.profile-nav-icon-wrap--warm {
    color: #d97706;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.18);
}

.support-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(8, 145, 178, 0.14);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(79, 70, 229, 0.06), rgba(255, 255, 255, 0.94));
}

.support-hero-icon,
.about-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.support-hero-icon {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.14);
}

.support-ticket-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-ticket-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.support-ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.10);
    text-transform: capitalize;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--muted);
}

.about-app-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.88));
}

.about-app-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.about-app-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-app-icon {
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
}

.about-app-story {
    line-height: 1.8;
    color: #334155;
}

.about-app-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--muted);
    font-size: 13px;
}

/* ─────────────────────────────────────────
   INSIGHT ITEMS
───────────────────────────────────────── */
.insight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.insight-item i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TRANSACTION ITEMS
───────────────────────────────────────── */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.tx-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.tx-body small {
    color: var(--muted);
    font-size: 12px;
}

.tx-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.tx-note {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-amount {
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   BOTTOM NAV — glassmorphism
───────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 480px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(79, 70, 229, 0.15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    z-index: 99;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 24px rgba(79, 70, 229, 0.08);
}

.tab-item {
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    transition: color 0.2s ease;
}

.tab-item i {
    font-size: 16px;
}

.tab-item.active {
    color: var(--primary);
}

.tab-add {
    transform: translateY(-18px);
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    color: #fff;
    border-radius: 999px;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    box-shadow: 0 10px 24px rgba(67, 56, 202, 0.42);
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-add:hover {
    transform: translateY(-20px);
    box-shadow: 0 14px 28px rgba(67, 56, 202, 0.5);
    color: #fff;
}

.tab-add span {
    display: none;
}

/* ─────────────────────────────────────────
   FORMS & BUTTONS
───────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: #dde4f8;
    background-color: #f5f7ff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background-color: #fff;
}

.btn {
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    border: 0;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3730a3, #5b21b6);
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.38);
    border: 0;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* ─────────────────────────────────────────
   COMPACT DASHBOARD SCOPE
───────────────────────────────────────── */
.dashboard-compact .hero-card {
    margin-bottom: 8px !important;
}

.dashboard-compact .summary-card {
    padding: 8px 9px;
    min-height: 88px;
}

.dashboard-compact .summary-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dashboard-compact .summary-card span {
    font-size: 11px;
}

.dashboard-compact .summary-card h6 {
    font-size: 14px;
}

.dashboard-compact .summary-card-head {
    gap: 6px;
}

.dashboard-compact .summary-card-copy span {
    font-size: 11px;
    line-height: 1.15;
}

.dashboard-compact .summary-card-copy small,
.dashboard-compact .summary-card-rate,
.dashboard-compact .summary-card-subnote {
    font-size: 10px;
    line-height: 1.15;
}

.dashboard-compact .summary-card-bodyline {
    margin-top: 4px;
}

.dashboard-compact .summary-card-subnote {
    margin-top: 2px;
    min-height: 0;
}

.dashboard-compact > .row.g-2 {
    --bs-gutter-x: 0.4rem;
    --bs-gutter-y: 0.4rem;
}

.dashboard-compact .menu-grid-wrap {
    margin-top: 8px !important;
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.3), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.12);
}

.dashboard-compact .menu-grid-wrap .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.dashboard-compact .menu-card {
    min-height: 72px;
    gap: 4px;
    border-radius: 14px;
    padding: 7px 6px;
}

.dashboard-compact .menu-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
}

.dashboard-compact .menu-card small {
    font-size: 11px;
    line-height: 1.15;
}

.dashboard-compact .insight-item {
    padding: 10px 11px;
    margin-bottom: 6px;
}

.dashboard-compact .transaction-item {
    padding: 10px 11px;
    gap: 10px;
}

.dashboard-compact .tx-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.dashboard-compact .tx-amount {
    font-size: 12px;
}

/* ─────────────────────────────────────────
   ADMIN DESKTOP DASHBOARD
───────────────────────────────────────── */
body.admin-page {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(79, 70, 229, 0.25), transparent 45%),
        radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.2), transparent 42%),
        #eef2ff;
}

.admin-shell {
    min-height: 100vh;
}

.admin-topbar {
    background: linear-gradient(135deg, #1e1b4b, #312e81 50%, #0e7490);
    color: #fff;
    box-shadow: 0 14px 30px rgba(30, 27, 75, 0.28);
}

.admin-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px;
}

.admin-brand-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-brand-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.admin-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 600;
}

.admin-container {
    max-width: 1400px;
}

.admin-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.admin-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
    padding: 14px;
    align-self: start;
    position: sticky;
    top: 14px;
}

.admin-sidebar-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-sidebar-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #dbe3f1;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-sidebar-toggle:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #312e81;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 11px;
    transition: all 0.15s ease;
}

.admin-nav-link i {
    width: 18px;
    text-align: center;
}

.admin-nav-link:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(6, 182, 212, 0.14));
    border-color: rgba(79, 70, 229, 0.28);
    color: #312e81;
}

.admin-nav-link span {
    white-space: nowrap;
}

.admin-content-area {
    min-width: 0;
}

.admin-hero-card {
    background: linear-gradient(120deg, #312e81 0%, #4338ca 48%, #0891b2 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 14px 30px rgba(49, 46, 129, 0.3);
}

.admin-hero-card h1 {
    font-size: 28px;
    font-weight: 800;
}

.admin-hero-card p {
    opacity: 0.88;
}

.admin-hero-meta {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.admin-kpi-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.admin-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.admin-kpi-label {
    font-size: 12px;
    color: #64748b;
}

.admin-kpi-value {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #1f2937;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
    padding: 14px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-panel-head h5 {
    font-weight: 700;
    color: #1f2937;
}

.admin-table thead th {
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tbody td {
    font-size: 13px;
    border-color: #eef2ff;
}

.admin-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-health-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.admin-health-grid small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 2px;
}

.admin-health-grid strong {
    color: #0f172a;
    font-size: 15px;
}

.admin-mvp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-mvp-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.admin-mvp-grid h6 {
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-mvp-grid ul {
    margin: 0;
    padding-left: 18px;
}

.admin-mvp-grid li {
    margin-bottom: 4px;
    color: #334155;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
}

.admin-filter-grid > div {
    min-width: 0;
}

.admin-filter-grid .form-label {
    display: block;
    white-space: nowrap;
}

.admin-filter-actions {
    justify-self: start;
}

.admin-log-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
}

.admin-icon-btn {
    width: 34px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.admin-adoption-list {
    display: grid;
    gap: 10px;
}

.admin-adoption-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.admin-adoption-item.is-disabled {
    opacity: 0.8;
}

.admin-progress-track {
    height: 9px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.admin-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 999px;
}

.admin-funnel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-funnel-step {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 10px;
}

.admin-funnel-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.admin-funnel-value {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    margin-top: 4px;
}

.admin-funnel-meta {
    font-size: 12px;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.admin-setting-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
}

.admin-setting-item input {
    margin-top: 3px;
}

@media (min-width: 992px) {
    body.admin-sidebar-collapsed .admin-layout-grid {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    body.admin-sidebar-collapsed .admin-sidebar {
        padding: 12px 8px;
    }

    body.admin-sidebar-collapsed .admin-sidebar-title {
        display: none;
    }

    body.admin-sidebar-collapsed .admin-sidebar-head {
        justify-content: center;
    }

    body.admin-sidebar-collapsed .admin-sidebar-nav {
        align-items: center;
    }

    body.admin-sidebar-collapsed .admin-nav-link {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    body.admin-sidebar-collapsed .admin-nav-link span {
        display: none;
    }

    body.admin-sidebar-collapsed .admin-nav-link i {
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .admin-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-layout-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-mvp-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-funnel-grid {
        grid-template-columns: 1fr;
    }

    #adminSidebarToggle {
        display: none;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (min-width: 992px) {
    .container-mobile {
        margin-top: 20px;
    }
}

/* ─────────────────────────────────────────
   DARK MODE
───────────────────────────────────────── */
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #1e1b4b;
    --accent: #22d3ee;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
    background:
        radial-gradient(ellipse at 5% 5%,   rgba(99, 102, 241, 0.2)  0%, transparent 50%),
        radial-gradient(ellipse at 90% 15%,  rgba(34, 211, 238, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%,  rgba(124, 58, 237, 0.12) 0%, transparent 50%),
        #0f172a;
    color: var(--text);
}

[data-theme="dark"] .soft-card,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .transaction-item,
[data-theme="dark"] .insight-item {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.12);
    color: var(--text);
}

[data-theme="dark"] .menu-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.12);
    color: var(--text);
}

[data-theme="dark"] .menu-card small {
    color: #94a3b8;
}

[data-theme="dark"] .bottom-nav {
    background: rgba(15, 23, 42, 0.92);
    border-top-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .summary-card--blue {
    background: linear-gradient(115deg, rgba(99, 102, 241, 0.2), rgba(30, 41, 59, 0.9));
}
[data-theme="dark"] .summary-card--cyan {
    background: linear-gradient(115deg, rgba(22, 211, 238, 0.15), rgba(30, 41, 59, 0.9));
}
[data-theme="dark"] .summary-card--purple {
    background: linear-gradient(115deg, rgba(147, 51, 234, 0.2), rgba(30, 41, 59, 0.9));
}
[data-theme="dark"] .summary-card--warning {
    background: linear-gradient(115deg, rgba(245, 158, 11, 0.2), rgba(30, 41, 59, 0.9));
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #0f172a;
    color: var(--text);
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .alert-secondary {
    background-color: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .text-muted {
    color: #64748b !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-striped-bg: rgba(148, 163, 184, 0.05);
    --bs-table-hover-bg: rgba(148, 163, 184, 0.08);
    --bs-table-border-color: rgba(148, 163, 184, 0.12);
}

/* ─────────────────────────────────────────
   DARK MODE TOGGLE BUTTON
───────────────────────────────────────── */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ─────────────────────────────────────────
   NOTIFICATION BADGE
───────────────────────────────────────── */
.tab-notif {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(8px);
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
    pointer-events: none;
}
