/* ==========================================================
   Trove Bank — Design Tokens
   Palette:   navy-950 #0B1E3D  navy-900 #0F2A52  teal-500 #16C79A
              gold-400 #F2A93B  bg #F5F7FA  danger #E5484D
   Type:      Sora (display) / Inter (body) / IBM Plex Mono (numbers)
   ========================================================== */

:root {
    --navy-950: #0B1E3D;
    --navy-900: #0F2A52;
    --navy-800: #163564;
    --teal-500: #16C79A;
    --teal-600: #10A683;
    --gold-400: #F2A93B;
    --danger: #E5484D;
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --text-900: #10182B;
    --text-500: #5B6478;
    --text-400: #8891A4;
    --border: #E7EAF0;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 8px 24px -8px rgba(11, 30, 61, 0.12);
    --shadow-pop: 0 16px 40px -12px rgba(11, 30, 61, 0.22);

    /* v2 — hero gradient identity */
    --ink: #16123A;
    --hero-mint: #C8F6E2;
    --hero-lavender: #D9D2F9;
    --hero-peach: #FCDCB0;
    --hero-shadow: 0 20px 44px -16px rgba(120, 100, 200, 0.35);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: radial-gradient(120% 100% at 100% 0%, #F3F0FB 0%, #FAF9FC 45%, #FAFAFA 100%);
    color: var(--text-900);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: 'Sora', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.mono, .amount, .txn-amount, .account-number {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: -0.01em;
}

a { text-decoration: none; }

/* ---------------- App shell ---------------- */
.app-shell {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.app-main {
    flex: 1;
    min-width: 0;
    position: relative;
    background: radial-gradient(120% 100% at 100% 0%, #F3F0FB 0%, #FAF9FC 45%, #FAFAFA 100%);
    padding-bottom: 110px; /* room for floating mobile bottom nav */
}

@media (min-width: 992px) {
    .app-main { padding-bottom: 40px; }
}

/* ---------------- Desktop sidebar ---------------- */
.sidebar {
    width: 264px;
    background: var(--navy-950);
    color: #fff;
    display: none;
    flex-direction: column;
    padding: 20px 14px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Fixed left rail: no white gap under sidebar when the main body scrolls */
@media (min-width: 992px) {
    .sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 100;
    }
    .app-shell {
        display: block;
        padding-left: 264px;
        min-height: 100vh;
    }
    .app-main {
        width: 100%;
        min-height: 100vh;
    }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    padding: 0 8px 16px;
    flex-shrink: 0;
}

.sidebar-brand .mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-500), #0891b2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.78);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    flex-shrink: 0;
    text-decoration: none;
}

.sidebar-nav a i { font-size: 1rem; width: 20px; text-align: center; opacity: 0.95; }

.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.sidebar-nav a.active {
    background: rgba(22, 199, 154, 0.18);
    color: #fff;
}
.sidebar-nav a.active i { color: var(--teal-500); }

.sidebar-foot {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: var(--navy-950);
}

/* ---------------- Topbar (desktop) ---------------- */
.topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(250, 249, 252, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 234, 240, 0.9);
}
@media (min-width: 992px) { .topbar { display: flex; } }

.topbar h1 { font-size: 1.3rem; margin: 0; font-weight: 700; }
.topbar .sub { color: var(--text-500); font-size: 0.85rem; }

/* ---------------- Mobile top header ---------------- */
.mobile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(250, 249, 252, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(231, 234, 240, 0.9);
}
@media (min-width: 992px) { .mobile-header { display: none; } }

/* Offset page content under the fixed mobile header */
@media (max-width: 991.98px) {
    .app-main {
        padding-top: calc(62px + env(safe-area-inset-top));
    }
}

.mh-menu-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.mh-menu-btn i { font-size: 1.35rem; line-height: 1; }
.mh-menu-btn:active { transform: scale(0.96); }

.mh-brand-mini {
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    max-width: 88px;
}
.mh-brand-mini img { max-height: 28px; max-width: 72px; object-fit: contain; }
.mh-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--ink); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: Sora, sans-serif; font-weight: 800; font-size: 0.85rem;
}
.mh-brand-text {
    font-family: Sora, sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink);
}
@media (min-width: 400px) {
    .mh-brand-mini { display: inline-flex; }
}

