@import url("./fonts.css");

:root {
    --brand-slate: #0f172a;
    --brand-charcoal: #1e293b;
    --brand-green: #166534;
    --brand-teal: #115e59;
    --brand-mint: #10b981;
    --brand-mint-soft: #dff7ea;
    --brand-amber: #d97706;
    --brand-orange: #ea580c;
    --color-primary: var(--brand-green);
    --color-primary-dark: var(--brand-teal);
    --color-primary-soft: var(--brand-mint-soft);
    --color-background: #f1f5f9;
    --color-background-soft: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-text: #0f172a;
    --color-text-soft: #334155;
    --color-muted: #64748b;
    --color-muted-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-danger: #dc2626;
    --color-danger-soft: #fee2e2;
    --color-warning: var(--brand-amber);
    --color-warning-soft: #fef3c7;
    --color-success: #16a34a;
    --color-success-soft: #dcfce7;
    --color-info: #2563eb;
    --color-info-soft: #dbeafe;
    --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06);
    --radius: 10px;
    --radius-card: 16px;
    --radius-panel: 22px;
    --space-page-x: 20px;
    --font-family-base: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.75;
    text-align: right;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
}

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

h1 {
    margin-bottom: 10px;
    font-size: clamp(27px, 4.6vw, 40px);
    line-height: 1.4;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.55;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted {
    color: var(--color-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.site-nav,
.page-shell {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding-inline: var(--space-page-x);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), var(--shadow-subtle);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.35;
}

.brand small {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    padding: 8px 11px;
    color: #3f4e4a;
    font-size: 14px;
    font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.nav-link.is-active {
    box-shadow: inset 0 -2px var(--color-primary);
}

.nav-link--admin {
    border: 1px solid var(--color-border);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.logout-button {
    min-height: 40px;
    border: 0;
    padding: 7px 9px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.logout-button:hover {
    color: var(--color-text);
}

.page-shell {
    padding-top: 34px;
    padding-bottom: 64px;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

.site-footer__inner {
    width: min(100%, 1160px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 20px var(--space-page-x);
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer__summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.site-footer__brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-footer__brand div {
    display: grid;
    line-height: 1.45;
}

.site-footer__brand span {
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer p {
    max-width: 470px;
    margin: 0;
}

.site-footer a {
    font-weight: 800;
    white-space: nowrap;
}

.site-footer__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: var(--color-text-soft);
}

.site-footer__links a:hover {
    color: var(--color-primary-dark);
}

.page-header {
    max-width: 760px;
    margin-bottom: 26px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header__description,
.section-heading > p,
.section-heading > div + p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.card + .card {
    margin-top: 18px;
}

.card-heading,
.section-heading--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.card-heading {
    margin-bottom: 18px;
}

.card-heading h2,
.section-heading h2 {
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading--row > p {
    max-width: 470px;
    font-size: 14px;
}

.text-link {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.content-page {
    max-width: 940px;
    margin-inline: auto;
}

.content-page__header {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.content-page__header h1 {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: clamp(29px, 5vw, 44px);
}

.content-page__header p:not(.eyebrow) {
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.95;
}

.content-page__surface {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: clamp(20px, 5vw, 44px);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.content-body {
    max-width: 820px;
    margin-inline: auto;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 2.05;
    overflow-wrap: anywhere;
}

.content-body > *:first-child {
    margin-top: 0;
}

.content-body > *:last-child {
    margin-bottom: 0;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    color: var(--color-text);
    font-weight: 900;
}

.content-body h1 {
    margin: 0 0 18px;
    font-size: clamp(27px, 4.5vw, 36px);
}

.content-body h2 {
    margin: 38px 0 12px;
    border-right: 4px solid var(--color-primary);
    padding-right: 12px;
    font-size: clamp(22px, 3.5vw, 29px);
}

.content-body h3 {
    margin: 30px 0 10px;
    font-size: 20px;
}

.content-body h4 {
    margin: 24px 0 8px;
    font-size: 17px;
}

.content-body p,
.content-body ul,
.content-body ol,
.content-body blockquote,
.content-body pre,
.content-body table,
.content-body img,
.content-body .content-video {
    margin: 0 0 20px;
}

.content-body ul,
.content-body ol {
    padding-right: 24px;
}

.content-body li + li {
    margin-top: 6px;
}

.content-body a {
    border-bottom: 1px solid rgba(22, 101, 52, 0.25);
    color: var(--color-primary-dark);
    font-weight: 800;
}

.content-body blockquote {
    border-right: 4px solid var(--brand-amber);
    border-radius: 10px;
    padding: 14px 18px;
    background: var(--color-warning-soft);
    color: #5f4a20;
}

.content-body code {
    border-radius: 7px;
    padding: 2px 6px;
    background: #eef2f1;
    color: var(--color-text);
    direction: ltr;
    unicode-bidi: plaintext;
}

.content-body pre {
    overflow-x: auto;
    border-radius: 12px;
    padding: 16px;
    background: var(--brand-slate);
    color: #e2e8f0;
    direction: ltr;
    text-align: left;
}

.content-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.content-body img,
.content-body .content-video {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface-muted);
}

.content-body img {
    height: auto;
}

.content-body .content-video {
    aspect-ratio: 16 / 9;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 14px;
}

.content-body th,
.content-body td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: right;
}

.content-body th {
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-weight: 900;
}

.stack {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field-label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 13px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd8d3;
    border-radius: var(--radius);
    padding: 11px 13px;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 107, 87, 0.13);
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    width: 19px;
    min-height: 19px;
    margin: 3px 0 0;
    accent-color: var(--color-primary);
    box-shadow: none;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
}

.form-actions,
.section-actions,
.hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-actions {
    margin-top: 20px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 18px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}

.btn--secondary {
    background: #ffffff;
    border-color: #cad7d2;
    color: var(--color-text);
}

.btn--secondary:hover {
    background: var(--color-primary-soft);
    color: var(--color-text);
}

.btn--danger {
    background: var(--color-danger);
    color: #ffffff;
}

.alert {
    margin-bottom: 20px;
    border: 1px solid #b8ead3;
    border-radius: var(--radius);
    padding: 13px 15px;
    background: var(--color-success-soft);
    color: #0f5132;
    font-weight: 800;
}

.error {
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
}

.hero {
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 32px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #27364b;
    border-radius: var(--radius-panel);
    padding: clamp(30px, 6vw, 68px);
    background:
        radial-gradient(circle at 8% 12%, rgba(16, 185, 129, 0.13), transparent 30%),
        var(--brand-slate);
    color: #ffffff;
}

.hero--compact {
    min-height: 330px;
}

.hero__content {
    max-width: 700px;
}

.hero__content h1 {
    max-width: 670px;
    margin-bottom: 16px;
    font-size: clamp(31px, 5.3vw, 52px);
    line-height: 1.35;
}

.hero--compact .hero__content h1 {
    font-size: clamp(29px, 4.6vw, 43px);
}

.hero__lead {
    max-width: 640px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.95;
}

.hero__actions {
    margin-bottom: 16px;
}

.hero__note {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.hero__note a {
    display: inline-block;
    margin-right: 8px;
    color: #a7f3d0;
    font-weight: 800;
    white-space: nowrap;
}

.hero__preview {
    min-width: 0;
}

.pilot-hero-stack {
    display: grid;
    gap: 12px;
}

.pilot-affiliation {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(203, 213, 225, 0.28);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--brand-slate);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.2);
}

.pilot-affiliation img {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: contain;
}

.pilot-affiliation div {
    display: grid;
    gap: 3px;
}

.pilot-affiliation span {
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 900;
}

.pilot-affiliation strong {
    font-size: 14px;
    line-height: 1.8;
}

.hero__assurance {
    display: grid;
    gap: 10px;
    align-content: center;
    border: 1px solid #c8ddd5;
    border-radius: 14px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-subtle);
}

.hero__assurance-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.hero__assurance strong {
    font-size: 20px;
}

.hero__assurance span:last-child {
    color: #53645f;
}

.landing-section {
    padding-top: 76px;
}

.landing-section > .section-heading {
    max-width: 720px;
}

.steps-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card,
.trust-grid article {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.step-card__number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-weight: 900;
}

.step-card p,
.trust-grid p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.trust-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 40px;
}

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

.trust-grid article {
    position: relative;
    padding-right: 66px;
}

.trust-icon {
    position: absolute;
    top: 25px;
    right: 22px;
    width: 28px;
    height: 28px;
    border: 7px solid var(--color-primary-soft);
    border-radius: 50%;
    background: var(--color-primary);
}

.closing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 76px;
    border-radius: 14px;
    padding: 30px;
    background: var(--color-primary-dark);
    color: #ffffff;
}

.closing-cta .eyebrow {
    color: #a9e2d1;
}

.closing-cta h2,
.closing-cta p {
    margin-bottom: 4px;
}

.closing-cta p:last-child {
    color: #cde0da;
}

.closing-cta .btn {
    flex: 0 0 auto;
    background: #ffffff;
    color: var(--color-primary-dark);
}

.closing-cta__actions {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    justify-items: stretch;
}

.closing-cta__phone {
    color: #d1fae5;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.closing-cta__phone:hover {
    color: #ffffff;
}

.auth-layout,
.registration-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: start;
    max-width: 1050px;
    margin-inline: auto;
}

.auth-context,
.registration-context {
    position: sticky;
    top: 106px;
    border-radius: 14px;
    padding: 34px;
    background: var(--color-primary-dark);
    color: #ffffff;
}

.auth-context .eyebrow,
.registration-context .eyebrow {
    color: #a9e2d1;
}

.auth-context p,
.registration-context > p {
    color: #d2e3de;
}

.auth-card,
.registration-card {
    padding: clamp(22px, 5vw, 38px);
}

.auth-card__footer {
    margin: 20px 0 0;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    color: var(--color-muted);
    font-size: 14px;
    text-align: center;
}

.check-list {
    display: grid;
    gap: 11px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-right: 26px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #91d6c2;
    font-weight: 900;
}

.check-list--compact {
    margin-top: 16px;
    color: var(--color-text);
}

.check-list--compact li::before {
    color: var(--color-primary);
}

.registration-steps {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.registration-steps div {
    display: grid;
    gap: 2px;
    border-right: 2px solid #579b89;
    padding-right: 14px;
}

.registration-steps span {
    color: #c7dcd6;
    font-size: 14px;
}

.context-note {
    margin: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 18px;
    font-size: 13px;
}

.agreement-section {
    min-width: 0;
    margin: 4px 0 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
}

.agreement-section legend {
    padding: 0 8px;
    font-weight: 900;
}

.agreement-section legend span {
    color: var(--color-muted);
    font-size: 12px;
}

.agreement-section > p {
    color: var(--color-muted);
    font-size: 14px;
}

.agreement-box {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fbfcfb;
    color: #40514c;
    font-size: 14px;
    line-height: 2;
    white-space: pre-line;
}

.agreement-box:focus {
    border-color: var(--color-primary);
    outline: 3px solid rgba(23, 107, 87, 0.12);
}

.agreement-checkbox {
    margin-top: 16px;
}

.status-page {
    max-width: 900px;
    margin-inline: auto;
}

.status-hero {
    border: 1px solid #d8e6e1;
    border-radius: 16px;
    padding: clamp(26px, 6vw, 54px);
    background: #edf7f3;
    text-align: center;
}

.status-hero__mark {
    width: 58px;
    height: 58px;
    display: block;
    margin: 0 auto 18px;
    border: 15px solid var(--color-primary-soft);
    border-radius: 50%;
    background: var(--color-primary);
}

.status-hero > p:not(.eyebrow) {
    max-width: 620px;
    margin-inline: auto;
    color: #52635e;
}

.status-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    background: #ffffff;
}

.status-hero__badge > span {
    color: var(--color-muted);
    font-size: 13px;
}

.pending-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    margin-top: 18px;
}

.support-card .btn {
    margin-top: 6px;
}

.account-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    border: 1px solid #c9e2d9;
    border-radius: 14px;
    padding: 26px;
    background: #edf7f3;
}

.account-status-card__label {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

.account-status-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.account-status-card h2 {
    margin: 4px 0;
}

.account-status-card p {
    margin-bottom: 0;
    color: #52635e;
}

.account-status-card__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.dashboard-section {
    margin-top: 34px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: grid;
    gap: 6px;
    border: 1px solid var(--color-border);
    border-top: 3px solid #b8c9c3;
    border-radius: var(--radius);
    padding: 20px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.metric-card--used {
    border-top-color: var(--color-warning);
}

.metric-card--available {
    border-top-color: var(--color-primary);
}

.metric-card__label,
.metric-card__note {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-card__value {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 900;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 18px;
    align-items: start;
}

.recent-orders {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.recent-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 18px;
    color: var(--color-text);
}

.recent-order:last-child {
    border-bottom: 0;
}

.recent-order:hover {
    background: #f9fbfa;
}

.recent-order > div:first-child,
.recent-order__meta {
    display: grid;
    gap: 4px;
}

.recent-order span {
    color: var(--color-muted);
    font-size: 13px;
}

.recent-order__meta {
    justify-items: end;
}

.next-step-card {
    border-radius: 14px;
    padding: 24px;
    background: var(--color-primary-dark);
    color: #ffffff;
}

.next-step-card .eyebrow {
    color: #a9e2d1;
}

.next-step-card p:not(.eyebrow) {
    color: #cfe0db;
}

.next-step-card__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.catalog-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: end;
    overflow: hidden;
    border: 1px solid #29384d;
    border-radius: var(--radius-panel);
    padding: clamp(28px, 5vw, 48px);
    background:
        radial-gradient(circle at 8% 15%, rgba(16, 185, 129, 0.13), transparent 30%),
        var(--brand-slate);
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.catalog-header::after {
    content: "";
    position: absolute;
    bottom: -86px;
    left: -48px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.catalog-header__copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.catalog-header .eyebrow {
    color: #6ee7b7;
}

.catalog-header h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 5vw, 44px);
}

.catalog-header__copy > p:not(.eyebrow) {
    max-width: 680px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 16px;
}

.catalog-header__helper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 650px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 16px;
}

.catalog-header__helper > span {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    margin-top: 8px;
    border-radius: 3px;
    background: var(--brand-mint);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.catalog-header__helper p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.catalog-header__helper strong {
    color: #e2e8f0;
}

.catalog-summary {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 0;
}

.catalog-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(203, 213, 225, 0.18);
    border-radius: 13px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
}

.catalog-summary dt {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.catalog-summary dd {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.catalog-results {
    margin-top: 38px;
}

.catalog-results__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.catalog-results__heading h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 25px);
}

.catalog-results__heading > p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px dashed #bfd2cb;
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(255, 255, 255, 0.7);
}

.empty-state__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border: 12px solid var(--color-primary-soft);
    border-radius: 50%;
    background: var(--color-primary);
}

.empty-state > div {
    flex: 1 1 auto;
}

.empty-state h2 {
    margin-bottom: 2px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.catalog-empty-state {
    margin-top: 28px;
    border-style: solid;
    border-radius: var(--radius-card);
    padding: clamp(28px, 5vw, 42px);
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
    border-color: #b8cbc4;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.product-card__media {
    position: relative;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(135deg, rgba(223, 247, 234, 0.7), rgba(248, 250, 252, 0.95));
}

.product-visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eaf2ef;
}

.product-visual--card {
    aspect-ratio: 4 / 3;
}

.product-visual--detail {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.product-visual--thumb {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    border-radius: var(--radius);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-visual--card img,
.product-visual--detail img {
    padding: clamp(12px, 3vw, 22px);
    background: rgba(248, 250, 252, 0.86);
    object-fit: contain;
}

.product-placeholder {
    position: relative;
    width: 76px;
    height: 76px;
    display: block;
}

.product-visual--thumb .product-placeholder {
    width: 38px;
    height: 38px;
    transform: scale(0.68);
}

.product-placeholder__box {
    position: absolute;
    right: 7px;
    bottom: 8px;
    width: 58px;
    height: 45px;
    border: 3px solid #438474;
    border-radius: 7px;
    background: #f9fcfb;
    box-shadow: inset 0 9px #d3e8e1;
}

.product-placeholder__box::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 50%;
    width: 3px;
    height: 45px;
    background: #438474;
}

.product-placeholder__leaf {
    position: absolute;
    top: 2px;
    right: 27px;
    width: 24px;
    height: 16px;
    border-radius: 100% 0 100% 0;
    background: var(--color-primary);
    transform: rotate(-16deg);
}

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.product-card__header {
    display: grid;
    gap: 7px;
}

.product-card__header h2 {
    margin: 0;
    min-height: 3.35em;
    display: -webkit-box;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__description {
    min-height: 5.8em;
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.availability-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--color-success-soft);
    color: #0f5132;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.product-card__media .availability-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.availability-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-success);
}

.availability-badge--unavailable {
    background: rgba(255, 255, 255, 0.94);
    color: #52635e;
}

.availability-badge--unavailable i {
    background: var(--color-muted-light);
}

.product-card__commercial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #dbe8e3;
    border-radius: 12px;
    background: #f7faf9;
}

.product-card__price,
.product-card__commission {
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 13px 14px;
}

.product-card__price > span,
.product-card__commission > span,
.product-card__commission > small {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
}

.product-card__price strong {
    color: var(--brand-teal);
    font-size: 20px;
    line-height: 1.45;
}

.product-card__price strong small {
    font-size: 11px;
    font-weight: 800;
}

.product-card__commission {
    min-width: 118px;
    border-right: 1px solid #dbe8e3;
}

.product-card__commission strong {
    color: var(--color-text);
    font-size: 18px;
}

.product-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.product-card__facts > div {
    display: grid;
    gap: 3px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 11px;
    background: var(--color-surface-muted);
}

.product-card__facts dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
}

.product-card__facts dd {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 900;
}

.fact-icon {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 1.5px solid var(--brand-teal);
    border-radius: 4px;
}

.fact-icon--stock::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 3px;
    left: 3px;
    height: 1.5px;
    background: var(--brand-teal);
    box-shadow: 0 3px var(--brand-teal);
}

