/* =====================================================================
   Colend.ir — کولند | BNPL For Companies
   Design system: tri-tone palette (GREEN primary, BLUE trust, GOLD offer)
   Customer panel = green tones, Admin panel = blue tones, shared gold accents.
   All layouts are RTL-first (Persian) with self-hosted Vazirmatn (OFL).
   ===================================================================== */

/* -------- Primary Persian type family (self-hosted, no CDN) --------
   Vazirmatn files from @fontsource/vazirmatn (SIL Open Font License 1.1).
   Paths are relative to this file: web/css/site.css → web/fonts/vazirmatn/ */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-300-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-800-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/vazirmatn/vazirmatn-arabic-900-normal.woff2') format('woff2');
}

:root {
    /* ---------- Colend brand tri-tone ---------- */
    --colend-green-900: #2a4a22;
    --colend-green-800: #36611e;
    --colend-green-700: #3e6b30;
    --colend-green-600: #4f7f2f;   /* primary brand green (from banner #1) */
    --colend-green-500: #6aa13e;
    --colend-green-400: #8cbf5c;
    --colend-green-200: #cfe2b8;
    --colend-green-100: #e8f1de;
    --colend-green-50:  #f4f8ee;

    --colend-blue-900: #17314f;
    --colend-blue-800: #1e3f66;
    --colend-blue-700: #234978;
    --colend-blue-600: #2e5999;    /* trust blue (from banner #2) */
    --colend-blue-500: #3a6cb5;
    --colend-blue-200: #bfd4ea;
    --colend-blue-100: #dde9f6;
    --colend-blue-50:  #eef3f9;

    --colend-gold-900: #6f5610;
    --colend-gold-800: #8d6e11;
    --colend-gold-700: #a37d14;
    --colend-gold-600: #b58a1a;    /* offer gold (from banner #3) */
    --colend-gold-500: #c9a227;
    --colend-gold-200: #ecd888;
    --colend-gold-100: #f7eecf;
    --colend-gold-50:  #fcf7e7;

    --colend-ink:     #1a2032;
    --colend-sub:     #4a5468;
    --colend-cloud:   #f5f7f2;
    --colend-line:    #e3e8dc;

    /* ---------- Legacy aliases (mapped to Colend greens so existing
       purple-based selectors inherit the new brand automatically) ---- */
    --brand-purple-900: var(--colend-green-900);
    --brand-purple-700: var(--colend-green-700);
    --brand-purple-600: var(--colend-green-600);
    --brand-purple-500: var(--colend-green-500);
    --brand-purple-100: var(--colend-green-100);
    --brand-purple-50:  var(--colend-green-50);

    --brand-green-700: #15803d;
    --brand-green-600: #16a34a;
    --brand-green-500: #22c55e;
    --brand-green-100: #dcfce7;

    --brand-orange-600: var(--colend-gold-600);
    --brand-orange-100: var(--colend-gold-100);

    --brand-red-600: #c23a33;
    --brand-red-100: #fbe4e2;

    --brand-amber-600: var(--colend-gold-700);
    --brand-amber-100: var(--colend-gold-100);

    --brand-sky-100:  var(--colend-blue-100);
    --brand-sky-700:  var(--colend-blue-700);

    --bnpl-bg: #f7f9f3;
    --bnpl-ink: var(--colend-ink);
    --bnpl-muted: #6b7280;
    --bnpl-border: var(--colend-line);

    --bnpl-radius: 14px;
    --bnpl-shadow-sm: 0 1px 2px rgba(26,32,50,0.04);
    --bnpl-shadow-md: 0 10px 25px -10px rgba(79,127,47,0.22);
}

/* ---- Colend global type family ---- */
:root {
    --colend-font:
        "Vazirmatn", "Vazir",
        "Tahoma", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--bnpl-bg); font-family: var(--colend-font); }

body,
.bnpl-page,
.bnpl-page *,
.landing-body,
.landing-body *,
input, button, textarea, select, optgroup {
    font-family: var(--colend-font);
}

/* ====================== LEGACY site styles preserved ===================== */
main > .container { padding: 70px 15px 20px; }
.footer { background-color: #f5f5f5; font-size: .9em; height: 60px; }
.footer > .container { padding-right: 15px; padding-left: 15px; }
.not-set { color: #c55; font-style: italic; }
a.asc:after, a.desc:after { content: ''; left: 3px; display: inline-block; width: 0; height: 0; border: solid 5px transparent; margin: 4px 4px 2px 4px; background: transparent; }
a.asc:after { border-bottom: solid 7px #212529; border-top-width: 0; }
a.desc:after { border-top: solid 7px #212529; border-bottom-width: 0; }
.grid-view th { white-space: nowrap; }
.hint-block { display: block; margin-top: 5px; color: #999; }
.error-summary { color: #a94442; background: #fdf7f7; border-left: 3px solid #eed3d7; padding: 10px 20px; margin: 0 0 15px 0; }
.nav li > form > button.logout { padding-top: 7px; color: rgba(255, 255, 255, 0.5); }
@media(max-width:767px) { .nav li > form > button.logout { display:block; text-align: left; width: 100%; padding: 10px 0; } }
.nav > li > form > button.logout:focus, .nav > li > form > button.logout:hover { text-decoration: none; color: rgba(255, 255, 255, 0.75); }
.nav > li > form > button.logout:focus { outline: none; }
.form-group { margin-bottom: 1rem; }

/* ========================== Core BNPL shell ============================ */
.bnpl-page {
    direction: rtl;
    color: var(--bnpl-ink);
    min-height: calc(100vh - 56px);
    background: var(--bnpl-bg);
    padding: 1rem 0;
}

.bnpl-shell {
    display: grid;
    /* In RTL: column 1 is on the right. We want the sidebar on the right,
       the content panel on the left. Explicit grid-column assignments keep
       the HTML source order (content-first) working in both directions. */
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}
.bnpl-shell > .bnpl-sidebar { grid-column: 1; grid-row: 1; }
.bnpl-shell > .bnpl-content { grid-column: 2; grid-row: 1; }

@media (max-width: 991px) {
    .bnpl-shell { grid-template-columns: 1fr; }
    .bnpl-shell > .bnpl-sidebar,
    .bnpl-shell > .bnpl-content { grid-column: 1; }
    .bnpl-shell > .bnpl-sidebar { grid-row: 1; }
    .bnpl-shell > .bnpl-content { grid-row: 2; }
    .bnpl-topbar { flex-direction: column; align-items: flex-start; }
    .bnpl-topbar-meta { width: 100%; justify-content: space-between; }
    .bnpl-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----------------------------- Sidebar --------------------------------- */
.bnpl-sidebar {
    background: #ffffff;
    border: 1px solid var(--bnpl-border);
    border-radius: var(--bnpl-radius);
    padding: 1.1rem 1rem 1.2rem;
    position: sticky;
    top: 1rem;
    height: fit-content;
    box-shadow: var(--bnpl-shadow-sm);
}

.bnpl-sidebar .bnpl-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0.4rem 1rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--bnpl-border);
}

.bnpl-sidebar .bnpl-brand-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-purple-600), var(--brand-purple-900));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
    box-shadow: var(--bnpl-shadow-md);
}

.bnpl-sidebar .bnpl-brand-name {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--brand-purple-700);
}

.bnpl-sidebar .bnpl-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    position: relative;
    transition: background 0.15s, color 0.15s;
}
.bnpl-sidebar .bnpl-nav-item:hover { background: var(--brand-purple-50); color: var(--brand-purple-700); }
.bnpl-sidebar .bnpl-nav-item .bnpl-nav-icon { width: 18px; color: var(--bnpl-muted); }

.bnpl-sidebar .bnpl-nav-item.is-active {
    background: var(--brand-purple-50);
    color: var(--brand-purple-700);
    font-weight: 700;
}
.bnpl-sidebar .bnpl-nav-item.is-active::before {
    content: "";
    position: absolute;
    right: -1rem; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%;
    background: var(--brand-purple-600);
    border-radius: 4px 0 0 4px;
}
.bnpl-sidebar .bnpl-nav-item.is-active .bnpl-nav-icon { color: var(--brand-purple-600); }