.mh-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--text-400);
}
.mh-search i { font-size: 0.9rem; }
.mh-search input {
    border: none;
    outline: none;
    background: none;
    font-size: 0.85rem;
    width: 100%;
    color: var(--text-900);
}
.mh-search input::placeholder { color: var(--text-400); }

.mh-bell {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-900);
}

/* ---------------- Mobile hamburger drawer ---------------- */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1080;
    opacity: 0;
    transition: opacity .22s ease;
}
.mobile-drawer-backdrop.is-open { opacity: 1; }
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    max-width: 320px;
    z-index: 1090;
    background: #0f1b33;
    color: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,0.35);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); }
@media (min-width: 992px) {
    .mobile-drawer,
    .mobile-drawer-backdrop { display: none !important; }
}

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.md-logo {
    max-height: 36px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}
.md-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-500), #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.md-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.md-acct {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}
.md-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.mobile-drawer-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    box-sizing: border-box;
}
.mobile-drawer-nav a i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.mobile-drawer-nav a.active i { color: var(--teal-500); }
.md-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}
.mobile-drawer-foot {
    flex-shrink: 0;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.md-signout {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffb4b4;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 10px 8px;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .bottom-nav {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.avatar-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---------------- Content padding ---------------- */
.page-pad {
    padding: 14px 14px 0;
}
@media (min-width: 576px) {
    .page-pad { padding: 16px 16px 0; }
}
@media (min-width: 992px) {
    .page-pad { padding: 24px 32px 32px; }
}
@media (max-width: 991.98px) {
    .panel { border-radius: 16px; }
    .balance-card { border-radius: 18px; }
    .section-title { font-size: 0.95rem; }
    .insight-heading h2 { font-size: 1.15rem; }
    .quick-actions { gap: 8px; }
    .market-row { gap: 8px; }
    .market-spark { width: 54px; }
    .currency-tabs { gap: 6px; }
    .transfer-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .row.g-3 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
}

/* ---------------- Card stack (cards.php) ---------------- */
.card-stack {
    position: relative;
    height: calc(190px + (var(--stack-count, 1) - 1) * 26px);
    margin-bottom: 16px;
}

.vcard-link {
    position: absolute;
    top: calc(var(--i) * 26px);
    left: 0;
    right: 0;
    z-index: 1;
    transition: top .25s ease, transform .25s ease, filter .25s ease;
    filter: brightness(0.82) saturate(0.9);
}
.vcard-link:hover { transform: translateY(-4px); }
.vcard-link.is-selected {
    top: 0;
    z-index: 50;
    filter: none;
}
.card-stack:has(.is-selected) .vcard-link:not(.is-selected) {
    top: calc(148px + var(--i) * 14px);
}

.vcard {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 190px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--from) 0%, var(--to) 100%);
    box-shadow: 0 18px 32px -14px rgba(20, 20, 50, 0.4);
}
.vcard.is-frozen { filter: grayscale(0.6) brightness(0.85); }

.vc-blob {
    position: absolute;
    top: 18px; left: 20px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    z-index: 2;
}

.vc-tri {
    position: absolute;
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.28);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.vc-tri-1 { top: 14px; right: 46px; transform: rotate(18deg); width: 26px; height: 26px; }
.vc-tri-2 { bottom: 40px; right: 20px; transform: rotate(-12deg); background: rgba(255,255,255,0.4); }
.vc-tri-3 { bottom: 60px; right: 62px; transform: rotate(150deg); width: 16px; height: 16px; background: rgba(255,255,255,0.22); }

.vc-dots {
    position: absolute;
    right: -10px; bottom: -10px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background-image: radial-gradient(rgba(255,255,255,0.35) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.7;
}

.vc-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 30px;
    padding-right: 0;
}
.vcard-flip .vc-top { padding-right: 36px; }
.vc-circle { display: none; }
.vc-network {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.85);
}

.vc-number-block { position: relative; z-index: 2; margin-top: 18px; }
.vc-caption {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}
.vc-number {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.vc-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    gap: 12px;
}
.vc-value { font-size: 0.86rem; font-weight: 700; white-space: nowrap; }

.vc-frozen-badge {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 3;
    background: rgba(16,24,43,0.55);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex; align-items: center; gap: 4px;
}
.vcard-flip .vc-frozen-badge { right: 46px; }

