/* ==========================================================================
   Jhat Patai — design system
   Layers: tokens → base → Bootstrap overrides → public site → auth → app shell
   ========================================================================== */

:root {
    /* Brand */
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --violet-600: #7c3aed;
    --teal-500:  #14b8a6;
    --teal-600:  #0d9488;
    --amber-500: #f59e0b;

    /* Neutrals */
    --ink:     #0b1020;
    --ink-2:   #1e293b;
    --text:    #475569;
    --muted:   #64748b;
    --line:    #e2e8f0;
    --line-2:  #eef2f7;
    --bg:      #f8fafc;
    --surface: #ffffff;

    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);

    --radius-sm: 10px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 4px 6px -1px rgba(15, 23, 42, .06), 0 10px 24px -6px rgba(15, 23, 42, .10);
    --shadow-lg: 0 20px 50px -12px rgba(30, 27, 75, .25);
    --ring: 0 0 0 4px rgba(79, 70, 229, .16);

    /* Bootstrap bridge */
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-color: #475569;
    --bs-body-bg: #f8fafc;
    --bs-heading-color: #0b1020;
    --bs-border-color: #e2e8f0;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;
    --bs-success: #059669;
    --bs-danger: #dc2626;
    --bs-warning: #f59e0b;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* never allow a stray element to cause sideways scrolling */
body {
    font-family: var(--bs-body-font-family);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.02em;
}
a { text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: var(--brand-200); color: var(--ink); }

.text-brand { color: var(--brand-600) !important; }
.text-muted-soft { color: var(--muted) !important; }
.text-ink { color: var(--ink) !important; }
.bg-surface { background: var(--surface) !important; }
.fw-800 { font-weight: 800; }
.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .01em;
    color: var(--brand-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: .35rem .85rem; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-border-radius: 12px;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-font-weight: 600;
    font-weight: 600;
    letter-spacing: -.005em;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:focus-visible { box-shadow: var(--ring) !important; }
.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.7rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 14px; }
.btn-sm { --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .8rem; --bs-btn-border-radius: 10px; }

.btn-primary {
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent;
    background: var(--grad);
    border: 0;
    color: #fff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, .3), 0 8px 18px -6px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, .3), 0 14px 26px -8px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--brand-200); box-shadow: none; }

.btn-outline-primary { --bs-btn-color: var(--brand-600); --bs-btn-border-color: var(--brand-200); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: var(--brand-500); --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-700); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #cbd5e1; --bs-btn-active-bg: #e2e8f0; --bs-btn-active-color: var(--ink); background: #fff; box-shadow: var(--shadow-xs); }
.btn-outline-success { --bs-btn-color: #047857; --bs-btn-border-color: #a7f3d0; --bs-btn-hover-bg: #ecfdf5; --bs-btn-hover-color: #047857; --bs-btn-hover-border-color: #34d399; --bs-btn-active-bg: #d1fae5; --bs-btn-active-color: #047857; }
.btn-outline-danger { --bs-btn-color: #b91c1c; --bs-btn-border-color: #fecaca; --bs-btn-hover-bg: #fef2f2; --bs-btn-hover-color: #b91c1c; --bs-btn-hover-border-color: #f87171; --bs-btn-active-bg: #fee2e2; --bs-btn-active-color: #b91c1c; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-color: var(--brand-700); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #f5f3ff; --bs-btn-hover-color: var(--brand-700); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .35); }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.btn-success { --bs-btn-bg: #059669; --bs-btn-border-color: #059669; --bs-btn-hover-bg: #047857; --bs-btn-hover-border-color: #047857; }
.btn-danger { --bs-btn-bg: #dc2626; --bs-btn-border-color: #dc2626; --bs-btn-hover-bg: #b91c1c; --bs-btn-hover-border-color: #b91c1c; }
.btn-secondary { --bs-btn-bg: #334155; --bs-btn-border-color: #334155; --bs-btn-hover-bg: #1e293b; --bs-btn-hover-border-color: #1e293b; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    --bs-card-border-radius: var(--radius-lg);
    --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px);
}
.card-header { background: transparent; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }
.card-stat { border-left: 0; position: relative; overflow: hidden; }
.card-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }

/* ---------- Forms ---------- */
.form-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: .7rem .95rem;
    font-size: .95rem;
    color: var(--ink);
    background-color: #fff;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:hover, .form-select:hover { border-color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: var(--ring); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #f87171; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.form-check-input { border-color: #94a3b8; width: 1.1em; height: 1.1em; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand-500); }
.invalid-feedback { font-size: .8rem; }
textarea.form-control { min-height: 110px; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; color: var(--text); }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--line-2); }
.table thead th {
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafc; }
.table-responsive { border-radius: var(--radius); }
.card > .table-responsive, .card > .table { margin-bottom: 0; }