.fact-icon--deadline {
    border-radius: 50%;
}

.fact-icon--deadline::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 6px;
    width: 1.5px;
    height: 5px;
    background: var(--brand-teal);
    transform-origin: bottom;
    transform: rotate(-35deg);
}

.product-card__note {
    display: grid;
    gap: 2px;
    margin: 0;
    border-right: 3px solid var(--brand-amber);
    border-radius: 8px;
    padding: 8px 11px;
    background: #fffbeb;
}

.product-card__note strong {
    color: #78510d;
    font-size: 11px;
}

.product-card__note p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #745f36;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__actions {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
}

.product-card__actions .btn {
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.16);
}

.btn__arrow {
    font-size: 18px;
    line-height: 1;
}

.breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 13px;
}

.product-detail-breadcrumb [aria-current="page"] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-detail {
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
        "visual intro"
        "visual decision"
        "description description"
        "next next";
    gap: 24px 32px;
    align-items: start;
    max-width: 1120px;
    margin-inline: auto;
}

.product-detail--short-description {
    grid-template-areas:
        "visual intro"
        "visual decision"
        "next next";
}

.product-detail > * {
    direction: rtl;
    min-width: 0;
}

.product-detail__intro {
    grid-area: intro;
    padding: 8px 2px 0;
}

