/* ═══════════════════════════════════════════════════════════
   Iroot Orders v2.5.0
   Font: IranYekanWeb | Primary: #44ACFF
═══════════════════════════════════════════════════════════ */

@font-face { font-family:'IranYekanWeb'; src:url('../fonts/IRANYEKANWEBLIGHT.TTF') format('truetype'); font-weight:300; }
@font-face { font-family:'IranYekanWeb'; src:url('../fonts/IRANYEKANWEBREGULAR.TTF') format('truetype'); font-weight:400; }
@font-face { font-family:'IranYekanWeb'; src:url('../fonts/IRANYEKANWEBBOLD.TTF') format('truetype'); font-weight:700; }

:root {
    --ir-primary:    oklch(58% .15 246);
    --ir-primary-dk: oklch(48% .16 246);
    --ir-primary-lt: oklch(96% .025 246);
    --ir-success:    oklch(62% .16 150);
    --ir-danger:     oklch(58% .19 25);
    --ir-warning:    oklch(72% .14 78);
    --ir-dark:       oklch(24% .025 246);
    --ir-text:       oklch(32% .025 246);
    --ir-muted:      oklch(55% .025 246);
    --ir-border:     oklch(90% .018 246);
    --ir-bg:         oklch(97% .012 246);
    --ir-white:      oklch(100% .005 246);
    --ir-radius:     12px;
    --ir-radius-sm:  8px;
    --ir-font:       'IranYekanWeb', Tahoma, Arial, sans-serif;
    --ir-shadow:     0 2px 12px rgba(0,0,0,.06);
    --ir-shadow-md:  0 4px 24px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@keyframes irFadeIn {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
}

.iroot-page {
    font-family: var(--ir-font);
    direction: rtl;
    background: var(--ir-bg);
    min-height: 80vh;
    color: var(--ir-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ════════════════════════════════════════
   AUTH FORM
════════════════════════════════════════ */
.iroot-auth-wrap {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: var(--ir-font);
    direction: rtl;
}
.iroot-auth-card {
    background: var(--ir-white);
    border-radius: 16px;
    box-shadow: var(--ir-shadow-md);
    padding: 32px 28px;
    text-align: center;
}
.iroot-auth-logo {
    width: 56px; height: 56px;
    background: var(--ir-primary-lt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 14px;
}
.iroot-auth-card h2 {
    font-size: 18px; font-weight: 700;
    color: var(--ir-dark); margin-bottom: 4px;
}
.iroot-auth-card .iroot-subtitle {
    font-size: 12px; color: var(--ir-muted); margin-bottom: 24px;
}
.iroot-auth-step { display: none; }
.iroot-auth-step.active { display: block; animation: irFadeIn .25s ease; }

/* phone chip */
.iroot-phone-chip {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--ir-primary-lt); border-radius: 99px;
    padding: 8px 14px; margin-bottom: 18px;
    font-size: 12px; color: var(--ir-primary-dk); font-weight: 600;
    text-align: right;
}
.iroot-edit-phone {
    background: none; border: none; color: var(--ir-primary);
    font-family: var(--ir-font); font-size: 11px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}

/* OTP کادرهای جداگانه */
.iroot-otp-digits {
    display: flex; justify-content: center;
    direction: ltr; /* جهت درست ورود عدد؛ بدون این، فلکس از راست به چپ می‌چید */
    gap: 10px; margin: 16px 0;
}
.iroot-otp-digit {
    width: 52px; height: 54px;
    border: 2px solid var(--ir-border);
    border-radius: 10px; background: var(--ir-bg);
    font-size: 22px; font-weight: 700; text-align: center;
    color: var(--ir-dark); font-family: var(--ir-font);
    outline: none; transition: all .2s;
    -webkit-appearance: none; -moz-appearance: textfield;
}
.iroot-otp-digit::-webkit-outer-spin-button,
.iroot-otp-digit::-webkit-inner-spin-button { -webkit-appearance: none; }
.iroot-otp-digit:focus {
    border-color: var(--ir-primary);
    background: var(--ir-white);
    box-shadow: 0 0 0 3px rgba(68,172,255,.15);
}
.iroot-otp-digit.filled {
    border-color: var(--ir-primary);
    background: var(--ir-white);
}
/* انیمیشن تأیید */
.iroot-otp-digit.success {
    animation: otpSuccess .4s ease forwards;
}
@keyframes otpSuccess {
    0%   { transform: scale(1); border-color: var(--ir-success); box-shadow: none; }
    50%  { transform: scale(1.12); border-color: var(--ir-success); box-shadow: 0 4px 14px rgba(34,197,94,.35); background: #f0fdf4; }
    100% { transform: scale(1.06); border-color: var(--ir-success); box-shadow: 0 2px 8px rgba(34,197,94,.25); background: #f0fdf4; }
}

.iroot-otp-timer-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 14px;
}
#iroot-otp-timer {
    font-size: 13px; font-weight: 700; color: var(--ir-muted);
}
.iroot-btn-text {
    background: none; border: none; color: var(--ir-primary);
    font-family: var(--ir-font); font-size: 12px; font-weight: 700;
    cursor: pointer; padding: 0;
}
.iroot-btn-text:disabled { color: var(--ir-muted); cursor: not-allowed; }

/* ════════════════════════════════════════
   FORM FIELDS — Underline Style
════════════════════════════════════════ */
.iroot-field {
    margin-bottom: 20px;
    text-align: right;
}
.iroot-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--ir-muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .3px;
}
.iroot-field .req { color: var(--ir-danger); }

/* underline inputs */
.iroot-field input:not([type="radio"]):not([type="checkbox"]):not(.iroot-otp-box),
.iroot-field select,
.iroot-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--ir-border);
    border-radius: 0;
    padding: 10px 2px;
    font-size: 14px; font-family: var(--ir-font);
    color: var(--ir-text); direction: rtl;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}
