/**
 * Hi Car Match v154 — Global Korean Car Marketplace
 * Final presentation layer: white + brand red, model imagery, locale characters,
 * member dashboards, RTL and mobile detail polish.
 */

:root {
    --hicm-red: #d92d2a;
    --hicm-red-dark: #b91f1c;
    --hicm-red-soft: #fff2f1;
    --hicm-red-line: #f5c9c7;
    --hicm-ink: #17191d;
    --hicm-navy: #172438;
    --hicm-muted: #687386;
    --hicm-line: #e7e9ee;
    --hicm-paper: #fff;
    --hicm-surface: #f7f8fa;
    --hicm-shadow: 0 16px 44px rgba(28, 35, 48, .09);
}

body {
    background: var(--hicm-paper);
    color: var(--hicm-ink);
}

body:not(.gab-page-admin) .gab-btn--primary {
    border-color: var(--hicm-red);
    background: var(--hicm-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(217, 45, 42, .18);
}

body:not(.gab-page-admin) .gab-btn--primary:hover {
    border-color: var(--hicm-red-dark);
    background: var(--hicm-red-dark);
    transform: translateY(-1px);
}

body:not(.gab-page-admin) .gab-btn--outline {
    border-color: #d9dde5;
    background: #fff;
    color: var(--hicm-ink);
}

body:not(.gab-page-admin) .gab-btn--outline:hover {
    border-color: var(--hicm-red);
    color: var(--hicm-red);
    background: var(--hicm-red-soft);
}

/* Home hero: a real model-style photo card replaces generic cut-out SVG art. */
.gab-page-home .gab-hx-assets {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: 22px 20px 52px;
    overflow: hidden;
    border: 1px solid #e2e5ea;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 9%, rgba(217, 45, 42, .11), transparent 35%),
        linear-gradient(150deg, #fff, #f3f5f7);
    box-shadow: 0 18px 45px rgba(20, 29, 41, .09);
}

.gab-page-home .gab-hx-asset-ring {
    inset: auto -130px -180px auto;
    z-index: 0;
    width: 430px;
    height: 430px;
    border: 55px solid rgba(217, 45, 42, .045);
    border-radius: 50%;
    background: transparent;
}

.gab-page-home .gab-hx-asset-ring::before,
.gab-page-home .gab-hx-asset-ring::after {
    display: none;
}

.hicm-hx-model-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 30, 42, .11);
}

.hicm-hx-model-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eceff2;
}

.hicm-hx-model-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(12, 18, 28, .33));
    pointer-events: none;
}

.hicm-hx-model-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hicm-hx-model-media span {
    position: absolute;
    z-index: 2;
    inset-inline-start: 10px;
    bottom: 9px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    background: rgba(20, 27, 38, .78);
    backdrop-filter: blur(5px);
    font-size: 9px;
    font-weight: 850;
}

.hicm-hx-model-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 15px 15px;
}

.hicm-hx-model-copy b {
    color: var(--hicm-ink);
    font-size: 14px;
}

.hicm-hx-model-copy small {
    color: var(--hicm-muted);
    font-size: 10px;
}

.hicm-hx-character {
    position: absolute;
    z-index: 4;
    inset-inline-end: -32px;
    bottom: 23px;
    width: 170px;
    height: 150px;
    pointer-events: none;
}

.hicm-hx-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(20, 28, 40, .16));
}

.gab-page-home .gab-hx-asset-chips {
    z-index: 5;
    inset-inline: 14px 95px;
    bottom: 13px;
    justify-content: flex-start;
}

.gab-page-home .gab-hx-asset-chips span {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 9px;
}

/* --------------------------------------------------------------------------
 * Domestic model discovery
 * ----------------------------------------------------------------------- */

.hicm-model-showcase {
    position: relative;
    padding: 62px 0 68px;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 4%, rgba(217, 45, 42, .08), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fafafb 100%);
    border-bottom: 1px solid var(--hicm-line);
}

.hicm-model-showcase::before {
    content: "";
    position: absolute;
    inset-inline-end: 6%;
    top: 20px;
    width: 118px;
    height: 7px;
    border-radius: 99px;
    background: var(--hicm-red);
    opacity: .92;
}

.hicm-model-showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.hicm-model-showcase-head > div {
    max-width: 720px;
}