.product-detail__status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.product-detail__status-row .eyebrow {
    margin: 0;
}

.product-detail__intro h1 {
    max-width: 720px;
    margin: 12px 0 4px;
    overflow-wrap: anywhere;
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.45;
}

.product-detail__producer {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.product-detail__summary {
    max-width: 700px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.95;
}

.product-detail__visual-column {
    position: sticky;
    top: 24px;
    grid-area: visual;
    display: grid;
    gap: 12px;
}

.product-detail__image-frame {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 10px;
    background: linear-gradient(145deg, #f8fafc, #e7f0ed);
    box-shadow: var(--shadow-card);
}

.product-detail__image-frame .product-visual {
    border: 1px solid rgba(203, 213, 225, 0.76);
    background: radial-gradient(circle at 50% 42%, #ffffff 0, #f8fafc 56%, #e8f1ee 100%);
}

.product-detail__image-frame .product-visual img {
    padding: clamp(12px, 2.5vw, 24px);
    background: transparent;
}

.product-detail__image-frame .product-placeholder {
    transform: scale(1.18);
}

.product-detail__trust-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d6e5df;
    border-radius: 12px;
    padding: 13px 14px;
    background: #f7faf9;
}

.product-detail__trust-icon {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-primary-soft);
}

.product-detail__trust-icon::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 12px;
    height: 7px;
    border-bottom: 2px solid var(--color-primary);
    border-left: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

.product-detail__trust-card strong {
    display: block;
    color: var(--brand-teal);
    font-size: 13px;
}

.product-detail__trust-card p {
    margin: 1px 0 0;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.7;
}

.product-decision-panel {
    grid-area: decision;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.product-decision-panel__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.product-decision-panel__heading .eyebrow,
.product-decision-panel__heading h2 {
    margin-bottom: 0;
}

.product-decision-panel__heading h2 {
    font-size: 21px;
}

.product-decision-panel__heading > span {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.product-detail__commercial {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid #d4e5de;
    border-radius: 13px;
    background: #f7faf9;
}

.product-detail__commercial > div {
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 16px;
}

.product-detail__commission {
    border-right: 1px solid #d4e5de;
}

.product-detail__commercial dt,
.detail-facts dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.product-detail__commercial dd,
.detail-facts dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 900;
}

.product-detail__price dd {
    color: var(--brand-teal);
    font-size: 26px;
}

.product-detail__commission dd {
    font-size: 21px;
}

.product-detail__commercial dd small {
    font-size: 12px;
}

.product-detail__commission > span {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.detail-facts > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    padding: 12px 13px;
    background: var(--color-surface-muted);
}

.detail-facts dt {
    display: flex;
    align-items: center;
    gap: 7px;
}

.detail-facts dd {
    color: var(--color-text-soft);
    font-size: 14px;
}

.commission-explainer,
.calculation-note,
.custody-note {
    margin: 18px 0 0;
    border-right: 3px solid var(--color-primary);
    padding: 10px 13px;
    background: #f7faf9;
    color: #52635e;
    font-size: 13px;
}

.handling-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 18px;
    border: 1px solid #f3d998;
    border-radius: var(--radius);
    padding: 13px 14px;
    background: #fffbeb;
}

.handling-note__icon {
    width: 25px;
    height: 25px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--color-warning-soft);
    color: #8a5a09;
    font-size: 13px;
    font-weight: 900;
}

