/* ==========================================================
   Pishkhan Plus user side flat UI
   Based on userSideUi/redesign-export/flat/app-flat.css.
   Rules: Anjoman font, flat surfaces, no shadows, monochrome blue.
   ========================================================== */

@font-face {
    font-family: Anjoman;
    src: url("../fonts/AnjomanMaxFN-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: Anjoman;
    src: url("../fonts/AnjomanMaxFN-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Anjoman;
    src: url("../fonts/AnjomanMaxFN-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --flat-bg: #f4f5f7;
    --flat-card: #ffffff;
    --flat-line: #e6e8ec;
    --flat-line-soft: #eef0f3;
    --flat-ink: #16181d;
    --flat-ink-2: #2b2e35;
    --flat-muted: #8a8f99;
    --flat-muted-2: #5a5f68;
    --flat-faint: #9aa0aa;
    --flat-blue: #132e75;
    --flat-blue-2: #203f90;
    --flat-blue-tint: #eef2ff;
    --flat-blue-soft: #f6f8ff;
    --flat-ok: #132e75;
    --flat-ok-bg: #eef2ff;
    --flat-bad: #d33f49;
    --flat-bad-bg: #fdecee;
    --flat-radius: 16px;
    --flat-radius-lg: 18px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--flat-bg);
}

body.public-route,
body.public-route.app-body,
body.public-route.auth-body {
    min-height: 100vh;
    direction: rtl;
    background: var(--flat-bg) !important;
    color: var(--flat-ink);
    font-family: Anjoman, Tahoma, sans-serif !important;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body.public-route a {
    color: inherit;
    text-decoration: none;
}

body.public-route button,
body.public-route input,
body.public-route select,
body.public-route textarea {
    font-family: Anjoman, Tahoma, sans-serif !important;
}

body.public-route main {
    width: min(100%, 480px);
    min-height: 100vh;
    margin-inline: auto;
    padding: 14px 16px calc(84px + env(safe-area-inset-bottom));
}

body.public-route .app-shell,
body.public-route .app-shell.narrow {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

body.public-route .app-topbar,
body.public-route .app-footer,
body.public-route .app-breadcrumb,
body.public-route .support-fab {
    display: none !important;
}

body.public-route .mobile-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    width: min(100%, 480px);
    margin-inline: auto;
    padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--flat-line);
    border-radius: 0;
    background: var(--flat-card);
    backdrop-filter: none;
}

body.public-route .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 5px 10px;
    color: var(--flat-faint);
    font-size: 11px;
    font-weight: 700;
}

body.public-route .mobile-tabbar a:first-child,
body.public-route.page-services .mobile-tabbar a[href="/services"],
body.public-route[class*="page-service-"] .mobile-tabbar a[href="/services"],
body.public-route.page-user-dashboard .mobile-tabbar a[href="/user/dashboard"],
body.public-route.page-user-login .mobile-tabbar a[href="/user/login"] {
    color: var(--flat-blue);
}

body.public-route .mobile-tabbar svg {
    width: 25px;
    height: 25px;
}

body.public-route .mobile-tabbar small {
    font-size: 10.5px;
    font-weight: 700;
}

/* Common flat components */
body.public-route .app-card,
body.public-route .form-card,
body.public-route .content-card,
body.public-route .content-hero,
body.public-route .svc-card,
body.public-route .app-service-list-item,
body.public-route .app-service-tile,
body.public-route .wallet-hero,
body.public-route .dash-banner,
body.public-route .home-feature,
body.public-route .rl-feature,
body.public-route .rl-step,
body.public-route .rl-form-wrap,
body.public-route .service-title-card,
body.public-route .app-empty-card,
body.public-route .auth-card {
    border: 1px solid var(--flat-line) !important;
    border-radius: var(--flat-radius) !important;
    background: var(--flat-card) !important;
}

body.public-route input,
body.public-route select,
body.public-route textarea,
body.public-route .auth-input,
body.public-route .form-control,
body.public-route .form-select,
body.public-route .public-field input,
body.public-route .public-field select,
body.public-route .public-field textarea {
    width: 100%;
    border: 1px solid var(--flat-line) !important;
    border-radius: 12px !important;
    background: #f7f8fa !important;
    color: var(--flat-ink) !important;
    outline: 0;
}

body.public-route input:focus,
body.public-route select:focus,
body.public-route textarea:focus,
body.public-route .auth-input:focus,
body.public-route .form-control:focus,
body.public-route .form-select:focus,
body.public-route .public-field input:focus,
body.public-route .public-field select:focus,
body.public-route .public-field textarea:focus {
    border-color: var(--flat-blue) !important;
    background: #fff !important;
}

body.public-route input::placeholder,
body.public-route textarea::placeholder {
    color: var(--flat-faint) !important;
}

body.public-route .app-primary-btn,
body.public-route .auth-btn,
body.public-route .rl-submit,
body.public-route .dash-filter-btn,
body.public-route .btn.btn-primary,
body.public-route .primary-btn {
    width: 100%;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--flat-blue) !important;
    color: #fff !important;
    padding: 15px;
    font-size: 15px;
    font-weight: 800;
}

