/* =====================================================================
   FuelCard design system — "Sky & Navy"
   Light, airy surfaces; sky-blue for interactive elements; deep navy for
   text and headings; amber kept for the main call-to-action buttons.
   ===================================================================== */
:root {
    --navy: #0B2545;        /* headings, strong text, dark surfaces */
    --navy-700: #13315C;
    --navy-500: #1D4E89;
    --sky: #2F80ED;         /* primary: links, tabs, icons, focus */
    --sky-600: #1F6FDB;
    --sky-300: #7DB8FF;
    --sky-100: #EAF3FF;     /* tints, selected rows, icon chips */
    --sky-50: #F5F9FF;      /* page background */
    --amber: #F2A541;       /* main CTA buttons */
    --amber-600: #E0932D;
    --mint: #2FBF8F;        /* success */
    --ink: #0F172A;
    --muted: #64748B;
    --line: #E3EAF5;
    --surface: #FFFFFF;
    --radius: .9rem;
    --shadow-sm: 0 1px 2px rgba(11,37,69,.04), 0 2px 8px rgba(11,37,69,.04);
    --shadow-md: 0 8px 28px rgba(11,37,69,.08);

    /* legacy names used by older views */
    --fuel: var(--navy);
    --fuel-accent: var(--amber);

    /* Bootstrap 5.3 overrides */
    --bs-primary: #2F80ED; --bs-primary-rgb: 47,128,237;
    --bs-link-color: #1F6FDB; --bs-link-color-rgb: 31,111,219;
    --bs-link-hover-color: #0B2545; --bs-link-hover-color-rgb: 11,37,69;
    --bs-body-color: #1E293B; --bs-body-bg: #F5F9FF;
    --bs-border-color: #E3EAF5;
    --bs-secondary-color: #64748B;
    --bs-success: #1FA97A; --bs-success-rgb: 31,169,122;
    --bs-info: #5AA2FF; --bs-info-rgb: 90,162,255;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-border-radius: .6rem;
    --bs-focus-ring-color: rgba(47,128,237,.25);
}
body { background: var(--sky-50); color: #1E293B; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--navy); letter-spacing: -.01em; }
h2 { font-weight: 750; }
.text-muted { color: var(--muted) !important; }
a { text-underline-offset: 2px; }

/* Navbar: white, navy brand, sky active state */
.fc-navbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(11,37,69,.02); position: sticky; top: 0; z-index: 1030; }
.fc-navbar .navbar-brand { color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.fc-navbar .navbar-brand i { color: var(--amber); }
.fc-navbar .nav-link { color: #475569; font-weight: 500; border-radius: .55rem; padding: .45rem .7rem !important; }
.fc-navbar .nav-link:hover, .fc-navbar .nav-link:focus { color: var(--navy); background: var(--sky-100); }
.fc-navbar .nav-link.active { color: var(--sky-600) !important; background: var(--sky-100); font-weight: 600; }
.fc-navbar .nav-link i { opacity: .85; }
.fc-navbar .btn-link.nav-link { text-decoration: none; }

/* Buttons */
.btn-primary { --bs-btn-bg: #2F80ED; --bs-btn-border-color: #2F80ED; --bs-btn-hover-bg: #1F6FDB; --bs-btn-hover-border-color: #1F6FDB; --bs-btn-active-bg: #1A5FC0; --bs-btn-active-border-color: #1A5FC0; }
.btn-outline-primary { --bs-btn-color: #1F6FDB; --bs-btn-border-color: #9CC5FA; --bs-btn-hover-bg: #2F80ED; --bs-btn-hover-border-color: #2F80ED; }
.btn-dark { --bs-btn-bg: #0B2545; --bs-btn-border-color: #0B2545; --bs-btn-hover-bg: #13315C; --bs-btn-hover-border-color: #13315C; }
.btn-outline-dark { --bs-btn-color: #0B2545; --bs-btn-border-color: #C9D6E8; --bs-btn-hover-bg: #0B2545; --bs-btn-hover-border-color: #0B2545; }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #D7E1EE; --bs-btn-hover-bg: #EAF3FF; --bs-btn-hover-color: #0B2545; --bs-btn-hover-border-color: #9CC5FA; }
.btn { font-weight: 600; border-radius: .6rem; }
.btn-sm { border-radius: .5rem; }

/* Forms */
.form-control, .form-select { border-color: #D7E1EE; border-radius: .6rem; }
.form-control:focus, .form-select:focus { border-color: #7DB8FF; box-shadow: 0 0 0 .22rem rgba(47,128,237,.15); }
.form-check-input:checked { background-color: #2F80ED; border-color: #2F80ED; }
.input-group-text { background: #F5F9FF; border-color: #D7E1EE; color: #64748B; }

/* Tabs, pills, badges, tables, alerts */
.nav-tabs { border-bottom-color: var(--line); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: #64748B; font-weight: 600; border-radius: 0; }
.nav-tabs .nav-link:hover { color: var(--navy); border-bottom-color: #C9D6E8; }
.nav-tabs .nav-link.active { color: var(--sky-600); background: transparent; border-bottom-color: var(--sky); }
.nav-pills .nav-link.active { background: var(--sky); }
.badge { font-weight: 600; letter-spacing: .01em; }
.text-bg-info { background-color: #DCEBFF !important; color: #1F5FBF !important; }
.text-bg-success { background-color: #D7F5EA !important; color: #127A57 !important; }
.text-bg-warning { background-color: #FDEFD9 !important; color: #8A520A !important; }
.text-bg-danger { background-color: #FDE2E2 !important; color: #B42318 !important; }
.text-bg-secondary { background-color: #E8EDF5 !important; color: #475569 !important; }
.bg-success { background-color: #1FA97A !important; }
.table { --bs-table-hover-bg: #F5F9FF; --bs-table-striped-bg: #FAFCFF; }
.table > thead th { color: #475569; }
.alert { border-radius: .8rem; }
.alert-info { --bs-alert-bg: #EEF5FF; --bs-alert-border-color: #CFE2FF; --bs-alert-color: #1D4E89; }
.alert-warning { --bs-alert-bg: #FFF7EB; --bs-alert-border-color: #F8DDB2; --bs-alert-color: #7A4A08; }
.progress-bar.bg-fuel, .bg-fuel.progress-bar { background: var(--sky) !important; }
.dropdown-item.active, .dropdown-item:active { background: var(--sky); }
.page-link { color: var(--sky-600); } .active > .page-link, .page-link.active { background: var(--sky); border-color: var(--sky); }

/* Generic surfaces used across pages */
.fc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fc-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.fc-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--sky-100); color: var(--sky-600); flex: 0 0 38px; }
.fc-icon.amber { background: #FDF1DF; color: #C77A14; } .fc-icon.mint { background: #DDF6EC; color: #13865F; } .fc-icon.rose { background: #FDE6E6; color: #C2362B; } .fc-icon.navy { background: #E3E9F3; color: #0B2545; }

.bg-fuel { background: var(--navy); }
.btn-fuel { background: var(--fuel-accent); border-color: var(--fuel-accent); color: #1d1d1d; font-weight: 600; }
.btn-fuel:hover { background: #e0932d; border-color: #e0932d; }
.stat { background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid #E3EAF5; height: 100%; box-shadow: var(--shadow-sm); }
.stat .label { color: #64748B; font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 750; color: var(--navy); letter-spacing: -.02em; }
.card-visual { background: linear-gradient(135deg, #0B2545 0%, #1D4E89 60%, #2F80ED 100%); color: #fff; border-radius: 1rem; padding: 1.25rem; max-width: 360px; }
.card-visual .num { letter-spacing: .15em; font-size: 1.2rem; }
.table td, .table th { vertical-align: middle; }

/* ---- Sign-up / password pages ---- */
.auth-wrap { max-width: 1040px; margin: .5rem auto 1.5rem; }
.auth-narrow { max-width: 480px; margin: 2rem auto; }
.auth-card { background: #fff; border: 1px solid #E3EAF5; border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 37, 69, .08); }
.auth-side { background: linear-gradient(160deg, #0B2545 0%, #1D4E89 60%, #2F80ED 100%); color: #fff; padding: 2.5rem; }
.auth-main { padding: 2.5rem; }
.auth-step { display: flex; gap: .85rem; margin-bottom: 1.1rem; align-items: flex-start; }
.auth-step .num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.auth-step.current .num { background: var(--fuel-accent); color: #1d1d1d; }
.auth-trust { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1rem; opacity: .85; }
.auth-icon { width: 56px; height: 56px; border-radius: 14px; background: #fdf1df; color: #c77a14; display: grid; place-items: center; font-size: 1.6rem; }
.auth-card .input-group-text { background: #F5F9FF; color: #64748B; }
.auth-card .form-control:focus, .auth-card .form-select:focus { border-color: #2F80ED; box-shadow: 0 0 0 .2rem rgba(47, 128, 237, .15); }
.pw-meter { height: 4px; border-radius: 2px; background: #e9ecef; overflow: hidden; }
.pw-meter > div { height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .2rem 1rem; font-size: .82rem; color: #64748B; }
.pw-rules li.ok { color: #198754; }
@media (max-width: 991.98px) { .auth-side, .auth-main { padding: 1.75rem; } }

/* ---- App shell & shared components ---- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h2 { margin-bottom: .15rem; }
.panel { background: #fff; border: 1px solid #E3EAF5; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.table-card { background: #fff; border: 1px solid #E3EAF5; border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.table-card .table { margin-bottom: 0; }
.table-card .table > :not(caption) > * > * { padding: .6rem .75rem; }
.table-card thead th { background: #F8FAFD; color: #475569; font-weight: 600; font-size: .82rem; white-space: nowrap; border-bottom-width: 1px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid #E3EAF5; border-radius: .75rem; padding: .75rem; margin-bottom: 1rem; }
.filter-bar .form-label { margin-bottom: .15rem; color: #64748B; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--fuel); }
.stat-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.stat-link:hover { border-color: #2F80ED; box-shadow: 0 4px 14px rgba(11, 37, 69, .08); color: inherit; }
.bg-fuel { background: var(--navy) !important; }
.bulk-bar { position: sticky; top: 4.5rem; z-index: 5; display: flex; align-items: center; gap: .75rem; background: #0B2545; color: #fff; border-radius: .6rem; padding: .5rem .9rem; margin-bottom: .75rem; }
.bulk-bar .btn { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.5); }
.choice-card { display: flex; gap: .85rem; align-items: flex-start; width: 100%; border: 2px solid #E3EAF5; border-radius: .75rem; padding: .9rem 1rem; cursor: pointer; background: #fff; height: 100%; }
.btn-check:checked + .choice-card { border-color: #2F80ED; background: #EEF5FF; }
.btn-check:disabled + .choice-card { cursor: not-allowed; }
.steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.steps .step { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 2rem; background: #fff; border: 1px solid #E3EAF5; color: #64748B; font-size: .88rem; }
.steps .step span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e9ecef; font-weight: 700; font-size: .75rem; }
.steps .step.current { border-color: var(--fuel-accent); color: #1d1d1d; }
.steps .step.current span { background: var(--fuel-accent); }
.steps .step.done { color: #198754; border-color: #b7e0c9; }
.steps .step.done span { background: #198754; color: #fff; }
.ticket-thread { display: flex; flex-direction: column; gap: .75rem; }
.ticket-msg { background: #fff; border: 1px solid #E3EAF5; border-radius: .75rem; padding: .9rem 1rem; }
.ticket-msg.staff { border-left: 4px solid #2F80ED; }
.ticket-msg.customer { border-left: 4px solid #adb5bd; }
.ticket-msg.internal { background: #fff8e6; border-color: #f2d48a; border-left: 4px solid var(--fuel-accent); }
.ticket-msg .msg-body { white-space: pre-wrap; }
.docs h3 { margin-top: 2rem; padding-top: .5rem; scroll-margin-top: 1rem; }
.docs-nav a { display: block; padding: .3rem 0; color: #475569; text-decoration: none; }
.docs-nav a:hover { color: var(--fuel); }
pre.code { background: #0B1B33; color: #D6E6FF; border-radius: .6rem; padding: 1rem; font-size: .82rem; overflow-x: auto; }
.navbar .dropdown-menu { border-radius: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); }


/* ---- Business verification page (Company/Onboard) ---- */
.vf-hero { position: relative; overflow: hidden; border-radius: 1.25rem; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(125,184,255,.55) 0%, rgba(125,184,255,0) 55%), linear-gradient(135deg, #0B2545 0%, #1D4E89 55%, #2F80ED 100%);
    box-shadow: 0 18px 40px rgba(11, 37, 69, .18); }
.vf-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(242,165,65,.14); pointer-events: none; }
.vf-hero-inner { position: relative; z-index: 1; padding: 1.5rem 1.75rem 1.25rem; }
.vf-back { color: rgba(255,255,255,.8); text-decoration: none; font-size: .88rem; font-weight: 500; }
.vf-back:hover { color: #fff; }
.vf-hero-icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255,255,255,.14); color: #f2a541; backdrop-filter: blur(4px); }
.vf-title { font-size: clamp(1.45rem, 2.4vw + .6rem, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .25rem; }
.vf-sub { color: rgba(255,255,255,.85); max-width: 640px; }
.vf-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 500; padding: .3rem .7rem; border-radius: 2rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.vf-steps { list-style: none; margin: 1.4rem 0 0; padding: 1rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; border-top: 1px solid rgba(255,255,255,.16); counter-reset: s; }
.vf-steps li { position: relative; display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: rgba(255,255,255,.65); }
.vf-steps li span { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.vf-steps li b { font-weight: 600; }
.vf-steps li.done { color: #fff; }
.vf-steps li.done span { background: #2FBF8F; border-color: #2FBF8F; }
.vf-steps li.current { color: #fff; }
.vf-steps li.current span { background: #f2a541; border-color: #f2a541; color: #1d1d1d; box-shadow: 0 0 0 5px rgba(242,165,65,.25); }

.vf-form-card { background: #fff; border: 1px solid #E3EAF5; border-radius: 1.1rem; box-shadow: 0 8px 28px rgba(11,37,69,.06); overflow: hidden; }
.vf-form-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #EEF3FA; background: linear-gradient(#FAFCFF, #fff); }
.vf-status { background: #fdf1df; color: #a8620c; font-weight: 600; padding: .45em .8em; }
.vf-form-body { padding: 1.25rem 1.5rem 1.5rem; min-height: 120px; }
.vf-fineprint { color: #64748B; font-size: .8rem; margin: .9rem .25rem 0; }
.vf-fineprint a { color: #2F80ED; }

.vf-skeleton { padding: 1.5rem; }
.vf-skeleton .sk { border-radius: 8px; margin-bottom: .9rem; background: linear-gradient(90deg, #EEF3FA 25%, #F8FAFD 37%, #EEF3FA 63%); background-size: 400% 100%; animation: vf-shimmer 1.3s ease infinite; }
.vf-skeleton .sk-title { height: 26px; width: 55%; }
.vf-skeleton .sk-line { height: 12px; width: 85%; }
.vf-skeleton .sk-input { height: 44px; }
@keyframes vf-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.vf-side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.vf-card { display: block; background: #fff; border: 1px solid #E3EAF5; border-radius: 1rem; padding: 1rem 1.15rem; }
.vf-card summary { list-style: none; display: flex; align-items: center; gap: .55rem; font-weight: 700; color: #0B2545; cursor: pointer; }
.vf-card summary::-webkit-details-marker { display: none; }
.vf-card[open] summary { margin-bottom: .75rem; }
.vf-card .vf-caret { transition: transform .2s; color: #64748B; }
.vf-card[open] .vf-caret { transform: rotate(180deg); }
.vf-card-title { font-size: 1rem; font-weight: 700; color: #0B2545; margin-bottom: .5rem; }
.vf-test { background: #fffaf1; border-color: #f5dcb2; }
.vf-test summary { color: #8a520a; }
.vf-testlist { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; margin: 0; font-size: .85rem; align-items: center; }
.vf-testlist dt { color: #64748B; font-weight: 500; }
.vf-testlist dd { margin: 0; text-align: right; }
.vf-copy { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; border: 1px dashed #e8c58b; background: #fff; color: #5a3a08; border-radius: .45rem; padding: .15rem .5rem; }
.vf-copy:hover, .vf-copy:focus-visible { background: #fdf1df; border-style: solid; outline: none; }
.vf-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.vf-checklist li, .vf-help { display: flex; gap: .75rem; align-items: center; }
.vf-checklist .ic, .vf-help .ic { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #EAF3FF; color: #2F80ED; font-size: 1.05rem; }
.vf-checklist b, .vf-help b { display: block; font-size: .9rem; color: #0F172A; }
.vf-checklist small, .vf-help small { display: block; color: #64748B; font-size: .8rem; line-height: 1.3; }
.vf-help { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vf-help:hover { border-color: #2F80ED; box-shadow: 0 6px 18px rgba(11,37,69,.08); transform: translateY(-1px); color: inherit; }
.vf-help .ic { background: #fdf1df; color: #c77a14; }

.vf-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; background: #0B2545; color: #fff; padding: .6rem 1rem; border-radius: 2rem; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; z-index: 1080; }
.vf-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 991.98px) {
    .vf-side { position: static; }
}
@media (max-width: 575.98px) {
    .vf-hero { border-radius: 1rem; margin-left: -.25rem; margin-right: -.25rem; }
    .vf-hero-inner { padding: 1.15rem 1.1rem 1rem; }
    .vf-hero-icon { flex-basis: 44px; height: 44px; font-size: 1.3rem; }
    .vf-steps { grid-template-columns: repeat(4, 1fr); gap: .25rem; }
    .vf-steps li { flex-direction: column; text-align: center; gap: .3rem; font-size: .7rem; }
    .vf-form-head { padding: .9rem 1rem; }
    .vf-form-head .vf-status { display: none; }
    .vf-form-body { padding: 1rem; }
    .vf-chip:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .vf-skeleton .sk { animation: none; }
    .vf-toast, .vf-help, .vf-card .vf-caret { transition: none; }
}

/* ---- Funding bank account page ---- */
.fb-balance { margin-left: auto; text-align: right; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: .9rem; padding: .6rem 1rem; }
.fb-balance small { display: block; color: rgba(255,255,255,.75); font-size: .75rem; }
.fb-balance b { font-size: 1.5rem; letter-spacing: -.01em; }
.fb-account { background: #fff; border: 1px solid #E3EAF5; border-radius: 1rem; padding: 1rem 1.15rem; }
.fb-account-top { display: flex; align-items: center; gap: .85rem; }
.fb-bank-ic { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #EAF3FF; color: #2F80ED; font-size: 1.15rem; }
.fb-verify { margin-top: .85rem; padding: .85rem; border-radius: .75rem; background: #fffaf1; border: 1px solid #f5dcb2; }
.fb-cents { width: 110px; }
.fb-empty { display: flex; gap: .85rem; align-items: center; padding: 1rem; border: 1px dashed #D7E1EE; border-radius: 1rem; background: #FAFCFF; color: #64748B; }
.fb-empty > i { font-size: 1.4rem; color: #2F80ED; }
.fb-empty b { display: block; color: #0F172A; }
.fb-empty small { display: block; }
.min-w-0 { min-width: 0; }
@media (max-width: 575.98px) {
    .fb-balance { margin-left: 0; text-align: left; width: 100%; }
    .fb-account-top { flex-wrap: wrap; }
}

/* ---- Admin pages ---- */
/* Page header: the leading Bootstrap icon in the title becomes a soft sky chip. */
.page-head { align-items: center; }
.page-head h2 { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem); }
.page-head h2 > i.bi:first-child { flex: 0 0 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 1.15rem; background: var(--sky-100); color: var(--sky-600); }
.adm-icon-lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.4rem; border-radius: 14px; }
.adm-icon-sm { width: 30px; height: 30px; flex-basis: 30px; font-size: .9rem; border-radius: 9px; }
.adm-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); font-weight: 600; }
.adm-chip-alert { background: rgba(242,165,65,.22) !important; border-color: rgba(242,165,65,.5) !important; }
.vf-hero .btn-light { --bs-btn-bg: rgba(255,255,255,.14); --bs-btn-border-color: rgba(255,255,255,.25); --bs-btn-color: #fff; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--navy); }

/* Soft, readable status badges everywhere (helpers return bg-* classes). */
.badge.bg-success { background-color: #D7F5EA !important; color: #127A57 !important; }
.badge.bg-danger { background-color: #FDE2E2 !important; color: #B42318 !important; }
.badge.bg-warning { background-color: #FDEFD9 !important; color: #8A520A !important; }
.badge.bg-info { background-color: #DCEBFF !important; color: #1F5FBF !important; }
.badge.bg-primary { background-color: #2F80ED !important; color: #fff !important; }
.badge.bg-secondary { background-color: #E8EDF5 !important; color: #475569 !important; }
.badge.bg-dark { background-color: #0B2545 !important; color: #fff !important; }
.badge.bg-light { background-color: #F5F9FF !important; color: #475569 !important; }
.badge.bg-fuel { background-color: #0B2545 !important; color: #fff !important; }
.badge.text-bg-light.border { background: #F5F9FF !important; color: #1D4E89 !important; border-color: #D7E1EE !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; font-size: .74rem; }
.adm-dot { font-size: .45rem; vertical-align: middle; margin-right: .2rem; }

/* KPI tiles with an icon chip */
.stat.adm-kpi { position: relative; padding-top: 1rem; }
.stat.adm-kpi > .fc-icon { margin-bottom: .55rem; }
.stat-link.adm-kpi:hover { transform: translateY(-1px); }
.stat-link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.adm-sum { background: linear-gradient(180deg, #fff, #FAFCFF); }
.adm-role { position: relative; }
.adm-role > .fc-icon { margin-bottom: .5rem; }
.adm-role b { display: block; color: var(--navy); }
.adm-role-count { position: absolute; top: .9rem; right: 1rem; font-size: 1.4rem; font-weight: 750; color: var(--navy); }

/* Filter bar, segmented pills, tables */
.filter-bar { box-shadow: var(--shadow-sm); border-radius: var(--radius); padding: .85rem 1rem; }
.filter-bar .form-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.adm-seg { gap: .35rem; flex-wrap: wrap; }
.adm-seg .nav-link { border-radius: 999px; padding: .4rem .9rem; color: #475569; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.adm-seg .nav-link:hover { color: var(--navy); border-color: #9CC5FA; }
.adm-seg .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.adm-seg .nav-link.active .badge { background: rgba(255,255,255,.2) !important; color: #fff !important; }
.table-card thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.table-card .table > tbody > tr:last-child > td { border-bottom: 0; }
.table-card td .fw-semibold, .table-card td .fw-bold { color: var(--navy); }
.fc-empty { text-align: center; color: var(--muted); padding: 2.25rem 1rem !important; }
.fc-empty > i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-100); color: var(--sky-600); font-size: 1.35rem; margin-bottom: .5rem; }
.adm-card-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: .5rem; background: linear-gradient(135deg, #0B2545, #2F80ED); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }

/* Avatars and lists */
.adm-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #EAF3FF, #D6E6FF); color: var(--navy-500); font-weight: 700; font-size: .85rem; }
.adm-avatar-sm { width: 24px; height: 24px; flex-basis: 24px; font-size: .7rem; vertical-align: middle; }
.adm-avatar.staff { background: linear-gradient(135deg, #0B2545, #2F80ED); color: #fff; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #EEF3FA; }
.adm-list li:last-child { border-bottom: 0; }
.adm-bar { height: 7px; background: #EEF3FA; border-radius: 99px; }
.adm-bar .progress-bar { background: linear-gradient(90deg, #2F80ED, #7DB8FF); border-radius: 99px; }

/* "Needs attention" list on the admin dashboard */
.adm-attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.adm-attn a { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: .75rem; border: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, background .15s; }
.adm-attn a:hover { border-color: #9CC5FA; background: #FAFCFF; }
.adm-attn b { display: block; font-size: .88rem; color: var(--navy); }
.adm-attn small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.adm-attn .adm-count { min-width: 30px; text-align: center; font-weight: 800; font-size: .95rem; padding: .15rem .5rem; border-radius: 99px; background: #FDEFD9; color: #8A520A; }
.adm-attn a.is-clear { opacity: .6; }
.adm-attn a.is-clear .adm-count { background: #D7F5EA; color: #127A57; }
.adm-attn .adm-attn-sub a { border: 0; padding: .1rem .7rem .1rem 3.4rem; font-size: .82rem; color: var(--sky-600); background: transparent; }

/* "Filtered to <Company>" context chip */
.fc-filter-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .7rem .9rem; margin-bottom: 1rem; border-radius: var(--radius); background: linear-gradient(90deg, #EAF3FF, #F5F9FF); border: 1px solid #CFE2FF; }
.fc-filter-chip small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fc-filter-chip b { color: var(--navy); }

/* Finance & reports */
.adm-range .form-control { width: auto; }
.adm-reports .list-group-item { border-color: var(--line); }
.adm-reports .list-group-item-action:hover { background: #F5F9FF; }
.adm-reports .list-group-item b { color: var(--navy); }

/* Ticket thread */
.ticket-msg { box-shadow: var(--shadow-sm); }
.ticket-msg.staff { background: #FAFCFF; }

@media (max-width: 767.98px) {
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head > div:last-child:not(:first-child) { display: flex; flex-wrap: wrap; gap: .5rem; }
    .filter-bar > div { flex: 1 1 100%; }
    .filter-bar > div:last-child { display: flex; gap: .5rem; }
    .fc-filter-chip > .btn { flex: 1 1 auto; }
    .adm-role-count { position: static; }
    .table-card { -webkit-overflow-scrolling: touch; }
    .table-card table { min-width: 640px; }
}


/* ---- Fixes: hero titles on dark banners, selected toggle buttons, bank name lookup ---- */
.vf-hero h1, .vf-hero .vf-title, .vf-hero h2, .ah-hero h1 { color: #fff; }
.btn-check:checked + .btn-outline-secondary, .btn-check:checked + .btn-outline-primary { background: #2F80ED; border-color: #2F80ED; color: #fff; }
.fb-bankname { display: flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem .75rem; border-radius: .6rem; border: 1px dashed #D7E1EE; background: #F8FAFD; color: #64748B; font-size: .92rem; }
.fb-bankname.loading { color: #1F6FDB; }
.fb-bankname.ok { border-style: solid; border-color: #A7E3CB; background: #EFFBF6; color: #0F5132; font-weight: 600; }
.fb-bankname.ok i { color: #1FA97A; }
.fb-bankname.bad { border-style: solid; border-color: #F5C2C0; background: #FFF5F5; color: #B42318; }


/* ---- Light sky banners (replaces the dark navy gradient) ---- */
.vf-hero { color: #0B2545; border: 1px solid #D6E6FF;
    background: radial-gradient(90% 140% at 100% 0%, rgba(125,184,255,.35) 0%, rgba(125,184,255,0) 60%), linear-gradient(135deg, #EAF3FF 0%, #F3F8FF 55%, #FFFFFF 100%);
    box-shadow: 0 10px 30px rgba(47,128,237,.10); }
.vf-hero::after { border-color: rgba(47,128,237,.08); }
.vf-hero h1, .vf-hero .vf-title, .vf-hero h2 { color: #0B2545 !important; }
.vf-hero .vf-sub { color: #475569; }
.vf-hero .vf-back { color: #1F6FDB; }
.vf-hero .vf-back:hover { color: #0B2545; }
.vf-hero .vf-hero-icon { background: #fff; color: #2F80ED; border: 1px solid #D6E6FF; box-shadow: 0 4px 14px rgba(47,128,237,.12); backdrop-filter: none; }
.vf-hero .vf-chip { background: #fff; border-color: #D6E6FF; color: #1D4E89; }
.vf-hero .vf-chip i { color: #2F80ED; }
.vf-hero .adm-eyebrow { color: #1F6FDB; }
.vf-hero .adm-chip-alert { background: #FDEFD9 !important; border-color: #F8DDB2 !important; color: #8A520A; }
.vf-hero .btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #CFE2FF; --bs-btn-color: #1D4E89; --bs-btn-hover-bg: #EAF3FF; --bs-btn-hover-border-color: #9CC5FA; --bs-btn-hover-color: #0B2545; }
.vf-steps { border-top-color: #D6E6FF; }
.vf-steps li { color: #64748B; }
.vf-steps li span { background: #fff; border-color: #CFE2FF; color: #64748B; }
.vf-steps li.done, .vf-steps li.current { color: #0B2545; }
.fb-balance { background: #fff; border-color: #D6E6FF; box-shadow: 0 4px 14px rgba(47,128,237,.10); }
.fb-balance small { color: #64748B; }
.fb-balance b { color: #0B2545; }

/* ---- Navbar: single-line items, compact account menu ---- */
.fc-navbar { padding-top: .45rem; padding-bottom: .45rem; }
.fc-navbar .navbar-nav { gap: .1rem; }
.fc-navbar .navbar-nav .nav-link { display: flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .93rem; }
.fc-navbar .navbar-nav .nav-link i { font-size: 1rem; }
.fc-navbar .dropdown-menu { border: 1px solid #E3EAF5; border-radius: .8rem; box-shadow: 0 12px 32px rgba(11,37,69,.12); padding: .4rem; }
.fc-navbar .dropdown-item { border-radius: .5rem; padding: .45rem .7rem; display: flex; align-items: center; gap: .5rem; }
.fc-navbar .dropdown-item:hover { background: #EAF3FF; color: #0B2545; }
.fc-account-toggle { gap: .55rem !important; padding: .3rem .55rem !important; border: 1px solid #E3EAF5; border-radius: 2rem !important; background: #fff; }
.fc-account-toggle:hover { border-color: #9CC5FA; }
.fc-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #2F80ED, #7DB8FF); color: #fff; font-weight: 700; font-size: .85rem; flex: 0 0 30px; }
.fc-account-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.fc-account-email { font-size: .82rem; color: #0B2545; font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.fc-account-role { font-size: .7rem; color: #1F6FDB; font-weight: 600; }
.fc-account-menu { min-width: 240px; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .fc-account-text { display: none; }               /* avatar only on mid-size screens */
    .fc-navbar .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; }
}
@media (max-width: 1199.98px) {
    .fc-navbar .navbar-collapse { padding: .5rem 0 .75rem; }
    .fc-account { border-top: 1px solid #E3EAF5; margin-top: .5rem; padding-top: .5rem; }
    .fc-account-toggle { border: 0; background: transparent; padding-left: .3rem !important; }
}


/* Deposit instructions on the funding page */
.fb-deposit { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; margin: 0; align-items: center; }
.fb-deposit dt { color: #64748B; font-weight: 500; font-size: .88rem; }
.fb-deposit dd { margin: 0; font-weight: 600; color: #0B2545; }
@media (max-width: 575.98px) { .fb-deposit { grid-template-columns: 1fr; } .fb-deposit dt { margin-top: .4rem; } }

/* Open-your-FuelCard-account checklist */
.fb-open-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.fb-open-steps li { display: flex; gap: .85rem; align-items: flex-start; }
.fb-open-steps li > span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #EEF3FA; color: #64748B; border: 2px solid #E3EAF5; }
.fb-open-steps li.todo > span { background: #F2A541; border-color: #F2A541; color: #1d1d1d; }
.fb-open-steps li.done > span { background: #2FBF8F; border-color: #2FBF8F; color: #fff; }
.fb-open-steps b { color: #0B2545; }

/* Card page: add to driver's phone */
.cw-panel { border-color: #CFE2FF; background: linear-gradient(180deg, #F5F9FF, #fff); }
.cw-qr { flex: 0 0 120px; padding: 4px; background: #fff; border: 1px solid #E3EAF5; border-radius: 10px; }
.cw-qr img, .cw-qr canvas { display: block; }

/* ---- Branded card face (company colour, company name, card holder) ---- */
.brand-card { position: relative; overflow: hidden; border-radius: 18px; padding: 18px 20px 14px; max-width: 360px; aspect-ratio: 1.586;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 36px rgba(11,37,69,.22); font-family: Inter, system-ui, sans-serif; }
.brand-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255,255,255,.10); pointer-events: none; }
.brand-card .bc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.brand-card .bc-company { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.brand-card .bc-kind { font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.18); white-space: nowrap; }
.brand-card .bc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #F7D58B, #D9A441); opacity: .9; position: relative; z-index: 1; }
.brand-card .bc-num { font-size: 1.15rem; letter-spacing: .14em; position: relative; z-index: 1; }
.brand-card .bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: .85rem; font-weight: 600; position: relative; z-index: 1; }
.brand-card small { display: block; opacity: .72; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.brand-card .bc-holder { min-width: 0; }
.brand-card .bc-holder > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-card .bc-vehicle { font-weight: 500; opacity: .85; font-size: .78rem; }
.brand-card .bc-powered { position: absolute; left: 20px; bottom: 4px; font-size: .55rem; opacity: .55; letter-spacing: .06em; z-index: 1; }
.brand-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--fc-line, #E3EAF5); cursor: pointer; padding: 0; }
.brand-swatch.active { box-shadow: 0 0 0 2px var(--fc-sky, #2F80ED); }

/* Cloudflare Turnstile widget on Login / Register */
.fc-turnstile { min-height: 65px; margin: .25rem 0 1rem; }
.fc-turnstile .cf-turnstile { width: 100%; }
.fc-turnstile-msg { margin-top: .35rem; }