.iroot-field input:focus,
.iroot-field select:focus,
.iroot-field textarea:focus {
    border-bottom-color: var(--ir-primary);
}
.iroot-field input::placeholder,
.iroot-field textarea::placeholder { color: #b0bec5; }

/* error under field */
.iroot-field-error {
    font-size: 12px; color: var(--ir-danger);
    margin-top: 4px; display: none;
}

.iroot-field small {
    display: block; font-size: 11px;
    color: var(--ir-muted); margin-top: 4px;
}
.iroot-warning-text {
    font-size: 11px; color: var(--ir-warning);
    margin-top: 4px; display: block;
}
.iroot-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* auth fields — با border box */
.iroot-auth-card .iroot-field input,
.iroot-auth-card .iroot-field select {
    border: 1.5px solid var(--ir-border);
    border-radius: var(--ir-radius-sm);
    padding: 11px 14px;
    background: var(--ir-white);
}
.iroot-auth-card .iroot-field input:focus,
.iroot-auth-card .iroot-field select:focus {
    border-color: var(--ir-primary);
    box-shadow: 0 0 0 3px rgba(68,172,255,.12);
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.iroot-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 12px 24px; border-radius: var(--ir-radius-sm);
    font-size: 14px; font-weight: 700; font-family: var(--ir-font);
    border: none; cursor: pointer; transition: all .2s;
    text-decoration: none; white-space: nowrap;
}
.iroot-btn--primary  { background: var(--ir-primary); color: #fff; box-shadow: 0 3px 10px rgba(68,172,255,.3); }
.iroot-btn--primary:hover  { background: var(--ir-primary-dk); transform: translateY(-1px); }
.iroot-btn--secondary { background: var(--ir-bg); color: var(--ir-text); border: 1.5px solid var(--ir-border); }
.iroot-btn--secondary:hover { background: var(--ir-border); }
.iroot-btn--success  { background: var(--ir-success); color: #fff; box-shadow: 0 3px 10px rgba(34,197,94,.25); }
.iroot-btn--ghost    { background: transparent; color: var(--ir-muted); border: 1.5px solid var(--ir-border); }
.iroot-btn--ghost:hover { color: var(--ir-text); }
.iroot-btn--sm { padding: 7px 16px; font-size: 13px; }
.iroot-btn--full { width: 100%; }
.iroot-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ════════════════════════════════════════
   RADIO & CHECKBOX
════════════════════════════════════════ */
.iroot-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.iroot-radio-group--col { flex-direction: column; }

.iroot-radio-label, .iroot-check-label {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid var(--ir-border);
    border-radius: var(--ir-radius-sm);
    cursor: pointer; font-size: 13px;
    transition: all .15s; user-select: none;
    background: var(--ir-white);
    font-family: var(--ir-font);
}
.iroot-radio-label:hover, .iroot-check-label:hover {
    border-color: var(--ir-primary); background: var(--ir-primary-lt);
}
.iroot-radio-label input, .iroot-check-label input {
    width: auto !important; accent-color: var(--ir-primary); flex-shrink: 0;
}
.iroot-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ════════════════════════════════════════
   ORDER FORM — Accordion Progress
════════════════════════════════════════ */
.iroot-form-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    font-family: var(--ir-font);
    direction: rtl;
}

/* نوار پیشرفت خطی */
.iroot-progress-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding: 0 4px;
}
.iroot-progress-track::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    background: var(--ir-border);
    transform: translateY(-50%);
    z-index: 0;
}
.iroot-progress-line {
    position: absolute;
    top: 50%; left: 0;
    height: 2px;
    background: var(--ir-primary);
    transform: translateY(-50%);
    transition: width .4s ease;
    z-index: 1;
}
.iroot-progress-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--ir-border);
    background: var(--ir-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--ir-muted);
    position: relative; z-index: 2;
    transition: all .3s;
    flex-shrink: 0;
}
.iroot-progress-dot.active {
    border-color: var(--ir-primary);
    background: var(--ir-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(68,172,255,.2);
}
.iroot-progress-dot.done {
    border-color: var(--ir-success);
    background: var(--ir-success);
    color: #fff;
}
.iroot-progress-dot.done::after { content: '✓'; font-size: 13px; }
.iroot-progress-dot.done span { display: none; }

/* لیبل‌های مراحل */
.iroot-progress-labels {
    display: flex; justify-content: space-between;
    margin-top: 8px; margin-bottom: 28px;
    padding: 0 4px;
}
.iroot-progress-labels span {
    font-size: 11px; color: var(--ir-muted);
    text-align: center; flex: 1;
    transition: color .3s;
}
.iroot-progress-labels span.active { color: var(--ir-primary); font-weight: 700; }
.iroot-progress-labels span.done   { color: var(--ir-success); }

/* کارت‌های accordion */
.iroot-step-card {
    background: var(--ir-white);
    border: 1px solid var(--ir-border);
    border-radius: var(--ir-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.iroot-step-card.active { box-shadow: var(--ir-shadow-md); }

.iroot-step-card-header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    cursor: default;
}
.iroot-step-num {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
    background: var(--ir-bg); color: var(--ir-muted);
    transition: all .25s;
}
.iroot-step-card.active .iroot-step-num {
    background: var(--ir-primary); color: #fff;
}
.iroot-step-card.done .iroot-step-num {
    background: var(--ir-success); color: #fff;
}
.iroot-step-card-title {
    font-size: 15px; font-weight: 700;
    color: var(--ir-muted); transition: color .25s;
}
.iroot-step-card.active .iroot-step-card-title { color: var(--ir-dark); }
.iroot-step-card.done .iroot-step-card-title   { color: var(--ir-success); }

.iroot-step-card-body {
    display: none;
    padding: 4px 20px 24px;
    animation: irFadeIn .25s ease;
}
.iroot-step-card.active .iroot-step-card-body { display: block; }

/* service selection */
.iroot-service-title {
    font-size: 18px; font-weight: 700;
    text-align: center; margin-bottom: 20px; color: var(--ir-dark);
}
.iroot-services-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 8px;
}
.iroot-service-card {
    position: relative; background: var(--ir-white);
    border: 1.5px solid var(--ir-border); border-radius: var(--ir-radius);
    padding: 24px 18px; text-align: center; cursor: pointer;
    transition: all .2s;
}
.iroot-service-card:hover {
    border-color: var(--ir-primary);
    box-shadow: 0 4px 16px rgba(68,172,255,.15);
    transform: translateY(-2px);
}
.iroot-service-card.special {
    grid-column: 1/-1;
    border-color: var(--ir-warning);
    background: linear-gradient(135deg,#fffbeb,#fff);
}
.iroot-service-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(50%);
    background: var(--ir-warning); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 12px;
    border-radius: 99px; white-space: nowrap;
}
.iroot-service-icon { font-size: 32px; margin-bottom: 8px; }
.iroot-service-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--ir-dark); }
.iroot-service-card p  { font-size: 12px; color: var(--ir-muted); line-height: 1.5; }
.iroot-service-price {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--ir-border);
    font-size: 12px; font-weight: 700; color: var(--ir-primary);
}