body.public-route a:active,
body.public-route button:active,
body.public-route .svc-card:active,
body.public-route .app-service-list-item:active {
    transform: scale(.98);
}

body.public-route .app-svg-icon,
body.public-route .svc-card-icon,
body.public-route .home-feature-icon,
body.public-route .wa-icon,
body.public-route .rl-ico,
body.public-route .content-hero-icon,
body.public-route .cm-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 18px !important;
    background: var(--flat-blue-tint) !important;
    color: var(--flat-blue) !important;
}

body.public-route .svc-grid .svc-card .svc-card-icon,
body.public-route .svc-grid .svc-card:nth-child(n) .svc-card-icon,
body.public-route .app-service-grid .app-service-tile:nth-child(n) .app-svg-icon,
body.public-route .app-service-list .app-service-list-item:nth-child(n) .app-svg-icon,
body.public-route .app-category-row .app-category-pill:nth-child(n) .app-svg-icon.tiny {
    background: var(--flat-blue-tint) !important;
    color: var(--flat-blue) !important;
    box-shadow: none !important;
}

body.public-route .svc-grid .svc-card .svc-card-icon svg,
body.public-route .svc-grid .svc-card:nth-child(n) .svc-card-icon svg,
body.public-route .app-service-grid .app-service-tile:nth-child(n) .app-svg-icon svg,
body.public-route .app-service-list .app-service-list-item:nth-child(n) .app-svg-icon svg,
body.public-route .app-category-row .app-category-pill:nth-child(n) .app-svg-icon.tiny svg {
    color: var(--flat-blue) !important;
    stroke: currentColor !important;
}

body.public-route .app-category-pill.active .app-svg-icon.tiny,
body.public-route .app-category-pill.active .app-svg-icon.tiny svg {
    color: #fff !important;
    stroke: currentColor !important;
}

body.public-route .app-svg-icon svg,
body.public-route .svc-card-icon svg {
    color: var(--flat-blue) !important;
    stroke: currentColor !important;
}

/* Home */
body.public-route.page-home .dash-page {
    padding-top: 14px;
}

body.public-route.page-home .home-banner {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.public-route.page-home .home-banner::before,
body.public-route.page-home .home-banner::after,
body.public-route.page-home .dash-banner-art,
body.public-route.page-home .home-hero-stats,
body.public-route.page-home .home-features {
    display: none !important;
}

body.public-route.page-home .dash-banner-text {
    max-width: none;
}

body.public-route.page-home .dash-banner-badge {
    display: inline-flex;
    margin: 4px 2px 12px;
    padding: 7px 12px;
    border: 1px solid var(--flat-line);
    border-radius: 11px;
    background: var(--flat-card) !important;
    color: var(--flat-blue) !important;
    font-size: 12px;
    font-weight: 800;
}

body.public-route.page-home .home-banner h1 {
    margin: 0 2px 10px !important;
    color: var(--flat-ink) !important;
    font-size: 23px !important;
    font-weight: 900;
    line-height: 1.55 !important;
}

body.public-route.page-home .home-banner p {
    margin: 0 2px 14px !important;
    color: var(--flat-muted);
    font-size: 13px !important;
    line-height: 1.9 !important;
}

body.public-route.page-home .home-search,
body.public-route .app-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none !important;
    margin: 12px 0 0;
    padding: 13px 15px !important;
    border: 1px solid var(--flat-line) !important;
    border-radius: 14px !important;
    background: var(--flat-card) !important;
}