/* ---------------- Flip card mechanics ---------------- */
.vcard-flip {
    display: block;
    position: relative;
    height: 190px;
    width: 100%;
    perspective: 1400px;
    cursor: pointer;
    color: inherit;
}
.vcard-flip:hover { color: inherit; }
.vcard-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}
.vcard-flip.is-flipped .vcard-flip-inner { transform: rotateY(180deg); }

.vcard-flip .vcard {
    position: absolute;
    inset: 0;
    height: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.vcard-flip .vcard-back { transform: rotateY(180deg); }

.vc-flip-btn {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 4;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}
.vc-flip-btn:hover { background: rgba(255,255,255,0.28); }

.vc-stripe {
    position: absolute;
    top: 24px; left: 0; right: 0;
    height: 36px;
    background: rgba(10,10,20,0.55);
    z-index: 2;
}
.vc-signature-row {
    position: relative;
    z-index: 2;
    margin-top: 78px;
}
.vc-signature-panel {
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.85), rgba(255,255,255,0.85) 4px, rgba(255,255,255,0.55) 4px, rgba(255,255,255,0.55) 8px);
    border-radius: 6px;
    padding: 9px 14px;
    text-align: right;
}
.vc-signature-panel span {
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: #211d40;
}
.vc-back-caption {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    font-size: 0.64rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
}

/* ---------------- Card creation controls ---------------- */
.chip-radio {
    cursor: pointer;
}
.chip-radio input { display: none; }
.chip-radio span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-500);
}
.chip-radio input:checked + span {
    border-color: var(--navy-950);
    background: var(--navy-950);
    color: #fff;
}

.theme-swatch {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--from), var(--to));
    cursor: pointer;
    display: block;
    position: relative;
    border: 2px solid transparent;
}
.theme-swatch input { display: none; }
.theme-swatch input:checked + * { }
.theme-swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }

/* ---------------- Services page (full icon grid) ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
}
@media (min-width: 576px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(5, 1fr); }
    /* Beside My Cards: keep tiles readable in the right column */
    .col-lg-7 > .panel .services-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
    .col-lg-7 > .panel .services-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Dashboard mobile: All services above Recent transactions */
@media (max-width: 991.98px) {
    .dashboard-stack {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .dashboard-stack > .row {
        display: contents;
    }
    .dashboard-sidebar {
        display: contents;
    }
    .dashboard-wallet { order: 1; }
    .dashboard-cashback { order: 2; }
    .dashboard-all-services { order: 3; }
    .dashboard-cards { order: 4; }
    .dashboard-recent-txn { order: 5; }
}

.service-tile {
    text-align: center;
    color: var(--text-900);
}
.service-tile .svc-icon {
    width: 56px; height: 56px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: var(--navy-950);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    transition: transform .12s;
}
.service-tile:hover .svc-icon { transform: translateY(-3px); }
.service-tile:hover { color: var(--text-900); }
.service-tile span { font-size: 0.78rem; font-weight: 600; line-height: 1.25; display: block; }

@media (max-width: 380px) {
    .services-grid { gap: 16px 8px; }
    .service-tile .svc-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; }
    .service-tile span { font-size: 0.68rem; }
}

.services-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-400);
    margin: 22px 0 12px;
}
.services-section-label:first-child { margin-top: 0; }

/* ---------------- Currency switcher (pill style — transfer/fund/history pages) ---------------- */
.currency-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -18px 14px;
    padding: 4px 18px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.currency-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .currency-tabs { margin: 0 0 14px; padding: 4px 0 6px; } }

.currency-tab {
    scroll-snap-align: start;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-500);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    white-space: nowrap;
}
.currency-tab.active {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: #fff;
}
.currency-tab:hover { color: var(--text-900); }
.currency-tab.active:hover { color: #fff; }

/* ---------------- Generic marquee (paged, snapping, auto-advance) ---------------- */
.marquee {
    position: relative;
    margin: 0 -18px 8px;
    padding: 2px 18px 4px;
}
@media (min-width: 992px) { .marquee { margin: 0 0 8px; padding: 2px 0 4px; } }

.marquee-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.marquee-track::-webkit-scrollbar { display: none; }

.marquee-page {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    gap: 10px;
}

.marquee-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.marquee-dots .dot {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--border);
    border: none;
    padding: 0;
    transition: width .2s, background .2s;
}
.marquee-dots .dot.active { width: 20px; background: var(--ink); }