/* back btn */
.iroot-back-btn {
    background: none; border: none; color: var(--ir-primary);
    cursor: pointer; font-family: var(--ir-font);
    font-size: 13px; font-weight: 700; padding: 0;
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 20px;
}

/* appliance groups */
.iroot-appliance {
    margin-bottom: 20px; padding-bottom: 18px;
    border-bottom: 1px solid var(--ir-bg);
}
.iroot-appliance > label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--ir-muted); margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: .3px;
}
.iroot-sub-input {
    width: 100%; margin-top: 10px;
    background: transparent; border: none;
    border-bottom: 1.5px solid var(--ir-border);
    padding: 8px 2px; font-size: 13px;
    font-family: var(--ir-font); direction: rtl;
    color: var(--ir-text); outline: none;
    transition: border-color .2s;
}
.iroot-sub-input:focus { border-bottom-color: var(--ir-primary); }
.iroot-sub-label { font-size: 11px; color: var(--ir-muted); margin: 10px 0 6px; font-weight: 700; display: block; }

/* color grid */
.iroot-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* price summary */
.iroot-price-summary {
    display: none;
    background: var(--ir-success); color: #fff;
    border-radius: var(--ir-radius); padding: 14px 18px;
    font-size: 14px; text-align: center; margin-bottom: 16px;
}
.iroot-price-summary.iroot-price-summary--paid { background: var(--ir-primary); }
.iroot-price-summary strong { font-size: 16px; }