body.public-route.page-home .home-search input,
body.public-route .app-search input {
    flex: 1;
    height: auto;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--flat-ink) !important;
    font-size: 13px !important;
}

body.public-route.page-home .home-search button,
body.public-route .app-search button {
    display: grid;
    place-items: center;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--flat-faint) !important;
}

body.public-route.page-home .home-search button svg {
    width: 19px;
    height: 19px;
}

body.public-route.page-home .home-trust {
    display: none !important;
}

body.public-route .dash-section,
body.public-route.page-home .dash-section {
    margin-top: 22px;
}

body.public-route .dash-section-head,
body.public-route .app-section-head,
body.public-route .sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 2px 13px;
}

body.public-route .dash-section-head h2,
body.public-route .app-section-head h2,
body.public-route .sec-title {
    margin: 0;
    color: var(--flat-ink);
    font-size: 15px;
    font-weight: 800;
}

body.public-route .dash-section-head h2::before {
    display: none;
}

body.public-route .dash-section-head a,
body.public-route .app-section-head a,
body.public-route .dash-filter-clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--flat-blue);
    font-size: 12.5px;
    font-weight: 700;
}

body.public-route .svc-grid,
body.public-route .app-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    margin-top: 14px;
}

body.public-route .svc-card,
body.public-route .app-service-tile {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 16px 8px 13px;
    border-radius: var(--flat-radius-lg) !important;
    text-align: center;
}

body.public-route .svc-card::after,
body.public-route .app-service-tile::after {
    display: none !important;
}

body.public-route .svc-card strong,
body.public-route .app-service-tile strong {
    margin: 0;
    color: var(--flat-ink-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

body.public-route .svc-card small,
body.public-route .app-service-tile small {
    margin: 0;
    color: var(--flat-muted);
    font-size: 11px;
    font-weight: 600;
}

/* Services list */
body.public-route .app-page-head {
    padding: 0 !important;
}

body.public-route .app-page-head .app-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

body.public-route .app-page-head h1 {
    margin: 10px 2px 14px;
    color: var(--flat-ink);
    font-size: 22px !important;
    font-weight: 900;
    line-height: 1.4;
}

body.public-route .app-section {
    padding: 0 !important;
}

body.public-route .app-category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 14px;
    padding: 0 0 2px;
    scrollbar-width: none;
}

body.public-route .app-category-row::-webkit-scrollbar {
    display: none;
}

body.public-route .app-category-pill {
    display: inline-flex;
    min-width: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--flat-line) !important;
    border-radius: 11px;
    background: var(--flat-card) !important;
    color: var(--flat-muted-2);
    font-size: 12.5px;
    font-weight: 700;
}

body.public-route .app-category-pill.active {
    border-color: var(--flat-blue) !important;
    background: var(--flat-blue) !important;
    color: #fff !important;
}

body.public-route .app-category-pill .app-svg-icon.tiny {
    width: 22px;
    height: 22px;
    border-radius: 8px !important;
    background: transparent !important;
    color: currentColor !important;
}

body.public-route .app-service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

body.public-route .app-service-list-item {
    display: flex;
    align-items: center;
    min-height: 0;
    gap: 13px;
    padding: 13px 14px;
    border-radius: var(--flat-radius) !important;
}

body.public-route .app-service-list-item .app-svg-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px !important;
}

body.public-route .service-text {
    flex: 1;
    min-width: 0;
    gap: 3px;
}

body.public-route .service-text strong {
    color: var(--flat-ink);
    font-size: 14px;
    font-weight: 700;
}

body.public-route .service-text small {
    color: var(--flat-muted);
    font-size: 11.5px;
}

body.public-route .svc-price-pill {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--flat-blue-tint);
    color: var(--flat-blue) !important;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

body.public-route .app-service-list-item i {
    margin: 0;
    color: #c3c7cf !important;
    font-size: 18px !important;
}

/* Service detail */
body.public-route .service-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--flat-blue);
    font-size: 13px;
    font-weight: 700;
}

body.public-route .service-title-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