.marquee-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    align-items: center;
    justify-content: center;
    color: var(--text-900);
    z-index: 5;
    opacity: 0;
    transition: opacity .15s;
}
.marquee:hover .marquee-nav { opacity: 1; }
.marquee-nav.prev { left: -4px; }
.marquee-nav.next { right: -4px; }
@media (min-width: 992px) { .marquee-nav { display: flex; } }

/* Desktop has room to show all currencies at once — drop the paging chrome */
@media (min-width: 992px) {
    .wallet-marquee .marquee-nav,
    .wallet-marquee .marquee-dots { display: none !important; }
    .wallet-marquee .marquee-track {
        overflow: visible;
        scroll-snap-type: none;
        flex-wrap: wrap;
        gap: 10px;
    }
    .wallet-marquee .marquee-page {
        display: contents;
    }
    .wallet-marquee .wallet-card-mini {
        flex: 0 1 170px;
        max-width: 170px;
    }
}

/* Card marquee keeps paging on desktop (could have several cards) —
   just reserve side space so the nav arrows sit inside the panel, not overlapping the card */
@media (min-width: 992px) {
    .card-marquee { padding: 2px 44px 4px; }
    .card-marquee .marquee-nav.prev { left: 0; }
    .card-marquee .marquee-nav.next { right: 0; }
}

/* ---------------- Wallet marquee (2 currencies per page) ---------------- */
.wallet-card-mini {
    flex: 1 1 0;
    min-width: 0;
    background: var(--surface);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 11px 13px;
    color: var(--text-900);
    box-shadow: 0 4px 14px -8px rgba(22,18,58,0.15);
}
.wallet-card-mini:hover { color: var(--text-900); border-color: var(--teal-500); }
.wallet-card-mini .wc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-500);
    margin-bottom: 7px;
}
.wallet-card-mini .wc-top .wc-symbol {
    width: 20px; height: 20px;
    border-radius: 6px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.64rem;
    color: var(--navy-900);
    flex-shrink: 0;
}
.wallet-card-mini .wc-balance {
    display: block;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}
.wallet-card-mini.active {
    background: var(--ink);
    border-color: var(--ink);
}
.wallet-card-mini.active .wc-top,
.wallet-card-mini.active .wc-balance { color: #fff; }
.wallet-card-mini.active .wc-top .wc-symbol { background: rgba(255,255,255,0.14); color: #fff; }
.wallet-card-mini.active:hover { color: #fff; }

/* ---------------- Card marquee (dashboard, 1 card per page) ---------------- */
.card-marquee .marquee-page { display: block; }

/* ---------------- Balance card (hero v2) ---------------- */
.balance-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--hero-mint) 0%, var(--hero-lavender) 52%, var(--hero-peach) 100%);
    color: var(--ink);
    padding: 24px 22px 26px;
    box-shadow: var(--hero-shadow);
}

.balance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% -10%, rgba(255,255,255,0.55), transparent 45%),
        radial-gradient(circle at -10% 110%, rgba(255,255,255,0.35), transparent 40%);
    pointer-events: none;
}

.balance-card .content { position: relative; z-index: 1; }

.balance-card .acct-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(22,18,58,0.55);
    margin-bottom: 20px;
}

.balance-card .acct-row span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-card .acct-row .copy-btn {
    flex-shrink: 0;
    background: rgba(22,18,58,0.08);
    border: none;
    color: var(--ink);
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}

.balance-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(22,18,58,0.55);
    margin-bottom: 4px;
}

.balance-figure {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--ink);
}

.balance-amount {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    font-size: clamp(1.7rem, 8.5vw, 2.7rem);
}

.balance-figure .cents { font-size: 0.5em; font-weight: 600; opacity: 0.55; }

.balance-figure .toggle-eye {
    flex-shrink: 0;
    background: none; border: none; color: rgba(22,18,58,0.4);
    font-size: 1.05rem; cursor: pointer; align-self: center;
}

.balance-updated {
    font-size: 0.76rem;
    color: rgba(22,18,58,0.45);
    margin-top: 6px;
}

