:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark: #142a45;
    --accent: #2f80ed;
    --success: #1a9f5c;
    --danger: #d64545;
    --warning: #d99a1b;
    --gray-50: #f7f9fc;
    --gray-100: #eef1f6;
    --gray-200: #dde3ec;
    --gray-400: #9aa6b8;
    --gray-500: #6b7688;
    --gray-700: #3a4459;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(30, 58, 95, 0.08);
    --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.14);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
    --primary: #2c5282;
    --gray-50: #10151f;
    --gray-100: #171e2b;
    --gray-200: #232c3d;
    --gray-400: #5b6a85;
    --gray-500: #8794ac;
    --gray-700: #d4dbe8;
    --white: #1a2233;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--gray-700); }
.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15); }
.form-control.is-invalid { border-color: var(--danger); }
select.form-control { appearance: auto; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; color: var(--primary); }

/* Alerts */
.alert { position: relative; padding: 0.9rem 2.5rem 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.92rem; }
.alert-success { background: #e6f7ee; color: var(--success); border: 1px solid #b7e8cd; }
.alert-error { background: #fbe9e9; color: var(--danger); border: 1px solid #f3c2c2; }
.alert-info { background: #e8f1fd; color: var(--accent); border: 1px solid #bcd8fb; }
.alert-close { position: absolute; right: 0.75rem; top: 0.6rem; background: none; border: none; cursor: pointer; font-size: 1rem; color: inherit; opacity: 0.6; }
.alert-close:hover { opacity: 1; }

/* Site notice banner */
.site-notice {
    display: flex; align-items: center; gap: 0.75rem;
    background: #fdf3d9; color: var(--warning); border: 1px solid #f3e0a6;
    border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.9rem;
}
.site-notice i.fa-circle-info { font-size: 1.05rem; flex-shrink: 0; }
.site-notice span { flex: 1; }
.site-notice .alert-close { position: static; flex-shrink: 0; }

/* Welcome popup — premium announcement */
.welcome-popup-overlay {
    position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem;
    background: radial-gradient(120% 90% at 50% 0%, rgba(47, 107, 255, 0.28), rgba(8, 12, 30, 0.72) 60%);
    backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
    animation: welcome-popup-fade 0.35s ease both;
}
.welcome-popup-overlay.show { display: flex; }
.welcome-popup-overlay.is-closing { animation: wp-fade-out 0.3s ease forwards; }
.welcome-popup {
    --wp-ink: #0f1d33; --wp-sub: #5b6b82; --wp-card: #ffffff; --wp-line: rgba(15, 35, 70, 0.08);
    position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 2rem); display: flex; flex-direction: column;
    border-radius: 26px; overflow: hidden; text-align: center; background: var(--wp-card); color: var(--wp-ink);
    box-shadow: 0 30px 80px -20px rgba(8, 20, 60, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: wp-pop-in 0.6s cubic-bezier(0.18, 0.9, 0.22, 1.12) both;
}
[data-theme="dark"] .welcome-popup { --wp-ink: #e9eef8; --wp-sub: #9aa8c0; --wp-card: #172033; --wp-line: rgba(148, 163, 184, 0.16); }
.welcome-popup-overlay.is-closing .welcome-popup { animation: wp-pop-out 0.28s ease forwards; }

.wp-hero {
    position: relative; height: 132px; flex: none; overflow: hidden; isolation: isolate;
    background: radial-gradient(130% 160% at 0% 0%, #3b7bff 0%, #1d3fb8 45%, #13265f 100%);
}
.wp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.2;
    background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%);
}
.wp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; background: var(--wp-card); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.wp-orb { position: absolute; border-radius: 50%; filter: blur(6px); z-index: -1; animation: wp-float 8s ease-in-out infinite; }
.wp-orb--a { width: 170px; height: 170px; right: -40px; top: -70px; background: radial-gradient(circle, rgba(16, 181, 214, 0.8), transparent 68%); }
.wp-orb--b { width: 150px; height: 150px; left: -40px; top: -20px; background: radial-gradient(circle, rgba(122, 92, 255, 0.75), transparent 68%); animation-delay: -3s; }
.wp-spark { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.7); opacity: 0; animation: wp-twinkle 2.6s ease-in-out var(--d) infinite; }
.wp-icon {
    position: absolute; left: 50%; bottom: 4px; z-index: 2; width: 76px; height: 76px; margin-left: -38px; border-radius: 24px;
    display: grid; place-items: center; font-size: 1.85rem; color: #fff;
    background: linear-gradient(135deg, #2f6bff 0%, #6b4dff 60%, #10b5d6 130%);
    box-shadow: 0 16px 34px -10px rgba(47, 107, 255, 0.85), inset 0 1px 0 rgba(255,255,255,.35); border: 4px solid var(--wp-card);
    animation: wp-icon-in 0.7s 0.15s cubic-bezier(0.18, 0.9, 0.22, 1.3) both;
}
.wp-icon::before, .wp-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 26px; border: 2px solid rgba(47, 107, 255, 0.55); animation: wp-ring 2.4s ease-out infinite; }
.wp-icon::after { animation-delay: 1.2s; }
.wp-icon--logo { background: #fff; }
.wp-icon--logo img { width: 46px; height: 46px; object-fit: contain; display: block; }
.wp-icon i { animation: wp-ring-bell 2.8s 0.9s ease-in-out infinite; transform-origin: 50% 20%; }

.welcome-popup-close {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
    display: grid; place-items: center; cursor: pointer; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px); transition: background 0.2s, transform 0.25s;
}
.welcome-popup-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }
.welcome-popup-close:focus-visible, .wp-btn:focus-visible { outline: 3px solid rgba(47, 107, 255, 0.55); outline-offset: 2px; }

.wp-body { padding: 0.9rem 1.75rem 1.4rem; overflow-y: auto; min-height: 0; }
.wp-body > * { animation: wp-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.wp-body > :nth-child(1) { animation-delay: 0.2s; } .wp-body > :nth-child(2) { animation-delay: 0.27s; }
.wp-body > :nth-child(3) { animation-delay: 0.34s; } .wp-body > :nth-child(4) { animation-delay: 0.41s; }
.wp-body > :nth-child(5) { animation-delay: 0.48s; } .wp-body > :nth-child(6) { animation-delay: 0.55s; }
.wp-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.75rem; border-radius: 999px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #2f6bff; background: rgba(47, 107, 255, 0.1);
}
[data-theme="dark"] .wp-eyebrow { color: #8fb0ff; background: rgba(47, 107, 255, 0.18); }
.wp-eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: wp-pulse 1.8s infinite; }
.wp-greet { margin-top: 0.85rem; font-size: 0.95rem; font-weight: 600; color: var(--wp-sub); }
.wp-wave { display: inline-block; transform-origin: 70% 70%; animation: wp-wave 2.2s 1s ease-in-out infinite; }
.welcome-popup h3 {
    margin: 0.3rem 0 0.7rem; font-size: clamp(1.25rem, 4.5vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
    background: linear-gradient(120deg, var(--wp-ink) 0%, var(--wp-ink) 40%, #2f6bff 50%, var(--wp-ink) 60%, var(--wp-ink) 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: wp-up 0.55s 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both, wp-title-shine 3.5s 1.2s ease-in-out infinite;
}
.wp-message {
    color: var(--wp-sub); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1.35rem; overflow-wrap: anywhere;
    padding: 0.9rem 1rem; border-radius: 16px; background: rgba(47, 107, 255, 0.05); border: 1px solid var(--wp-line); text-align: left;
}
.wp-actions { display: grid; gap: 0.55rem; }
.wp-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 50px; border-radius: 15px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.98rem; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.wp-btn:active { transform: scale(0.98); }
.wp-btn--primary { color: #fff; background: linear-gradient(135deg, #2f6bff 0%, #5a4cff 55%, #10b5d6 130%); box-shadow: 0 12px 26px -10px rgba(47, 107, 255, 0.75); }
.wp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(47, 107, 255, 0.85); }
.wp-btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: wp-shine 3s 1s ease-in-out infinite; }
.wp-btn--ghost { height: 42px; font-size: 0.86rem; font-weight: 600; color: var(--wp-sub); background: transparent; }
.wp-btn--ghost:hover { color: var(--wp-ink); background: rgba(47, 107, 255, 0.07); }
.wp-foot { margin-top: 0.9rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp-sub); opacity: 0.75; }
.wp-foot i { margin-right: 0.3rem; }
body.wp-lock { overflow: hidden; }

@media (max-width: 520px) {
    .welcome-popup-overlay { align-items: flex-end; padding: 0; }
    .welcome-popup { max-width: none; border-radius: 26px 26px 0 0; max-height: 92vh; animation-name: wp-sheet-in; animation-duration: 0.5s; }
    .welcome-popup-overlay.is-closing .welcome-popup { animation: wp-sheet-out 0.28s ease forwards; }
    .wp-body { padding: 0.9rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
}

@keyframes welcome-popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-popup-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes wp-pop-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes wp-fade-out { to { opacity: 0; } }
@keyframes wp-pop-out { to { opacity: 0; transform: translateY(14px) scale(0.94); } }
@keyframes wp-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wp-sheet-out { to { transform: translateY(100%); } }
@keyframes wp-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wp-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, 10px) scale(1.1); } }
@keyframes wp-twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes wp-icon-in { from { opacity: 0; transform: translateY(20px) scale(0.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes wp-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes wp-ring-bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@keyframes wp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.55); } 60% { box-shadow: 0 0 0 6px rgba(47, 107, 255, 0); } }
@keyframes wp-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
@keyframes wp-title-shine { 0% { background-position: 100% 0; } 50%, 100% { background-position: 0 0; } }
@keyframes wp-shine { from { left: -50%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
    .welcome-popup-overlay, .welcome-popup, .welcome-popup *, .welcome-popup *::before, .welcome-popup *::after { animation: none !important; transition: none !important; }
    .welcome-popup h3 { -webkit-text-fill-color: currentColor; background: none; }
}

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 2rem 1rem; }
.auth-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-weight: 800; font-size: 1.4rem; color: var(--primary); }
.auth-logo i { color: var(--accent); margin-right: 0.4rem; }
.auth-footer { text-align: center; margin-top: 1.2rem; font-size: 0.9rem; color: var(--gray-500); }