body.public-route .service-title-card h1 {
    margin: 0 0 5px;
    color: var(--flat-ink);
    font-size: 18px !important;
    font-weight: 800;
}

body.public-route .service-title-card small {
    color: var(--flat-blue);
    font-size: 13px;
    font-weight: 700;
}

body.public-route .app-card {
    padding: 18px;
}

body.public-route .service-form-head h2,
body.public-route .card-title {
    margin: 0 0 4px;
    color: var(--flat-ink);
    font-size: 16px;
    font-weight: 800;
}

body.public-route .service-form-head p,
body.public-route .card-sub {
    margin: 0 0 18px;
    color: var(--flat-muted);
    font-size: 12.5px;
    line-height: 1.8;
}

body.public-route .public-field {
    margin-bottom: 17px;
}

body.public-route .public-field label,
body.public-route .auth-label,
body.public-route .field-label {
    display: block;
    margin-bottom: 9px;
    color: var(--flat-ink);
    font-size: 13px;
    font-weight: 700;
}

body.public-route .public-field input,
body.public-route .public-field select,
body.public-route .public-field textarea {
    padding: 14px 15px;
    font-size: 15px;
}

body.public-route .field-hint,
body.public-route .optional-label,
body.public-route .service-secure-note,
body.public-route .secure-note {
    color: var(--flat-muted);
    font-size: 12px;
}

body.public-route .web-message,
body.public-route .service-result-box .result-card,
body.public-route .result-card,
body.public-route .result-error {
    border-radius: var(--flat-radius);
}

/* Auth */
body.public-route.auth-body main,
body.public-route.page-user-login main {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.public-route .auth-screen {
    min-height: 100vh;
    padding: 24px;
    background: var(--flat-bg);
}

body.public-route .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 26px;
    border-radius: 22px !important;
}

body.public-route .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 24px;
}

body.public-route .auth-logo-badge,
body.public-route .auth-logo span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--flat-blue) !important;
    color: #fff;
}

body.public-route .auth-logo strong {
    color: var(--flat-ink);
    font-size: 18px;
    font-weight: 800;
}

body.public-route .auth-card h1 {
    margin: 0 0 10px;
    color: var(--flat-ink);
    text-align: center;
    font-size: 23px;
    font-weight: 900;
}

body.public-route .auth-card p {
    margin: 0 0 22px;
    color: var(--flat-muted);
    text-align: center;
    font-size: 13.5px;
    line-height: 1.8;
}

body.public-route .auth-input {
    padding: 15px;
    text-align: center;
    direction: ltr;
    font-size: 20px;
    font-weight: 700;
}

