/* Premium UI Style Sheet Extensions - VISTA Grant & Visa Portal */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --sidebar-bg: linear-gradient(180deg, #0b0f19 0%, #111827 100%);
    
    --sidebar-width: 272px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.7);
    --shadow-md: 0 10px 30px -3px rgba(15, 23, 42, 0.03), 0 4px 12px -2px rgba(15, 23, 42, 0.01);
    --shadow-lg: 0 20px 40px -4px rgba(79, 70, 229, 0.06), 0 8px 16px -4px rgba(79, 70, 229, 0.02);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f6f8fb;
    color: #334155;
    overflow-x: hidden;
    letter-spacing: -0.2px;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Frosted Glassmorphism Card Frame */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.18);
}

/* Premium Collapsible Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand-link {
    padding: 0.35rem 0.75rem 0.5rem;
    display: block;
}

.sidebar-brand-link:hover {
    opacity: 0.92;
}

.sidebar-brand-logo {
    height: 38px;
    width: auto;
    max-width: 100%;
    display: block;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-tagline {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.2;
}

.sidebar-email {
    font-size: 0.68rem;
}

.sidebar-profile-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.sidebar-wallet-pill {
    font-size: 0.58rem;
    padding: 0.2em 0.5em;
}

.text-warning-em {
    color: #fbbf24 !important;
}

.chip-pending { color: #fbbf24 !important; }
.chip-approved { color: #34d399 !important; }

.sidebar-logout-btn {
    font-size: 0.82rem;
    padding: 0.5rem;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

/* Hamburger button */
.btn-hamburger {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--slate-800);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.btn-hamburger:hover {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.btn-hamburger i {
    font-size: 1.35rem;
}

.sidebar .nav-link {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
    margin: 0.2rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.sidebar .nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar .nav-link:hover i {
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.08);
    border-left-color: #6366f1;
    box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.05);
}

/* Sidebar Footer User Info profile block */
.sidebar-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    margin: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Main Layout content wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 2.2rem;
    min-height: 100vh;
    max-width: 100%;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Neon Holographic Grant balance card */
.hologram-card {
    background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 50%, #030712 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hologram-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(99, 102, 241, 0.15) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hologram-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Wallet hero — full-width top of dashboard */
.wallet-hero-section {
    margin-bottom: 0 !important;
}

.hologram-card-hero {
    padding: 1.15rem 1.25rem;
    border-radius: 20px;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.hologram-card-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hologram-card-compact.hologram-card {
    padding: 1.15rem 1.25rem;
}

.wallet-hero-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 1rem;
    align-items: start;
}

.wallet-hero-top-left {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
}

.wallet-hero-top-right {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.wallet-hero-chip {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 42px;
    height: 32px;
}

.wallet-hero-title {
    font-size: 1.05rem;
    line-height: 1.25;
}

.wallet-status-pill-sm {
    font-size: 0.58rem;
    padding: 0.2em 0.55em;
}

.wallet-hero-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.75);
    margin-bottom: 0.15rem;
}

.wallet-hero-balance {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.wallet-balance-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: 0;
}

.wallet-balance-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    gap: 0.15rem;
}

.wallet-balance-row .wb-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wallet-balance-row .wb-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.wallet-balance-row .wb-value.warning {
    color: #fbbf24;
}

.wallet-balance-row .wb-value.muted {
    color: rgba(255, 255, 255, 0.65);
}

.wallet-hero-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wallet-hero-footer .wallet-utilization {
    flex: 1;
    min-width: 140px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.wallet-hero-footer .wallet-progress-track {
    height: 5px;
}

.wallet-withdraw-cta-sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
    margin-top: 0 !important;
}

.hologram-card-hero .wallet-id-row {
    margin-top: 0.35rem;
    font-size: 0.62rem;
}

.hologram-card-hero .wallet-utilization-header {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
}

.hologram-card-compact .card-symbol {
    font-size: 6rem;
    right: -10px;
    bottom: -10px;
}