/* terms */
.iroot-terms-box {
    background: var(--ir-bg); border: 1px solid var(--ir-border);
    border-radius: var(--ir-radius); padding: 16px 18px;
    font-size: 13px; line-height: 2; color: var(--ir-text);
    max-height: 220px; overflow-y: auto; margin-bottom: 16px;
}
.iroot-terms-accept {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border: 1.5px solid var(--ir-border);
    border-radius: var(--ir-radius-sm); cursor: pointer;
    font-size: 14px; font-weight: 600; transition: all .15s;
    font-family: var(--ir-font);
}
.iroot-terms-accept:hover { border-color: var(--ir-primary); background: var(--ir-primary-lt); }
.iroot-terms-accept input { accent-color: var(--ir-primary); width: 18px !important; height: 18px; flex-shrink: 0; }

/* upload */
.iroot-upload {
    position: relative; border: 2px dashed var(--ir-border);
    border-radius: var(--ir-radius); padding: 28px 20px;
    text-align: center; cursor: pointer;
    transition: all .2s; background: var(--ir-bg);
}
.iroot-upload:hover { border-color: var(--ir-primary); background: var(--ir-primary-lt); }
.iroot-upload input[type="file"] {
    position: absolute; inset: 0; opacity: 0;
    cursor: pointer; width: 100%; height: 100%;
}
.iroot-upload-icon { font-size: 28px; margin-bottom: 6px; }
.iroot-upload p { font-size: 13px; font-weight: 600; color: var(--ir-text); margin-bottom: 3px; }
.iroot-upload small { font-size: 11px; color: var(--ir-muted); }
.iroot-upload-filenames {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--ir-border);
    font-size: 12px; color: var(--ir-primary); font-weight: 600; text-align: right;
}
.iroot-upload-filename-item { display: block; color: var(--ir-text); font-weight: 500; margin-top: 2px; }

/* video */
.iroot-video-guide {
    background: var(--ir-dark); color: #fff;
    border-radius: var(--ir-radius); padding: 20px;
    text-align: center; margin-bottom: 12px; font-size: 13px;
}
.iroot-video-player { width: 100%; border-radius: var(--ir-radius); display: block; }
.iroot-video-player-wrap {
    position: relative; width: 100%; padding-bottom: 56.25%;
    border-radius: var(--ir-radius); overflow: hidden; background: #000;
}
.iroot-video-player-wrap .iroot-video-player {
    position: absolute; inset: 0; width: 100%; height: 100%;
}

/* nav */
.iroot-form-nav {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 24px; gap: 12px;
    padding-top: 20px; border-top: 1px solid var(--ir-border);
}

/* errors */
.iroot-error {
    background: #fef2f2; border: 1px solid #fecaca;
    color: var(--ir-danger); border-radius: var(--ir-radius-sm);
    padding: 12px 16px; margin-top: 12px; font-size: 13px;
    font-family: var(--ir-font);
}
.iroot-success-msg {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    color: var(--ir-success); border-radius: var(--ir-radius-sm);
    padding: 12px 16px; font-size: 13px;
}

/* success screen */
.iroot-success-screen {
    text-align: center; padding: 56px 24px;
    font-family: var(--ir-font);
}
.iroot-success-screen .iroot-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: #dcfce7; display: flex; align-items: center;
    justify-content: center; font-size: 36px; margin: 0 auto 20px;
}
.iroot-success-screen h3 { font-size: 22px; color: var(--ir-dark); margin-bottom: 10px; }
.iroot-success-screen p  { color: var(--ir-muted); margin-bottom: 6px; }
.iroot-success-screen strong { color: var(--ir-primary); font-size: 18px; }

/* ════════════════════════════════════════
   DASHBOARD — Two Column Layout
════════════════════════════════════════ */
.iroot-dashboard-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* sidebar */
.iroot-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--ir-white);
    border-left: 1px solid var(--ir-border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 20;
}
.iroot-sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--ir-border);
}
.iroot-sidebar-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--ir-primary-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 10px;
}
.iroot-sidebar-name {
    font-size: 14px; font-weight: 700; color: var(--ir-dark);
    margin-bottom: 3px;
}
.iroot-sidebar-phone {
    font-size: 12px; color: var(--ir-muted); direction: ltr; text-align: right;
}
.iroot-sidebar-nav {
    list-style: none; padding: 12px; flex: 1 0 auto;
}
.iroot-sidebar-nav li { margin-bottom: 4px; }
.iroot-sidebar-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; font-size: 13px; font-weight: 600;
    color: var(--ir-muted); text-decoration: none;
    border-radius: var(--ir-radius-sm);
    transition: all .15s;
}
.iroot-sidebar-nav li a:hover { color: var(--ir-text); background: var(--ir-bg); }
.iroot-sidebar-nav li a.active {
    color: #fff; background: var(--ir-primary);
    box-shadow: var(--ir-shadow);
}
.iroot-nav-icon { font-size: 16px; }
.iroot-sidebar-logout {
    padding: 16px 20px;
    border-top: 1px solid var(--ir-border);
    flex-shrink: 0;
    margin-top: auto;
}
.iroot-sidebar-logout button {
    background: none; border: none; color: var(--ir-danger);
    font-family: var(--ir-font); font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    padding: 0;
}