body.public-route .otp-split {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

body.public-route .otp-split input {
    height: 58px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

body.public-route .auth-mobile-review {
    border: 1px solid var(--flat-line);
    border-radius: 12px;
    background: #f7f8fa;
}

body.public-route .auth-message {
    color: var(--flat-muted);
}

/* Dashboard / wallet / content */
body.public-route .wallet-hero,
body.public-route .dash-banner {
    color: var(--flat-ink) !important;
    background: var(--flat-card) !important;
}

body.public-route .wallet-hero *,
body.public-route .dash-banner * {
    color: inherit !important;
}

body.public-route .wallet-actions,
body.public-route .home-features,
body.public-route .rl-grid,
body.public-route .rl-steps {
    gap: 10px;
}

body.public-route .wallet-action {
    border: 1px solid var(--flat-line);
    border-radius: var(--flat-radius);
    background: var(--flat-card);
    color: var(--flat-ink);
}

body.public-route .content-page,
body.public-route .rep-lp {
    padding-top: 0;
}

body.public-route .content-hero,
body.public-route .content-card {
    padding: 18px;
}

body.public-route .content-hero h1,
body.public-route .rl-hero-text h1,
body.public-route .rl-title {
    color: var(--flat-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.6;
}

body.public-route .content-card,
body.public-route .content-card p,
body.public-route .rl-sub,
body.public-route .rl-hero-text p {
    color: var(--flat-muted-2);
    font-size: 13px;
    line-height: 2;
}

body.public-route .rl-hero,
body.public-route.page-representative .rl-hero {
    padding-top: 0;
}

body.public-route .rl-hero-inner {
    display: block;
    padding: 18px;
    border: 1px solid var(--flat-line);
    border-radius: var(--flat-radius);
    background: var(--flat-card);
}

body.public-route .rl-hero-art {
    display: none;
}

body.public-route .rl-hero-cta {
    display: inline-flex;
    border-radius: 14px;
    background: var(--flat-blue);
}

body.public-route .contact-method,
body.public-route .menu-list,
body.public-route .tx-item,
body.public-route .charge-balance {
    border: 1px solid var(--flat-line);
    border-radius: var(--flat-radius);
    background: var(--flat-card);
}

/* Plate widget flat correction */
body.public-route .plate-widget,
body.public-route .motor-plate-widget {
    border-radius: 10px;
}

body.public-route .plate-letter-btn,
body.public-route .plate-ir-input,
body.public-route .plate-ir-region {
    border-radius: 0 !important;
}

/* Desktop keeps the same app-like flat canvas */
@media (min-width: 820px) {
    body.public-route main {
        width: min(100%, 560px);
        max-width: 560px;
    }

    body.public-route .app-shell,
    body.public-route .app-shell.narrow {
        max-width: 560px;
    }

    body.public-route .mobile-tabbar {
        width: min(100%, 560px);
    }

    body.public-route .auth-screen {
        display: grid;
        place-items: center;
    }
}

@media (max-width: 380px) {
    body.public-route main {
        padding-inline: 12px;
    }

    body.public-route .svc-grid,
    body.public-route .app-service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.public-route *,
    body.public-route *::before,
    body.public-route *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* Final requested constraints: site width, header width, better mobile tabbar. */
body.public-route main {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
}

body.public-route .app-shell,
body.public-route .app-shell.narrow {
    max-width: 1040px !important;
}

body.public-route .app-topbar {
    display: block !important;
    width: min(100%, 1244px) !important;
    max-width: 1244px !important;
    margin-inline: auto !important;
}

body.public-route .app-topbar .app-shell {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    max-width: 1244px !important;
}

body.public-route .app-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

body.public-route .app-brand img {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    object-fit: contain;
}

body.public-route .mobile-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    width: min(calc(100% - 20px), 480px) !important;
    margin-inline: auto;
    margin-bottom: max(10px, env(safe-area-inset-bottom));
    padding: 8px 8px;
    border: 1px solid var(--flat-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
}

body.public-route .mobile-tabbar a {
    min-width: 0;
    flex: 1 1 0;
    padding: 7px 4px;
    border-radius: 16px;
    color: var(--flat-faint);
}

body.public-route .mobile-tabbar a:first-child,
body.public-route.page-home .mobile-tabbar a[href="/"],
body.public-route.page-services .mobile-tabbar a[href="/services"],
body.public-route[class*="page-service-"] .mobile-tabbar a[href="/services"],
body.public-route.page-representative .mobile-tabbar a[href="/representative"],
body.public-route.page-user-dashboard .mobile-tabbar a[href="/user/dashboard"],
body.public-route.page-user-login .mobile-tabbar a[href="/user/login"] {
    color: var(--flat-blue);
}

body.public-route .mobile-tabbar svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 820px) {
    body.public-route main {
        width: min(100%, 1040px) !important;
        max-width: 1040px !important;
    }

    body.public-route .app-shell,
    body.public-route .app-shell.narrow {
        max-width: 1040px !important;
    }

    body.public-route .app-topbar {
        width: min(100%, 1244px) !important;
        max-width: 1244px !important;
    }

    body.public-route .mobile-tabbar {
        display: none !important;
    }
}

@media (max-width: 819px) {
    body.public-route main {
        width: min(100%, 480px) !important;
        padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    }

    body.public-route .app-shell,
    body.public-route .app-shell.narrow {
        max-width: 480px !important;
    }

    body.public-route .app-nav,
    body.public-route .app-user-chip {
        display: none !important;
    }
}

/* Desktop header and hero composition requested from reference screenshot. */
@media (min-width: 820px) {
    body.public-route .app-topbar {
        background: #f4f5f7 !important;
        border-bottom: 1px solid var(--flat-line) !important;
        border-radius: 0 !important;
    }

    body.public-route .app-topbar .app-shell {
        position: relative;
        height: 58px !important;
        padding-inline: 0 !important;
    }

    body.public-route .app-brand {
        order: 3;
        min-width: 210px;
        justify-content: flex-start;
        color: var(--flat-ink);
    }

    body.public-route .app-brand img {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
    }

    body.public-route .app-brand strong {
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    body.public-route .app-brand small {
        display: none !important;
    }

    body.public-route .app-nav {
        order: 2;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex !important;
        align-items: center;
        gap: 18px;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body.public-route .app-nav a {
        padding: 10px 15px !important;
        border-radius: 13px !important;
        color: var(--flat-muted-2) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        white-space: nowrap;
    }

    body.public-route.page-home .app-nav a[href="/"] {
        background: var(--flat-blue-tint) !important;
        color: var(--flat-blue) !important;
    }

    body.public-route .app-user-chip {
        order: 1;
        min-width: 62px;
        padding: 11px 18px !important;
        border-radius: 10px !important;
        background: #4053df !important;
        color: #fff !important;
        text-align: center;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

    body.public-route.page-home main {
        padding-top: 26px !important;
    }

    body.public-route.page-home .dash-banner.home-banner {
        display: block !important;
        margin-inline: auto !important;
        padding: 34px 34px 32px !important;
        border: 0 !important;
        border-radius: 18px !important;
        background: #3348cf !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    body.public-route.page-home .dash-banner.home-banner::before,
    body.public-route.page-home .dash-banner.home-banner::after,
    body.public-route.page-home .dash-banner-art,
    body.public-route.page-home .home-hero-stats {
        display: none !important;
    }

    body.public-route.page-home .dash-banner-text {
        max-width: none !important;
        text-align: center !important;
    }

    body.public-route.page-home .dash-banner-badge {
        display: none !important;
    }

    body.public-route.page-home .home-banner h1 {
        margin: 0 0 14px !important;
        color: #fff !important;
        font-size: 30px !important;
        font-weight: 900 !important;
        line-height: 1.35 !important;
    }

    body.public-route.page-home .home-banner p {
        margin: 0 0 22px !important;
        color: rgba(255, 255, 255, .88) !important;
        font-size: 14px !important;
        font-weight: 700;
        line-height: 1.9 !important;
    }

    body.public-route.page-home .home-search {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 8px 12px 8px 8px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: #fff !important;
    }

    body.public-route.page-home .home-search input {
        height: 40px;
        padding-inline: 12px !important;
        color: var(--flat-ink) !important;
        text-align: right;
    }

    body.public-route.page-home .home-search button {
        display: grid !important;
        place-items: center;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #4053df !important;
        color: #fff !important;
        font-size: 0 !important;
    }

    body.public-route.page-home .home-search button svg {
        width: 20px !important;
        height: 20px !important;
    }

    body.public-route.page-home .home-trust {
        display: flex !important;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px !important;
    }

    body.public-route.page-home .home-trust-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 8px 13px;
        border: 0 !important;
        border-radius: 9px;
        background: rgba(255, 255, 255, .13) !important;
        color: #fff !important;
        font-size: 12px;
        font-weight: 800;
    }

    body.public-route.page-home .home-trust-chip svg {
        width: 15px;
        height: 15px;
    }
}

/* Align desktop header/hero exactly with the provided screenshot. */
@media (min-width: 820px) {
    body.public-route .app-topbar .app-shell {
        position: relative;
    }

    body.public-route .app-brand {
        position: absolute;
        inset-inline-start: auto;
        inset-inline-end: 0;
        top: 50%;
        transform: translateY(-50%);
        justify-content: flex-start;
        min-width: 0;
    }

    body.public-route .app-user-chip,
    body.public-route .app-user-actions {
        position: absolute;
        inset-inline-start: 0;
        inset-inline-end: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    body.public-route.page-home .home-search {
        flex-direction: row !important;
    }

    body.public-route.page-home .home-trust {
        justify-content: flex-start !important;
    }
}

/* Physical desktop alignment: brand right, login left. */
@media (min-width: 820px) {
    body.public-route .app-brand {
        right: 0 !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }

    body.public-route .app-user-chip,
    body.public-route .app-user-actions {
        left: 0 !important;
        right: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }
}

/* Strong override for desktop login placement. */
@media (min-width: 820px) {
    body.public-route .app-topbar a.app-user-chip {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    body.public-route .app-topbar .app-user-actions {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
}

/* Final homepage polish: sticky glass header and reference-like desktop rhythm. */
@media (min-width: 820px) {
    body.public-route .app-topbar {
        position: sticky !important;
        top: 0;
        z-index: 90;
        background: rgba(244, 245, 247, .78) !important;
        border-bottom: 1px solid rgba(18, 24, 40, .08) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.public-route.page-home main {
        padding-top: 24px !important;
    }

    body.public-route.page-home .dash-section {
        margin-top: 26px !important;
    }

    body.public-route.page-home .svc-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.public-route.page-home .svc-card {
        min-height: 128px !important;
        padding: 14px 8px 12px !important;
        border-color: var(--flat-line) !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.public-route.page-home .svc-card-icon {
        width: 54px !important;
        height: 54px !important;
        border-radius: 16px !important;
        background: var(--flat-blue-tint) !important;
    }

    body.public-route.page-home .svc-card strong {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    body.public-route.page-home .svc-card small {
        font-size: 11px !important;
    }

    body.public-route.page-home .home-features {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-top: 22px !important;
    }

    body.public-route.page-home .home-feature {
        min-height: 74px !important;
        padding: 14px 16px !important;
        border: 1px solid var(--flat-line) !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
}

@media (min-width: 820px) {
    body.public-route.page-home .home-feature,
    body.public-route.page-home .home-feature * {
        opacity: 1 !important;
    }

    body.public-route.page-home .home-feature strong {
        color: var(--flat-ink) !important;
        font-weight: 900 !important;
    }

    body.public-route.page-home .home-feature small {
        color: var(--flat-muted) !important;
        font-weight: 600 !important;
    }
}

/* Enforce a single public-side font and remove visible pfont fallback mixing. */
html,
body.public-route,
body.public-route input,
body.public-route button,
body.public-route textarea,
body.public-route select,
body.public-route a,
body.public-route p,
body.public-route span,
body.public-route small,
body.public-route strong,
body.public-route h1,
body.public-route h2,
body.public-route h3,
body.public-route h4,
body.public-route h5,
body.public-route h6 {
    font-family: Anjoman, Tahoma, sans-serif !important;
}

/* Representative hero: blue surface, white copy, no inner white card. */
body.public-route.page-representative .rep-lp {
    color: var(--flat-ink) !important;
}

body.public-route.page-representative .rl-hero {
    padding: 44px 0 68px !important;
    border-radius: 0 0 32px 32px !important;
    background: #3348cf !important;
    color: #fff !important;
}

body.public-route.page-representative .rl-hero-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
}

body.public-route.page-representative .rl-hero-text h1,
body.public-route.page-representative .rl-hero-text p,
body.public-route.page-representative .rl-hero-text strong {
    color: #fff !important;
}

body.public-route.page-representative .rl-hero-text h1 {
    font-size: clamp(28px, 3vw, 38px) !important;
    line-height: 1.45 !important;
}

body.public-route.page-representative .rl-hero-text p {
    max-width: 610px !important;
    color: rgba(255, 255, 255, .88) !important;
}

body.public-route.page-representative .rl-badge {
    border-color: rgba(255, 255, 255, .28) !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}

body.public-route.page-representative .rl-hero-cta {
    background: #fff !important;
    color: #3348cf !important;
    box-shadow: none !important;
}

body.public-route.page-representative .rl-hero-cta svg {
    color: currentColor !important;
}

body.public-route.page-representative .rl-hero-art {
    display: flex !important;
}

body.public-route.page-representative .rl-hero-art .rl-card {
    border-color: rgba(255, 255, 255, .24) !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    box-shadow: none !important;
}

@media (max-width: 819px) {
    body.public-route.page-representative .rl-hero {
        padding: 28px 0 46px !important;
    }

    body.public-route.page-representative .rl-hero-inner {
        display: block !important;
    }

    body.public-route.page-representative .rl-hero-art {
        display: none !important;
    }
}

body.public-route * {
    font-family: Anjoman, Tahoma, sans-serif !important;
}