.hicm-model-showcase-head span {
    display: block;
    margin-bottom: 7px;
    color: var(--hicm-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.hicm-model-showcase-head h2 {
    margin: 0;
    color: var(--hicm-ink);
    font-size: clamp(26px, 3vw, 39px);
    line-height: 1.16;
    letter-spacing: -.04em;
}

.hicm-model-showcase-head p {
    margin: 10px 0 0;
    color: var(--hicm-muted);
    font-size: 15px;
}

.hicm-model-showcase-head > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 15px;
    border: 1px solid var(--hicm-line);
    border-radius: 10px;
    color: var(--hicm-ink);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.hicm-model-showcase-head > a:hover {
    border-color: var(--hicm-red);
    color: var(--hicm-red);
}

.hicm-model-showcase-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.hicm-model-tile {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hicm-line);
    border-radius: 16px;
    background: #fff;
    color: var(--hicm-ink);
    text-decoration: none;
    box-shadow: 0 7px 24px rgba(22, 30, 42, .06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hicm-model-tile:hover {
    border-color: #e3aaa7;
    color: var(--hicm-ink);
    transform: translateY(-4px);
    box-shadow: var(--hicm-shadow);
}

.hicm-model-tile-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef0f3;
}

.hicm-model-tile-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 17, 25, .25));
}

.hicm-model-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hicm-model-tile:hover .hicm-model-tile-media img {
    transform: scale(1.035);
}

.hicm-model-tile-media small {
    position: absolute;
    z-index: 2;
    inset-inline-start: 10px;
    bottom: 9px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    background: rgba(19, 26, 38, .76);
    backdrop-filter: blur(5px);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.hicm-model-tile-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 14px 15px 16px;
}

.hicm-model-tile-copy b {
    overflow: hidden;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hicm-model-tile-copy em {
    color: var(--hicm-muted);
    font-size: 12px;
    font-style: normal;
}

/* --------------------------------------------------------------------------
 * Listing cards and honest demo-image labels
 * ----------------------------------------------------------------------- */

.gab-car-card {
    border-color: var(--hicm-line);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(23, 31, 43, .055);
}

.gab-car-card:hover {
    border-color: #dfb3b1;
    box-shadow: 0 13px 30px rgba(23, 31, 43, .105);
}

.gab-ccg-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hicm-demo-asset-label {
    position: absolute;
    z-index: 6;
    inset-inline-start: 11px;
    bottom: 11px;
    max-width: calc(100% - 78px);
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 7px;
    color: #fff;
    background: rgba(17, 24, 36, .82);
    backdrop-filter: blur(6px);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}

.hicm-demo-card .gab-car-card-body {
    position: relative;
}

.hicm-demo-card .gab-car-card-body::after {
    content: "DEMO";
    position: absolute;
    inset-inline-end: 14px;
    top: 13px;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

/* --------------------------------------------------------------------------
 * Login — white/red marketplace identity and locale character
 * ----------------------------------------------------------------------- */

.gab-page-auth .gab-auth {
    min-height: 100svh;
    background: #fff;
}

.gab-page-auth .gab-auth-brand {
    position: relative;
    overflow: hidden;
    color: var(--hicm-ink);
    background:
        radial-gradient(circle at 10% 12%, rgba(217, 45, 42, .095), transparent 27%),
        radial-gradient(circle at 88% 75%, rgba(23, 36, 56, .07), transparent 31%),
        #fff;
    border-inline-end: 1px solid var(--hicm-line);
}

.gab-page-auth .gab-auth-brand::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 7px;
    background: var(--hicm-red);
}

.gab-page-auth .gab-auth-brand::after {
    content: "";
    position: absolute;
    inset-inline-end: -110px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border: 64px solid rgba(217, 45, 42, .055);
    border-radius: 50%;
    pointer-events: none;
}

.gab-page-auth .gab-auth-brand-inner {
    position: relative;
    z-index: 2;
}

.gab-page-auth .gab-auth-logo-name,
.gab-page-auth .gab-auth-headline h1 {
    color: var(--hicm-ink) !important;
    text-shadow: none !important;
}

.gab-page-auth .gab-auth-logo-name .accent,
.gab-page-auth .gab-auth-headline .accent {
    color: var(--hicm-red) !important;
}

.gab-page-auth .gab-auth-logo-tagline,
.gab-page-auth .gab-auth-headline p,
.gab-page-auth .gab-auth-copyright {
    color: var(--hicm-muted) !important;
}

.hicm-auth-character {
    position: relative;
    min-height: 315px;
    margin: 14px 0 0;
    overflow: hidden;
    border: 1px solid #f0d7d5;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 244, 243, .92)),
        #fff;
}

.hicm-auth-character::before {
    content: "";
    position: absolute;
    inset: auto -8% -36% 36%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(217, 45, 42, .075);
}

.hicm-auth-character-img {
    position: absolute;
    z-index: 1;
    inset-inline-end: -6px;
    bottom: -31px;
    width: min(58%, 330px);
    height: auto;
    filter: drop-shadow(0 18px 22px rgba(19, 27, 39, .16));
}

.hicm-auth-character-note {
    position: absolute;
    z-index: 2;
    inset-inline-start: 25px;
    top: 31px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 43%;
    color: var(--hicm-navy);
    font-size: 14px;
}

.hicm-auth-character-note > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--hicm-red);
}

