/* Inter, self-hosted (variable weight 100-900) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The Taka sign only (Noto Sans Bengali subset, SIL OFL): Inter has no glyph for it and not every device has a Bengali font */
@font-face { font-family: "TakaSign"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/taka-sign.woff2") format("woff2"); unicode-range: U+09F3; }

/* ==========================================================================
   ICREST UI  -  design system layered over the legacy template
   Loaded LAST in every layout. Mobile first, light theme.
   ========================================================================== */

:root {
    --brand: #17171b;
    --brand-700: #0d0d10;
    --brand-600: #d97706;
    --brand-100: #fde8c3;
    --brand-50: #fff6e5;
    --accent: #f39c12;
    --accent-50: #fff6e6;

    --bg: #f4f5f9;
    --surface: #ffffff;
    --text: #1f2430;
    --text-2: #4b5263;
    --muted: #7b8294;
    --line: #e7e9f0;
    --line-2: #f0f2f7;

    --success: #15803d;  --success-bg: #e8f7ee;
    --danger: #c62828;   --danger-bg: #fdecec;
    --warning: #b45309;  --warning-bg: #fff4e0;
    --info: #1d4ed8;     --info-bg: #e8effd;
    --neutral: #5b6475;  --neutral-bg: #eef0f5;

    /* Action colour (primary buttons, the active item, key links), taken from the logo's orange family: the logo's amber #faa63d (hue 33) and its
       red-orange traces #f15c22 (hue 17) meet at hue 26, deepened so white text reads. Light mode: --action fill, --action-text for orange text on white.
       Dark mode (dark.css): a calmer, less bright fill (#c45f13, white text and the surface contrast both about 4.2:1) and a soft light-orange text, so it is easy on the eyes. Use these tokens, not a hex. */
    --action: #d9650f;
    --action-hover: #bf570a;
    --action-press: #a84a08;
    --on-action: #ffffff;
    --action-soft: #fdeee0;
    --action-text: #b34d08;
    --action-ring: rgba(217, 101, 15, .35);
    --action-light: #f8b461;        /* a noticeable, light amber fill (the logo's amber, softened) with dark text: for a button that must be seen but not heavy */
    --on-action-light: #2a1a06;
    --action-light-hover: #f3a443;

    /* Corner scale (fixed px, picked by the size of the element): --r-sm 4px for tags, chips, bars and codes; --md 8px for buttons, tabs, inputs,
       selects and icon buttons; --r-lg 12px for cards, tables, tiles and pop-ups. Circles (avatars, dots) stay 50%. See .rules/claude/admin-ui.md */
    --r-sm: 4px;
    --md: 8px;
    --r-lg: 12px;
    --radius: var(--r-lg);
    --radius-sm: var(--md);
    --shadow-sm: 0 1px 2px rgba(20, 20, 43, .06);
    --shadow: 0 1px 3px rgba(20, 20, 43, .06), 0 8px 24px rgba(20, 20, 43, .06);
    --shadow-lg: 0 12px 40px rgba(20, 20, 43, .18);

    --sidebar-w: 268px;
    --topbar-h: 64px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font) !important;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg) !important;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font) !important; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
a { color: var(--brand); }
a:hover { color: var(--brand-600); text-decoration: none; }
p { color: var(--text-2); }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
img { max-width: 100%; }