/* main content */
.iroot-dashboard-content {
    flex: 1; padding: 28px 32px;
    margin-right: 240px;
    max-width: calc(100% - 240px);
    overflow-x: hidden;
}
.iroot-dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--ir-white); border: 1px solid var(--ir-border);
    border-radius: var(--ir-radius); padding: 20px 24px;
    margin-bottom: 24px;
}
.iroot-dashboard-header h3 {
    font-size: 16px; font-weight: 700; color: var(--ir-dark); margin-bottom: 3px;
}
.iroot-dashboard-header span { font-size: 12px; color: var(--ir-muted); }

/* tab panels */
.iroot-tab-panel { display: none; animation: irFadeIn .25s ease; }
.iroot-tab-panel.active { display: block; }

/* order cards */
.iroot-order-card {
    background: var(--ir-white); border: 1px solid var(--ir-border);
    border-radius: var(--ir-radius); padding: 18px 20px;
    margin-bottom: 12px; transition: box-shadow .2s;
}
.iroot-order-card:hover { box-shadow: var(--ir-shadow); }
.iroot-order-card-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px;
}
.iroot-order-card-header strong { font-size: 14px; color: var(--ir-dark); }
.iroot-service-tag {
    background: var(--ir-primary-lt); color: var(--ir-primary-dk);
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 99px; margin-right: 8px;
}
.iroot-status-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 99px;
    color: #fff; font-size: 11px; font-weight: 700;
}
.iroot-order-date { font-size: 12px; color: var(--ir-muted); margin-bottom: 10px; }
.iroot-order-files, .iroot-order-msgs { margin-top: 10px; font-size: 13px; }
.iroot-order-files strong, .iroot-order-msgs strong {
    color: var(--ir-text); display: block; margin-bottom: 6px; font-size: 12px;
}
.iroot-file-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--ir-primary); font-size: 13px; text-decoration: none;
    margin-left: 8px; margin-top: 4px;
}
.iroot-last-msg {
    background: var(--ir-bg);
    border-right: 3px solid var(--ir-primary);
    border-radius: 0 var(--ir-radius-sm) var(--ir-radius-sm) 0;
    padding: 8px 12px; font-size: 13px; margin-top: 6px;
}

/* account card */
.iroot-account-card {
    background: var(--ir-white); border: 1px solid var(--ir-border);
    border-radius: var(--ir-radius); padding: 24px;
}
.iroot-account-card h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 1px solid var(--ir-border);
}

/* empty state */
.iroot-empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--ir-muted); font-size: 14px;
}
.iroot-empty-state span { font-size: 44px; display: block; margin-bottom: 12px; }

/* hamburger (mobile only) */
.iroot-hamburger {
    display: none;
    position: fixed; top: 16px; right: 16px; z-index: 1000;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--ir-white); border: 1px solid var(--ir-border);
    box-shadow: var(--ir-shadow); font-size: 18px;
    cursor: pointer; align-items: center; justify-content: center;
}
.iroot-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 998;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
    .iroot-dashboard-wrap { flex-direction: column; }

    .iroot-sidebar {
        position: fixed; right: -260px; top: 0; bottom: 0;
        width: 260px; z-index: 999;
        transition: right .3s ease;
        height: 100vh;
    }
    .iroot-sidebar.open { right: 0; }
    .iroot-sidebar-overlay.open { display: block; }
    .iroot-hamburger { display: flex; }

    .iroot-dashboard-content {
        max-width: 100%; margin-right: 0; padding: 64px 16px 32px;
    }
    .iroot-dashboard-header {
        flex-direction: column; align-items: flex-start; gap: 12px;
    }
    .iroot-services-grid { grid-template-columns: 1fr; }
    .iroot-service-card.special { grid-column: auto; }
    .iroot-field-row { grid-template-columns: 1fr; gap: 0; }
    .iroot-check-grid { grid-template-columns: 1fr; }
    .iroot-color-grid { grid-template-columns: 1fr; }
    .iroot-form-page { padding: 16px 16px 40px; }
    .iroot-progress-labels { display: none; }
    .iroot-auth-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .iroot-progress-dot { width: 26px; height: 26px; font-size: 10px; }
}