.balance-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.balance-actions .btn {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    backdrop-filter: blur(6px);
}
.balance-actions .btn:hover { background: rgba(255,255,255,0.85); color: var(--ink); }
.balance-actions .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.balance-actions .btn.primary:hover { background: #2A2560; color: #fff; }

/* ---------------- Quick actions grid ---------------- */
.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title a { font-size: 0.82rem; color: var(--teal-600); font-weight: 600; }

.quick-actions {
    display: flex;
    justify-content: space-between;
    background: var(--surface);
    border-radius: 999px;
    padding: 14px 10px;
    box-shadow: var(--shadow-card);
}

.quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-900);
}
.quick-action:hover { color: var(--text-900); }

.quick-action .qa-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    transition: transform .12s;
}
.quick-action:hover .qa-icon { transform: translateY(-2px); }

.quick-action span { font-size: 0.72rem; font-weight: 600; line-height: 1.2; }

@media (max-width: 380px) {
    .quick-actions { padding: 12px 6px; }
    .quick-action .qa-icon { width: 40px; height: 40px; font-size: 0.95rem; }
    .quick-action span { font-size: 0.66rem; }
}

/* icon color variants */
.qa-icon.c-teal   { background: rgba(22,199,154,0.12); color: var(--teal-600); }
.qa-icon.c-navy   { background: rgba(15,42,82,0.08);   color: var(--navy-900); }
.qa-icon.c-gold   { background: rgba(242,169,59,0.15); color: #b3760f; }
.qa-icon.c-danger { background: rgba(229,72,77,0.12);  color: var(--danger); }

/* ---------------- Cards / panels ---------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}
.stat-card .stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-500); }
.stat-card .stat-icon {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.stat-card .stat-icon.up { background: rgba(22,199,154,0.12); color: var(--teal-600); }
.stat-card .stat-icon.down { background: rgba(229,72,77,0.1); color: var(--danger); }
.stat-card .stat-value { font-size: 1.4rem; font-weight: 700; font-family: 'Sora', sans-serif; line-height: 1.2; }
.stat-card .stat-delta { font-size: 0.78rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-delta.up { color: var(--teal-600); }
.stat-delta.down { color: var(--danger); }

/* ---------------- Transaction rows ---------------- */
.txn-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}
.txn-row:last-child { border-bottom: none; }

.txn-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.txn-icon.credit { background: rgba(22,199,154,0.14); color: var(--teal-600); }
.txn-icon.debit  { background: rgba(229,72,77,0.1); color: var(--danger); }

.txn-meta { flex: 1; min-width: 0; }
.txn-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.txn-sub { font-size: 0.76rem; color: var(--text-500); margin-top: 1px; }

.txn-amount { font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.txn-amount.credit { color: var(--teal-600); }
.txn-amount.debit { color: var(--ink); }

/* ---------------- Mobile bottom nav (floating pill v2) ---------------- */
.bottom-nav {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--ink);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px 8px;
    z-index: 30;
    box-shadow: 0 16px 36px -12px rgba(22,18,58,0.45);
}
@media (min-width: 992px) { .bottom-nav { display: none; } }

/* Bootstrap modals must sit above fixed sidebar (100) + bottom nav (30) */
.modal-backdrop { z-index: 2000 !important; }
.modal { z-index: 2010 !important; }

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.45);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 4px 6px;
    min-width: 0;
}
.bottom-nav a i { font-size: 1.12rem; }
.bottom-nav a.active { color: #fff; }

.bottom-nav a.raised {
    position: relative;
    top: -18px;
    color: var(--ink);
}
.bottom-nav a.raised .nav-fab {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-mint), var(--hero-peach));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px -6px rgba(0,0,0,0.35);
    border: 3px solid var(--ink);
}
.bottom-nav a.raised .nav-fab i { font-size: 1.2rem; color: var(--ink); }
.bottom-nav a.raised span { display: none; }

@media (max-width: 360px) {
    .bottom-nav { left: 8px; right: 8px; padding: 6px 2px; }
    .bottom-nav a { padding: 3px 2px; font-size: 0.55rem; }
    .bottom-nav a i { font-size: 1rem; }
    .bottom-nav a.raised .nav-fab { width: 42px; height: 42px; }
    .bottom-nav a.raised .nav-fab i { font-size: 1.05rem; }
    .bottom-nav a.raised { top: -14px; }
    .mh-search { padding: 8px 10px; }
    .page-pad { padding-left: 12px; padding-right: 12px; }
}