/* Dashboard shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: var(--primary-dark);
    color: var(--white);
    flex-shrink: 0;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
    transition: transform 0.2s ease;
    z-index: 100;
}
.sidebar-brand { padding: 1.4rem 1.25rem; font-weight: 800; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand i { color: var(--accent); margin-right: 0.5rem; }
.sidebar-nav { list-style: none; margin: 0; padding: 0.75rem 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.25rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; font-weight: 500;
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-section { padding: 1rem 1.25rem 0.4rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }

/* Collapsible sidebar groups (e.g. Verification > WAEC Services) */
.sidebar-group-toggle {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    padding: 0.75rem 1.25rem; background: none; border: none; text-align: left;
    color: rgba(255,255,255,0.75); font-size: 0.92rem; font-weight: 500; cursor: pointer; font-family: inherit;
}
.sidebar-group-toggle:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-group-toggle i:first-child { width: 18px; text-align: center; }
.sidebar-caret { margin-left: auto; font-size: 0.7rem; transition: transform 0.2s ease; }
.sidebar-group.open > .sidebar-group-toggle .sidebar-caret { transform: rotate(180deg); }
.sidebar-submenu { list-style: none; margin: 0; padding: 0; display: none; background: rgba(0,0,0,0.12); }
.sidebar-submenu.show { display: block; }
.sidebar-submenu a, .sidebar-submenu .sidebar-group-toggle { padding-left: 2.75rem; }
.sidebar-submenu-nested a, .sidebar-submenu-nested .sidebar-group-toggle { padding-left: 4rem; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90; }
.sidebar-overlay.show { display: block; }

.main-content { flex: 1; margin-left: 250px; min-width: 0; }
.topbar {
    background: var(--white); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.5rem; position: sticky; top: 0; z-index: 50;
}
.topbar-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-700); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.wallet-pill { background: var(--gray-100); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.icon-btn { background: none; border: none; font-size: 1.1rem; color: var(--gray-500); cursor: pointer; position: relative; }
.badge-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }

.page-body { padding: 1.5rem; max-width: 1100px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 220px; padding: 0.5rem; z-index: 60;
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.9rem; color: var(--gray-700); }
.dropdown-item:hover { background: var(--gray-100); }

/* Modern dashboard shell enhancements */
body {
    background:
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(17, 115, 189, 0.13), transparent 20%),
        var(--gray-50);
}

.topbar {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebar {
    background: linear-gradient(180deg, rgba(20,42,69,1) 0%, rgba(18,32,52,1) 100%);
    box-shadow: 18px 0 40px rgba(16, 24, 40, 0.18);
}

.sidebar-nav a,
.sidebar-group-toggle {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, margin 0.18s ease;
}

.sidebar-nav a:hover,
.sidebar-group-toggle:hover {
    transform: translateX(4px);
}

.dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(30,58,95,1) 0%, rgba(44,82,130,1) 55%, rgba(86,134,214,1) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(30,58,95,0.2);
    overflow: hidden;
    animation: hero-rise 0.7s ease;
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255,255,255,0.08);
}

.dashboard-hero::before {
    width: 220px; height: 220px; right: -40px; top: -80px;
}

.dashboard-hero::after {
    width: 180px; height: 180px; left: 55%; bottom: -88px;
}

.dashboard-hero-copy,
.dashboard-hero-actions {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    margin: 0.7rem 0 0.4rem;
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.04em;
}

.dashboard-hero h2 span { display: inline-block; animation: hand-wave 1.2s ease-in-out infinite alternate; }

.dashboard-hero p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    max-width: 520px;
    font-size: 0.96rem;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mini-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    min-width: 135px;
}

.mini-summary span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.mini-summary strong {
    font-size: 1.05rem;
    color: var(--white);
}

.dash-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; }
.dash-stat-card {
    position: relative;
    display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,248,252,0.98));
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 20px; box-shadow: var(--shadow);
    padding: 1.25rem 1.3rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}