.hicm-auth-character-note .bi-chevron-right {
    width: auto;
    height: auto;
    color: #a1a8b3;
    background: transparent;
    transform: rotate(90deg);
}

.gab-page-auth .gab-auth-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 19px;
}

.gab-page-auth .gab-auth-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid var(--hicm-line);
    border-radius: 999px;
    color: #606b7b !important;
    background: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.gab-page-auth .gab-auth-lang.is-active {
    border-color: var(--hicm-red);
    color: var(--hicm-red) !important;
    background: var(--hicm-red-soft);
}

.gab-page-auth .gab-auth-form-side {
    background: #f8f9fb;
}

.gab-page-auth .gab-auth-form-box {
    border: 1px solid var(--hicm-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--hicm-shadow);
}

.hicm-auth-mobile-character {
    display: none;
}

.hicm-password-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    color: #7b8491;
    background: transparent;
    cursor: pointer;
}

.hicm-password-toggle:hover,
.hicm-password-toggle:focus-visible {
    color: var(--hicm-red);
}

/* --------------------------------------------------------------------------
 * Registration characters and clearer five-language choice
 * ----------------------------------------------------------------------- */

.gab-reg-page {
    background:
        radial-gradient(circle at 92% 6%, rgba(217, 45, 42, .07), transparent 24%),
        #f8f9fb;
}

.gab-reg-header {
    border-top: 5px solid var(--hicm-red);
    border-bottom-color: var(--hicm-line);
    background: rgba(255, 255, 255, .96);
}

.gab-reglang {
    padding-top: 22px;
}

.gab-reglang-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    max-width: 1180px;
    margin-inline: auto;
}

.gab-reglang-card {
    position: relative;
    min-width: 0;
    min-height: 260px;
    padding: 17px 14px 18px;
    border: 1px solid var(--hicm-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 29, 42, .055);
}

.gab-reglang-card:hover,
.gab-reglang-card:focus-visible {
    border-color: #e5a7a4;
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(20, 29, 42, .11);
}

.hicm-reglang-character {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 7px auto 10px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--hicm-red-soft);
    box-shadow: 0 0 0 1px var(--hicm-red-line), 0 9px 18px rgba(22, 30, 42, .09);
}

.hicm-reglang-character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gab-reglang-flag {
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
}

.gab-reglang-go {
    inset-inline-end: 14px;
}

.gab-reg-card {
    border-color: var(--hicm-line);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(23, 31, 43, .07);
}

.gab-type-grid {
    gap: 18px;
}

.gab-type-card {
    position: relative;
    overflow: hidden;
    border-color: var(--hicm-line);
    border-radius: 18px;
    background: #fff;
}

.gab-type-card:hover,
.gab-type-card.is-selected {
    border-color: var(--hicm-red);
    box-shadow: 0 12px 30px rgba(217, 45, 42, .11);
}

.gab-type-icon.hicm-type-character {
    display: grid;
    place-items: center;
    width: 154px;
    height: 128px;
    margin-inline: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gab-type-icon.hicm-type-character img {
    width: 154px;
    height: 112px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 12px rgba(22, 29, 39, .11));
}