.handling-note p {
    margin: 3px 0 0;
    color: #69532b;
    font-size: 14px;
}

.product-detail__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 10px;
    margin-top: 20px;
}

.product-detail__actions .btn {
    width: 100%;
}

.product-detail__actions .btn--primary {
    justify-content: space-between;
    box-shadow: 0 7px 18px rgba(22, 101, 52, 0.18);
}

.product-detail__action-helper {
    margin: 8px 2px 0;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.75;
}

.product-detail__description-section,
.product-next-steps {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.product-detail__description-section {
    grid-area: description;
}

.product-detail__description-section .eyebrow,
.product-detail__description-section h2 {
    margin-bottom: 3px;
}

.product-detail__description-section h2,
.product-next-steps h2 {
    font-size: 21px;
}

.product-detail__description-section > p:last-child {
    max-width: 850px;
    margin: 10px 0 0;
    color: var(--color-text-soft);
    line-height: 2.05;
    white-space: pre-line;
}

.product-next-steps {
    grid-area: next;
    display: grid;
    grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #ffffff, #f7faf9);
}

.product-next-steps__heading .eyebrow,
.product-next-steps__heading h2 {
    margin-bottom: 0;
}

.product-next-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-next-steps li {
    min-width: 0;
    border-right: 2px solid #b9d8cc;
    padding: 7px 10px;
}

.product-next-steps li > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--brand-teal);
    font-size: 12px;
    font-weight: 900;
}