.dash-stat-card::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--accent), var(--primary));
}
.dash-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dash-stat-card-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--white);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 10px 22px rgba(47,128,237,0.28);
}
.dash-stat-card:nth-child(2) .dash-stat-card-icon { background: linear-gradient(135deg, #34c98f, #1a9f5c); box-shadow: 0 10px 22px rgba(26,159,92,0.25); }
.dash-stat-card:nth-child(3) .dash-stat-card-icon { background: linear-gradient(135deg, #7c8ef0, #4c5fd6); box-shadow: 0 10px 22px rgba(76,95,214,0.25); }
.dash-stat-card:nth-child(4) .dash-stat-card-icon { background: linear-gradient(135deg, #f0b93c, #d99a1b); box-shadow: 0 10px 22px rgba(217,154,27,0.25); }
.dash-stat-card-body { min-width: 0; }
.dash-stat-card .label { font-size: 0.78rem; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.dash-stat-card .value { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; color: var(--primary); margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 1.4rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-title {
    font-size: 1.08rem; font-weight: 800; margin: 0 0 1rem; color: var(--primary);
}

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.service-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 18px; box-shadow: var(--shadow);
    padding: 1.4rem 1rem; text-align: center; color: var(--gray-700);
    font-size: 0.86rem; font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}
.service-tile::before {
    content: "";
    position: absolute; inset: 0; background: linear-gradient(135deg, rgba(47,128,237,0.08), rgba(255,255,255,0));
    opacity: 0; transition: opacity 0.22s ease;
}
.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(30, 58, 95, 0.12);
    border-color: rgba(47,128,237,0.28);
}
.service-tile:hover::before { opacity: 1; }
.service-tile-icon {
    position: relative; z-index: 1;
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white); font-size: 1.25rem;
    box-shadow: 0 12px 22px rgba(47,128,237,0.25);
}
.service-tile:nth-child(2n) .service-tile-icon { background: linear-gradient(135deg, #34c98f, #1a9f5c); }
.service-tile:nth-child(3n) .service-tile-icon { background: linear-gradient(135deg, #7c8ef0, #4c5fd6); }
.service-tile:nth-child(4n) .service-tile-icon { background: linear-gradient(135deg, #f0b93c, #d99a1b); }

.alert,
.site-notice {
    animation: slide-in 0.25s ease;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes hand-wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(14deg) translateY(-2px); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .topbar-toggle {
        display: inline-flex;
    }
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-hero-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.stat-card .label { font-size: 0.82rem; color: var(--gray-500); font-weight: 600; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-top: 0.3rem; }

/* ------------------------------------------------------------------ */
/* User dashboard home (main dashboard content only — sidebar/topbar  */
/* styling above is untouched)                                        */
/* ------------------------------------------------------------------ */

/* Modern stat cards */
.dash-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; }
.dash-stat-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--white); border-radius: 18px; box-shadow: var(--shadow);
    padding: 1.3rem 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dash-stat-card-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--white);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}
.dash-stat-card:nth-child(2) .dash-stat-card-icon { background: linear-gradient(135deg, #34c98f, #1a9f5c); }
.dash-stat-card:nth-child(3) .dash-stat-card-icon { background: linear-gradient(135deg, #7c8ef0, #4c5fd6); }
.dash-stat-card:nth-child(4) .dash-stat-card-icon { background: linear-gradient(135deg, #f0b93c, #d99a1b); }
.dash-stat-card-body { min-width: 0; }
.dash-stat-card .label { font-size: 0.78rem; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.dash-stat-card .value { font-size: 1.35rem; font-weight: 800; color: var(--primary); margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Quick services — redesigned tiles */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.service-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    background: var(--white); border-radius: 18px; box-shadow: var(--shadow);
    padding: 1.5rem 1rem; text-align: center; color: var(--gray-700);
    font-size: 0.86rem; font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-tile:active { transform: translateY(-1px); }
.service-tile-icon {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white); font-size: 1.3rem;
}
.service-tile .ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    background: rgba(47, 128, 237, 0.28); pointer-events: none;
    animation: service-tile-ripple 0.6s ease-out;
}
@keyframes service-tile-ripple {
    to { transform: scale(3.2); opacity: 0; }
}

/* Responsive: exactly 2 per row on phones, 3 per row on tablets; desktop keeps auto-fill */
@media (max-width: 600px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .service-tile { padding: 1.2rem 0.6rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Floating WhatsApp customer-care button */
.whatsapp-float {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: var(--white); font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    animation: whatsapp-pulse 2.2s infinite;
    transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-float:hover { background: #1ebe5b; transform: scale(1.06); color: var(--white); }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 18px rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 6px 18px rgba(37, 211, 102, 0.45); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(37, 211, 102, 0.45); }
}
@media (max-width: 600px) {
    .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* Tables */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th { text-align: left; padding: 0.7rem 0.9rem; background: var(--gray-100); color: var(--gray-500); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; }
table.data-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--gray-100); }

.badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-pending { background: #fdf3d9; color: var(--warning); }
.badge-success, .badge-completed, .badge-approved { background: #e6f7ee; color: var(--success); }
.badge-failed, .badge-rejected { background: #fbe9e9; color: var(--danger); }
.badge-in_progress, .badge-processing { background: #e8f1fd; color: var(--accent); }

/* Fund Wallet — virtual account card */
.fund-wallet-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.va-card { background: linear-gradient(160deg, var(--white) 0%, var(--gray-50) 100%); border: 1px solid var(--gray-100); }
.va-card-header { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.25rem; }
.va-card-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.va-detail-list { display: flex; flex-direction: column; gap: 0.9rem; }
.va-detail-row {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.85rem 1rem; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius);
}
.va-detail-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); }
.va-detail-value { font-size: 1rem; font-weight: 700; color: var(--primary); word-break: break-word; }
.va-account-digits { font-size: 1.3rem; letter-spacing: 0.03em; }
.va-account-number { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.va-copy-btn { flex-shrink: 0; }
.va-copy-btn.copied { background: var(--success); color: var(--white); border-color: var(--success); }

/* Quick amounts */
.quick-amounts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.quick-amount-btn { padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--gray-700); }
.quick-amount-btn.active, .quick-amount-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Loader */
.page-loader { position: fixed; inset: 0; background: rgba(255,255,255,0.85); display: none; align-items: center; justify-content: center; z-index: 999; }
.page-loader.show { display: flex; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-card { border: 1px dashed var(--gray-200); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; background: var(--gray-50); }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar-toggle { display: inline-block; }
    .fund-wallet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .va-account-number { flex-direction: column; align-items: stretch; }
    .va-copy-btn { width: 100%; justify-content: center; }
    .va-account-digits { font-size: 1.1rem; }
}

/* Modification requests (NIN Modifications / BVN Modifications / IPE Clearance) */
.mod-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gray-100); padding-bottom: 1rem; }
.mod-tab-btn { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--gray-700); }
.mod-tab-btn.active, .mod-tab-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.file-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.3rem; }
.tracking-pill { display: inline-block; background: var(--gray-100); color: var(--primary); font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; margin-top: 0.3rem; }
.mod-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }

@media (max-width: 900px) {
    .mod-detail-grid { grid-template-columns: 1fr; }
}

/* Lookup wizard (NIN Verification: search type -> slip type -> fields) */
.lookup-wizard .form-label { display: block; margin-bottom: 0.75rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.option-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--white); border: 2px solid var(--gray-100); border-radius: 18px; box-shadow: var(--shadow);
    padding: 1.3rem 0.9rem; text-align: center; color: var(--gray-700); font-size: 0.86rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.option-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.option-card.selected { border-color: var(--accent); background: rgba(47, 128, 237, 0.06); }
.option-card.disabled { opacity: 0.45; cursor: not-allowed; }
.option-card.disabled:hover { transform: none; box-shadow: var(--shadow); }
.option-card-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white); font-size: 1.2rem;
}
.wizard-note { font-size: 0.82rem; color: var(--gray-500); margin: 0.75rem 0 0; }
.wizard-note-error { color: var(--danger); }
.wizard-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
    background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius);
    padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-weight: 600; font-size: 0.9rem; color: var(--primary);
}

/* Referenced by several existing service forms (CAC registration, BVN user
   creation, JAMB/WAEC) that had no matching rule yet — additive fix, does not
   change any layout that was already working. */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.badge-primary { background: #e8f1fd; color: var(--primary); }

/* NIN Personalization / VNIN to NIBSS / Central Risk Management */
.badge-submitted_to_nibss { background: #e8f1fd; color: var(--accent); }
.badge-awaiting_nibss_reply { background: #fdf3d9; color: var(--warning); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state i { font-size: 2.2rem; color: var(--gray-200); margin-bottom: 0.75rem; display: block; }
.empty-state p { margin: 0; font-size: 0.95rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gray-100); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.1rem; }
.timeline li::before {
    content: ''; position: absolute; left: -6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--gray-200);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-meta { display: block; font-size: 0.78rem; color: var(--gray-500); margin-top: 0.3rem; }
.timeline-remarks { font-size: 0.85rem; margin-top: 0.3rem; white-space: pre-wrap; }

@media print {
    .sidebar, .topbar, .no-print, .whatsapp-float, .page-loader { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-body { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ------------------------------------------------------------------ */
/* Dashboard home v2 (.dx) — animated cards, scoped to the home view   */
/* ------------------------------------------------------------------ */
.dx {
    --dx-ink: #0f1f35;
    --dx-muted: var(--gray-500);
    --dx-surface: var(--white);
    --dx-line: rgba(148, 163, 184, 0.18);
    --dx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 1180px;
}
[data-theme="dark"] .dx { --dx-ink: #e8edf6; --dx-line: rgba(148, 163, 184, 0.14); }

/* Tones shared by stat cards, service tiles */
.dx-tone-blue   { --c1: #4f9cf7; --c2: #2563eb; --soft: rgba(37, 99, 235, 0.12); }
.dx-tone-green  { --c1: #34d399; --c2: #059669; --soft: rgba(5, 150, 105, 0.12); }
.dx-tone-violet { --c1: #a78bfa; --c2: #6d28d9; --soft: rgba(109, 40, 217, 0.12); }
.dx-tone-amber  { --c1: #fbbf24; --c2: #d97706; --soft: rgba(217, 119, 6, 0.13); }
.dx-tone-teal   { --c1: #2dd4bf; --c2: #0f766e; --soft: rgba(15, 118, 110, 0.12); }
.dx-tone-rose   { --c1: #fb7185; --c2: #e11d48; --soft: rgba(225, 29, 72, 0.11); }

/* Entrance animation: every [data-reveal] rises in, staggered by --d.
   JS adds .dx-wait to off-screen items so they animate when scrolled to. */
.dx [data-reveal] {
    animation: dx-rise 0.7s var(--dx-ease) backwards;
    animation-delay: calc(var(--d, 0) * 70ms + 80ms);
}
.dx .dx-stats [data-reveal] { animation-delay: calc(var(--d, 0) * 90ms + 200ms); }
.dx .dx-services [data-reveal] { animation-name: dx-pop; animation-delay: calc(var(--d, 0) * 35ms + 120ms); }
.dx .dx-list [data-reveal] { animation-name: dx-slide; animation-delay: calc(var(--d, 0) * 80ms + 150ms); }
.dx [data-reveal].dx-wait { animation-play-state: paused; }

@keyframes dx-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dx-pop { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes dx-slide { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes dx-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -14px); } }
@keyframes dx-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes dx-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
@keyframes dx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes dx-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 50% { transform: rotate(0); } }
@keyframes dx-fill { from { width: 0; } }

/* Hero */
.dx-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 1.5rem; align-items: center;
    padding: 2rem; margin-bottom: 1.5rem; border-radius: 28px; color: #fff;
    background: linear-gradient(120deg, #142a45, #1e3a5f, #2563eb, #4f46e5, #1e3a5f);
    background-size: 300% 300%;
    animation: dx-rise 0.7s var(--dx-ease) backwards, dx-gradient 16s ease infinite !important;
    box-shadow: 0 24px 50px -18px rgba(30, 58, 95, 0.55);
}
.dx-hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; background: rgba(255, 255, 255, 0.08); animation: dx-float 9s ease-in-out infinite; }
.dx-hero-orb-1 { width: 260px; height: 260px; top: -110px; right: 22%; }
.dx-hero-orb-2 { width: 160px; height: 160px; bottom: -70px; left: 38%; animation-duration: 12s; animation-delay: -3s; }
.dx-hero-orb-3 { width: 90px; height: 90px; top: 30%; left: -30px; animation-duration: 7s; background: rgba(125, 211, 252, 0.15); }
.dx-hero-copy, .dx-wallet { position: relative; z-index: 1; }
.dx-hero-date {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16);
}
.dx-hero h2 { margin: 0.9rem 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.03em; color: #fff; }
.dx-wave { display: inline-block; transform-origin: 70% 70%; animation: dx-wave 2.4s ease-in-out infinite; }
.dx-hero p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; max-width: 460px; }
.dx-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.dx-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.2rem; border-radius: 14px; font-weight: 700; font-size: 0.9rem;
    transition: transform 0.25s var(--dx-ease), box-shadow 0.25s ease, background 0.2s ease;
}
.dx-btn:hover { transform: translateY(-2px); }
.dx-btn:active { transform: translateY(0) scale(0.97); }
.dx-btn-light { background: #fff; color: #1e3a5f; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); }
.dx-btn-light:hover { box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5); }
.dx-btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.dx-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Glass wallet card */
.dx-wallet {
    padding: 1.3rem 1.4rem; border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
    --rx: 0deg; --ry: 0deg;
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.35s var(--dx-ease);
    animation: dx-rise 0.8s var(--dx-ease) 0.25s backwards;
}
.dx-wallet-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.dx-wallet-top i.fa-wallet { margin-right: 0.35rem; }
.dx-wallet-eye {
    width: 32px; height: 32px; border-radius: 10px; border: none; cursor: pointer;
    background: rgba(255, 255, 255, 0.16); color: #fff; transition: background 0.2s ease, transform 0.2s ease;
}
.dx-wallet-eye:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.08); }
.dx-wallet-amount { margin: 0.9rem 0 0.9rem; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-wallet-amount.is-hidden span { filter: blur(9px); user-select: none; }
.dx-wallet-amount span { transition: filter 0.3s ease; }
.dx-wallet-account {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin-bottom: 1rem; padding: 0.75rem 0.85rem; border-radius: 14px; color: #fff;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
}
.dx-wallet-account > div { display: flex; flex-direction: column; min-width: 0; }
.dx-wallet-bank { font-size: 0.74rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-wallet-bank i { margin-right: 0.3rem; }
.dx-wallet-account strong { font-size: 1.15rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.dx-wallet-copy {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.75rem; border-radius: 10px; border: none; cursor: pointer;
    font: inherit; font-size: 0.78rem; font-weight: 700; color: #1e3a5f; background: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}
.dx-wallet-copy:hover { transform: scale(1.05); }
.dx-wallet-copy.copied { background: #34d399; color: #fff; }
.dx-wallet-account-empty { font-size: 0.86rem; font-weight: 700; transition: background 0.2s ease; }
.dx-wallet-account-empty:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.dx-wallet-account-empty i.fa-arrow-right { transition: transform 0.25s var(--dx-ease); }
.dx-wallet-account-empty:hover i.fa-arrow-right { transform: translateX(4px); }
.dx-wallet-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em; }

/* Stat cards */
.dx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.5rem; }
.dx-stat {
    --rx: 0deg; --ry: 0deg;
    position: relative; overflow: hidden; display: block;
    padding: 1.3rem; border-radius: 22px; color: var(--dx-ink);
    background: var(--dx-surface); border: 1px solid var(--dx-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(30, 58, 95, 0.18);
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.35s var(--dx-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
.dx-stat::before {
    content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%;
    background: radial-gradient(circle, var(--soft), transparent 70%);
    transition: transform 0.5s var(--dx-ease);
}
.dx-stat::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 0.8s var(--dx-ease);
}
[data-theme="dark"] .dx-stat::after, [data-theme="dark"] .dx-service::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 66%); }
.dx-stat:hover {
    border-color: color-mix(in srgb, var(--c2) 35%, transparent);
    box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--c2) 55%, transparent);
    color: var(--dx-ink);
}
.dx-stat:hover::before { transform: scale(1.8); }
.dx-stat:hover::after { transform: translateX(120%); }
.dx-stat-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dx-stat-icon {
    width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
    color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 10px 20px -8px var(--c2);
    transition: transform 0.4s var(--dx-ease);
}
.dx-stat:hover .dx-stat-icon { transform: rotate(-8deg) scale(1.08); }
.dx-stat-arrow { color: var(--dx-muted); font-size: 0.85rem; opacity: 0; transform: translateX(-8px); transition: all 0.3s var(--dx-ease); }
.dx-stat:hover .dx-stat-arrow { opacity: 1; transform: none; color: var(--c2); }
.dx-stat-label { position: relative; font-size: 0.76rem; font-weight: 700; color: var(--dx-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dx-stat-value { position: relative; margin-top: 0.3rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-stat-hint { position: relative; margin-top: 0.35rem; font-size: 0.8rem; color: var(--dx-muted); }
.dx-progress { position: relative; height: 6px; margin-top: 0.7rem; border-radius: 99px; background: var(--soft); overflow: hidden; }
.dx-progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); animation: dx-fill 1.4s var(--dx-ease) 0.6s both; }

/* Panels */
.dx-panel {
    padding: 1.4rem; margin-bottom: 1.5rem; border-radius: 24px;
    background: var(--dx-surface); border: 1px solid var(--dx-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -18px rgba(30, 58, 95, 0.2);
}
.dx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.dx-panel-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--dx-ink); letter-spacing: -0.01em; }
.dx-panel-head p { margin: 0.15rem 0 0; font-size: 0.84rem; color: var(--dx-muted); }
.dx-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.86rem; }
.dx-link i { transition: transform 0.25s var(--dx-ease); }
.dx-link:hover i { transform: translateX(4px); }
.dx-bell { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gray-100); color: var(--accent); }
.dx-bell i { animation: dx-ring 3s ease-in-out infinite; transform-origin: 50% 0; }

.dx-search { position: relative; flex: 0 1 280px; }
.dx-search i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--dx-muted); font-size: 0.85rem; pointer-events: none; }
.dx-search input {
    width: 100%; padding: 0.65rem 0.9rem 0.65rem 2.4rem; border-radius: 14px; font: inherit; font-size: 0.9rem;
    border: 1px solid var(--dx-line); background: var(--gray-50); color: var(--dx-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.dx-search input:focus { outline: none; border-color: var(--accent); background: var(--dx-surface); box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.15); }

/* Service tiles */
.dx-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.9rem; }
.dx-service {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    min-height: 124px; padding: 1.1rem 0.75rem; border-radius: 18px; text-align: center;
    background: var(--dx-surface); border: 1px solid var(--dx-line); color: var(--dx-ink);
    font-size: 0.84rem; font-weight: 700; line-height: 1.3;
    transition: transform 0.35s var(--dx-ease), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.dx-service::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 0.8s var(--dx-ease);
}
.dx-service:hover {
    transform: translateY(-6px); color: var(--dx-ink);
    background: linear-gradient(180deg, var(--dx-surface), var(--soft));
    border-color: color-mix(in srgb, var(--c2) 35%, transparent);
    box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--c2) 60%, transparent);
}
.dx-service:hover::after { transform: translateX(120%); }
.dx-service:active { transform: translateY(-2px) scale(0.97); }
.dx-service:focus-visible, .dx-stat:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dx-service-icon {
    width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
    color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 10px 18px -8px var(--c2);
    transition: transform 0.45s var(--dx-ease), border-radius 0.45s var(--dx-ease);
}
.dx-service:hover .dx-service-icon { transform: translateY(-2px) rotate(-6deg) scale(1.1); border-radius: 50%; animation: dx-bob 1.2s ease-in-out 0.45s infinite; }
.dx-service .ripple {
    position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
    background: var(--soft); animation: service-tile-ripple 0.6s ease-out;
}
.dx-service.is-filtered { display: none; }

/* Lists */
.dx-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.dx-columns .dx-panel { margin-bottom: 0; }
.dx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.dx-list-item {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.75rem; margin: 0 -0.75rem; border-radius: 14px;
    transition: background 0.2s ease, transform 0.3s var(--dx-ease);
}
.dx-list-item:hover { background: var(--gray-50); transform: translateX(4px); }
.dx-list-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 0.9rem; }
.dx-list-icon.is-credit { background: rgba(5, 150, 105, 0.12); color: #059669; }
.dx-list-icon.is-debit { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.dx-list-icon.is-info { background: rgba(47, 128, 237, 0.12); color: var(--accent); }
.dx-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dx-list-body strong { font-size: 0.9rem; color: var(--dx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-list-body span { font-size: 0.8rem; color: var(--dx-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx-list-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex-shrink: 0; }
.dx-list-meta strong { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.dx-list-meta strong.is-credit { color: #059669; }
.dx-list-meta strong.is-debit { color: var(--dx-ink); }
.dx-list-meta small { font-size: 0.75rem; color: var(--dx-muted); white-space: nowrap; }
.dx-list-meta .badge { text-transform: capitalize; font-size: 0.7rem; }

.dx-empty { text-align: center; padding: 2rem 1rem; color: var(--dx-muted); }
.dx-empty i { display: block; font-size: 1.8rem; margin-bottom: 0.6rem; opacity: 0.4; animation: dx-bob 2.5s ease-in-out infinite; }
.dx-empty p { margin: 0; font-size: 0.9rem; }

@media (max-width: 900px) {
    .dx-hero { grid-template-columns: 1fr; padding: 1.5rem; }
    .dx-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .dx-hero { border-radius: 22px; padding: 1.25rem; }
    .dx-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .dx-stats .dx-stat:nth-child(3) { grid-column: span 2; }
    .dx-stat { padding: 1rem; border-radius: 18px; }
    .dx-stat-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }
    .dx-stat-head { margin-bottom: 0.7rem; }
    .dx-panel { padding: 1.1rem; border-radius: 20px; }
    .dx-search { flex-basis: 100%; }
    .dx-services { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .dx-service { min-height: 108px; padding: 0.9rem 0.4rem; font-size: 0.76rem; border-radius: 16px; }
    .dx-service-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 13px; }
}
@media (max-width: 380px) {
    .dx-services { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .dx *, .dx *::before, .dx *::after { animation: none !important; transition: none !important; }
}

/* Dashboard home v2 — colour pass */
.dx-hero {
    background: linear-gradient(120deg, #1e1b4b, #312e81, #2563eb, #7c3aed, #0ea5e9, #312e81);
    background-size: 320% 320%;
    box-shadow: 0 26px 55px -20px rgba(79, 70, 229, 0.6);
}
.dx-hero-orb-3 { background: rgba(244, 114, 182, 0.22); }
.dx-btn-light { color: #4338ca; }

/* Stat cards: solid gradient fills, white text */
.dx-stat {
    color: #fff; border: none;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 14px 30px -14px var(--c2);
}
.dx-stat:hover { color: #fff; box-shadow: 0 26px 44px -16px var(--c2); }
.dx-stat::before { width: 180px; height: 180px; right: -60px; top: -70px; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%); }
.dx-stat::after, [data-theme="dark"] .dx-stat::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 48%, transparent 66%); }
.dx-stat-icon { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.dx-stat-label, .dx-stat-hint { color: rgba(255, 255, 255, 0.85); }
.dx-stat-arrow, .dx-stat:hover .dx-stat-arrow { color: #fff; }
.dx-progress { background: rgba(255, 255, 255, 0.25); }
.dx-progress span { background: #fff; }

/* Service tiles: tinted at rest, fill with full colour on hover */
.dx-service { background: var(--soft); border-color: transparent; }
.dx-service-label { position: relative; transition: color 0.3s ease; }
.dx-service:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border-color: transparent; }
.dx-service:hover .dx-service-icon { background: #fff; color: var(--c2); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.35); }
.dx-service::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%); }
.dx-service .ripple { background: rgba(255, 255, 255, 0.4); }

/* Panels: coloured accent bar beside each heading */
.dx-panel { position: relative; overflow: hidden; }
.dx-panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #e11d48, #f59e0b, #059669);
    background-size: 200% 100%; animation: dx-gradient 8s linear infinite;
}
.dx-panel-head h3 { display: flex; align-items: center; gap: 0.6rem; }
.dx-panel-head h3::before { content: ""; width: 6px; height: 1.2em; border-radius: 4px; background: linear-gradient(180deg, #7c3aed, #2563eb); }
.dx-bell { background: linear-gradient(135deg, #fbbf24, #f97316); color: #fff; box-shadow: 0 8px 18px -8px #f97316; }
.dx-link { color: #6d28d9; }
[data-theme="dark"] .dx-link { color: #a78bfa; }
.dx-list-icon.is-info { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.dx-search input:focus { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }

.dx-columns-single { grid-template-columns: 1fr; }

/* ------------------------------------------------------------------ */
/* Sidebar — colour pass (matches dashboard home palette)              */
/* ------------------------------------------------------------------ */
.sidebar {
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.35), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.25), transparent 40%),
        linear-gradient(180deg, #1e1b4b 0%, #23205e 50%, #172554 100%);
    box-shadow: 12px 0 40px -10px rgba(30, 27, 75, 0.55);
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 6px; }

.sidebar-brand {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 1.3rem 1.25rem; color: #fff; letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand i {
    width: 38px; height: 38px; margin: 0; border-radius: 12px; display: inline-grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #a78bfa, #2563eb);
    box-shadow: 0 8px 18px -6px rgba(124, 58, 237, 0.7);
}

.sidebar-nav { padding: 0.9rem 0; }
.sidebar-nav a,
.sidebar-group-toggle {
    gap: 0.75rem; margin: 2px 0.75rem; width: auto; padding: 0.55rem 0.7rem; border-radius: 12px;
    color: rgba(226, 232, 255, 0.78); font-size: 0.9rem;
}
.sidebar-group-toggle { width: calc(100% - 1.5rem); }
.sidebar-nav a:hover,
.sidebar-group-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Colourful icon tiles, cycling through the palette */
.sidebar-nav li > a > i:first-child,
.sidebar-nav li > .sidebar-group-toggle > i:first-child {
    --ic: #60a5fa;
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
    display: inline-grid; place-items: center; font-size: 0.85rem;
    color: var(--ic); background: color-mix(in srgb, var(--ic) 18%, transparent);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}
.sidebar-nav li:nth-child(6n+2) > :is(a, .sidebar-group-toggle) > i:first-child { --ic: #34d399; }
.sidebar-nav li:nth-child(6n+3) > :is(a, .sidebar-group-toggle) > i:first-child { --ic: #a78bfa; }
.sidebar-nav li:nth-child(6n+4) > :is(a, .sidebar-group-toggle) > i:first-child { --ic: #fbbf24; }
.sidebar-nav li:nth-child(6n+5) > :is(a, .sidebar-group-toggle) > i:first-child { --ic: #f472b6; }
.sidebar-nav li:nth-child(6n+6) > :is(a, .sidebar-group-toggle) > i:first-child { --ic: #2dd4bf; }
.sidebar-nav a:hover > i:first-child,
.sidebar-group-toggle:hover > i:first-child { transform: scale(1.12) rotate(-6deg); }

/* Active page: glowing gradient pill */
.sidebar-nav a.active {
    position: relative; color: #fff; font-weight: 600;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 10px 22px -10px rgba(124, 58, 237, 0.9);
}
.sidebar-nav a.active > i:first-child { color: #fff; background: rgba(255, 255, 255, 0.2); }
.sidebar-nav a.active::after {
    content: ""; position: absolute; right: 0.7rem; width: 7px; height: 7px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.sidebar-group.open > .sidebar-group-toggle { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Sub-menus: indented with a guide line instead of a dark block */
.sidebar-submenu {
    margin: 2px 0.75rem 4px 1.9rem; padding-left: 0.3rem;
    background: none; border-left: 1px dashed rgba(255, 255, 255, 0.16);
}
.sidebar-submenu.show { animation: slide-in 0.25s ease; }
.sidebar-submenu a,
.sidebar-submenu .sidebar-group-toggle,
.sidebar-submenu-nested a,
.sidebar-submenu-nested .sidebar-group-toggle { padding-left: 0.6rem; margin-left: 0.3rem; margin-right: 0; font-size: 0.86rem; }
.sidebar-submenu .sidebar-group-toggle { width: calc(100% - 0.3rem); }
.sidebar-submenu-nested { margin-left: 1.4rem; }
.sidebar-submenu a > i:first-child,
.sidebar-submenu .sidebar-group-toggle > i:first-child { width: 26px; height: 26px; font-size: 0.78rem; border-radius: 8px; }

.sidebar-overlay { background: rgba(30, 27, 75, 0.55); backdrop-filter: blur(2px); }

/* ------------------------------------------------------------------ */
/* Buy Data (.bd) and data receipt (.rc)                               */
/* ------------------------------------------------------------------ */
.bd { --bd-ink: #0f1f35; --bd-line: rgba(148, 163, 184, 0.2); --bd-ease: cubic-bezier(0.22, 1, 0.36, 1); max-width: 1180px; }
[data-theme="dark"] .bd { --bd-ink: #e8edf6; --bd-line: rgba(148, 163, 184, 0.14); }

.bd-net-mtn { --net: #ffcc00; --net-ink: #1a1a1a; }
.bd-net-airtel { --net: #e40000; --net-ink: #fff; }
.bd-net-glo { --net: #1d9e3e; --net-ink: #fff; }
.bd-net-9mobile { --net: #006e53; --net-ink: #b4d334; }

.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; animation: dx-rise 0.6s var(--bd-ease) backwards; }
.bd-head h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-size: 1.6rem; color: var(--bd-ink); letter-spacing: -0.02em; }
.bd-head p { margin: 0.25rem 0 0; color: var(--gray-500); font-size: 0.92rem; }
.bd-head-icon { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 10px 20px -8px #7c3aed; }
.bd-wallet {
    display: grid; grid-template-columns: auto auto; column-gap: 1rem; align-items: center;
    padding: 0.7rem 1rem; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #312e81, #2563eb); box-shadow: 0 12px 26px -12px #312e81;
    transition: transform 0.25s var(--bd-ease);
}
.bd-wallet:hover { transform: translateY(-2px); color: #fff; }
.bd-wallet span { font-size: 0.74rem; opacity: 0.85; }
.bd-wallet strong { grid-row: 2; font-size: 1.15rem; }
.bd-wallet small { grid-row: 1 / 3; grid-column: 2; padding: 0.4rem 0.7rem; border-radius: 10px; background: rgba(255, 255, 255, 0.18); font-weight: 700; }

.bd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.bd-main, .bd-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.bd-side { position: sticky; top: 80px; }
.bd-card {
    padding: 1.3rem; border-radius: 22px; background: var(--white); border: 1px solid var(--bd-line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -18px rgba(30, 58, 95, 0.2);
    animation: dx-rise 0.6s var(--bd-ease) backwards;
}
.bd-main .bd-card:nth-child(2) { animation-delay: 0.08s; }
.bd-main .bd-card:nth-child(3) { animation-delay: 0.16s; }
.bd-side .bd-card { animation-delay: 0.12s; }
.bd-step { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-weight: 800; color: var(--bd-ink); }
.bd-step span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.8rem; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); }

/* Phone */
.bd-phone { position: relative; display: flex; align-items: center; }
.bd-phone > i { position: absolute; left: 1rem; color: var(--gray-500); }
.bd-phone input {
    width: 100%; padding: 0.95rem 7rem 0.95rem 2.7rem; border-radius: 16px; font: inherit; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em;
    border: 2px solid var(--bd-line); background: var(--gray-50); color: var(--bd-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bd-phone input::placeholder { font-weight: 500; color: var(--gray-400); letter-spacing: 0.02em; }
.bd-phone input:focus { outline: none; border-color: #7c3aed; background: var(--white); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.bd-phone-net { position: absolute; right: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: var(--net); color: var(--net-ink); animation: dx-pop 0.35s var(--bd-ease); }
.bd-hint { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--gray-500); }
.bd-recent-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.8rem; font-size: 0.8rem; color: var(--gray-500); }
.bd-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--bd-line); background: var(--gray-50); color: var(--bd-ink); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.bd-chip:hover { border-color: #7c3aed; color: #7c3aed; }

/* Networks */
.bd-networks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.bd-network {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1rem 0.5rem; border-radius: 18px; cursor: pointer; text-align: center;
    border: 2px solid var(--bd-line); background: var(--gray-50);
    transition: transform 0.25s var(--bd-ease), border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.bd-network input { position: absolute; opacity: 0; pointer-events: none; }
.bd-network:hover { transform: translateY(-3px); }
.bd-network-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; background: var(--net); color: var(--net-ink); box-shadow: 0 8px 16px -8px var(--net); }
.bd-network-name { font-weight: 700; font-size: 0.88rem; color: var(--bd-ink); }
.bd-network-check { position: absolute; top: 0.5rem; right: 0.5rem; color: var(--net); opacity: 0; transform: scale(0.5); transition: all 0.25s var(--bd-ease); }
.bd-net-mtn .bd-network-check { color: #d4a600; }
.bd-network:has(input:checked) { border-color: var(--net); background: color-mix(in srgb, var(--net) 10%, var(--white)); box-shadow: 0 12px 24px -14px var(--net); }
.bd-network:has(input:checked) .bd-network-check { opacity: 1; transform: none; }
.bd-network:has(input:focus-visible) { outline: 3px solid #7c3aed; outline-offset: 2px; }

/* Plan types + plans */
.bd-types { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1rem; scrollbar-width: none; }
.bd-type { flex-shrink: 0; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--bd-line); background: var(--gray-50); color: var(--bd-ink); font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.bd-type:hover { border-color: #7c3aed; }
.bd-type.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 8px 16px -8px #7c3aed; }
.bd-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.bd-plan {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    padding: 1rem 0.6rem; border-radius: 16px; cursor: pointer; text-align: center;
    border: 2px solid var(--bd-line); background: var(--white);
    animation: dx-pop 0.4s var(--bd-ease) backwards; animation-delay: calc(var(--d, 0) * 30ms);
    transition: transform 0.25s var(--bd-ease), border-color 0.2s ease, box-shadow 0.25s ease;
}
.bd-plan input { position: absolute; opacity: 0; pointer-events: none; }
.bd-plan:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, 0.4); box-shadow: 0 12px 22px -14px #7c3aed; }
.bd-plan-size { font-size: 1.25rem; font-weight: 900; color: var(--bd-ink); letter-spacing: -0.02em; word-break: break-word; }
.bd-plan-validity { font-size: 0.76rem; color: var(--gray-500); }
.bd-plan-price { margin-top: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-weight: 800; font-size: 0.86rem; color: #6d28d9; background: rgba(124, 58, 237, 0.1); }
.bd-plan.selected { border-color: #7c3aed; background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.06)); box-shadow: 0 14px 26px -14px #7c3aed; }
.bd-plan.selected .bd-plan-price { color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); }
.bd-plan.selected::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 0.45rem; right: 0.55rem; font-size: 0.75rem; color: #7c3aed; }
.bd-plan:has(input:focus-visible) { outline: 3px solid #7c3aed; outline-offset: 2px; }

.bd-empty { grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; color: var(--gray-500); }
.bd-empty i { display: block; font-size: 1.8rem; margin-bottom: 0.5rem; opacity: 0.4; }
.bd-empty p { margin: 0; font-size: 0.9rem; }
.bd-empty-sm { padding: 1.2rem 0.5rem; }

/* Summary */
.bd-summary h3, .bd-side-head h3 { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 800; color: var(--bd-ink); }
.bd-summary dl { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bd-summary dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.bd-summary dt { color: var(--gray-500); flex-shrink: 0; }
.bd-summary dd { margin: 0; font-weight: 700; color: var(--bd-ink); text-align: right; word-break: break-word; }
.bd-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--bd-line); }
.bd-summary-total span { font-weight: 700; color: var(--gray-500); }
.bd-summary-total strong { font-size: 1.6rem; font-weight: 900; color: var(--bd-ink); letter-spacing: -0.02em; }
.bd-summary-after { margin-top: 0.3rem; text-align: right; font-size: 0.8rem; color: var(--gray-500); }
.bd-low { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; font-size: 0.84rem; color: #b91c1c; background: rgba(225, 29, 72, 0.1); }
.bd-low a { font-weight: 800; color: inherit; text-decoration: underline; }
.bd-buy {
    width: 100%; margin-top: 1rem; padding: 0.95rem; border: none; border-radius: 16px; cursor: pointer;
    font: inherit; font-size: 1rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 14px 28px -12px #7c3aed;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.bd-buy:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px #7c3aed; }
.bd-buy:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.bd-secure { margin: 0.75rem 0 0; font-size: 0.76rem; text-align: center; color: var(--gray-500); }

/* History */
.bd-side-head { display: flex; justify-content: space-between; align-items: baseline; }
.bd-side-head a { font-size: 0.84rem; font-weight: 700; color: #6d28d9; }
.bd-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.bd-history a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem; margin: 0 -0.6rem; border-radius: 12px; color: var(--bd-ink); transition: background 0.2s ease; }
.bd-history a:hover { background: var(--gray-50); }
.bd-history-logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; background: var(--net, var(--gray-200)); color: var(--net-ink, var(--gray-700)); }
.bd-history-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-history-body strong { font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-history-body small { font-size: 0.74rem; color: var(--gray-500); }
.bd-history-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.bd-history-meta strong { font-size: 0.84rem; }
.bd-history-meta .badge { font-size: 0.66rem; text-transform: capitalize; }

/* Confirm modal */
.bd-modal { position: fixed; inset: 0; z-index: 990; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); animation: welcome-popup-fade 0.2s ease; }
.bd-modal[hidden] { display: none; }
.bd-modal-box { width: 100%; max-width: 400px; padding: 1.8rem; border-radius: 24px; text-align: center; background: var(--white); box-shadow: var(--shadow-lg); animation: welcome-popup-pop 0.3s var(--bd-ease); }
.bd-modal-icon { width: 60px; height: 60px; margin: 0 auto 0.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.12); }
.bd-modal-box h3 { margin: 0 0 0.5rem; color: var(--bd-ink); }
.bd-modal-box p { margin: 0; font-size: 0.92rem; color: var(--gray-500); }
.bd-modal-box p strong { color: var(--bd-ink); }
.bd-modal-amount { margin: 1rem 0 1.3rem; font-size: 2rem; font-weight: 900; color: var(--bd-ink); }
.bd-modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6rem; }
.bd-modal-actions .btn-primary { background: linear-gradient(135deg, #7c3aed, #2563eb); border: none; }

@media (max-width: 960px) {
    .bd-grid { grid-template-columns: 1fr; }
    .bd-side { position: static; }
}
@media (max-width: 600px) {
    .bd-card { padding: 1.1rem; border-radius: 18px; }
    .bd-networks { gap: 0.5rem; }
    .bd-network { padding: 0.8rem 0.25rem; border-radius: 14px; }
    .bd-network-logo { width: 40px; height: 40px; font-size: 1rem; }
    .bd-network-name { font-size: 0.78rem; }
    .bd-plans { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .bd-phone input { font-size: 1.1rem; }
    .bd-head h2 { font-size: 1.35rem; }
    .bd-wallet { width: 100%; }
}

/* Receipt */
.rc-wrap { max-width: 460px; margin: 0 auto; }
.rc-toast { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; padding: 0.85rem 1rem; border-radius: 14px; font-weight: 700; font-size: 0.9rem; color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; animation: slide-in 0.35s ease; }
.rc {
    position: relative; overflow: hidden; border-radius: 24px; color: #0f1f35; background: #fff;
    box-shadow: 0 24px 50px -24px rgba(30, 27, 75, 0.45); border: 1px solid #e5e7eb;
    animation: dx-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.rc-top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; color: #fff; background: linear-gradient(120deg, #1e1b4b, #4338ca, #2563eb); }
.rc-brand { font-weight: 900; letter-spacing: -0.01em; }
.rc-brand i { margin-right: 0.35rem; color: #a5b4fc; }
.rc-title { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.rc-status { --st: #059669; --st-soft: #e1f4ee; --st-ring: rgba(5, 150, 105, 0.14); display: flex; flex-direction: column; align-items: center; padding: 1.6rem 1.4rem 1.2rem; text-align: center; }
.rc-status-pending { --st: #d97706; --st-soft: #fbf0e1; --st-ring: rgba(217, 119, 6, 0.14); }
.rc-status-failed { --st: #e11d48; --st-soft: #fce4e9; --st-ring: rgba(225, 29, 72, 0.14); }
.rc-status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--st); box-shadow: 0 0 0 10px var(--st-ring); animation: rc-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards; }
.rc-amount { margin-top: 1rem; font-size: 2.1rem; font-weight: 900; letter-spacing: -0.03em; }
.rc-status-text { margin-top: 0.1rem; font-size: 0.9rem; color: #64748b; }
.rc-pill { margin-top: 0.6rem; padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--st); background: var(--st-soft); }
.rc-tear { position: relative; height: 0; margin: 0 1.4rem; border-top: 2px dashed #e2e8f0; }
.rc-tear::before, .rc-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--gray-50); }
.rc-tear::before { left: calc(-1.4rem - 12px); }
.rc-tear::after { right: calc(-1.4rem - 12px); }
.rc-rows { margin: 0; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.rc-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.rc-row dt { color: #64748b; flex-shrink: 0; }
.rc-row dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.rc-foot { padding: 1rem 1.4rem 1.3rem; text-align: center; font-size: 0.76rem; color: #64748b; background: #f8fafc; border-top: 1px solid #eef2f7; }
.rc-foot p { margin: 0.1rem 0; }
.rc-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1.1rem; }
.rc-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.8rem 0.3rem; border-radius: 16px; cursor: pointer;
    font: inherit; font-size: 0.76rem; font-weight: 700; color: var(--gray-700); background: var(--white); border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rc-btn i { font-size: 1.1rem; color: #6d28d9; }
.rc-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--gray-700); }
.rc-btn-primary { color: #fff; border: none; background: linear-gradient(135deg, #7c3aed, #2563eb); }
.rc-btn-primary i, .rc-btn-primary:hover { color: #fff; }
.rc-btn-wa i { color: #25d366; }
.rc-btn.copied { background: #059669; color: #fff; border-color: #059669; }
.rc-btn.copied i { color: #fff; }
.rc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.8rem; }
.rc-links .btn-primary { background: linear-gradient(135deg, #7c3aed, #2563eb); border: none; }
@keyframes rc-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

@media print {
    body:has(.rc-wrap) .page-body > :not(.rc-wrap) { display: none !important; }
    .rc { box-shadow: none; animation: none; }
    .rc-top, .rc-status-icon, .rc-pill, .rc-foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rc-tear::before, .rc-tear::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bd *, .bd *::before, .bd *::after, .rc-wrap * { animation: none !important; transition: none !important; }
}

/* Buy Airtime — amount input + quick amounts (shares .bd styles) */
.bd-amount { position: relative; display: flex; align-items: center; }
.bd-amount span { position: absolute; left: 1.1rem; font-size: 1.6rem; font-weight: 900; color: #7c3aed; }
.bd-amount input {
    width: 100%; padding: 0.85rem 1rem 0.85rem 2.8rem; border-radius: 16px; font: inherit; font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em;
    border: 2px solid var(--bd-line); background: var(--gray-50); color: var(--bd-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bd-amount input:focus { outline: none; border-color: #7c3aed; background: var(--white); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.bd-hint.is-error { color: #e11d48; font-weight: 600; }
.bd-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.9rem; }
.bd-quick-btn {
    padding: 0.8rem 0.5rem; border-radius: 14px; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 800;
    color: var(--bd-ink); background: var(--white); border: 2px solid var(--bd-line);
    animation: dx-pop 0.4s var(--bd-ease) backwards; animation-delay: calc(var(--d, 0) * 40ms + 0.2s);
    transition: transform 0.25s var(--bd-ease), border-color 0.2s ease, box-shadow 0.25s ease;
}
.bd-quick-btn:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, 0.4); }
.bd-quick-btn.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 12px 22px -12px #7c3aed; }

/* Premium transaction PIN card */
.pin-card-overlay {
    position: fixed; inset: 0; z-index: 10000; display: none; align-items: flex-start; justify-content: center;
    padding: 1rem; overflow-y: auto; background: rgba(6, 9, 20, 0.82); backdrop-filter: blur(6px);
}
.pin-card-overlay.show { display: flex; }
.pin-card {
    position: relative; overflow: hidden; width: 100%; max-width: 400px; margin: auto; padding: 1.6rem;
    border-radius: 22px; border: 1px solid rgba(226, 192, 124, 0.45); color: #f6efe0; text-align: left;
    background: radial-gradient(circle at 88% -8%, rgba(226, 192, 124, 0.3), transparent 42%), linear-gradient(150deg, #1c2233 0%, #10131f 58%, #07080e 100%);
    box-shadow: 0 28px 70px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: welcome-popup-pop 0.28s ease;
}
.pin-card-brand { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.pin-card-tier { flex-shrink: 0; padding: 0.22rem 0.6rem; border-radius: 999px; color: #1b1407; background: linear-gradient(135deg, #f6dfa6, #c79a4b); }
.pin-card-chip {
    width: 44px; height: 32px; margin: 1.15rem 0 0.95rem; border-radius: 7px;
    background: repeating-linear-gradient(90deg, rgba(70, 48, 12, 0.34) 0 1px, transparent 1px 11px), linear-gradient(135deg, #f6dfa6, #b98b3e);
}
.pin-card h3 { margin: 0 0 0.35rem; color: #fff; font-size: 1.3rem; }
.pin-card p { margin: 0 0 1rem; color: #c6c2b9; font-size: 0.87rem; line-height: 1.5; }
.pin-card-label { display: block; margin: 0.9rem 0 0.45rem; color: #e2c07c; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pin-boxes { display: flex; justify-content: space-between; gap: 0.6rem; }
.pin-boxes input {
    width: 54px; height: 54px; min-width: 0; flex: 0 1 54px; padding: 0; border-radius: 12px; outline: none; text-align: center;
    color: #fff; font-size: 1.35rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(226, 192, 124, 0.38); transition: border-color 0.15s, box-shadow 0.15s;
}
.pin-boxes input[maxlength="4"] { width: 100%; flex: 1 1 auto; letter-spacing: 0.6em; }
.pin-boxes input:focus { border-color: #e2c07c; box-shadow: 0 0 0 3px rgba(226, 192, 124, 0.25); }
.pin-boxes.is-invalid input { border-color: #ef8d8d; }
.pin-boxes-plain { justify-content: flex-start; }
.pin-boxes-plain input { color: var(--gray-700); background: var(--gray-50); border-color: var(--gray-200); }
.pin-boxes-plain input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2); }
.pin-card-submit {
    display: block; width: 100%; margin-top: 1.25rem; padding: 0.85rem 1rem; border: 0; border-radius: 12px; cursor: pointer;
    color: #1b1407; font-family: inherit; font-size: 0.96rem; font-weight: 800; background: linear-gradient(135deg, #f6dfa6, #c79a4b); transition: transform 0.15s, filter 0.15s;
}
.pin-card-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pin-card-submit:disabled { cursor: progress; opacity: 0.65; transform: none; }
.pin-card-link { display: block; width: 100%; margin-top: 0.7rem; border: 0; cursor: pointer; color: #b5b1a8; font-family: inherit; font-size: 0.84rem; text-align: center; text-decoration: none; background: none; }
.pin-card-link:hover { color: #fff; }
.pin-card-message { margin-top: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 9px; font-size: 0.84rem; background: rgba(255, 255, 255, 0.08); }
.pin-card-message-error { color: #ffc2c2; background: rgba(214, 69, 69, 0.2); }
.pin-card-summary { margin: 0.25rem 0 0; }
.pin-card-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.87rem; }
.pin-card-summary dt { flex-shrink: 0; color: #b5b1a8; }
.pin-card-summary dd { margin: 0; color: #fff; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pin-card-summary .pin-card-total { border-bottom: 0; }
.pin-card-summary .pin-card-total dd { color: #f6dfa6; font-size: 1.02rem; }
.transfer-account-name { margin-top: 0.45rem; font-size: 0.86rem; font-weight: 600; color: var(--success); }
.transfer-account-name.is-error { color: var(--danger); }
.transfer-account-name.is-loading { color: var(--gray-500); font-weight: 400; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); }

/* Bank transfer page (.bt) - premium */
.bt { --bt-accent: #6d28d9; --bt-grad: linear-gradient(135deg, #7c3aed, #2563eb); --bt-gold: #e2c07c; max-width: 1080px; margin: 0 auto; }
[data-theme="dark"] .bt { --bt-accent: #b9a6ff; }
.bt .sr-only, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Wallet card */
.bt-card {
    position: relative; overflow: hidden; margin-bottom: 1rem; padding: 1.35rem 1.5rem 1.2rem; border-radius: 22px; color: #f6efe0;
    border: 1px solid rgba(226, 192, 124, 0.4);
    background: radial-gradient(circle at 92% -10%, rgba(226, 192, 124, 0.32), transparent 45%), radial-gradient(circle at -5% 120%, rgba(124, 58, 237, 0.45), transparent 50%), linear-gradient(150deg, #1c2233 0%, #121628 55%, #080a12 100%);
    box-shadow: 0 24px 50px -26px rgba(15, 17, 40, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bt-card-glow { position: absolute; inset: -40% -10% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%); pointer-events: none; }
.bt-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bt-card-label { color: var(--bt-gold); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.bt-card-label i { margin-right: 0.35rem; }
.bt-eye { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(226, 192, 124, 0.35); border-radius: 50%; cursor: pointer; color: #f6efe0; background: rgba(255, 255, 255, 0.06); }
.bt-eye:hover { background: rgba(255, 255, 255, 0.12); }
.bt-card-balance { position: relative; display: block; margin: 0.35rem 0 0.2rem; color: #fff; font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bt-card-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.bt-card-holder { color: #c6c2b9; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.bt-card-fund { padding: 0.5rem 1rem; border-radius: 999px; color: #1b1407; font-size: 0.84rem; font-weight: 800; text-decoration: none; background: linear-gradient(135deg, #f6dfa6, #c79a4b); box-shadow: 0 8px 18px -10px #c79a4b; }
.bt-card-fund:hover { color: #1b1407; filter: brightness(1.05); }
.bt-meter { position: relative; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed rgba(226, 192, 124, 0.28); }
.bt-meter-text { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.45rem; color: #c6c2b9; font-size: 0.76rem; }
.bt-meter-text b { color: #fff; }
.bt-meter-bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.bt-meter-bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #f6dfa6, #c79a4b); transition: width 0.6s ease; }

/* Trust strip */
.bt-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.bt-trust li { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; border: 1px solid var(--gray-200); border-radius: 14px; color: var(--gray-500); font-size: 0.76rem; line-height: 1.3; background: var(--white); }
.bt-trust b { color: var(--gray-700); }
.bt-trust i { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--bt-accent); font-size: 0.85rem; background: rgba(124, 58, 237, 0.1); }

/* Steps */
.bt-steps { display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: none; }
.bt-steps li { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border: 1px solid var(--gray-200); border-radius: 999px; color: var(--gray-500); font-size: 0.82rem; font-weight: 700; background: var(--white); transition: all 0.25s; }
.bt-steps li span { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: 0.72rem; color: var(--gray-500); background: var(--gray-100); }
.bt-steps li.is-active { color: var(--bt-accent); border-color: rgba(124, 58, 237, 0.45); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08); }
.bt-steps li.is-active span { color: #fff; background: var(--bt-grad); }
.bt-steps li.is-done { color: var(--success); }
.bt-steps li.is-done span { color: #fff; background: var(--success); font-size: 0; }
.bt-steps li.is-done span::before { content: "\f00c"; font: 900 0.65rem "Font Awesome 6 Free"; }

/* Layout */
.bt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.bt-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.bt-section { overflow: visible; border-radius: 18px; }
.bt-step { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1.1rem; font-size: 1.02rem; font-weight: 800; color: var(--gray-700); }
.bt-step > span { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 0.8rem; background: var(--bt-grad); box-shadow: 0 8px 16px -10px #7c3aed; }
.bt-sub { margin: -0.4rem 0 0.55rem; color: var(--gray-500); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bt-optional { margin-left: 0.3rem; color: var(--gray-500); font-size: 0.72rem; font-weight: 500; }

/* Avatars */
.bt-avatar { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #4338ca; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; background: #e8e7fd; }
.bt-avatar-lg { width: 58px; height: 58px; font-size: 1.15rem; box-shadow: 0 0 0 4px rgba(226, 192, 124, 0.35); }
.bt-avatar-empty { color: var(--gray-500); background: var(--gray-100); }
.bt-tone-0 { color: #4338ca; background: #e0e7ff; }
.bt-tone-1 { color: #047857; background: #d1fae5; }
.bt-tone-2 { color: #b45309; background: #fef3c7; }
.bt-tone-3 { color: #be123c; background: #ffe4e6; }
.bt-tone-4 { color: #0e7490; background: #cffafe; }
.bt-tone-5 { color: #7e22ce; background: #f3e8ff; }
[data-theme="dark"] .bt-avatar:not(.bt-avatar-empty) { filter: saturate(1.1) brightness(0.92); }

/* Recents */
.bt-recents { display: flex; gap: 0.6rem; margin-bottom: 1.1rem; padding-bottom: 0.35rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.bt-recent { flex: 0 0 112px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.8rem 0.45rem 0.65rem; border: 1px solid var(--gray-200); border-radius: 16px; cursor: pointer; color: var(--gray-700); font-family: inherit; background: var(--white); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.bt-recent .bt-avatar { margin-bottom: 0.2rem; }
.bt-recent:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, 0.5); }
.bt-recent.active { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14); }
.bt-recent-name { max-width: 100%; overflow: hidden; font-size: 0.76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bt-recent small { max-width: 100%; overflow: hidden; color: var(--gray-500); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.bt-recent .bt-recent-acct { letter-spacing: 0.06em; }

/* Bank picker */
.bt-bank { position: relative; }
.bt-bank-toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; cursor: pointer; font-family: inherit; font-weight: 600; text-align: left; }
.bt-bank-toggle.is-empty { color: var(--gray-500); font-weight: 400; }
.bt-bank-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; padding: 0.7rem; border: 1px solid var(--gray-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-lg); }
.bt-bank-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.bt-bank-chips button { padding: 0.32rem 0.7rem; border: 1px solid var(--gray-200); border-radius: 999px; cursor: pointer; color: var(--gray-700); font-family: inherit; font-size: 0.74rem; font-weight: 600; background: var(--gray-50); }
.bt-bank-chips button:hover { border-color: #7c3aed; color: var(--bt-accent); }
.bt-bank-list { max-height: 260px; overflow-y: auto; }
.bt-bank-list button { display: block; width: 100%; padding: 0.6rem 0.65rem; border: 0; border-radius: 9px; cursor: pointer; color: var(--gray-700); font-family: inherit; font-size: 0.86rem; text-align: left; background: none; }
.bt-bank-list button:hover, .bt-bank-list button:focus { outline: none; color: var(--bt-accent); background: rgba(124, 58, 237, 0.08); }
.bt-bank-empty { padding: 0.6rem; color: var(--gray-500); font-size: 0.85rem; }

/* Account number */
.bt-acct-wrap { position: relative; display: flex; align-items: center; }
.bt-account { padding-right: 8.5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.bt-account::placeholder { letter-spacing: 0.14em; opacity: 0.45; }
.bt-acct-count { position: absolute; right: 0.8rem; color: var(--gray-500); font-size: 0.72rem; font-weight: 700; pointer-events: none; }
.bt-acct-count.is-full { color: var(--success); }
.bt-paste { position: absolute; right: 3.4rem; padding: 0.3rem 0.6rem; border: 1px solid var(--gray-200); border-radius: 999px; cursor: pointer; color: var(--bt-accent); font-family: inherit; font-size: 0.72rem; font-weight: 700; background: var(--white); }
.bt-paste[hidden] { display: none; }
.bt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; padding: 0.65rem 0.8rem; border: 1px solid rgba(26, 159, 92, 0.3); border-radius: 14px; color: var(--success); font-size: 0.88rem; font-weight: 700; background: rgba(26, 159, 92, 0.08); animation: bt-rise 0.25s ease; }
.bt-name[hidden] { display: none; }
.bt-name-who { display: flex; flex-direction: column; min-width: 0; }
.bt-name-who strong { color: var(--gray-700); font-size: 0.95rem; overflow-wrap: anywhere; }
.bt-name-who small { color: var(--success); font-size: 0.74rem; font-weight: 700; }
.bt-name.is-error { color: var(--danger); font-weight: 600; border-color: rgba(214, 69, 69, 0.3); background: rgba(214, 69, 69, 0.08); }
.bt-name.is-loading { color: var(--gray-500); font-weight: 500; border-color: var(--gray-200); background: var(--gray-50); }
.bt-name button { margin-left: auto; border: 0; cursor: pointer; color: inherit; font-family: inherit; font-size: 0.82rem; font-weight: 700; text-decoration: underline; background: none; }
@keyframes bt-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Amount */
.bt-amount { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border: 1px solid var(--gray-200); border-radius: 16px; background: var(--gray-50); transition: border-color 0.15s, box-shadow 0.15s; }
.bt-amount:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13); }
.bt-amount span { color: var(--bt-accent); font-size: 1.7rem; font-weight: 800; }
.bt-amount input { width: 100%; min-width: 0; padding: 0.4rem 0; border: 0; outline: none; color: var(--gray-700); font-family: inherit; font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; background: none; }
.bt-words { min-height: 1.2em; margin: 0.5rem 0.2rem 0; color: var(--gray-500); font-size: 0.8rem; }
.bt-words.is-filled { color: var(--bt-accent); font-style: italic; font-weight: 600; }
.bt-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.bt-quick button { padding: 0.6rem 0.3rem; border: 1px solid var(--gray-200); border-radius: 12px; cursor: pointer; color: var(--gray-700); font-family: inherit; font-size: 0.86rem; font-weight: 700; background: var(--white); transition: transform 0.15s; }
.bt-quick button:hover { transform: translateY(-1px); border-color: rgba(124, 58, 237, 0.5); }
.bt-quick button.active { color: #fff; border-color: transparent; background: var(--bt-grad); box-shadow: 0 10px 20px -12px #7c3aed; }
.bt-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.bt-tags button { padding: 0.3rem 0.7rem; border: 1px dashed var(--gray-200); border-radius: 999px; cursor: pointer; color: var(--gray-500); font-family: inherit; font-size: 0.74rem; font-weight: 600; background: none; }
.bt-tags button:hover, .bt-tags button.active { border-style: solid; border-color: #7c3aed; color: var(--bt-accent); background: rgba(124, 58, 237, 0.07); }

/* Summary slip */
.bt-summary { position: sticky; top: 84px; min-width: 0; }
.bt-slip { position: relative; padding: 1.2rem 1.25rem 1.3rem; border: 1px solid var(--gray-200); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg); }
.bt-slip::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -7px; height: 14px; background: radial-gradient(circle at 7px 0, transparent 6px, var(--white) 6.5px) 0 0 / 14px 14px repeat-x; filter: drop-shadow(0 1px 0 var(--gray-200)); }
.bt-slip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; color: var(--gray-500); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bt-slip-head i { color: var(--bt-accent); }
.bt-slip-to { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; padding: 0.7rem; border-radius: 14px; background: var(--gray-50); }
.bt-slip-to > div { min-width: 0; }
.bt-slip-to strong, .bt-slip-to small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-slip-to strong { color: var(--gray-700); font-size: 0.9rem; }
.bt-slip-to small { color: var(--gray-500); font-size: 0.74rem; }
.bt-summary dl { margin: 0; }
.bt-summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.9rem; border-bottom: 1px dashed var(--gray-200); }
.bt-summary dl div:last-child { border-bottom: 0; }
.bt-summary dt { color: var(--gray-500); }
.bt-summary dd { margin: 0; color: var(--gray-700); font-weight: 700; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bt-summary dd.is-negative { color: var(--danger); }
.bt-summary .bt-summary-total dd { color: var(--bt-accent); font-size: 1.15rem; font-weight: 800; }
.bt-hint { display: flex; gap: 0.4rem; margin: 0.8rem 0; padding: 0.55rem 0.7rem; border-radius: 10px; color: var(--gray-500); font-size: 0.82rem; background: var(--gray-50); }
.bt-hint.is-error { color: var(--danger); font-weight: 600; background: rgba(214, 69, 69, 0.08); }
.bt-hint.is-ready { color: var(--success); font-weight: 600; background: rgba(26, 159, 92, 0.08); }
.bt-topup { display: block; margin: -0.3rem 0 0.8rem; color: var(--bt-accent); font-size: 0.84rem; font-weight: 700; }
.bt-topup[hidden] { display: none; }
.bt-continue { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1rem; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; background: var(--bt-grad); box-shadow: 0 14px 26px -14px #7c3aed; transition: transform 0.15s, opacity 0.15s; }
.bt-continue:not(:disabled):hover { transform: translateY(-1px); }
.bt-continue:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.bt-limits { margin: 1.3rem 0 0; padding: 0 0.3rem; list-style: none; color: var(--gray-500); font-size: 0.78rem; }
.bt-limits li { display: flex; gap: 0.5rem; padding: 0.25rem 0; }
.bt-limits i { width: 14px; margin-top: 0.15rem; flex-shrink: 0; color: var(--bt-accent); }

/* Confirm card (inside the dark PIN card) */
.bt-confirm-head { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin-bottom: 1rem; padding-bottom: 1rem; text-align: center; border-bottom: 1px dashed rgba(226, 192, 124, 0.3); }
.bt-confirm-head .bt-avatar { margin-bottom: 0.5rem; }
.bt-confirm-label { color: var(--bt-gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.bt-confirm-amount { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bt-confirm-to { color: #c6c2b9; font-size: 0.9rem; }
.bt-confirm-to b { color: #fff; }

/* Sending screen */
.bt-sending { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 1rem; background: rgba(6, 9, 20, 0.88); backdrop-filter: blur(8px); }
.bt-sending[hidden] { display: none; }
.bt-sending-box { max-width: 340px; color: #f6efe0; text-align: center; }
.bt-sending-box strong { display: block; margin-top: 1.4rem; color: #fff; font-size: 1.35rem; }
.bt-sending-box p { margin: 0.3rem 0 0.8rem; color: #c6c2b9; }
.bt-sending-box small { color: var(--bt-gold); font-size: 0.78rem; }
.bt-sending-orbit { position: relative; width: 96px; height: 96px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: #1b1407; font-size: 1.8rem; background: linear-gradient(135deg, #f6dfa6, #c79a4b); box-shadow: 0 0 0 10px rgba(226, 192, 124, 0.15); }
.bt-sending-orbit::before { content: ""; position: absolute; inset: -18px; border: 2px solid transparent; border-top-color: var(--bt-gold); border-radius: 50%; animation: bt-spin 1s linear infinite; }
.bt-sending-orbit i { animation: bt-fly 1.4s ease-in-out infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
@keyframes bt-fly { 50% { transform: translate(3px, -3px); } }

/* Empty + history */
.bt-empty { padding: 2rem 1.5rem; text-align: center; }
.bt-empty-icon { width: 56px; height: 56px; margin: 0 auto 0.8rem; display: grid; place-items: center; border-radius: 16px; color: var(--bt-accent); font-size: 1.4rem; background: rgba(124, 58, 237, 0.1); }
.bt-empty h3 { margin: 0 0 0.4rem; }
.bt-empty p { margin: 0 0 1rem; color: var(--gray-500); }
.bt-history { margin-top: 1.25rem; border-radius: 18px; }
.bt-history-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bt-history-head a { color: var(--bt-accent); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.bt-history-empty { padding: 1.5rem 0 0.5rem; color: var(--gray-500); text-align: center; }
.bt-history-empty i { font-size: 1.6rem; opacity: 0.4; }
.bt-history-empty p { margin: 0.5rem 0 0; }
.bt-history-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.5rem; border-radius: 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); text-decoration: none; transition: background 0.15s; }
.bt-history-row:last-child { border-bottom: 0; }
.bt-history-row:hover { color: var(--gray-700); background: var(--gray-50); }
.bt-history-who { flex: 1; min-width: 0; }
.bt-history-who strong, .bt-history-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-history-who strong { font-size: 0.9rem; }
.bt-history-who small { color: var(--gray-500); font-size: 0.76rem; }
.bt-history-amount { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.rc-sub { display: block; margin-top: 0.1rem; color: #64748b; font-size: 0.76rem; font-weight: 500; }
@media (max-width: 960px) {
    .bt-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .bt-grid { grid-template-columns: minmax(0, 1fr); }
    .bt-summary { position: static; }
}
@media (max-width: 480px) {
    .bt-card { padding: 1.15rem 1.1rem 1rem; border-radius: 18px; }
    .bt-trust li { padding: 0.6rem; font-size: 0.72rem; }
    .bt-trust i { width: 26px; height: 26px; }
    .bt-steps li { justify-content: center; padding: 0.5rem 0.4rem; font-size: 0.74rem; }
    .bt-amount input { font-size: 1.7rem; }
    .bt-account { font-size: 1.02rem; letter-spacing: 0.08em; }
}
@media (prefers-reduced-motion: reduce) {
    .bt *, .bt *::before { animation: none !important; transition: none !important; }
}
.bt-bank-chips[hidden], .bt select[hidden] { display: none; }

/* Bank transfer icon: bank building with a transfer-arrows badge */
.fas.fa-bank-transfer { position: relative; }
.fas.fa-bank-transfer::before { content: "\f19c"; }
.fas.fa-bank-transfer::after {
    content: "\f0ec"; position: absolute; right: -1.25em; bottom: -1.05em; width: 1.7em; height: 1.7em; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 0.42em; line-height: 1; background: #16a34a; box-shadow: 0 0 0 1.5px #fff;
}
.dx-btn .fa-bank-transfer { margin-right: 0.45em; }
.sidebar-nav .fa-bank-transfer::after { right: -3px; bottom: -3px; }

/* Agency logos (NIMC / NIBSS / CAC / JAMB / WAEC) in place of icons */
.svc-logo { display: inline-block; object-fit: contain; vertical-align: middle; flex: none; }
.svc-logo--nav { width: 20px; height: 20px; padding: 2px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.svc-logo--tile { width: 78%; height: 78%; }
.dx-service-icon.has-logo { background: #fff; box-shadow: 0 10px 18px -8px rgba(15, 35, 70, 0.35), inset 0 0 0 1px rgba(15, 35, 70, 0.06); padding: 4px; }
.dx-service:hover .dx-service-icon.has-logo { background: #fff; }
.svc-logo--heading { width: 26px; height: 26px; padding: 2px; border-radius: 7px; background: #fff; margin-right: 0.2rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }

/* Brand logo */
.brand-logo { display: block; height: auto; max-width: 100%; width: auto; }
.hp-brand .brand-logo { height: 46px; }
.au-brand .brand-logo, .auth-logo .brand-logo { height: 64px; margin: 0 auto; }
.auth-logo-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .35rem; }
.brand-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand-chip .brand-logo { height: 40px; }
.sidebar-brand--logo { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; text-decoration: none; }
.sidebar-brand--logo .brand-logo { height: 44px; }
.navbar-brand .brand-chip { padding: 3px 8px; border-radius: 8px; }
.navbar-brand .brand-chip .brand-logo { height: 32px; }
@media (max-width: 480px) { .hp-brand .brand-logo { height: 38px; } }

/* Complete-profile gate (accounts made before state, LGA and photo were required) */
.cp-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
    background: rgba(10, 20, 40, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cp-card { width: 100%; max-width: 420px; margin: auto; padding: 1.6rem 1.4rem 1.2rem; border-radius: 20px; background: var(--white, #fff); color: var(--gray-700, #1c2433);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5); text-align: left; }
.cp-logo { display: block; margin: 0 auto 0.9rem; height: 44px; width: auto; }
.cp-card h3 { margin: 0 0 0.35rem; font-size: 1.25rem; text-align: center; }
.cp-card > p { margin: 0 0 1.1rem; font-size: 0.88rem; line-height: 1.5; color: var(--gray-500, #5f6b7e); text-align: center; }
.cp-label { display: block; margin: 0.85rem 0 0.35rem; font-size: 0.82rem; font-weight: 700; }
.cp-photo { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.85rem; border: 1.5px dashed var(--gray-200, #cfd6e0); border-radius: 14px; cursor: pointer; }
.cp-photo:hover, .cp-photo:focus-within { border-color: var(--primary, #2f6bff); }
.cp-photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cp-photo__preview { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.3rem;
    color: var(--primary, #2f6bff); background: var(--gray-100, #eef2f7); }
.cp-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.cp-photo__text { min-width: 0; display: flex; flex-direction: column; font-size: 0.9rem; overflow-wrap: anywhere; }
.cp-photo__text small { font-size: 0.76rem; color: var(--gray-500, #5f6b7e); }
.cp-submit { margin-top: 1.2rem; }
.cp-link { display: block; margin-top: 0.75rem; text-align: center; font-size: 0.84rem; color: var(--gray-500, #5f6b7e); }
.cp-message { margin: 0 0 0.9rem; padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.84rem; background: var(--gray-100, #eef2f7); }
.cp-message-error { color: #b42318; background: #fde8e8; }
.cp-message-success { color: #0b7a43; background: #e8f5ee; }

.rc-auto { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0.6rem 0 0; color: var(--gray-500); font-size: 0.8rem; text-align: center; }