.hicm-country-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 42px;
    border: 1px solid var(--hicm-line);
    border-radius: 10px;
    color: var(--hicm-ink);
    background: #fff;
    font: inherit;
    appearance: auto;
}

[dir="rtl"] .hicm-country-field select {
    padding-right: 42px;
    padding-left: 14px;
}

/* --------------------------------------------------------------------------
 * Member shell and dashboard
 * ----------------------------------------------------------------------- */

.gab-page-member {
    background: #f7f8fa;
}

.gab-my {
    max-width: 1380px;
    margin: 0 auto;
    gap: 22px;
    padding: 34px 24px 68px;
}

.gab-my-sidebar {
    top: 104px;
    height: max-content;
    border: 1px solid var(--hicm-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(23, 31, 43, .055);
}

.gab-my-profile {
    align-items: center;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--hicm-line);
}

.gab-my-avatar.hicm-my-avatar {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--hicm-red-soft);
    box-shadow: 0 0 0 1px var(--hicm-red-line);
}

.gab-my-avatar.hicm-my-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gab-my-nav-item {
    min-height: 45px;
    border-radius: 9px;
}

.gab-my-nav-item.is-active {
    color: var(--hicm-red);
    background: var(--hicm-red-soft);
}

.gab-my-nav-item.is-active::before {
    background: var(--hicm-red);
}

.hicm-my-dashboard .gab-my-content {
    min-width: 0;
}

.hicm-my-welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 280px;
    overflow: hidden;
    padding: 38px 34px;
    border: 1px solid var(--hicm-red-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 93% 12%, rgba(217, 45, 42, .12), transparent 32%),
        linear-gradient(135deg, #fff 0%, #fff8f7 100%);
    box-shadow: var(--hicm-shadow);
}

.hicm-my-welcome::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 7px;
    height: 100%;
    background: var(--hicm-red);
}

.hicm-my-welcome-copy {
    position: relative;
    z-index: 2;
    align-self: center;
}

.hicm-my-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--hicm-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
}

.hicm-my-welcome h1 {
    max-width: 700px;
    margin: 0;
    color: var(--hicm-ink);
    font-size: clamp(27px, 3.2vw, 42px);
    line-height: 1.17;
    letter-spacing: -.045em;
}

.hicm-my-welcome p {
    max-width: 690px;
    margin: 14px 0 0;
    color: var(--hicm-muted);
    font-size: 15px;
    line-height: 1.7;
}

.hicm-my-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.hicm-my-welcome-character {
    position: relative;
    align-self: end;
    height: 238px;
}

.hicm-my-welcome-character img {
    position: absolute;
    inset-inline-end: -19px;
    bottom: -47px;
    width: 296px;
    height: auto;
    filter: drop-shadow(0 16px 18px rgba(23, 31, 43, .14));
}

.hicm-my-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.hicm-my-summary-card {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--hicm-line);
    border-radius: 14px;
    color: var(--hicm-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.hicm-my-summary-card:hover {
    border-color: #e3aaa7;
    color: var(--hicm-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 31, 43, .08);
}

.hicm-my-summary-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--hicm-red);
    background: var(--hicm-red-soft);
    font-size: 19px;
}

.hicm-my-summary-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hicm-my-summary-copy b {
    color: var(--hicm-ink);
    font-size: 23px;
    line-height: 1;
}

.hicm-my-summary-copy small {
    overflow: hidden;
    margin-top: 6px;
    color: var(--hicm-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hicm-my-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 18px;
}

.hicm-my-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--hicm-line);
    border-radius: 18px;
    background: #fff;
}

.hicm-my-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hicm-my-panel-head span,
.hicm-my-process > div > span {
    color: var(--hicm-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hicm-my-panel h2 {
    margin: 5px 0 0;
    color: var(--hicm-ink);
    font-size: 21px;
}

.hicm-my-panel-face {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--hicm-red-soft);
}

.hicm-my-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 19px;
}

.hicm-my-quick-grid > a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 77px;
    padding: 13px;
    border: 1px solid #eceef2;
    border-radius: 12px;
    color: var(--hicm-ink);
    background: #fbfbfc;
    text-decoration: none;
}