.bnpl-sidebar.admin .bnpl-brand-logo {
    background: linear-gradient(135deg, #0ea5e9, #1e3a8a);
}
.bnpl-sidebar.admin .bnpl-brand-name { color: var(--brand-sky-700); }
.bnpl-sidebar.admin .bnpl-nav-item:hover,
.bnpl-sidebar.admin .bnpl-nav-item.is-active {
    background: var(--brand-sky-100);
    color: var(--brand-sky-700);
}
.bnpl-sidebar.admin .bnpl-nav-item.is-active::before { background: #0284c7; }

.bnpl-sidebar .bnpl-logout {
    margin-top: 1rem;
    color: var(--brand-red-600);
    display: flex; align-items: center; gap: 0.4rem;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    padding: 0.5rem 0.8rem; border-radius: 10px;
}
.bnpl-sidebar .bnpl-logout:hover { background: var(--brand-red-100); }

/* ----------------------------- Content --------------------------------- */
.bnpl-content { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.bnpl-topbar {
    background: #ffffff;
    border: 1px solid var(--bnpl-border);
    border-radius: var(--bnpl-radius);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--bnpl-shadow-sm);
}
.bnpl-topbar-main { min-width: 220px; }
.bnpl-topbar-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bnpl-topbar-actions { display: inline-flex; align-items: center; }
.bnpl-topbar .bnpl-topbar-user { color: var(--bnpl-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.bnpl-topbar .bnpl-topbar-date { color: var(--bnpl-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.bnpl-topbar h4 { margin: 0; font-size: 1.05rem; font-weight: 700; }

.bnpl-card {
    background: #ffffff;
    border: 1px solid var(--bnpl-border);
    border-radius: var(--bnpl-radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--bnpl-shadow-sm);
}

.bnpl-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.bnpl-section-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bnpl-ink);
}
.bnpl-section-head p {
    margin: 0;
    color: var(--bnpl-muted);
    font-size: 0.83rem;
}

.bnpl-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}
.bnpl-kpi {
    border: 1px solid var(--bnpl-border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: #fff;
}
.bnpl-kpi .label {
    display: block;
    font-size: 0.78rem;
    color: var(--bnpl-muted);
    margin-bottom: 0.25rem;
}
.bnpl-kpi .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bnpl-ink);
}

.bnpl-table-wrap {
    border: 1px solid var(--bnpl-border);
    border-radius: 12px;
    padding: 0.45rem;
    background: #fff;
}

.bnpl-inline-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.bnpl-card-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.bnpl-card-title::before {
    content: ""; width: 3px; height: 18px;
    background: var(--brand-purple-600);
    border-radius: 2px;
}

/* ----------------------------- Wallet cards ---------------------------- */
.bnpl-wallet {
    position: relative;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    color: #fff;
    min-height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b0764 0%, var(--brand-purple-700) 55%, #7c3aed 100%);
    box-shadow: 0 16px 35px -20px rgba(91,33,182,0.65);
    display: flex; flex-direction: column; justify-content: space-between;
}
.bnpl-wallet::after {
    content: ""; position: absolute; left: -40px; bottom: -60px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.bnpl-wallet::before {
    content: ""; position: absolute; right: -50px; top: -60px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.bnpl-wallet .bnpl-wallet-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.18); display: inline-flex;
    align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.bnpl-wallet .bnpl-wallet-title { font-weight: 700; font-size: 1.1rem; }
.bnpl-wallet .bnpl-wallet-type { opacity: 0.85; font-size: 0.8rem; }
.bnpl-wallet .bnpl-wallet-balance { font-size: 1.25rem; font-weight: 800; }
.bnpl-wallet .bnpl-wallet-meta { opacity: 0.85; font-size: 0.85rem; margin-top: 0.3rem; }

.bnpl-wallet.bnpl-wallet-cash { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #8b5cf6 100%); }
.bnpl-wallet.bnpl-wallet-insurance { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #3b82f6 100%); }
.bnpl-wallet.bnpl-wallet-general { background: linear-gradient(135deg, #111827 0%, #374151 100%); }
.bnpl-wallet.is-blocked { filter: grayscale(0.4) brightness(0.8); }
.bnpl-wallet.is-empty {
    background: #f3f4f6; color: var(--bnpl-muted);
    border: 2px dashed #cbd5e1; box-shadow: none;
}
.bnpl-wallet.is-empty::after, .bnpl-wallet.is-empty::before { display:none; }

/* ----------------------------- Badges ---------------------------------- */
.bnpl-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.74rem; font-weight: 700;
    line-height: 1;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.bnpl-badge.success { background: var(--brand-green-100); color: var(--brand-green-700); }
.bnpl-badge.warning { background: var(--brand-amber-100); color: var(--brand-amber-600); }
.bnpl-badge.danger  { background: var(--brand-red-100); color: var(--brand-red-600); }
.bnpl-badge.info    { background: var(--brand-sky-100); color: var(--brand-sky-700); }
.bnpl-badge.muted   { background: #e5e7eb; color: #374151; }
.bnpl-badge.purple  { background: var(--brand-purple-100); color: var(--brand-purple-700); }

.bnpl-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ----------------------------- Buttons --------------------------------- */
.btn-bnpl-primary {
    background: linear-gradient(135deg, var(--brand-purple-600), var(--brand-purple-900));
    color: #fff; border: none;
    padding: 0.55rem 1.2rem; border-radius: 10px; font-weight: 700;
    box-shadow: var(--bnpl-shadow-md);
}
.btn-bnpl-primary:hover, .btn-bnpl-primary:focus { color: #fff; filter: brightness(1.1); }
.btn-bnpl-primary:disabled { background: #c4b5fd; box-shadow: none; cursor: not-allowed; }

.btn-bnpl-success {
    background: linear-gradient(135deg, var(--brand-green-600), var(--brand-green-700));
    color: #fff; border: none;
    padding: 0.55rem 1.2rem; border-radius: 10px; font-weight: 700;
}
.btn-bnpl-success:hover { color: #fff; filter: brightness(1.08); }
.btn-bnpl-success:disabled { background: #86efac; cursor: not-allowed; }

.btn-bnpl-danger {
    background: var(--brand-red-600); color: #fff; border: none;
    padding: 0.55rem 1.2rem; border-radius: 10px; font-weight: 700;
}
.btn-bnpl-danger:hover { color: #fff; filter: brightness(1.08); }

.btn-bnpl-outline {
    background: #fff; color: var(--brand-purple-700);
    border: 1px solid var(--brand-purple-200, #ddd6fe);
    padding: 0.5rem 1rem; border-radius: 10px; font-weight: 600;
}
.btn-bnpl-outline:hover { background: var(--brand-purple-50); color: var(--brand-purple-700); }

.btn-bnpl-admin {
    background: #2563eb; color: #fff; border: none;
    padding: 0.5rem 1rem; border-radius: 10px; font-weight: 700;
}
.btn-bnpl-admin:hover { background: #1d4ed8; color: #fff; }

/* ----------------------------- Progress stepper ------------------------ */
.bnpl-stepper {
    display: flex; flex-direction: row-reverse;
    justify-content: space-between; align-items: flex-start;
    gap: 0.5rem; margin: 0.5rem 0 1.5rem;
    padding: 0.5rem 0;
}
.bnpl-stepper .bnpl-step {
    flex: 1; text-align: center; position: relative;
    color: var(--bnpl-muted); font-size: 0.82rem; min-width: 0;
}
.bnpl-stepper .bnpl-step-circle {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 2px solid #e5e7eb;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 0.3rem;
    color: var(--bnpl-muted);
    position: relative; z-index: 2;
}
.bnpl-stepper .bnpl-step + .bnpl-step::before {
    content: ""; position: absolute;
    right: calc(50% + 17px); left: calc(-50% + 17px);
    top: 17px; height: 2px; background: #e5e7eb; z-index: 1;
}
.bnpl-stepper .bnpl-step.is-done .bnpl-step-circle {
    background: var(--brand-green-500); color: #fff; border-color: var(--brand-green-500);
}
.bnpl-stepper .bnpl-step.is-done + .bnpl-step::before { background: var(--brand-green-500); }
.bnpl-stepper .bnpl-step.is-active .bnpl-step-circle {
    background: #fff; color: var(--brand-purple-700);
    border-color: var(--brand-purple-600);
    box-shadow: 0 0 0 4px var(--brand-purple-100);
}
.bnpl-stepper .bnpl-step.is-active { color: var(--brand-purple-700); font-weight: 700; }

/* ----------------------------- Forms ----------------------------------- */
.bnpl-field-label { font-size: 0.85rem; color: #374151; margin-bottom: 0.3rem; display: block; font-weight: 600; }
.bnpl-field-label .req { color: var(--brand-red-600); margin-right: 2px; }
.bnpl-form-control {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--bnpl-border);
    border-radius: 10px;
    background: #fff;
    color: var(--bnpl-ink);
    font-size: 0.92rem;
    text-align: right;
}
.bnpl-form-control:focus { outline: none; border-color: var(--brand-purple-500); box-shadow: 0 0 0 3px var(--brand-purple-100); }
.bnpl-form-control:disabled, .bnpl-form-control[readonly] { background: #f9fafb; color: #4b5563; }
.bnpl-form-error { color: var(--brand-red-600); font-size: 0.78rem; margin-top: 0.25rem; display: block; }
.bnpl-form-hint { color: var(--bnpl-muted); font-size: 0.78rem; margin-top: 0.25rem; display: block; }

/* Installment calculator */
.bnpl-calc-summary {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 1.2rem;
    min-height: 260px;
    display: flex; flex-direction: column; gap: 0.6rem; justify-content: center;
}
.bnpl-calc-summary .bnpl-calc-logo {
    align-self: flex-end; margin-bottom: 0.5rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--brand-purple-700); font-weight: 800;
}
.bnpl-calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.35rem 0; color: var(--brand-purple-900);
}
.bnpl-calc-row strong { color: var(--brand-purple-700); }
.bnpl-calc-total {
    border-top: 1px dashed #d8b4fe;
    padding-top: 0.6rem; margin-top: 0.4rem;
    font-weight: 800; color: var(--brand-purple-900);
}
.bnpl-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
    background: #ede9fe; border-radius: 999px; outline: none; direction: rtl;
}
.bnpl-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-purple-600); cursor: pointer;
    box-shadow: 0 2px 6px rgba(109,40,217,0.5); border: 3px solid #fff;
}
.bnpl-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-purple-600); cursor: pointer; border: 3px solid #fff;
}
.bnpl-tenor-btn {
    background: #fff; border: 1px solid var(--bnpl-border);
    padding: 0.4rem 1.1rem; border-radius: 10px; font-weight: 600;
    color: #374151;
}
.bnpl-tenor-btn.is-active {
    background: linear-gradient(135deg, var(--brand-purple-600), var(--brand-purple-900));
    color: #fff; border-color: transparent;
}

/* Pre-invoice (green) card */
.bnpl-preinvoice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1.25rem;
}
.bnpl-preinvoice h5 {
    color: var(--brand-green-700); font-weight: 800;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.bnpl-preinvoice .bnpl-preinvoice-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.bnpl-preinvoice .bnpl-preinvoice-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.35rem 0;
}
.bnpl-preinvoice .bnpl-preinvoice-list li::before {
    content: "✓"; width: 22px; height: 22px; flex: none;
    background: var(--brand-green-600); color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}

/* Validation result cards (6 kpis) */
.bnpl-validation-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
@media (max-width: 767px) { .bnpl-validation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bnpl-validation-grid { grid-template-columns: 1fr; } }
.bnpl-validation-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--brand-green-700);
    font-weight: 600;
}
.bnpl-validation-card.failed { background: #fef2f2; border-color: #fecaca; color: var(--brand-red-600); }
.bnpl-validation-card.loading { background: #f3f4f6; border-color: #e5e7eb; color: var(--bnpl-muted); font-weight: 500; }

/* Document upload card */
.bnpl-doc-card {
    background: #fafaf9;
    border: 1px dashed #d4d4d8;
    border-radius: 14px;
    padding: 1rem;
    min-height: 160px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.bnpl-doc-preview {
    height: 120px;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg,#f5f5f4,#f5f5f4 8px,#e7e5e4 8px,#e7e5e4 16px);
    display: flex; align-items: center; justify-content: center;
    color: var(--bnpl-muted); font-size: 0.8rem; margin-bottom: 0.5rem;
}
.bnpl-doc-status {
    display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: 999px;
    background: #e5e7eb; color: #374151; margin-top: 0.2rem;
}
.bnpl-doc-status.uploaded { background: var(--brand-green-100); color: var(--brand-green-700); }
.bnpl-doc-status.awaiting { background: var(--brand-amber-100); color: var(--brand-amber-600); }
.bnpl-doc-status.rejected { background: var(--brand-red-100); color: var(--brand-red-600); }
.bnpl-doc-status.processing { background: var(--brand-sky-100); color: var(--brand-sky-700); }

/* Final review color-coded cards */
.bnpl-summary-card {
    border-radius: 14px; padding: 1rem 1.2rem; height: 100%;
    display: flex; flex-direction: column; gap: 0.4rem;
    border: 1px solid transparent;
}
.bnpl-summary-card h6 {
    font-weight: 800; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.bnpl-summary-card .bnpl-sum-row {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; padding: 0.2rem 0;
}
.bnpl-summary-card.user { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.bnpl-summary-card.user h6 { color: #1d4ed8; }
.bnpl-summary-card.credit { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.bnpl-summary-card.credit h6 { color: var(--brand-green-700); }
.bnpl-summary-card.plan { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.bnpl-summary-card.plan h6 { color: var(--brand-orange-600); }
.bnpl-summary-card .bnpl-sum-total {
    border-top: 1px dashed currentColor; opacity: 0.95;
    padding-top: 0.5rem; margin-top: 0.5rem; font-weight: 800;
}

/* Payment status modal card */
.bnpl-payment-status {
    max-width: 440px; margin: 2rem auto; background: #fff;
    border: 1px solid var(--bnpl-border); border-radius: 14px;
    padding: 2rem; text-align: center;
    box-shadow: 0 25px 45px -25px rgba(15,23,42,0.2);
}
.bnpl-payment-status .bnpl-payment-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--brand-green-500); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 0.8rem;
}
.bnpl-payment-status .bnpl-payment-title { color: var(--brand-green-700); font-weight: 800; }
.bnpl-payment-status .bnpl-payment-meta { color: var(--bnpl-muted); font-size: 0.9rem; }
.bnpl-payment-status .bnpl-payment-countdown {
    margin-top: 1.2rem; font-size: 0.9rem; color: var(--brand-red-600);
}
.bnpl-payment-status .bnpl-payment-countdown .cbtn {
    background: var(--brand-green-600); color: #fff; border: none;
    border-radius: 999px; padding: 0.25rem 0.9rem; font-weight: 700; font-size: 0.8rem;
}

/* ----------------------------- Admin tables ---------------------------- */
.bnpl-table-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-bottom: 0.9rem; flex-wrap: wrap;
}
.bnpl-table-toolbar input, .bnpl-table-toolbar select { min-width: 150px; }

.bnpl-data-table {
    width: 100%;
    border-collapse: separate; border-spacing: 0 6px;
}
.bnpl-data-table thead th {
    text-align: right; color: var(--bnpl-muted); font-weight: 600;
    font-size: 0.85rem; padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--bnpl-border);
}
.bnpl-data-table tbody tr {
    background: #fff;
}
.bnpl-data-table tbody td {
    padding: 0.75rem; font-size: 0.88rem; color: var(--bnpl-ink);
    border-top: 1px solid var(--bnpl-border); border-bottom: 1px solid var(--bnpl-border);
}
.bnpl-data-table tbody td:first-child { border-right: 1px solid var(--bnpl-border); border-radius: 0 10px 10px 0; }
.bnpl-data-table tbody td:last-child { border-left: 1px solid var(--bnpl-border); border-radius: 10px 0 0 10px; }
.bnpl-data-table tbody tr:hover { background: var(--brand-purple-50); }
.bnpl-data-table .bnpl-row-actions { display: flex; gap: 0.3rem; justify-content: flex-end; }
.bnpl-icon-btn {
    background: #fff; border: 1px solid var(--bnpl-border); border-radius: 8px;
    padding: 0.3rem 0.55rem; color: #4b5563; font-size: 0.8rem;
}
.bnpl-icon-btn:hover { background: var(--brand-purple-50); color: var(--brand-purple-700); border-color: var(--brand-purple-100); }
.bnpl-icon-btn.danger { color: var(--brand-red-600); }
.bnpl-icon-btn.danger:hover { background: var(--brand-red-100); border-color: #fecaca; }

/* Filter strip under column headers (admin list) */
.bnpl-filter-row input, .bnpl-filter-row select {
    width: 100%; padding: 0.35rem 0.5rem; border: 1px solid var(--bnpl-border);
    border-radius: 8px; font-size: 0.82rem; background: #f9fafb;
}

/* Modal */
.bnpl-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,0.55);
    z-index: 1040; display: none;
}
.bnpl-modal-backdrop.is-open { display: flex; align-items: center; justify-content: center; }
.bnpl-modal {
    background: #fff; border-radius: 14px;
    width: min(640px, 92%); padding: 1.2rem 1.4rem; position: relative;
    max-height: 90vh; overflow-y: auto; direction: rtl;
}
.bnpl-modal-close {
    position: absolute; left: 1rem; top: 0.8rem;
    border: none; background: transparent; font-size: 1.1rem; color: var(--bnpl-muted);
}
.bnpl-modal h5 { font-weight: 800; margin-bottom: 1rem; }

/* Logo placeholder (admin guarantor list) */
.bnpl-logo-placeholder {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.8rem;
}

/* Alerts */
.bnpl-alert {
    border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.9rem;
    border: 1px solid transparent; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.bnpl-alert.info  { background: var(--brand-sky-100); color: var(--brand-sky-700); border-color: #bae6fd; }
.bnpl-alert.warn  { background: var(--brand-amber-100); color: var(--brand-amber-600); border-color: #fde68a; }
.bnpl-alert.error { background: var(--brand-red-100); color: var(--brand-red-600); border-color: #fecaca; }
.bnpl-alert.success { background: var(--brand-green-100); color: var(--brand-green-700); border-color: #bbf7d0; }

/* Divider label for inner form sections */
.bnpl-section-title {
    font-weight: 800; color: var(--brand-purple-700); margin: 0.2rem 0 0.8rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.bnpl-section-title::after {
    content: ""; flex: 1; height: 1px; background: var(--bnpl-border);
}

/* Final-submission success panel */
.bnpl-success-panel {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 75%);
    border: 1px solid #bbf7d0;
    padding: 2.5rem 1.5rem;
}
.bnpl-success-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--brand-green-500); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto;
    box-shadow: 0 12px 25px -10px rgba(34,197,94,0.5);
}
.bnpl-ref-box {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1.1rem; border-radius: 12px;
    background: var(--brand-purple-50); color: var(--brand-purple-700);
    border: 1px dashed var(--brand-purple-500);
    margin-top: 0.8rem;
}

/* Plan capabilities checklist (admin plan form) */
.bnpl-capability-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem;
    margin-top: 0.6rem;
}
@media (max-width: 640px) { .bnpl-capability-list { grid-template-columns: 1fr; } }
.bnpl-capability-item {
    display: flex; align-items: center; gap: 0.5rem;
    background: #f9fafb; padding: 0.5rem 0.8rem; border-radius: 10px;
    border: 1px solid var(--bnpl-border);
    font-size: 0.88rem;
}
.bnpl-capability-item input[type=checkbox] { accent-color: var(--brand-purple-600); width: 18px; height: 18px; }
.bnpl-capability-item.is-on { background: var(--brand-purple-50); border-color: #ddd6fe; color: var(--brand-purple-700); font-weight: 600; }

/* Request detail timeline (admin request page) */
.bnpl-timeline { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.5rem; }
.bnpl-timeline-item {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #fafafa; border: 1px solid var(--bnpl-border);
    font-size: 0.88rem;
}
.bnpl-timeline-item .bnpl-timeline-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e5e7eb; color: #6b7280; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.bnpl-timeline-item.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.bnpl-timeline-item.is-done .bnpl-timeline-dot { background: var(--brand-green-500); color: #fff; }
.bnpl-timeline-item.is-current { background: #f5f3ff; border-color: #ddd6fe; }
.bnpl-timeline-item.is-current .bnpl-timeline-dot { background: var(--brand-purple-600); color: #fff; }
.bnpl-timeline-item.is-failed { background: #fef2f2; border-color: #fecaca; }
.bnpl-timeline-item.is-failed .bnpl-timeline-dot { background: var(--brand-red-600); color: #fff; }

/* utility */
.bnpl-muted { color: var(--bnpl-muted) !important; }
.bnpl-mono { font-variant-numeric: tabular-nums; }
.bnpl-font-bold { font-weight: 700; }
.bnpl-gap-2 { gap: 0.5rem; }

/* =====================================================================
   AUTH SCREENS — login / register (3 steps) / 2FA / forgot / reset.
   Two-panel layout: brand story + form card, RTL-first.
   ===================================================================== */

.auth-shell {
    direction: rtl;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 440px 1fr;
    background:
        linear-gradient(135deg, #ffffff 0%, #f5f7f2 100%);
}
@media (max-width: 991px) {
    .auth-shell { grid-template-columns: 1fr; min-height: auto; }
}

.auth-brand-panel {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(255,255,255,0.14), transparent 60%),
        linear-gradient(150deg, var(--colend-blue-800) 0%, var(--colend-blue-600) 55%, var(--colend-green-600) 115%);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; gap: 2rem;
}
.auth-brand-panel::after {
    content: ""; position: absolute; right: -60px; bottom: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 60%);
    pointer-events: none;
}
.auth-brand-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: #fff;
    position: relative; z-index: 1;
}
.auth-brand-logo svg {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(6px);
}
.auth-brand-name { font-weight: 900; font-size: 1.35rem; letter-spacing: .5px; }
.auth-brand-logo small { opacity: 0.8; font-size: 0.72rem; display: block; }

.auth-brand-hero { position: relative; z-index: 1; margin-top: auto; }
.auth-brand-hero h2 { font-weight: 900; font-size: 1.6rem; margin: 0 0 0.5rem; }
.auth-brand-hero p  { opacity: 0.9; line-height: 1.8; font-size: 0.92rem; margin: 0 0 1.2rem; }
.auth-brand-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.auth-brand-points li {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.88rem; opacity: 0.95;
}
.auth-brand-points li i {
    width: 30px; height: 30px; border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.auth-brand-foot { position: relative; z-index: 1; }
.auth-brand-foot a { color: #fff; opacity: .8; text-decoration: none; font-size: .85rem; }
.auth-brand-foot a:hover { opacity: 1; text-decoration: underline; }

.auth-form-panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 560px) { .auth-form-panel { padding: 1.5rem 1rem; } }

.auth-head { margin-bottom: 1.2rem; }
.auth-steps {
    display: flex; align-items: center; gap: 0.25rem;
    margin-bottom: 1.1rem;
}
.auth-step {
    width: 28px; height: 28px; border-radius: 50%;
    background: #eef0ea; color: #6b7280; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex: none;
    border: 1px solid #e3e8dc;
    transition: all 0.2s;
}
.auth-step.is-current {
    background: var(--colend-blue-600); color: #fff;
    border-color: var(--colend-blue-600);
    box-shadow: 0 0 0 4px rgba(46,89,153,0.15);
}
.auth-step.is-done {
    background: var(--colend-green-600); color: #fff;
    border-color: var(--colend-green-600);
}
.auth-step-bar {
    flex: 1; height: 2px; background: #eef0ea; border-radius: 2px;
    transition: background 0.2s;
}
.auth-step-bar.is-done { background: var(--colend-green-500); }

.auth-title { font-size: 1.5rem; font-weight: 900; margin: 0 0 .35rem; color: var(--colend-ink); }
.auth-sub   { font-size: .92rem; color: var(--bnpl-muted); margin: 0; line-height: 1.75; }

.auth-flash {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 0.9rem; border-radius: 12px;
    font-size: 0.88rem; margin-bottom: 0.9rem;
    border: 1px solid transparent;
}
.auth-flash i { font-size: 1.05rem; flex: none; }
.auth-flash.success { background: #e7f7ec; border-color: #bfe6c9; color: #176a32; }
.auth-flash.danger  { background: #fdecea; border-color: #f5c7c2; color: #c23a33; }
.auth-flash.warning { background: #fdf6e4; border-color: #efd99a; color: #8d6e11; }
.auth-flash.info    { background: #eef3f9; border-color: #c5d4e8; color: #234978; }

.auth-card {
    background: #ffffff;
    border: 1px solid var(--bnpl-border);
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 25px 45px -30px rgba(17,45,78,0.18);
}
@media (max-width: 560px) { .auth-card { padding: 1.2rem; border-radius: 14px; } }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-field-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
}
@media (max-width: 560px) { .auth-field-grid { grid-template-columns: 1fr; } }

.auth-label {
    font-size: 0.85rem; font-weight: 700; color: var(--colend-ink);
}
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; }

.auth-input-group {
    position: relative;
    display: flex; align-items: stretch;
    border: 1px solid var(--bnpl-border);
    border-radius: 12px;
    background: #f5f7f2;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-input-group:focus-within {
    background: #fff;
    border-color: var(--colend-blue-500);
    box-shadow: 0 0 0 3px rgba(46,89,153,0.15);
}
.auth-input-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; color: var(--bnpl-muted);
    border-left: 1px solid var(--bnpl-border);
    font-size: 1.05rem;
}
.auth-input {
    flex: 1; min-width: 0;
    background: transparent; border: none; outline: none;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem; color: var(--colend-ink);
    font-family: inherit;
}
.auth-input:disabled { opacity: 0.6; }
.auth-input::placeholder { color: #9aa2ac; font-size: 0.9rem; }

.auth-input-toggle {
    background: transparent; border: none; color: var(--bnpl-muted);
    padding: 0 .8rem;
    cursor: pointer;
}
.auth-input-toggle:hover { color: var(--colend-blue-700); }

.auth-hint  { font-size: 0.78rem; color: var(--bnpl-muted); }
.auth-error { font-size: 0.8rem;  color: #c23a33; font-weight: 600; margin-top: 0.2rem; }
.auth-error:empty { display: none; }

.auth-check {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.88rem; cursor: pointer; color: var(--colend-ink);
}
.auth-check input { accent-color: var(--colend-blue-600); width: 16px; height: 16px; }

.auth-link {
    color: var(--colend-blue-700); text-decoration: none; font-weight: 600;
    background: transparent; border: none; padding: 0; cursor: pointer;
    font-size: inherit;
}
.auth-link:hover   { color: var(--colend-blue-800); text-decoration: underline; }
.auth-link.strong  { font-weight: 800; }

.auth-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--colend-blue-700), var(--colend-green-600));
    color: #fff; font-weight: 800; font-size: 0.95rem;
    border: none;
    box-shadow: 0 14px 30px -18px rgba(46,89,153,0.55);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    cursor: pointer;
}
.auth-btn-primary:hover  { transform: translateY(-1px); filter: brightness(1.06); }
.auth-btn-primary:active { transform: translateY(0); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.auth-divider {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--bnpl-muted); font-size: 0.8rem; margin: 0.3rem 0 0.2rem;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--bnpl-border);
}

.auth-alt   { text-align: center; font-size: 0.88rem; color: var(--colend-ink); }

.auth-otp {
    display: flex; gap: 0.5rem; justify-content: center;
    direction: ltr; margin: 0.5rem 0 0.2rem;
}
.auth-otp-cell {
    width: 48px; height: 56px;
    text-align: center;
    font-size: 1.3rem; font-weight: 800;
    border: 1.5px solid var(--bnpl-border);
    border-radius: 12px;
    background: #f5f7f2;
    color: var(--colend-ink);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
}
.auth-otp-cell:focus {
    outline: none;
    border-color: var(--colend-blue-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,89,153,0.18);
}
@media (max-width: 430px) {
    .auth-otp { gap: 0.3rem; }
    .auth-otp-cell { width: 40px; height: 50px; font-size: 1.1rem; }
}

.auth-resend {
    display: flex; align-items: center; gap: 0.4rem; justify-content: center;
    font-size: 0.85rem; color: var(--colend-ink);
}
.auth-resend .auth-link { display: inline-flex; align-items: center; gap: 0.25rem; }

.auth-2fa-illus {
    text-align: center;
    color: var(--colend-blue-600);
    font-size: 2.8rem; margin-bottom: 0.3rem;
}
.auth-2fa-illus i {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--colend-blue-50);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px rgba(46,89,153,0.06);
}

.auth-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px dashed var(--bnpl-border);
    color: var(--bnpl-muted); font-size: 0.8rem;
}
.auth-foot nav { display: flex; gap: 1rem; }
.auth-foot a {
    color: var(--bnpl-muted); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.auth-foot a:hover { color: var(--colend-blue-700); }

/* =====================================================================
   ADMIN DASHBOARD — modern, RTL-first surface for the Colend admin panel.
   Hero greeting, KPI cards with trends & sparklines, donut breakdown,
   activity feed, queue list, and system-health widget.
   ===================================================================== */

.admin-dashboard {
    direction: rtl;
    display: flex; flex-direction: column; gap: 1.1rem;
}

/* --- Hero --- */
.admin-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 320px at 100% -40%, rgba(255,255,255,0.45), transparent 55%),
        linear-gradient(120deg, var(--colend-blue-700) 0%, var(--colend-blue-600) 55%, var(--colend-green-600) 115%);
    color: #fff;
    border-radius: 20px;
    padding: 1.6rem 1.8rem 1.5rem;
    box-shadow: 0 24px 50px -30px rgba(23,49,79,0.55);
}
.admin-hero::after {
    content: ""; position: absolute; inset: auto -60px -80px auto;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 65%);
    pointer-events: none;
}
.admin-hero-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1.5rem; flex-wrap: wrap;
}
.admin-hero-greet { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.2px; margin: 0; }
.admin-hero-sub   { margin: 0.3rem 0 0; font-size: 0.92rem; opacity: 0.88; max-width: 540px; }
.admin-hero-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.admin-hero-pill {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 0.3rem 0.8rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
    backdrop-filter: blur(6px);
}
.admin-hero-pill strong { font-weight: 800; }
.admin-hero-pill .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--colend-gold-400, #ecd888);
}
.admin-hero-pill.up   .dot { background: #86efac; }
.admin-hero-pill.down .dot { background: #fca5a5; }
.admin-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-hero-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1rem; border-radius: 12px;
    font-weight: 700; font-size: 0.88rem; text-decoration: none;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.admin-hero-btn.solid   { background: #fff; color: var(--colend-blue-700); }
.admin-hero-btn.solid:hover  { transform: translateY(-1px); background: var(--colend-gold-50); color: var(--colend-blue-800); }
.admin-hero-btn.ghost   { background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.admin-hero-btn.ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* --- KPI grid --- */
.admin-kpi-grid {
    display: grid; gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .admin-kpi-grid { grid-template-columns: 1fr; } }

.admin-kpi {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--bnpl-border);
    border-radius: 16px; padding: 1rem 1.1rem 0.9rem;
    box-shadow: var(--bnpl-shadow-sm);
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-kpi:hover { transform: translateY(-2px); box-shadow: 0 18px 35px -25px rgba(46,89,153,0.35); }
.admin-kpi::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
    background: var(--accent, var(--colend-blue-600));
}
.admin-kpi-head {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--bnpl-muted); font-size: 0.8rem; font-weight: 600;
}
.admin-kpi-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-bg, var(--colend-blue-50));
    color: var(--accent, var(--colend-blue-700));
    font-size: 0.95rem;
}
.admin-kpi-value {
    font-size: 1.55rem; font-weight: 800;
    color: var(--colend-ink);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.admin-kpi-value small { font-size: 0.75rem; font-weight: 600; color: var(--bnpl-muted); margin-right: 0.3rem; }
.admin-kpi-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: var(--bnpl-muted);
}
.admin-kpi-trend {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700;
    font-size: 0.76rem;
}
.admin-kpi-trend.up   { background: #e7f7ec; color: #176a32; }
.admin-kpi-trend.down { background: #fdecea; color: #c23a33; }
.admin-kpi-trend.flat { background: #eef2f6; color: #4a5468; }

/* Color accents per KPI */
.admin-kpi.blue   { --accent: var(--colend-blue-600);  --accent-bg: var(--colend-blue-50); }
.admin-kpi.green  { --accent: var(--colend-green-600); --accent-bg: var(--colend-green-50); }
.admin-kpi.gold   { --accent: var(--colend-gold-600);  --accent-bg: var(--colend-gold-50); }
.admin-kpi.red    { --accent: #c23a33;                 --accent-bg: #fdecea; }

/* Sparkline (pure CSS bars) */
.admin-spark {
    display: flex; align-items: flex-end; gap: 2px;
    height: 34px; margin-top: 0.25rem;
}
.admin-spark span {
    flex: 1; min-width: 2px;
    background: color-mix(in srgb, var(--accent, var(--colend-blue-600)) 60%, transparent);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}
.admin-spark span:last-child {
    background: var(--accent, var(--colend-blue-600));
}

/* --- Main split (2/3 + 1/3) --- */
.admin-split {
    display: grid; gap: 1rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
}
@media (max-width: 1100px) { .admin-split { grid-template-columns: 1fr; } }

.admin-panel {
    background: #fff; border: 1px solid var(--bnpl-border);
    border-radius: 16px; padding: 1.1rem 1.2rem;
    box-shadow: var(--bnpl-shadow-sm);
    display: flex; flex-direction: column; gap: 0.9rem;
}
.admin-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.5rem;
}
.admin-panel-title {
    font-weight: 800; font-size: 0.98rem; color: var(--colend-ink);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.admin-panel-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 2px;
    background: var(--colend-blue-600);
}
.admin-panel.green  .admin-panel-title::before { background: var(--colend-green-600); }
.admin-panel.gold   .admin-panel-title::before { background: var(--colend-gold-600); }
.admin-panel-link {
    font-size: 0.82rem; font-weight: 600; color: var(--colend-blue-700);
    text-decoration: none;
}
.admin-panel-link:hover { color: var(--colend-blue-800); text-decoration: underline; }

/* Requests table (compact variant) */
.admin-req-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.admin-req-table thead th {
    text-align: right; color: var(--bnpl-muted); font-weight: 600;
    font-size: 0.8rem; padding: 0.4rem 0.6rem;
}
.admin-req-table tbody tr {
    background: #fafbf9; border-radius: 12px;
    transition: background 0.15s;
}
.admin-req-table tbody tr:hover { background: var(--colend-green-50); }
.admin-req-table tbody td {
    padding: 0.75rem 0.6rem; font-size: 0.88rem; color: var(--colend-ink);
    border-top: 1px solid #eef0ea; border-bottom: 1px solid #eef0ea;
}
.admin-req-table tbody td:first-child { border-right: 1px solid #eef0ea; border-radius: 0 12px 12px 0; }
.admin-req-table tbody td:last-child  { border-left:  1px solid #eef0ea; border-radius: 12px 0 0 12px; text-align: left; }

.admin-req-user {
    display: flex; align-items: center; gap: 0.55rem;
}
.admin-req-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--colend-blue-500), var(--colend-green-500));
    color: #fff; font-weight: 800; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.admin-req-user-name { font-weight: 700; font-size: 0.9rem; }
.admin-req-user-meta { font-size: 0.75rem; color: var(--bnpl-muted); }

/* Status pill (self-contained so it doesn't rely on brand-* variables) */
.admin-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700;
    line-height: 1; white-space: nowrap;
}
.admin-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.admin-pill.pending   { background: #fdf6e4; color: #8d6e11; }
.admin-pill.scoring   { background: #eef3f9; color: #234978; }
.admin-pill.needs_fix { background: #fdf0e7; color: #a3630a; }
.admin-pill.approved  { background: #e7f7ec; color: #176a32; }
.admin-pill.rejected  { background: #fdecea; color: #c23a33; }
.admin-pill.draft     { background: #eef0ea; color: #4a5468; }

/* Donut (status breakdown) */
.admin-donut-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-donut {
    --total: 1;
    --a: 0deg; --b: 0deg; --c: 0deg; --d: 0deg; --e: 0deg;
    width: 148px; height: 148px; border-radius: 50%;
    background: conic-gradient(
        var(--colend-gold-600)  0deg var(--a),
        var(--colend-blue-500)  var(--a) var(--b),
        #d58b0f                 var(--b) var(--c),
        var(--colend-green-600) var(--c) var(--d),
        #c23a33                 var(--d) var(--e),
        #e3e8dc                 var(--e) 360deg
    );
    position: relative;
    flex: none;
}
.admin-donut::after {
    content: ""; position: absolute; inset: 14px; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 1px #eef0ea;
}
.admin-donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 1;
    font-variant-numeric: tabular-nums;
}
.admin-donut-center strong { font-size: 1.4rem; color: var(--colend-ink); line-height: 1; }
.admin-donut-center small  { font-size: 0.7rem; color: var(--bnpl-muted); margin-top: 0.2rem; }

.admin-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 180px; }
.admin-legend li {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; color: var(--colend-ink);
}
.admin-legend li::before {
    content: ""; width: 9px; height: 9px; border-radius: 3px;
    margin-left: 0.45rem; background: var(--c, var(--colend-blue-500));
    display: inline-block; flex: none;
}
.admin-legend li span { color: var(--bnpl-muted); font-size: 0.78rem; margin-right: auto; }
.admin-legend li strong { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Quick actions row */
.admin-quick-actions {
    display: grid; gap: 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-quick {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.7rem 0.8rem; border-radius: 12px;
    background: #f5f7f2; border: 1px solid #e3e8dc;
    color: var(--colend-ink); text-decoration: none;
    font-weight: 700; font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.admin-quick:hover { background: var(--colend-blue-50); border-color: var(--colend-blue-200); color: var(--colend-blue-800); transform: translateY(-1px); }
.admin-quick .ico {
    width: 32px; height: 32px; border-radius: 10px;
    background: #fff; border: 1px solid #e3e8dc;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; font-size: 0.95rem;
}

/* Activity feed */
.admin-activity { list-style: none; padding: 0; margin: 0; }
.admin-activity li {
    display: flex; gap: 0.6rem; padding: 0.55rem 0;
    border-bottom: 1px dashed #eef0ea; font-size: 0.85rem;
}
.admin-activity li:last-child { border-bottom: none; }
.admin-activity li .time { color: var(--bnpl-muted); font-size: 0.75rem; margin-top: 0.15rem; }
.admin-activity .who    { font-weight: 700; color: var(--colend-blue-700); margin-left: 0.3rem; }
.admin-activity .badge-flow {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #eef3f9; color: #234978; font-size: 0.72rem;
    padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 700;
    margin-right: 0.3rem;
}
.admin-activity .bullet {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--colend-blue-500);
    margin-top: 0.35rem; flex: none;
    box-shadow: 0 0 0 3px rgba(46,89,153,0.15);
}

.admin-empty {
    text-align: center; padding: 1.5rem 1rem;
    color: var(--bnpl-muted); font-size: 0.88rem;
    border: 1px dashed #e3e8dc; border-radius: 12px;
    background: #fafbf7;
}

/* System health widget */
.admin-health { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-health-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.75rem; border-radius: 10px;
    background: #fafbf7; border: 1px solid #eef0ea;
    font-size: 0.85rem;
}
.admin-health-row .status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 700;
}
.admin-health-row .status .dot {
    width: 9px; height: 9px; border-radius: 50%;
    display: inline-block; box-shadow: 0 0 0 3px rgba(46,89,153,0.1);
}
.admin-health-row.ok   .status { color: #176a32; }
.admin-health-row.ok   .status .dot { background: #2f9e4a; box-shadow: 0 0 0 3px rgba(47,158,74,0.18); }
.admin-health-row.warn .status { color: #8d6e11; }
.admin-health-row.warn .status .dot { background: var(--colend-gold-600); box-shadow: 0 0 0 3px rgba(181,138,26,0.2); }
.admin-health-row.down .status { color: #c23a33; }
.admin-health-row.down .status .dot { background: #c23a33; box-shadow: 0 0 0 3px rgba(194,58,51,0.18); }

/* Queue card list (stack of pending decisions) */
.admin-queue { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-queue-row {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 0.85rem; border-radius: 12px;
    background: #fafbf7; border: 1px solid #eef0ea;
    transition: background 0.15s, border-color 0.15s;
}
.admin-queue-row:hover { background: var(--colend-green-50); border-color: var(--colend-green-200); }
.admin-queue-row .meta { flex: 1; min-width: 0; }
.admin-queue-row .meta .title { font-weight: 700; font-size: 0.9rem; }
.admin-queue-row .meta .sub   { font-size: 0.76rem; color: var(--bnpl-muted); }
.admin-queue-row .amount {
    font-variant-numeric: tabular-nums; font-weight: 800;
    color: var(--colend-ink); font-size: 0.88rem; white-space: nowrap;
}
.admin-queue-row .btn-set { display: flex; gap: 0.3rem; }
.admin-btn-mini {
    padding: 0.35rem 0.8rem; border-radius: 8px; font-weight: 700; font-size: 0.78rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
    border: 1px solid transparent; white-space: nowrap;
}
.admin-btn-mini.review    { background: var(--colend-blue-50);  color: var(--colend-blue-700); border-color: var(--colend-blue-200); }
.admin-btn-mini.review:hover    { background: var(--colend-blue-100); }
.admin-btn-mini.approve   { background: #e7f7ec; color: #176a32; border-color: #bfe6c9; }
.admin-btn-mini.approve:hover   { background: #d3f1dc; }
.admin-btn-mini.reject    { background: #fdecea; color: #c23a33; border-color: #f5c7c2; }
.admin-btn-mini.reject:hover    { background: #f9dedb; }

/* Footer stat strip */
.admin-footstats {
    display: grid; gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #ffffff; border: 1px solid var(--bnpl-border);
    border-radius: 16px; padding: 0.9rem 1rem;
    box-shadow: var(--bnpl-shadow-sm);
}
@media (max-width: 900px) { .admin-footstats { grid-template-columns: repeat(2, 1fr); } }
.admin-footstats .cell {
    display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.25rem 0.5rem;
    border-right: 1px dashed #eef0ea;
}
.admin-footstats .cell:last-child { border-right: none; }
@media (max-width: 900px) { .admin-footstats .cell { border-right: none; border-bottom: 1px dashed #eef0ea; padding-bottom: 0.5rem; } }
.admin-footstats .cell small { color: var(--bnpl-muted); font-size: 0.75rem; }
.admin-footstats .cell strong {
    font-size: 1.1rem; font-weight: 800; color: var(--colend-ink);
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   LANDING PAGE — «کولند» / Colend.ir
   Tri-tone brand: GREEN primary (loans), BLUE trust (services), GOLD offer (BNPL).
   All layouts RTL-first.
   ===================================================================== */

.landing-body {
    margin: 0;
    direction: rtl;
    background: #ffffff;
    color: var(--colend-ink);
    font-family: var(--colend-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

/* ---------- NAV ---------- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(79,127,47,0.12);
}
.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}
.landing-brand-mark {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--colend-green-500), var(--colend-green-700));
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px -10px rgba(62,107,48,0.55);
    position: relative;
    flex: 0 0 auto;
}
.landing-brand-mark::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 11px;
    border: 1.5px solid rgba(255,255,255,0.45);
    pointer-events: none;
}
.landing-brand-mark svg { display:block; width: 24px; height: 24px; }
.landing-brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.landing-brand-fa {
    font-weight: 900; font-size: 1.08rem;
    color: var(--colend-green-700);
    letter-spacing: 0.01em;
}
.landing-brand-en {
    font-size: 0.68rem;
    color: var(--colend-sub);
    letter-spacing: 0.1em;
    margin-top: 3px;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
}

.landing-nav-links {
    margin-inline-start: auto;
    display: flex; gap: 0.35rem; align-items: center;
}
.landing-nav-links a {
    padding: 0.55rem 0.9rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
    font-weight: 500;
}
.landing-nav-links a:hover { background: var(--colend-green-50); color: var(--colend-green-700); }
.landing-nav-links a.is-active { background: var(--colend-green-100); color: var(--colend-green-700); font-weight: 700; }

.landing-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* ---------- BUTTONS ---------- */
.landing-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.3rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.landing-btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.landing-btn-sm { padding: 0.55rem 1rem; font-size: 0.86rem; border-radius: 11px; }
.landing-btn-primary {
    background: linear-gradient(135deg, var(--colend-green-500) 0%, var(--colend-green-700) 100%);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(62,107,48,0.55);
}
.landing-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 35px -12px rgba(62,107,48,0.7); color: #fff; }
.landing-btn-blue {
    background: linear-gradient(135deg, var(--colend-blue-500) 0%, var(--colend-blue-700) 100%);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(46,89,153,0.55);
}
.landing-btn-blue:hover { transform: translateY(-1px); color: #fff; }
.landing-btn-gold {
    background: linear-gradient(135deg, var(--colend-gold-500) 0%, var(--colend-gold-700) 100%);
    color: #3f2f05;
    box-shadow: 0 14px 28px -12px rgba(181,138,26,0.55);
}
.landing-btn-gold:hover { transform: translateY(-1px); color: #3f2f05; }
.landing-btn-outline {
    background: #fff; color: var(--colend-green-700); border: 1px solid var(--colend-green-200);
}
.landing-btn-outline:hover { border-color: var(--colend-green-500); color: var(--colend-green-700); background: var(--colend-green-50); }
.landing-btn-ghost {
    background: transparent; color: var(--colend-green-700);
}
.landing-btn-ghost:hover { color: var(--colend-green-700); background: var(--colend-green-50); }
.landing-btn-white { background: #fff; color: var(--colend-green-700); }
.landing-btn-white:hover { background: var(--colend-green-50); color: var(--colend-green-700); }
.landing-btn-ghost-light {
    background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.28);
}
.landing-btn-ghost-light:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- HERO ---------- */
.landing-hero {
    position: relative;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(79,127,47,0.10), transparent 45%),
        radial-gradient(circle at 92% 20%, rgba(46,89,153,0.09), transparent 45%),
        radial-gradient(circle at 50% 110%, rgba(201,162,39,0.08), transparent 55%),
        #fbfdf6;
}
.landing-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.landing-hero-bg .blob {
    position: absolute; border-radius: 50%; filter: blur(65px); opacity: 0.65;
}
.landing-hero-bg .blob-1 { width: 480px; height: 480px; background: rgba(108,161,62,0.55); top: -140px; right: -100px; }
.landing-hero-bg .blob-2 { width: 360px; height: 360px; background: rgba(58,108,181,0.30); bottom: -80px; left: -60px; opacity: 0.5; }
.landing-hero-bg .blob-3 { width: 260px; height: 260px; background: rgba(201,162,39,0.35); top: 45%; left: 35%; opacity: 0.45; }

.landing-hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}
.landing-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: var(--colend-green-100);
    color: var(--colend-green-700);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(79,127,47,0.25);
}
.landing-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--colend-green-500); box-shadow: 0 0 0 4px rgba(108,161,62,0.18); }

.landing-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 900;
    color: var(--colend-ink);
    margin: 0 0 1.1rem;
    letter-spacing: -0.02em;
}
.landing-hero-title .ko {
    display: inline-block;
    background: linear-gradient(135deg, var(--colend-gold-600), var(--colend-gold-800));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    font-weight: 900;
}
.landing-hero-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--colend-green-600), var(--colend-green-800));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    font-weight: 900;
}
.landing-hero-sub {
    color: var(--colend-sub);
    font-size: 1.04rem;
    line-height: 2;
    margin: 0 0 1.6rem;
}
.landing-hero-sub strong { color: var(--colend-green-700); font-weight: 800; }

.landing-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.landing-hero-points {
    list-style: none; padding: 0; margin: 1.4rem 0 0;
    display: flex; flex-wrap: wrap; gap: 1.1rem;
    color: #1f2937; font-size: 0.92rem;
}
.landing-hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.landing-hero-points .tick {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--colend-green-500); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 900;
}

/* ---------- HERO VISUAL: tri-banner stack (mirrors brand reference) ---------- */
.landing-hero-visual {
    position: relative;
    padding: 0.5rem;
}
.colend-banner-stack {
    display: grid;
    gap: 1rem;
}
.colend-banner {
    position: relative;
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    color: #fff;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.9rem;
    align-items: center;
    box-shadow: 0 18px 36px -22px rgba(26,32,50,0.35);
    overflow: hidden;
}
.colend-banner-logo {
    background: #fff; color: var(--colend-green-700);
    border-radius: 12px;
    padding: 0.55rem 0.45rem;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 6px 14px -8px rgba(26,32,50,0.3);
}
.colend-banner-logo .mark { font-size: 0.68rem; opacity: 0.75; display: block; }
.colend-banner-logo .name { font-weight: 900; font-size: 1rem; display: block; margin: 3px 0; color: var(--colend-green-700); }
.colend-banner-logo .tag { font-size: 0.62rem; color: #4a5468; font-weight: 600; display: block; line-height: 1.4; }
.colend-banner-copy strong { display: block; font-weight: 900; font-size: 1.05rem; line-height: 1.6; margin-bottom: 0.15rem; }
.colend-banner-copy em { font-style: normal; opacity: 0.9; font-size: 0.85rem; }
.colend-banner-copy .ko { color: #fff8d6; font-weight: 900; }
.colend-banner-copy .brand-accent { color: #fff; background: rgba(0,0,0,0.18); padding: 0 0.35rem; border-radius: 6px; font-weight: 900; }
.colend-banner.green { background: linear-gradient(135deg, var(--colend-green-600), var(--colend-green-800)); }
.colend-banner.blue { background: linear-gradient(135deg, var(--colend-blue-600), var(--colend-blue-800)); }
.colend-banner.gold { background: linear-gradient(135deg, var(--colend-gold-600), var(--colend-gold-800)); color: #3a2c08; }
.colend-banner.gold .colend-banner-copy strong { color: #3a2c08; }
.colend-banner.gold .colend-banner-copy em { color: #4d3b0e; }
.colend-banner.gold .colend-banner-copy .ko { color: #fff; }
.colend-banner.gold .colend-banner-logo { color: var(--colend-gold-800); }
.colend-banner.gold .colend-banner-logo .name { color: var(--colend-gold-800); }

/* ---------- STATS ---------- */
.landing-stats {
    padding: 2rem 0;
    border-top: 1px dashed rgba(79,127,47,0.18);
    border-bottom: 1px dashed rgba(79,127,47,0.18);
    background: #fafdf5;
}
.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.landing-stat { text-align: center; padding: 0.25rem 0.5rem; }
.landing-stat strong {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 900;
    color: var(--colend-green-700);
    letter-spacing: -0.015em;
    margin-bottom: 0.2rem;
}
.landing-stat span { font-size: 0.86rem; color: #64748b; }

/* ---------- SECTIONS ---------- */
.landing-section { padding: 4rem 0; }
.landing-section-alt { background: var(--colend-cloud); border-top: 1px solid rgba(62,107,48,0.08); border-bottom: 1px solid rgba(62,107,48,0.08); }
.landing-section-blue { background: var(--colend-blue-50); }
.landing-section-gold { background: var(--colend-gold-50); }

.landing-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}
.landing-kicker {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--colend-green-100);
    color: var(--colend-green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(79,127,47,0.22);
}
.landing-kicker.blue { background: var(--colend-blue-100); color: var(--colend-blue-700); border-color: rgba(46,89,153,0.22); }
.landing-kicker.gold { background: var(--colend-gold-100); color: var(--colend-gold-800); border-color: rgba(181,138,26,0.25); }
.landing-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 900;
    color: var(--colend-ink);
    letter-spacing: -0.015em;
    margin: 0 0 0.75rem;
}
.landing-section-head p { color: var(--colend-sub); font-size: 1rem; line-height: 1.9; margin: 0; }

/* ---------- AUDIENCE GRID (4 personas) ---------- */
.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.landing-audience-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(62,107,48,0.1);
    border-radius: 18px;
    padding: 1.6rem 1.4rem 1.4rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.landing-audience-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--colend-green-500)), transparent);
    opacity: 0.85;
}
.landing-audience-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(26,32,50,0.25); border-color: var(--accent, var(--colend-green-300)); }
.landing-audience-icon {
    width: 54px; height: 54px; border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent, var(--colend-green-500)) 14%, white);
    color: var(--accent, var(--colend-green-700));
    margin-bottom: 0.8rem;
}
.landing-audience-card h3 {
    margin: 0;
    font-weight: 900;
    font-size: 1.08rem;
    color: var(--colend-ink);
}
.landing-audience-card .kicker {
    font-size: 0.7rem;
    color: var(--accent, var(--colend-green-700));
    font-weight: 800;
    letter-spacing: 0.08em;
}
.landing-audience-card p { margin: 0.25rem 0 0.8rem; color: var(--colend-sub); font-size: 0.9rem; line-height: 1.8; }
.landing-audience-card .link {
    margin-top: auto;
    font-weight: 700; font-size: 0.88rem;
    color: var(--accent, var(--colend-green-700));
    display: inline-flex; align-items: center; gap: 0.25rem;
}
.landing-audience-card .link::after {
    content: "←"; transition: transform .2s ease;
}
.landing-audience-card:hover .link::after { transform: translateX(-4px); }

/* ---------- FEATURES ---------- */
.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.landing-feature {
    background: #fff;
    border: 1px solid var(--colend-line);
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.landing-feature:hover {
    transform: translateY(-4px);
    border-color: var(--colend-green-200);
    box-shadow: 0 20px 40px -20px rgba(62,107,48,0.22);
}
.landing-feature-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--clr, var(--colend-green-600));
    background: color-mix(in srgb, var(--clr, var(--colend-green-600)) 12%, white);
    margin-bottom: 1rem;
}
.landing-feature h3 {
    margin: 0 0 0.55rem;
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--colend-ink);
}
.landing-feature p { margin: 0; color: var(--colend-sub); font-size: 0.92rem; line-height: 1.9; }

/* ---------- STEPS ---------- */
.landing-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.25rem;
    align-items: stretch;
}
.landing-step {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem 1.4rem 1.6rem;
    border: 1px solid var(--colend-green-100);
    box-shadow: 0 10px 25px -18px rgba(62,107,48,0.28);
    text-align: start;
}
.landing-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, var(--colend-green-500), var(--colend-green-700));
    color: #fff; font-weight: 900; font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px -10px rgba(62,107,48,0.55);
}
.landing-step h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 800; color: var(--colend-ink); }
.landing-step p { margin: 0; color: var(--colend-sub); font-size: 0.92rem; line-height: 1.9; }
.landing-step-arrow {
    align-self: center; color: var(--colend-green-400); font-size: 1.8rem; font-weight: 300;
    padding-top: 0.3rem;
}

/* ---------- SPLIT (role-focused sections) ---------- */
.landing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.landing-split.reverse > :first-child { order: 2; }
.landing-split-copy h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.1rem);
    font-weight: 900; color: var(--colend-ink); letter-spacing: -0.015em;
    margin: 0.75rem 0 1rem;
}
.landing-split-copy p { color: var(--colend-sub); line-height: 2; margin-bottom: 1.2rem; }
.landing-check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.landing-check-list li {
    position: relative;
    padding-inline-start: 1.8rem;
    margin-bottom: 0.65rem;
    color: #334155;
    font-size: 0.95rem;
}
.landing-check-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0; top: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--colend-green-100); color: var(--colend-green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.75rem;
}

/* ---------- Dashboard mock card ---------- */
.landing-card-mock {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 1.4rem 1.4rem 1.1rem;
    box-shadow: 0 30px 60px -30px rgba(26,32,50,0.3);
    border: 1px solid var(--colend-green-100);
    overflow: hidden;
}
.landing-card-mock::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79,127,47,0.15), rgba(46,89,153,0.10));
    z-index: -1;
}
.landing-card-mock-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; }
.landing-card-mock-label { font-size: 0.78rem; color: #64748b; display: block; margin-bottom: 0.25rem; }
.landing-card-mock-amount { font-size: 1.5rem; font-weight: 900; color: var(--colend-ink); display: block; }
.landing-card-mock-amount small { font-size: 0.72rem; font-weight: 500; color: #64748b; margin-inline-start: 0.25rem; }
.landing-card-mock-badge {
    padding: 0.2rem 0.55rem; border-radius: 999px;
    background: var(--colend-green-100); color: var(--colend-green-700);
    font-size: 0.75rem; font-weight: 700;
}
.landing-card-mock-progress { margin-bottom: 1.1rem; }
.landing-card-mock-progress .bar { width: 100%; height: 8px; background: var(--colend-green-100); border-radius: 999px; overflow: hidden; }
.landing-card-mock-progress .bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--colend-green-500), var(--colend-green-700));
    border-radius: 999px;
}
.landing-card-mock-progress .labels {
    display: flex; justify-content: space-between; font-size: 0.74rem; color: #64748b; margin-top: 0.3rem;
}
.landing-card-mock-list { list-style: none; padding: 0; margin: 0; }
.landing-card-mock-list li {
    display: grid; grid-template-columns: 18px 1fr auto;
    gap: 0.55rem; align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--colend-line);
}
.landing-card-mock-list li:last-child { border-bottom: none; }
.landing-card-mock-list li .dot {
    width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1;
}
.landing-card-mock-list li .dot-green { background: var(--colend-green-500); }
.landing-card-mock-list li .dot-blue { background: var(--colend-blue-500); }
.landing-card-mock-list li .dot-gold { background: var(--colend-gold-500); }
.landing-card-mock-list li strong { display: block; font-size: 0.88rem; color: var(--colend-ink); font-weight: 700; }
.landing-card-mock-list li em { font-size: 0.75rem; color: #64748b; font-style: normal; }
.landing-card-mock-list li.muted strong, .landing-card-mock-list li.muted .amt { color: #94a3b8; }
.landing-card-mock-list .amt { font-weight: 700; color: var(--colend-ink); font-variant-numeric: tabular-nums; font-size: 0.9rem; }

.landing-float-chip {
    position: absolute;
    background: #fff; border-radius: 14px;
    padding: 0.55rem 0.8rem;
    box-shadow: 0 16px 30px -18px rgba(26,32,50,0.35);
    display: inline-flex; align-items: center; gap: 0.55rem;
    border: 1px solid var(--colend-line);
    z-index: 2;
}
.landing-float-chip .ico {
    width: 30px; height: 30px; border-radius: 10px;
    background: var(--colend-green-100); color: var(--colend-green-700);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.landing-float-chip strong { display: block; font-weight: 800; font-size: 0.85rem; color: var(--colend-ink); }
.landing-float-chip em { font-style: normal; color: #64748b; font-size: 0.72rem; }
.landing-float-chip.chip-1 { top: 8%; right: 0; animation: chipFloat 5s ease-in-out infinite; }
.landing-float-chip.chip-2 { bottom: 10%; left: 0; animation: chipFloat 6s ease-in-out infinite reverse; }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- Chart / KPI card (organizations) ---------- */
.landing-split-visual { position: relative; padding: 1rem; }
.landing-chart-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.4rem 1.4rem 1rem;
    box-shadow: 0 30px 60px -30px rgba(26,32,50,0.28);
    border: 1px solid var(--colend-line);
}
.landing-chart-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.landing-chart-card header strong { font-weight: 800; color: var(--colend-ink); }
.landing-chip {
    padding: 0.28rem 0.7rem; border-radius: 999px;
    background: var(--colend-green-100); color: var(--colend-green-700);
    font-size: 0.78rem; font-weight: 800;
}
.landing-chip.blue { background: var(--colend-blue-100); color: var(--colend-blue-700); }
.landing-chip.gold { background: var(--colend-gold-100); color: var(--colend-gold-800); }
.landing-bars {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem;
    height: 180px; align-items: end;
}
.landing-bars span {
    display: block;
    background: linear-gradient(180deg, var(--colend-green-400) 0%, var(--colend-green-700) 80%);
    border-radius: 10px 10px 4px 4px;
    min-height: 10px;
    transition: transform .4s ease;
}
.landing-bars.blue span { background: linear-gradient(180deg, var(--colend-blue-400, #7ba4d9) 0%, var(--colend-blue-700) 80%); }
.landing-bars span:hover { transform: translateY(-4px); }
.landing-chart-card footer {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem;
    margin-top: 0.5rem;
    color: #94a3b8; font-size: 0.78rem; text-align: center;
}
.landing-mini-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
    margin-top: 1rem;
}
.landing-mini-card {
    background: #fff;
    border: 1px solid var(--colend-line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 15px 30px -22px rgba(26,32,50,0.22);
}
.landing-mini-card .mini-label { font-size: 0.78rem; color: #64748b; }
.landing-mini-card strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--colend-ink); margin: 0.2rem 0; }
.landing-mini-card em { font-style: normal; color: var(--colend-green-700); font-weight: 700; font-size: 0.82rem; }

/* ---------- Pricing cards ---------- */
.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.landing-price-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 1.4rem 1.4rem;
    border: 1px solid var(--colend-line);
    position: relative;
    display: flex; flex-direction: column; gap: 0.4rem;
    box-shadow: 0 14px 30px -24px rgba(26,32,50,0.25);
}
.landing-price-card.is-featured {
    border-color: var(--colend-green-500);
    box-shadow: 0 28px 50px -28px rgba(62,107,48,0.45);
    transform: translateY(-4px);
}
.landing-price-card.is-featured::before {
    content: "پرطرف‌دار";
    position: absolute; top: -12px; inset-inline-start: 1.2rem;
    background: var(--colend-green-700); color: #fff;
    font-size: 0.72rem; font-weight: 800;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    letter-spacing: 0.05em;
}
.landing-price-card h3 { margin: 0; font-weight: 900; font-size: 1.1rem; color: var(--colend-green-700); }
.landing-price-card .price {
    font-size: 1.8rem; font-weight: 900; color: var(--colend-ink);
    margin: 0.3rem 0 0.5rem;
    font-variant-numeric: tabular-nums;
}
.landing-price-card .price small { font-weight: 500; font-size: 0.78rem; color: #64748b; margin-inline-start: 0.25rem; }
.landing-price-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.landing-price-card ul li { position: relative; padding-inline-start: 1.55rem; color: #334155; font-size: 0.9rem; }
.landing-price-card ul li::before {
    content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--colend-green-100); color: var(--colend-green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.7rem;
}

/* ---------- FAQ ---------- */
.landing-faq-wrap { max-width: 820px; }
.landing-faq { display: flex; flex-direction: column; gap: 0.75rem; }
.landing-faq details {
    background: #fff;
    border: 1px solid var(--colend-green-100);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    transition: border-color .15s ease, box-shadow .2s ease;
}
.landing-faq details[open] {
    border-color: var(--colend-green-500);
    box-shadow: 0 10px 30px -20px rgba(62,107,48,0.28);
}
.landing-faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    color: var(--colend-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after {
    content: "+";
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--colend-green-50); color: var(--colend-green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; transition: transform .2s ease, background .2s ease;
}
.landing-faq details[open] summary::after { content: "−"; background: var(--colend-green-100); }
.landing-faq p { margin: 0.8rem 0 0; color: var(--colend-sub); line-height: 2; font-size: 0.93rem; }

/* ---------- Testimonials ---------- */
.landing-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.landing-quote {
    background: #fff; border-radius: 18px;
    border: 1px solid var(--colend-line);
    padding: 1.4rem 1.3rem;
    display: flex; flex-direction: column; gap: 0.8rem;
    box-shadow: 0 10px 22px -20px rgba(26,32,50,0.2);
}
.landing-quote blockquote { margin: 0; color: var(--colend-sub); line-height: 2; font-size: 0.95rem; quotes: "«" "»"; }
.landing-quote blockquote::before { content: open-quote; color: var(--colend-green-500); font-weight: 900; }
.landing-quote blockquote::after { content: close-quote; color: var(--colend-green-500); font-weight: 900; }
.landing-quote-author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.landing-quote-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--colend-green-500), var(--colend-green-700));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900;
}
.landing-quote-avatar.blue { background: linear-gradient(135deg, var(--colend-blue-500), var(--colend-blue-700)); }
.landing-quote-avatar.gold { background: linear-gradient(135deg, var(--colend-gold-500), var(--colend-gold-700)); color: #3a2c08; }
.landing-quote-author strong { display: block; color: var(--colend-ink); font-weight: 800; font-size: 0.92rem; }
.landing-quote-author em { color: #64748b; font-style: normal; font-size: 0.78rem; }

/* ---------- CTA ---------- */
.landing-cta { margin: 3rem 0 4rem; padding: 0 1rem; }
.landing-cta-inner {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(201,162,39,0.35), transparent 55%),
        linear-gradient(135deg, var(--colend-green-700) 0%, var(--colend-green-600) 55%, var(--colend-green-500) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 30px 60px -25px rgba(62,107,48,0.55);
}
.landing-cta.blue .landing-cta-inner {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(201,162,39,0.30), transparent 55%),
        linear-gradient(135deg, var(--colend-blue-700) 0%, var(--colend-blue-600) 55%, var(--colend-blue-500) 100%);
    box-shadow: 0 30px 60px -25px rgba(46,89,153,0.55);
}
.landing-cta.gold .landing-cta-inner {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.20), transparent 60%),
        linear-gradient(135deg, var(--colend-gold-700) 0%, var(--colend-gold-600) 55%, var(--colend-gold-500) 100%);
    color: #3a2c08;
    box-shadow: 0 30px 60px -25px rgba(181,138,26,0.55);
}
.landing-cta-inner h2 {
    margin: 0 0 0.5rem;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.01em;
}
.landing-cta-inner p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1rem; }
.landing-cta.gold .landing-cta-inner p { color: rgba(58,44,8,0.85); }

/* ---------- FOOTER ---------- */
.landing-footer {
    background: #13261a;
    color: #cfd8cc;
    padding: 3rem 1.25rem 1.5rem;
}
.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.landing-footer-brand p { margin: 0.8rem 0 0; color: #94a3b8; font-size: 0.9rem; line-height: 1.9; max-width: 320px; }
.landing-footer .landing-brand-fa { color: #fff; }
.landing-footer .landing-brand-en { color: #cfe2b8; }
.landing-footer-col h6 { color: #fff; margin: 0 0 1rem; font-size: 0.92rem; font-weight: 800; }
.landing-footer-col a {
    display: block;
    color: #b0bdb3;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
    transition: color .15s ease;
}
.landing-footer-col a:hover { color: #cfe2b8; }
.landing-footer-bottom {
    max-width: 1200px;
    margin: 1.3rem auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #8fa093;
    font-size: 0.84rem;
}

/* ---------- Sub-pages: audience hero ---------- */
.landing-sub-hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, var(--colend-green-50), #fff 80%);
    border-bottom: 1px solid var(--colend-green-100);
}
.landing-sub-hero.blue  { background: linear-gradient(135deg, var(--colend-blue-50), #fff 80%); border-bottom-color: var(--colend-blue-100); }
.landing-sub-hero.gold  { background: linear-gradient(135deg, var(--colend-gold-50), #fff 80%); border-bottom-color: var(--colend-gold-100); }
.landing-sub-hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.landing-sub-hero h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 900; color: var(--colend-ink); margin: 0.5rem 0 0.85rem;
    line-height: 1.25; letter-spacing: -0.015em;
}
.landing-sub-hero p { color: var(--colend-sub); line-height: 2; margin: 0 0 1.4rem; }
.landing-sub-hero-visual {
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--colend-green-100);
    padding: 1.4rem;
    box-shadow: 0 30px 60px -30px rgba(62,107,48,0.3);
}

/* ---------- Breadcrumbs on sub pages ---------- */
.landing-breadcrumbs {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.landing-breadcrumbs a { color: var(--colend-green-700); text-decoration: none; font-weight: 700; }
.landing-breadcrumbs a:hover { text-decoration: underline; }
.landing-breadcrumbs span.sep { color: #cbd5e1; }

/* ---------- Contact page (site/contact) ---------- */
.landing-contact-section { padding-top: 2.25rem; }

.landing-contact-hero-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, var(--colend-blue-50) 100%);
    border: 1px solid var(--colend-blue-100);
    padding: 1.35rem 1.35rem 1rem;
    box-shadow: 0 28px 55px -32px rgba(46, 89, 153, 0.32);
}
.landing-contact-hero-card-head strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--colend-ink);
    margin: 0.65rem 0 0.4rem;
    letter-spacing: -0.01em;
}
.landing-contact-hero-card-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--colend-sub);
    line-height: 1.85;
}
.landing-contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--colend-blue-800);
    background: color-mix(in srgb, var(--colend-blue-500) 12%, white);
    border: 1px solid rgba(46, 89, 153, 0.18);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.landing-contact-hero-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.landing-contact-hero-list li {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(46, 89, 153, 0.14);
}
.landing-contact-hero-list li:last-child { border-bottom: none; }
.landing-contact-hero-list .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}
.landing-contact-hero-list .dot-green { background: var(--colend-green-500); box-shadow: 0 0 0 3px rgba(108, 161, 62, 0.2); }
.landing-contact-hero-list .dot-blue { background: var(--colend-blue-500); box-shadow: 0 0 0 3px rgba(58, 108, 181, 0.18); }
.landing-contact-hero-list .dot-gold { background: var(--colend-gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2); }
.landing-contact-hero-list em {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    font-style: normal;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}
.landing-contact-hero-list a {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--colend-blue-700);
    text-decoration: none;
    word-break: break-all;
}
.landing-contact-hero-list a:hover { text-decoration: underline; }

.landing-contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.35fr);
    gap: 2rem;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
}
.landing-contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.landing-contact-channel { padding: 1.15rem 1.2rem !important; }
.landing-contact-channel .landing-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    margin-bottom: 0.75rem;
}
.landing-contact-channel h3 { font-size: 1rem !important; margin-bottom: 0.4rem !important; }
.landing-contact-channel-ticket p { margin-bottom: 0.75rem !important; }
.landing-contact-mail {
    font-weight: 800;
    color: var(--colend-green-700);
    text-decoration: none;
    word-break: break-all;
}
.landing-contact-mail:hover { text-decoration: underline; color: var(--colend-green-800); }
.landing-contact-hint { font-size: 0.82rem; color: #64748b; font-weight: 500; }

.landing-contact-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.landing-contact-form-shell {
    background: #fff;
    border: 1px solid var(--colend-line);
    border-radius: 22px;
    padding: 1.75rem 1.65rem 1.6rem;
    box-shadow: 0 24px 50px -28px rgba(62, 107, 48, 0.22);
}
.landing-contact-form-head {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(79, 127, 47, 0.22);
}
.landing-contact-form-head h3 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--colend-ink);
    letter-spacing: -0.015em;
}
.landing-contact-form-head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--colend-sub);
    line-height: 1.85;
}
.landing-contact-submit { margin-top: 0.25rem; }
.landing-contact-submit .landing-btn i { margin-inline-end: 0.35rem; }

.landing-contact-success {
    text-align: center;
    padding: 2rem 1.25rem 1.5rem;
}
.landing-contact-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--colend-green-500), var(--colend-green-700));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 14px 28px -16px rgba(62, 107, 48, 0.75);
}
.landing-contact-success h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--colend-ink);
}
.landing-contact-success p {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    color: var(--colend-sub);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
    .landing-audience-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-pricing-grid { grid-template-columns: 1fr; }
    .landing-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .landing-nav-links { display: none; }
    .landing-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .landing-sub-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .landing-contact-grid { grid-template-columns: 1fr; }
    .landing-hero-visual { min-height: 0; margin-top: 1rem; }
    .landing-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-feature-grid { grid-template-columns: 1fr 1fr; }
    .landing-steps { grid-template-columns: 1fr; }
    .landing-step-arrow { display: none; }
    .landing-split { grid-template-columns: 1fr; gap: 2rem; }
    .landing-split.reverse > :first-child { order: 0; }
    .landing-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .landing-nav-inner { padding: 0.75rem 1rem; gap: 0.5rem; }
    .landing-nav-cta .landing-btn-ghost { display: none; }
    .landing-feature-grid { grid-template-columns: 1fr; }
    .landing-stats-grid { grid-template-columns: 1fr 1fr; }
    .landing-hero { padding: 2.5rem 0 3.5rem; }
    .landing-section { padding: 3rem 0; }
    .landing-audience-grid { grid-template-columns: 1fr; }
    .landing-footer-inner { grid-template-columns: 1fr; }
    .landing-cta-inner { padding: 2rem 1.25rem; text-align: center; justify-content: center; }
    .landing-cta-inner .landing-hero-actions { justify-content: center; width: 100%; }
    .landing-float-chip.chip-1 { top: 2%; }
    .landing-float-chip.chip-2 { bottom: 2%; }
    .landing-card-mock { transform: none; }
    .colend-banner { grid-template-columns: 68px 1fr; padding: 0.85rem; }
    .colend-banner-logo { padding: 0.4rem 0.3rem; }
    .colend-banner-copy strong { font-size: 0.95rem; }
}

