@font-face {
    font-display: swap;
    font-family: "Shabnam";
    font-style: normal;
    font-weight: 300;
    src: url("/fonts/shabnam/Shabnam-Light.woff2") format("woff2"),
         url("/fonts/shabnam/Shabnam-Light.woff") format("woff");
}

/* Services showcase and dedicated request flow */
.services-v2,
.service-request-page {
    display: grid;
    gap: 1.1rem;
}

.services-v2-heading {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 0.35rem 0.2rem 0.5rem;
}

.services-v2-heading > div {
    flex: 1 1 auto;
}

.services-v2-heading h1 {
    color: var(--black);
    font-size: clamp(1.32rem, 2.8vw, 1.8rem);
    font-weight: 950;
    line-height: 1.55;
}

.services-v2-heading > p {
    color: var(--gray-700);
    flex: 0 1 34rem;
    font-size: 0.82rem;
    line-height: 1.9;
}

.services-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.service-feature {
    border: 1px solid rgba(221, 221, 221, 0.82);
    border-radius: 26px;
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.07);
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: box-shadow 260ms ease, transform 260ms ease;
}

.service-feature:hover {
    box-shadow: 0 22px 46px rgba(17, 17, 17, 0.1);
    transform: translateY(-2px);
}

.service-feature-carpet {
    grid-column: span 7;
    min-height: 24rem;
}

.service-feature-carpet img,
.service-feature-overlay {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.service-feature-carpet img {
    object-fit: cover;
    object-position: center 58%;
    transition: transform 500ms ease;
}

.service-feature-carpet:hover img {
    transform: scale(1.025);
}

.service-feature-overlay {
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.22), rgba(17, 17, 17, 0.82) 76%);
}

.service-feature-content {
    align-content: end;
    color: var(--white);
    display: grid;
    gap: 0.7rem;
    height: 100%;
    max-width: 27rem;
    padding: 1.6rem;
    position: relative;
    z-index: 1;
}

.service-kicker {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.7;
}

.service-feature-carpet .service-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.service-feature h2 {
    color: var(--black);
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1.55;
}

.service-feature-carpet h2 {
    color: var(--white);
    font-size: 1.65rem;
}

.service-feature p {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.9;
}

.service-feature-carpet p {
    color: rgba(255, 255, 255, 0.82);
}

.service-feature-sofa,
.service-feature-design {
    background: var(--white);
    display: grid;
    grid-column: span 5;
    grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 0.58fr);
    min-height: 11.5rem;
}

.service-feature-design {
    grid-column: 8 / span 5;
}

.service-feature-art {
    align-content: center;
    background: var(--gray-100);
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    min-height: 100%;
    padding: 1rem;
}

.service-feature-sofa .service-feature-art {
    background: #EEF4FB;
    color: #336A9B;
}

.service-feature-design .service-feature-art {
    background: #F2EFF7;
    color: #71598C;
}

.service-art-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
    display: inline-flex;
    height: 4.8rem;
    justify-content: center;
    width: 4.8rem;
}

.service-art-icon svg {
    height: 2.35rem;
    width: 2.35rem;
}

.service-art-detail {
    font-size: 0.68rem;
    font-weight: 900;
}

.service-feature-copy {
    align-content: center;
    display: grid;
    gap: 0.45rem;
    padding: 1.15rem;
}

.service-cta {
    align-items: center;
    color: var(--black);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 950;
    gap: 0.45rem;
    justify-self: start;
    margin-top: 0.25rem;
    min-height: 2.7rem;
    transition: color 220ms ease, gap 220ms ease;
}

.service-cta:hover {
    color: var(--brand);
    gap: 0.7rem;
}

.service-cta svg {
    height: 1.15rem;
    width: 1.15rem;
}

.service-cta-light {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    color: var(--black);
    min-height: 3.25rem;
    padding: 0.7rem 0.95rem;
}

.service-feature-exchange {
    align-items: center;
    background: var(--white);
    display: grid;
    grid-column: span 12;
    grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 0.58fr);
    min-height: 13rem;
}

.service-exchange-visual {
    align-items: center;
    align-self: stretch;
    background: #F7F2E8;
    color: #9A6D20;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    padding: 1.2rem;
}

.exchange-rug {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(154, 109, 32, 0.14);
    border-radius: 20px;
    display: inline-flex;
    height: 5rem;
    justify-content: center;
    width: 5rem;
}

.exchange-rug-old {
    color: var(--gray-500);
    transform: scale(0.86);
}

.exchange-rug-new {
    box-shadow: 0 16px 30px rgba(154, 109, 32, 0.16);
}

.exchange-rug svg {
    height: 2.4rem;
    width: 2.4rem;
}

.exchange-arrow svg {
    height: 1.7rem;
    width: 1.7rem;
}

.service-cta-primary {
    background: var(--brand);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(158, 27, 60, 0.18);
    color: var(--white);
    min-height: 3.1rem;
    padding: 0.7rem 0.95rem;
}

.service-cta-primary:hover {
    color: var(--white);
}

.services-assurance {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.services-assurance > div {
    align-items: center;
    display: grid;
    gap: 0.18rem 0.75rem;
    grid-template-columns: auto 1fr;
    padding: 1rem;
}

.services-assurance > div + div {
    border-right: 1px solid var(--gray-200);
}

.services-assurance span {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 15px;
    color: var(--brand);
    display: inline-flex;
    grid-row: span 2;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.services-assurance svg {
    height: 1.35rem;
    width: 1.35rem;
}

.services-assurance strong {
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 950;
}

.services-assurance small {
    color: var(--gray-500);
    font-size: 0.7rem;
    line-height: 1.7;
}

.service-request-back {
    align-items: center;
    color: var(--gray-700);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.4rem;
    justify-self: start;
    padding: 0.25rem;
}

.service-request-back svg {
    height: 1.25rem;
    width: 1.25rem;
}

.service-request-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(16rem, 0.34fr) minmax(0, 0.66fr);
}

.service-request-summary,
.service-request-v2-form,
.service-request-success {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.service-request-summary {
    align-content: start;
    display: grid;
    gap: 0.65rem;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
}

.service-request-summary::before {
    background: var(--request-soft, var(--brand-soft));
    content: "";
    height: 0.42rem;
    inset: 0 0 auto;
    position: absolute;
}

.service-request-summary.is-sofa {
    --request-color: #336A9B;
    --request-soft: #EEF4FB;
}

.service-request-summary.is-design {
    --request-color: #71598C;
    --request-soft: #F2EFF7;
}

.service-request-summary.is-exchange {
    --request-color: #9A6D20;
    --request-soft: #F7F2E8;
}

.request-summary-icon {
    align-items: center;
    background: var(--request-soft, var(--brand-soft));
    border-radius: 20px;
    color: var(--request-color, var(--brand));
    display: inline-flex;
    height: 4.2rem;
    justify-content: center;
    margin: 0.4rem 0 0.2rem;
    width: 4.2rem;
}

.request-summary-icon svg {
    height: 2rem;
    width: 2rem;
}

.service-request-summary h1 {
    color: var(--black);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.55;
}

.service-request-summary > p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.9;
}

.service-request-summary ul {
    border-top: 1px solid var(--gray-200);
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0.9rem 0 0;
}

.service-request-summary li {
    align-items: center;
    color: var(--gray-700);
    display: flex;
    font-size: 0.74rem;
    gap: 0.5rem;
}

.service-request-summary li svg {
    color: var(--success);
    height: 1rem;
    width: 1rem;
}

.service-request-v2-form {
    display: grid;
    gap: 1.1rem;
    padding: 1.25rem;
}

.service-request-v2-form header {
    display: grid;
    gap: 0.2rem;
}

.service-request-v2-form h2 {
    color: var(--black);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.6;
}

.service-request-v2-form header > span {
    color: var(--gray-700);
    font-size: 0.78rem;
    line-height: 1.85;
}

.service-request-fields {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-request-fields label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.service-request-fields label > span {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
}

.service-request-fields label > span small {
    color: var(--gray-500);
    font-size: 0.68rem;
    font-weight: 700;
}

.service-request-fields .span-2 {
    grid-column: span 2;
}

.service-request-submit {
    justify-self: end;
    min-width: 13.5rem;
}

.service-request-success {
    align-content: center;
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    min-height: 28rem;
    padding: 2rem;
    text-align: center;
}

.request-success-icon {
    align-items: center;
    background: rgba(37, 122, 85, 0.1);
    border-radius: 22px;
    color: var(--success);
    display: inline-flex;
    height: 4.5rem;
    justify-content: center;
    margin-bottom: 0.35rem;
    width: 4.5rem;
}

.request-success-icon svg {
    height: 2.2rem;
    width: 2.2rem;
}

.service-request-success h1 {
    color: var(--black);
    font-size: 1.35rem;
    font-weight: 950;
}

.service-request-success > p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.82rem;
    line-height: 1.9;
    max-width: 32rem;
}

.request-success-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.7rem;
}

@media (max-width: 900px) {
    .services-v2-heading {
        align-items: start;
        display: grid;
        gap: 0.4rem;
    }

    .service-feature-carpet {
        grid-column: span 12;
        min-height: 21rem;
    }

    .service-feature-sofa,
    .service-feature-design {
        grid-column: span 6;
        grid-template-columns: 1fr;
    }

    .service-feature-art {
        min-height: 8.5rem;
    }

    .service-request-layout {
        grid-template-columns: 1fr;
    }

    .service-request-summary {
        grid-template-columns: auto 1fr;
    }

    .service-request-summary > *:not(.request-summary-icon) {
        grid-column: 2;
    }

    .service-request-summary .request-summary-icon {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    .service-request-summary ul {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .services-v2,
    .service-request-page {
        gap: 0.85rem;
    }

    .services-v2-heading {
        padding-inline: 0.1rem;
    }

    .services-v2-heading h1 {
        font-size: 1.25rem;
    }

    .services-v2-heading > p {
        font-size: 0.76rem;
        line-height: 1.85;
    }

    .services-bento {
        gap: 0.75rem;
    }

    .service-feature {
        border-radius: 22px;
    }

    .service-feature-carpet {
        min-height: 19rem;
    }

    .service-feature-carpet img {
        object-position: 52% center;
    }

    .service-feature-overlay {
        background: linear-gradient(0deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.16) 86%);
    }

    .service-feature-content {
        gap: 0.55rem;
        padding: 1rem;
    }

    .service-feature-carpet h2 {
        font-size: 1.28rem;
    }

    .service-feature-carpet p {
        font-size: 0.75rem;
        line-height: 1.8;
    }

    .service-cta-light {
        justify-content: space-between;
        justify-self: stretch;
    }

    .service-feature-sofa,
    .service-feature-design {
        display: grid;
        grid-column: span 6;
        grid-template-columns: 1fr;
        min-height: 19rem;
    }

    .service-feature-art {
        min-height: 7.2rem;
        padding: 0.75rem;
    }

    .service-art-icon {
        border-radius: 18px;
        height: 3.7rem;
        width: 3.7rem;
    }

    .service-art-icon svg {
        height: 1.85rem;
        width: 1.85rem;
    }

    .service-feature-copy {
        align-content: start;
        gap: 0.35rem;
        padding: 0.8rem;
    }

    .service-feature h2 {
        font-size: 0.96rem;
    }

    .service-feature p {
        font-size: 0.7rem;
        line-height: 1.75;
    }

    .service-kicker {
        font-size: 0.64rem;
    }

    .service-cta {
        align-self: end;
        font-size: 0.7rem;
        margin-top: auto;
        min-height: 2.5rem;
    }

    .service-feature-exchange {
        grid-template-columns: 0.46fr 0.54fr;
        min-height: 12.5rem;
    }

    .service-exchange-visual {
        gap: 0.25rem;
        padding: 0.65rem;
    }

    .exchange-rug {
        border-radius: 15px;
        height: 3.3rem;
        width: 3.3rem;
    }

    .exchange-rug svg {
        height: 1.65rem;
        width: 1.65rem;
    }

    .exchange-arrow svg {
        height: 1.1rem;
        width: 1.1rem;
    }

    .service-cta-primary {
        font-size: 0.68rem;
        justify-content: space-between;
        min-height: 2.75rem;
        padding: 0.55rem 0.65rem;
    }

    .services-assurance {
        border-radius: 22px;
        grid-template-columns: 1fr;
    }

    .services-assurance > div {
        padding: 0.8rem;
    }

    .services-assurance > div + div {
        border-right: 0;
        border-top: 1px solid var(--gray-200);
    }

    .service-request-back {
        font-size: 0.72rem;
    }

    .service-request-summary,
    .service-request-v2-form,
    .service-request-success {
        border-radius: 22px;
    }

    .service-request-summary {
        grid-template-columns: auto 1fr;
        padding: 1rem;
    }

    .service-request-summary h1 {
        font-size: 1.08rem;
    }

    .request-summary-icon {
        border-radius: 17px;
        height: 3.4rem;
        width: 3.4rem;
    }

    .request-summary-icon svg {
        height: 1.65rem;
        width: 1.65rem;
    }

    .service-request-summary ul {
        grid-template-columns: 1fr;
    }

    .service-request-v2-form {
        padding: 1rem;
    }

    .service-request-fields {
        grid-template-columns: 1fr;
    }

    .service-request-fields .span-2 {
        grid-column: auto;
    }

    .service-request-submit {
        justify-self: stretch;
        width: 100%;
    }

    .request-success-actions {
        align-items: stretch;
        display: grid;
        width: 100%;
    }
}

@font-face {
    font-display: swap;
    font-family: "Shabnam";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/shabnam/Shabnam.woff2") format("woff2"),
         url("/fonts/shabnam/Shabnam.woff") format("woff");
}

@font-face {
    font-display: swap;
    font-family: "Shabnam";
    font-style: normal;
    font-weight: 700;
    src: url("/fonts/shabnam/Shabnam-Medium.woff2") format("woff2"),
         url("/fonts/shabnam/Shabnam-Medium.woff") format("woff");
}

@font-face {
    font-display: swap;
    font-family: "Shabnam";
    font-style: normal;
    font-weight: 900;
    src: url("/fonts/shabnam/Shabnam-Bold.woff2") format("woff2"),
         url("/fonts/shabnam/Shabnam-Bold.woff") format("woff");
}

:root {
    --brand: #9E1B3C;
    --brand-deep: #7E1430;
    --brand-soft: #FFF1F5;
    --white: #FFFFFF;
    --black: #111111;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #DDDDDD;
    --gray-500: #888888;
    --gray-700: #555555;
    --success: #257A55;
    --danger: #B4233F;
    --shadow-soft: 0 18px 54px rgba(17, 17, 17, 0.08);
    --shadow-card: 0 10px 28px rgba(17, 17, 17, 0.06);
    --shadow-brand: 0 18px 38px rgba(158, 27, 60, 0.20);
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --font-sans: "Shabnam", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--gray-100);
    color: var(--black);
    direction: rtl;
    font-family: var(--font-sans);
    font-size: 15px;
    min-height: 100%;
    min-height: 100dvh;
    text-rendering: geometricPrecision;
}