/* UX refinement: accessible, calm, mobile-first controls */
.iroot-page input, .iroot-page select, .iroot-page textarea { min-height:48px; border-radius:10px; border:1px solid var(--ir-border); background:var(--ir-white); transition:border-color .15s, box-shadow .15s; }
.iroot-page input:focus-visible, .iroot-page select:focus-visible, .iroot-page textarea:focus-visible { outline:3px solid color-mix(in oklab, var(--ir-primary) 24%, transparent); outline-offset:2px; border-color:var(--ir-primary); }
.iroot-page button:focus-visible, .iroot-page a:focus-visible { outline:3px solid color-mix(in oklab, var(--ir-primary) 30%, transparent); outline-offset:3px; }
.iroot-field--error input, .iroot-field--error select, .iroot-field--error textarea { border-color:var(--ir-danger); }
.iroot-field--error::after { content:'این فیلد را کامل کنید'; display:block; color:var(--ir-danger); font-size:12px; margin-top:4px; }
.iroot-review-intro { color:var(--ir-muted); background:var(--ir-primary-lt); padding:12px 14px; border-radius:10px; margin-bottom:18px; }
.iroot-review-section { border-top:1px solid var(--ir-border); padding:16px 0; }
.iroot-review-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.iroot-review-section h3 { font-size:15px; color:var(--ir-dark); }
.iroot-review-edit { border:0; background:none; color:var(--ir-primary-dk); font:inherit; cursor:pointer; font-size:13px; }
.iroot-review-row { display:flex; justify-content:space-between; gap:20px; padding:8px 0; border-bottom:1px solid var(--ir-border); font-size:13px; }
.iroot-review-row span { color:var(--ir-muted); }
.iroot-review-row strong { text-align:left; max-width:58%; overflow-wrap:anywhere; }
.iroot-muted { color:var(--ir-muted); }


/* facilities & review refinements */
.iroot-label-hint { font-weight:400; font-size:11.5px; color:var(--ir-muted); }
.iroot-hint { display:block; margin-top:5px; font-size:11.5px; color:var(--ir-muted); }
.iroot-dims-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.iroot-dims-grid .iroot-sub-input { margin-top:0; }
.iroot-radio-label--stacked span { display:flex; flex-direction:column; line-height:1.45; }
.iroot-radio-label--stacked small { font-size:10.5px; color:var(--ir-muted); }
.iroot-check-grid--limit { position:relative; }
.iroot-check-grid--limit::after { content:'حداکثر سه مورد قابل انتخاب است'; display:block; grid-column:1/-1; margin-top:6px; font-size:11.5px; color:var(--ir-warning); }
.iroot-extra-block { margin-top:22px; padding-top:18px; border-top:1px solid var(--ir-border); }
.iroot-textarea { width:100%; min-height:96px; padding:12px 13px; border:1px solid var(--ir-border); border-radius:10px; font-family:var(--ir-font); background:var(--ir-white); resize:vertical; }
.iroot-textarea::placeholder { color:color-mix(in oklab, var(--ir-muted) 62%, var(--ir-white)); }
@media (max-width:520px) { .iroot-dims-grid { grid-template-columns:1fr 1fr; } }


/* ── Sticky mobile action bar (prev / next) ───────────────── */
.iroot-form-nav { flex-wrap: nowrap; }
.iroot-form-nav .iroot-btn { min-height: 46px; }

@media (max-width: 768px) {
    .iroot-form-nav {
        position: sticky; bottom: 0; z-index: 20;
        display: flex; align-items: stretch; gap: 10px;
        margin: 22px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--ir-white);
        border-top: 1px solid var(--ir-border);
        box-shadow: 0 -10px 26px color-mix(in oklab, var(--ir-dark) 7%, transparent);
    }
    .iroot-form-nav .iroot-btn { min-height: 50px; padding: 12px 16px; font-size: 15px; border-radius: 12px; }
    /* دکمه اصلی همیشه بزرگ‌تر و واضح‌تر از دکمه بازگشت */
    .iroot-form-nav #iroot-next, .iroot-form-nav #iroot-submit { flex: 1 1 auto; }
    .iroot-form-nav #iroot-prev { flex: 0 0 auto; min-width: 104px; }
    .iroot-form-nav .iroot-btn--primary:hover { transform: none; }
    .iroot-review-row { display: block; }
    .iroot-review-row strong { display: block; text-align: right; margin-top: 3px; max-width: none; }
}
@media (max-width: 380px) {
    .iroot-form-nav #iroot-prev { min-width: 84px; padding: 12px 10px; font-size: 14px; }
}