/* ===== Support ticketing =================================================== */
.ticket-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.ticket-meta-card { background: #fff; border: 1px solid #eef2e7; border-radius: 12px; padding: .85rem 1rem; }
.ticket-meta-card small { color: var(--bnpl-muted); font-size: .75rem; display: block; margin-bottom: .2rem; }
.ticket-meta-card strong { font-weight: 700; font-size: .95rem; }
.ticket-priority-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.ticket-priority-badge.low    { background: #f3f4f6; color: #374151; }
.ticket-priority-badge.normal { background: #e0f2fe; color: #075985; }
.ticket-priority-badge.high   { background: #fef3c7; color: #92400e; }
.ticket-priority-badge.urgent { background: #fee2e2; color: #991b1b; }
.ticket-thread { display: flex; flex-direction: column; gap: .85rem; margin-top: .6rem; }
.ticket-msg { border-radius: 14px; padding: .9rem 1rem; border: 1px solid #eef2e7; background: #fff; display: flex; gap: .85rem; align-items: flex-start; }
.ticket-msg.agent    { background: linear-gradient(180deg, #f7fbef 0%, #ffffff 100%); border-color: #d9e7c8; }
.ticket-msg.system   { background: #f9fafb; border-style: dashed; color: #4b5563; }
.ticket-msg.internal { background: #fff7ed; border-color: #fdba74; }
.ticket-msg .avatar { width: 36px; height: 36px; border-radius: 50%; background: #e3e8dc; color: #3b5a1a; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ticket-msg .msg-body { flex: 1; }
.ticket-msg .msg-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--bnpl-muted); margin-bottom: .35rem; flex-wrap: wrap; }
.ticket-msg .msg-head strong { color: #111827; font-size: .9rem; }
.ticket-msg .msg-text { white-space: pre-wrap; word-break: break-word; line-height: 1.8; font-size: .92rem; color: #1f2937; }
.ticket-msg .msg-attachments { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.ticket-msg .msg-attachments a { font-size: .78rem; padding: .2rem .55rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafaf7; color: #111827; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.ticket-reply-box textarea { min-height: 130px; }
.ticket-reply-tabs { display: flex; gap: .25rem; margin-bottom: .6rem; }
.ticket-reply-tabs button { background: transparent; border: 1px solid #e5e7eb; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; color: #374151; cursor: pointer; }
.ticket-reply-tabs button.is-active { background: #2f5711; color: #fff; border-color: #2f5711; }
.ticket-event-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.ticket-event-log li { display: flex; gap: .6rem; font-size: .82rem; color: #4b5563; padding: .35rem 0; border-bottom: 1px dashed #e5e7eb; }
.ticket-event-log li:last-child { border-bottom: 0; }
.ticket-event-log .type { font-weight: 700; color: #111827; min-width: 140px; }
.ticket-sla-tag { display: inline-flex; gap: .25rem; align-items: center; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: #f3f4f6; color: #374151; }
.ticket-sla-tag.ok      { background: #dcfce7; color: #166534; }
.ticket-sla-tag.soon    { background: #fef3c7; color: #92400e; }
.ticket-sla-tag.breached{ background: #fee2e2; color: #991b1b; }
.ticket-dep-pill { display: inline-flex; gap: .3rem; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .8rem; border: 1px solid #eef2e7; color: #374151; background: #fff; }
.ticket-dep-pill .swatch { width: 10px; height: 10px; border-radius: 50%; }
.ticket-action-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.ticket-action-row form { display: inline-flex; }
.ticket-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ticket-kpi-strip .cell { background: #fff; border: 1px solid #eef2e7; border-radius: 12px; padding: .75rem 1rem; }
.ticket-kpi-strip .cell small { color: var(--bnpl-muted); font-size: .72rem; display: block; margin-bottom: .2rem; }
.ticket-kpi-strip .cell strong { font-size: 1.15rem; font-weight: 700; color: #111827; }
.ticket-star-rating { display: inline-flex; gap: .15rem; direction: ltr; }
.ticket-star-rating input { display: none; }
.ticket-star-rating label { font-size: 1.3rem; cursor: pointer; color: #d1d5db; }
.ticket-star-rating input:checked ~ label,
.ticket-star-rating label:hover,
.ticket-star-rating label:hover ~ label { color: #f59e0b; }

/* =========================================================
   Ticketing — conversation thread, status pills, timeline
   ========================================================= */
.ticket-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 900px) { .ticket-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ticket-summary { grid-template-columns: 1fr; } }
.ticket-summary .cell { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.ticket-summary .cell small { color: var(--bnpl-muted); font-size: 0.78rem; }
.ticket-summary .cell strong { font-size: 0.96rem; font-weight: 700; }

.ticket-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 1100px) { .ticket-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .ticket-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.ticket-kpi { background: linear-gradient(135deg, #fff, #f7f8f2); border: 1px solid #e5e7eb; border-radius: 14px; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.ticket-kpi .label { color: var(--bnpl-muted); font-size: 0.8rem; }
.ticket-kpi .value { font-size: 1.3rem; font-weight: 800; }
.ticket-kpi.red  { border-color: #fecaca; background: linear-gradient(135deg, #fff5f5, #fff); color: #991b1b; }
.ticket-kpi.amber{ border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff); color: #92400e; }
.ticket-kpi.blue { border-color: #bfdbfe; background: linear-gradient(135deg, #eff6ff, #fff); color: #1e3a8a; }
.ticket-kpi.green{ border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4, #fff); color: #166534; }
.ticket-kpi.gray { border-color: #e5e7eb; }

.ticket-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.ticket-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticket-pill.open, .ticket-pill.reopened { background: #fef3c7; color: #92400e; }
.ticket-pill.in_progress { background: #dbeafe; color: #1e3a8a; }
.ticket-pill.pending_user, .ticket-pill.pending_agent { background: #e5e7eb; color: #374151; }
.ticket-pill.resolved { background: #dcfce7; color: #166534; }
.ticket-pill.closed   { background: #f3f4f6; color: #6b7280; }
.ticket-pill.merged   { background: #fee2e2; color: #991b1b; }
.ticket-pill.low      { background: #f3f4f6; color: #6b7280; }
.ticket-pill.normal   { background: #dbeafe; color: #1e40af; }
.ticket-pill.high     { background: #fde68a; color: #92400e; }
.ticket-pill.urgent   { background: #fecaca; color: #991b1b; }
.ticket-pill.breach   { background: #fecaca; color: #991b1b; animation: tktPulse 1.5s ease-in-out infinite; }
@keyframes tktPulse { 0%,100% { opacity: 1; } 50% { opacity: .65; } }

.ticket-thread { display: flex; flex-direction: column; gap: 0.75rem; }
.ticket-msg { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; }
.ticket-msg.agent    { background: linear-gradient(135deg, #f3f8ea, #fff); border-color: #c5dcab; }
.ticket-msg.system   { background: #f8fafc; border-color: #e2e8f0; color: #475569; font-size: 0.88rem; }
.ticket-msg.internal { background: #fffbeb; border-color: #fde68a; }
.ticket-msg .who { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; color: #374151; font-weight: 700; }
.ticket-msg.agent .who  { background: #cfe2b8; color: #2d4f1c; }
.ticket-msg.system .who { background: #e2e8f0; color: #334155; }
.ticket-msg .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: var(--bnpl-muted); margin-bottom: 0.3rem; }
.ticket-msg .meta b { color: #111827; font-weight: 700; }
.ticket-msg .body  { white-space: pre-wrap; line-height: 1.75; font-size: 0.93rem; color: #111827; }
.ticket-msg .attachments { margin-top: 0.45rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ticket-msg .attachments a { font-size: 0.8rem; padding: 0.2rem 0.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; display: inline-flex; gap: 0.3rem; align-items: center; color: #374151; }

.ticket-compose { margin-top: 0.75rem; }
.ticket-compose textarea { width: 100%; min-height: 120px; padding: 0.8rem; border: 1px solid #e5e7eb; border-radius: 10px; font: inherit; background: #fff; resize: vertical; }
.ticket-compose .row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.ticket-compose .hint { color: var(--bnpl-muted); font-size: 0.8rem; }

.ticket-side { display: flex; flex-direction: column; gap: 0.75rem; }
.ticket-side .panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.85rem; }
.ticket-side .panel h6 { margin: 0 0 0.55rem; font-size: 0.88rem; font-weight: 800; color: #111827; }
.ticket-side .panel .row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.2rem 0; color: #374151; }
.ticket-side .panel .row span:first-child { color: var(--bnpl-muted); }

.ticket-event-line { display: flex; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.82rem; color: #475569; align-items: baseline; }
.ticket-event-line .bullet { width: 8px; height: 8px; border-radius: 50%; background: #c5dcab; display: inline-block; margin-top: 0.35rem; }

.ticket-dept-card { display: flex; gap: 0.75rem; align-items: center; padding: 0.7rem 0.9rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; transition: all .2s; cursor: pointer; text-decoration: none; color: inherit; }
.ticket-dept-card:hover { border-color: var(--brand-green-600, #4f7f2f); transform: translateY(-1px); }
.ticket-dept-card .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.ticket-dept-card .txt strong { display: block; font-size: 0.92rem; }
.ticket-dept-card .txt small { color: var(--bnpl-muted); font-size: 0.78rem; }
.ticket-dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (max-width: 900px) { .ticket-dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ticket-dept-grid { grid-template-columns: 1fr; } }

.ticket-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.ticket-filters select, .ticket-filters input { min-width: 140px; }

.ticket-rating-stars { display: inline-flex; gap: 0.15rem; font-size: 1.1rem; color: #d1d5db; cursor: pointer; }
.ticket-rating-stars.readonly { cursor: default; }
.ticket-rating-stars .star.on { color: #f59e0b; }

/* =========================================================
   Merchant partnership apply — public multi-section form
   ========================================================= */
.apply-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 1020px) { .apply-wrap { grid-template-columns: 1fr; } }

.apply-aside { position: sticky; top: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.apply-aside-card {
    background: #fff;
    border: 1px solid rgba(181,138,26,0.22);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 18px 36px -28px rgba(15,23,42,0.25);
}
.apply-aside-card h4 { margin: 0 0 0.35rem; font-size: 0.98rem; font-weight: 800; color: var(--colend-gold-800, #8a6a14); }
.apply-aside-card p  { margin: 0; color: var(--colend-sub, #4b5563); font-size: 0.88rem; line-height: 1.85; }
.apply-step-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 0.65rem; }
.apply-step-list li {
    display: grid; grid-template-columns: 32px 1fr; gap: 0.6rem; align-items: start;
    color: #374151; font-size: 0.87rem; line-height: 1.7;
}
.apply-step-list li::before {
    counter-increment: step;
    content: counter(step);
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--colend-gold-100, #fdf0c5); color: var(--colend-gold-800, #8a6a14);
    font-weight: 800; font-size: 0.82rem;
}
.apply-step-list li strong { display: block; color: #111827; font-weight: 700; margin-bottom: 0.15rem; }

.apply-trust { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; color: #4b5563; }
.apply-trust .row { display: flex; gap: 0.5rem; align-items: center; }
.apply-trust .row i { color: var(--colend-green-600, #4f7f2f); }

.apply-form { display: flex; flex-direction: column; gap: 1rem; }
.apply-section {
    background: #fff;
    border: 1px solid #e8ecdf;
    border-radius: 18px;
    padding: 1.25rem 1.4rem 1.4rem;
    box-shadow: 0 18px 36px -28px rgba(15,23,42,0.2);
}
.apply-section-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px dashed #e5e7eb; }
.apply-section-num {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--colend-green-100, #e7f1d9), var(--colend-green-50, #f4f9ea));
    color: var(--colend-green-700, #3e6b30); font-weight: 800; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--colend-green-200, #cfe2b8);
}
.apply-section-num.gold { background: linear-gradient(135deg, #fef3c7, #fff7db); color: #8a6a14; border-color: #f3e1a4; }
.apply-section-num.blue { background: linear-gradient(135deg, #dbe5f1, #eef3fa); color: #234978; border-color: #c3d1e6; }
.apply-section-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #111827; }
.apply-section-head small { display: block; color: var(--bnpl-muted, #6b7280); font-size: 0.8rem; margin-top: 0.15rem; font-weight: 500; }

.apply-form .form-control, .apply-form .form-select { border-radius: 12px; border-color: #dcdfcf; padding: 0.55rem 0.85rem; }
.apply-form .form-control:focus, .apply-form .form-select:focus {
    border-color: var(--colend-green-500, #6aa13e);
    box-shadow: 0 0 0 3px rgba(108,161,62,0.18);
}
.apply-form label.form-label { font-weight: 600; color: #374151; font-size: 0.87rem; }
.apply-form .form-label .req { color: #b91c1c; margin-inline-start: 2px; }
.apply-form .field-hint { color: var(--bnpl-muted, #6b7280); font-size: 0.78rem; margin-top: 0.25rem; }
.apply-form .form-check-label { font-size: 0.9rem; }
.apply-form .invalid-feedback { display: block; font-size: 0.78rem; }
.apply-form .form-check-input:checked { background-color: var(--colend-green-600, #4f7f2f); border-color: var(--colend-green-600, #4f7f2f); }

.apply-radio-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }
.apply-radio-card {
    position: relative; padding: 0.7rem 0.9rem; border: 1px solid #e5e7eb;
    background: #fff; border-radius: 12px; cursor: pointer; text-align: center;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.apply-radio-card strong { display: block; font-size: 0.9rem; color: #111827; }
.apply-radio-card small  { display: block; font-size: 0.75rem; color: var(--bnpl-muted, #6b7280); margin-top: 0.2rem; }
.apply-radio-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.apply-radio-card:has(input:checked) { border-color: var(--colend-gold-600, #b58a1a); background: #fffbea; box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.apply-radio-card:hover { transform: translateY(-1px); border-color: var(--colend-gold-400, #e4c97b); }

.apply-footer { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center; }
.apply-footer .note { color: var(--bnpl-muted, #6b7280); font-size: 0.82rem; }
.apply-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.apply-thanks {
    background: linear-gradient(135deg, #f4f9ea 0%, #ffffff 60%);
    border: 1px solid #cfe2b8; border-radius: 20px;
    padding: 2.2rem 2rem; text-align: center;
}
.apply-thanks .tick-badge {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #6aa13e, #3e6b30); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin-bottom: 1rem;
    box-shadow: 0 16px 30px -18px rgba(62,107,48,0.75);
}
.apply-thanks .ref {
    display: inline-block;
    margin-top: 0.6rem; padding: 0.55rem 1.1rem;
    border: 1px dashed var(--colend-green-400, #9ac175);
    background: #fff; border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800; color: var(--colend-green-800, #2d4f1c);
}

/* =========================================================
   Admin › merchant application detail / triage
   ========================================================= */
.shop-app-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
.shop-app-kpis .cell { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.8rem 0.95rem; display: flex; flex-direction: column; gap: 0.25rem; }
.shop-app-kpis .cell small  { color: var(--bnpl-muted, #6b7280); font-size: 0.76rem; }
.shop-app-kpis .cell strong { font-size: 1.25rem; font-weight: 800; color: #111827; }
.shop-app-kpis .cell.red    { border-color: #fecaca; background: linear-gradient(135deg,#fff5f5,#fff); }
.shop-app-kpis .cell.amber  { border-color: #fde68a; background: linear-gradient(135deg,#fffbeb,#fff); }
.shop-app-kpis .cell.green  { border-color: #bbf7d0; background: linear-gradient(135deg,#f0fdf4,#fff); }
.shop-app-kpis .cell.blue   { border-color: #bfdbfe; background: linear-gradient(135deg,#eff6ff,#fff); }

.shop-app-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid transparent; }
.shop-app-pill.new        { background: #e0f2fe; color: #075985; }
.shop-app-pill.in_review  { background: #fef3c7; color: #92400e; }
.shop-app-pill.contacted  { background: #e0e7ff; color: #3730a3; }
.shop-app-pill.needs_info { background: #fed7aa; color: #9a3412; }
.shop-app-pill.approved   { background: #dcfce7; color: #166534; }
.shop-app-pill.rejected   { background: #fee2e2; color: #991b1b; }
.shop-app-pill.converted  { background: #bbf7d0; color: #064e3b; }
.shop-app-pill.priority-high   { background: #fee2e2; color: #991b1b; }
.shop-app-pill.priority-normal { background: #dbeafe; color: #1e40af; }
.shop-app-pill.priority-low    { background: #f3f4f6; color: #6b7280; }

.shop-app-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.75rem; }
.shop-app-filters input, .shop-app-filters select { min-width: 160px; border-radius: 10px; border: 1px solid #e5e7eb; padding: 0.45rem 0.7rem; font: inherit; background: #fff; }

.shop-app-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) 340px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .shop-app-detail { grid-template-columns: 1fr; } }
.shop-app-info-grid { display: grid; grid-template-columns: 180px 1fr; gap: 0.35rem 0.9rem; }
.shop-app-info-grid dt { color: var(--bnpl-muted, #6b7280); font-weight: 600; font-size: 0.82rem; padding: 0.35rem 0; }
.shop-app-info-grid dd { margin: 0; padding: 0.35rem 0; color: #111827; font-size: 0.92rem; border-bottom: 1px dashed #edf0e3; }
.shop-app-info-grid dd:last-of-type { border-bottom: 0; }
.shop-app-side { display: flex; flex-direction: column; gap: 0.75rem; }
.shop-app-side .panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0.95rem 1.05rem; }
.shop-app-side .panel h5 { margin: 0 0 0.55rem; font-size: 0.95rem; font-weight: 800; color: #111827; }
.shop-app-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.shop-app-timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 0.5rem; font-size: 0.85rem; color: #374151; }
.shop-app-timeline li .bullet { width: 14px; height: 14px; border-radius: 50%; background: #cfe2b8; margin-top: 0.35rem; }
.shop-app-timeline li .body strong { display: block; color: #111827; font-size: 0.88rem; }
.shop-app-timeline li .body small  { color: var(--bnpl-muted, #6b7280); font-size: 0.76rem; }
.shop-app-timeline li .body p      { margin: 0.25rem 0 0; white-space: pre-wrap; line-height: 1.75; color: #374151; }

.admin-btn-mini { border: 1px solid #e5e7eb; background: #fff; color: #374151; border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 0.78rem; cursor: pointer; }
.admin-btn-mini:hover { border-color: #6aa13e; color: #3e6b30; }
.admin-btn-mini.approve { border-color: #86efac; color: #166534; }
.admin-btn-mini.approve:hover { background: #dcfce7; }
.admin-btn-mini.reject  { border-color: #fecaca; color: #b91c1c; }
.admin-btn-mini.reject:hover  { background: #fee2e2; }

.security-notice {
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 70%);
    border-bottom: 1px solid #dbeafe;
    color: #1f2937;
    font-size: 0.9rem;
}

.security-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    line-height: 1.9;
    text-align: center;
}
.security-notice {
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 70%);
    border-bottom: 1px solid #dbeafe;
    color: #1f2937;
    font-size: 0.9rem;
}

.security-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    line-height: 1.9;
    text-align: center;
}