/* Admin mobile tab bar — mobile only */
#adminMobileTabs { display: flex !important; }
@media (min-width: 992px) { #adminMobileTabs { display: none !important; } }

/* ---------------- Transfer type tabs ---------------- */
.transfer-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg);
    padding: 5px;
    border-radius: 999px;
}
.transfer-tab {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-500);
}
.transfer-tab:hover { color: var(--text-900); }
.transfer-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-card);
}

/* ---------------- Transfer summary rows ---------------- */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-500); }
.summary-row .value { font-weight: 700; text-align: right; }
.summary-row .value.mono { font-family: 'IBM Plex Mono', monospace; }
.summary-row .value.total { color: var(--ink); font-size: 1rem; }

/* ---------------- Transfer processing screen ---------------- */
.processing-panel {
    text-align: center;
    padding: 48px 28px;
}
.processing-orb {
    position: relative;
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-mint), var(--hero-lavender), var(--hero-peach));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: var(--ink);
}
.processing-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--ink);
    border-right-color: var(--ink);
    animation: processing-spin 1s linear infinite;
}
@keyframes processing-spin { to { transform: rotate(360deg); } }

.processing-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.processing-status {
    font-size: 0.86rem;
    color: var(--text-500);
    min-height: 20px;
    margin-bottom: 22px;
}
.processing-bar {
    width: 100%;
    max-width: 320px;
    height: 8px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
}
.processing-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal-500), var(--hero-lavender), var(--gold-400));
    background-size: 200% 100%;
    animation: processing-shimmer 1.2s linear infinite;
}
@keyframes processing-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}


.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.auth-brand {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 26px;
}
.auth-brand .mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--teal-500), #0891b2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-family: 'Sora', sans-serif;
}
.auth-brand span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--navy-950); }

/* ---- Split auth layout (login / register / PIN) ---- */
.auth-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
}

.auth-shell-pin {
    grid-template-columns: 1fr;
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 40px;
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(22, 199, 154, 0.28) 0%, transparent 55%),
        linear-gradient(160deg, #0B1E3D 0%, #0F2A52 48%, #0a3d36 100%);
    overflow: hidden;
}

.auth-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(22, 199, 154, 0.12);
    pointer-events: none;
}

.auth-panel-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.auth-panel-brand img {
    max-height: 44px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-panel-brand .mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-500), #0ea5a0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.auth-panel-body {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 48px 0;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c8f6e2;
}

.auth-panel-body h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.15;
    margin: 0 0 14px;
    color: #fff;
}

.auth-lead {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-points i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(22, 199, 154, 0.18);
    color: #9af0d2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-panel-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(22, 199, 154, 0.08) 0%, transparent 55%),
        #f4f7fb;
}

.auth-main-center {
    min-height: 100vh;
}

.auth-card-lg {
    max-width: 440px;
    padding: 40px 36px;
    border-radius: 24px;
    box-shadow: 0 18px 48px -20px rgba(11, 30, 61, 0.22);
}

.auth-card-pin {
    max-width: 420px;
    text-align: center;
    padding: 42px 34px;
}

.auth-card h2 {
    font-size: 1.55rem;
    margin: 0 0 8px;
}

.auth-step {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(22, 199, 154, 0.12);
    color: var(--teal-600);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-sub {
    color: var(--text-500);
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-field {
    position: relative;
}

.auth-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-400);
    pointer-events: none;
}

.auth-field .form-control {
    padding-left: 42px;
    padding-right: 44px;
}

.auth-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-400);
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.auth-eye:hover { color: var(--navy-950); background: #f1f4f8; }

.auth-footer-link {
    text-align: center;
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--text-500);
}

.auth-footer-link a {
    color: var(--teal-600);
    font-weight: 600;
}

.auth-mobile-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-950);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.auth-mobile-brand img {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
}

.auth-mobile-brand .mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-500), #0891b2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.auth-pin-block {
    padding: 14px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px dashed rgba(16, 166, 131, 0.35);
}

.pin-lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(145deg, #0B1E3D, #0F2A52);
    color: #9af0d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px -10px rgba(11, 30, 61, 0.45);
}

.pin-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.pin-box {
    width: 58px;
    height: 64px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--navy-950);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pin-box:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(22, 199, 154, 0.18);
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-panel {
        display: none;
    }
    .auth-card-lg,
    .auth-card-pin {
        padding: 28px 22px;
    }
    .pin-box {
        width: 52px;
        height: 58px;
        font-size: 1.35rem;
    }
}