/* ---------- Badges / alerts / misc ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; letter-spacing: .01em; }
.badge.bg-success { background: #d1fae5 !important; color: #047857; }
.badge.bg-danger { background: #fee2e2 !important; color: #b91c1c; }
.badge.bg-warning { background: #fef3c7 !important; color: #b45309; }
.badge.bg-secondary { background: #e2e8f0 !important; color: #334155; }
.badge.bg-primary { background: var(--brand-100) !important; color: var(--brand-700); }
.badge.bg-info { background: #cffafe !important; color: #0e7490; }
.alert { border: 1px solid transparent; border-radius: var(--radius); font-size: .92rem; box-shadow: var(--shadow-xs); }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.progress { height: .6rem; border-radius: 999px; background: #e2e8f0; }
.progress-bar { background: var(--grad); border-radius: 999px; }
.list-group-item { border-color: var(--line-2); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; font-size: .9rem; padding: .5rem .75rem; }
.dropdown-item:hover { background: var(--brand-50); color: var(--brand-700); }
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.nav-pills .nav-link.active { background: var(--grad); }
hr { border-color: var(--line); opacity: 1; }

.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius-lg); --bs-accordion-inner-border-radius: calc(var(--radius-lg) - 1px); --bs-accordion-btn-focus-box-shadow: var(--ring); --bs-accordion-active-bg: var(--brand-50); --bs-accordion-active-color: var(--brand-700); }
.accordion-item { border-radius: var(--radius); margin-bottom: .65rem; border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--shadow-xs); }
.accordion-item:first-of-type, .accordion-item:last-of-type { border-radius: var(--radius); }
.accordion-button { font-weight: 600; color: var(--ink); padding: 1.05rem 1.25rem; background: #fff; }
.accordion-button:not(.collapsed) { box-shadow: none; }

/* ---------- Public navbar ---------- */
.site-nav {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
    padding: .65rem 0;
}
.site-nav .navbar-brand { display: inline-flex; align-items: center; gap: .65rem; padding: 0; margin-right: 1.5rem; max-width: calc(100% - 4.5rem); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
    box-shadow: 0 6px 14px -4px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.03em; }
.brand-sub { font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 500; font-size: .93rem; padding: .5rem .85rem !important; border-radius: 10px; }
.site-nav .nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.site-nav .navbar-toggler { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; box-shadow: none; }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin-top: .75rem; box-shadow: var(--shadow); }
}
@media (max-width: 400px) { .brand-sub { display: none; } .brand-name { font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--ink);
    background:
        radial-gradient(900px 480px at 82% -8%, rgba(124, 58, 237, .16), transparent 60%),
        radial-gradient(700px 420px at 8% 0%, rgba(79, 70, 229, .14), transparent 60%),
        radial-gradient(600px 360px at 55% 105%, rgba(20, 184, 166, .12), transparent 60%),
        #fff;
    padding: 5.5rem 0 4.5rem;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.15rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text); max-width: 34rem; }
.hero-note { font-size: .85rem; color: var(--muted); }
.hero .btn-lg { white-space: nowrap; }
@media (max-width: 575.98px) { .hero { padding: 3.5rem 0 3rem; } .hero .btn-lg { width: 100%; white-space: normal; } }
.hero-note i { color: var(--teal-600); }
.hero .btn-outline-light { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: var(--brand-500); background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-xs); }