.hologram-card .card-chip {
    width: 50px;
    height: 38px;
    background: linear-gradient(135deg, #ffe066 0%, #f59e0b 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.1);
}

.hologram-card .card-chip::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
}

/* Tabs switcher styling (Crypto vs Bank) */
.btn-toggle-group {
    background: #e2e8f0;
    padding: 5px;
    border-radius: 14px;
    display: inline-flex;
    gap: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-toggle {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-toggle.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Form input custom extensions */
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: #fcfdfe;
    font-weight: 500;
    font-size: 0.92rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
    color: #0f172a;
}

/* Stepper Visual Nodes */
.stepper-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 10px;
}

.stepper-progress {
    position: absolute;
    top: 22px;
    left: 5%;
    height: 4px;
    background: #4f46e5;
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.stepper-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-item.active .stepper-bubble {
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 0 0 8px rgba(79, 70, 229, 0.08);
    background: #fff;
}

.stepper-item.completed .stepper-bubble {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.stepper-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
}

.stepper-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stepper-item.active .stepper-title {
    color: #0f172a;
}

/* Horizontal progress active application trackers */
.status-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem;
    background: rgba(241, 245, 249, 0.7);
    border-radius: var(--radius-md);
}

.tracker-node {
    text-align: center;
    position: relative;
    flex: 1;
}

.tracker-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #cbd5e1;
    z-index: 1;
}

.tracker-node.completed:not(:last-child)::after {
    background: #10b981;
}

.tracker-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tracker-node.active .tracker-dot {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18);
}

.tracker-node.completed .tracker-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15);
}

.tracker-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.tracker-node.upcoming .tracker-dot {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
}

.tracker-node.upcoming .tracker-label {
    color: #94a3b8;
}

.tracker-node.upcoming:not(:last-child)::after {
    background: #e2e8f0 !important;
}

.milestone-focus-card {
    background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(99,102,241,0.02));
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
}

.milestone-focus-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79,70,229,0.12);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.apply-upload-box {
    cursor: pointer;
    transition: border-color 0.15s;
}