body {
    background:
        radial-gradient(circle at 20% -10%, rgba(158, 27, 60, 0.08), transparent 30rem),
        linear-gradient(180deg, var(--gray-50), var(--gray-100));
    background-color: var(--gray-100);
    color: var(--black);
    font-family: var(--font-sans);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1:focus {
    outline: none;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

svg path,
svg rect,
svg circle {
    vector-effect: non-scaling-stroke;
}

#blazor-error-ui {
    display: none;
}

.auth-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-panel {
    width: min(100%, 28rem);
}

.auth-card,
.fin-card,
.notification-card,
.profile-hero,
.services-hero,
.service-request-form,
.service-success,
.payment-panel,
.data-panel,
.survey-panel,
.timeline-content,
.success-screen {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.auth-card {
    padding: 1.15rem;
}

.auth-brand-panel {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: grid;
    justify-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.auth-brand-panel img {
    max-width: min(100%, 16rem);
}

.auth-brand-panel span {
    color: var(--gray-700);
    font-size: 0.76rem;
    margin-top: 0.35rem;
}

.auth-heading {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.auth-heading p,
.overline {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.6;
}

.auth-heading h1,
.page-title h1,
.hero-card h1 {
    color: var(--black);
    font-size: clamp(1.32rem, 4vw, 1.9rem);
    font-weight: 950;
    line-height: 1.5;
}

.auth-heading span,
.page-title span,
.hero-card span,
.fin-card p,
.empty-state p {
    color: var(--gray-700);
    font-size: 0.88rem;
    line-height: 1.9;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

.field-group label {
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 850;
}

.form-control {
    appearance: none;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--black);
    direction: rtl;
    font-size: 0.92rem;
    min-height: 3.35rem;
    outline: none;
    padding: 0.8rem 1rem;
    text-align: right;
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
    width: 100%;
}

.form-control:focus {
    border-color: rgba(158, 27, 60, 0.52);
    box-shadow: 0 0 0 5px rgba(158, 27, 60, 0.08);
}

.validation-message {
    color: var(--danger);
    font-size: 0.78rem;
}

.btn-primary,
.btn-secondary,
.hero-cta,
.inline-cta {
    align-items: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 900;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.8rem 1rem;
    transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.btn-primary,
.hero-cta {
    background: var(--brand);
    border: 1px solid var(--brand);
    box-shadow: var(--shadow-brand);
    color: var(--white);
}

.btn-secondary,
.inline-cta {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-primary,
.btn-secondary {
    width: 100%;
}

.btn-primary:hover,
.btn-secondary:hover,
.hero-cta:hover,
.inline-cta:hover,
.fin-card:hover {
    transform: translateY(-2px);
}

.auth-split {
    align-items: center;
    color: var(--gray-500);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto 1fr;
    margin: 1rem 0;
}

.auth-split span {
    background: var(--gray-200);
    height: 1px;
}

.auth-link {
    color: var(--brand);
    display: block;
    font-size: 0.84rem;
    font-weight: 850;
    margin-top: 1rem;
    text-align: center;
}

.state-banner {
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
}

.state-banner.success {
    background: rgba(37, 122, 85, 0.1);
    color: var(--success);
}

.app-shell {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.app-sidebar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(221, 221, 221, 0.85);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100vh;
    padding: 1rem;
    position: sticky;
    top: 0;
}

.side-nav {
    display: grid;
    gap: 0.35rem;
}

.side-nav a {
    align-items: center;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    display: flex;
    font-size: 0.9rem;
    font-weight: 850;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.55rem 0.75rem;
    transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.side-nav a:hover,
.side-nav a.active {
    background: var(--brand-soft);
    color: var(--brand);
    transform: translateX(-2px);
}

.nav-icon,
.icon-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.nav-icon {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    height: 2rem;
    width: 2rem;
}

.nav-icon svg,
.floating-tabbar svg,
.icon-button svg,
.profile-chip svg {
    height: 1.15rem;
    width: 1.15rem;
}

.mini-progress,
.level-progress {
    background: var(--gray-200);
    border-radius: 999px;
    height: 0.55rem;
    overflow: hidden;
}

.mini-progress span,
.level-progress span {
    background: var(--brand);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.app-content {
    min-width: 0;
    padding: 1rem 1rem 6rem;
}

.glass-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(221, 221, 221, 0.78);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    margin: -1rem auto 1rem;
    max-width: 74rem;
    padding: 0.9rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-brand img {
    max-width: 9rem;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    margin-right: auto;
}

.icon-button,
.profile-chip {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}

.icon-button {
    border-radius: 999px;
    color: var(--brand);
    height: 2.7rem;
    width: 2.7rem;
}

.profile-chip {
    align-items: center;
    border-radius: 999px;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 0.45rem 0.35rem 0.8rem;
}

.profile-chip span {
    font-size: 0.82rem;
    font-weight: 850;
}

.profile-chip strong,
.profile-avatar {
    align-items: center;
    background: var(--brand);
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    justify-content: center;
}

.profile-chip strong {
    height: 2rem;
    width: 2rem;
}

.page-frame {
    margin: 0 auto;
    max-width: 74rem;
}

.page-title {
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem 0 1rem;
}

.hero-card {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at 8% 10%, rgba(158, 27, 60, 0.16), transparent 18rem);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.25rem;
}

.compact-hero {
    min-height: 11rem;
}

.hero-balance {
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-brand);
    color: var(--white);
    min-width: 10.5rem;
    padding: 1rem;
    text-align: center;
}

.hero-balance small,
.hero-balance em {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-style: normal;
    font-size: 0.78rem;
}

.hero-balance strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1.4;
}

.bento-grid,
.benefit-grid {
    display: grid;
    gap: 1rem;
}

.bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-2 {
    grid-column: span 2;
}

.fin-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.1rem;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.card-topline {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.card-topline span,
.fin-card > span,
.metric-card span {
    color: var(--gray-700);
    font-size: 0.8rem;
    font-weight: 850;
}

.card-topline strong,
.metric-card strong,
.referral-box strong {
    color: var(--black);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.6;
}

.metric-card strong {
    color: var(--brand);
    font-size: 1.8rem;
}

.metric-card small {
    color: var(--gray-500);
    font-size: 0.78rem;
}

.reward-preview {
    background: linear-gradient(145deg, var(--black), #2A2A2A);
    color: var(--white);
}

.reward-preview span,
.reward-preview strong {
    color: var(--white);
}

.reward-preview a {
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 850;
}

.quick-card a {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--black);
    font-size: 0.86rem;
    font-weight: 850;
    padding: 0.8rem;
}

.home-dashboard {
    display: grid;
    gap: 1rem;
}

.home-pass-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.94)),
        linear-gradient(90deg, rgba(158, 27, 60, 0.11), transparent 58%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.15rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 0.85fr);
    overflow: hidden;
    padding: 1.25rem;
}

.home-pass-copy {
    align-content: center;
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.home-pass-copy h1 {
    color: var(--black);
    font-size: clamp(1.34rem, 3.4vw, 2rem);
    font-weight: 950;
    line-height: 1.55;
}

.home-pass-copy span {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.9;
}

.home-pass-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    min-width: 0;
}

.home-pass-balance {
    align-content: center;
    --ticket-cut-radius: clamp(1.75rem, 2.45vw, 2.1rem);
    background:
        radial-gradient(circle at right 50%, var(--gray-100) 0 var(--ticket-cut-radius), transparent calc(var(--ticket-cut-radius) + 0.04rem)),
        radial-gradient(circle at left 50%, var(--gray-100) 0 var(--ticket-cut-radius), transparent calc(var(--ticket-cut-radius) + 0.04rem)),
        linear-gradient(135deg, var(--ticket-start), var(--ticket-end)),
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.36), transparent 9rem);
    border: 1px solid var(--ticket-border);
    border-radius: 26px;
    box-shadow: var(--ticket-shadow);
    color: var(--ticket-ink);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5rem;
    min-height: 10.5rem;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.home-pass-balance::before,
.home-pass-balance::after {
    display: none;
}

.home-pass-balance.is-gold {
    --ticket-start: #FFF7D6;
    --ticket-end: #D8A126;
    --ticket-border: rgba(176, 124, 18, 0.32);
    --ticket-ink: #2B2110;
    --ticket-muted: #77530B;
    --ticket-chip-bg: rgba(255, 255, 255, 0.58);
    --ticket-shadow: 0 18px 42px rgba(154, 113, 18, 0.16);
}

.home-pass-balance.is-silver {
    --ticket-start: #FFFFFF;
    --ticket-end: #D9DEE8;
    --ticket-border: rgba(120, 130, 150, 0.3);
    --ticket-ink: #262B33;
    --ticket-muted: #5B6470;
    --ticket-chip-bg: rgba(255, 255, 255, 0.72);
    --ticket-shadow: 0 18px 42px rgba(100, 110, 130, 0.14);
}

.home-pass-balance.is-bronze {
    --ticket-start: #FFF3E8;
    --ticket-end: #C98242;
    --ticket-border: rgba(167, 96, 38, 0.3);
    --ticket-ink: #2D1C10;
    --ticket-muted: #784A25;
    --ticket-chip-bg: rgba(255, 255, 255, 0.62);
    --ticket-shadow: 0 18px 42px rgba(147, 84, 34, 0.14);
}

.home-pass-balance.is-platinum {
    --ticket-start: #F9FBFF;
    --ticket-end: #B9CCE8;
    --ticket-border: rgba(91, 118, 160, 0.28);
    --ticket-ink: #172033;
    --ticket-muted: #4B5D79;
    --ticket-chip-bg: rgba(255, 255, 255, 0.72);
    --ticket-shadow: 0 18px 42px rgba(68, 91, 130, 0.14);
}

.home-pass-balance.is-standard {
    --ticket-start: #FFFFFF;
    --ticket-end: #F2F2F2;
    --ticket-border: rgba(221, 221, 221, 0.86);
    --ticket-ink: var(--black);
    --ticket-muted: var(--gray-700);
    --ticket-chip-bg: rgba(255, 255, 255, 0.72);
    --ticket-shadow: var(--shadow-card);
}

.ticket-content {
    align-content: center;
    display: grid;
    gap: 0.18rem;
    justify-items: center;
    margin-right: 0.72rem;
    min-width: 0;
    padding: 1rem 1.2rem 1rem 1.65rem;
    text-align: center;
    transform: translateX(-0.28rem);
}

.ticket-code {
    align-items: center;
    border-right: 1px dashed rgba(43, 33, 16, 0.24);
    display: grid;
    justify-items: center;
    margin-left: 1.4rem;
    padding: 0.72rem 0.36rem;
    writing-mode: vertical-rl;
}

.ticket-code span {
    color: var(--ticket-muted);
    font-size: 0.64rem;
    font-weight: 850;
}

.ticket-code strong {
    color: var(--ticket-ink);
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    margin-left: 0.72rem;
}

.home-pass-wallet {
    align-content: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.6rem;
    justify-items: center;
    min-height: 10.5rem;
    min-width: 0;
    padding: 1.1rem;
    text-align: center;
}

.home-pass-wallet div {
    display: grid;
    gap: 0.12rem;
    justify-items: center;
    min-width: 0;
}

.home-pass-wallet span:not(.home-stat-icon) {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 850;
}

.home-pass-wallet strong {
    color: var(--black);
    font-size: 1.25rem;
    font-weight: 950;
    line-height: 1.6;
}

.home-pass-wallet small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.home-pass-balance .ticket-content > span,
.home-pass-balance em {
    color: var(--ticket-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.home-pass-balance .ticket-content strong {
    color: var(--ticket-ink);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 950;
    line-height: 1.3;
}

.home-pass-balance em {
    background: var(--ticket-chip-bg);
    border-radius: 999px;
    color: var(--ticket-ink);
    justify-self: center;
    margin-top: 0.45rem;
    padding: 0.32rem 0.78rem;
}

.home-level-track {
    border-top: 1px solid var(--gray-200);
    display: grid;
    gap: 0.55rem;
    grid-column: 1 / -1;
    padding-top: 0.2rem;
}

.home-level-track > div:first-child {
    align-items: center;
    color: var(--gray-700);
    display: flex;
    font-size: 0.82rem;
    font-weight: 900;
    justify-content: space-between;
}

.home-level-track > div:first-child strong {
    color: #8A610E;
}

.home-level-track .level-progress {
    background: rgba(212, 159, 35, 0.16);
    height: 0.7rem;
}

.home-level-track .level-progress span {
    background: linear-gradient(90deg, #C8941C, #F7D774);
}

.home-level-track small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.home-pass-actions {
    display: grid;
    gap: 0.65rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-pass-actions a,
.home-quick-panel a {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--black);
    display: flex;
    font-size: 0.84rem;
    font-weight: 900;
    gap: 0.55rem;
    min-height: 3.35rem;
    padding: 0.75rem 0.85rem;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.home-pass-actions a:hover,
.home-quick-panel a:hover {
    background: var(--brand-soft);
    border-color: rgba(158, 27, 60, 0.16);
    color: var(--brand);
    transform: translateY(-1px);
}

.home-pass-actions span,
.home-quick-panel span,
.home-stat-icon {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.home-pass-actions svg,
.home-quick-panel svg,
.home-stat-icon svg {
    height: 1.15rem;
    width: 1.15rem;
}

.home-insight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.7fr) minmax(14rem, 1fr);
}

.home-service-banner {
    align-items: end;
    background: var(--black);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
    display: grid;
    grid-column: 1 / -1;
    min-height: 18rem;
    min-width: 0;
    overflow: hidden;
    padding: 1.2rem;
    position: relative;
}

.home-service-banner::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.84)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 58%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.home-service-banner::after {
    content: "";
    display: none;
}

.home-service-bg {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.home-service-copy {
    align-content: center;
    display: grid;
    gap: 0.32rem;
    max-width: 34rem;
    min-width: 0;
    padding-top: 1.9rem;
    position: relative;
    z-index: 2;
}

.home-service-banner small {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 950;
}

.home-service-banner strong {
    color: var(--white);
    font-size: clamp(1.36rem, 3vw, 2rem);
    font-weight: 950;
    line-height: 1.55;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.72);
}

.home-service-banner p {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.88rem;
    line-height: 1.85;
    max-width: 31rem;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.64);
}

.home-service-banner a {
    align-items: center;
    background: var(--brand);
    border-radius: 18px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 950;
    justify-content: center;
    justify-self: start;
    margin-top: 0.45rem;
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    transition: transform 220ms ease, box-shadow 220ms ease;
    white-space: nowrap;
}

.home-service-banner a:hover {
    box-shadow: 0 16px 32px rgba(158, 27, 60, 0.2);
    transform: translateY(-1px);
}

.home-stat-card,
.home-reward-focus,
.home-quick-panel {
    background: var(--white);
    border: 1px solid rgba(221, 221, 221, 0.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    min-width: 0;
    padding: 1rem;
}

.home-stat-card {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.home-stat-card div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.home-stat-card span:not(.home-stat-icon),
.home-reward-focus span,
.home-reward-focus small {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 850;
}

.home-stat-card strong {
    color: var(--black);
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1.6;
}

.home-stat-card small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.home-stat-card.is-points .home-stat-icon {
    background: var(--brand-soft);
    border-color: rgba(158, 27, 60, 0.1);
}

.home-reward-focus {
    align-content: space-between;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.94)),
        radial-gradient(circle at 8% 0%, rgba(158, 27, 60, 0.16), transparent 13rem);
    border-color: rgba(158, 27, 60, 0.12);
    color: var(--black);
    display: grid;
    gap: 1rem;
    min-height: 11rem;
}

.home-reward-focus div {
    display: grid;
    gap: 0.3rem;
}

.home-reward-focus span,
.home-reward-focus small {
    color: var(--gray-500);
}

.home-reward-focus strong {
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.7;
}

.home-reward-focus a {
    align-self: end;
    background: var(--brand);
    border-radius: 17px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 950;
    justify-content: center;
    justify-self: start;
    padding: 0.72rem 1rem;
}

.home-quick-panel {
    display: grid;
    gap: 0.65rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-list {
    display: grid;
    gap: 0.85rem;
}

.notification-card strong {
    color: var(--black);
    display: block;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.7;
}

.notification-card small {
    color: var(--gray-500);
    font-size: 0.76rem;
}

.orders-stack {
    display: grid;
    gap: 1rem;
}

.orders-section {
    display: grid;
    gap: 0.85rem;
}

.orders-section-title {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.orders-section-title h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.6;
    margin: 0;
}

.orders-section-title p {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.8;
    margin: 0.15rem 0 0;
}

.orders-section-title > span {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    color: var(--gray-700);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 950;
    padding: 0.45rem 0.75rem;
}

.orders-ledger {
    display: grid;
    gap: 0.75rem;
}

.orders-header,
.order-summary-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1.25fr 0.85fr 0.95fr 0.75fr 3rem;
}

.orders-header {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0 1rem;
}

.order-row-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.order-summary-row {
    background: transparent;
    border: 0;
    color: var(--black);
    cursor: pointer;
    min-height: 5rem;
    padding: 1rem;
    text-align: right;
    transition: background 220ms ease;
    width: 100%;
}

.order-summary-row:hover {
    background: var(--gray-50);
}

.order-summary-row span,
.order-summary-row strong {
    font-size: 0.88rem;
    line-height: 1.7;
}

.order-summary-row strong {
    color: var(--brand);
    font-weight: 950;
}

.order-status-badge {
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 999px;
    color: #2563eb;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 950;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.order-status-badge.is-registered {
    background: rgba(212, 159, 35, 0.14);
    color: #a16207;
}

.order-status-badge.is-supplying {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.order-status-badge.is-awaiting-delivery {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.order-status-badge.is-delivered {
    background: rgba(18, 161, 92, 0.1);
    color: var(--success);
}

.order-arrow {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    margin-right: auto;
    transition: transform 240ms ease, background 240ms ease;
    width: 2.35rem;
}

.order-arrow svg {
    height: 1.1rem;
    width: 1.1rem;
}

.order-arrow.is-open {
    background: var(--brand);
    color: var(--white);
    transform: rotate(180deg);
}

.order-details {
    animation: fadeSlide 240ms ease;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem 1rem 1rem;
}

.order-details-header,
.order-item-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.5fr) 0.55fr 1fr;
}

.order-details-header {
    color: var(--gray-500);
    font-size: 0.74rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
}

.order-item-row {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.order-item-row strong,
.order-item-row span {
    font-size: 0.84rem;
    line-height: 1.8;
}

.order-item-row strong {
    font-weight: 900;
}

.orders-unified-list {
    display: grid;
    gap: 1rem;
}

.order-card-v2 {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(158, 27, 60, 0.08), transparent 16rem);
    border: 1px solid rgba(221, 221, 221, 0.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.78rem;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.order-card-head {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    min-height: 2.45rem;
    padding-left: 7.4rem;
}

.order-card-head > div {
    display: grid;
    gap: 0.15rem;
}

.order-card-head span,
.order-meta-grid dt,
.order-flow-title span {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 850;
}

.order-card-head strong {
    color: var(--black);
    font-size: 0.98rem;
    font-weight: 950;
}

.order-state-chip {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 950;
    left: 1rem;
    padding: 0.45rem 0.75rem;
    position: absolute;
    top: 1rem;
}

.order-state-chip.is-registered {
    background: rgba(212, 159, 35, 0.14);
    color: #a16207;
}

.order-state-chip.is-supplying {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.order-state-chip.is-awaiting-delivery {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.order-state-chip.is-delivered {
    background: rgba(37, 122, 85, 0.1);
    color: var(--success);
}

.order-meta-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.order-meta-grid div {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.8rem;
}

.order-meta-grid dt,
.order-meta-grid dd {
    margin: 0;
}

.order-meta-grid dd {
    color: var(--black);
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.order-flow-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.order-flow-title {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.order-flow-title strong {
    color: var(--black);
    font-size: 0.92rem;
    font-weight: 950;
}

.order-status-flow {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-flow-step {
    --step-color: var(--gray-500);
    --step-soft: var(--gray-100);
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    min-height: 4.4rem;
    padding-bottom: 1rem;
    position: relative;
}

.order-flow-step.is-registered {
    --step-color: #D49F23;
    --step-soft: rgba(212, 159, 35, 0.14);
}

.order-flow-step.is-supplying {
    --step-color: #7C3AED;
    --step-soft: rgba(124, 58, 237, 0.1);
}

.order-flow-step.is-awaiting-delivery {
    --step-color: #2563EB;
    --step-soft: rgba(37, 99, 235, 0.1);
}

.order-flow-step.is-delivered {
    --step-color: var(--success);
    --step-soft: rgba(37, 122, 85, 0.1);
}

.order-flow-step:last-child {
    min-height: 2.8rem;
    padding-bottom: 0;
}

.order-flow-step::before {
    background: var(--gray-200);
    bottom: 0;
    content: "";
    position: absolute;
    right: 1.38rem;
    top: 2.8rem;
    width: 2px;
}

.order-flow-step:last-child::before {
    display: none;
}

.order-flow-step.is-complete::before {
    background: var(--step-color);
}

.order-flow-icon {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.05);
    color: var(--step-color);
    display: inline-flex;
    height: 2.8rem;
    justify-content: center;
    position: relative;
    width: 2.8rem;
    z-index: 1;
}

.order-flow-icon svg {
    height: 1.35rem;
    width: 1.35rem;
}

.order-flow-step.is-complete .order-flow-icon {
    background: var(--step-soft);
    border-color: transparent;
    color: var(--step-color);
}

.order-flow-step.is-current .order-flow-icon {
    background: var(--step-color);
    border-color: var(--step-color);
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.12);
    color: var(--white);
}

.order-flow-step.is-current .order-flow-icon::after {
    animation: pulseRing 1.6s ease-out infinite;
    border: 1px solid var(--step-color);
    border-radius: inherit;
    content: "";
    inset: -0.35rem;
    position: absolute;
}

.order-flow-copy {
    align-self: center;
    display: grid;
    gap: 0.18rem;
}

.order-flow-copy strong {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1.6;
}

.order-flow-step.is-current .order-flow-copy strong {
    color: var(--step-color);
}

.order-flow-copy small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 780;
    line-height: 1.8;
}

.order-flow-step.is-upcoming .order-flow-copy strong,
.order-flow-step.is-upcoming .order-flow-copy small {
    color: var(--gray-500);
}

.order-flow-step.is-upcoming .order-flow-icon {
    background: var(--white);
    color: var(--step-color);
    opacity: 0.62;
}

.order-products-toggle {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--black);
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 3.35rem;
    padding: 0.65rem 0.85rem;
    text-align: right;
    transition: background 220ms ease, border-color 220ms ease;
}

.order-products-toggle:hover {
    background: var(--brand-soft);
    border-color: rgba(158, 27, 60, 0.2);
}

.order-products-toggle span,
.order-products-toggle strong {
    font-size: 0.82rem;
    font-weight: 950;
}

.order-products-toggle strong {
    color: var(--brand);
}

.order-products-toggle svg {
    color: var(--brand);
    height: 1.05rem;
    transition: transform 220ms ease;
    width: 1.05rem;
}

.order-products-toggle svg.is-open {
    transform: rotate(180deg);
}

@keyframes pulseRing {
    from {
        opacity: 0.8;
        transform: scale(0.94);
    }
    to {
        opacity: 0;
        transform: scale(1.18);
    }
}

.installment-dashboard {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.installment-metric-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 221, 221, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem;
}

.installment-metric-card span {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 900;
}

.installment-metric-card strong {
    color: var(--black);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.7;
}

.installment-metric-card small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.installment-metric-card.is-paid strong {
    color: var(--success);
}

.installment-metric-card.is-debt strong {
    color: var(--brand);
}

.installment-payment-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 21rem;
}

.installment-month-stack,
.installment-table,
.selected-installment-list {
    display: grid;
    gap: 0.85rem;
}

.section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.section-heading h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.7;
    margin: 0;
}

.section-heading p {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.8;
    margin: 0.1rem 0 0;
}

.installment-month-card,
.payment-selection-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(221, 221, 221, 0.78);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.installment-month-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.installment-month-card header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.installment-month-card h3 {
    color: var(--black);
    font-size: 0.96rem;
    font-weight: 950;
    margin: 0;
}

.installment-month-card header span,
.installment-row small,
.payment-selection-head small,
.payment-empty span {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 800;
}

.installment-month-card header strong {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 950;
    white-space: nowrap;
}

.installment-row {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 4.5rem;
    padding: 0.85rem;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.installment-row:hover,
.installment-row.is-selected {
    background: var(--white);
    border-color: rgba(158, 27, 60, 0.22);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.installment-row > span:nth-child(2) {
    display: grid;
    gap: 0.12rem;
}

.installment-row strong {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 950;
}

.installment-row em {
    color: var(--brand);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

.installment-check {
    display: inline-grid;
    height: 2.35rem;
    place-items: center;
    position: relative;
    width: 2.35rem;
}

.installment-check input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.installment-check span {
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 14px;
    display: inline-flex;
    height: 2.15rem;
    justify-content: center;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    width: 2.15rem;
}

.installment-check input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(158, 27, 60, 0.22);
}

.installment-check input:checked + span::after {
    border-bottom: 2px solid var(--white);
    border-left: 2px solid var(--white);
    content: "";
    height: 0.36rem;
    transform: rotate(-45deg) translate(1px, -1px);
    width: 0.72rem;
}

.payment-selection-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.payment-selection-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.payment-selection-head span {
    color: var(--gray-500);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
}

.payment-selection-head strong {
    color: var(--brand);
    display: block;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1.7;
}

.payment-selection-head small {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
}

.payment-empty {
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.payment-empty strong {
    color: var(--black);
    font-size: 0.88rem;
    font-weight: 950;
}

.selected-installment-list div {
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.65rem 0;
}

.selected-installment-list div:last-child {
    border-bottom: 0;
}

.selected-installment-list span {
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 900;
}

.selected-installment-list strong {
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 950;
}

.payment-action {
    border: 0;
    cursor: pointer;
    width: 100%;
}

.payment-action:disabled {
    background: var(--gray-200);
    box-shadow: none;
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
}

.installments-screen {
    --loan-bg: transparent;
    --loan-card: var(--white);
    --loan-card-soft: var(--gray-50);
    --loan-border: rgba(221, 221, 221, 0.82);
    --loan-muted: var(--gray-500);
    --loan-text: var(--black);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(158, 27, 60, 0.07), transparent 18rem);
    border: 1px solid var(--loan-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    color: var(--loan-text);
    display: grid;
    gap: 0;
    margin: 0 auto;
    max-width: 48rem;
    overflow: hidden;
    padding: 1.1rem;
}

.loan-progress-orb svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.loan-summary-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    justify-items: center;
    padding: 0;
}

.loan-summary-card {
    gap: 0.45rem;
    padding-bottom: 1rem;
}

.loan-progress-orb {
    align-items: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.9)),
        linear-gradient(135deg, rgba(158, 27, 60, 0.08), rgba(255, 255, 255, 0));
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.07);
    display: inline-flex;
    height: 4.8rem;
    justify-content: center;
    margin-bottom: 0.25rem;
    position: relative;
    width: 4.8rem;
}

.loan-progress-orb::before {
    background: conic-gradient(var(--brand) var(--progress), rgba(158, 27, 60, 0.14) 0);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(158, 27, 60, 0.08);
    content: "";
    inset: 0.58rem;
    position: absolute;
}

.loan-progress-orb::after {
    background: var(--white);
    border-radius: 999px;
    content: "";
    inset: 1rem;
    position: absolute;
}

.loan-progress-orb span {
    align-items: center;
    background: var(--brand-soft);
    border: 1px solid rgba(158, 27, 60, 0.12);
    border-radius: 18px;
    color: var(--brand);
    display: inline-flex;
    height: 2.55rem;
    justify-content: center;
    position: relative;
    width: 2.55rem;
    z-index: 2;
}

.loan-progress-orb svg {
    height: 1.35rem;
    width: 1.35rem;
}

.loan-summary-card > strong {
    color: var(--loan-text);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.7;
}

.loan-summary-card > p {
    color: var(--loan-muted);
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0;
}

.loan-summary-split {
    border-top: 1px solid var(--loan-border);
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    width: 100%;
}

.loan-summary-split div {
    display: grid;
    gap: 0.25rem;
    justify-items: center;
}

.loan-summary-split div + div {
    border-right: 1px solid var(--loan-border);
}

.loan-summary-split span,
.loan-installment-row small {
    color: var(--loan-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.loan-summary-split strong {
    color: var(--loan-text);
    font-size: 0.92rem;
    font-weight: 950;
}

.loan-tabs {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--loan-border);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loan-tabs button {
    background: transparent;
    border: 0;
    color: var(--loan-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 950;
    min-height: 3.25rem;
    position: relative;
    transition: color 220ms ease;
}

.loan-tabs button::after {
    background: transparent;
    border-radius: 999px 999px 0 0;
    bottom: 0;
    content: "";
    height: 3px;
    left: 0.4rem;
    position: absolute;
    right: 0.4rem;
}

.loan-tabs button.is-active {
    color: var(--brand);
}

.loan-tabs button.is-active::after {
    background: var(--brand);
}

.loan-list-panel {
    display: grid;
    gap: 0;
    padding-top: 0.45rem;
}

.loan-month-group {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 0.12rem;
    overflow: visible;
    padding: 0.65rem 0 0;
}

.loan-month-group + .loan-month-group {
    border-top: 1px solid var(--loan-border);
    margin-top: 0.6rem;
}

.loan-month-group h2 {
    color: var(--loan-muted);
    font-size: 0.76rem;
    font-weight: 950;
    margin: 0.5rem 0 0.2rem;
}

.loan-installment-row {
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    color: var(--loan-text);
    cursor: pointer;
    display: grid;
    column-gap: 0.85rem;
    grid-template-columns: 2.35rem minmax(0, 1fr) minmax(6.45rem, 0.42fr);
    min-height: 4.1rem;
    padding: 0.65rem 0.65rem;
    transition: background 220ms ease, transform 220ms ease;
}

.loan-installment-row:hover,
.loan-installment-row.is-selected {
    background: var(--brand-soft);
    border-radius: 18px;
}

.loan-installment-row > span:not(.loan-calendar-check) {
    display: grid;
    gap: 0.08rem;
    justify-items: center;
    justify-self: center;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    width: max-content;
}

.loan-installment-row > span:nth-of-type(3) {
    justify-self: stretch;
}

.loan-installment-row strong {
    color: var(--loan-text);
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.7;
}

.loan-calendar-check {
    display: inline-grid;
    height: 2.3rem;
    place-items: center;
    position: relative;
    width: 2.3rem;
}

.loan-calendar-check input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.loan-calendar-check > span {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 9px;
    display: inline-flex;
    height: 1.55rem;
    justify-content: center;
    position: relative;
    transition: background 220ms ease, border-color 220ms ease;
    width: 1.55rem;
}

.loan-calendar-check > span::before {
    background: var(--gray-300);
    border-radius: 999px;
    content: "";
    height: 0.14rem;
    position: absolute;
    top: 0.34rem;
    width: 0.8rem;
}

.loan-calendar-check input:checked + span,
.loan-installment-row.is-paid .loan-calendar-check > span {
    background: var(--brand);
    border-color: var(--brand);
}

.loan-installment-row.is-paid .loan-calendar-check > span {
    background: var(--success);
    border-color: var(--success);
}

.loan-calendar-check input:checked + span::after,
.loan-installment-row.is-paid .loan-calendar-check > span::after {
    border-bottom: 2px solid var(--white);
    border-left: 2px solid var(--white);
    content: "";
    height: 0.28rem;
    position: absolute;
    top: 0.58rem;
    transform: rotate(-45deg);
    width: 0.58rem;
}

.loan-installment-row.is-paid {
    cursor: default;
    grid-template-columns: 2.35rem minmax(0, 1fr) minmax(6.45rem, 0.42fr) max-content;
}

.loan-installment-row.is-paid:hover {
    background: rgba(37, 122, 85, 0.06);
}

.installments-screen .state-card {
    background: transparent;
    border: 1px dashed var(--loan-border);
    color: var(--loan-text);
    margin-top: 0.8rem;
}

.installments-screen .state-card span {
    color: var(--loan-muted);
}

.installment-floating-popup {
    align-items: center;
    animation: popupRise 260ms ease both;
    background: rgba(17, 17, 17, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
    color: var(--white);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 50%;
    max-width: 24rem;
    padding: 0.85rem 1rem;
    position: fixed;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(24rem, calc(100vw - 2rem));
    z-index: 45;
}

.installment-floating-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.installment-floating-copy span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
}

.installment-floating-copy strong {
    color: var(--white);
    font-size: 0.96rem;
    font-weight: 950;
    white-space: nowrap;
}

.installment-floating-popup button {
    background: var(--brand);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(158, 27, 60, 0.28);
    color: var(--white);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 950;
    min-height: 2.8rem;
    padding: 0 1.35rem;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.installment-floating-popup button:hover {
    box-shadow: 0 18px 34px rgba(158, 27, 60, 0.34);
    transform: translateY(-1px);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-0.4rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupRise {
    from {
        opacity: 0;
        transform: translate(-50%, 0.8rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.notification-card p {
    color: var(--gray-700);
    font-size: 0.84rem;
    line-height: 1.9;
}

.amount-chip {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: var(--black);
    font-weight: 900;
    padding: 1rem;
}

.rewards-journey-page {
    display: grid;
    gap: 1rem;
}

.rewards-ticket-hero {
    display: grid;
    align-items: stretch;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    min-width: 0;
}

.rewards-gold-ticket {
    min-height: 11rem;
    width: 100%;
}

.rewards-next-stage-card {
    align-content: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.58rem;
    justify-items: center;
    min-height: 11rem;
    min-width: 0;
    padding: 1.05rem;
    text-align: center;
}

.rewards-next-stage-icon {
    height: 2.55rem;
    width: 2.55rem;
}

.rewards-next-stage-copy {
    display: grid;
    gap: 0.14rem;
    justify-items: center;
    min-width: 0;
}

.journey-hero,
.journey-world,
.journey-task-panel {
    border: 1px solid rgba(221, 221, 221, 0.86);
    box-shadow: var(--shadow-card);
}

.journey-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 12%, rgba(158, 27, 60, 0.12), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.94));
    border-radius: var(--radius-xl);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.36fr);
    overflow: hidden;
    padding: 1.1rem;
    position: relative;
}

.journey-hero::after {
    background: linear-gradient(90deg, transparent, rgba(158, 27, 60, 0.12), transparent);
    content: "";
    height: 1px;
    inset: auto 1.4rem 0;
    position: absolute;
}

.journey-hero-copy h1 {
    color: var(--black);
    font-size: clamp(1.4rem, 4vw, 2.25rem);
    font-weight: 950;
    line-height: 1.55;
}

.journey-hero-copy p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.9;
    margin-top: 0.35rem;
    max-width: 46rem;
}

.journey-next-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
        linear-gradient(135deg, rgba(212, 159, 35, 0.14), rgba(158, 27, 60, 0.08));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(221, 221, 221, 0.78);
    border-radius: 26px;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.journey-next-badge {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 950;
    justify-self: center;
    padding: 0.32rem 0.62rem;
}

.journey-next-card strong {
    color: var(--black);
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1.6;
}

.journey-next-card small,
.journey-next-card em {
    color: var(--gray-700);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.journey-progress-bar {
    background: rgba(158, 27, 60, 0.12);
    border-radius: 999px;
    height: 0.74rem;
    overflow: hidden;
}

.journey-progress-bar span {
    background: linear-gradient(90deg, var(--brand), #D49F23);
    border-radius: inherit;
    box-shadow: 0 0 22px rgba(158, 27, 60, 0.32);
    display: block;
    height: 100%;
}

.journey-world {
    background:
        radial-gradient(circle at 18% 72%, rgba(59, 130, 246, 0.14), transparent 13rem),
        radial-gradient(circle at 82% 16%, rgba(212, 159, 35, 0.18), transparent 13rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.94)),
        linear-gradient(90deg, rgba(221, 221, 221, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(221, 221, 221, 0.2) 1px, transparent 1px);
    background-size: auto, auto, auto, 3.2rem 3.2rem, 3.2rem 3.2rem;
    border-radius: 32px;
    min-height: 56rem;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.journey-world-top {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 4;
}

.journey-world-top div {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(221, 221, 221, 0.75);
    border-radius: 20px;
    display: grid;
    gap: 0.12rem;
    padding: 0.75rem;
}

.journey-world-top span {
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 950;
}

.journey-world-top strong {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
}

.journey-route {
    height: 100%;
    inset: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.journey-route path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.journey-route-shadow {
    display: none;
}

.journey-route-base {
    stroke: rgba(136, 136, 136, 0.54);
    stroke-dasharray: 2 14;
    stroke-width: 4;
}

.journey-route-progress {
    display: none;
}

.journey-map {
    inset: 0;
    position: absolute;
    z-index: 3;
}

.journey-node {
    --journey-accent: var(--brand);
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 0.58rem;
    grid-template-columns: auto minmax(0, 1fr);
    left: var(--x);
    min-width: 13.4rem;
    padding: 0;
    position: absolute;
    top: var(--y);
    transform: translate(-50%, -50%);
    transition: transform 240ms ease, filter 240ms ease;
}

.journey-node:hover {
    transform: translate(-50%, -52%);
}

.journey-node-icon {
    align-items: center;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.34), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--journey-accent) 82%, var(--white)), var(--journey-accent));
    border: 1px solid color-mix(in srgb, var(--journey-accent) 72%, var(--white));
    border-radius: 18px;
    box-shadow:
        0 14px 28px color-mix(in srgb, var(--journey-accent) 24%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
    color: var(--white);
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    width: 3.2rem;
}

.journey-node-icon svg,
.journey-task-card svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.journey-node-icon svg {
    height: 1.55rem;
    width: 1.55rem;
}

.journey-node-body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.journey-node-body small {
    color: var(--gray-500);
    font-size: 0.68rem;
    font-weight: 950;
}

.journey-node-body strong {
    color: var(--black);
    font-size: 0.92rem;
    font-weight: 950;
    line-height: 1.55;
}

.journey-node-body p {
    color: var(--gray-700);
    font-size: 0.7rem;
    line-height: 1.7;
}

.journey-node-body em {
    color: var(--journey-accent);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 950;
}

.journey-node-state {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--gray-700);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 950;
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0;
}

.journey-node.is-level {
    min-width: 12.6rem;
}

.journey-node.is-level .journey-node-icon {
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.38), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--journey-accent) 70%, var(--white)), var(--journey-accent) 76%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.16), transparent);
    border-color: color-mix(in srgb, var(--journey-accent) 62%, var(--white));
    border-radius: 24px;
    box-shadow:
        0 18px 36px color-mix(in srgb, var(--journey-accent) 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -10px 20px rgba(17, 17, 17, 0.08);
    height: 4.15rem;
    position: relative;
    width: 4.15rem;
}

.journey-node.is-level .journey-node-icon::after {
    background: rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    content: "";
    height: 0.42rem;
    left: 0.9rem;
    position: absolute;
    top: 0.72rem;
    width: 1.25rem;
}

.journey-node.is-level .journey-node-icon svg {
    height: 1.9rem;
    width: 1.9rem;
}

.journey-node.is-bronze {
    --journey-accent: #A76026;
}

.journey-node.is-silver {
    --journey-accent: #8A93A3;
}

.journey-node.is-gold {
    --journey-accent: #C8941C;
}

.journey-node.is-diamond {
    --journey-accent: #3B82F6;
}

.journey-node.is-loot .journey-node-icon {
    border-radius: 20px 20px 16px 16px;
    position: relative;
}

.journey-node.is-loot .journey-node-icon::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    content: "";
    height: 1px;
    inset: 0.8rem 0.45rem auto;
    position: absolute;
}

.journey-node.is-loot.is-completed {
    --journey-accent: #257A55;
}

.journey-node.is-completed .journey-node-state {
    color: var(--success);
}

.journey-node.is-active {
    animation: journeyFloat 3.8s ease-in-out infinite;
}

.journey-node.is-active .journey-node-state {
    color: var(--brand);
}

.journey-node.is-locked {
    filter: grayscale(0.4);
    opacity: 0.72;
}

.journey-node.is-locked .journey-node-icon::before {
    align-items: center;
    background: rgba(17, 17, 17, 0.62);
    border-radius: inherit;
    color: var(--white);
    content: "قفل";
    display: flex;
    font-size: 0.58rem;
    font-weight: 950;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.journey-avatar {
    align-items: center;
    animation: journeyPulse 1.9s ease-in-out infinite;
    background: var(--brand);
    border: 4px solid var(--white);
    border-radius: 999px;
    box-shadow:
        0 0 0 8px rgba(158, 27, 60, 0.14),
        0 0 34px rgba(158, 27, 60, 0.36);
    color: var(--white);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 950;
    height: 2.75rem;
    justify-content: center;
    left: -1rem;
    position: absolute;
    top: -1.25rem;
    width: 2.75rem;
    z-index: 5;
}

.journey-particles {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.journey-particles i {
    animation: journeySparkle 4.8s ease-in-out infinite;
    background: rgba(212, 159, 35, 0.75);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(212, 159, 35, 0.44);
    height: 0.34rem;
    position: absolute;
    width: 0.34rem;
}

.journey-particles i:nth-child(1) { left: 18%; top: 24%; }
.journey-particles i:nth-child(2) { animation-delay: 0.7s; left: 72%; top: 18%; }
.journey-particles i:nth-child(3) { animation-delay: 1.4s; left: 44%; top: 52%; }
.journey-particles i:nth-child(4) { animation-delay: 2.1s; left: 82%; top: 76%; }
.journey-particles i:nth-child(5) { animation-delay: 2.8s; left: 10%; top: 70%; }

.journey-obstacles {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.journey-obstacle {
    display: block;
    position: absolute;
}

.journey-obstacle.is-rock {
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.48), transparent 32%),
        linear-gradient(145deg, rgba(137, 123, 104, 0.34), rgba(84, 78, 72, 0.18));
    border: 1px solid rgba(136, 136, 136, 0.18);
    border-radius: 48% 52% 42% 58% / 45% 38% 62% 55%;
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
    filter: blur(0.25px);
}

.journey-obstacle.is-crystal {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 34%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(158, 27, 60, 0.16));
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.14);
    clip-path: polygon(50% 0, 88% 28%, 74% 100%, 26% 100%, 12% 28%);
    filter: blur(0.35px);
}

