@font-face {
    font-family: "primary-font";
    src: url("/fonts/iran-yekan-300.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "primary-font";
    src: url("/fonts/iran-yekan-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "primary-font";
    src: url("/fonts/iran-yekan-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "primary-font";
    src: url("/fonts/iran-yekan-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --orange: #f04f26;
    --orange-dark: #d83e18;
    --orange-soft: #fff0ea;
    --navy: #172b47;
    --navy-2: #233e61;
    --ink: #26384f;
    --muted: #718096;
    --surface: #edf2f7;
    --surface-2: #f6f8fb;
    --white: #ffffff;
    --green: #15966d;
    --red: #c84343;
    --yellow: #d99018;
    --shadow-dark: rgba(151, 164, 181, .42);
    --shadow-light: rgba(255, 255, 255, .95);
    --neo-highlight: rgba(255, 255, 255, .98);
    --neo-mid-shadow: rgba(137, 151, 169, .46);
    --neo-deep-shadow: rgba(93, 111, 132, .34);
    --neo-edge: #cbd4df;
    --neo-raised: linear-gradient(145deg, #f8fbff 0%, #e4eaf1 100%);
    --neo-raised-soft: linear-gradient(145deg, #f4f8fc 0%, #e6ecf3 100%);
    --neo-inset: inset 7px 7px 14px rgba(146, 160, 178, .38), inset -7px -7px 14px rgba(255, 255, 255, .96);
    --neo-raised-shadow: 18px 18px 36px var(--neo-mid-shadow), -16px -16px 32px var(--neo-highlight), inset 2px 2px 4px rgba(255, 255, 255, .85), inset -2px -2px 4px rgba(113, 130, 151, .14);
    --neo-raised-shadow-small: 8px 9px 18px var(--neo-mid-shadow), -8px -8px 17px var(--neo-highlight), inset 2px 2px 3px rgba(255, 255, 255, .8), inset -2px -2px 3px rgba(113, 130, 151, .13);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .96) 0, rgba(255, 255, 255, 0) 28rem),
        radial-gradient(circle at 88% 92%, rgba(189, 201, 215, .32) 0, rgba(189, 201, 215, 0) 32rem),
        linear-gradient(145deg, #f1f5f9 0%, var(--surface) 48%, #e4eaf1 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "primary-font", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.ltr { direction: ltr; text-align: left; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(237, 242, 247, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .65);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand img { width: 62px; height: 52px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.35; }
.brand strong { font-size: 16px; }
.brand small { color: var(--orange); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > a, .nav-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--navy);
    transition: .2s ease;
}
.main-nav > a:hover, .nav-button:hover { color: var(--orange); background: var(--surface-2); box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light); }
.main-nav form { margin: 0; }
.page-content { min-height: calc(100vh - 180px); padding-block: 36px 64px; }
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); }
.footer-inner { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner a { color: white; }

.neo-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.66);
    border-radius: var(--radius);
    box-shadow: 15px 15px 32px var(--shadow-dark), -15px -15px 32px var(--shadow-light);
}
.eyebrow { display: inline-flex; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.primary-button, .secondary-button {
    border: 0;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { background: linear-gradient(135deg, #fa6641, var(--orange)); color: white; box-shadow: 8px 8px 18px rgba(207, 63, 26, .25), -6px -6px 16px rgba(255,255,255,.9); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 10px 12px 22px rgba(207,63,26,.32), -6px -6px 16px rgba(255,255,255,.95); }
.secondary-button { background: var(--surface); color: var(--navy); box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light); }
.secondary-button:hover { color: var(--orange); transform: translateY(-2px); }
.full-width { width: 100%; }
.text-link { color: var(--orange); font-weight: 700; display: inline-flex; margin-top: 16px; }
.text-link.centered { justify-content: center; width: 100%; }

.neo-input {
    width: 100%;
    min-height: 50px;
    border: 0;
    outline: 0;
    border-radius: 15px;
    padding: 12px 16px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 5px 5px 11px rgba(166,177,190,.38), inset -5px -5px 11px rgba(255,255,255,.96);
    transition: box-shadow .2s, background .2s;
}
textarea.neo-input { resize: vertical; }
.neo-input:focus { background: var(--surface-2); box-shadow: inset 3px 3px 8px rgba(166,177,190,.35), inset -3px -3px 8px white, 0 0 0 3px rgba(240,79,38,.14); }
.neo-input[readonly] { color: #66758a; cursor: not-allowed; }
.form-stack { display: grid; gap: 12px; margin-top: 24px; }
.form-stack label, .form-grid label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field-error { color: var(--red); font-size: 12px; display: block; min-height: 2px; }
.validation-summary { color: var(--red); background: #fff0f0; padding: 12px 15px; border-radius: 14px; font-size: 13px; }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0; padding-right: 20px; }

.toast-stack { position: fixed; z-index: 100; top: 96px; left: 50%; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; }
.flash { margin: 0; padding: 14px 18px; border-radius: 16px; font-weight: 700; box-shadow: 6px 6px 15px var(--shadow-dark), -6px -6px 15px var(--shadow-light); pointer-events: auto; cursor: pointer; transition: opacity .25s ease, transform .25s ease; }
.flash.is-hiding { opacity: 0; transform: translateY(-12px); }
.flash-success { background: #e8f7f1; color: #147052; }
.flash-info { background: #e8f1fb; color: #2f5f91; }
.flash-error { background: #fff0f0; color: #a93636; }

.auth-stage { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; align-items: stretch; gap: 50px; }
.auth-visual { position: relative; border-radius: 32px; padding: 68px 56px; overflow: hidden; color: white; background: radial-gradient(circle at 20% 20%, #34577f 0, var(--navy) 42%, #0f2036 100%); box-shadow: 18px 18px 35px rgba(118,132,151,.46), -14px -14px 30px white; }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(240,79,38,.19); }
.auth-visual::before { width: 330px; height: 330px; left: -120px; bottom: -130px; }
.auth-visual::after { width: 180px; height: 180px; right: -40px; top: -45px; }
.auth-visual .eyebrow { color: #ff9c80; }
.auth-visual h1 { max-width: 580px; font-size: clamp(32px, 4vw, 55px); line-height: 1.35; margin: 20px 0 16px; position: relative; z-index: 2; }
.auth-visual p { max-width: 550px; color: rgba(255,255,255,.78); font-size: 16px; position: relative; z-index: 2; }
.visual-tank { position: absolute; width: 330px; left: 28px; bottom: -28px; opacity: .9; }
.visual-tank svg { width: 100%; fill: rgba(255,255,255,.04); stroke: #ff7652; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.auth-card { align-self: center; padding: 34px; max-width: 510px; width: 100%; margin-inline: auto; }
.auth-card h2 { color: var(--navy); margin: 26px 0 5px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; background: var(--surface); border-radius: 16px; box-shadow: inset 4px 4px 9px rgba(166,177,190,.36), inset -4px -4px 9px white; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 11px; border-radius: 12px; }
.tab.active { color: white; background: var(--orange); box-shadow: 4px 5px 10px rgba(215,66,28,.23); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.input-action { display: flex; gap: 10px; }
.input-action .neo-input { flex: 1; }
.scan-button { width: 52px; flex: 0 0 52px; border: 0; border-radius: 15px; background: var(--surface); color: var(--orange); font-size: 27px; box-shadow: 6px 6px 13px var(--shadow-dark), -6px -6px 13px var(--shadow-light); }
.captcha-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.captcha-question { min-height: 50px; display: flex; align-items: center; justify-content: center; direction: ltr; border-radius: 15px; color: var(--navy); font-weight: 800; letter-spacing: 2px; background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 8px, #edf2f7 8px, #edf2f7 16px); box-shadow: inset 4px 4px 8px rgba(166,177,190,.25), inset -4px -4px 8px white; }

.center-stage { min-height: 570px; display: flex; align-items: center; justify-content: center; }
.center-stage.top-tight { min-height: auto; padding-top: 18px; }
.compact-card { width: min(500px, 100%); padding: 42px; }
.compact-card h1 { color: var(--navy); margin: 12px 0; font-size: 28px; }
.step-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #ff724f, var(--orange)); font-size: 30px; box-shadow: 9px 9px 19px rgba(205,63,28,.27), -7px -7px 18px white; }
.otp-input { font-size: 27px; text-align: center; letter-spacing: 9px; }
.dev-code { margin: 18px 0; padding: 11px; background: #fff8d9; color: #755f0a; border-radius: 12px; }
.form-card { width: min(590px, 100%); padding: 38px; }
.form-card.wide-card { width: min(850px, 100%); }
.product-mark { width: 76px; height: 76px; display: grid; place-items: center; margin: -72px auto 20px; border-radius: 22px; color: white; background: var(--orange); font-size: 31px; box-shadow: 9px 9px 19px rgba(205,63,28,.24), -8px -8px 18px white; }
.help-note { margin-top: 18px; padding: 12px; text-align: center; color: var(--muted); font-size: 12px; border-radius: 12px; background: rgba(255,255,255,.4); }

.scanner-modal { position: fixed; inset: 0; z-index: 100; background: rgba(13,27,44,.7); padding: 20px; display: grid; place-items: center; }
.scanner-modal[hidden] { display: none; }
.scanner-dialog { width: min(520px, 100%); padding: 28px; position: relative; text-align: center; }
.scanner-dialog video { width: 100%; max-height: 430px; border-radius: 18px; background: #101820; margin-top: 15px; }
.modal-close { position: absolute; left: 18px; top: 14px; border: 0; background: transparent; font-size: 30px; color: var(--navy); }

.page-hero { text-align: center; max-width: 850px; margin: 0 auto 40px; }
.page-hero.small-hero { margin-bottom: 34px; }
.page-hero h1 { color: var(--navy); margin: 8px 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.4; }
.page-hero p { color: var(--muted); margin: 0; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto 42px; background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: inset 5px 5px 10px rgba(166,177,190,.33), inset -5px -5px 10px white; }
.progress-steps span { text-align: center; padding: 10px 6px; color: var(--muted); font-size: 12px; border-radius: 12px; }
.progress-steps .done { color: var(--green); }
.progress-steps .active { color: white; background: var(--orange); box-shadow: 4px 5px 11px rgba(206,63,28,.23); }

.split-content { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.sticky-card { position: sticky; top: 108px; }
.product-summary { padding: 28px; text-align: center; }
.tank-symbol { width: 90px; height: 90px; margin: 18px auto; border-radius: 28px; display: grid; place-items: center; background: var(--navy); color: #ff8768; font-size: 38px; box-shadow: 8px 8px 18px var(--shadow-dark), -7px -7px 17px white; }
.product-summary h2 { margin: 10px 0 20px; color: var(--navy); }
.product-summary dl { margin: 0; display: grid; gap: 11px; text-align: right; }
.product-summary dl div { padding: 12px 0; border-bottom: 1px solid rgba(113,128,150,.16); }
.product-summary dt { color: var(--muted); font-size: 11px; }
.product-summary dd { margin: 3px 0 0; font-weight: 700; }
.content-column { min-width: 0; }
.article-card, .form-section, .detail-panel, .dashboard-panel { padding: 28px; margin-bottom: 26px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.section-heading > span { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--orange); color: white; font-weight: 800; box-shadow: 5px 5px 11px rgba(206,63,28,.22), -5px -5px 12px white; }
.section-heading h1, .section-heading h2, .panel-heading h2 { margin: 0; color: var(--navy); font-size: 20px; }
.section-heading p, .panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.rich-text { background: rgba(255,255,255,.35); padding: 20px; border-radius: 17px; color: #42546a; }
.rich-text p:first-child { margin-top: 0; }
.check-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px white; cursor: pointer; }
.check-card input { accent-color: var(--orange); width: 20px; height: 20px; margin-top: 4px; }
.action-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; }
.action-bar.inner { margin-top: 22px; }

.registration-form { max-width: 1050px; margin: 0 auto; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary-strip > div { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 4px 9px rgba(166,177,190,.3), inset -4px -4px 9px white; }
.summary-strip small { display: block; color: var(--muted); margin-bottom: 4px; }
.summary-strip strong { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.upload-card { position: relative; min-height: 190px; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: inset 5px 5px 12px rgba(166,177,190,.35), inset -5px -5px 12px white; cursor: pointer; }
.upload-card.invoice-card { grid-column: span 2; }
.upload-card input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3; }
.upload-placeholder { height: 100%; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--orange); font-size: 28px; padding: 14px; text-align: center; }
.upload-placeholder b { color: var(--navy); font-size: 13px; }
.upload-placeholder small { color: var(--muted); font-size: 10px; }
.upload-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-card .field-error { position: absolute; z-index: 4; bottom: 5px; right: 6px; left: 6px; padding: 2px 5px; background: rgba(255,255,255,.9); border-radius: 8px; }

.dashboard-head, .detail-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.dashboard-head h1, .detail-head h1 { color: var(--navy); margin: 6px 0; font-size: 34px; }
.dashboard-head p, .detail-head p { margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 26px; }
.stat-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 34px; color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 26px; align-items: start; }
.dashboard-panel { margin-bottom: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(113,128,150,.14); padding-bottom: 16px; margin-bottom: 18px; }
.request-list { display: grid; gap: 13px; }
.request-card { display: grid; grid-template-columns: 56px 1fr auto 22px; align-items: center; gap: 14px; padding: 15px; border-radius: 18px; background: var(--surface); box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px white; transition: .2s; }
.request-card:hover { transform: translateY(-2px); }
.request-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--navy); color: #ff8060; font-size: 24px; }
.request-main { min-width: 0; display: flex; flex-direction: column; }
.request-main strong { color: var(--navy); }
.request-main span { font-size: 12px; color: #53667c; }
.request-main small { color: var(--muted); }
.request-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.request-meta small { color: var(--muted); }
.chevron { color: var(--orange); font-size: 28px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill.large { padding: 9px 17px; font-size: 13px; }
.status-approved { color: #0c7855; background: #dff5ed; }
.status-rejected { color: #a43131; background: #ffe6e6; }
.status-correction { color: #94610c; background: #fff0cc; }
.status-review { color: #2a6093; background: #e3effb; }
.status-muted { color: #637083; background: #e4e9ef; }
.notification-list { display: grid; gap: 10px; }
.notification-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.36); border-right: 3px solid #b9c4d1; }
.notification-item.unread { border-color: var(--orange); }
.notification-item strong { font-size: 13px; color: var(--navy); }
.notification-item p { margin: 3px 0; color: #5a6c80; font-size: 11px; }
.notification-item small { color: var(--muted); font-size: 10px; }
.profile-mini { padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: white; font-weight: 800; }
.profile-mini > div:nth-child(2) { display: flex; flex-direction: column; }
.profile-mini span { color: var(--muted); font-size: 10px; }
.profile-mini a { color: var(--orange); font-size: 12px; font-weight: 700; }
.empty-state { padding: 45px 20px; text-align: center; }
.empty-state > div { font-size: 45px; color: var(--orange); }
.empty-state h3 { color: var(--navy); }
.empty-state p { color: var(--muted); }

.back-link { color: var(--orange); font-size: 13px; font-weight: 700; }
.attention-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding: 18px 22px; border-radius: 18px; background: #fff2d7; color: #785315; box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px white; }
.attention-box.danger { background: #ffe8e8; color: #8e3232; }
.attention-box p { margin: 4px 0 0; }
.warranty-certificate { margin-bottom: 26px; padding: 24px 28px; display: grid; grid-template-columns: 70px 1fr 120px; align-items: center; gap: 20px; border: 2px solid rgba(21,150,109,.28); background: linear-gradient(135deg,#edf7f3,var(--surface)); }
.certificate-seal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 27px; }
.warranty-certificate span { color: var(--green); font-weight: 800; }
.warranty-certificate h2 { margin: 3px 0; color: var(--navy); }
.warranty-certificate p { margin: 0; color: var(--muted); }
.warranty-certificate img { width: 110px; justify-self: end; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }
.data-grid { margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.data-grid > div { padding: 13px 15px; border-radius: 15px; background: rgba(255,255,255,.34); }
.data-grid .span-2 { grid-column: span 2; }
.data-grid dt { color: var(--muted); font-size: 10px; }
.data-grid dd { margin: 3px 0 0; color: var(--navy); font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.media-card { position: relative; border-radius: 17px; overflow: hidden; min-height: 170px; background: #dfe6ee; box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px white; }
.media-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.media-card span { position: absolute; right: 8px; bottom: 8px; left: 8px; background: rgba(18,36,57,.77); color: white; border-radius: 10px; padding: 5px 8px; font-size: 11px; }
.file-symbol { height: 170px; display: grid; place-items: center; color: var(--orange); font-size: 28px; font-weight: 800; }
.message-thread { display: grid; gap: 12px; max-height: 430px; overflow-y: auto; padding: 4px; }
.message { max-width: 82%; padding: 12px 15px; border-radius: 17px; }
.message p { margin: 4px 0 0; }
.message small { color: var(--muted); font-size: 9px; }
.message.customer { justify-self: start; background: var(--navy); color: white; border-bottom-right-radius: 4px; }
.message.customer small { color: rgba(255,255,255,.62); }
.message.staff { justify-self: end; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.message.system { justify-self: center; background: var(--orange-soft); color: #8a3b22; text-align: center; max-width: 95%; }
.message-form { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.timeline { display: grid; gap: 0; margin-bottom: 22px; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; position: relative; padding-bottom: 18px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; right: 7px; top: 15px; bottom: -2px; width: 2px; background: #c8d2dd; }
.timeline-item i { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--orange); z-index: 1; }
.timeline-item div { display: flex; flex-direction: column; }
.timeline-item strong { color: var(--navy); font-size: 13px; }
.timeline-item span { color: var(--muted); font-size: 9px; }
.timeline-item p { margin: 5px 0 0; font-size: 11px; color: #596b80; }

/* Extruded 3D neumorphism: one consistent upper-left light source. */
.site-header {
    background: rgba(237, 242, 247, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 8px 0 rgba(174, 185, 199, .38), 0 18px 28px rgba(99, 116, 137, .2), inset 0 1px 0 white;
}
.brand img {
    filter: drop-shadow(5px 7px 5px rgba(86, 101, 120, .25)) drop-shadow(-3px -3px 3px rgba(255, 255, 255, .9));
}
.main-nav > a, .nav-button {
    border: 1px solid transparent;
}
.main-nav > a:hover, .nav-button:hover {
    background: var(--neo-raised-soft);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 0 #cbd4df, 6px 8px 14px rgba(118, 134, 154, .34), -5px -5px 12px white, inset 1px 1px 2px white;
    transform: translateY(-2px);
}
.main-nav > a:active, .nav-button:active {
    box-shadow: 0 1px 0 #cbd4df, inset 3px 3px 7px rgba(137, 151, 169, .28), inset -3px -3px 7px white;
    transform: translateY(2px);
}
.site-footer {
    background: linear-gradient(145deg, #203957, #10233a);
    border-top: 1px solid rgba(255, 255, 255, .2);
    box-shadow: inset 0 7px 13px rgba(255, 255, 255, .08), 0 -9px 22px rgba(86, 103, 123, .25);
}
.neo-card {
    background: var(--neo-raised);
    border: 1px solid rgba(255, 255, 255, .94);
    border-right-color: rgba(185, 197, 211, .75);
    border-bottom-color: rgba(177, 190, 205, .78);
    box-shadow: var(--neo-raised-shadow);
}
.primary-button, .secondary-button, .scan-button {
    will-change: transform;
}
.primary-button {
    border: 1px solid #ff876a;
    background: linear-gradient(145deg, #ff7958 0%, #f04f26 52%, #dc411d 100%);
    text-shadow: 0 1px 1px rgba(111, 31, 13, .38);
    box-shadow: 0 7px 0 #bd3413, 10px 13px 20px rgba(160, 54, 27, .34), -7px -8px 17px rgba(255, 255, 255, .92), inset 2px 2px 4px rgba(255, 255, 255, .42), inset -3px -3px 5px rgba(151, 39, 13, .3);
}
.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #bd3413, 12px 17px 24px rgba(160, 54, 27, .38), -8px -9px 18px white, inset 2px 2px 4px rgba(255, 255, 255, .46), inset -3px -3px 5px rgba(151, 39, 13, .3);
}
.primary-button:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 #a72c10, 4px 6px 11px rgba(160, 54, 27, .3), -3px -3px 8px white, inset 4px 4px 8px rgba(151, 39, 13, .28), inset -2px -2px 4px rgba(255, 255, 255, .3);
}
.secondary-button {
    border: 1px solid rgba(255, 255, 255, .92);
    background: var(--neo-raised-soft);
    box-shadow: 0 6px 0 var(--neo-edge), 9px 12px 20px var(--neo-mid-shadow), -8px -8px 18px var(--neo-highlight), inset 2px 2px 4px white, inset -2px -2px 4px rgba(107, 125, 146, .14);
}
.secondary-button:hover {
    box-shadow: 0 8px 0 var(--neo-edge), 11px 15px 23px var(--neo-mid-shadow), -9px -9px 19px white, inset 2px 2px 4px white, inset -2px -2px 4px rgba(107, 125, 146, .14);
}
.secondary-button:active, .scan-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #bcc7d3, 3px 5px 10px rgba(120, 136, 155, .34), inset 4px 4px 8px rgba(133, 148, 166, .3), inset -3px -3px 7px white;
}
.primary-button:focus-visible, .secondary-button:focus-visible, .scan-button:focus-visible, .tab:focus-visible, .main-nav a:focus-visible, .nav-button:focus-visible, .neo-input:focus-visible, .check-card:focus-within {
    outline: 3px solid rgba(240, 79, 38, .28);
    outline-offset: 4px;
}
.neo-input {
    border: 1px solid rgba(181, 193, 207, .66);
    border-top-color: rgba(159, 173, 190, .52);
    border-left-color: rgba(159, 173, 190, .52);
    background: linear-gradient(145deg, #e4eaf1, #f4f7fa);
    box-shadow: var(--neo-inset), 1px 1px 0 rgba(255, 255, 255, .88);
}
.neo-input:focus {
    background: linear-gradient(145deg, #e8edf3, #fafcff);
    box-shadow: inset 5px 5px 11px rgba(133, 148, 166, .36), inset -5px -5px 11px white, 0 0 0 4px rgba(240, 79, 38, .15), 6px 7px 14px rgba(124, 141, 161, .22);
}
.validation-summary, .dev-code {
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: inset 4px 4px 8px rgba(143, 155, 169, .16), inset -4px -4px 8px rgba(255, 255, 255, .55);
}
.flash, .attention-box {
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 5px 0 rgba(163, 176, 191, .65), var(--neo-raised-shadow-small);
}
.auth-visual {
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 11px 0 #0e1e32, 22px 27px 42px rgba(75, 91, 110, .46), -16px -16px 32px white, inset 3px 3px 7px rgba(255, 255, 255, .18), inset -5px -5px 10px rgba(3, 12, 24, .35);
}
.tabs, .progress-steps {
    border: 1px solid rgba(172, 185, 201, .6);
    background: linear-gradient(145deg, #e1e7ee, #f6f9fc);
    box-shadow: inset 7px 7px 14px rgba(139, 153, 171, .38), inset -7px -7px 14px white;
}
.tab {
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.tab.active, .progress-steps .active {
    border: 1px solid #ff8061;
    background: linear-gradient(145deg, #ff7453, #e5441e);
    text-shadow: 0 1px 1px rgba(100, 26, 9, .32);
    box-shadow: 0 4px 0 #bd3515, 6px 8px 13px rgba(158, 57, 31, .3), -4px -4px 10px rgba(255, 255, 255, .72), inset 2px 2px 3px rgba(255, 255, 255, .32), inset -2px -2px 4px rgba(130, 31, 11, .25);
    transform: translateY(-2px);
}
.scan-button {
    border: 1px solid rgba(255, 255, 255, .9);
    background: var(--neo-raised-soft);
    box-shadow: 0 5px 0 var(--neo-edge), var(--neo-raised-shadow-small);
}
.captcha-question, .summary-strip > div, .upload-card {
    border: 1px solid rgba(176, 189, 204, .64);
    background-color: #e8edf3;
    box-shadow: var(--neo-inset);
}
.step-icon, .product-mark, .section-heading > span, .avatar, .certificate-seal {
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 6px 0 #bd3515, 8px 11px 18px rgba(157, 55, 28, .32), -7px -7px 16px white, inset 2px 2px 4px rgba(255, 255, 255, .38), inset -3px -3px 5px rgba(128, 30, 10, .28);
}
.tank-symbol, .request-icon {
    border: 1px solid rgba(255, 255, 255, .22);
    background: linear-gradient(145deg, #294a70, #10233a);
    box-shadow: 0 6px 0 #0d1d2f, 8px 11px 18px rgba(95, 111, 130, .4), -7px -7px 16px white, inset 2px 2px 4px rgba(255, 255, 255, .18), inset -3px -3px 6px rgba(3, 12, 24, .32);
}
.help-note, .rich-text, .notification-item, .data-grid > div {
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(241, 245, 249, .58);
    box-shadow: inset 4px 4px 9px rgba(144, 158, 176, .22), inset -4px -4px 9px rgba(255, 255, 255, .86);
}
.check-card, .request-card, .profile-mini, .media-card {
    border: 1px solid rgba(255, 255, 255, .9);
    border-right-color: rgba(185, 197, 211, .72);
    border-bottom-color: rgba(177, 190, 205, .76);
    background: var(--neo-raised-soft);
    box-shadow: 0 5px 0 var(--neo-edge), var(--neo-raised-shadow-small);
}
.check-card:active, .request-card:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #bdc8d4, 4px 6px 11px rgba(125, 141, 160, .3), inset 3px 3px 7px rgba(137, 151, 169, .2), inset -3px -3px 7px white;
}
.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--neo-edge), 11px 15px 24px var(--neo-mid-shadow), -9px -9px 19px white, inset 2px 2px 3px white;
}
.status-pill {
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 3px 0 rgba(151, 164, 181, .48), 4px 5px 9px rgba(133, 148, 166, .22), -3px -3px 8px rgba(255, 255, 255, .8), inset 1px 1px 2px rgba(255, 255, 255, .55);
}
.warranty-certificate {
    border: 1px solid rgba(255, 255, 255, .92);
    border-right-color: rgba(21, 150, 109, .25);
    border-bottom: 6px solid rgba(21, 150, 109, .32);
    box-shadow: 14px 17px 28px rgba(117, 140, 144, .36), -12px -12px 25px white, inset 2px 2px 5px rgba(255, 255, 255, .78), inset -3px -3px 6px rgba(21, 150, 109, .1);
}
.message.customer {
    box-shadow: 0 4px 0 #0e1e32, 6px 8px 14px rgba(96, 112, 131, .32), inset 1px 1px 2px rgba(255, 255, 255, .16);
}
.message.staff, .message.system {
    box-shadow: 0 4px 0 #cbd4df, 6px 8px 14px rgba(119, 135, 154, .25), -4px -4px 10px white, inset 1px 1px 2px white;
}
.timeline-item i {
    box-shadow: 0 3px 0 #bd3515, 3px 5px 8px rgba(139, 54, 32, .25), 0 0 0 3px var(--surface), 0 0 0 5px var(--orange);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1000px) {
    .auth-stage { grid-template-columns: 1fr; }
    .auth-visual { min-height: 440px; }
    .auth-card { margin-top: -95px; position: relative; z-index: 3; }
    .split-content, .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .product-summary { display: grid; grid-template-columns: auto 1fr; text-align: right; column-gap: 20px; }
    .product-summary .eyebrow, .product-summary dl { grid-column: 1 / -1; }
    .tank-symbol { margin: 8px 0; }
    .upload-grid { grid-template-columns: repeat(2,1fr); }
    .detail-side { order: -1; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 22px, 1180px); }
    .header-inner { min-height: 68px; }
    .brand img { width: 50px; height: 43px; }
    .brand span { display: none; }
    .main-nav { gap: 2px; overflow-x: auto; }
    .main-nav > a, .nav-button { padding: 0 9px; font-size: 11px; white-space: nowrap; }
    .page-content { padding-top: 24px; }
    .auth-stage { gap: 20px; min-height: auto; }
    .auth-visual { min-height: 390px; padding: 42px 25px; }
    .auth-visual h1 { font-size: 31px; }
    .visual-tank { width: 220px; opacity: .65; }
    .auth-card, .compact-card, .form-card { padding: 24px 18px; }
    .captcha-row, .form-grid, .summary-strip, .stats-grid, .data-grid { grid-template-columns: 1fr; }
    .form-grid .span-2, .data-grid .span-2 { grid-column: span 1; }
    .progress-steps { overflow-x: auto; grid-template-columns: repeat(4, minmax(120px,1fr)); }
    .upload-grid, .media-grid { grid-template-columns: repeat(2,1fr); }
    .upload-card.invoice-card { grid-column: span 2; }
    .action-bar, .dashboard-head, .detail-head, .attention-box { flex-direction: column; align-items: stretch; }
    .action-bar > *, .dashboard-head > .primary-button, .attention-box .primary-button { width: 100%; }
    .request-card { grid-template-columns: 48px 1fr 20px; }
    .request-meta { grid-column: 2 / 3; align-items: flex-start; }
    .chevron { grid-column: 3; grid-row: 1 / 3; }
    .warranty-certificate { grid-template-columns: 55px 1fr; }
    .warranty-certificate img { display: none; }
    .message-form { grid-template-columns: 1fr; }
    .message { max-width: 94%; }
    .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 18px 0; }
    .neo-card { box-shadow: 11px 12px 24px rgba(137, 151, 169, .42), -9px -9px 20px rgba(255, 255, 255, .92), inset 2px 2px 4px white, inset -2px -2px 4px rgba(113, 130, 151, .12); }
    .site-header { box-shadow: 0 5px 0 rgba(174, 185, 199, .38), 0 12px 21px rgba(99, 116, 137, .18), inset 0 1px 0 white; }
}

@media (max-width: 480px) {
    .upload-grid, .media-grid { grid-template-columns: 1fr; }
    .upload-card.invoice-card { grid-column: span 1; }
    .tabs { grid-template-columns: 1fr; }
    .tab { min-height: 42px; }
    .product-summary { display: block; }
    .summary-strip > div { text-align: center; }
}

/* Refined tactile neumorphism: softer depth, stronger typography and calmer controls. */
body {
    background:
        radial-gradient(circle at 10% 4%, rgba(255, 255, 255, .82) 0, rgba(255, 255, 255, 0) 25rem),
        linear-gradient(145deg, #f2f5f8 0%, #edf1f5 52%, #e8edf2 100%);
}

.site-header {
    background: rgba(240, 244, 248, .92);
    border-bottom: 1px solid rgba(167, 181, 198, .28);
    box-shadow: 0 8px 24px rgba(85, 103, 125, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.header-inner { min-height: 76px; }
.brand { gap: 10px; }
.brand img {
    width: 57px;
    height: 48px;
    filter: drop-shadow(2px 3px 3px rgba(86, 101, 120, .18));
}
.brand strong { font-size: 15px; font-weight: 700; }
.brand small { font-size: 11px; font-weight: 500; }
.main-nav {
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: rgba(230, 236, 242, .68);
    box-shadow: inset 3px 3px 7px rgba(139, 153, 171, .16), inset -3px -3px 7px rgba(255, 255, 255, .72);
}
.main-nav > a, .nav-button {
    min-height: 40px;
    padding-inline: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
}
.main-nav > a:hover, .nav-button:hover {
    color: var(--orange-dark);
    background: rgba(255, 255, 255, .7);
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 3px 4px 9px rgba(104, 121, 141, .16), -2px -2px 6px rgba(255, 255, 255, .72);
    transform: translateY(-1px);
}
.main-nav > a:active, .nav-button:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px rgba(137, 151, 169, .2), inset -2px -2px 5px rgba(255, 255, 255, .74);
}

.neo-card {
    background: linear-gradient(145deg, #f5f8fb 0%, #e8edf2 100%);
    border: 1px solid rgba(255, 255, 255, .82);
    border-right-color: rgba(190, 201, 213, .54);
    border-bottom-color: rgba(184, 196, 208, .58);
    box-shadow: 10px 12px 26px rgba(123, 139, 158, .25), -8px -8px 22px rgba(255, 255, 255, .82), inset 1px 1px 2px rgba(255, 255, 255, .68);
}

.primary-button, .secondary-button {
    min-height: 50px;
    border-radius: 14px;
    font-weight: 700;
}
.primary-button {
    border: 1px solid #f66b48;
    background: linear-gradient(145deg, #f96844 0%, #f04f26 58%, #df421e 100%);
    text-shadow: 0 1px 1px rgba(111, 31, 13, .24);
    box-shadow: 0 3px 0 #c53a18, 5px 7px 14px rgba(160, 54, 27, .23), -4px -4px 12px rgba(255, 255, 255, .68), inset 1px 1px 2px rgba(255, 255, 255, .3);
}
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #c53a18, 7px 9px 16px rgba(160, 54, 27, .27), -4px -4px 12px rgba(255, 255, 255, .72), inset 1px 1px 2px rgba(255, 255, 255, .34);
}
.primary-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b83314, 2px 3px 7px rgba(160, 54, 27, .22), inset 2px 2px 5px rgba(151, 39, 13, .2);
}
.secondary-button {
    border: 1px solid rgba(255, 255, 255, .82);
    background: linear-gradient(145deg, #f4f7fa, #e5ebf1);
    box-shadow: 0 2px 0 #c7d1db, 5px 6px 13px rgba(122, 138, 157, .2), -4px -4px 12px rgba(255, 255, 255, .78);
}
.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #c7d1db, 6px 8px 15px rgba(122, 138, 157, .23), -4px -4px 12px rgba(255, 255, 255, .8);
}
.secondary-button:active, .scan-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #c0cad5, 2px 3px 7px rgba(120, 136, 155, .2), inset 2px 2px 5px rgba(133, 148, 166, .2);
}

.form-stack label, .form-grid label {
    color: #172b47;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    margin-bottom: 8px;
}
.neo-input {
    border-color: rgba(176, 189, 203, .58);
    background: linear-gradient(145deg, #e8edf2, #f5f7fa);
    box-shadow: inset 4px 4px 8px rgba(146, 160, 178, .25), inset -4px -4px 8px rgba(255, 255, 255, .78);
}
.neo-input::placeholder { color: #8592a3; opacity: 1; font-weight: 400; }
.neo-input:focus {
    background: #f7f9fb;
    box-shadow: inset 3px 3px 7px rgba(133, 148, 166, .22), inset -3px -3px 7px white, 0 0 0 3px rgba(240, 79, 38, .13);
}
.summary-strip small, .product-summary dt, .data-grid dt {
    color: #5f7085;
    font-weight: 600;
}
.upload-placeholder b, .request-main strong, .notification-item strong { font-weight: 700; }

.auth-visual {
    box-shadow: 12px 15px 30px rgba(75, 91, 110, .3), -9px -9px 24px rgba(255, 255, 255, .72), inset 2px 2px 5px rgba(255, 255, 255, .12), inset -3px -3px 7px rgba(3, 12, 24, .25);
}
.tabs, .progress-steps {
    box-shadow: inset 4px 4px 9px rgba(139, 153, 171, .24), inset -4px -4px 9px rgba(255, 255, 255, .8);
}
.tab { font-weight: 600; }
.tab.active, .progress-steps .active {
    box-shadow: 0 2px 0 #c23a18, 4px 5px 10px rgba(158, 57, 31, .2), inset 1px 1px 2px rgba(255, 255, 255, .24);
    transform: none;
}
.scan-button {
    border-color: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 0 #c7d1db, 4px 5px 11px rgba(122, 138, 157, .2), -3px -3px 9px rgba(255, 255, 255, .72);
}
.step-icon, .product-mark, .section-heading > span, .avatar, .certificate-seal {
    box-shadow: 0 3px 0 #c23a18, 5px 7px 13px rgba(157, 55, 28, .23), -4px -4px 11px rgba(255, 255, 255, .68), inset 1px 1px 2px rgba(255, 255, 255, .25);
}
.tank-symbol, .request-icon {
    box-shadow: 0 3px 0 #0d1d2f, 5px 7px 13px rgba(95, 111, 130, .26), -4px -4px 11px rgba(255, 255, 255, .64), inset 1px 1px 2px rgba(255, 255, 255, .12);
}
.check-card, .request-card, .profile-mini, .media-card {
    box-shadow: 0 2px 0 #c9d3dd, 5px 6px 13px rgba(123, 139, 158, .2), -4px -4px 11px rgba(255, 255, 255, .74);
}
.request-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #c9d3dd, 6px 8px 15px rgba(123, 139, 158, .23), -4px -4px 11px rgba(255, 255, 255, .76);
}
.flash, .attention-box { box-shadow: 0 2px 0 rgba(163, 176, 191, .48), 5px 7px 14px rgba(123, 139, 158, .2); }
.status-pill { box-shadow: 0 1px 0 rgba(151, 164, 181, .35), 2px 3px 6px rgba(133, 148, 166, .15); }
.warranty-certificate {
    border-bottom-width: 3px;
    box-shadow: 8px 10px 20px rgba(117, 140, 144, .22), -6px -6px 17px rgba(255, 255, 255, .76), inset 1px 1px 3px rgba(255, 255, 255, .55);
}
.message.customer, .message.staff, .message.system { box-shadow: 3px 4px 9px rgba(96, 112, 131, .17); }

@media (max-width: 760px) {
    .header-inner { min-height: 66px; gap: 8px; }
    .brand img { width: 48px; height: 41px; }
    .main-nav { padding: 3px; border-radius: 13px; }
    .main-nav > a, .nav-button { min-height: 36px; padding-inline: 9px; font-size: 11px; }
    .neo-card { box-shadow: 6px 8px 18px rgba(123, 139, 158, .22), -5px -5px 15px rgba(255, 255, 255, .76); }
    .site-header { box-shadow: 0 6px 17px rgba(85, 103, 125, .11), inset 0 1px 0 rgba(255, 255, 255, .86); }
    .auth-visual { box-shadow: 7px 9px 20px rgba(75, 91, 110, .24), -5px -5px 15px rgba(255, 255, 255, .62); }
}