.apply-field-display {
    padding: 0.55rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.kyc-doc-preview {
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

/* Chat bubble styling overrides */
.chat-window {
    height: 420px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.chat-bubble {
    max-width: 78%;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-bubble.sent {
    background: #4f46e5;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.chat-bubble.received {
    background: #e2e8f0;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 0.68rem;
    margin-top: 5px;
    opacity: 0.75;
    text-align: right;
}

.chat-bubble.received .chat-meta {
    text-align: left;
    color: #64748b;
}

/* Toast container custom position values */
.toast {
    border-radius: var(--radius-md);
}

/* System simulation deck styling */
.simulation-deck {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Custom premium scrollbar details */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Utility classes ── */
.text-slate-800 { color: var(--slate-800) !important; }
.fw-extrabold { font-weight: 800 !important; }
.rounded-8 { border-radius: 8px !important; }
.rounded-10 { border-radius: 10px !important; }
.rounded-12 { border-radius: 12px !important; }
.rounded-16 { border-radius: 16px !important; }
.bg-gradient-primary { background: var(--primary-gradient) !important; }
.tracking-wider { letter-spacing: 0.06em; }
.cursor-pointer { cursor: pointer; }

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-dot 2s infinite;
    z-index: 2;
}

.notification-bell {
    position: relative;
    z-index: 210;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.hologram-card .card-symbol {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 9rem;
    opacity: 0.04;
    pointer-events: none;
}

/* ── Sidebar: scrollable body + packed layout ── */
.sidebar {
    overflow: hidden;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
}

.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    padding: 1rem 1.5rem 0.4rem;
    margin: 0;
}

.sidebar .nav-link {
    padding: 0.7rem 1rem;
    margin: 0.15rem 0.75rem;
    font-size: 0.88rem;
    gap: 11px;
    border-left: 3px solid transparent;
}

.sidebar .nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar .nav-link .nav-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2em 0.55em;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.sidebar .nav-link.active .nav-badge {
    background: rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* Sidebar wallet summary */
.sidebar-wallet {
    margin: 0.75rem 0.75rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(79,70,229,0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

a.sidebar-wallet-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a.sidebar-wallet-link:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(79,70,229,0.1) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.sidebar-wallet-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
    font-weight: 700;
    color: #a5b4fc;
}

a.sidebar-wallet-link:hover .sidebar-wallet-action {
    color: #c7d2fe;
}

.sidebar-wallet::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-wallet-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.sidebar-wallet-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.sidebar-wallet-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.68rem;
}

.sidebar-wallet-meta span { color: #64748b; }
.sidebar-wallet-meta strong { color: #cbd5e1; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; }

.sidebar-wallet-progress {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.sidebar-wallet-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Sidebar quick application links */
.sidebar-quick-links {
    margin: 0.5rem 0.75rem 0;
}

.sidebar-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-quick-link:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    border-color: rgba(99,102,241,0.15);
}

.sidebar-quick-link .quick-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sidebar-quick-link .quick-icon.visa { background: rgba(59,130,246,0.15); color: #60a5fa; }
.sidebar-quick-link .quick-icon.grant { background: rgba(16,185,129,0.15); color: #34d399; }

.sidebar-quick-link .quick-info { flex: 1; min-width: 0; }
.sidebar-quick-link .quick-ref { font-size: 0.65rem; color: #64748b; font-family: 'JetBrains Mono', monospace; }

.sidebar-quick-link .quick-status {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quick-status.submitted { background: rgba(59,130,246,0.15); color: #60a5fa; }
.quick-status.approved { background: rgba(16,185,129,0.15); color: #34d399; }

/* Sidebar account status strip */
.sidebar-account-strip {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0.75rem 0;
}

.sidebar-account-chip {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.35rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
}

.sidebar-account-chip .chip-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
}

.sidebar-account-chip .chip-label {
    font-size: 0.58rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.15);
}

.sidebar-profile-card {
    margin: 0.75rem;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
}

.sidebar-profile-card .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16,185,129,0.12);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.sidebar-profile-card .verified-badge.unverified {
    color: #fbbf24;
    background: rgba(245,158,11,0.12);
}

/* ── Page header (all authenticated pages) ── */
.page-header,
.dashboard-header {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
}

/* Keep page content below header / notification layer */
.main-wrapper > .page-header ~ *,
.main-wrapper > .dashboard-header ~ * {
    position: relative;
    z-index: 1;
}

/* ── Dashboard layout sections ── */
.dashboard-section {
    margin-bottom: 1.5rem;
}

.dashboard-main-grid .col-chat {
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .dashboard-main-grid .col-chat {
        order: 10;
    }
    .dashboard-main-grid .col-main {
        order: 1;
    }
}

/* ── KPI stat cards row ── */
.stat-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: all 0.25s ease;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}

.stat-card:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 8px 24px rgba(79,70,229,0.06);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card-icon.indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.stat-card-icon.emerald { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-card-icon.amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-card-icon.sky { background: rgba(14,165,233,0.1); color: #0ea5e9; }

.stat-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.stat-card-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.2;
}

.stat-card-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.stat-card-sub .trend-up { color: #10b981; font-weight: 600; }
.stat-card-sub .trend-neutral { color: #64748b; }

/* ── Enhanced hologram wallet ── */
.wallet-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3em 0.7em;
    border-radius: 20px;
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}

.wallet-status-pill .pulse {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.wallet-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.wallet-balance-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.wallet-balance-item .wb-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.3rem;
}

.wallet-balance-item .wb-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.wallet-balance-item .wb-value.warning { color: #fbbf24; }
.wallet-balance-item .wb-value.muted { color: rgba(255,255,255,0.55); }

.wallet-utilization {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.wallet-utilization-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
}

.wallet-utilization-header span:first-child { color: rgba(255,255,255,0.5); font-weight: 600; }
.wallet-utilization-header span:last-child { color: #a5b4fc; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

.wallet-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.wallet-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8, #a5b4fc);
    border-radius: 6px;
    position: relative;
}

.wallet-id-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Account overview mini cards ── */
.account-overview-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    height: 100%;
    transition: all 0.2s ease;
}

.account-overview-card:hover {
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

.account-overview-card .aoc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.account-overview-card .aoc-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-overview-card .aoc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.account-overview-card .aoc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.account-overview-card .aoc-row:last-child { border-bottom: none; }
.account-overview-card .aoc-row .label { color: #94a3b8; font-weight: 500; }
.account-overview-card .aoc-row .value { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--slate-800); font-size: 0.78rem; }

.section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading .section-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    padding: 0.2em 0.55em;
    border-radius: 6px;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.speed-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.speed-option:hover {
    border-color: rgba(99,102,241,0.3) !important;
    background: rgba(99,102,241,0.03);
}

/* ── Withdraw page ── */
.wallet-withdraw-cta {
    background: rgba(255,255,255,0.95) !important;
    border: none;
    color: var(--slate-800);
    transition: all 0.2s ease;
}

.wallet-withdraw-cta:hover {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
    transform: translateY(-1px);
}

.withdraw-balance-strip {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
    box-shadow: 0 8px 24px rgba(79,70,229,0.15);
}

.withdraw-balance-strip-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(12px);
    border-radius: calc(var(--radius-lg) - 1px);
    padding: 1rem 1.25rem;
}

.wbs-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wbs-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
}

.wbs-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.wbs-value.text-success {
    color: #34d399 !important;
}

.wbs-id {
    font-size: 0.78rem !important;
}

.wbs-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.withdraw-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e8edf3;
    overflow: hidden;
}

.withdraw-form-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.withdraw-form-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.withdraw-form-card-body {
    padding: 1.5rem;
}

.withdraw-method-toggle .btn-toggle {
    font-size: 0.8rem;
    padding: 8px 14px;
}

.withdraw-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.withdraw-amount-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease;
}

.withdraw-amount-box:focus-within {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

.withdraw-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    padding-left: 0.25rem;
}

.withdraw-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-800);
    outline: none;
    min-width: 0;
    width: 100%;
}

.withdraw-select {
    border-radius: var(--radius-md);
    border-color: #e2e8f0;
    padding: 0.75rem 1rem;
}

.speed-card {
    display: block;
    padding: 1rem;
    border: 2px solid #e8edf3;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    background: #fff;
}

.speed-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: #fafbff;
}

.speed-card.selected {
    border-color: #6366f1;
    background: rgba(99,102,241,0.04);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.speed-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.1rem;
}

.speed-card-icon.standard { background: rgba(99,102,241,0.1); color: #6366f1; }
.speed-card-icon.express { background: rgba(245,158,11,0.1); color: #f59e0b; }
.speed-card-icon.instant { background: rgba(16,185,129,0.1); color: #10b981; }

.speed-card-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--slate-800);
    margin-bottom: 0.15rem;
}

.speed-card-fee {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
}

.speed-card-time {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.withdraw-summary-box {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}

.withdraw-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.withdraw-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #64748b;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.withdraw-tips-list li:last-child { border-bottom: none; }

.withdraw-tips-list li i {
    color: #10b981;
    font-weight: 700;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.linked-account-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.linked-account-item:last-of-type {
    border-bottom: none;
}

.linked-account-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linked-account-icon.bank { background: rgba(99,102,241,0.1); color: #6366f1; }
.linked-account-icon.crypto { background: rgba(245,158,11,0.1); color: #f59e0b; }

.withdraw-info-card {
    height: auto;
}

@media (max-width: 767.98px) {
    .withdraw-form-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .withdraw-method-toggle {
        width: 100%;
        display: flex;
    }

    .withdraw-method-toggle .btn-toggle {
        flex: 1;
    }

    .withdraw-balance-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .wbs-divider {
        width: 100%;
        height: 1px;
    }

    .withdraw-amount-input {
        font-size: 1.35rem;
    }
}

.dashboard-table {
    font-size: 0.85rem;
}

.hologram-card-hero {
    min-height: auto;
}

.withdrawal-card {
    min-height: auto;
    height: auto;
}

.page-header > .d-flex:first-child > div:last-child {
    min-width: 0;
    flex: 1;
}

.stat-card > div:last-child {
    min-width: 0;
}

/* responsive overlays */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 8px 0 30px rgba(0,0,0,0.35);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
        padding: 0.75rem;
        width: 100%;
        max-width: 100vw;
    }
    .wallet-balance-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .wallet-balance-item {
        padding: 0.5rem;
    }
    .wallet-balance-item .wb-value {
        font-size: 0.8rem;
    }
    .glass-card:hover,
    .stat-card:hover,
    .hologram-card:hover {
        transform: none;
    }
    .notification-bell .dropdown-menu,
    .notif-dropdown-menu {
        width: min(340px, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem);
    }
}

/* ── Dashboard mobile layout ── */
@media (max-width: 767.98px) {
    /* Visa stepper → vertical on mobile */
    .status-tracker {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem 1rem 2.75rem;
        position: relative;
        overflow: visible;
    }

    .status-tracker::before {
        content: '';
        position: absolute;
        left: 1.85rem;
        top: 1.25rem;
        bottom: 1.25rem;
        width: 3px;
        background: #cbd5e1;
        border-radius: 3px;
        z-index: 0;
    }

    .tracker-node {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: none;
        width: 100%;
        padding: 0.4rem 0;
        text-align: left;
        position: relative;
        z-index: 1;
    }

    .tracker-node:not(:last-child)::after {
        display: none;
    }

    .tracker-dot {
        margin: 0;
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .tracker-label {
        font-size: 0.82rem;
        white-space: normal;
    }

    /* Wallet card balance */
    .hologram-card-hero,
    .hologram-card-compact.hologram-card {
        padding: 1rem;
    }

    .wallet-hero-top {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .wallet-hero-top-left,
    .wallet-hero-top-right,
    .wallet-hero-chip {
        grid-column: 1;
        grid-row: auto;
    }

    .wallet-hero-top-right {
        text-align: left !important;
    }

    .wallet-hero-chip {
        display: none;
    }

    .wallet-hero-balance {
        font-size: 1.5rem !important;
    }

    .wallet-hero-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-withdraw-cta-sm {
        width: 100% !important;
        text-align: center;
    }

    .wallet-balance-rows {
        grid-template-columns: 1fr;
    }

    .wallet-balance-row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 0.5rem 0.75rem;
    }

    /* Withdrawal toggle full width */
    .withdrawal-form-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .withdrawal-form-header .btn-toggle-group {
        width: 100%;
        display: flex;
    }

    .withdrawal-form-header .btn-toggle {
        flex: 1;
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    /* Visa progress card actions */
    .visa-progress-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .visa-progress-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    /* Stat cards stack icon on top for narrow 2-col */
    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem;
        gap: 0.5rem;
    }

    .stat-card-value {
        font-size: 1.1rem;
    }

    .stat-card-sub {
        font-size: 0.65rem;
        line-height: 1.35;
    }

    /* Tables: tighter padding */
    .table-responsive {
        margin: 0 -0.25rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }

    /* Chat window auto height on mobile */
    .chat-window {
        height: auto;
        min-height: 320px;
    }

    .chat-messages {
        min-height: 200px;
        max-height: 280px;
    }

    /* Section headings wrap */
    .section-heading {
        flex-wrap: wrap;
        font-size: 0.88rem;
    }

    /* Page header stacks on very narrow */
    .page-header > .d-flex:last-child {
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .main-wrapper {
        padding: 0.65rem;
    }

    .page-header,
    .dashboard-header {
        padding: 0.75rem;
        gap: 0.5rem !important;
    }

    .page-header h2,
    .dashboard-header h2 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .page-header .text-muted.small,
    .dashboard-header .text-muted.small {
        font-size: 0.7rem !important;
    }

    /* KPI stats full width on tiny screens */
    .dashboard-kpi-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stat-card {
        flex-direction: row;
        align-items: center;
    }

    .account-overview-card {
        padding: 0.85rem;
    }

    .account-overview-card .aoc-row {
        flex-wrap: wrap;
        gap: 0.15rem;
    }

    .account-overview-card .aoc-row .value {
        font-size: 0.72rem;
        word-break: break-all;
    }

    .hologram-card {
        padding: 1.25rem !important;
        min-height: auto !important;
    }

    .hologram-card h4 {
        font-size: 1rem;
    }

    .glass-card.p-4 {
        padding: 1rem !important;
    }

    .speed-option .small {
        font-size: 0.62rem !important;
    }

    /* Filing history action buttons stack */
    .dashboard-table .btn-sm {
        padding: 0.2rem 0.45rem;
        font-size: 0.7rem;
    }

    .form-text {
        flex-direction: column !important;
        gap: 0.15rem;
        align-items: flex-start !important;
    }

    .stat-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .sidebar-account-strip {
        gap: 0.35rem;
    }

    .sidebar-account-chip .chip-value {
        font-size: 0.75rem;
    }

    .sidebar-wallet-amount {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════
   GLOBAL MOBILE — all pages
   ═══════════════════════════════════════════════════ */

/* Auth pages (login / register) */
.glowing-bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #0b0f19;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatBlob 12s infinite ease-in-out alternate;
}

.blob-primary { background: #6366f1; top: -10%; left: -10%; }
.blob-success { background: #10b981; bottom: -10%; right: -10%; animation-delay: -6s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

.auth-page {
    background-color: #0b0f19;
    min-height: 100vh;
}

.auth-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.auth-card {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: white;
}

.auth-card .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

.auth-brand-logo {
    height: 44px;
    width: auto;
    max-width: min(220px, 85vw);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Program catalog cards */
.program-card {
    min-height: 260px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

#visa-section,
#grant-section,
#visa,
#grant {
    scroll-margin-top: 5rem;
}

@media (min-width: 992px) {
    .sticky-top-lg {
        position: sticky;
    }
}

/* Wizard / apply pages */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.page-toolbar h3 {
    font-size: 1.35rem;
}

/* Track page headers */
.track-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.filing-track-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filing-track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.track-card-header .btn {
    flex-shrink: 0;
}

/* Timeline (track-grant / track-visa) */
.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.8rem;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #cbd5e1;
    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    border-color: #10b981;
    background: #10b981;
}

.timeline-item.active .timeline-marker {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.timeline-item.warning .timeline-marker {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Prevent horizontal scroll from Bootstrap rows */
.main-wrapper .row {
    --bs-gutter-x: 1rem;
}

.main-wrapper > .row,
.main-wrapper .dashboard-section {
    max-width: 100%;
}

/* All notification dropdowns */
.notif-dropdown-menu {
    width: min(340px, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem);
    z-index: 1080 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem !important;
    margin-top: 0 !important;
}

.notif-dropdown-menu.glass-card:hover {
    transform: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16) !important;
}

.notif-dropdown-menu .notif-list-scroll {
    max-height: min(320px, 50vh);
    overflow-y: auto;
}

.notif-dropdown-menu .notif-item {
    list-style: none;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    transition: background 0.15s ease;
}

.notif-dropdown-menu .notif-item a {
    display: block;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.notif-dropdown-menu .notif-item a:hover {
    background: rgba(99, 102, 241, 0.06);
}

.notif-dropdown-menu .notif-item-unread {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

body.notif-open .vista-chat-fab {
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .blob {
        width: 300px;
        height: 300px;
    }

    .stepper-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 !important;
        margin-bottom: 1.5rem;
    }

    .stepper-container::before {
        display: none;
    }

    .stepper-progress {
        display: none;
    }

    .stepper-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        flex: none;
        text-align: left;
        padding: 0.5rem 0;
    }

    .stepper-bubble {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin: 0;
        flex-shrink: 0;
    }

    .stepper-title {
        font-size: 0.82rem;
    }

    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-toolbar .btn {
        width: 100%;
        text-align: center;
    }

    .page-toolbar h3 {
        font-size: 1.15rem;
    }

    .track-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .track-card-header .btn {
        width: 100%;
    }

    .program-card {
        min-height: auto;
    }

    .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }

    .withdraw-form-card-body {
        padding: 1rem;
    }

    .withdraw-form-card-header {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .timeline-container {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -24px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .timeline-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .timeline-item h6 {
        font-size: 0.88rem;
    }

    .auth-page .row[style*="min-height"] {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .auth-card {
        padding: 1.25rem !important;
    }

    .auth-card h3 {
        font-size: 1.25rem;
    }

    h4.fw-bold {
        font-size: 1.1rem;
    }

    .page-header .d-flex.align-items-center.gap-3:last-child,
    .page-header > .d-flex:last-child {
        gap: 0.5rem !important;
    }

    .avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }

    /* Apply wizard form buttons */
    .d-flex.justify-content-between .btn,
    .d-flex.justify-content-end .btn {
        min-height: 44px;
    }

    .table th,
    .table td {
        font-size: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .auth-page .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .demo-credentials .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wallet-withdraw-cta:hover {
        transform: none;
    }
}

/* ═══ Sidebar Visa / Grant collapsible sections ═══ */
.sidebar-nav-block {
    margin: 0.25rem 0.5rem 0.5rem;
    border-radius: 12px;
    padding-bottom: 0.15rem;
    overflow: hidden;
}

.sidebar-nav-visa {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.sidebar-nav-grant {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.sidebar-priority-nav .nav-link {
    font-weight: 600;
}

.sidebar-nav-visa .nav-link.active,
.sidebar-nav-visa .sidebar-collapse-menu .nav-link.active {
    border-left-color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
}

.sidebar-nav-grant .nav-link.active,
.sidebar-nav-grant .sidebar-collapse-menu .nav-link.active {
    border-left-color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.sidebar-collapse-toggle {
    width: calc(100% - 1rem);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0.7rem 1rem;
    margin: 0.35rem 0.5rem 0.15rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.sidebar-nav-visa .sidebar-collapse-toggle {
    color: #93c5fd;
}

.sidebar-nav-grant .sidebar-collapse-toggle {
    color: #6ee7b7;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle.expanded {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-visa .sidebar-collapse-toggle.active-section,
.sidebar-nav-visa .sidebar-collapse-toggle.expanded {
    border-left-color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    color: #fff;
}

.sidebar-nav-grant .sidebar-collapse-toggle.active-section,
.sidebar-nav-grant .sidebar-collapse-toggle.expanded {
    border-left-color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    color: #fff;
}

.sidebar-collapse-toggle i:first-child {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.sidebar-collapse-toggle.expanded .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-collapse-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    padding: 0;
    margin: 0 0.5rem 0.35rem;
}

.sidebar-collapse-menu.show {
    max-height: 160px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-collapse-menu .nav-link {
    padding: 0.55rem 0.85rem 0.55rem 2.15rem;
    margin: 0.1rem 0.25rem;
    font-size: 0.82rem;
    gap: 9px;
    border-left: 3px solid transparent;
}

.sidebar-collapse-menu .nav-link i {
    font-size: 0.95rem;
    width: 18px;
    opacity: 0.85;
}

/* ═══ Page polish ═══ */
.main-wrapper {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        #f6f8fb;
}

.page-header {
    background: rgba(255, 255, 255, 0.92);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
}

.section-block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    margin-bottom: 0.5rem;
}

.section-block-title .block-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-block-title.visa .block-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.section-block-title.grant .block-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