.product-next-steps li p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 12px;
    line-height: 1.75;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
}

.order-form-card,
.financial-summary-card {
    margin: 0;
}

.order-product-summary,
.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-product-summary {
    margin-bottom: 22px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 18px;
}

.order-product-summary > div:last-child {
    display: grid;
}

.order-product-summary span {
    color: var(--color-muted);
    font-size: 13px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 13px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.payment-option > span {
    display: grid;
    gap: 2px;
}

.payment-option small {
    color: var(--color-muted);
    line-height: 1.7;
}

.financial-summary-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.financial-summary-card__header h2 {
    margin-bottom: 0;
}

.financial-summary-card__header > span {
    border-radius: 999px;
    padding: 4px 10px;
    background: #eef2f1;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.financial-summary {
    display: grid;
}

.financial-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.financial-row > div {
    display: grid;
}

.financial-row__label {
    font-weight: 700;
}

.financial-row__hint {
    color: var(--color-muted);
    font-size: 12px;
}

.financial-row__value {
    flex: 0 0 auto;
    text-align: left;
}

.financial-row--emphasis {
    margin-top: 6px;
    border: 0;
    border-radius: var(--radius);
    padding: 14px;
    background: var(--color-primary-soft);
}

.financial-row--emphasis .financial-row__value {
    color: var(--color-primary-dark);
    font-size: 19px;
}

.order-list {
    display: grid;
    gap: 18px;
}

.order-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.order-card__header,
.order-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.order-card__label {
    color: var(--color-muted);
    font-size: 12px;
}

.order-card__header h2 {
    margin: 1px 0;
    font-size: 20px;
}

.order-card__header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.order-card__amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-block: 1px solid var(--color-border);
    background: #fafcfb;
}

.order-card__amounts > div {
    display: grid;
    gap: 2px;
    padding: 14px 22px;
}

.order-card__amounts > div + div {
    border-right: 1px solid var(--color-border);
}

.order-card__amounts span {
    color: var(--color-muted);
    font-size: 12px;
}

.order-card__outstanding strong {
    color: #9b5d00;
}

.order-card__outstanding.is-clear strong {
    color: var(--color-success);
}

.order-card__guidance {
    display: flex;
    gap: 12px;
    margin: 18px 22px 0;
    border-radius: var(--radius);
    padding: 12px 14px;
    background: #f4f8f6;
}

.order-card__guidance-mark {
    color: var(--color-primary);
    font-weight: 900;
}

.order-card__guidance p {
    margin: 1px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.order-card__footer {
    align-items: center;
}

.order-card__footer > span {
    color: var(--color-muted);
    font-size: 13px;
}

.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.order-detail-header p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 20px;
    align-items: start;
}

.order-detail-aside {
    position: sticky;
    top: 100px;
}

.status-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-timeline__item {
    position: relative;
    display: grid;
    gap: 9px;
    color: var(--color-muted);
}

.status-timeline__item::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 16px;
    left: -16px;
    height: 2px;
    background: var(--color-border);
}

.status-timeline__item:last-child::after {
    display: none;
}

.status-timeline__marker {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    display: block;
    border: 4px solid #dce5e2;
    border-radius: 50%;
    background: #ffffff;
}

.status-timeline__item > div {
    display: grid;
    gap: 2px;
    padding-left: 10px;
}

.status-timeline__item strong {
    color: var(--color-text);
    font-size: 13px;
}

.status-timeline__item span:last-child {
    font-size: 11px;
}

.status-timeline__item.is-complete .status-timeline__marker {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.status-timeline__item.is-complete::after {
    background: #82bbaa;
}

.status-timeline__item.is-current .status-timeline__marker {
    border-color: var(--color-warning);
}

.order-items,
.custody-list {
    display: grid;
    gap: 10px;
}

.order-item,
.custody-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
}

.order-item__content {
    min-width: 0;
    display: grid;
    flex: 1 1 auto;
}

.order-item__content span {
    color: var(--color-muted);
    font-size: 13px;
}

.order-item__total {
    flex: 0 0 auto;
}

.custody-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.custody-item > div {
    display: grid;
}

.custody-item span,
.custody-item small {
    color: var(--color-muted);
}

.final-status-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    background: var(--color-surface);
}

.final-status-card--success {
    border-color: #b8dfc8;
    background: var(--color-success-soft);
}

.final-status-card--warning {
    border-color: #edd49c;
    background: var(--color-warning-soft);
}

.final-status-card--danger {
    border-color: #edc2c7;
    background: var(--color-danger-soft);
}

.final-status-card p {
    margin-bottom: 0;
}

.deadline-card {
    display: grid;
    gap: 4px;
}

.deadline-card > span {
    color: var(--color-muted);
    font-size: 13px;
}

.deadline-card > strong {
    font-size: 20px;
}

.deadline-card p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.status-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-badge--pending,
.status-badge--waiting_for_cash_confirmation,
.status-badge--returned,
.status-badge--overdue {
    background: var(--color-warning-soft);
    color: #83550e;
}

.status-badge--active,
.status-badge--approved,
.status-badge--handed_to_seller,
.status-badge--settled {
    background: var(--color-success-soft);
    color: #0f5132;
}

.status-badge--rejected,
.status-badge--suspended,
.status-badge--cancelled {
    background: var(--color-danger-soft);
    color: #842029;
}

.status-badge--submitted,
.status-badge--default {
    background: #eef2f1;
    color: #52635e;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--color-border);
    padding: 14px;
    text-align: right;
    vertical-align: top;
}

th {
    background: #f8fbfa;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 900;
}

tr:last-child td {
    border-bottom: 0;
}