.form-label { font-size: 0.83rem; font-weight: 600; color: var(--text-900); }

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 11px 14px;
    font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(22,199,154,0.15);
}

.btn-brand {
    background: var(--navy-950);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.92rem;
}
.btn-brand:hover { background: var(--navy-900); color: #fff; }

.btn-teal {
    background: var(--teal-500);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.92rem;
}
.btn-teal:hover { background: var(--teal-600); color: #fff; }

.btn-outline-brand {
    border: 1px solid var(--border);
    color: var(--text-900);
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    background: #fff;
}

/* ---------------- Alerts ---------------- */
.alert-soft {
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 12px 14px;
    font-size: 0.86rem;
}
.alert-soft.success { background: rgba(22,199,154,0.1); color: var(--teal-600); border-color: rgba(22,199,154,0.25); }
.alert-soft.danger  { background: rgba(229,72,77,0.08); color: var(--danger); border-color: rgba(229,72,77,0.2); }

/* ---------------- Misc ---------------- */
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-status.active { background: rgba(22,199,154,0.12); color: var(--teal-600); }
.badge-status.suspended { background: rgba(229,72,77,0.1); color: var(--danger); }
.badge-status.successful { background: rgba(22,199,154,0.12); color: var(--teal-600); }
.badge-status.failed { background: rgba(229,72,77,0.1); color: var(--danger); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-500); }
.empty-state i { font-size: 2rem; color: var(--text-400); margin-bottom: 10px; display: block; }

table.trove-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-500);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
}
table.trove-table td {
    padding: 12px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.search-input {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 9px 16px 9px 38px;
    font-size: 0.86rem;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238891A4" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 12px center;
}

/* ---------------- Scroll-reveal (smooth entrance for insight panels) ---------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Insight section heading ---------------- */
.insight-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 6px 0 14px;
}
.insight-heading h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.insight-heading .sub { font-size: 0.78rem; color: var(--text-500); }

.badge-demo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-500);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 999px;
}

/* ---------------- Market ticker ---------------- */
.market-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}
.market-row:last-child { border-bottom: none; }

.market-symbol {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
}

.market-meta { min-width: 0; flex: 1 1 auto; }
.market-name { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.market-sub { font-size: 0.74rem; color: var(--text-500); }

.market-spark { flex-shrink: 0; width: 84px; height: 32px; }
.market-spark path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.1s ease;
}
.reveal-on-scroll.is-visible .market-spark path { stroke-dashoffset: 0; }
.market-spark.up path { stroke: var(--teal-500); }
.market-spark.down path { stroke: var(--danger); }

.market-price { text-align: right; flex-shrink: 0; min-width: 82px; }
.market-price .mp-value { font-size: 0.86rem; font-weight: 700; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.market-price .mp-change { font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.market-price .mp-change.up { color: var(--teal-600); }
.market-price .mp-change.down { color: var(--danger); }

/* ---------------- Animated currency bar chart ---------------- */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    height: 190px;
    padding: 10px 6px 0;
    max-width: 420px;
    margin: 0 auto;
}
@media (min-width: 992px) {
    .bar-chart { gap: 28px; }
    .bar-col { max-width: 90px; }
}
.bar-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.bar-col .bar-amount {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-500);
    margin-bottom: 8px;
    white-space: nowrap;
}
.bar-track {
    flex: 1;
    width: 100%;
    max-width: 52px;
    display: flex;
    align-items: flex-end;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}
.bar-fill {
    width: 100%;
    height: 0%;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--hero-mint), var(--teal-600));
    transition: height 1s cubic-bezier(.2,.7,.3,1);
}
.reveal-on-scroll.is-visible .bar-fill { height: var(--bar-height, 0%); }
.bar-col .bar-currency {
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
}
.bar-col .bar-symbol { color: var(--text-400); font-weight: 600; }

/* ---------------- Tax & FX overview ---------------- */
.tax-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}
.tax-row:last-child { border-bottom: none; }
.tax-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: rgba(15,42,82,0.08);
    color: var(--navy-900);
}
.tax-meta { flex: 1; min-width: 0; }
.tax-title { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.tax-sub { font-size: 0.74rem; color: var(--text-500); }
.tax-value { font-size: 0.88rem; font-weight: 700; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.tax-disclaimer {
    font-size: 0.7rem;
    color: var(--text-400);
    line-height: 1.5;
    margin-top: 10px;
}