/* ── Credit / copyright ──────────────────────────────────── */
.iroot-credit {
    margin-top: 26px; padding: 14px 4px 4px;
    border-top: 1px solid var(--ir-border);
    text-align: center; font-size: 11.5px; color: var(--ir-muted);
}
.iroot-credit-link { color: var(--ir-primary-dk); font-weight: 700; text-decoration: none; }
.iroot-credit-link:hover { text-decoration: underline; }
.iroot-credit-sep { opacity: .5; margin: 0 2px; }
@media (max-width: 768px) { .iroot-credit { margin-bottom: 8px; } }

/* ── Shared textarea + dims polish ───────────────────────── */
.iroot-textarea--sm { min-height: 64px; margin-top: 10px; }
.iroot-dims-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .iroot-dims-grid--2 { grid-template-columns: 1fr; } }


/* ── Compact progress (mobile-first) ─────────────────────── */
.iroot-progress-compact { display: none; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.iroot-progress-count { font-size: 12px; font-weight: 700; color: var(--ir-primary-dk); }
.iroot-progress-current { font-size: 12px; color: var(--ir-muted); }
.iroot-progress-bar { display: none; height: 6px; background: var(--ir-border); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.iroot-progress-bar i { display: block; height: 100%; background: var(--ir-primary); border-radius: 99px; transition: width .35s cubic-bezier(.22,1,.36,1); }
@media (max-width: 768px) {
    .iroot-progress-compact, .iroot-progress-bar { display: flex; }
    .iroot-progress-bar { display: block; }
    .iroot-progress-track { display: none; }
}


/* ── Success state ───────────────────────────────────────── */
.iroot-success-screen .iroot-success-icon {
    width: 58px; height: 58px; margin: 0 auto 16px;
    display: grid; place-items: center; border-radius: 50%;
    background: color-mix(in oklab, var(--ir-success) 14%, var(--ir-white));
    color: var(--ir-success); font-size: 26px; font-weight: 700;
}
.iroot-success-sub { color: var(--ir-muted); margin-bottom: 20px; }
.iroot-success-code {
    display: inline-flex; flex-direction: column; gap: 4px; align-items: center;
    padding: 12px 26px; margin-bottom: 22px;
    background: var(--ir-primary-lt); border-radius: 12px;
}
.iroot-success-code span { font-size: 11.5px; color: var(--ir-muted); }
.iroot-success-code strong { font-size: 18px; color: var(--ir-primary-dk); letter-spacing: .02em; }
.iroot-success-steps {
    max-width: 62ch; margin: 0 auto 24px; padding: 0 20px 0 0;
    text-align: right; color: var(--ir-text); font-size: 13.5px; line-height: 2;
}
.iroot-success-steps li { padding-right: 4px; }


/* ── Guide figures (SVG helpers) ─────────────────────────── */
.iroot-guide-row { display: flex; gap: 12px; margin-bottom: 14px; }
.iroot-guide {
    flex: 1 1 0; min-width: 0; margin: 0 0 12px;
    padding: 14px 12px 10px; text-align: center;
    background: var(--ir-bg); border: 1px solid var(--ir-border); border-radius: 12px;
}
.iroot-guide img { display: block; width: 100%; max-width: 132px; height: auto; margin: 0 auto 8px; }
.iroot-guide figcaption { font-size: 11.5px; color: var(--ir-muted); line-height: 1.6; }
.iroot-guide--wide img { max-width: 210px; }
@media (max-width: 480px) {
    .iroot-guide-row { gap: 8px; }
    .iroot-guide { padding: 10px 8px 8px; }
    .iroot-guide img { max-width: 96px; }
    .iroot-guide--wide img { max-width: 150px; }
}

/* ── Sub-sections inside a step ──────────────────────────── */
.iroot-subsection { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ir-border); }
.iroot-subsection:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.iroot-subsection-title { font-size: 15px; font-weight: 700; color: var(--ir-dark); margin-bottom: 4px; }
.iroot-subsection-hint { font-size: 12px; color: var(--ir-muted); margin-bottom: 14px; }

/* ── Style gallery cards ─────────────────────────────────── */
.iroot-style-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.iroot-style-card {
    position: relative; display: block;
    padding: 12px; border: 1.5px solid var(--ir-border); border-radius: 14px;
    background: var(--ir-white); transition: border-color .2s, box-shadow .2s;
}
.iroot-style-card:hover { border-color: color-mix(in oklab, var(--ir-primary) 45%, var(--ir-border)); }
.iroot-style-card-label { display: block; cursor: pointer; }
.iroot-style-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iroot-style-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.iroot-style-card-name { font-size: 14px; font-weight: 700; }
.iroot-style-card-check {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid var(--ir-border); color: transparent; font-size: 12px; font-weight: 700;
    transition: background .2s, border-color .2s, color .2s;
}
.iroot-style-card:has(input:checked) { border-color: var(--ir-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ir-primary) 16%, transparent); }
.iroot-style-card:has(input:checked) .iroot-style-card-check { background: var(--ir-primary); border-color: var(--ir-primary); color: #fff; }
.iroot-style-card:has(input:focus-visible) { outline: 3px solid color-mix(in oklab, var(--ir-primary) 30%, transparent); outline-offset: 3px; }
.iroot-style-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.iroot-style-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--ir-bg); }
.iroot-style-thumbs--empty {
    display: block; padding: 22px 12px; text-align: center; border-radius: 10px;
    background: var(--ir-bg); color: var(--ir-muted); font-size: 11.5px; line-height: 1.7;
}
@media (max-width: 768px) { .iroot-style-set { grid-template-columns: 1fr; } }