.journey-obstacle.is-gate {
    border: 2px solid rgba(158, 27, 60, 0.18);
    border-bottom: 0;
    border-radius: 999px 999px 18px 18px;
    box-shadow:
        0 18px 38px rgba(158, 27, 60, 0.08),
        inset 0 0 22px rgba(255, 255, 255, 0.42);
    filter: blur(0.35px);
}

.journey-obstacle.is-ridge {
    background:
        repeating-linear-gradient(90deg, rgba(136, 136, 136, 0.24) 0 0.5rem, transparent 0.5rem 0.9rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(136, 136, 136, 0.08));
    border-radius: 999px;
    filter: blur(0.45px);
}

.journey-obstacle.is-mist {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), rgba(221, 221, 221, 0.28), transparent);
    border-radius: 999px;
    filter: blur(9px);
    opacity: 0.8;
}

.journey-obstacle.is-island {
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56), transparent 34%),
        linear-gradient(145deg, rgba(216, 161, 38, 0.18), rgba(158, 27, 60, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(221, 221, 221, 0.16));
    border: 1px solid rgba(221, 221, 221, 0.32);
    border-radius: 58% 42% 52% 48% / 44% 55% 45% 56%;
    box-shadow: 0 22px 48px rgba(17, 17, 17, 0.07);
    filter: blur(0.55px);
}