.table-empty {
    padding: 22px;
    color: var(--color-muted);
    text-align: center;
}

.admin-action-form {
    display: grid;
    gap: 8px;
    min-width: 210px;
}

.pagination {
    min-width: 0;
    margin: 0;
}

.pagination nav {
    direction: rtl;
}

.pagination nav > div:first-child {
    display: none;
}

.pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination nav > div:last-child > div:first-child {
    display: none;
}

.pagination nav > div:last-child > div:last-child > span {
    display: inline-flex;
    direction: rtl;
    gap: 4px;
    box-shadow: none;
}

.pagination a,
.pagination [aria-current="page"] > span,
.pagination [aria-disabled="true"] > span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 7px 11px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 800;
}

.pagination a:hover {
    border-color: #a7c8bc;
    background: var(--color-primary-soft);
    color: var(--brand-teal);
}

.pagination [aria-current="page"] > span {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #ffffff;
}

.pagination [aria-disabled="true"] > span {
    color: var(--color-muted-light);
    cursor: not-allowed;
}

.pagination svg {
    width: 18px;
    height: 18px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
}

.catalog-pagination > p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hero .eyebrow {
    color: #6ee7b7;
}

.hero .btn--secondary {
    border-color: #475569;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.hero .btn--secondary:hover {
    border-color: #94a3b8;
    background: rgba(255, 255, 255, 0.12);
}

.operational-preview {
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--brand-slate);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.operational-preview__top,
.operational-preview__credit,
.operational-preview__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.operational-preview__top > div,
.operational-preview__credit > div {
    display: grid;
}

.operational-preview__top span,
.operational-preview__credit span,
.operational-preview__grid span,
.operational-preview__order span {
    color: var(--color-muted);
    font-size: 11px;
}

.live-chip,
.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--brand-mint-soft);
    color: var(--brand-green) !important;
    font-weight: 800;
    white-space: nowrap;
}

.live-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-mint);
}

.operational-preview__credit {
    position: relative;
    margin-top: 16px;
    border-radius: 13px;
    padding: 16px 16px 25px;
    background: var(--brand-charcoal);
    color: #ffffff;
}

.operational-preview__credit span {
    color: #94a3b8;
}

.operational-preview__credit strong {
    font-size: 21px;
}

.mini-progress {
    position: absolute;
    right: 16px;
    bottom: 12px;
    left: 16px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #475569;
}

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

.operational-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.operational-preview__grid > div {
    display: grid;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
}

.operational-preview__grid small {
    color: var(--color-muted);
    font-size: 9px;
}

.operational-preview__order {
    margin-top: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 13px;
}

.operational-preview__order > div {
    display: grid;
    flex: 1;
}

.package-symbol {
    position: relative;
    width: 38px;
    height: 34px;
    display: inline-block;
    flex: 0 0 auto;
    border: 2px solid var(--brand-teal);
    border-radius: 5px;
    background: var(--brand-mint-soft);
}

.package-symbol::before {
    content: "";
    position: absolute;
    top: -2px;
    right: 50%;
    width: 2px;
    height: 34px;
    background: var(--brand-teal);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-step {
    position: relative;
    min-width: 0;
    padding-left: 24px;
}

.process-step::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 42px;
    left: -4px;
    height: 1px;
    background: var(--color-border-strong);
}

.process-step:last-child::after {
    display: none;
}

.process-step__number {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 5px solid var(--color-background);
    border-radius: 50%;
    background: var(--brand-charcoal);
    color: #ffffff;
    font-weight: 800;
}

.process-step h3 {
    font-size: 16px;
}

.process-step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.trust-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.trust-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 23px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.trust-card h3 {
    margin-top: 18px;
}

.trust-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.line-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 11px;
    background: var(--brand-mint-soft);
}

.line-icon::before,
.line-icon::after {
    content: "";
    position: absolute;
    border: 2px solid var(--brand-teal);
}

.line-icon--credit::before {
    inset: 11px 8px;
    border-radius: 4px;
}

.line-icon--credit::after {
    top: 17px;
    right: 8px;
    left: 8px;
    border-width: 2px 0 0;
}

.line-icon--package::before {
    inset: 9px;
    border-radius: 3px;
}

.line-icon--package::after {
    top: 9px;
    bottom: 9px;
    right: 20px;
    border-width: 0 2px 0 0;
}

.line-icon--settlement::before {
    inset: 8px 11px;
    border-radius: 3px;
}

.line-icon--settlement::after {
    width: 8px;
    height: 4px;
    right: 16px;
    bottom: 13px;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.operations-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
}

.operations-section__copy > p:not(.eyebrow) {
    color: var(--color-muted);
}

.operations-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.operations-list li {
    position: relative;
    padding-right: 22px;
    color: var(--color-text-soft);
}

.operations-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand-mint);
}

.operations-ledger {
    border: 1px solid #334155;
    border-radius: var(--radius-card);
    padding: 22px;
    background: var(--brand-charcoal);
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.operations-ledger__head,
.ledger-step,
.operations-ledger__amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.operations-ledger__head {
    margin-bottom: 18px;
}

.operations-ledger__head span,
.ledger-step small,
.operations-ledger__amount span {
    color: #94a3b8;
    font-size: 12px;
}

.ledger-step {
    position: relative;
    justify-content: flex-start;
    min-height: 50px;
    border-top: 1px solid #334155;
}

.ledger-step i {
    width: 10px;
    height: 10px;
    border: 2px solid #64748b;
    border-radius: 50%;
}

.ledger-step span {
    flex: 1;
    font-size: 14px;
}

.ledger-step.is-done i {
    border-color: var(--brand-mint);
    background: var(--brand-mint);
}

.ledger-step.is-current i {
    border-color: var(--brand-amber);
}

.operations-ledger__amount {
    margin-top: 8px;
    border-radius: 10px;
    padding: 13px;
    background: #0f172a;
}

.operations-ledger__amount strong {
    color: #6ee7b7;
}

.gateway-summary {
    border: 1px solid rgba(203, 213, 225, 0.2);
    border-radius: var(--radius-card);
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
}

.gateway-summary__status {
    display: inline-flex;
    margin-bottom: 15px;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--brand-mint-soft);
    color: var(--brand-green);
    font-size: 12px;
    font-weight: 800;
}