.iroot-style-card.is-selected { border-color: var(--ir-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ir-primary) 16%, transparent); }
.iroot-style-card.is-selected .iroot-style-card-check { background: var(--ir-primary); border-color: var(--ir-primary); color: #fff; }


/* ── Style card zoom button ──────────────────────────────── */
.iroot-style-zoom {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 10px; padding: 9px 12px;
    background: var(--ir-bg); border: 1px solid var(--ir-border); border-radius: 9px;
    font-family: var(--ir-font); font-size: 12.5px; font-weight: 700; color: var(--ir-text);
    cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.iroot-style-zoom:hover { background: var(--ir-primary-lt); border-color: var(--ir-primary); color: var(--ir-primary-dk); }
.iroot-style-card--other .iroot-style-thumbs--empty { padding: 30px 14px; }
.iroot-style-other { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--ir-border); }

/* ── Lightbox gallery ────────────────────────────────────── */
body.iroot-noscroll { overflow: hidden; }
.iroot-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: none; grid-template-areas: "bar bar bar" "prev stage next" "dots dots dots";
    grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto;
    background: oklch(18% .02 246 / .93); direction: rtl;
}
.iroot-lightbox.open { display: grid; animation: irFadeIn .22s cubic-bezier(.16,1,.3,1); }
.iroot-lightbox-bar {
    grid-area: bar; display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; color: oklch(97% .01 246);
}
.iroot-lightbox-title { font-family: var(--ir-font); font-size: 15px; font-weight: 700; }
.iroot-lightbox-counter { font-family: var(--ir-font); font-size: 12px; opacity: .72; margin-left: auto; }
.iroot-lightbox-close {
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: oklch(100% 0 0 / .12); color: oklch(98% .01 246); font-size: 16px;
}
.iroot-lightbox-close:hover { background: oklch(100% 0 0 / .22); }
.iroot-lightbox-stage { grid-area: stage; display: grid; place-items: center; margin: 0; padding: 0 8px 8px; min-height: 0; }
.iroot-lightbox-stage img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    border-radius: 12px; object-fit: contain; background: oklch(26% .015 246);
}
.iroot-lightbox-nav {
    align-self: center; width: 46px; height: 46px; margin: 0 10px;
    border: 0; border-radius: 50%; cursor: pointer;
    background: oklch(100% 0 0 / .14); color: oklch(98% .01 246); font-size: 26px; line-height: 1;
}
.iroot-lightbox-nav:hover { background: oklch(100% 0 0 / .26); }
.iroot-lightbox-prev { grid-area: prev; }
.iroot-lightbox-next { grid-area: next; }
.iroot-lightbox-dots { grid-area: dots; display: flex; justify-content: center; gap: 8px; padding: 14px 0 22px; }
.iroot-lightbox-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: oklch(100% 0 0 / .32); transition: background .18s, transform .18s;
}
.iroot-lightbox-dots button.active { background: var(--ir-primary); transform: scale(1.35); }
.iroot-lightbox :focus-visible { outline: 3px solid color-mix(in oklab, var(--ir-primary) 55%, transparent); outline-offset: 3px; }

@media (max-width: 640px) {
    .iroot-lightbox { grid-template-areas: "bar" "stage" "nav" "dots"; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
    .iroot-lightbox-stage { padding: 0 12px; }
    .iroot-lightbox-nav { grid-area: nav; justify-self: center; }
    .iroot-lightbox-prev { transform: translateX(32px); }
    .iroot-lightbox-next { transform: translateX(-32px); }
    .iroot-lightbox-dots { padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); }
}

/* ── Optional count fields (wardrobe needs) ──────────────── */
.iroot-counts-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ir-border);
}
.iroot-count-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.iroot-count-field input { width: 100%; }

/* ── Upload file-count limit feedback ────────────────────── */
.iroot-upload--limit { border-color: var(--ir-warning); }
.iroot-upload--limit::after {
    content: 'حداکثر ۶ فایل قابل انتخاب است'; display: block; margin-top: 8px;
    font-size: 11.5px; color: var(--ir-warning);
}