/* ---------- App shell ---------- */
.app-topbar {
    position: fixed; z-index: 1030; top: 0; left: var(--sidebar-w); right: 0; height: var(--topbar-h);
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px 0 16px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.app-burger {
    display: none; width: 40px; height: 40px; border: 0; border-radius: var(--md);
    background: transparent; color: var(--text); font-size: 20px; cursor: pointer;
}
.app-burger:hover { background: var(--line-2); }
.app-context { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-context .chip {
    background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .04em;
    padding: 4px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
.app-context .title {
    color: var(--text-2); font-weight: 500; font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw;
}
.app-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.app-user { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: var(--md); cursor: pointer; }
.app-user:hover { background: var(--line-2); }
.app-user .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.app-user .who { text-align: left; line-height: 1.2; }
.app-user .who b { display: block; font-size: 13px; color: var(--text); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user .who small { color: var(--muted); font-size: 11px; }
.app-user .fa-angle-down { color: var(--muted); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; font-size: 14px; }
.dropdown-item { border-radius: var(--md); padding: 8px 12px; color: var(--text-2); }
.dropdown-item i { width: 20px; color: var(--muted); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-50); color: var(--brand); }
.dropdown-item:hover i { color: var(--brand); }
.dropdown-header { padding: 8px 12px; }
.dropdown-header b { display: block; color: var(--text); font-size: 13px; }
.dropdown-header small { color: var(--muted); }

.app-sidebar {
    position: fixed; z-index: 1040; top: 0; bottom: 0; left: 0; width: var(--sidebar-w);
    background: var(--surface); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; transition: transform .22s ease;
}
.app-sidebar .brand { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); padding: 0 20px; border-bottom: 1px solid var(--line-2); }
.app-sidebar .brand img { height: 30px; width: auto; }
.app-sidebar .close-nav { display: none; border: 0; background: transparent; font-size: 18px; color: var(--muted); }
.app-nav { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.app-nav .nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.app-nav ul { list-style: none; margin: 0; padding: 0; }
.app-nav a.nav-link-x {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0;
    border-radius: var(--md); color: var(--text-2); font-weight: 550; font-size: 14px; position: relative;
}
.app-nav a.nav-link-x .ico { width: 20px; text-align: center; color: var(--muted); font-size: 15px; }
.app-nav a.nav-link-x .caret { margin-left: auto; font-size: 12px; color: var(--muted); transition: transform .2s; }
.app-nav a.nav-link-x[aria-expanded="true"] .caret { transform: rotate(180deg); }
.app-nav a.nav-link-x:hover { background: var(--line-2); color: var(--text); }
.app-nav a.nav-link-x.active { background: var(--brand-50); color: var(--brand); }
.app-nav a.nav-link-x.active .ico { color: var(--brand); }
.app-nav a.nav-link-x.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 var(--md) var(--md) 0; background: var(--brand); }
.app-nav .badge-count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); }
.app-nav .nav-link-x .badge-count + .caret { margin-left: 8px; }
.app-nav .sub { padding: 2px 0 6px 32px; }
.app-nav .sub a { display: flex; align-items: center; padding: 7px 12px; border-radius: var(--md); color: var(--text-2); font-size: 13.5px; }
.app-nav .sub a:hover { background: var(--line-2); }
.app-nav .sub a.active { color: var(--brand); font-weight: 650; }
.app-sidebar .foot { padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

.app-overlay { display: none; position: fixed; inset: 0; z-index: 1035; background: rgba(17, 12, 28, .5); }

.app-main { margin-left: var(--sidebar-w); padding: calc(var(--topbar-h) + 24px) 28px 8px; min-height: 100vh; display: flex; flex-direction: column; }
.app-main > .container-fluid { padding: 0; max-width: 1400px; width: 100%; margin: 0 auto; }
.app-footer { margin-top: auto; padding: 28px 0 18px; text-align: center; font-size: 12.5px; color: var(--muted); }
.app-footer a { color: var(--text-2); font-weight: 600; }

@media (max-width: 991.98px) {
    .app-topbar { left: 0; }
    .app-burger { display: inline-flex; align-items: center; justify-content: center; }
    .app-sidebar { transform: translateX(-100%); width: min(84vw, 300px); }
    body.nav-open .app-sidebar { box-shadow: var(--shadow-lg); }
    .app-sidebar .close-nav { display: inline-block; }
    body.nav-open .app-sidebar { transform: translateX(0); }
    body.nav-open .app-overlay { display: block; }
    body.nav-open { overflow: hidden; }
    .app-main { margin-left: 0; padding: calc(var(--topbar-h) + 16px) 16px 8px; }
    .app-user .who, .app-user .fa-angle-down { display: none; }
    .app-context .title { max-width: 30vw; }
}
@media (max-width: 575.98px) {
    .app-topbar { padding: 0 12px 0 8px; gap: 6px; }
    .app-context .title { display: none; }
    .app-top-actions .btn .lbl { display: none; }
}

/* ---------- Page header (legacy .db-breadcrumb) ---------- */
.db-breadcrumb {
    display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; background: transparent !important;
}
.db-breadcrumb > [class*="col-"] { flex: 0 1 auto; width: auto; max-width: none; padding: 0; }
.db-breadcrumb > [class*="col-"]:last-child { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.db-breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.db-breadcrumb-list li { display: inline-flex; align-items: center; color: var(--text); font-weight: 650; font-size: 15px; }
.db-breadcrumb-list li a { color: var(--muted); font-weight: 500; font-size: 13px; }
.db-breadcrumb-list li a:hover { color: var(--brand); }
.db-breadcrumb-list li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #c4c9d6; font-weight: 400; }
.db-breadcrumb-list li i { margin-right: 4px; }
.db-breadcrumb .btn { margin: 0 !important; }

/* ---------- Cards & boxes ---------- */
.card, .widget-box, .card.custom-card {
    background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important; overflow: hidden;
}
.card-body { padding: 20px; }
.widget-box { margin-bottom: 20px; }
.widget-box .widget-inner { padding: 20px; }
.widget-box[style*="background"] { background: var(--surface) !important; }
.widget-box .wc-title, .widget-box > .wc-title { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.widget-box .wc-title h4 { margin: 0; font-size: 16px; }
.m-b30 { margin-bottom: 20px !important; }
.m-b20 { margin-bottom: 16px !important; }
hr { border-top: 1px solid var(--line); }

/* Stat tiles (legacy gradient .widget-card) */
.widget-card {
    --tile: var(--brand);
    background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 20px; position: relative; overflow: hidden; padding: 0 !important;
    transition: box-shadow .2s, transform .2s;
}
.row > [class*="col-"] > .widget-card { height: calc(100% - 20px); }
.widget-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tile); }
.widget-card:hover { box-shadow: var(--shadow); }
.widget-card.widget-bg1 { --tile: var(--brand); }
.widget-card.widget-bg2 { --tile: #475569; }
.widget-card.widget-bg3 { --tile: #0891b2; }
.widget-card.widget-bg4 { --tile: var(--accent); }
.widget-card.widget-bg5 { --tile: #16a34a; }
.widget-card .wc-item { position: static; padding: 16px 18px 14px 22px !important; margin: 0 !important; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2px 12px; color: var(--text) !important; background: transparent !important; }
.widget-card .wc-title { order: 1; flex: 1 1 100%; margin: 0 0 2px; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.widget-card .wc-des { order: 3; flex: 1 1 auto; font-size: 12.5px; color: var(--muted) !important; line-height: 1.35; max-width: 70%; }
.widget-card .wc-stats { order: 2; flex: 1 1 100%; position: static !important; float: none !important; text-align: left !important; font-size: 30px; font-weight: 750; line-height: 1.15; color: var(--text) !important; letter-spacing: -.02em; }
.widget-card .wc-stats span { color: inherit !important; }
.widget-card .wc-progress, .widget-card .progress { order: 4; flex: 1 1 100%; height: 4px; margin-top: 12px; background: var(--line-2); border-radius: var(--r-sm); }
.widget-card .progress-bar { background: var(--tile) !important; border-radius: var(--r-sm); opacity: .85; }
.widget-card .wc-item > * { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font); font-weight: 600 !important; font-size: 13.5px; letter-spacing: 0;
    border-radius: var(--md) !important; padding: 8px 16px; text-transform: none !important;
    border: 1px solid transparent; box-shadow: none !important; transition: background .15s, border-color .15s, color .15s, transform .05s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn i { margin: 0; }
.btn-primary, .btn.button-md, .btn.blue { background: var(--action) !important; border-color: var(--action) !important; color: var(--on-action) !important; }
.btn-primary:hover, .btn.button-md:hover, .btn.blue:hover { background: var(--action-hover) !important; border-color: var(--action-hover) !important; color: var(--on-action) !important; }
.btn-dark, .btn.black { background: #2b2f3a !important; border-color: #2b2f3a !important; color: #fff !important; }
.btn-dark:hover, .btn.black:hover { background: #12141b !important; }
.btn-success, .btn.green { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
.btn-success:hover, .btn.green:hover { filter: brightness(.92); }
.btn-danger, .btn.red { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.btn-danger:hover, .btn.red:hover { filter: brightness(.92); }
.btn-info { background: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
.btn-warning { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.btn-secondary, .btn-light { background: #fff !important; border-color: var(--line) !important; color: var(--text-2) !important; }
.btn-secondary:hover, .btn-light:hover { background: var(--line-2) !important; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-sm, .btn.button-sm { padding: 5px 11px; font-size: 12.5px; border-radius: var(--md) !important; }
.btn.button-lg { padding: 12px 22px; font-size: 15px; }

/* Table action buttons: md corners; icon-only ones are square (1:1) */
table .btn, table .btn-sm, table .button-sm { border-radius: var(--radius-sm) !important; }
table .btn.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0 !important; line-height: 1;
}
@media (max-width: 990px) {
    table .btn.btn-icon { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
}
.btn.button-md { padding: 10px 22px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.orders-btn .btn { margin: 0 2px; }

/* ---------- Forms ---------- */
label { font-weight: 600 !important; font-size: 13px; color: var(--text); margin-bottom: 6px !important; }
.form-control, .custom-select, select.form-control {
    height: auto; min-height: 42px; padding: 9px 12px; font-size: 14px; color: var(--text);
    background: #fff; border: 1px solid #d5d9e4 !important; border-radius: var(--md) !important; box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { min-height: 96px; }
.form-control::placeholder { color: #a3a9b8; }
.form-control:focus, .custom-select:focus { border-color: var(--brand-600) !important; box-shadow: 0 0 0 3px rgba(243, 156, 18, .15) !important; }
.form-control.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback { color: var(--danger); font-size: 12.5px; }
.form-group { margin-bottom: 16px; }
.form-text, small.text-muted { color: var(--muted) !important; }
input[type=file].form-control, input[type=file].form-control-file { padding: 8px 10px; background: var(--brand-50); border-style: dashed !important; border-radius: var(--md); width: 100%; }
.custom-control-label { font-weight: 500 !important; }
.select2-container--default .select2-selection--single { height: 42px !important; border: 1px solid #d5d9e4 !important; border-radius: var(--md) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px !important; padding-left: 12px; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px !important; }
.select2-dropdown { border: 1px solid var(--line) !important; border-radius: var(--md) !important; box-shadow: var(--shadow-lg); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand) !important; }
input[type=date].form-control { min-width: 0; }
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--multiple { min-height: 42px; border: 1px solid #d5d9e4 !important; border-radius: var(--md) !important; padding: 3px 6px; }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand-600) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand); border-radius: var(--md); padding: 2px 10px; margin-top: 5px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--brand); margin-right: 6px; }
.select2-search--inline .select2-search__field { margin-top: 7px !important; }

/* ---------- Tables ---------- */
.table-responsive { border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table { color: var(--text-2); margin-bottom: 0; font-size: 13.5px; }
.table thead th {
    background: #f8f9fc; color: var(--muted); font-size: 11px !important; font-weight: 700 !important; letter-spacing: .05em; text-transform: uppercase;
    border-top: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 11px 10px; white-space: nowrap; vertical-align: middle;
}
.table td, .table tbody th { padding: 11px 10px; vertical-align: middle; border-top: 1px solid var(--line-2) !important; }
.table tbody tr:hover { background: #fbf9fd; }
.table-bordered, .table-bordered td, .table-bordered th { border: 0 !important; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table td[style*="font-weight"], .table td strong, .table td b { font-weight: 600 !important; }
.table td, .table th { text-align: left; }
.table td[style*="text-align:center"], .table th[style*="text-align:center"] { text-align: center !important; }
.table td[style*="color:red"], .table td[style*="color: red"] { color: #9aa1b2 !important; font-weight: 500 !important; }
.table td .orders-btn, .table td .btn { white-space: nowrap; }
.table td:last-child { white-space: nowrap; }
.table td .badge { white-space: nowrap; }
.table tr[style*="#FADBD8"], .table tr[style*="#fadbd8"] { background: transparent !important; }
.table tr[style*="#D5F5E3"], .table tr[style*="#d5f5e3"] { background: #f1fbf5 !important; }
.table tr[style*="#FEF9E7"], .table tr[style*="#fef9e7"] { background: #fffaf0 !important; }
div.dataTables_wrapper { padding: 4px 0 0; }
div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter { margin-bottom: 12px; }
div.dataTables_wrapper div.dataTables_length select, div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #d5d9e4; border-radius: var(--md); padding: 7px 10px; height: auto; min-height: 38px; background: #fff;
}
div.dataTables_wrapper div.dataTables_filter input { margin-left: 8px; min-width: 200px; }
div.dataTables_wrapper div.dataTables_info { color: var(--muted); font-size: 13px; padding-top: 14px; }
div.dataTables_wrapper div.dataTables_paginate { padding-top: 10px; }
.dt-buttons .dt-button, .dt-button { border: 1px solid var(--line) !important; background: #fff !important; border-radius: var(--md) !important; padding: 6px 10px !important; color: var(--text-2) !important; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { background-color: #f8f9fc; }
table.dataTable { border-collapse: collapse !important; }

/* ---------- Badges, alerts, pagination ---------- */
.badge { font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: var(--r-sm); letter-spacing: .01em; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--brand-100); color: var(--brand); }
.badge-secondary, .badge-light { background: var(--neutral-bg); color: var(--neutral); }
.badge-dark { background: #2b2f3a; color: #fff; }
.alert { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; }
.alert-danger { background: var(--danger-bg); border-color: #f6c6c6; color: #8f1d1d; }
.alert-warning { background: var(--warning-bg); border-color: #f5d9a8; color: #8a4207; }
.alert-info { background: var(--info-bg); border-color: #c5d5f7; color: #1e3a8a; }
.alert-success { background: var(--success-bg); border-color: #bde5cb; color: #166534; }
.pagination { gap: 4px; flex-wrap: wrap; }
.page-link { border-radius: var(--md) !important; border: 1px solid var(--line); color: var(--text-2); padding: 6px 12px; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- Modals & toasts ---------- */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.modal-title { font-weight: 700 !important; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-body > .col-12, .modal-body > .form-group { padding-left: 0; padding-right: 0; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 20px; background: #fafbfd; gap: 8px; }
.modal .close { font-size: 26px; font-weight: 400; color: var(--muted); opacity: 1; }
@media (max-width: 575.98px) { .modal-dialog { margin: 12px; } }
#toast-container > div { border-radius: var(--md); box-shadow: var(--shadow-lg); opacity: 1; padding: 14px 14px 14px 50px; }
#toast-container.toast-top-right { top: calc(var(--topbar-h) + 12px); right: 12px; }
@media (max-width: 575.98px) { #toast-container > div { width: auto !important; } }

/* ---------- Dashboard lists ---------- */
.new-user-list ul, .orders-list ul { list-style: none; margin: 0; padding: 0; }
.new-user-list li, .orders-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.new-user-list li:last-child, .orders-list li:last-child { border-bottom: 0; }
.new-user-list h6, .orders-title-name { font-size: 14px; font-weight: 650; color: var(--text); margin: 0 0 2px; line-height: 1.35; }
.new-users-info, .orders-info { display: block; font-size: 12.5px; color: var(--muted); }
div[style*="color:red; text-transform: uppercase"], div[style*="color:red; text-transform:uppercase"] {
    color: var(--muted) !important; text-transform: none !important; font-weight: 500 !important; font-size: 13.5px !important; padding: 28px 0 !important;
}
div[style*="color:red; text-transform: uppercase"] strong, div[style*="color:red; text-transform:uppercase"] strong { padding: 0 !important; font-weight: 500; }

/* ---------- Invoice / receipt page ---------- */
.receipt-content .container { max-width: 880px; width: 100%; padding: 0; }
.receipt-content .invoice-wrapper { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 36px 32px; margin-top: 0; background: #fff; }
.receipt-content .invoice-wrapper .payment-info { margin-top: 0; padding-top: 0; }
.receipt-content .invoice-wrapper .payment-details { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.receipt-content .invoice-wrapper .payment-details span, .receipt-content .invoice-wrapper .payment-info span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.receipt-content .invoice-wrapper .line-items .headers { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 0 0 10px; }
.receipt-content .invoice-wrapper .line-items .items { border-bottom: 1px solid var(--line); }
.receipt-content .invoice-wrapper .line-items table { width: 100%; }
.receipt-content .invoice-wrapper .line-items td, .receipt-content .invoice-wrapper .line-items th { padding: 10px 0; }
.receipt-content .invoice-wrapper .line-items .total .field.grand-total span { color: var(--success); }
@media (max-width: 575.98px) {
    .receipt-content .invoice-wrapper { padding: 20px 16px 24px; }
    .receipt-content .invoice-wrapper .payment-details .text-right, .receipt-content .invoice-wrapper .payment-info .text-right { text-align: left !important; margin-top: 16px; }
    .receipt-content .invoice-wrapper .line-items .total .extra-notes { width: 100%; float: none; margin-bottom: 18px; }
}

/* ---------- KYC / file viewer ---------- */
.kyc-files .card { box-shadow: none !important; }
.kyc-files .kyc-thumb { background: var(--brand-50) !important; }

/* ---------- Auth (login layout) ---------- */
body.auth-body { background: var(--bg) !important; }
.auth { min-height: 100vh; display: flex; }
.auth-aside {
    flex: 0 0 44%; max-width: 44%; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow: hidden; color: #fff; padding: 56px 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(160deg, rgba(12, 12, 15, .94), rgba(27, 27, 31, .9)), var(--auth-img) center / cover no-repeat;
}
.auth-aside > div { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 520px; }
.auth-aside .logo-card { display: inline-flex; align-items: center; }
.auth-aside .logo-card img { height: 52px; width: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.auth-aside h1 { color: #fff; font-size: 28px; line-height: 1.25; font-weight: 750; margin: 32px 0 6px; letter-spacing: -.02em; }
.auth-aside p { color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 420px; }
.auth-points { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); margin-bottom: 14px; font-size: 14.5px; }
.auth-points li i { margin-top: 3px; color: var(--accent); }
.auth-aside small { color: rgba(255, 255, 255, .6); }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-mobile-logo { display: none; text-align: center; margin-bottom: 22px; }
.auth-mobile-logo img { height: 46px; }
.auth-footer { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-footer a { color: var(--text-2); font-weight: 600; }
.auth .account-container { max-width: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--md); box-shadow: var(--shadow); padding: 32px 32px 28px; width: 100%; }
.auth .heading-bx { padding-bottom: 18px !important; }
.auth .heading-bx .title-head, .auth .heading-bx h2 { font-size: 24px; font-weight: 750; margin: 0 0 8px; letter-spacing: -.02em; border: 0; padding: 0; }
.auth .heading-bx h2 span { color: var(--brand); }
.auth .heading-bx p, .auth .heading-bx li { color: var(--muted); font-size: 14px; margin: 2px 0; }
.auth .heading-bx li { list-style: none; color: var(--text-2) !important; font-weight: 500 !important; }
.auth .heading-bx .title-head::before, .auth .heading-bx::before, .auth .heading-bx::after { display: none; }
.auth .account-container .btn.button-md { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; }
.auth .account-container .btn.button-md[disabled] { opacity: .7; cursor: not-allowed; }
.auth .field > label { font-weight: 650; font-size: 13.5px; margin-bottom: 6px; color: var(--text); }
.auth .input-icon > .form-control { height: 46px; border-radius: var(--md); }
.auth-link { font-size: 13.5px; font-weight: 600; color: var(--brand-600) !important; }
.auth-link:hover { text-decoration: underline; }
.auth-alt { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--md); font-size: 13.5px; margin-bottom: 16px; line-height: 1.5; }
.auth-note.ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.auth-note i { margin-top: 3px; }
.auth .form-forget { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth .col-lg-12[style*="text-align: right"] { text-align: left !important; }
.auth .form-group, .auth .placeani .form-group { margin: 0 0 14px !important; }
.auth .form-group label { display: block; }
.auth .form-group label small, .auth .form-group label span[style] { font-weight: 500; }
.auth-card:has(form .col-md-6), .auth-card:has(.stepper), .auth-card:has(.doc-card) { max-width: 620px; }
.auth .custom-control { position: relative; display: flex; align-items: center; min-height: 24px; padding-left: 28px; }
.auth .custom-control-input { position: absolute; left: 0; width: 20px; height: 20px; opacity: 0; z-index: 2; cursor: pointer; margin: 0; }
.auth .custom-control-label { margin: 0 !important; cursor: pointer; font-size: 14px; font-weight: 500 !important; }
.auth .custom-control-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 1.5px solid #b8bfce; border-radius: var(--md); background: #fff; box-shadow: none; }
.auth .custom-control-label::after { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-62%) rotate(45deg); opacity: 0; background: none; }
.auth .custom-control-input:checked ~ .custom-control-label::before { background: var(--brand); border-color: var(--brand); }
.auth .custom-control-input:checked ~ .custom-control-label::after { opacity: 1; }
.auth .custom-control-input:focus-visible ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(243, 156, 18, .2); }
@media (max-width: 991.98px) {
    .auth { flex-direction: column; }
    .auth-aside { display: none; }
    .auth-main { justify-content: flex-start; padding: 28px 16px 32px; }
    .auth-mobile-logo { display: block; }
    .auth .account-container { padding: 24px 20px; border-radius: var(--md); }
    .auth-card { max-width: 560px; }
}
@media (min-width: 1500px) { .auth-card { max-width: 540px; } }

/* ---------- Errors ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.error-page .code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.error-page h1 { font-size: 24px; margin: 12px 0 8px; }
.error-page p { color: var(--muted); max-width: 420px; margin: 0 auto 24px; }

/* ---------- Misc helpers ---------- */
.text-muted { color: var(--muted) !important; }
.row.placeani { margin-left: -8px; margin-right: -8px; }
.row.placeani > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.ttr-wrapper { padding-top: 0 !important; margin-left: 0 !important; }
details summary { color: var(--text-2); }
@media print { .app-topbar, .app-sidebar, .app-footer, .db-breadcrumb { display: none !important; } .app-main { margin: 0; padding: 0; } }

/* ---------- Compact stat tiles on phones: two per row ---------- */
@media (max-width: 575.98px) {
    .row:has(.widget-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; }
    .row:has(.widget-card) > [class*="col-"] { width: auto; max-width: none; padding: 0; flex: none; }
    .widget-card .wc-item { padding: 12px 12px 10px 16px !important; }
    .widget-card .wc-stats { font-size: 24px; }
    .widget-card .wc-title { font-size: 10.5px !important; }
    .widget-card .wc-des { display: none; }
    .widget-card .progress, .widget-card .wc-progress { margin-top: 8px; }
}

/* ---------- Paper cards (legacy .card-courses-*) ---------- */
.card-courses-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-courses-view { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; list-style: none; padding: 0; margin: 14px 0 6px; }
.card-courses-view > li { float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
.card-courses-view > li.card-courses-stats, .card-courses-view > li.card-courses-price { margin-left: auto !important; align-self: center; }
.card-courses-categories h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 3px; font-weight: 700; }
.card-courses-categories h4 { font-size: 14px; font-weight: 650; margin: 0; text-transform: none; color: var(--text); }
.card-courses-title h4 { font-size: 18px; font-weight: 700; line-height: 1.35; }
span[style="color:red;"], p[style*="color:red"] { color: var(--muted) !important; font-weight: 500; }
span[style="color:red;"]::first-letter { text-transform: none; }

/* ---------- Table scroll affordance ---------- */
.table-responsive { scrollbar-width: thin; scrollbar-color: #cdd2de transparent; }
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-thumb { background: #cdd2de; border-radius: var(--md); }
.table td .btn { padding: 4px 9px; }
.table td .btn + .btn, .table td .orders-btn .btn + .btn { margin-left: 4px; }

/* ==========================================================================
   Guided forms: stepper, option cards, password meter, code boxes, drop zones
   ========================================================================== */
[x-cloak] { display: none !important; }

/* Stepper */
.stepper { display: flex; align-items: flex-start; margin: 4px 0 24px; padding: 0; list-style: none; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-of-type::before { display: none; }
.stepper li .dot {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted);
    font-size: 13px; font-weight: 700; margin-bottom: 6px; transition: all .2s;
}
.stepper li.done::before, .stepper li.active::before { background: var(--brand); }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.active .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(243, 156, 18, .14); }
.stepper li.active, .stepper li.done { color: var(--text); }
.stepper li.done { cursor: pointer; }
.stepper .lbl { display: block; line-height: 1.25; }
@media (max-width: 400px) { .stepper .lbl { font-size: 11px; } }

/* Form layout */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: 16px; }
.field > label { display: block; }
.field .req { color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.input-icon { position: relative; }
.input-icon > i.fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa1b2; pointer-events: none; }
.input-icon > .form-control { padding-left: 40px; }
.input-icon .toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: var(--md); cursor: pointer; }
.input-icon .toggle:hover { color: var(--brand); background: var(--brand-50); }
.input-icon.has-toggle > .form-control { padding-right: 46px; }
.step-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.step-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wizard-actions .btn { min-width: 120px; padding: 11px 20px; }
.wizard-actions .spacer { flex: 1; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Option cards (radio) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.choice { position: relative; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice .body { display: flex; flex-direction: column; justify-content: center; border: 1.5px solid #d5d9e4; border-radius: var(--md); padding: 10px 14px; background: #fff; transition: all .15s; min-height: 54px; }
.choice .body b { display: block; font-size: 14px; color: var(--text); }
.choice .body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.choice:hover .body { border-color: var(--brand-600); }
.choice input:checked + .body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(243, 156, 18, .12); }
.choice input:checked + .body b { color: var(--brand); }
.choice input:focus-visible + .body { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.choices.is-invalid .body { border-color: var(--danger); }

/* Notices */
.note { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-lg); padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.note > i { margin-top: 2px; }
.note.info { background: var(--info-bg); color: #1e3a8a; }
.note.warn { background: var(--warning-bg); color: #8a4207; }
.note.ok { background: var(--success-bg); color: #166534; }
.note p, .note ul { margin: 0; color: inherit; }
.note ul { padding-left: 18px; }

/* Password strength */
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter span { flex: 1; height: 5px; border-radius: var(--md); background: var(--line); transition: background .2s; }
.meter[data-s="1"] span:nth-child(-n+1) { background: #dc2626; }
.meter[data-s="2"] span:nth-child(-n+2) { background: #f59e0b; }
.meter[data-s="3"] span:nth-child(-n+3) { background: #84cc16; }
.meter[data-s="4"] span:nth-child(-n+4) { background: #16a34a; }
.meter-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 18px; }

/* Review list */
.review { border: 1px solid var(--line); border-radius: var(--md); padding: 4px 16px; background: #fbfbfd; margin-bottom: 18px; }
.review dl { margin: 0; }
.review .row-x { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.review .row-x:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-weight: 500; }
.review dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }

/* One-time code boxes */
.otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0 6px; }
.otp input {
    width: 100%; max-width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; color: var(--brand);
    border: 1.5px solid #d5d9e4; border-radius: var(--md); background: #fff; padding: 0; transition: border-color .15s, box-shadow .15s;
}
.otp input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(243, 156, 18, .15); outline: 0; }
.otp input.filled { border-color: var(--brand); background: var(--brand-50); }
@media (max-width: 400px) { .otp { gap: 6px; } .otp input { height: 54px; font-size: 22px; } }

/* File drop zone */
.dz { position: relative; border: 2px dashed #c9cedb; border-radius: var(--r-lg); background: #fbfbfd; padding: 22px 16px; text-align: center; transition: all .15s; min-height: 130px; display: flex; align-items: center; justify-content: center; }
.dz:hover, .dz.drag { border-color: var(--brand-600); background: var(--brand-50); }
.dz.has-file { border-style: solid; border-color: var(--brand-100); background: #fff; padding: 12px; }
.dz.has-error { border-color: var(--danger); background: #fff8f8; }
.dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dz.has-file .dz-input { display: none; }
.dz .empty i { font-size: 28px; color: var(--brand-600); margin-bottom: 8px; display: block; }
.dz .empty b { display: block; font-size: 14px; color: var(--text); }
.dz .empty span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dz .picked { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; text-align: left; }
.dz .thumb { width: 84px; height: 84px; border-radius: var(--md); background: var(--brand-50); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.dz .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz .thumb i { font-size: 34px; color: #c0392b; }
.dz .meta { flex: 1; min-width: 0; }
.dz .meta b { display: block; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz .meta small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dz .meta .ok { color: var(--success); font-weight: 600; }
.dz .remove { border: 0; background: var(--danger-bg); color: var(--danger); border-radius: var(--md); padding: 6px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; z-index: 3; position: relative; }
.dz-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.dz-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.dz-label .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); background: var(--neutral-bg); color: var(--neutral); }
.dz-label .tag.req { background: var(--brand-100); color: var(--brand); }

/* Document cards (KYC) */
.doc-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 20px; margin-bottom: 16px; }
.doc-card .doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-card .doc-head h5 { margin: 0; font-size: 16px; }
.doc-card .doc-head .badge { font-size: 12px; }
.tips { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.tips li i { color: var(--success); margin-top: 3px; }

/* Status timeline (KYC) */
.timeline { display: flex; align-items: center; gap: 0; margin: 14px 0 4px; padding: 0; list-style: none; }
.timeline li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-of-type::before { display: none; }
.timeline li .d { position: relative; z-index: 1; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); align-items: center; justify-content: center; font-size: 11px; margin-bottom: 5px; }
.timeline li.done .d { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.done::before { background: var(--success); }
.timeline li.current .d { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(243, 156, 18, .18); }
.timeline li.current::before { background: var(--accent); }
.timeline li.bad .d { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline li.bad::before { background: var(--danger); }
.timeline li.done, .timeline li.current, .timeline li.bad { color: var(--text); }
.timeline .t { display: block; }

@media (max-width: 480px) {
    .dz .picked { grid-template-columns: 72px minmax(0, 1fr); }
    .dz .thumb { width: 72px; height: 72px; }
    .dz .remove { grid-column: 1 / -1; justify-self: start; }
}
.dz .picked[x-cloak] { display: none !important; }

/* ==========================================================================
   Mobile app experience (phones and small tablets)
   Bottom tab bar, compact app bar, tables as cards, bottom-sheet modals,
   touch-sized controls and safe-area support for notched phones.
   ========================================================================== */
.app-page-title { display: none; }
.app-tabbar { display: none; }
.install-item { display: none; }
.can-install .install-item { display: block; }
@supports (padding: env(safe-area-inset-top)) {
    .app-topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
    .app-main { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 24px); }
}

@media (max-width: 991.98px) {
    /* App bar: page title instead of the conference line */
    .app-burger { display: none !important; }
    .app-context { display: none; }
    .app-page-title { display: block; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
    .app-topbar { gap: 8px; padding-left: 18px; }
    .app-top-actions { margin-left: 0; }
    .app-main { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 14px); }
    .app-footer { padding-bottom: 12px; }

    /* Bottom tab bar */
    .app-tabbar {
        display: flex; position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
        border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(20, 20, 43, .06);
    }
    .app-tabbar .tab {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; min-width: 0;
        background: transparent; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .app-tabbar .tab-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: var(--md); font-size: 17px; transition: background .2s, color .2s, transform .15s; }
    .app-tabbar .tab:active .tab-ico { transform: scale(.92); }
    .app-tabbar .tab.active { color: var(--brand); }
    .app-tabbar .tab.active .tab-ico { background: var(--brand-100); }
    .app-tabbar .tab-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-tabbar .tab-badge { position: absolute; top: -3px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; font-weight: 700; }

    /* Drawer opened from "More" sits above the tab bar */
    .app-sidebar { z-index: 1050; }
    .app-overlay { z-index: 1045; }
    #toast-container.toast-top-right { top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 8px); }

    /* Page header: title is in the app bar, so show only the actions */
    .db-breadcrumb { margin-bottom: 14px !important; }
    .db-breadcrumb-list { display: none; }
    .db-breadcrumb > [class*="col-"]:first-child:not(:only-child) { display: none; }
    .db-breadcrumb > [class*="col-"]:last-child { margin-left: 0; width: 100%; justify-content: stretch; }
    .db-breadcrumb > [class*="col-"]:last-child .btn { flex: 1 1 auto; }

    /* Touch-sized controls; 16px inputs stop iOS from zooming in */
    .form-control, .custom-select, select.form-control { font-size: 16px; min-height: 48px; }
    .btn { min-height: 44px; }
    .btn-sm, .btn.button-sm { min-height: 38px; }
    .dropdown-item { padding: 12px 14px; }
    .card-body, .widget-box .widget-inner { padding: 16px; }
    .widget-card { border-radius: var(--r-lg); }
    .card, .widget-box, .card.custom-card { border-radius: var(--r-lg) !important; }
}

/* Tables become a list of cards on phones (labels are added by ui.js) */
@media (max-width: 767.98px) {
    .table-responsive:has(table.as-cards) { overflow: visible; }
    table.as-cards, table.as-cards tbody, table.as-cards tr, table.as-cards td { display: block; width: 100%; }
    table.as-cards thead { display: none; }
    table.as-cards tr {
        background: #fff; border: 1px solid var(--line); border-radius: var(--md); padding: 12px 14px; margin: 0 0 12px;
        box-shadow: var(--shadow-sm);
    }
    table.as-cards tbody tr:hover { background: #fff; }
    table.as-cards td {
        display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: right !important;
        padding: 7px 0 !important; border: 0 !important; white-space: normal !important; font-size: 14px;
    }
    table.as-cards td::before {
        content: attr(data-label); flex: 0 0 auto; max-width: 46%; text-align: left; color: var(--muted);
        font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    }
    table.as-cards td.cell-index { display: none; }
    table.as-cards td.cell-title {
        display: block; text-align: left !important; font-size: 16px; font-weight: 700 !important; color: var(--text);
        padding: 0 0 8px !important; margin-bottom: 4px; border-bottom: 1px solid var(--line-2) !important; line-height: 1.35;
    }
    table.as-cards td.cell-title::before { display: none; }
    table.as-cards td.cell-actions { justify-content: flex-start; padding-top: 12px !important; margin-top: 4px; border-top: 1px solid var(--line-2) !important; flex-wrap: wrap; }
    table.as-cards td.cell-actions::before { display: none; }
    table.as-cards td.cell-empty { display: block; text-align: center !important; color: var(--muted); padding: 22px 0 !important; }
    table.as-cards td.cell-empty::before { display: none; }
    table.as-cards td:empty, table.as-cards td.cell-na { display: none; }
    table.as-cards tr[style*="background"] { background: #fff !important; }

    /* A card that only wraps a card-list dissolves, so rows are not boxed twice */
    .card:has(table.as-cards), .card.custom-card:has(table.as-cards) { background: transparent; border: 0 !important; box-shadow: none !important; overflow: visible; }
    .card:has(table.as-cards) > .card-body { padding: 0; }

    /* DataTables controls */
    div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter { float: none; text-align: left; margin-bottom: 10px; }
    div.dataTables_wrapper div.dataTables_filter label { display: block; width: 100%; margin: 0 !important; font-size: 0; }
    div.dataTables_wrapper div.dataTables_filter input { display: block; width: 100% !important; max-width: 100%; margin: 0 !important; box-sizing: border-box; }
    div.dataTables_wrapper div.dataTables_filter input { min-height: 46px; font-size: 16px; }
    div.dataTables_wrapper div.dataTables_length { display: none; }
    div.dataTables_wrapper .dt-buttons { display: none; }
    div.dataTables_wrapper > .row, div.dataTables_wrapper .row { margin-left: 0; margin-right: 0; }
    div.dataTables_wrapper .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; text-align: left !important; }
    div.dataTables_wrapper ul.pagination { flex-wrap: nowrap; }
    div.dataTables_wrapper li.paginate_button:not(.previous):not(.next):not(.active) { display: none; }
    div.dataTables_wrapper div.dataTables_paginate > span > *:not(.current) { display: none; }
    div.dataTables_wrapper div.dataTables_paginate .paginate_button { padding: 8px 14px; margin: 0 2px; }
    div.dataTables_wrapper div.dataTables_info { text-align: center; padding-top: 6px; }
    div.dataTables_wrapper div.dataTables_paginate { float: none; text-align: center; padding-top: 8px; }
    .pagination { justify-content: center; }
}

/* Modals slide up as bottom sheets on phones */
@media (max-width: 575.98px) {
    .modal.fade .modal-dialog { transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
    .modal.show .modal-dialog { transform: none; }
    .modal-dialog, .modal-dialog.modal-dialog-centered { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; max-width: none; min-height: 0; width: 100%; align-items: flex-end; }
    .modal-content { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .modal-content::before { content: ""; display: block; width: 40px; height: 5px; border-radius: var(--r-lg); background: #d5d9e4; margin: 8px auto 0; flex: 0 0 auto; }
    .modal-body { overflow-y: auto; }
    .modal-footer { flex-wrap: nowrap; }
    .modal-footer .btn { flex: 1; }
}

/* Smooth page entrance, press feedback and reduced-motion support */
.app-main > .container-fluid { animation: pageIn .28s ease backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card, .widget-card, .doc-card, .choice .body, .app-nav a, .btn { transition-property: box-shadow, background, border-color, color, transform; }
a.card-link:active, .quick-tile:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Home screen: greeting, quick actions, attention cards */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.hero p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.quick-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 8px; color: var(--text); font-size: 13px; font-weight: 650;
    box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .15s; position: relative;
}
.quick-tile:hover { color: var(--brand); box-shadow: var(--shadow); }
.quick-tile .qi { width: 44px; height: 44px; border-radius: var(--md); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; background: var(--brand-50); color: var(--brand); }
.quick-tile.t2 .qi { background: var(--accent-50); color: var(--accent); }
.quick-tile.t3 .qi { background: #e6f6f8; color: #0891b2; }
.quick-tile.t4 .qi { background: var(--success-bg); color: var(--success); }
.quick-tile .qb { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; border-radius: var(--r-sm); padding: 0 6px; background: var(--danger); color: #fff; font-size: 11px; line-height: 20px; font-weight: 700; }
.attention { display: flex; align-items: center; gap: 14px; border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 12px; border: 1px solid transparent; color: inherit; }
.attention:hover { color: inherit; filter: brightness(.98); }
.attention .ai { flex: 0 0 40px; height: 40px; border-radius: var(--md); background: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.attention .at { flex: 1; min-width: 0; line-height: 1.35; }
.attention .at b { display: block; font-size: 14.5px; }
.attention .at span { font-size: 13px; opacity: .85; }
.attention .go { font-size: 16px; opacity: .6; }
.attention.warn { background: var(--warning-bg); border-color: #f5d9a8; color: #8a4207; }
.attention.info { background: var(--info-bg); border-color: #c5d5f7; color: #1e3a8a; }
.attention.danger { background: var(--danger-bg); border-color: #f6c6c6; color: #8f1d1d; }
@media (max-width: 575.98px) {
    .hero h2 { font-size: 21px; }
    .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .quick-tile { padding: 12px 4px; font-size: 11.5px; border-radius: var(--r-lg); }
    .quick-tile .qi { width: 40px; height: 40px; font-size: 17px; }
}

/* Text selection (login, register and error pages do not load app.css) */
::selection { background: #f5a524; color: #17171b; text-shadow: none; }
::-moz-selection { background: #f5a524; color: #17171b; text-shadow: none; }

/* Error pages */
.err-box { max-width: 440px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px 30px; box-shadow: var(--shadow); }
.err-logo { display: inline-block; margin-bottom: 18px; }
.err-logo img { height: 38px; width: auto; }
.error-page .err-box .code { font-size: 72px; background: var(--action); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .err-box h1 { font-size: 22px; margin: 10px 0 8px; }
.error-page .err-box p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Optional links under auth forms: quiet, one compact line */
.auth-quiet { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-quiet a { color: var(--text-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(217, 119, 6, .45); text-underline-offset: 3px; }
.auth-quiet a:hover { color: var(--brand-600); text-decoration-color: currentColor; }
@media (max-width: 420px) { .auth-quiet .sep { display: none; } .auth-quiet span { flex: 0 0 100%; } }

.auth .heading-bx p.sub-sm .sm { display: none; }
@media (max-width: 480px) { .auth .heading-bx p.sub-sm .lg { display: none; } .auth .heading-bx p.sub-sm .sm { display: inline; } }

/* Option cards: compact, one row on phones */
@media (max-width: 700px) {
    .choices { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 8px; }
    .choice .body { padding: 8px 10px; min-height: 0; border-radius: var(--md); }
    .choice .body b { font-size: 12.5px; line-height: 1.25; }
    .choice .body small { font-size: 11px; line-height: 1.25; margin-top: 1px; }
}
.choice .sm { display: none; }
@media (max-width: 700px) { .choice .lg { display: none; } .choice .sm { display: inline; } }
.choices .choice { display: flex; } .choices .choice .body { flex: 1; }

/* KYC verify page: compact */
.auth .account-container:has(.doc-card) { padding: 22px 24px 20px; }
.auth .account-container:has(.doc-card) .heading-bx { padding-bottom: 10px !important; }
.auth .account-container:has(.doc-card) .heading-bx p { font-size: 13px; }
.doc-card { padding: 14px 16px; margin-bottom: 12px; border-radius: var(--r-lg); }
.doc-card .doc-head { margin-bottom: 10px; }
.doc-card .doc-head.no-gap { margin-bottom: 0; }
.doc-card .doc-head h5 { font-size: 15px; }
.doc-card .note { margin-bottom: 10px; padding: 9px 12px; font-size: 13px; }
.tips { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.tips li { font-size: 12.5px; }
.dz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz-pair > div { margin-bottom: 0 !important; min-width: 0; }
.doc-card .dz { min-height: 92px; padding: 12px; border-radius: var(--r-lg); }
.doc-card .dz .empty i { font-size: 22px; margin-bottom: 4px; }
.doc-card .dz .empty b { font-size: 13px; }
.doc-card .dz .empty span { font-size: 12px; }
.doc-card .dz-label { margin-bottom: 6px; font-size: 12.5px; }
.dz-pair .dz .picked { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
.dz-pair .dz .thumb { width: 52px; height: 52px; }
.dz-pair .dz .remove { grid-column: 1 / -1; justify-self: start; padding: 4px 8px; }
.cat-line { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--line-2, #f0f2f7); font-size: 12.5px; color: var(--text-2); }
.chip-x i { color: var(--brand-600); }
.chip-x i.ok { color: var(--success); }
.chip-x b { color: var(--text); }
.chip-x small { color: var(--muted); }
.kyc-privacy { font-size: 12px; color: var(--muted); margin: 2px 0 10px; line-height: 1.5; }
.kyc-privacy i { margin-right: 4px; }
@media (max-width: 560px) { .doc-card .dz { min-height: 64px; padding: 8px 10px; } .doc-card .dz .empty span { display: none; } .doc-card .dz .empty i { display: inline-block; margin: 0 6px 0 0; font-size: 18px; vertical-align: middle; } .doc-card .dz .empty b { display: inline; vertical-align: middle; } .dz-pair { grid-template-columns: 1fr; gap: 8px; } .auth .account-container:has(.doc-card) { padding: 18px 14px 16px; } }

/* Announcement banner (Admin > Settings > Announcement) */
.site-notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border-radius: var(--md); font-size: 13.5px; line-height: 1.45; border: 1px solid transparent; }
.site-notice > i:first-child { margin-top: 2px; }
.site-notice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.site-notice button { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; }
.site-notice button:hover { opacity: 1; }
.site-notice.info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.site-notice.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.site-notice.warning { background: #fffbeb; color: #8a4207; border-color: #fde68a; }
.site-notice.danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---- Announcement ticker (two or more live announcements) ---- */
.site-notice .sn-link { font-weight: 700; color: inherit; text-decoration: underline; white-space: nowrap; }
.site-ticker { display: flex; align-items: stretch; margin-bottom: 12px; border: 1px solid #efd7a6; background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%); border-radius: var(--md); overflow: hidden; box-shadow: 0 3px 12px rgba(217, 119, 6, .09); font-size: 14px; min-height: 40px; }
.site-ticker .tk-label { display: flex; align-items: center; gap: 9px; flex: none; padding: 0 11px 0 9px; background: #fff1d3; color: #8a4b06; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border-right: 1px solid #efd7a6; }
.site-ticker .tk-label b { font-weight: 800; }
.site-ticker .tk-label em { display: none; }
.site-ticker .tk-label .tk-live { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--action); flex: none; box-shadow: 0 2px 5px rgba(217, 119, 6, .35); animation: none; }
.site-ticker .tk-label .tk-live::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; }
.site-ticker .tk-label .tk-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--action); animation: tk-ring 1.8s ease-out infinite; }
.site-ticker .tk-viewport { flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.site-ticker .tk-track { display: flex; align-items: center; height: 100%; width: max-content; animation: tk-scroll var(--tk-dur, 30s) linear infinite; will-change: transform; }
.site-ticker .tk-set { display: flex; align-items: center; flex: none; min-width: 100cqw; padding-left: 16px; }
.site-ticker .tk-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: #2b2113; font-weight: 650; white-space: nowrap; line-height: 1.3; }
.site-ticker .tk-ic { display: none; }
.site-ticker .tk-item a { color: #a35305; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(163, 83, 5, .4); text-underline-offset: 3px; }
.site-ticker .tk-item a:hover, .site-ticker .tk-item a:focus-visible { color: #6b3403; text-decoration-color: currentColor; }
.site-ticker .tk-dot { width: 1px; height: 16px; background: #d9a441; opacity: .5; margin: 0 24px; flex: none; }
.site-ticker .tk-btn { display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #8a4b06; width: 38px; flex: none; cursor: pointer; transition: background .15s; }
.site-ticker .tk-btn:hover, .site-ticker .tk-btn:focus-visible { background: #fff1d3; color: #5b3f0b; }
.site-ticker:hover .tk-track, .site-ticker:focus-within .tk-track, .site-ticker.paused .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tk-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.site-ticker.paused .tk-live::after { animation: none; opacity: 0; }
@supports not (width: 1cqw) { .site-ticker .tk-set { min-width: 700px; } }
@media (max-width: 575px) { .site-ticker .tk-uw { display: none; } .site-ticker .tk-label { padding: 0 9px 0 7px; gap: 7px; font-size: 11px; } .site-ticker .tk-item { font-size: 13.5px; } .site-ticker .tk-btn { width: 34px; } }
/* The site-wide "reduce motion" rule above would freeze the ticker. The ticker keeps scrolling because it has a pause button (remembered per visitor) and pauses on hover. */
@media (prefers-reduced-motion: reduce) {
    .site-ticker .tk-track { animation-duration: var(--tk-dur, 30s) !important; }
    .site-ticker .tk-live::after { animation-duration: 1.8s !important; }
}

/* Logo per theme: dark letters by day, white letters in dark mode (partials/logo.blade.php) */
.logo-night { display: none !important; }
html[data-theme="dark"] .logo-night { display: block !important; }
html[data-theme="dark"] .logo-day { display: none !important; }

/* ---- the friendly wait under a submit button (components/busy-note.blade.php) ---- */
.busy-note { margin-top: 12px; text-align: center; }
.busy-bar { display: block; position: relative; height: 4px; overflow: hidden; border-radius: var(--r-sm); background: var(--line-2, #f0f2f7); }
.busy-bar i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: var(--r-sm); background: var(--action, #d9650f); animation: busy-run 1.15s ease-in-out infinite; }
.busy-msg { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--muted, #6b7080); }
@keyframes busy-run { 0% { left: -40%; } 100% { left: 102%; } }
@media (prefers-reduced-motion: reduce) { .busy-bar i { animation: none; width: 100%; opacity: .55; } }