.gateway-summary__status--pending {
    background: var(--color-warning-soft);
    color: #92400e;
}

.gateway-summary strong {
    display: block;
    font-size: 18px;
}

.gateway-summary p,
.gateway-summary li {
    color: #cbd5e1;
    font-size: 13px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: var(--radius-panel);
    padding: clamp(24px, 5vw, 42px);
    background: var(--brand-slate);
    color: #ffffff;
}

.workspace-header .eyebrow {
    color: #6ee7b7;
}

.workspace-header p {
    margin-bottom: 0;
    color: #cbd5e1;
}

.workspace-header__status {
    min-width: 210px;
    display: grid;
    gap: 7px;
    border-right: 1px solid #334155;
    padding-right: 22px;
}

.workspace-header__status > span,
.workspace-header__status small {
    color: #94a3b8;
}

.workspace-header__status .status-badge {
    width: max-content;
}

.credit-progress-card {
    border: 1px solid #334155;
    border-radius: var(--radius-card);
    padding: 22px;
    background: var(--brand-charcoal);
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.credit-progress-card__heading,
.credit-progress-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.credit-progress-card__heading > div {
    display: grid;
}

.credit-progress-card__heading span,
.credit-progress-card__footer {
    color: #94a3b8;
    font-size: 12px;
}

.credit-progress-card__heading strong {
    color: #6ee7b7;
    font-size: clamp(22px, 4vw, 31px);
}

.credit-progress {
    height: 9px;
    overflow: hidden;
    margin: 18px 0 10px;
    border-radius: 999px;
    background: #475569;
}

.credit-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-mint), var(--brand-amber));
}

.metrics-grid--compact {
    margin-top: 12px;
}

.dashboard-operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 18px;
    align-items: stretch;
}

.priority-list {
    display: grid;
    gap: 10px;
}

.priority-action {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 14px;
    background: var(--color-warning-soft);
    color: var(--color-text);
}

.priority-action:hover {
    color: var(--color-text);
}

.priority-action__mark,
.status-guidance__mark {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-amber);
}

.priority-action > div {
    display: grid;
    flex: 1;
}

.priority-action span {
    color: var(--color-muted);
    font-size: 12px;
}

.priority-action__arrow {
    font-size: 19px !important;
}

.priority-action--danger {
    border-color: #fecaca;
    background: var(--color-danger-soft);
}

.priority-action--danger .priority-action__mark {
    background: var(--color-danger);
}

.priority-action--info {
    border-color: #bfdbfe;
    background: var(--color-info-soft);
}

.priority-action--info .priority-action__mark {
    background: var(--color-info);
}

.status-guidance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px;
    background: var(--color-info-soft);
}

.status-guidance__mark {
    margin-top: 7px;
    background: var(--color-info);
}

.status-guidance p {
    margin: 2px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.status-guidance--success {
    border-color: #bbf7d0;
    background: var(--color-success-soft);
}

.status-guidance--success .status-guidance__mark {
    background: var(--color-success);
}

.custody-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-subtle);
}

.custody-summary > strong {
    margin-top: 12px;
    color: var(--brand-teal);
    font-size: 34px;
}

.custody-summary h2 {
    font-size: 18px;
}

.custody-summary p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 13px;
}

.custody-summary .btn {
    margin-top: auto;
}

.product-placeholder {
    width: min(74%, 220px);
    height: min(68%, 132px);
    display: grid;
    place-items: end center;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background:
        linear-gradient(#e2e8f0 1px, transparent 1px) 0 70% / 100% 22px,
        var(--color-background-soft);
}

.product-placeholder__shelf {
    position: absolute;
    right: 18%;
    bottom: 31%;
    left: 18%;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-charcoal);
    box-shadow: 0 24px var(--brand-charcoal);
}

.product-placeholder__box {
    right: auto;
    bottom: 38%;
    width: 56px;
    height: 43px;
    border-color: var(--brand-teal);
    background: var(--brand-mint-soft);
    box-shadow: inset 0 9px #a7f3d0;
}

.product-placeholder__box::before {
    background: var(--brand-teal);
}

.product-placeholder__label {
    position: relative;
    z-index: 2;
    margin-bottom: 9px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
}

.product-visual--thumb .product-placeholder {
    width: 100%;
    height: 100%;
    transform: none;
}

.product-visual--thumb .product-placeholder__shelf {
    display: none;
}

.product-visual--thumb .product-placeholder__box {
    bottom: 22px;
    width: 30px;
    height: 24px;
}

.product-visual--thumb .product-placeholder__label {
    display: none;
}

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

.order-card__guidance.status-guidance {
    margin: 18px 22px 0;
}

.order-card__dates {
    display: grid;
    color: var(--color-muted);
    font-size: 12px;
}