.hicm-my-quick-grid > a:hover {
    border-color: var(--hicm-red-line);
    background: var(--hicm-red-soft);
}

.hicm-my-quick-grid > a > i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    background: var(--hicm-navy);
}

.hicm-my-quick-grid span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hicm-my-quick-grid b {
    font-size: 13px;
}

.hicm-my-quick-grid small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--hicm-muted);
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hicm-my-process {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 310px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 95% 0%, rgba(217, 45, 42, .52), transparent 44%),
        var(--hicm-navy);
}

.hicm-my-process::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(9, 16, 27, .87) 72%);
}

.hicm-my-process-character {
    position: absolute;
    inset-inline-end: -35px;
    top: -30px;
    width: 230px;
}

.hicm-my-process-character img {
    width: 100%;
    height: auto;
}

.hicm-my-process > div:last-child {
    position: relative;
    z-index: 2;
}

.hicm-my-process h2 {
    color: #fff;
}

.hicm-my-process ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.hicm-my-process li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.hicm-my-process li b {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: #fff;
    background: var(--hicm-red);
    font-size: 10px;
}

.hicm-my-process li em {
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
}

/* --------------------------------------------------------------------------
 * Seller dashboard character hooks
 * ----------------------------------------------------------------------- */

.hicm-dealer-welcome-character {
    flex: 0 0 auto;
    width: 148px;
    height: 104px;
    overflow: hidden;
}

.hicm-dealer-welcome-character img {
    width: 148px;
    height: 104px;
    object-fit: contain;
    object-position: center bottom;
}

.gab-dash-brand-icon {
    overflow: hidden;
    border-radius: 50%;
}

.gab-dash-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hicm-dash-avatar {
    overflow: hidden;
    border-radius: 50%;
    background: var(--hicm-red-soft);
}

.hicm-dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Seller workspace uses the same white/red identity as the public marketplace. */
.gab-page-dealer .gab-dash {
    background: #f6f7f9;
}

.gab-page-dealer .gab-dash-side {
    border-inline-end: 1px solid var(--hicm-line);
    background: #fff;
    box-shadow: 8px 0 28px rgba(23, 31, 43, .045);
}

.gab-page-dealer .gab-dash-brand {
    border-bottom-color: var(--hicm-line);
}

.gab-page-dealer .gab-dash-brand-icon {
    border: 1px solid var(--hicm-red-line);
    background: var(--hicm-red-soft);
}

.gab-page-dealer .gab-dash-brand-name {
    color: var(--hicm-ink);
}

.gab-page-dealer .gab-dash-brand-name .accent,
.gab-page-dealer .gab-dash-brand-role {
    color: var(--hicm-red);
}

.gab-page-dealer .gab-dash-nav-label {
    color: #9aa2ae;
}

.gab-page-dealer .gab-dash-nav-item {
    color: #596372;
}

.gab-page-dealer .gab-dash-nav-item:hover {
    color: var(--hicm-ink);
    background: #f5f6f8;
}

.gab-page-dealer .gab-dash-nav-item.is-active {
    color: var(--hicm-red);
    background: var(--hicm-red-soft);
}

.gab-page-dealer .gab-dash-nav-item.is-active i {
    color: var(--hicm-red);
}

.gab-page-dealer .gab-dash-nav-badge {
    color: #fff;
    background: var(--hicm-red);
}

.gab-page-dealer .gab-dash-user {
    border-top-color: var(--hicm-line);
}

.gab-page-dealer .gab-dash-user-name {
    color: var(--hicm-ink);
}

.gab-page-dealer .gab-dash-user-role,
.gab-page-dealer .gab-dash-user-logout {
    color: var(--hicm-muted);
}

.gab-page-dealer .gab-dash-user-logout:hover {
    color: var(--hicm-red);
}

.gab-page-dealer .gab-dpro,
.gab-page-dealer .gab-dpro-top {
    background-color: #f7f8fa;
}

.gab-page-dealer .gab-kpi,
.gab-page-dealer .gab-dpro-card {
    border-color: var(--hicm-line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 31, 43, .055);
}

/* --------------------------------------------------------------------------
 * Vehicle detail — staged-demo disclosure, advisor and mobile-safe CTA
 * ----------------------------------------------------------------------- */

.gab-detail {
    background: #fff;
}

.gab-detail-layout {
    align-items: start;
}