/* Product mockup (pure CSS, illustrative) */
.mock-wrap { position: relative; }
.mock-glow { position: absolute; inset: -8% -6% auto auto; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(124, 58, 237, .28), transparent); filter: blur(30px); z-index: 0; }
.mock {
    position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-dot:nth-child(1) { background: #fda4af; } .mock-dot:nth-child(2) { background: #fde68a; } .mock-dot:nth-child(3) { background: #86efac; }
.mock-url { margin-left: .75rem; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem; }
.mock-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.mock-main { padding: 1.25rem 1.25rem 1.4rem; }
.mock-side { padding: 1.25rem; background: linear-gradient(180deg, #faf5ff, #eef2ff); border-left: 1px solid var(--line); }
.mock-title { font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.mock-meta { font-size: .72rem; color: var(--muted); }
.mock-day { display: flex; gap: .75rem; padding: .75rem; border: 1px solid var(--line-2); border-radius: 12px; margin-top: .6rem; background: #fff; }
.mock-day .n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.mock-day .t { font-weight: 600; color: var(--ink); font-size: .84rem; line-height: 1.25; }
.mock-day .d { font-size: .72rem; color: var(--muted); }
.mock-line { height: 7px; border-radius: 99px; background: #e2e8f0; margin-top: .5rem; }
.mock-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; color: #047857; background: #d1fae5; border-radius: 999px; padding: .2rem .6rem; }
.mock-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.mock-btn { display: block; text-align: center; font-size: .78rem; font-weight: 600; color: #fff; background: var(--grad); border-radius: 10px; padding: .55rem; margin-top: .9rem; }
.mock-float {
    position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: .65rem .9rem; font-size: .75rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .6rem;
}
.mock-float .ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.mock-float.a { left: -18px; bottom: 1.7rem; } .mock-float.a .ic { background: #d1fae5; color: #047857; }
.mock-float.b { right: 16px; top: -18px; } .mock-float.b .ic { background: var(--brand-100); color: var(--brand-700); }
.mock-cap { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 1.25rem; }
@media (max-width: 575.98px) { .mock-body { grid-template-columns: 1fr; } .mock-side { border-left: 0; border-top: 1px solid var(--line); } .mock-float { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; margin-top: .9rem; }
.section-head p { font-size: 1.05rem; color: var(--text); margin-bottom: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-xs); display: inline-flex; align-items: center; gap: .5rem; }
.chip i { color: var(--brand-600); }

.feature-card { padding: 1.6rem; height: 100%; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
    background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.feature-icon.teal { background: #f0fdfa; color: var(--teal-600); border-color: #ccfbf1; }
.feature-icon.violet { background: #f5f3ff; color: var(--violet-600); border-color: #ede9fe; }
.feature-icon.amber { background: #fffbeb; color: #d97706; border-color: #fef3c7; }
.feature-icon.rose { background: #fff1f2; color: #e11d48; border-color: #ffe4e6; }
.feature-icon.sky { background: #f0f9ff; color: #0284c7; border-color: #e0f2fe; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.feature-card p { font-size: .93rem; margin-bottom: 0; }
.feature-card.span-2 { background: var(--grad-soft); border-color: var(--brand-100); }

.step-badge {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
    box-shadow: 0 8px 16px -6px rgba(79, 70, 229, .55);
}
.step-card { text-align: left; padding: 1.75rem; height: 100%; position: relative; }
.step-card h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.step-card p { font-size: .93rem; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .7rem; padding: .45rem 0; color: var(--ink-2); font-weight: 500; }
.check-list i { color: var(--teal-600); font-size: 1.15rem; flex: none; margin-top: .1rem; }

/* sample quotation card */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.quote-head { padding: 1.25rem 1.5rem; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.quote-head small { opacity: .8; }
.quote-body { padding: 1.4rem 1.5rem; }
.quote-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.quote-row:last-child { border-bottom: 0; }
.quote-total { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #f8fafc; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }

/* final CTA */
.cta-band {
    position: relative; overflow: hidden; border: 0; border-radius: var(--radius-xl); color: #fff;
    background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #3730a3 0%, #5b21b6 55%, #6d28d9 100%);
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .85); }
.cta-band .text-muted-soft { color: rgba(255, 255, 255, .8) !important; }

/* page hero (inner pages) */
.page-hero {
    position: relative; overflow: hidden; color: var(--ink); padding: 3.75rem 0 3rem;
    background: radial-gradient(700px 300px at 85% -20%, rgba(124, 58, 237, .14), transparent 60%), radial-gradient(600px 260px at 5% 0%, rgba(79, 70, 229, .12), transparent 60%), #fff;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--ink); font-weight: 800; letter-spacing: -.035em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: var(--text); }

/* pricing cards */
.price-card { padding: 1.75rem; height: 100%; position: relative; display: flex; flex-direction: column; }
.price-card .amount { font-size: clamp(1.55rem, 2.3vw, 2.3rem); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; }
.price-card.featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-lg); }
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.bonus-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: #047857; background: #d1fae5; border-radius: 999px; padding: .25rem .7rem; }

/* legal pages */
.legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: #475569; }

/* footer */
.site-footer { background: #0b1020; color: #94a3b8; border-top: 0 !important; margin-top: 0 !important; }
.site-footer .brand-name { color: #fff; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .fw-semibold { color: #fff; }
.site-footer hr { border-color: rgba(148, 163, 184, .2); }
.site-footer .text-muted-soft { color: #94a3b8 !important; }
.site-footer li { margin-bottom: .5rem; }

/* ---------- Auth (split screen) ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 66px); }
.auth-brand {
    position: relative; overflow: hidden; color: #fff; padding: 3.5rem 3.5rem; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), radial-gradient(420px 320px at 0% 100%, rgba(20, 184, 166, .28), transparent 60%), linear-gradient(145deg, #312e81 0%, #4c1d95 60%, #5b21b6 100%);
}
.auth-brand h2 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.auth-brand p { color: rgba(255, 255, 255, .8); }
.auth-brand .check-list li { color: rgba(255, 255, 255, .92); }
.auth-brand .check-list i { color: #5eead4; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 2.25rem; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; } .auth-brand { display: none; } .auth-form-side { padding: 1.5rem 1rem 3rem; align-items: flex-start; } .auth-card { padding: 1.6rem; } }
.auth-wrap { max-width: 460px; margin: 0 auto; }

/* ---------- App shell (logged-in) ---------- */
body.has-shell { background: var(--bg); }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: 260px; flex: none; background: #0b1020; color: #cbd5e1; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.1rem .9rem;
}
.app-sidebar .brand-name { color: #fff; }
.app-sidebar .brand-sub { color: #94a3b8; }
.side-section { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #64748b; padding: 1.25rem .75rem .45rem; }
.side-link {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 11px; color: #cbd5e1; font-weight: 500; font-size: .92rem; margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.side-link i { font-size: 1.1rem; color: #94a3b8; transition: color .15s; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link:hover i { color: #fff; }
.side-link.active { background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(124, 58, 237, .28)); color: #fff; box-shadow: inset 0 0 0 1px rgba(165, 180, 252, .25); }
.side-link.active i { color: #c7d2fe; }
.side-foot { margin-top: auto; padding-top: 1rem; }
.side-wallet { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: .9rem 1rem; }
.side-wallet small { color: #94a3b8; font-size: .72rem; }
.side-wallet .amt { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem;
    background: rgba(248, 250, 252, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.app-topbar .spacer { flex: 1; }
.wallet-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .38rem .9rem; font-size: .85rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-xs); }
.wallet-chip i { color: var(--brand-600); }
.wallet-chip:hover { border-color: var(--brand-200); color: var(--brand-700); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-main { padding: 1.75rem 1.5rem 3rem; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.page-sub { color: var(--muted); margin: .15rem 0 0; font-size: .95rem; }
.app-footer { padding: 1.25rem 1.5rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: auto; background: transparent; }

.stat-card { padding: 1.25rem 1.35rem; height: 100%; position: relative; overflow: hidden; }
.stat-card .stat-label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.stat-card .stat-value { font-size: 1.85rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.2; margin-top: .3rem; }
.stat-card .stat-icon { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.1rem; }

.offcanvas-sidebar { background: #0b1020 !important; --bs-offcanvas-width: 280px; }
.offcanvas-sidebar .app-sidebar { position: static; height: auto; width: 100%; padding: 0; }

@media (max-width: 991.98px) {
    .app-sidebar.desktop-only { display: none; }
    .app-topbar { padding: .6rem 1rem; }
    .app-main { padding: 1.25rem 1rem 2.5rem; }
}

/* wizard polish */
.wizard-step { animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-nav, .app-sidebar, .app-topbar, .site-footer { display: none !important; } }

/* list rows (dashboard / lists) */
.list-row { transition: background .15s; }
.list-row:hover { background: #f8fafc; }
.min-w-0 { min-width: 0; }

/* compact stat cards inside the admin console */
.stat-card .stat-value { font-size: clamp(1.25rem, 2.2vw, 1.75rem); overflow-wrap: anywhere; }

/* brand text inside the mobile drawer (dark background) */
.offcanvas-sidebar .brand-name { color: #fff; }
.offcanvas-sidebar .brand-sub { color: #94a3b8; }