@media (max-width: 920px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .trust-panel,
    .auth-layout,
    .registration-layout,
    .dashboard-grid,
    .order-detail-grid,
    .operations-section,
    .dashboard-operations-grid,
    .catalog-header {
        grid-template-columns: 1fr;
    }

    .catalog-header {
        gap: 24px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero__assurance {
        max-width: 520px;
    }

    .auth-context,
    .registration-context,
    .order-detail-aside {
        position: static;
    }

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

    .trust-grid article {
        padding: 68px 20px 20px;
    }

    .trust-icon {
        right: 20px;
    }

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

    .product-detail {
        grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
        gap: 20px;
    }

    .product-next-steps {
        grid-template-columns: 1fr;
    }

    .product-next-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --space-page-x: 14px;
    }

    body {
        font-size: 15px;
    }

    .site-header {
        position: static;
    }

    .site-nav {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-footer__inner,
    .site-footer__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__links {
        justify-content: flex-start;
    }

    .brand small {
        display: none;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 3px;
    }

    .nav-link {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .nav-actions > .btn {
        width: 100%;
        margin-top: 4px;
    }

    .nav-logout {
        margin-right: auto;
    }

    .page-shell {
        padding-top: 22px;
        padding-bottom: 42px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .card {
        padding: 18px;
    }

    .catalog-header {
        border-radius: 14px;
        padding: 26px 20px;
    }

    .catalog-header h1 {
        font-size: 30px;
    }

    .catalog-header__copy > p:not(.eyebrow) {
        font-size: 14px;
    }

    .catalog-results {
        margin-top: 30px;
    }

    .catalog-results__heading {
        display: block;
    }

    .catalog-results__heading > p {
        margin-top: 7px;
        white-space: normal;
    }

    .hero {
        gap: 24px;
        border-radius: 12px;
        padding: 26px 20px;
    }

    .hero__content h1 {
        font-size: 30px;
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__actions .btn,
    .closing-cta .btn {
        width: 100%;
    }

    .pilot-affiliation img {
        width: 72px;
        height: 72px;
    }

    .closing-cta__actions {
        width: 100%;
    }

    .landing-section {
        padding-top: 50px;
    }

    .steps-grid,
    .trust-grid,
    .trust-cards,
    .metrics-grid,
    .pending-grid,
    .detail-facts,
    .order-card__amounts,
    .operational-preview__grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .process-step {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 10px;
        padding: 0 0 20px;
    }

    .process-step::after {
        top: 38px;
        right: 19px;
        bottom: -4px;
        left: auto;
        width: 1px;
        height: auto;
    }

    .process-step__number {
        margin: 0;
    }

    .trust-grid article {
        padding: 22px 64px 22px 20px;
    }

    .closing-cta,
    .account-status-card,
    .account-status-card__actions,
    .workspace-header,
    .empty-state,
    .order-card__header,
    .order-card__footer,
    .order-detail-header,
    .final-status-card {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-header__status {
        width: 100%;
        border-top: 1px solid #334155;
        border-right: 0;
        padding-top: 18px;
        padding-right: 0;
    }

    .closing-cta {
        margin-top: 50px;
        padding: 24px 20px;
    }

    .auth-context,
    .registration-context {
        padding: 26px 22px;
    }

    .registration-card,
    .auth-card {
        padding: 20px 16px;
    }

    .agreement-section {
        padding: 14px 10px;
    }

    .agreement-box {
        max-height: 250px;
        padding: 13px;
    }

    .status-hero {
        padding: 28px 18px;
    }

    .account-status-card__actions .btn,
    .section-actions .btn,
    .empty-state .btn,
    .form-grid > .btn {
        width: 100%;
    }

    .section-heading--row {
        display: block;
    }

    .section-heading--row > p,
    .section-heading--row .text-link {
        display: block;
        margin-top: 8px;
    }

    .recent-order {
        align-items: flex-start;
        flex-direction: column;
    }

    .recent-order__meta {
        width: 100%;
        justify-items: start;
    }

    .empty-state {
        text-align: center;
    }

    .empty-state__icon {
        margin-inline: auto;
    }

    .product-grid,
    .order-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        gap: 18px;
    }

    .product-card__header h2,
    .product-card__description {
        min-height: 0;
    }

    .catalog-pagination {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .pagination nav > div:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .pagination nav > div:first-child > a,
    .pagination nav > div:first-child > span {
        min-height: 44px;
        flex: 1 1 50%;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        padding: 8px 14px;
        background: var(--color-surface);
        color: var(--color-text-soft);
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    .pagination nav > div:first-child > span {
        color: var(--color-muted-light);
    }

    .pagination nav > div:last-child {
        display: none;
    }

    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "visual"
            "decision"
            "description"
            "next";
        gap: 16px;
    }

    .product-detail--short-description {
        grid-template-areas:
            "intro"
            "visual"
            "decision"
            "next";
    }

    .product-detail__intro {
        padding-top: 0;
    }

    .product-detail__intro h1 {
        font-size: 29px;
    }

    .product-detail__summary {
        font-size: 15px;
        line-height: 1.9;
    }

    .product-detail__visual-column {
        position: static;
    }

    .product-detail__image-frame {
        padding: 7px;
    }

    .product-decision-panel,
    .product-detail__description-section,
    .product-next-steps {
        padding: 18px 16px;
    }

    .product-decision-panel__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .product-detail__commercial,
    .product-detail__actions {
        grid-template-columns: 1fr;
    }

    .product-detail__commission {
        border-top: 1px solid #d4e5de;
        border-right: 0;
    }

    .product-detail__actions .btn {
        min-height: 48px;
    }

    .product-next-steps ol {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .product-next-steps li {
        display: grid;
        grid-template-columns: 25px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        padding-block: 7px;
    }

    .product-next-steps li > span {
        margin-bottom: 0;
    }

    .financial-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .credit-progress-card__heading,
    .credit-progress-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .financial-row__value {
        text-align: right;
    }

    .order-card__amounts > div + div {
        border-top: 1px solid var(--color-border);
        border-right: 0;
    }

    .order-card__amounts--four {
        grid-template-columns: 1fr;
    }

    .order-card__header,
    .order-card__footer {
        padding: 18px;
    }

    .order-card__guidance {
        margin-inline: 18px;
    }

    .status-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .status-timeline__item {
        grid-template-columns: 22px 1fr;
        gap: 10px;
        padding-bottom: 18px;
    }

    .status-timeline__item::after {
        top: 16px;
        right: 8px;
        bottom: -2px;
        left: auto;
        width: 2px;
        height: auto;
    }

    .status-timeline__item > div {
        padding: 0;
    }

    .order-item,
    .custody-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .order-item__total {
        width: 100%;
        padding-right: 80px;
    }

    .pagination nav {
        overflow-x: auto;
    }
}

@media (max-width: 390px) {
    .catalog-summary,
    .product-card__commercial {
        grid-template-columns: 1fr;
    }

    .catalog-summary dd {
        font-size: 21px;
    }

    .product-card__commission {
        border-top: 1px solid #dbe8e3;
        border-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }
}