.gab-gallery-main {
    overflow: hidden;
    border-radius: 16px;
    background: #eff1f4;
}

.gab-gallery-main > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hicm-demo-detail-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #f0d0ce;
    border-radius: 11px;
    color: #71302d;
    background: #fff7f6;
    box-shadow: none;
}

.hicm-demo-detail-notice--gallery {
    margin-top: 10px;
}

.hicm-demo-detail-notice--price {
    margin-top: 14px;
}

.hicm-demo-detail-notice > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--hicm-red);
    font-size: 17px;
}

.hicm-demo-detail-notice .gab-safety-notice-text {
    color: #82504d;
    font-size: 11px;
    line-height: 1.55;
}

.hicm-demo-detail-notice .gab-safety-notice-text strong {
    display: block;
    margin-bottom: 2px;
    color: #55211f;
    font-size: 12px;
}

.gab-price-card {
    border: 1px solid var(--hicm-line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(23, 31, 43, .075);
}

.gab-contact-service-note {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    margin: 10px 0;
    padding: 11px 13px;
    border: 1px solid #eceef2;
    border-radius: 12px;
    color: var(--hicm-ink);
    background: #f8f9fb;
}

.gab-contact-service-note .gab-safety-mascot {
    flex: 0 0 78px !important;
    width: 78px !important;
    height: 72px !important;
    margin: 0 !important;
    object-fit: contain;
}

.gab-contact-service-note .gab-safety-notice-text {
    min-width: 0;
    color: var(--hicm-muted);
    font-size: 11px;
    line-height: 1.55;
}

.gab-contact-service-note .gab-safety-notice-text strong {
    display: block;
    margin-bottom: 3px;
    color: var(--hicm-ink);
    font-size: 12px;
}

.gab-detail-sidebar > .gab-safety-notice {
    overflow: hidden;
    border: 1px solid var(--hicm-red-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #fff7f6);
}

.gab-detail-sidebar > .gab-safety-notice .gab-safety-mascot {
    flex-basis: 88px;
    width: 88px;
    height: 82px;
}

/* --------------------------------------------------------------------------
 * RTL refinements
 * ----------------------------------------------------------------------- */

[dir="rtl"] .hicm-model-showcase-head > a i,
[dir="rtl"] .hicm-my-summary-card > .bi-chevron-right,
[dir="rtl"] .gab-type-card .gab-reglang-go i {
    transform: rotate(180deg);
}

[dir="rtl"] .hicm-auth-character-note {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .hicm-my-welcome,
[dir="rtl"] .hicm-my-panel,
[dir="rtl"] .hicm-my-summary-card {
    text-align: right;
}

[dir="rtl"] .hicm-my-welcome-actions,
[dir="rtl"] .hicm-my-process ol {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .hicm-model-showcase-scroll {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hicm-my-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gab-reglang-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gab-page-auth .gab-auth {
        display: block;
    }

    .gab-page-auth .gab-auth-brand {
        display: block;
        min-height: auto;
        padding: 19px 20px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--hicm-line);
    }

    .gab-page-auth .gab-auth-brand-inner {
        max-width: 720px;
        margin: 0 auto;
    }

    .gab-page-auth .gab-auth-headline,
    .gab-page-auth .hicm-auth-character,
    .gab-page-auth .gab-auth-copyright {
        display: none;
    }

    .gab-page-auth .gab-auth-logo {
        margin: 0;
    }

    .gab-page-auth .gab-auth-langs {
        margin-top: 13px;
    }

    .gab-page-auth .gab-auth-form-side {
        min-height: calc(100svh - 150px);
        padding: 28px 18px 54px;
    }

    .hicm-auth-mobile-character {
        display: grid;
        place-items: center;
        width: 82px;
        height: 82px;
        margin: -57px auto 14px;
        overflow: hidden;
        border: 5px solid #fff;
        border-radius: 50%;
        background: var(--hicm-red-soft);
        box-shadow: 0 7px 20px rgba(23, 31, 43, .12);
    }

    .hicm-auth-mobile-character-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gab-page-auth .gab-auth-form-box {
        max-width: 560px;
        margin: 24px auto 0;
    }

    .gab-my {
        grid-template-columns: 1fr;
    }

    .gab-my-sidebar {
        position: static;
    }

    .hicm-my-welcome {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .hicm-my-panels {
        grid-template-columns: 1fr;
    }

    .gab-page-home .gab-hx-assets {
        display: flex;
        min-height: 270px;
        margin-top: 18px;
    }

    .hicm-hx-model-card {
        width: min(68%, 440px);
    }

    .hicm-hx-character {
        width: 190px;
        height: 165px;
    }
}

@media (max-width: 760px) {
    .gab-page-home .gab-hx-assets {
        display: flex;
        min-height: 215px;
        padding: 12px 12px 38px;
        border-radius: 17px;
    }

    .gab-page-home .gab-hx-asset-ring {
        display: block;
    }

    .hicm-hx-model-card {
        width: 74%;
        border-radius: 13px;
    }

    .hicm-hx-model-copy {
        display: none;
    }

    .hicm-hx-character {
        inset-inline-end: -21px;
        bottom: 4px;
        width: 145px;
        height: 128px;
    }

    .gab-page-home .gab-hx-asset-chips {
        display: flex;
        inset-inline: 11px 78px;
        bottom: 8px;
    }

    .gab-page-home .gab-hx-asset-chips span:nth-child(2) {
        display: none;
    }

    .hicm-model-showcase {
        padding: 42px 0 48px;
    }

    .hicm-model-showcase-head {
        align-items: flex-start;
        margin-bottom: 19px;
    }

    .hicm-model-showcase-head p {
        font-size: 13px;
        line-height: 1.6;
    }

    .hicm-model-showcase-head > a {
        display: none;
    }

    .hicm-model-showcase-scroll {
        display: flex;
        gap: 12px;
        width: calc(100% + 20px);
        overflow-x: auto;
        padding: 1px 20px 14px 1px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hicm-model-showcase-scroll::-webkit-scrollbar {
        display: none;
    }

    .hicm-model-tile {
        flex: 0 0 72vw;
        max-width: 286px;
        scroll-snap-align: start;
    }

    .hicm-demo-asset-label {
        max-width: calc(100% - 64px);
        font-size: 9px;
    }

    .gab-reglang-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gab-reglang-card {
        min-height: 235px;
    }

    .gab-my {
        padding: 18px 14px 82px;
    }

    .hicm-my-welcome {
        display: block;
        min-height: 0;
        padding: 27px 22px 0;
    }

    .hicm-my-welcome-copy {
        position: relative;
        z-index: 3;
    }

    .hicm-my-welcome p {
        font-size: 13px;
    }

    .hicm-my-welcome-character {
        height: 172px;
        margin-top: -18px;
        pointer-events: none;
    }

    .hicm-my-welcome-character img {
        inset-inline-end: -8px;
        bottom: -45px;
        width: 224px;
    }

    .hicm-my-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0;
    }

    .hicm-my-summary-card {
        grid-template-columns: 37px minmax(0, 1fr);
        min-height: 78px;
        padding: 12px;
    }

    .hicm-my-summary-card > .bi-chevron-right {
        display: none;
    }

    .hicm-my-summary-icon {
        width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 16px;
    }

    .hicm-my-summary-copy b {
        font-size: 19px;
    }

    .hicm-my-panel {
        padding: 19px;
    }

    .hicm-my-quick-grid {
        grid-template-columns: 1fr;
    }

    .gab-detail {
        padding-inline: 12px;
    }

    .gab-detail-layout {
        display: block;
    }

    .gab-gallery-main {
        aspect-ratio: 3 / 2;
        border-radius: 12px;
    }

    .gab-gallery-main > img {
        position: static;
        display: block;
    }

    .hicm-demo-detail-notice--gallery {
        margin: 8px 0 0;
    }

    .gab-detail-tabs {
        top: 0;
        gap: 4px;
        margin-inline: -12px;
        padding-inline: 12px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .gab-detail-tab {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .gab-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gab-detail-sidebar {
        margin-top: 16px;
    }

    .gab-price-card {
        border-radius: 14px;
    }

    .gab-contact-service-note {
        min-height: 86px;
    }

    .gab-contact-service-note .gab-safety-mascot {
        flex-basis: 68px !important;
        width: 68px !important;
        height: 64px !important;
    }

    .gab-mbar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: minmax(82px, 1fr) 48px 48px minmax(102px, auto);
        gap: 7px;
        padding: 9px max(10px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        border-top: 1px solid var(--hicm-line);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -10px 30px rgba(23, 31, 43, .12);
        backdrop-filter: blur(10px);
    }

    .gab-mbar-price {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        font-size: clamp(14px, 4.1vw, 18px);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .gab-mbar-price small {
        display: block;
    }

    .gab-mbar button,
    .gab-mbar a {
        min-width: 0;
        min-height: 48px;
        border-radius: 10px;
    }

    .gab-mbar-btn {
        padding-inline: 0;
    }

    .gab-mbar-btn--inq {
        padding-inline: 11px;
        background: var(--hicm-red) !important;
    }
}

@media (max-width: 420px) {
    .gab-detail {
        padding-inline: 10px;
    }

    .gab-gallery-main {
        margin-inline: -10px;
        border-radius: 0;
    }

    .hicm-demo-detail-notice {
        padding: 11px;
    }

    .gab-detail-mobile-summary h1,
    .gab-price-card-title {
        overflow-wrap: anywhere;
    }

    .gab-detail-mobile-price,
    .gab-price-card-value {
        font-size: clamp(25px, 8vw, 34px);
    }

    .gab-spec-grid {
        gap: 7px;
    }

    .gab-spec-item {
        min-width: 0;
        padding: 11px 9px;
    }

    .gab-spec-item-label,
    .gab-spec-item-value {
        overflow-wrap: anywhere;
    }

    .gab-contact-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .gab-contact-row .gab-contact-btn {
        min-width: 0;
        padding-inline: 7px;
        font-size: 12px;
    }

    .gab-mbar {
        grid-template-columns: minmax(68px, 1fr) 44px 44px minmax(90px, auto);
        gap: 5px;
        padding-inline: 8px;
    }

    .gab-mbar button {
        min-height: 46px;
    }

    .gab-mbar-btn--inq {
        padding-inline: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gab-page-home .gab-hx-assets {
        min-height: 190px;
    }

    .hicm-hx-model-card {
        width: 78%;
    }

    .hicm-hx-model-media span {
        font-size: 8px;
    }

    .hicm-hx-character {
        width: 128px;
        height: 113px;
    }

    .gab-page-auth .gab-auth-brand {
        padding: 16px;
    }

    .gab-page-auth .gab-auth-logo-tagline {
        display: none;
    }

    .gab-page-auth .gab-auth-langs {
        flex-wrap: nowrap;
        width: calc(100vw - 32px);
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .gab-page-auth .gab-auth-lang {
        flex: 0 0 auto;
    }

    .gab-page-auth .gab-auth-form-side {
        padding: 23px 12px 42px;
    }

    .gab-page-auth .gab-auth-form-box {
        padding: 24px 19px;
        border-radius: 17px;
    }

    .gab-reg-header-right .gab-reg-pill {
        max-width: 106px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .gab-reglang-grid {
        display: flex;
        gap: 11px;
        margin-inline: -4px;
        padding: 3px 4px 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gab-reglang-card {
        flex: 0 0 71vw;
        max-width: 270px;
        min-height: 225px;
        scroll-snap-align: center;
    }

    .gab-type-grid {
        grid-template-columns: 1fr;
    }

    .hicm-my-welcome h1 {
        font-size: 27px;
    }

    .hicm-my-welcome-actions .gab-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .hicm-my-summary {
        grid-template-columns: 1fr 1fr;
    }

    .hicm-my-summary-card {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 10px;
    }

    .hicm-my-summary-icon {
        width: 34px;
        height: 34px;
    }

    .hicm-my-summary-copy small {
        white-space: normal;
        line-height: 1.25;
    }

    .hicm-my-process {
        min-height: 330px;
    }
}

@media (max-width: 360px) {
    .hicm-model-tile {
        flex-basis: 78vw;
    }

    .hicm-my-summary {
        grid-template-columns: 1fr;
    }

    .hicm-my-summary-card {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .hicm-my-summary-card > .bi-chevron-right {
        display: inline-block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hicm-model-tile,
    .hicm-model-tile-media img,
    .hicm-my-summary-card,
    .gab-reglang-card {
        transition: none !important;
    }
}