.journey-obstacle.is-glow {
    background: radial-gradient(circle, rgba(158, 27, 60, 0.18), rgba(216, 161, 38, 0.1) 38%, transparent 68%);
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.85;
}

.journey-obstacle.is-thorn {
    background:
        linear-gradient(135deg, transparent 0 22%, rgba(158, 27, 60, 0.18) 22% 32%, transparent 32% 100%),
        linear-gradient(45deg, transparent 0 35%, rgba(136, 136, 136, 0.22) 35% 46%, transparent 46% 100%);
    border-radius: 999px;
    filter: blur(0.25px);
    opacity: 0.72;
}

.journey-obstacle.is-ring {
    border: 2px dashed rgba(136, 136, 136, 0.24);
    border-radius: 999px;
    filter: blur(0.35px);
}

.is-rock-one {
    height: 4.6rem;
    left: 18%;
    top: 18%;
    transform: rotate(-14deg);
    width: 6rem;
}

.is-rock-two {
    height: 5.2rem;
    right: 10%;
    top: 64%;
    transform: rotate(16deg);
    width: 7.2rem;
}

.is-crystal-one {
    height: 4.8rem;
    right: 20%;
    top: 27%;
    transform: rotate(12deg);
    width: 3.2rem;
}

.is-crystal-two {
    height: 4.2rem;
    left: 14%;
    top: 72%;
    transform: rotate(-18deg);
    width: 2.8rem;
}

.is-gate-one {
    height: 7.2rem;
    left: 42%;
    top: 43%;
    transform: rotate(-7deg);
    width: 8.4rem;
}

.is-ridge-one {
    height: 1.25rem;
    right: 26%;
    top: 78%;
    transform: rotate(9deg);
    width: 11rem;
}

.is-mist-one {
    height: 3.2rem;
    left: 9%;
    top: 33%;
    transform: rotate(-8deg);
    width: 18rem;
}

.is-mist-two {
    height: 3.4rem;
    right: 6%;
    top: 56%;
    transform: rotate(10deg);
    width: 20rem;
}

.is-mist-three {
    height: 3rem;
    left: 30%;
    top: 86%;
    transform: rotate(-4deg);
    width: 22rem;
}

.is-island-one {
    height: 7.8rem;
    left: 8%;
    top: 45%;
    transform: rotate(13deg);
    width: 11rem;
}

.is-island-two {
    height: 8.5rem;
    right: 13%;
    top: 8%;
    transform: rotate(-11deg);
    width: 12.5rem;
}

.is-glow-one {
    height: 15rem;
    left: 22%;
    top: 58%;
    width: 16rem;
}

.is-glow-two {
    height: 14rem;
    right: 8%;
    top: 34%;
    width: 15rem;
}

.is-thorn-one {
    height: 5rem;
    right: 36%;
    top: 18%;
    transform: rotate(-18deg);
    width: 8rem;
}

.is-thorn-two {
    height: 4.8rem;
    left: 34%;
    top: 67%;
    transform: rotate(22deg);
    width: 8.5rem;
}

.is-ring-one {
    height: 5rem;
    left: 30%;
    top: 12%;
    transform: rotate(18deg);
    width: 7rem;
}

.is-ring-two {
    height: 5.8rem;
    right: 31%;
    top: 70%;
    transform: rotate(-14deg);
    width: 8rem;
}

.is-ridge-two {
    height: 1.15rem;
    left: 20%;
    top: 39%;
    transform: rotate(-11deg);
    width: 9rem;
}

.journey-task-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.journey-task-head {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.journey-task-head h2 {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1.65;
}

.journey-task-head > span {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 950;
    padding: 0.42rem 0.72rem;
}

.journey-task-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-task-card {
    align-items: start;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.journey-task-card:hover {
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.08);
    transform: translateY(-2px);
}

.journey-task-card > span {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.journey-task-card svg {
    height: 1.25rem;
    width: 1.25rem;
}

.journey-task-card strong {
    color: var(--black);
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1.7;
}

.journey-task-card small {
    color: var(--gray-700);
    display: block;
    font-size: 0.74rem;
    line-height: 1.75;
    margin-top: 0.12rem;
}

.journey-task-card em {
    color: var(--brand);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 950;
}

.journey-task-card.is-done {
    background: rgba(37, 122, 85, 0.08);
    border-color: rgba(37, 122, 85, 0.18);
}

.journey-task-card.is-done > span,
.journey-task-card.is-done em {
    color: var(--success);
}

@keyframes journeyPulse {
    0%, 100% {
        box-shadow:
            0 0 0 8px rgba(158, 27, 60, 0.14),
            0 0 34px rgba(158, 27, 60, 0.36);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow:
            0 0 0 13px rgba(158, 27, 60, 0.06),
            0 0 44px rgba(158, 27, 60, 0.42);
        transform: translateY(-3px) scale(1.04);
    }
}

@keyframes journeyFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -0.3rem;
    }
}

@keyframes journeySparkle {
    0%, 100% {
        opacity: 0.22;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-0.8rem) scale(1.15);
    }
}

.level-orb {
    align-items: center;
    background: var(--brand);
    border-radius: 999px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 950;
    height: 5rem;
    justify-content: center;
    width: 5rem;
}

.profile-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.1rem;
}

.profile-hero > div:nth-child(2) {
    min-width: 0;
}

.profile-avatar {
    box-shadow: var(--shadow-brand);
    font-size: 1.5rem;
    font-weight: 950;
    height: 4.2rem;
    width: 4.2rem;
}

.profile-hero h1,
.empty-state h1,
.success-screen h1 {
    color: var(--black);
    font-size: clamp(1.32rem, 4vw, 1.9rem);
    font-weight: 950;
    line-height: 1.5;
}

.settings-list {
    display: grid;
    gap: 0.75rem;
}

.settings-list a,
.settings-list label {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    font-weight: 850;
    justify-content: space-between;
    padding: 1rem;
}

.services-screen {
    display: grid;
    gap: 1rem;
}

.services-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.92)),
        radial-gradient(circle at 8% 0%, rgba(158, 27, 60, 0.13), transparent 16rem);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.34fr);
    justify-content: space-between;
    overflow: hidden;
    padding: 1.2rem;
}

.services-hero h1 {
    color: var(--black);
    font-size: clamp(1.25rem, 3.8vw, 1.85rem);
    font-weight: 950;
    line-height: 1.55;
}

.services-hero span:not(.services-hero-icon) {
    color: var(--gray-700);
    display: block;
    font-size: 0.88rem;
    line-height: 1.9;
    margin-top: 0.25rem;
    max-width: 44rem;
}

.services-hero-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.services-hero-panel strong {
    color: var(--brand);
    font-size: 1.06rem;
    font-weight: 950;
}

.services-hero-panel span {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.8;
}

.services-hero-panel em {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 950;
    justify-self: start;
    margin-top: 0.25rem;
    padding: 0.35rem 0.65rem;
}

.services-hero-icon,
.service-card-icon,
.service-success > span {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.services-hero-icon {
    background: var(--brand);
    border-radius: 24px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    flex: 0 0 auto;
    height: 4.5rem;
    width: 4.5rem;
}

.services-hero-icon svg {
    height: 2rem;
    width: 2rem;
}

.service-type-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-content-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.service-showcase {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(221, 221, 221, 0.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.service-section-title {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.service-section-title h2,
.service-form-heading h2 {
    color: var(--black);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.6;
}

.service-section-title > span {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 950;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
}

.service-type-card {
    --service-accent: var(--brand);
    --service-soft: rgba(158, 27, 60, 0.09);
    --service-ink: var(--black);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.92)),
        linear-gradient(160deg, var(--service-soft), transparent 62%);
    border: 1px solid rgba(221, 221, 221, 0.82);
    border-radius: 26px;
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.07);
    color: var(--service-ink);
    cursor: pointer;
    display: grid;
    gap: 0.85rem;
    min-height: 14rem;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    text-align: right;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.service-type-card::before {
    background: var(--service-accent);
    border-radius: 999px;
    content: "";
    height: 0.35rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.4rem;
}

.service-type-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
    content: "";
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 34%;
}

.service-type-card:hover,
.service-type-card.is-selected {
    border-color: color-mix(in srgb, var(--service-accent) 30%, var(--gray-200));
    box-shadow: 0 22px 46px rgba(17, 17, 17, 0.1);
    transform: translateY(-2px);
}

.service-type-card.is-selected {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.9)),
        linear-gradient(160deg, color-mix(in srgb, var(--service-accent) 18%, transparent), transparent 64%);
}

.service-type-card.is-carpet {
    --service-accent: #9E1B3C;
    --service-soft: rgba(158, 27, 60, 0.1);
}

.service-type-card.is-sofa {
    --service-accent: #2563EB;
    --service-soft: rgba(37, 99, 235, 0.09);
}

.service-type-card.is-design {
    --service-accent: #7C3AED;
    --service-soft: rgba(124, 58, 237, 0.1);
}

.service-type-card.is-bundle {
    --service-accent: #257A55;
    --service-soft: rgba(37, 122, 85, 0.1);
}

.service-type-card.is-exchange {
    --service-accent: #D49F23;
    --service-soft: rgba(212, 159, 35, 0.13);
}

.service-card-number {
    color: color-mix(in srgb, var(--service-accent) 60%, var(--gray-300));
    font-size: 0.72rem;
    font-weight: 950;
    justify-self: end;
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.service-card-icon {
    background: var(--white);
    border: 1px solid color-mix(in srgb, var(--service-accent) 18%, var(--gray-200));
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.06);
    color: var(--service-accent);
    height: 3.3rem;
    margin-top: 0.55rem;
    width: 3.3rem;
}

.service-type-card svg {
    height: 1.58rem;
    width: 1.58rem;
}

.service-card-copy {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.service-card-copy strong {
    color: var(--black);
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1.65;
}

.service-card-copy small {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.9;
}

.service-type-card em {
    align-self: end;
    background: color-mix(in srgb, var(--service-accent) 11%, var(--white));
    border-radius: 999px;
    color: var(--service-accent);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 950;
    justify-self: start;
    padding: 0.35rem 0.65rem;
}

.service-request-form {
    display: grid;
    gap: 1rem;
    align-self: start;
    padding: 1rem;
}

.service-form-heading {
    display: grid;
    gap: 0.15rem;
}

.service-form-heading span {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.85;
}

.form-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.form-grid label > span {
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 900;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.field-validation-error,
.validation-message {
    color: var(--danger);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.8;
}

.service-form-footer {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem;
}

.service-form-footer div {
    display: grid;
    gap: 0.15rem;
}

.service-form-footer strong {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 950;
}

.service-form-footer span {
    color: var(--gray-700);
    font-size: 0.78rem;
    line-height: 1.8;
}

.service-success {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    padding: 1.25rem;
    text-align: center;
}

.service-success > span {
    background: rgba(37, 122, 85, 0.1);
    border-radius: 999px;
    color: var(--success);
    height: 4rem;
    width: 4rem;
}

.service-success svg {
    height: 2rem;
    width: 2rem;
}

.service-success h2 {
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.6;
}

.service-success p {
    color: var(--gray-700);
    font-size: 0.86rem;
    line-height: 1.9;
    max-width: 34rem;
}

.notification-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.notification-card.unread {
    border-color: rgba(158, 27, 60, 0.22);
    box-shadow: var(--shadow-brand);
}

.payment-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.state-banner.error {
    background: rgba(180, 35, 63, 0.1);
    color: var(--danger);
}

.state-banner.success {
    background: rgba(37, 122, 85, 0.1);
    color: var(--success);
}

.survey-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.rating-question {
    border: 0;
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
}

.rating-question + .rating-question {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.rating-question legend {
    color: var(--black);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.8;
    padding: 0;
}

.rating-scale {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rating-button {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 950;
    min-height: 3rem;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.rating-button:hover,
.rating-button.is-selected {
    background: var(--brand);
    color: var(--white);
    transform: scale(1.03);
}

.rating-hint {
    color: var(--gray-500);
    display: flex;
    font-size: 0.74rem;
    justify-content: space-between;
}

.textarea-control {
    min-height: 8rem;
    resize: vertical;
}

.amount-chip {
    cursor: pointer;
    text-align: center;
}

.amount-chip.active {
    background: var(--brand-soft);
    border-color: rgba(158, 27, 60, 0.24);
    color: var(--brand);
}

.empty-state {
    align-items: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.floating-tabbar {
    align-items: end;
    background: rgba(250, 250, 250, 0.96);
    backdrop-filter: blur(18px);
    border: 0;
    border-radius: 0;
    bottom: 0 !important;
    box-shadow: 0 -12px 34px rgba(17, 17, 17, 0.08);
    display: none;
    gap: 0.2rem;
    grid-template-columns: repeat(5, 1fr);
    left: 0 !important;
    padding: 0.5rem 0.1rem max(0.85rem, calc(0.5rem + env(safe-area-inset-bottom)));
    position: fixed !important;
    right: 0 !important;
    width: 100%;
    z-index: 20;
}

.floating-tabbar a {
    align-items: center;
    border-radius: 24px;
    color: var(--gray-500);
    display: grid;
    font-weight: 900;
    gap: 0.15rem;
    justify-items: center;
    min-height: 3.45rem;
    transition: background 260ms ease, color 260ms ease, transform 260ms ease;
}

.floating-tabbar a.active {
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px rgba(158, 27, 60, 0.06);
    color: var(--brand);
    transform: translateY(-2px);
}

.floating-tabbar small {
    font-size: 0.68rem;
}

.floating-tabbar span {
    display: inline-flex;
}

.floating-tabbar svg {
    height: 1.34rem;
    stroke-width: 1.7;
    width: 1.34rem;
}

.skeleton-stack {
    display: grid;
    gap: 1rem;
}

.skeleton-stack div {
    animation: pulse 1.3s ease-in-out infinite;
    background: linear-gradient(90deg, var(--gray-100), var(--white), var(--gray-100));
    border-radius: var(--radius-xl);
    height: 8rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (max-width: 980px) {
    html {
        font-size: 14px;
    }

    .app-shell {
        display: block;
    }

    .app-sidebar {
        display: none;
    }

    .app-content {
        padding: 1rem 0.85rem calc(8.4rem + env(safe-area-inset-bottom));
    }

    .glass-header {
        margin: -1rem -0.1rem 1rem;
        padding: 0.75rem;
    }

    .profile-chip span {
        display: none;
    }

    .profile-chip {
        border-radius: 999px;
        gap: 0;
        height: 2.7rem;
        justify-content: center;
        padding: 0;
        width: 2.7rem;
    }

    .profile-chip strong {
        background: transparent;
        color: var(--brand);
        height: auto;
        width: auto;
    }

    .floating-tabbar {
        display: grid;
    }

    .bento-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .journey-hero {
        grid-template-columns: 1fr;
    }

    .rewards-ticket-hero {
        gap: 0.65rem;
        grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr);
    }

    .journey-world {
        min-height: auto;
        padding: 0.85rem;
    }

    .journey-world-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .journey-route,
    .journey-particles {
        display: none;
    }

    .journey-obstacles {
        opacity: 0.82;
    }

    .is-mist-one {
        height: 2.7rem;
        left: -10%;
        top: 18%;
        width: 15rem;
    }

    .is-mist-two {
        height: 2.8rem;
        right: -14%;
        top: 54%;
        width: 16rem;
    }

    .is-rock-one {
        height: 3.4rem;
        left: 4%;
        top: 31%;
        width: 4.6rem;
    }

    .is-rock-two {
        height: 3.6rem;
        right: 3%;
        top: 72%;
        width: 5rem;
    }

    .is-crystal-one {
        height: 3.5rem;
        right: 6%;
        top: 23%;
        width: 2.25rem;
    }

    .is-crystal-two {
        height: 3.2rem;
        left: 5%;
        top: 63%;
        width: 2.1rem;
    }

    .is-gate-one {
        height: 5.4rem;
        left: 34%;
        top: 44%;
        width: 6.2rem;
    }

    .is-ridge-one {
        height: 1rem;
        right: 15%;
        top: 82%;
        width: 8rem;
    }

    .is-mist-three {
        height: 2.4rem;
        left: 18%;
        top: 88%;
        width: 14rem;
    }

    .is-island-one {
        height: 5.8rem;
        left: -2%;
        top: 41%;
        width: 7.8rem;
    }

    .is-island-two {
        height: 5.8rem;
        right: -6%;
        top: 10%;
        width: 8.5rem;
    }

    .is-glow-one {
        height: 10rem;
        left: 10%;
        top: 57%;
        width: 11rem;
    }

    .is-glow-two {
        height: 9.5rem;
        right: -6%;
        top: 33%;
        width: 11rem;
    }

    .is-thorn-one {
        height: 3.6rem;
        right: 30%;
        top: 16%;
        width: 5.8rem;
    }

    .is-thorn-two {
        height: 3.5rem;
        left: 22%;
        top: 68%;
        width: 6rem;
    }

    .is-ring-one {
        height: 3.6rem;
        left: 33%;
        top: 25%;
        width: 5rem;
    }

    .is-ring-two {
        height: 4rem;
        right: 22%;
        top: 76%;
        width: 5.5rem;
    }

    .is-ridge-two {
        height: 0.9rem;
        left: 10%;
        top: 48%;
        width: 6.5rem;
    }

    .journey-map {
        display: grid;
        gap: 5.25rem;
        margin-top: 1.25rem;
        padding: 0.9rem 0 0.75rem;
        position: relative;
    }

    .journey-map::before {
        display: none;
    }

    .journey-node {
        grid-template-columns: 1fr;
        justify-items: center;
        left: auto;
        min-width: 0;
        position: relative;
        text-align: center;
        top: auto;
        transform: none;
        width: min(62%, 16.5rem);
    }

    .journey-node:hover {
        transform: translateY(-1px);
    }

    .journey-node:nth-child(odd) {
        justify-self: left;
        margin-left: -1.4rem;
        margin-right: auto;
    }

    .journey-node:nth-child(even) {
        justify-self: right;
        margin-left: auto;
        margin-right: -1.4rem;
    }

    .journey-node::before {
        content: none;
        display: none;
    }

    .journey-node:not(:last-child)::after {
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        border: 0;
        box-shadow: none;
        content: "";
        height: 5rem;
        position: absolute;
        width: clamp(9rem, 45vw, 11.25rem);
        z-index: 0;
    }

    .journey-node:not(:first-child)::before {
        display: none;
    }

    .journey-node:not(:last-child)::after {
        bottom: auto;
        top: calc(100% + 0.62rem);
    }

    .journey-node:nth-child(odd):not(:last-child)::after {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6 C92 6 92 74 176 74' fill='none' stroke='%23888888' stroke-opacity='.62' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='1 7'/%3E%3C/svg%3E");
        left: 52%;
    }

    .journey-node:nth-child(even):not(:last-child)::after {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M176 6 C88 6 88 74 4 74' fill='none' stroke='%23888888' stroke-opacity='.62' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='1 7'/%3E%3C/svg%3E");
        right: 52%;
    }

    .journey-node-body {
        justify-items: center;
    }

    .journey-node-state {
        justify-self: center;
    }

    .journey-avatar {
        left: 0.6rem;
        top: -1rem;
    }

    .journey-task-head {
        align-items: flex-start;
        display: grid;
    }

    .journey-task-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .hero-card {
        align-items: stretch;
        display: grid;
        padding: 1rem;
    }

    .hero-balance,
    .hero-cta {
        width: 100%;
    }

    .home-pass-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .home-pass-metrics {
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    }

    .home-pass-balance,
    .home-pass-wallet {
        min-height: 9.2rem;
    }

    .home-pass-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-pass-actions a {
        align-content: center;
        display: grid;
        gap: 0.35rem;
        justify-items: center;
        min-height: 4.65rem;
        padding: 0.65rem 0.35rem;
        text-align: center;
    }

    .home-insight-grid {
        grid-template-columns: 1fr;
    }

    .home-service-banner {
        min-height: 18rem;
    }

    .home-service-copy {
        padding: 1.7rem 0.1rem 0;
    }

    .home-service-banner a {
        justify-self: stretch;
    }

    .home-reward-focus,
    .home-quick-panel {
        grid-column: 1 / -1;
    }

    .orders-header {
        display: none;
    }

    .orders-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .orders-section-title > span {
        align-self: flex-start;
    }

    .order-summary-row {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding: 1rem;
        position: relative;
    }

    .order-summary-row span:not(.order-arrow),
    .order-summary-row strong {
        align-items: center;
        border-bottom: 1px solid var(--gray-200);
        display: flex;
        grid-column: 1 / -1;
        justify-content: space-between;
        min-height: 2.7rem;
    }

    .order-summary-row .order-status-badge {
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .order-summary-row .order-status-badge.is-registered {
        color: #a16207;
    }

    .order-summary-row .order-status-badge.is-supplying {
        color: #6d28d9;
    }

    .order-summary-row .order-status-badge.is-awaiting-delivery {
        color: #2563eb;
    }

    .order-summary-row .order-status-badge.is-delivered {
        background: transparent;
        color: var(--success);
    }

    .order-summary-row span:not(.order-arrow)::before,
    .order-summary-row strong::before,
    .order-item-row span::before,
    .order-item-row strong::before {
        color: var(--gray-500);
        content: attr(data-label);
        font-size: 0.74rem;
        font-weight: 900;
    }

    .order-arrow {
        left: 1rem;
        position: absolute;
        top: 1rem;
    }

    .order-details-header {
        display: none;
    }

    .order-item-row {
        grid-template-columns: 1fr;
    }

    .order-item-row strong,
    .order-item-row span {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .orders-unified-list {
        gap: 0.85rem;
    }

    .order-card-v2 {
        border-radius: var(--radius-lg);
        gap: 0.62rem;
        padding: 0.85rem;
    }

    .order-card-head {
        align-items: center;
        flex-direction: row;
        gap: 0;
        min-height: 2.35rem;
        padding-left: 6.6rem;
    }

    .order-state-chip {
        font-size: 0.72rem;
        left: 0.85rem;
        padding: 0.38rem 0.62rem;
        top: 0.85rem;
    }

    .order-meta-grid {
        gap: 0.48rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-meta-grid div {
        border-radius: 16px;
        padding: 0.7rem;
    }

    .order-meta-grid dd {
        font-size: 0.82rem;
    }

    .order-flow-panel {
        border-radius: 20px;
        padding: 0.85rem;
    }

    .order-flow-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .order-flow-step {
        gap: 0.65rem;
        grid-template-columns: 2.55rem minmax(0, 1fr);
        min-height: 4.2rem;
    }

    .order-flow-step::before {
        right: 1.25rem;
        top: 2.55rem;
    }

    .order-flow-icon {
        border-radius: 16px;
        height: 2.55rem;
        width: 2.55rem;
    }

    .order-flow-icon svg {
        height: 1.22rem;
        width: 1.22rem;
    }

    .order-flow-copy strong {
        font-size: 0.86rem;
    }

    .order-products-toggle {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .installment-dashboard,
    .installment-payment-layout {
        grid-template-columns: 1fr;
    }

    .installment-metric-card {
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .installment-month-card header,
    .payment-selection-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .installment-row {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: auto;
    }

    .installment-row em {
        grid-column: 2;
    }

    .payment-selection-panel {
        position: static;
    }

    .installments-screen {
        border-radius: var(--radius-lg);
        margin-bottom: 5rem;
        padding: 0.95rem;
    }

    .loan-summary-card {
        padding-bottom: 0.9rem;
    }

    .loan-month-group {
        padding-top: 0.55rem;
    }

    .installment-floating-popup {
        bottom: calc(5.8rem + env(safe-area-inset-bottom));
        width: calc(100vw - 1.5rem);
    }

    .services-hero,
    .service-content-layout {
        grid-template-columns: 1fr;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .service-form-footer {
        align-items: stretch;
        display: grid;
    }

    .service-form-footer .btn-primary {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        align-items: stretch;
        padding: 0.75rem;
    }

    .auth-card {
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .auth-heading h1,
    .page-title h1,
    .hero-card h1,
    .profile-hero h1,
    .empty-state h1,
    .success-screen h1 {
        font-size: 1.36rem;
    }

    .mobile-brand img {
        max-width: 7.8rem;
    }

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

    .order-card-head {
        padding-left: 6.25rem;
    }

    .order-state-chip {
        max-width: 5.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-products-toggle {
        gap: 0.45rem;
        padding: 0.7rem;
    }

    .order-flow-copy small {
        font-size: 0.73rem;
    }

    .home-pass-copy h1 {
        font-size: 1.32rem;
    }

    .home-pass-metrics {
        gap: 0.65rem;
        grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr);
    }

    .home-pass-balance,
    .home-pass-wallet {
        min-height: 8.4rem;
    }

    .home-pass-balance .ticket-content strong {
        font-size: 1.55rem;
    }

    .ticket-content {
        margin-right: 0.58rem;
        padding: 0.85rem 0.86rem 0.85rem 1.2rem;
        transform: translateX(-0.14rem);
    }

    .ticket-code {
        margin-left: 1.28rem;
        padding: 0.58rem 0.28rem;
    }

    .home-pass-wallet strong {
        font-size: 1.02rem;
    }

    .home-insight-grid {
        grid-template-columns: 1fr;
    }

    .home-stat-card {
        min-height: 5.6rem;
    }

    .home-service-banner {
        border-radius: var(--radius-lg);
        min-height: 16.5rem;
        padding: 0.9rem;
    }

    .home-service-banner::after {
        right: 0.9rem;
        top: 0.9rem;
        width: 3.2rem;
    }

    .home-service-banner strong {
        font-size: 1.18rem;
    }

    .home-service-banner p {
        font-size: 0.78rem;
        line-height: 1.75;
    }

    .home-reward-focus {
        min-height: 9.4rem;
    }

    .home-reward-focus a {
        justify-self: stretch;
    }

    .home-quick-panel a {
        min-height: 3.7rem;
    }

    .journey-hero,
    .journey-world,
    .journey-task-panel {
        border-radius: var(--radius-lg);
    }

    .journey-hero,
    .journey-task-panel {
        padding: 0.9rem;
    }

    .rewards-gold-ticket {
        min-height: 9.4rem;
        width: 100%;
    }

    .rewards-next-stage-card {
        border-radius: 22px;
        gap: 0.42rem;
        min-height: 9.4rem;
        padding: 0.78rem 0.54rem;
    }

    .rewards-next-stage-icon {
        border-radius: 15px;
        height: 2.35rem;
        width: 2.35rem;
    }

    .rewards-next-stage-card strong {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .rewards-next-stage-card small,
    .rewards-next-stage-card em {
        font-size: 0.62rem;
        line-height: 1.55;
    }

    .rewards-next-stage-card .journey-next-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.42rem;
    }

    .journey-world {
        padding: 0.85rem;
    }

    .journey-world-top {
        gap: 0.55rem;
    }

    .journey-world-top div {
        border-radius: 16px;
        padding: 0.62rem;
    }

    .journey-world-top strong {
        font-size: 0.86rem;
    }

    .journey-node {
        border-radius: 20px;
        gap: 0.55rem;
        padding: 0.72rem;
    }

    .journey-node-icon {
        border-radius: 16px;
        height: 2.75rem;
        width: 2.75rem;
    }

    .journey-node.is-level .journey-node-icon {
        border-radius: 22px;
        height: 3.8rem;
        width: 3.8rem;
    }

    .journey-node.is-level .journey-node-icon svg {
        height: 1.75rem;
        width: 1.75rem;
    }

    .journey-node-body strong {
        font-size: 0.86rem;
    }

    .journey-node-body p,
    .journey-node-body em {
        font-size: 0.68rem;
    }

    .journey-task-head > span {
        justify-self: start;
    }

    .journey-task-grid {
        grid-template-columns: 1fr;
    }

    .services-hero {
        align-items: flex-start;
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .services-hero-panel {
        width: 100%;
    }

    .services-hero-icon {
        border-radius: 20px;
        height: 3.6rem;
        width: 3.6rem;
    }

    .services-hero-icon svg {
        height: 1.7rem;
        width: 1.7rem;
    }

    .service-type-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-showcase,
    .service-request-form {
        border-radius: var(--radius-lg);
        padding: 0.9rem;
    }

    .service-section-title {
        align-items: flex-start;
        display: grid;
    }

    .service-type-card {
        border-radius: 22px;
        gap: 0.55rem;
        min-height: 11.4rem;
        padding: 0.78rem;
    }

    .service-type-card::before {
        height: 0.28rem;
        right: 0.78rem;
        top: 0.78rem;
        width: 2rem;
    }

    .service-card-icon {
        border-radius: 17px;
        height: 2.8rem;
        margin-top: 0.48rem;
        width: 2.8rem;
    }

    .service-type-card svg {
        height: 1.35rem;
        width: 1.35rem;
    }

    .service-card-copy strong {
        font-size: 0.9rem;
    }

    .service-card-copy small {
        font-size: 0.72rem;
        line-height: 1.75;
    }

    .service-type-card em {
        font-size: 0.66rem;
        padding: 0.3rem 0.5rem;
    }

    .service-card-number {
        left: 0.78rem;
        top: 0.78rem;
    }
}

/* Customer inbox */
.inbox-page {
    display: grid;
    gap: 1rem;
}

.inbox-hero {
    align-items: center;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.94)),
        linear-gradient(135deg, rgba(158, 27, 60, 0.1), transparent 55%);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    min-height: 10rem;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
}

.inbox-hero::after {
    border: 1px solid rgba(158, 27, 60, 0.1);
    border-radius: 30px;
    content: "";
    height: 7rem;
    left: -2rem;
    position: absolute;
    top: -3rem;
    transform: rotate(18deg);
    width: 10rem;
}

.inbox-hero-copy {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.inbox-hero-icon {
    align-items: center;
    background: var(--brand);
    border-radius: 22px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    display: inline-flex;
    flex: 0 0 auto;
    height: 4.5rem;
    justify-content: center;
    transform: rotate(-4deg);
    width: 4.5rem;
}

.inbox-hero-icon svg {
    height: 2.15rem;
    width: 2.15rem;
}

.inbox-hero-copy > div {
    display: grid;
    gap: 0.2rem;
}

.inbox-hero h1 {
    color: var(--black);
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    font-weight: 950;
    line-height: 1.55;
}

.inbox-hero-copy > div > p:last-child {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.85;
}

.inbox-unread-counter {
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(158, 27, 60, 0.12);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    min-width: 12rem;
    padding: 0.8rem;
    position: relative;
    z-index: 1;
}

.inbox-unread-counter > span {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 17px;
    color: var(--brand);
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 950;
    height: 3.4rem;
    justify-content: center;
    width: 3.4rem;
}

.inbox-unread-counter > div {
    display: grid;
    gap: 0.1rem;
}

.inbox-unread-counter strong {
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 950;
}

.inbox-unread-counter small {
    color: var(--gray-500);
    font-size: 0.67rem;
    line-height: 1.7;
}

.inbox-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.inbox-filter {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
}

.inbox-filter button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 14px;
    color: var(--gray-700);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0.45rem 0.8rem;
    transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.inbox-filter button span {
    align-items: center;
    background: var(--gray-200);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.65rem;
    height: 1.35rem;
    justify-content: center;
    min-width: 1.35rem;
    padding-inline: 0.3rem;
}

.inbox-filter button.is-active {
    background: var(--white);
    box-shadow: 0 7px 18px rgba(17, 17, 17, 0.07);
    color: var(--brand);
}

.inbox-filter button.is-active span {
    background: var(--brand-soft);
}

.inbox-read-all {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 950;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.6rem;
}

.inbox-read-all svg {
    height: 1.25rem;
    width: 1.25rem;
}

.inbox-stream {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.inbox-message {
    --message-accent: var(--brand);
    --message-soft: var(--brand-soft);
    background: var(--white);
    position: relative;
    transition: background 240ms ease;
}

.inbox-message + .inbox-message {
    border-top: 1px solid var(--gray-200);
}

.inbox-message.is-points {
    --message-accent: #2E7A5B;
    --message-soft: #ECF7F1;
}

.inbox-message.is-reward {
    --message-accent: #9E1B3C;
    --message-soft: #FFF1F5;
}

.inbox-message.is-installment {
    --message-accent: #336A9B;
    --message-soft: #EEF4FB;
}

.inbox-message.is-unread {
    background: linear-gradient(90deg, var(--message-soft), var(--white) 38%);
}

.inbox-message.is-unread::before {
    background: var(--message-accent);
    border-radius: 999px;
    content: "";
    height: calc(100% - 1.5rem);
    position: absolute;
    right: 0.4rem;
    top: 0.75rem;
    width: 0.22rem;
}

.inbox-message-summary {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem 1.15rem;
    text-align: right;
    width: 100%;
}

.inbox-message-icon {
    align-items: center;
    background: var(--message-soft);
    border-radius: 18px;
    color: var(--message-accent);
    display: inline-flex;
    height: 3.4rem;
    justify-content: center;
    width: 3.4rem;
}

.inbox-message-icon svg {
    height: 1.7rem;
    width: 1.7rem;
}

.inbox-message-copy {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.inbox-message-meta {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.inbox-message-meta small {
    color: var(--message-accent);
    font-size: 0.66rem;
    font-weight: 900;
}

.inbox-message-meta time {
    color: var(--gray-500);
    font-size: 0.64rem;
}

.inbox-message-copy strong {
    color: var(--black);
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.65;
}

.inbox-message-preview {
    color: var(--gray-700);
    font-size: 0.74rem;
    line-height: 1.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-message-status {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.inbox-message-status i {
    background: var(--message-accent);
    border: 3px solid var(--message-soft);
    border-radius: 999px;
    height: 0.75rem;
    width: 0.75rem;
}

.inbox-chevron {
    color: var(--gray-500);
    display: inline-flex;
    transition: transform 240ms ease;
}

.inbox-chevron svg {
    height: 1.25rem;
    width: 1.25rem;
}

.inbox-message.is-expanded .inbox-chevron {
    transform: rotate(-90deg);
}

.inbox-message-details {
    animation: inboxDetailsIn 240ms ease both;
    border-top: 1px dashed var(--gray-200);
    display: grid;
    gap: 0.7rem;
    margin: 0 5.45rem 0 1.15rem;
    padding: 0.9rem 0 1.1rem;
}

.inbox-message-details p {
    color: var(--gray-700);
    font-size: 0.78rem;
    line-height: 1.9;
}

.inbox-message-details a {
    align-items: center;
    color: var(--message-accent);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 950;
    gap: 0.45rem;
    justify-self: start;
    min-height: 2.2rem;
}

.inbox-message-details a svg {
    height: 1.1rem;
    width: 1.1rem;
}

.inbox-state {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    min-height: 18rem;
    padding: 1.5rem;
    text-align: center;
}

.inbox-state > span:not(.inbox-loading) {
    align-items: center;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--gray-700);
    display: inline-flex;
    height: 4rem;
    justify-content: center;
    margin-bottom: 0.3rem;
    width: 4rem;
}

.inbox-state > span svg {
    height: 2rem;
    width: 2rem;
}

.inbox-state strong {
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 950;
}

.inbox-state p {
    color: var(--gray-500);
    font-size: 0.75rem;
    line-height: 1.8;
}

.inbox-state .btn-secondary {
    margin-top: 0.6rem;
}

.inbox-state-error > span:not(.inbox-loading) {
    background: #FFF1F2;
    color: var(--danger);
}

.inbox-loading {
    animation: inboxSpin 800ms linear infinite;
    border: 3px solid var(--gray-200);
    border-radius: 999px;
    border-top-color: var(--brand);
    height: 2.7rem;
    margin-bottom: 0.5rem;
    width: 2.7rem;
}

@keyframes inboxDetailsIn {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes inboxSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    .inbox-hero {
        align-items: stretch;
        display: grid;
        gap: 1rem;
        min-height: auto;
        padding: 1rem;
    }

    .inbox-hero-icon {
        border-radius: 19px;
        height: 3.7rem;
        width: 3.7rem;
    }

    .inbox-hero-icon svg {
        height: 1.8rem;
        width: 1.8rem;
    }

    .inbox-unread-counter {
        min-width: 0;
        width: 100%;
    }

    .inbox-toolbar {
        align-items: stretch;
        gap: 0.4rem;
    }

    .inbox-filter {
        flex: 1 1 auto;
    }

    .inbox-filter button {
        flex: 1 1 auto;
        justify-content: center;
        padding-inline: 0.55rem;
    }
}

@media (max-width: 480px) {
    .inbox-page {
        gap: 0.8rem;
    }

    .inbox-hero {
        border-radius: 23px;
    }

    .inbox-hero-copy {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .inbox-hero h1 {
        font-size: 1.1rem;
    }

    .inbox-hero-copy > div > p:last-child {
        font-size: 0.72rem;
        line-height: 1.75;
    }

    .inbox-unread-counter > span {
        height: 3rem;
        width: 3rem;
    }

    .inbox-read-all {
        font-size: 0;
        justify-content: center;
        min-width: 2.8rem;
        padding: 0.4rem;
    }

    .inbox-read-all svg {
        height: 1.35rem;
        width: 1.35rem;
    }

    .inbox-stream,
    .inbox-state {
        border-radius: 22px;
    }

    .inbox-message-summary {
        align-items: start;
        gap: 0.65rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.85rem;
    }

    .inbox-message-icon {
        border-radius: 16px;
        height: 2.9rem;
        width: 2.9rem;
    }

    .inbox-message-icon svg {
        height: 1.45rem;
        width: 1.45rem;
    }

    .inbox-message-meta {
        align-items: start;
        display: grid;
        gap: 0.1rem;
    }

    .inbox-message-copy strong {
        font-size: 0.82rem;
    }

    .inbox-message-preview {
        font-size: 0.7rem;
    }

    .inbox-message-status {
        gap: 0.2rem;
        padding-top: 0.15rem;
    }

    .inbox-message-status i {
        border-width: 2px;
        height: 0.58rem;
        width: 0.58rem;
    }

    .inbox-chevron svg {
        height: 1rem;
        width: 1rem;
    }

    .inbox-message-details {
        margin: 0 4.4rem 0 0.85rem;
        padding-bottom: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inbox-message-details,
    .inbox-loading {
        animation: none;
    }
}

.inbox-hero.is-support .inbox-hero-icon {
    background: var(--black);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.16);
}

.inbox-hero.is-support .inbox-unread-counter {
    border-color: rgba(51, 106, 155, 0.16);
}

.inbox-hero.is-support .inbox-unread-counter > span {
    background: #EEF4FB;
    color: #336A9B;
}

.inbox-section-tabs {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.045);
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.35rem;
}

.inbox-section-tabs > button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 17px;
    color: var(--gray-500);
    cursor: pointer;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 4.2rem;
    padding: 0.6rem 0.75rem;
    text-align: right;
    transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.inbox-section-tabs > button:hover {
    background: var(--gray-50);
}

.inbox-section-tabs > button:focus-visible,
.support-new-button:focus-visible,
.support-category-options > button:focus-visible,
.support-ticket-summary:focus-visible,
.support-compose-panel > footer .btn-primary:focus-visible {
    outline: 2px solid rgba(158, 27, 60, 0.36);
    outline-offset: 2px;
}

.inbox-section-tabs > button.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.inbox-section-tabs > button > span:first-child {
    align-items: center;
    background: var(--gray-100);
    border-radius: 14px;
    display: inline-flex;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.inbox-section-tabs > button.is-active > span:first-child {
    background: var(--white);
    box-shadow: 0 7px 18px rgba(158, 27, 60, 0.08);
}

.inbox-section-tabs svg {
    fill: none;
    height: 1.35rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.35rem;
}

.inbox-section-tabs > button > span:nth-child(2) {
    display: grid;
    gap: 0.08rem;
}

.inbox-section-tabs strong {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 950;
}

.inbox-section-tabs small {
    color: var(--gray-500);
    font-size: 0.64rem;
    line-height: 1.6;
}

.inbox-section-tabs i {
    align-items: center;
    background: var(--gray-100);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 950;
    height: 1.65rem;
    justify-content: center;
    min-width: 1.65rem;
    padding-inline: 0.35rem;
}

.inbox-section-tabs .is-active i {
    background: var(--white);
}

.support-hub {
    display: grid;
    gap: 1rem;
}

.support-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.25rem 0.15rem;
}

.support-toolbar > div {
    display: grid;
    gap: 0.15rem;
}

.support-toolbar h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
}

.support-toolbar > div > span {
    color: var(--gray-500);
    font-size: 0.7rem;
    line-height: 1.75;
}

.support-new-button {
    align-items: center;
    background: var(--brand);
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 950;
    gap: 0.45rem;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 0.9rem;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.support-new-button:hover {
    box-shadow: 0 16px 32px rgba(158, 27, 60, 0.25);
    transform: translateY(-1px);
}

.support-new-button.is-open {
    background: var(--gray-100);
    box-shadow: none;
    color: var(--gray-700);
}

.support-new-button svg {
    fill: none;
    height: 1.2rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1.2rem;
}

.support-success {
    align-items: center;
    background: #ECF7F1;
    border: 1px solid rgba(46, 122, 91, 0.15);
    border-radius: 18px;
    color: #2E7A5B;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.75rem 0.9rem;
}

.support-success > span {
    align-items: center;
    background: var(--white);
    border-radius: 13px;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.support-success svg {
    fill: none;
    height: 1.3rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.3rem;
}

.support-success > div {
    display: grid;
    gap: 0.1rem;
}

.support-success strong {
    color: #1E5F45;
    font-size: 0.77rem;
    font-weight: 950;
}

.support-success small {
    font-size: 0.66rem;
}

.support-success small b {
    font-weight: 950;
    margin-inline-start: 0.2rem;
}

.support-success > button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #2E7A5B;
    cursor: pointer;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.support-compose-panel {
    animation: inboxDetailsIn 260ms ease both;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.support-compose-panel > header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.support-compose-icon {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    width: 3.2rem;
}

.support-compose-icon svg {
    fill: none;
    height: 1.55rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.55rem;
}

.support-compose-panel > header > div {
    display: grid;
    gap: 0.1rem;
}

.support-compose-panel h3 {
    color: var(--black);
    font-size: 0.92rem;
    font-weight: 950;
}

.support-category-options {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-category-options > button {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 17px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    gap: 0.55rem;
    min-height: 3.75rem;
    padding: 0.6rem;
    text-align: right;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.support-category-options > button:hover {
    transform: translateY(-1px);
}

.support-category-options > button.is-active {
    background: var(--brand-soft);
    border-color: rgba(158, 27, 60, 0.22);
    color: var(--brand);
}

.support-category-options > button > span {
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.support-category-options svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.25rem;
}

.support-category-options strong {
    color: inherit;
    font-size: 0.71rem;
    font-weight: 950;
}

.support-form-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-form-grid label {
    display: grid;
    gap: 0.38rem;
}

.support-form-grid label > span {
    color: var(--gray-700);
    font-size: 0.69rem;
    font-weight: 900;
}

.support-description-field {
    grid-column: 1 / -1;
}

.support-form-grid .form-control {
    border-radius: 15px;
    font-size: 0.75rem;
    min-height: 3.15rem;
}

.support-form-grid .textarea-control {
    min-height: 7.5rem;
    resize: vertical;
}

.support-form-grid .validation-message,
.support-field-error {
    color: var(--danger);
    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1.6;
}

.support-compose-panel > footer {
    align-items: center;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 0.9rem;
}

.support-compose-panel > footer > span {
    align-items: center;
    color: var(--gray-500);
    display: inline-flex;
    font-size: 0.63rem;
    gap: 0.35rem;
    line-height: 1.7;
}

.support-compose-panel > footer > span svg,
.support-compose-panel > footer .btn-primary svg {
    fill: none;
    flex: 0 0 auto;
    height: 1.1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.1rem;
}

.support-compose-panel > footer .btn-primary {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    gap: 0.45rem;
    justify-content: center;
    min-height: 3.15rem;
    width: auto;
}

.support-compose-panel > footer .btn-primary:disabled {
    cursor: wait;
    opacity: 0.7;
}

.support-ticket-stream {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.support-ticket {
    --ticket-accent: #B07C1B;
    --ticket-soft: #FFF8E6;
    background: var(--white);
}

.support-ticket + .support-ticket {
    border-top: 1px solid var(--gray-200);
}

.support-ticket.is-reviewing {
    --ticket-accent: #336A9B;
    --ticket-soft: #EEF4FB;
}

.support-ticket.is-answered {
    --ticket-accent: #2E7A5B;
    --ticket-soft: #ECF7F1;
}

.support-ticket.is-closed {
    --ticket-accent: var(--gray-700);
    --ticket-soft: var(--gray-100);
}

.support-ticket-summary {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem 1.1rem;
    text-align: right;
    width: 100%;
}

.support-ticket-icon {
    align-items: center;
    background: var(--ticket-soft);
    border-radius: 17px;
    color: var(--ticket-accent);
    display: inline-flex;
    height: 3.35rem;
    justify-content: center;
    width: 3.35rem;
}

.support-ticket-icon svg {
    fill: none;
    height: 1.6rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 1.6rem;
}

.support-ticket-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.support-ticket-meta {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.support-ticket-meta small {
    color: var(--ticket-accent);
    font-size: 0.64rem;
    font-weight: 950;
}

.support-ticket-meta time {
    color: var(--gray-500);
    font-size: 0.62rem;
}

.support-ticket-copy > strong {
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 950;
    line-height: 1.65;
}

.support-ticket-copy > span:last-child {
    align-items: center;
    color: var(--gray-500);
    display: flex;
    font-size: 0.62rem;
    gap: 0.4rem;
}

.support-ticket-copy > span:last-child b,
.support-ticket-copy > span:last-child i {
    font-style: normal;
    font-weight: 800;
}

.support-ticket-copy > span:last-child i::before {
    content: "·";
    margin-inline-end: 0.4rem;
}

.support-ticket-state {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.support-ticket-state em {
    background: var(--ticket-soft);
    border-radius: 999px;
    color: var(--ticket-accent);
    font-size: 0.63rem;
    font-style: normal;
    font-weight: 950;
    padding: 0.38rem 0.58rem;
    white-space: nowrap;
}

.support-ticket.is-expanded .inbox-chevron {
    transform: rotate(-90deg);
}

.support-ticket-details {
    animation: inboxDetailsIn 240ms ease both;
    border-top: 1px dashed var(--gray-200);
    display: grid;
    gap: 0.75rem;
    margin: 0 5.3rem 0 1.1rem;
    padding: 0.9rem 0 1.1rem;
}

.support-ticket-details > div:first-child {
    display: grid;
    gap: 0.22rem;
}

.support-ticket-details small {
    color: var(--gray-500);
    font-size: 0.63rem;
    font-weight: 900;
}

.support-ticket-details p {
    color: var(--gray-700);
    font-size: 0.75rem;
    line-height: 1.9;
}

.support-ticket-response {
    align-items: start;
    background: #ECF7F1;
    border-radius: 17px;
    color: #2E7A5B;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.8rem;
}

.support-ticket-response > span {
    align-items: center;
    background: var(--white);
    border-radius: 11px;
    display: inline-flex;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.support-ticket-response svg,
.support-ticket-waiting svg {
    fill: none;
    height: 1.15rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.15rem;
}

.support-ticket-response > div {
    display: grid;
    gap: 0.15rem;
}

.support-ticket-response small,
.support-ticket-response p {
    color: #235F48;
}

.support-ticket-waiting {
    align-items: center;
    background: var(--ticket-soft);
    border-radius: 15px;
    color: var(--ticket-accent);
    display: flex;
    font-size: 0.67rem;
    font-weight: 850;
    gap: 0.45rem;
    line-height: 1.7;
    padding: 0.7rem 0.8rem;
}

.support-empty-state > span:not(.inbox-loading) {
    background: #EEF4FB;
    color: #336A9B;
}

@media (max-width: 700px) {
    .support-category-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-toolbar {
        align-items: stretch;
        display: grid;
    }

    .support-new-button {
        justify-self: start;
    }

    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .support-description-field {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .inbox-section-tabs {
        border-radius: 19px;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .inbox-section-tabs > button {
        gap: 0.45rem;
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 3.65rem;
        padding: 0.45rem;
    }

    .inbox-section-tabs > button > span:first-child {
        border-radius: 12px;
        height: 2.45rem;
        width: 2.45rem;
    }

    .inbox-section-tabs > button > span:nth-child(2) small,
    .inbox-section-tabs i {
        display: none;
    }

    .inbox-section-tabs strong {
        font-size: 0.72rem;
    }

    .support-toolbar h2 {
        font-size: 0.92rem;
    }

    .support-new-button {
        width: 100%;
    }

    .support-compose-panel,
    .support-ticket-stream {
        border-radius: 22px;
    }

    .support-compose-panel {
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .support-category-options > button {
        border-radius: 15px;
        gap: 0.4rem;
        min-height: 3.35rem;
        padding: 0.45rem;
    }

    .support-category-options > button > span {
        border-radius: 10px;
        height: 2.1rem;
        width: 2.1rem;
    }

    .support-category-options strong {
        font-size: 0.66rem;
    }

    .support-compose-panel > footer {
        align-items: stretch;
        display: grid;
    }

    .support-compose-panel > footer .btn-primary {
        width: 100%;
    }

    .support-ticket-summary {
        align-items: start;
        gap: 0.55rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.8rem;
    }

    .support-ticket-icon {
        border-radius: 15px;
        height: 2.8rem;
        width: 2.8rem;
    }

    .support-ticket-icon svg {
        height: 1.35rem;
        width: 1.35rem;
    }

    .support-ticket-meta {
        align-items: start;
        display: grid;
        gap: 0.05rem;
    }

    .support-ticket-copy > strong {
        font-size: 0.78rem;
    }

    .support-ticket-state {
        align-items: end;
        display: grid;
        gap: 0.3rem;
        justify-items: end;
    }

    .support-ticket-state em {
        font-size: 0.56rem;
        padding: 0.28rem 0.4rem;
    }

    .support-ticket-details {
        margin: 0 4.15rem 0 0.8rem;
        padding-bottom: 0.9rem;
    }

    .support-success {
        border-radius: 16px;
        padding: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-compose-panel,
    .support-ticket-details {
        animation: none;
    }
}

/* Customer profile hub */
.profile-v2 {
    display: grid;
    gap: 1rem;
}

.profile-v2-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.2rem;
}

.profile-v2-heading h1 {
    color: var(--black);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 950;
    line-height: 1.55;
}

.profile-v2-heading > span {
    color: var(--gray-500);
    font-size: 0.76rem;
    line-height: 1.8;
}

.profile-v2-hero {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.profile-identity-panel,
.profile-gold-panel {
    border-radius: 27px;
    min-height: 11rem;
    overflow: hidden;
    position: relative;
}

.profile-identity-panel {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 250, 0.95)),
        linear-gradient(145deg, rgba(158, 27, 60, 0.1), transparent 58%);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.25rem;
}

.profile-identity-panel::after {
    border: 1px solid rgba(158, 27, 60, 0.11);
    border-radius: 24px;
    content: "";
    height: 5rem;
    left: -2.4rem;
    position: absolute;
    top: -2.5rem;
    transform: rotate(20deg);
    width: 9rem;
}

.profile-v2-avatar {
    align-items: center;
    background: var(--brand);
    border: 5px solid var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-brand);
    color: var(--white);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.6rem;
    font-weight: 950;
    height: 5rem;
    justify-content: center;
    position: relative;
    transform: rotate(-3deg);
    width: 5rem;
}

.profile-v2-avatar i {
    align-items: center;
    background: var(--white);
    border-radius: 999px;
    bottom: -0.4rem;
    color: var(--success);
    display: inline-flex;
    height: 1.55rem;
    justify-content: center;
    position: absolute;
    right: -0.4rem;
    width: 1.55rem;
}

.profile-v2-avatar i svg {
    height: 1.25rem;
    width: 1.25rem;
}

.profile-v2-avatar > .user-avatar-icon {
    height: 2.35rem;
    stroke-width: 1.65;
    width: 2.35rem;
}

.journey-avatar > .user-avatar-icon {
    height: 1.45rem;
    stroke-width: 1.8;
    width: 1.45rem;
}

.profile-identity-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.profile-identity-copy > span {
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 900;
}

.profile-identity-copy h2 {
    color: var(--black);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.55;
}

.profile-mobile-row {
    align-items: center;
    color: var(--gray-700);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.18rem;
}

.profile-mobile-row > svg {
    color: var(--gray-500);
    height: 1rem;
    width: 1rem;
}

.profile-mobile-row b {
    font-size: 0.74rem;
    font-weight: 800;
}

.profile-mobile-row small {
    align-items: center;
    background: rgba(37, 122, 85, 0.1);
    border-radius: 999px;
    color: var(--success);
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 900;
    gap: 0.15rem;
    padding: 0.22rem 0.4rem;
}

.profile-mobile-row small svg {
    height: 0.82rem;
    width: 0.82rem;
}

.profile-member-code {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    min-width: 6.6rem;
    padding: 0.65rem 0.8rem;
}

.profile-member-code small {
    color: var(--gray-500);
    font-size: 0.62rem;
}

.profile-member-code strong {
    color: var(--black);
    direction: ltr;
    font-size: 0.95rem;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-gold-panel {
    background: linear-gradient(135deg, #8E6518, #C79B3C 55%, #A7751C);
    box-shadow: 0 18px 38px rgba(142, 101, 24, 0.22);
    color: var(--white);
    display: grid;
    gap: 0.55rem 0.8rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.15rem;
    transition: box-shadow 240ms ease, transform 240ms ease;
}

.profile-gold-panel::before {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    content: "";
    inset: 0.5rem;
    pointer-events: none;
    position: absolute;
}

.profile-gold-panel:hover {
    box-shadow: 0 22px 45px rgba(142, 101, 24, 0.28);
    transform: translateY(-2px);
}

.profile-level-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 19px;
    display: inline-flex;
    grid-row: span 2;
    height: 3.8rem;
    justify-content: center;
    width: 3.8rem;
}

.profile-level-icon svg {
    height: 1.85rem;
    width: 1.85rem;
}

.profile-level-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.profile-level-copy span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.65rem;
}

.profile-level-copy strong {
    color: var(--white);
    font-size: 1.18rem;
    font-weight: 950;
}

.profile-level-copy small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.65rem;
    line-height: 1.65;
}

.profile-level-arrow {
    align-self: center;
    display: inline-flex;
}

.profile-level-arrow svg {
    height: 1.25rem;
    width: 1.25rem;
}

.profile-level-progress {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    grid-column: 2 / -1;
}

.profile-level-progress > span {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    height: 0.36rem;
    overflow: hidden;
    width: 100%;
}

.profile-level-progress i {
    background: var(--white);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.profile-level-progress b {
    direction: ltr;
    font-size: 0.7rem;
    font-weight: 950;
}

.profile-v2-stats {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stat-item {
    --stat-accent: var(--brand);
    --stat-soft: var(--brand-soft);
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(17, 17, 17, 0.05);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 6.4rem;
    padding: 0.9rem;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.profile-stat-item:hover {
    box-shadow: 0 15px 32px rgba(17, 17, 17, 0.08);
    transform: translateY(-2px);
}

.profile-stat-item.is-points {
    --stat-accent: #8E6518;
    --stat-soft: #F7F2E8;
}

.profile-stat-item.is-wallet {
    --stat-accent: #2E7A5B;
    --stat-soft: #ECF7F1;
}

.profile-stat-item.is-message {
    --stat-accent: #336A9B;
    --stat-soft: #EEF4FB;
}

.profile-stat-item > span {
    align-items: center;
    background: var(--stat-soft);
    border-radius: 17px;
    color: var(--stat-accent);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.profile-stat-item > span svg {
    height: 1.45rem;
    width: 1.45rem;
}

.profile-stat-item > div {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.profile-stat-item small,
.profile-stat-item em {
    color: var(--gray-500);
    font-size: 0.64rem;
    font-style: normal;
    line-height: 1.6;
}

.profile-stat-item strong {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.5;
}

.profile-stat-item > svg {
    color: var(--gray-500);
    height: 1.1rem;
    width: 1.1rem;
}

.profile-v2-content {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
}

.profile-menu-panel,
.profile-account-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.profile-menu-panel > header,
.profile-account-panel > header {
    align-items: end;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.profile-menu-panel h2,
.profile-account-panel h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.6;
}

.profile-menu-panel > header > span {
    color: var(--gray-500);
    font-size: 0.68rem;
}

.profile-menu-list {
    display: grid;
}

.profile-menu-list a {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 5rem;
    padding: 0.75rem 1rem;
    transition: background 220ms ease;
}

.profile-menu-list a + a {
    border-top: 1px solid var(--gray-200);
}

.profile-menu-list a:hover {
    background: var(--gray-50);
}

.profile-menu-icon {
    --menu-accent: var(--brand);
    --menu-soft: var(--brand-soft);
    align-items: center;
    background: var(--menu-soft);
    border-radius: 16px;
    color: var(--menu-accent);
    display: inline-flex;
    height: 2.9rem;
    justify-content: center;
    width: 2.9rem;
}

.profile-menu-icon.is-orders {
    --menu-accent: #71598C;
    --menu-soft: #F2EFF7;
}

.profile-menu-icon.is-installments {
    --menu-accent: #336A9B;
    --menu-soft: #EEF4FB;
}

.profile-menu-icon.is-rewards {
    --menu-accent: #8E6518;
    --menu-soft: #F7F2E8;
}

.profile-menu-icon.is-services {
    --menu-accent: #2E7A5B;
    --menu-soft: #ECF7F1;
}

.profile-menu-icon.is-referrals {
    --menu-accent: #B05D26;
    --menu-soft: #FFF3EA;
}

.profile-menu-icon svg {
    height: 1.4rem;
    width: 1.4rem;
}

.profile-menu-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.profile-menu-copy strong {
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 950;
    line-height: 1.65;
}

.profile-menu-copy small {
    color: var(--gray-500);
    font-size: 0.67rem;
    line-height: 1.65;
}

.profile-menu-list a > svg {
    color: var(--gray-500);
    height: 1.1rem;
    width: 1.1rem;
}

.profile-unread-badge {
    align-items: center;
    background: var(--brand);
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 950;
    height: 1.4rem;
    justify-content: center;
    min-width: 1.4rem;
}

.profile-account-panel {
    padding-bottom: 0.8rem;
}

.profile-account-panel > header {
    align-items: start;
    display: grid;
}

.profile-account-panel dl {
    display: grid;
    margin: 0;
    padding: 0.25rem 1rem;
}

.profile-account-panel dl > div {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 3.5rem;
}

.profile-account-panel dl > div + div {
    border-top: 1px dashed var(--gray-200);
}

.profile-account-panel dt {
    color: var(--gray-500);
    font-size: 0.68rem;
}

.profile-account-panel dd {
    color: var(--black);
    font-size: 0.74rem;
    font-weight: 900;
    margin: 0;
    text-align: left;
}

.profile-account-panel dd.is-verified {
    color: var(--success);
}

.profile-logout {
    align-items: center;
    border-top: 1px solid var(--gray-200);
    color: var(--danger);
    display: flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 0.45rem;
    margin-top: 0.25rem;
    min-height: 3.4rem;
    padding: 0.6rem 1rem 0;
}

.profile-logout svg {
    height: 1.15rem;
    width: 1.15rem;
}

@media (max-width: 950px) {
    .profile-v2-hero,
    .profile-v2-content {
        grid-template-columns: 1fr;
    }

    .profile-account-panel dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.5rem;
    }

    .profile-account-panel dl > div:nth-child(2) {
        border-top: 0;
    }
}

@media (max-width: 620px) {
    .profile-v2 {
        gap: 0.8rem;
    }

    .profile-v2-heading {
        align-items: start;
        display: grid;
        gap: 0.1rem;
    }

    .profile-v2-heading h1 {
        font-size: 1.25rem;
    }

    .profile-v2-heading > span {
        font-size: 0.68rem;
    }

    .profile-identity-panel,
    .profile-gold-panel,
    .profile-menu-panel,
    .profile-account-panel {
        border-radius: 22px;
    }

    .profile-identity-panel {
        gap: 0.75rem;
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 9.5rem;
        padding: 1rem;
    }

    .profile-v2-avatar {
        border-radius: 20px;
        font-size: 1.35rem;
        height: 4.2rem;
        width: 4.2rem;
    }

    .profile-identity-copy h2 {
        font-size: 1.15rem;
    }

    .profile-member-code {
        align-items: center;
        display: flex;
        grid-column: 1 / -1;
        justify-content: space-between;
        min-width: 0;
        padding: 0.55rem 0.75rem;
        width: 100%;
    }

    .profile-member-code strong {
        font-size: 0.86rem;
    }

    .profile-gold-panel {
        min-height: 9.8rem;
        padding: 1rem;
    }

    .profile-v2-stats {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stat-item {
        gap: 0.55rem;
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 6rem;
        padding: 0.75rem;
    }

    .profile-stat-item.is-message {
        grid-column: span 2;
    }

    .profile-stat-item > svg {
        display: none;
    }

    .profile-stat-item > span {
        border-radius: 15px;
        height: 2.65rem;
        width: 2.65rem;
    }

    .profile-stat-item strong {
        font-size: 0.85rem;
    }

    .profile-menu-panel > header,
    .profile-account-panel > header {
        padding: 0.85rem;
    }

    .profile-menu-panel > header > span {
        display: none;
    }

    .profile-menu-list a {
        gap: 0.6rem;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        min-height: 4.65rem;
        padding: 0.7rem 0.8rem;
    }

    .profile-menu-icon {
        border-radius: 15px;
        height: 2.7rem;
        width: 2.7rem;
    }

    .profile-menu-copy strong {
        font-size: 0.76rem;
    }

    .profile-menu-copy small {
        font-size: 0.62rem;
    }

    .profile-account-panel dl {
        grid-template-columns: 1fr;
        padding-inline: 0.85rem;
    }

    .profile-account-panel dl > div:nth-child(2) {
        border-top: 1px dashed var(--gray-200);
    }

    .profile-logout {
        padding-inline: 0.85rem;
    }
}

@media (max-width: 370px) {
    .profile-mobile-row small {
        display: none;
    }

    .profile-menu-copy small {
        display: none;
    }

    .profile-menu-list a {
        min-height: 4.2rem;
    }
}

/* Payment gateway unavailable state */
.payment-unavailable-page {
    display: grid;
    gap: 0.8rem;
}

.payment-back-link {
    align-items: center;
    color: var(--gray-700);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.4rem;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.25rem;
}

.payment-back-link svg {
    height: 1.2rem;
    width: 1.2rem;
}

.payment-unavailable-panel {
    align-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 250, 0.96)),
        linear-gradient(145deg, rgba(158, 27, 60, 0.08), transparent 55%);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1rem;
    justify-items: center;
    min-height: 34rem;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.payment-unavailable-panel::before,
.payment-unavailable-panel::after {
    border: 1px solid rgba(158, 27, 60, 0.09);
    border-radius: 30px;
    content: "";
    pointer-events: none;
    position: absolute;
    transform: rotate(18deg);
}

.payment-unavailable-panel::before {
    height: 8rem;
    left: -4rem;
    top: -4rem;
    width: 12rem;
}

.payment-unavailable-panel::after {
    bottom: -5rem;
    height: 9rem;
    right: -4rem;
    width: 13rem;
}

.payment-status-visual {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 0.2rem;
    position: relative;
}

.payment-status-icon {
    align-items: center;
    background: var(--brand-soft);
    border: 1px solid rgba(158, 27, 60, 0.12);
    border-radius: 25px;
    color: var(--brand);
    display: inline-flex;
    height: 6rem;
    justify-content: center;
    transform: rotate(-3deg);
    width: 6rem;
}

.payment-status-icon svg {
    height: 2.8rem;
    width: 2.8rem;
}

.payment-status-visual > i {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    bottom: -0.45rem;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
    color: var(--danger);
    display: inline-flex;
    height: 2.15rem;
    justify-content: center;
    position: absolute;
    right: -0.65rem;
    width: 2.15rem;
}

.payment-status-visual > i svg {
    height: 1.5rem;
    width: 1.5rem;
}

.payment-status-copy {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    max-width: 38rem;
}

.payment-status-badge {
    background: #FFF1F2;
    border-radius: 999px;
    color: var(--danger);
    font-size: 0.67rem;
    font-weight: 950;
    padding: 0.35rem 0.65rem;
}

.payment-status-copy h1 {
    color: var(--black);
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    font-weight: 950;
    line-height: 1.6;
}

.payment-status-copy p {
    color: var(--gray-700);
    font-size: 0.8rem;
    line-height: 1.9;
    max-width: 34rem;
}

.payment-attempt-summary {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 21px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(8rem, 1fr) 1px minmax(8rem, 1fr);
    max-width: 34rem;
    padding: 0.85rem 1rem;
    width: 100%;
}

.payment-attempt-summary > div {
    display: grid;
    gap: 0.18rem;
}

.payment-attempt-summary small {
    color: var(--gray-500);
    font-size: 0.65rem;
}

.payment-attempt-summary strong {
    color: var(--black);
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1.6;
}

.payment-attempt-summary > span {
    background: var(--gray-200);
    height: 2.6rem;
}

.payment-safety-note {
    align-items: center;
    color: var(--success);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 0.4rem;
}

.payment-safety-note svg {
    height: 1.15rem;
    width: 1.15rem;
}

.payment-unavailable-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.payment-unavailable-actions a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 10rem;
}

@media (max-width: 560px) {
    .payment-unavailable-page {
        gap: 0.55rem;
    }

    .payment-unavailable-panel {
        border-radius: 23px;
        min-height: calc(100dvh - 12rem);
        padding: 1.25rem 1rem;
    }

    .payment-status-icon {
        border-radius: 22px;
        height: 5rem;
        width: 5rem;
    }

    .payment-status-icon svg {
        height: 2.3rem;
        width: 2.3rem;
    }

    .payment-status-copy h1 {
        font-size: 1.18rem;
    }

    .payment-status-copy p {
        font-size: 0.74rem;
        line-height: 1.85;
    }

    .payment-attempt-summary {
        gap: 0.65rem;
        grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
        padding: 0.75rem;
    }

    .payment-attempt-summary strong {
        font-size: 0.76rem;
    }

    .payment-unavailable-actions {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .payment-unavailable-actions a {
        min-width: 0;
        width: 100%;
    }
}

/* Personal discount wallet */
.discount-page {
    display: grid;
    gap: 1rem;
    position: relative;
}

.discount-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.2rem;
}

.discount-heading h1 {
    color: var(--black);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 950;
    line-height: 1.55;
}

.discount-heading > span {
    color: var(--gray-500);
    font-size: 0.72rem;
}

.discount-hero-layout {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.5fr);
}

.discount-ticket {
    background: var(--brand);
    border-radius: 27px;
    box-shadow: 0 20px 44px rgba(158, 27, 60, 0.24);
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13rem;
    min-height: 23rem;
    overflow: hidden;
    position: relative;
}

.discount-ticket::before {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 23px;
    content: "";
    inset: 0.55rem;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.discount-ticket-main {
    align-content: space-between;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 48%),
        var(--brand);
    display: grid;
    gap: 1.15rem;
    padding: 1.45rem;
    position: relative;
}

.discount-ticket-main::after {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    content: "";
    height: 8rem;
    left: -4rem;
    position: absolute;
    top: -4rem;
    transform: rotate(18deg);
    width: 12rem;
}

.discount-ticket-brand {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.discount-ticket-brand > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    display: inline-flex;
    height: 2.9rem;
    justify-content: center;
    width: 2.9rem;
}

.discount-ticket-brand svg {
    height: 1.45rem;
    width: 1.45rem;
}

.discount-ticket-brand > div {
    display: grid;
    gap: 0.05rem;
}

.discount-ticket-brand small,
.discount-ticket-stub small,
.discount-code-box small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.62rem;
    line-height: 1.6;
}

.discount-ticket-brand strong {
    font-size: 0.8rem;
    font-weight: 950;
}

.discount-value {
    align-items: end;
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.discount-value strong {
    font-size: clamp(3.2rem, 8vw, 5rem);
    font-weight: 950;
    line-height: 1;
}

.discount-value span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 0.55rem;
    padding-bottom: 0.3rem;
}

.discount-code-box {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 19px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
    position: relative;
    z-index: 1;
}

.discount-code-box > div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.discount-code-box strong {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.discount-code-box button {
    align-items: center;
    background: var(--white);
    border: 0;
    border-radius: 14px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 950;
    gap: 0.35rem;
    min-height: 2.7rem;
    padding: 0.5rem 0.7rem;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.discount-code-box button:hover {
    transform: translateY(-1px);
}

.discount-code-box button.is-copied {
    background: #ECF7F1;
    color: var(--success);
}

.discount-code-box button svg {
    height: 1.05rem;
    width: 1.05rem;
}

.discount-ticket-stub {
    align-content: center;
    background: var(--brand-deep);
    border-right: 1px dashed rgba(255, 255, 255, 0.38);
    display: grid;
    gap: 1.2rem;
    justify-items: center;
    padding: 1.3rem;
    position: relative;
    text-align: center;
}

.discount-active-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 950;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
}

.discount-active-badge svg {
    height: 0.95rem;
    width: 0.95rem;
}

.discount-ticket-stub > div {
    display: grid;
    gap: 0.18rem;
}

.discount-ticket-stub strong {
    font-size: 0.82rem;
    font-weight: 950;
}

.discount-stub-code {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.74);
    direction: ltr;
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
}

.discount-cutout {
    background: var(--gray-100);
    border-radius: 999px;
    height: 1.7rem;
    left: calc(13rem - 0.85rem);
    position: absolute;
    width: 1.7rem;
    z-index: 4;
}

.discount-cutout.is-top {
    top: -0.85rem;
}

.discount-cutout.is-bottom {
    bottom: -0.85rem;
}

.discount-conditions {
    align-content: start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 27px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem;
}

.discount-conditions-icon {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 18px;
    color: var(--brand);
    display: inline-flex;
    height: 3.3rem;
    justify-content: center;
    margin-bottom: 0.35rem;
    width: 3.3rem;
}

.discount-conditions-icon svg {
    height: 1.65rem;
    width: 1.65rem;
}

.discount-conditions h2,
.discount-usage h2 {
    color: var(--black);
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.65;
}

.discount-conditions > p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.74rem;
    line-height: 1.85;
}

.discount-conditions ul {
    border-top: 1px solid var(--gray-200);
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0.9rem 0 0;
}

.discount-conditions li {
    align-items: start;
    color: var(--gray-700);
    display: flex;
    font-size: 0.69rem;
    gap: 0.45rem;
    line-height: 1.75;
}

.discount-conditions li svg {
    color: var(--success);
    flex: 0 0 auto;
    height: 1rem;
    margin-top: 0.15rem;
    width: 1rem;
}

.discount-usage {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.discount-usage > header {
    align-items: end;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.discount-usage > header > span {
    background: var(--gray-100);
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 0.66rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.discount-steps {
    align-items: center;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr) 4rem minmax(0, 1fr);
    padding: 1.1rem;
}

.discount-steps > div {
    align-items: center;
    display: grid;
    gap: 0.15rem 0.65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.discount-step-icon {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    grid-row: span 2;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.discount-step-icon svg {
    height: 1.45rem;
    width: 1.45rem;
}

.discount-steps i {
    align-items: center;
    background: var(--gray-100);
    border-radius: 999px;
    color: var(--gray-500);
    display: inline-flex;
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 950;
    grid-column: 3;
    grid-row: 1 / span 2;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.discount-steps strong {
    color: var(--black);
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.6;
}

.discount-steps small {
    color: var(--gray-500);
    font-size: 0.64rem;
    line-height: 1.65;
}

.discount-step-line {
    border-top: 2px dotted var(--gray-300);
    width: 100%;
}

.discount-copy-toast {
    align-items: center;
    animation: inboxDetailsIn 220ms ease both;
    background: #ECF7F1;
    border: 1px solid rgba(37, 122, 85, 0.18);
    border-radius: 17px;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.14);
    color: var(--success);
    display: flex;
    font-size: 0.74rem;
    font-weight: 900;
    gap: 0.45rem;
    left: 50%;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 0.9rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 110;
}

.discount-copy-toast.is-error {
    background: #FFF1F2;
    border-color: rgba(180, 35, 63, 0.18);
    color: var(--danger);
}

.discount-copy-toast svg {
    flex: 0 0 auto;
    height: 1.2rem;
    width: 1.2rem;
}

@media (max-width: 950px) {
    .discount-hero-layout {
        grid-template-columns: 1fr;
    }

    .discount-conditions ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .discount-heading {
        align-items: start;
        display: grid;
        gap: 0.1rem;
    }

    .discount-heading h1 {
        font-size: 1.25rem;
    }

    .discount-ticket {
        border-radius: 23px;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .discount-ticket-main {
        min-height: 19rem;
        padding: 1rem;
    }

    .discount-ticket-stub {
        border-right: 0;
        border-top: 1px dashed rgba(255, 255, 255, 0.38);
        display: grid;
        gap: 0.65rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0.9rem 1rem;
    }

    .discount-active-badge {
        justify-self: center;
    }

    .discount-stub-code {
        display: none;
    }

    .discount-cutout {
        height: 1.55rem;
        left: auto;
        top: calc(19rem - 0.78rem);
        width: 1.55rem;
    }

    .discount-cutout.is-top {
        left: -0.78rem;
    }

    .discount-cutout.is-bottom {
        bottom: auto;
        right: -0.78rem;
    }

    .discount-value strong {
        font-size: 3.5rem;
    }

    .discount-code-box {
        gap: 0.6rem;
        padding: 0.65rem;
    }

    .discount-code-box strong {
        font-size: 0.85rem;
    }

    .discount-code-box button {
        min-height: 2.55rem;
        padding-inline: 0.6rem;
    }

    .discount-conditions {
        border-radius: 23px;
        padding: 1rem;
    }

    .discount-conditions ul {
        grid-template-columns: 1fr;
    }

    .discount-usage {
        border-radius: 23px;
    }

    .discount-steps {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .discount-step-line {
        border-right: 2px dotted var(--gray-300);
        border-top: 0;
        height: 1rem;
        margin-right: 1.5rem;
        width: 0;
    }

    .discount-steps > div {
        min-height: 3.5rem;
    }

    .discount-copy-toast {
        bottom: calc(6.8rem + env(safe-area-inset-bottom));
        width: calc(100vw - 1.5rem);
    }
}

@media (max-width: 390px) {
    .discount-value {
        align-items: start;
        display: grid;
        gap: 0.25rem;
    }

    .discount-value span {
        justify-self: start;
        margin-bottom: 0;
    }

    .discount-code-box button span {
        display: none;
    }

    .discount-code-box button {
        justify-content: center;
        min-width: 2.7rem;
    }
}

/* Referral experience */
.referral-page {
    display: grid;
    gap: 1rem;
    position: relative;
}

.referral-hero-v2 {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 250, 0.95)),
        linear-gradient(145deg, rgba(158, 27, 60, 0.1), transparent 60%);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
    min-height: 18rem;
    overflow: hidden;
    padding: 1.4rem;
    position: relative;
}

.referral-hero-v2::before {
    border: 1px solid rgba(158, 27, 60, 0.1);
    border-radius: 28px;
    content: "";
    height: 9rem;
    left: -4rem;
    position: absolute;
    top: -5rem;
    transform: rotate(16deg);
    width: 14rem;
}

.referral-hero-copy {
    display: grid;
    gap: 0.55rem;
    max-width: 42rem;
    position: relative;
    z-index: 1;
}

.referral-hero-copy h1 {
    color: var(--black);
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    font-weight: 950;
    line-height: 1.55;
}

.referral-hero-copy > p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.82rem;
    line-height: 1.9;
    max-width: 37rem;
}

.referral-reward-badge {
    align-items: center;
    background: var(--brand-soft);
    border: 1px solid rgba(158, 27, 60, 0.11);
    border-radius: 17px;
    display: inline-flex;
    gap: 0.55rem;
    justify-self: start;
    margin-top: 0.25rem;
    padding: 0.55rem 0.7rem;
}

.referral-reward-badge > span {
    align-items: center;
    background: var(--white);
    border-radius: 13px;
    color: var(--brand);
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.referral-reward-badge svg {
    height: 1.2rem;
    width: 1.2rem;
}

.referral-reward-badge > div {
    display: grid;
    gap: 0.02rem;
}

.referral-reward-badge strong {
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 950;
}

.referral-reward-badge small {
    color: var(--gray-700);
    font-size: 0.62rem;
}

.referral-hero-visual {
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 25px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto minmax(5rem, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 12rem;
    padding: 1.25rem;
    position: relative;
}

.referral-person {
    align-items: center;
    background: var(--white);
    border: 4px solid var(--white);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
    color: var(--brand);
    display: inline-flex;
    height: 4.8rem;
    justify-content: center;
    width: 4.8rem;
}

.referral-person.is-owner {
    background: var(--brand);
    color: var(--white);
    transform: rotate(-3deg);
}

.referral-person.is-friend {
    color: #336A9B;
    transform: rotate(3deg);
}

.referral-person svg {
    height: 2.35rem;
    width: 2.35rem;
}

.referral-connection {
    align-items: center;
    display: flex;
    width: 100%;
}

.referral-connection i {
    border-top: 2px dotted var(--gray-300);
    flex: 1 1 auto;
}

.referral-connection b {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.1rem;
    justify-content: center;
    width: 3.1rem;
}

.referral-connection svg {
    height: 1.5rem;
    width: 1.5rem;
}

.referral-hero-visual > small {
    color: var(--gray-700);
    font-size: 0.65rem;
    font-weight: 900;
}

.referral-hero-visual > small:last-child {
    grid-column: 3;
}

.referral-main-grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
}

.referral-invite-card,
.referral-progress-card,
.referral-steps-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.referral-invite-card {
    align-content: start;
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem;
}

.referral-invite-card > header {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.referral-invite-icon {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 17px;
    color: var(--brand);
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    width: 3.2rem;
}

.referral-invite-icon svg {
    height: 1.55rem;
    width: 1.55rem;
}

.referral-invite-card h2,
.referral-progress-card h2,
.referral-steps-panel h2 {
    color: var(--black);
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1.65;
}

.referral-code-box {
    align-items: center;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: 19px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
}

.referral-code-box > div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.referral-code-box small {
    color: var(--gray-500);
    font-size: 0.62rem;
}

.referral-code-box strong {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.referral-code-box button {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.69rem;
    font-weight: 950;
    gap: 0.35rem;
    min-height: 2.65rem;
    padding: 0.5rem 0.65rem;
}

.referral-code-box button.is-done {
    background: #ECF7F1;
    color: var(--success);
}

.referral-code-box button svg {
    height: 1.05rem;
    width: 1.05rem;
}

.referral-share-button {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
}

.referral-share-button svg {
    height: 1.2rem;
    width: 1.2rem;
}

.referral-private-note {
    align-items: center;
    color: var(--gray-500);
    display: flex;
    font-size: 0.63rem;
    gap: 0.35rem;
    line-height: 1.7;
}

.referral-private-note svg {
    flex: 0 0 auto;
    height: 1rem;
    width: 1rem;
}

.referral-progress-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem;
}

.referral-progress-card > header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.referral-progress-card > header > span {
    align-items: center;
    background: #EEF4FB;
    border-radius: 16px;
    color: #336A9B;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.referral-progress-card > header svg {
    height: 1.45rem;
    width: 1.45rem;
}

.referral-stats {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-stats > div {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    padding: 0.65rem 0.35rem;
    text-align: center;
}

.referral-stats small {
    color: var(--gray-500);
    font-size: 0.58rem;
    line-height: 1.55;
}

.referral-stats strong {
    color: var(--black);
    font-size: 0.88rem;
    font-weight: 950;
}

.referral-milestone {
    background: var(--brand-soft);
    border-radius: 18px;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.8rem;
}

.referral-milestone > div {
    display: grid;
    gap: 0.05rem;
}

.referral-milestone span,
.referral-milestone small {
    color: var(--gray-700);
    font-size: 0.62rem;
    line-height: 1.6;
}

.referral-milestone strong {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 950;
}

.referral-milestone > b {
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 950;
}

.referral-progress-track {
    background: rgba(158, 27, 60, 0.12);
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 0.42rem;
    overflow: hidden;
}

.referral-progress-track i {
    background: var(--brand);
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 66.666%;
}

.referral-milestone > small {
    grid-column: 1 / -1;
}

.referral-enter-code {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 250, 0.96)),
        linear-gradient(145deg, rgba(51, 106, 155, 0.08), transparent 58%);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
    padding: 1.15rem;
}

.referral-enter-code-copy {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    min-width: 0;
}

.referral-enter-code-copy > span {
    align-items: center;
    background: #EEF4FB;
    border-radius: 18px;
    color: #336A9B;
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.7rem;
    justify-content: center;
    width: 3.7rem;
}

.referral-enter-code-copy > span svg {
    height: 1.8rem;
    width: 1.8rem;
}

.referral-enter-code-copy > div {
    display: grid;
    gap: 0.15rem;
}

.referral-enter-code h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.65;
}

.referral-enter-code-copy > div > p:not(.overline) {
    color: var(--gray-700);
    font-size: 0.69rem;
    line-height: 1.75;
    max-width: 38rem;
}

.referral-code-form {
    display: grid;
    gap: 0.4rem;
}

.referral-code-form > label {
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 900;
}

.referral-code-form > div {
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 17px;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.35rem;
}

.referral-code-form .form-control {
    border: 0;
    border-radius: 13px;
    box-shadow: none;
    font-size: 0.8rem;
    min-height: 2.8rem;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.referral-code-form .form-control:focus {
    box-shadow: none;
}

.referral-code-form button {
    background: var(--brand);
    border: 0;
    border-radius: 13px;
    color: var(--white);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 950;
    min-width: 5.2rem;
    padding: 0.5rem 0.75rem;
}

.referral-code-form > small {
    color: var(--gray-500);
    font-size: 0.6rem;
    min-height: 1rem;
}

.referral-code-form > small.referral-code-error {
    color: var(--danger);
    font-weight: 850;
}

.referral-code-success {
    align-items: center;
    background: #ECF7F1;
    border: 1px solid rgba(37, 122, 85, 0.16);
    border-radius: 18px;
    color: var(--success);
    display: flex;
    gap: 0.65rem;
    padding: 0.8rem;
}

.referral-code-success > span {
    align-items: center;
    background: var(--white);
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.referral-code-success svg {
    height: 1.4rem;
    width: 1.4rem;
}

.referral-code-success > div {
    display: grid;
    gap: 0.12rem;
}

.referral-code-success strong {
    font-size: 0.76rem;
    font-weight: 950;
}

.referral-code-success small {
    color: var(--gray-700);
    font-size: 0.68rem;
}

.referral-steps-panel {
    overflow: hidden;
}

.referral-steps-panel > header {
    align-items: end;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.referral-steps-panel > header > span {
    background: var(--gray-100);
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.referral-steps {
    align-items: center;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr) 4rem minmax(0, 1fr);
    padding: 1.1rem;
}

.referral-steps > div {
    display: grid;
    gap: 0.15rem 0.65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.referral-steps > div > span {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 16px;
    color: var(--brand);
    display: inline-flex;
    grid-row: span 2;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.referral-steps > div > span svg {
    height: 1.45rem;
    width: 1.45rem;
}

.referral-steps i {
    align-items: center;
    background: var(--gray-100);
    border-radius: 999px;
    color: var(--gray-500);
    display: inline-flex;
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 950;
    grid-column: 3;
    grid-row: 1 / span 2;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.referral-steps strong {
    color: var(--black);
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.6;
}

.referral-steps small {
    color: var(--gray-500);
    font-size: 0.63rem;
    line-height: 1.65;
}

.referral-steps > b {
    border-top: 2px dotted var(--gray-300);
    width: 100%;
}

.referral-toast {
    align-items: center;
    animation: inboxDetailsIn 220ms ease both;
    background: #ECF7F1;
    border: 1px solid rgba(37, 122, 85, 0.18);
    border-radius: 17px;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.14);
    color: var(--success);
    display: flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 0.45rem;
    left: 50%;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 0.9rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 110;
}

.referral-toast.is-error {
    background: #FFF1F2;
    border-color: rgba(180, 35, 63, 0.18);
    color: var(--danger);
}

.referral-toast svg {
    flex: 0 0 auto;
    height: 1.15rem;
    width: 1.15rem;
}

@media (max-width: 900px) {
    .referral-hero-v2,
    .referral-main-grid,
    .referral-enter-code {
        grid-template-columns: 1fr;
    }

    .referral-hero-visual {
        min-height: 10rem;
    }
}

@media (max-width: 650px) {
    .referral-page {
        gap: 0.8rem;
    }

    .referral-hero-v2,
    .referral-invite-card,
    .referral-progress-card,
    .referral-steps-panel,
    .referral-enter-code {
        border-radius: 23px;
    }

    .referral-hero-v2 {
        gap: 1rem;
        min-height: auto;
        padding: 1rem;
    }

    .referral-hero-copy h1 {
        font-size: 1.3rem;
    }

    .referral-hero-copy > p:not(.overline) {
        font-size: 0.74rem;
        line-height: 1.85;
    }

    .referral-hero-visual {
        min-height: 9rem;
        padding: 1rem;
    }

    .referral-person {
        border-radius: 19px;
        height: 4rem;
        width: 4rem;
    }

    .referral-person svg {
        height: 2rem;
        width: 2rem;
    }

    .referral-connection b {
        border-radius: 14px;
        height: 2.7rem;
        width: 2.7rem;
    }

    .referral-invite-card,
    .referral-progress-card {
        padding: 0.95rem;
    }

    .referral-enter-code {
        gap: 0.9rem;
        padding: 0.95rem;
    }

    .referral-code-box {
        gap: 0.6rem;
        padding: 0.65rem;
    }

    .referral-code-box strong {
        font-size: 0.84rem;
    }

    .referral-stats {
        gap: 0.4rem;
    }

    .referral-steps-panel > header {
        align-items: start;
        display: grid;
        gap: 0.35rem;
        padding: 0.9rem;
    }

    .referral-steps-panel > header > span {
        justify-self: start;
    }

    .referral-steps {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .referral-steps > b {
        border-right: 2px dotted var(--gray-300);
        border-top: 0;
        height: 1rem;
        margin-right: 1.5rem;
        width: 0;
    }

    .referral-toast {
        bottom: calc(6.8rem + env(safe-area-inset-bottom));
        width: calc(100vw - 1.5rem);
    }
}

@media (max-width: 390px) {
    .referral-code-box button span {
        display: none;
    }

    .referral-code-box button {
        justify-content: center;
        min-width: 2.65rem;
    }

    .referral-private-note {
        align-items: start;
    }

    .referral-code-form > div {
        grid-template-columns: 1fr;
    }

    .referral-code-form button {
        min-height: 2.7rem;
        width: 100%;
    }
}

/* Persistent authentication flow */
.auth-login-v2 {
    position: relative;
}

.auth-mode-link {
    width: 100%;
}

.auth-password-hint {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    color: var(--gray-700);
    font-size: 0.68rem;
    padding: 0.55rem 0.7rem;
    text-align: center;
}

.auth-password-hint strong {
    color: var(--brand);
    font-weight: 950;
}

.otp-destination,
.auth-test-code {
    align-items: center;
    border-radius: 18px;
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    padding: 0.7rem;
}

.otp-destination {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.otp-destination > span,
.auth-test-code > span {
    align-items: center;
    background: var(--white);
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.otp-destination > span {
    color: var(--brand);
}

.otp-destination svg,
.auth-test-code svg {
    height: 1.35rem;
    width: 1.35rem;
}

.otp-destination > div,
.auth-test-code > div {
    display: grid;
    flex: 1 1 auto;
    gap: 0.08rem;
}

.otp-destination small,
.auth-test-code small {
    color: var(--gray-500);
    font-size: 0.62rem;
}

.otp-destination strong,
.auth-test-code strong {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 950;
}

.otp-destination > a {
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 900;
    min-height: 2.5rem;
    padding: 0.7rem 0.3rem;
}

.auth-test-code {
    background: #EEF4FB;
    border: 1px solid rgba(51, 106, 155, 0.15);
}

.auth-test-code > span,
.auth-test-code strong {
    color: #336A9B;
}

.otp-code-input {
    direction: ltr;
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: 0;
    text-align: center;
}

.otp-resend-form {
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
}

.otp-resend-form button {
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 900;
    min-height: 2.75rem;
    padding: 0.55rem;
}

.signup-activation-card {
    display: grid;
    gap: 1rem;
}

.signup-activation-card .auth-brand-panel,
.signup-activation-card .auth-heading {
    margin-bottom: 0;
}

.signup-activation-note {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.8rem;
}

.signup-activation-note > span {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 11px;
    color: var(--brand);
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 950;
    height: 1.7rem;
    justify-content: center;
    width: 1.7rem;
}

.signup-activation-note p {
    align-self: center;
    color: var(--gray-700);
    font-size: 0.7rem;
    line-height: 1.7;
}

.profile-logout-form {
    border-top: 1px solid var(--gray-200);
    margin-top: 0.25rem;
}

.profile-logout-form .profile-logout {
    background: transparent;
    border: 0;
    border-top: 0;
    cursor: pointer;
    margin-top: 0;
    padding: 0.6rem 1rem 0;
    text-align: right;
    width: 100%;
}

.route-authorizing {
    align-content: center;
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    min-height: 45vh;
    padding: 2rem;
    text-align: center;
}

.route-authorizing > span {
    animation: inboxSpin 800ms linear infinite;
    border: 3px solid var(--gray-200);
    border-radius: 999px;
    border-top-color: var(--brand);
    height: 2.7rem;
    width: 2.7rem;
}

.route-authorizing p {
    color: var(--gray-700);
    font-size: 0.76rem;
    font-weight: 850;
}

/* Premium authentication experience */
.auth-experience {
    background: var(--black);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
}

.auth-experience-bg,
.auth-experience-shade {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.auth-experience-bg {
    object-fit: cover;
    object-position: center;
}

.auth-experience-shade {
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.68), rgba(17, 17, 17, 0.2) 46%, rgba(17, 17, 17, 0.58)),
        linear-gradient(180deg, rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.38));
}

.auth-experience-stage {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 6vw, 6rem);
    grid-template-columns: minmax(24rem, 28rem) minmax(0, 1fr);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem;
    position: relative;
    width: min(100%, 82rem);
    z-index: 1;
}

.auth-experience .auth-panel {
    width: 100%;
}

.auth-experience .auth-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
    padding: 1.2rem;
}

.auth-showcase {
    align-content: space-between;
    color: var(--white);
    display: grid;
    gap: 2rem;
    justify-items: start;
    min-height: min(76vh, 40rem);
    padding: 0.6rem;
}

.auth-showcase-brand {
    align-items: center;
    display: inline-flex;
    min-height: 4.5rem;
}

.auth-showcase-brand img {
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.28));
    max-width: 18rem;
    width: min(100%, 18rem);
}

.auth-showcase-copy {
    align-self: end;
    display: grid;
    gap: 0.5rem;
    max-width: 35rem;
}

.auth-showcase-copy > span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.75rem;
    font-weight: 850;
}

.auth-showcase-copy h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    font-weight: 950;
    line-height: 1.5;
}

.auth-showcase-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.95;
    max-width: 31rem;
}

.auth-showcase-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.auth-showcase-trust span {
    align-items: center;
    background: rgba(17, 17, 17, 0.38);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    gap: 0.35rem;
    min-height: 2.7rem;
    padding: 0.45rem 0.65rem;
}

.auth-showcase-trust svg {
    height: 1.15rem;
    width: 1.15rem;
}

.auth-card-kicker {
    align-items: center;
    display: grid;
    gap: 0.12rem 0.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 0.85rem;
}

.auth-card-kicker > span {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 14px;
    color: var(--brand);
    display: inline-flex;
    grid-row: auto;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.auth-card-kicker svg {
    height: 1.3rem;
    width: 1.3rem;
}

.auth-card-kicker strong {
    align-self: center;
    color: var(--black);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1.6;
}

.auth-card-kicker small {
    align-self: center;
    color: var(--success);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1.6;
    margin-inline-end: 0.65rem;
}

.auth-mode-switch {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 17px;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
    padding: 0.25rem;
}

.auth-mode-switch a {
    align-items: center;
    border-radius: 13px;
    color: var(--gray-700);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 900;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.45rem;
    transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.auth-mode-switch a.is-active {
    background: var(--white);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.07);
    color: var(--brand);
}

.auth-experience .auth-heading {
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.auth-experience .auth-heading h1 {
    font-size: 1.28rem;
}

.auth-experience .auth-heading span {
    font-size: 0.74rem;
    line-height: 1.8;
}

.auth-experience .auth-form {
    gap: 0.75rem;
}

.auth-experience .field-group {
    gap: 0.35rem;
}

.auth-experience .field-group label {
    font-size: 0.72rem;
}

.auth-experience .form-control {
    min-height: 3.15rem;
}

.auth-experience .btn-primary {
    min-height: 3.35rem;
}

.auth-card-footer {
    align-items: center;
    border-top: 1px solid var(--gray-200);
    display: flex;
    font-size: 0.67rem;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
}

.auth-card-footer span {
    align-items: center;
    color: var(--gray-500);
    display: inline-flex;
    line-height: 1.6;
    min-height: 2.75rem;
}

.auth-card-footer a {
    align-items: center;
    color: var(--brand);
    display: inline-flex;
    font-weight: 950;
    line-height: 1.6;
    min-height: 2.75rem;
    padding: 0;
}

@media (max-width: 820px) {
    .auth-experience {
        background: var(--gray-100);
        overflow: auto;
    }

    .auth-experience-bg,
    .auth-experience-shade {
        height: 14rem;
    }

    .auth-experience-bg {
        object-position: 38% 64%;
    }

    .auth-experience-shade {
        background: linear-gradient(180deg, rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0.64));
    }

    .auth-experience-stage {
        align-content: start;
        display: grid;
        gap: 0;
        grid-template-columns: 1fr;
        min-height: 100dvh;
        padding: 0 0.75rem 0.75rem;
        width: 100%;
    }

    .auth-showcase {
        align-content: center;
        justify-items: center;
        min-height: 9.15rem;
        order: -1;
        padding: 0;
    }

    .auth-showcase-brand {
        justify-self: center;
    }

    .auth-showcase-brand img {
        max-width: 13rem;
    }

    .auth-showcase-copy,
    .auth-showcase-trust {
        display: none;
    }

    .auth-experience .auth-panel {
        margin: 0 auto 1rem;
        width: min(100%, 28rem);
    }

    .auth-experience .auth-card {
        border-color: rgba(221, 221, 221, 0.72);
        border-radius: 25px;
        box-shadow: 0 18px 46px rgba(17, 17, 17, 0.12);
        padding: 1rem;
    }
}

@media (max-width: 380px) {
    .auth-experience-bg,
    .auth-experience-shade {
        height: 12.5rem;
    }

    .auth-showcase {
        min-height: 8.15rem;
    }

    .auth-showcase-brand img {
        max-width: 11.2rem;
    }

    .auth-experience .auth-card {
        padding: 0.85rem;
    }

    .auth-card-kicker {
        margin-bottom: 0.7rem;
    }

    .auth-mode-switch {
        margin-bottom: 0.75rem;
    }

    .auth-experience .auth-heading h1 {
        font-size: 1.12rem;
    }
}

/* Keep compact outline icons legible on high-density mobile displays. */
@media (max-width: 980px) {
    .app-shell :is(a, button) svg,
    .app-shell [class*="icon"] svg,
    .app-shell svg.user-avatar-icon {
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2.05;
    }

    .app-shell .floating-tabbar svg {
        stroke-width: 2.15;
    }
}
