/* ============================================================
           Design System – سامانه عوارض شهرداری
           ============================================================
           رنگ‌ها: آبی نفتی (برند) | طلایی (تاکید و CTA)
           تایپوگرافی: Vazirmatn با وزن‌های 400 و 700
           فاصله‌گذاری: مقیاس ۸ پیکسلی (0.5rem, 1rem, 1.5rem, 2rem, ...)
           ============================================================ */

        /* ---------- Page Container (پدینگ کناری واکنش‌گرا) ---------- */
        .ati-page-container {
            /* حداقل ۰.۵rem (۸px) در موبایل‌های کوچک، تا ۱.5rem در دسکتاپ */
            padding-left: clamp(0.5rem, 2.2vw, 1.5rem);
            padding-right: clamp(0.5rem, 2.2vw, 1.5rem);
            width: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 380px) {
            .ati-page-container {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
        }

        /* ---------- Design Tokens ---------- */
        :root {
            /* برند */
            --navy-950: #0F2843;
            --navy-700: #1A3B5C;
            --navy-500: #24537F;
            --navy-300: #4A7CA6;

            /* طلایی */
            --gold-600: #A8813F;
            --gold-500: #C9A96E;
            --gold-400: #D4B98A;
            --gold-100: #F5EDDC;
            --gold-50: #FAF5EB;

            /* سطوح خاکستری */
            --ink-900: #1e293b;
            --ink-700: #334155;
            --ink-500: #64748b;
            --ink-300: #94a3b8;
            --ink-200: #cbd5e1;
            --surface-0: #ffffff;
            --surface-50: #f8fafc;
            --surface-100: #f1f5f9;
            --line-200: #e2e8f0;

            /* وضعیت */
            --success-600: #16a34a;
            --success-50: #f0fdf4;
            --danger-600: #ef4444;
            --danger-50: #fef2f2;
            --warning-600: #d97706;
            --warning-50: #fffbeb;

            /* فاصله‌ها (مقیاس ۸) */
            --space-1: 0.5rem; /* 8px */
            --space-2: 1rem; /* 16px */
            --space-3: 1.5rem; /* 24px */
            --space-4: 2rem; /* 32px */
            --space-5: 2.5rem; /* 40px */
            --space-6: 3rem; /* 48px */

            /* گوشه‌ها */
            --radius-sm: 0.5rem;
            --radius-md: 0.875rem;
            --radius-lg: 1.25rem;
            --radius-xl: 1.5rem;

            /* سایه‌ها */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
            --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

            /* تایپوگرافی */
            --font-family: 'Vazirmatn', system-ui, sans-serif;
            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.25rem;
            --text-2xl: 1.5rem;
            --leading-relaxed: 1.75;
            --leading-normal: 1.6;
        }

        /* ---------- Reset & Base ---------- */
        * {
            font-family: var(--font-family);
            box-sizing: border-box;
        }

        body {
            background: var(--surface-50);
            color: var(--ink-900);
        }

        /* ---------- Accessibility ---------- */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible,
        summary:focus-visible,
        [tabindex]:focus-visible {
            outline: 2.5px solid var(--gold-500);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.001ms !important;
                transition-duration: 0.001ms !important;
            }
        }

        /* ---------- Utility ---------- */
        .text-balance {
            text-wrap: balance;
        }

        /* ============================================================
           COMPONENTS
           ============================================================ */

        /* ----- Step Indicator ----- */
        .step-indicator {
            display: flex;
            align-items: center;
            gap: var(--space-1);
            flex-wrap: wrap;
            padding: 0 var(--space-1);
        }

        .step-dot {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.2rem;
            height: 2.2rem;
            border-radius: 9999px;
            font-weight: 700;
            font-size: var(--text-xs);
            transition: all 0.25s ease;
            border: 2px solid transparent;
            flex-shrink: 0;
            background: var(--surface-100);
            color: var(--ink-300);
        }

        .step-dot.active {
            background: var(--navy-700);
            color: #fff;
            border-color: var(--navy-700);
            box-shadow: 0 0 0 4px rgba(26, 59, 92, 0.15);
        }

        .step-dot.done {
            background: var(--success-600);
            color: #fff;
            border-color: var(--success-600);
        }

        .step-dot.pending {
            background: var(--surface-100);
            color: var(--ink-300);
            border-color: var(--line-200);
        }

        .step-line {
            flex: 1;
            height: 2px;
            min-width: 1rem;
            transition: background 0.3s ease;
            background: var(--line-200);
            border-radius: 2px;
        }

        .step-line.done {
            background: var(--success-600);
        }

        .step-label {
            font-size: 0.6rem;
            font-weight: 600;
            color: var(--ink-300);
            text-align: center;
            margin-top: 2px;
            transition: color 0.3s ease;
            letter-spacing: 0.02em;
        }

        .step-label.active {
            color: var(--navy-700);
        }

        .step-label.done {
            color: var(--success-600);
        }

        /* ----- Panel (Fade Up) ----- */
        .panel {
            display: none;
            animation: fadeUp 0.35s ease-out;
        }

        .panel.active {
            display: block;
        }

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

        /* ----- Trust & Secure Payment Badges (پایین سایت، سمت چپ) ----- */
        .trust-badges {
            display: flex;
            direction: ltr;
            justify-content: flex-start;
            align-items: center;
            gap: 0;
            flex-wrap: nowrap;
        }

        .trust-badge-link {
            display: inline-block;
            line-height: 0;
            border-radius: var(--radius-sm);
            transition: opacity 0.2s ease;
        }

        .trust-badge-link:hover {
            opacity: 0.85;
        }

        .trust-badge-link img {
            width: 80px;
            aspect-ratio: 2/3;
            object-fit: contain;
            display: block;
            margin: 0;
            padding: 0;
        }

        @media (max-width: 480px) {
            .trust-badge-link img {
                width: 60px;
                /* height خودکار از aspect-ratio محاسبه می‌شود */
            }
        }

        /* ----- Card ----- */
        .card-modern {
            background: var(--surface-0);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-md), var(--shadow-sm);
            border: 1px solid var(--line-200);
            overflow: hidden;
            transition: box-shadow 0.3s ease;
        }

        .card-modern:hover {
            box-shadow: var(--shadow-lg);
        }

        .card-header-modern {
            background: linear-gradient(135deg, var(--navy-950), var(--navy-500));
            padding: var(--space-3) var(--space-4);
        }

        .card-body-modern {
            padding: var(--space-4);
        }

        @media (min-width: 640px) {
            .card-header-modern {
                padding: var(--space-4) var(--space-5);
            }

            .card-body-modern {
                padding: var(--space-5);
            }
        }

        /* ----- Inputs ----- */
        .input-modern {
            width: 100%;
            padding: 0.6rem 0.9rem;
            border: 1.5px solid var(--ink-200);
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            background: var(--surface-0);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            outline: none;
            color: var(--ink-900);
        }

        .input-modern:focus {
            border-color: var(--navy-500);
            box-shadow: 0 0 0 3px rgba(36, 83, 127, 0.08);
        }

        .input-modern.error {
            border-color: var(--danger-600);
            background: var(--danger-50);
        }

        .label-modern {
            display: block;
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--ink-700);
            margin-bottom: 0.25rem;
            letter-spacing: 0.01em;
        }

        .label-modern .req {
            color: var(--danger-600);
        }

        .field-error {
            color: var(--danger-600);
            font-size: var(--text-xs);
            margin-top: 0.25rem;
            font-weight: 600;
        }

        /* ----- Buttons ----- */
        .btn-primary {
            background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
            color: #fff;
            border: none;
            border-radius: var(--radius-md);
            padding: 0.75rem 1.5rem;
            font-weight: 700;
            font-size: var(--text-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-1);
            width: 100%;
            text-decoration: none;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(36, 83, 127, 0.25);
        }

        .btn-primary:disabled {
            background: var(--ink-300);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success-600), #15803d);
            color: #fff;
            border: none;
            border-radius: var(--radius-md);
            padding: 0.75rem 1.5rem;
            font-weight: 700;
            font-size: var(--text-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-1);
        }

        .btn-success:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
        }

        .btn-outline-modern {
            border: 1.5px solid var(--ink-200);
            background: var(--surface-0);
            color: var(--ink-700);
            border-radius: var(--radius-md);
            padding: 0.65rem 1.5rem;
            font-weight: 600;
            font-size: var(--text-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-1);
            text-decoration: none;
        }

        .btn-outline-modern:hover {
            border-color: var(--navy-500);
            color: var(--navy-500);
            background: var(--surface-50);
        }

        .btn-outline-secondary {
            border: 1.5px solid var(--line-200);
            background: var(--surface-50);
            color: var(--ink-500);
            border-radius: var(--radius-md);
            padding: 0.65rem 1.5rem;
            font-weight: 600;
            font-size: var(--text-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-1);
            text-decoration: none;
        }

        .btn-outline-secondary:hover {
            border-color: var(--ink-300);
            color: var(--ink-900);
            background: var(--surface-100);
        }

        /* ----- Installment Plan Section ----- */
        .installment-card {
            background: var(--surface-0);
            border: 1.5px solid var(--line-200);
            border-radius: var(--radius-lg);
            padding: var(--space-3);
            text-align: center;
            transition: all 0.2s ease;
            position: relative;
        }

        .installment-card.featured {
            border-color: var(--navy-500);
            box-shadow: 0 8px 24px rgba(36, 83, 127, 0.12);
        }

        .installment-card .count {
            font-size: var(--text-2xl);
            font-weight: 800;
            color: var(--navy-700);
        }

        .installment-tag {
            position: absolute;
            top: -0.6rem;
            right: 50%;
            transform: translateX(50%);
            background: var(--gold-500);
            color: var(--navy-950);
            font-size: 0.65rem;
            font-weight: 800;
            padding: 0.2rem 0.7rem;
            border-radius: 9999px;
            white-space: nowrap;
        }

        /* ----- Gold CTA Button (برای باکس تبلیغاتی) ----- */
        .btn-gold {
            background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
            color: var(--navy-950);
            border: none;
            border-radius: var(--radius-md);
            padding: 0.75rem 1.25rem;
            font-weight: 800;
            font-size: var(--text-sm);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-1);
            width: 100%;
            text-decoration: none;
        }

        .btn-gold:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 22px rgba(201, 169, 110, 0.35);
        }

        /* ----- Plate Grid ----- */
        .plate-grid {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            background: var(--surface-50);
            border: 2px solid #dbeafe;
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            flex-wrap: wrap;
            direction: ltr;
        }

        .plate-select {
            background: var(--surface-0);
            border: 1.5px solid var(--ink-200);
            border-radius: var(--radius-sm);
            text-align: center;
            text-align-last: center;
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--navy-700);
            outline: none;
            height: 2.6rem;
            width: 3.6rem;
            transition: border-color 0.2s ease;
            padding: 0 0.1rem;
            cursor: pointer;
        }

        .plate-select:focus {
            border-color: var(--navy-500);
            box-shadow: 0 0 0 3px rgba(36, 83, 127, 0.1);
        }

        .plate-select.error {
            border-color: var(--danger-600);
            background: var(--danger-50);
        }

        .plate-input {
            background: var(--surface-0);
            border: 1.5px solid var(--ink-200);
            border-radius: var(--radius-sm);
            text-align: center;
            font-weight: 700;
            font-size: 1rem;
            color: var(--navy-700);
            outline: none;
            height: 2.6rem;
            transition: border-color 0.2s ease;
            padding: 0 0.2rem;
        }

        .plate-input:focus {
            border-color: var(--navy-500);
            box-shadow: 0 0 0 3px rgba(36, 83, 127, 0.1);
        }

        .plate-input.error {
            border-color: var(--danger-600);
            background: var(--danger-50);
        }

        .plate-badge {
            background: var(--navy-700);
            color: #fff;
            border-radius: var(--radius-sm);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 0.5rem;
            height: 2.6rem;
            font-size: 0.6rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .plate-preview {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--ink-900);
            background: var(--surface-100);
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-sm);
            direction: ltr;
            min-height: 2rem;
        }

        .plate-preview .sep {
            color: var(--ink-300);
            font-weight: 300;
        }

        .plate-preview .iran-badge {
            background: var(--navy-700);
            color: #fff;
            padding: 0.1rem 0.4rem;
            border-radius: 0.25rem;
            font-size: 0.55rem;
            font-weight: 700;
        }

        /* ----- OTP Box ----- */
        .otp-box {
            width: 3rem;
            height: 3.2rem;
            border: 2px solid var(--ink-200);
            border-radius: var(--radius-md);
            font-size: var(--text-lg);
            font-weight: 700;
            text-align: center;
            color: var(--navy-700);
            background: var(--surface-50);
            outline: none;
            transition: all 0.2s ease;
        }

        .otp-box:focus {
            border-color: var(--navy-500);
            background: var(--surface-0);
            box-shadow: 0 0 0 3px rgba(36, 83, 127, 0.08);
        }

        .otp-box.filled {
            border-color: var(--success-600);
            background: var(--success-50);
            color: #15803d;
        }

        @media (min-width: 400px) {
            .otp-box {
                width: 3.5rem;
                height: 3.5rem;
                font-size: var(--text-xl);
            }
        }

        /* ----- File Zone ----- */
        .file-zone {
            border: 2px dashed #c7d8f5;
            border-radius: var(--radius-md);
            padding: var(--space-2);
            background: #f8faff;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .file-zone:hover,
        .file-zone.has-file {
            border-color: var(--navy-500);
            background: #eff6ff;
        }

        .file-zone input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

        /* ----- FAQ ----- */
        .faq-item {
            border: 1px solid #e3eafc;
            border-radius: var(--radius-md);
            background: var(--surface-0);
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .faq-item + .faq-item {
            margin-top: var(--space-1);
        }

        .faq-item summary {
            list-style: none;
            cursor: pointer;
            padding: 0.8rem 1.2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            font-weight: 700;
            font-size: var(--text-sm);
            color: var(--navy-700);
            transition: background 0.2s ease;
        }

        .faq-item summary:hover {
            background: var(--surface-50);
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary .chevron {
            transition: transform 0.25s ease;
            color: var(--ink-300);
            flex-shrink: 0;
        }

        .faq-item[open] summary .chevron {
            transform: rotate(180deg);
            color: var(--navy-500);
        }

        .faq-item .faq-body {
            padding: 0 1.2rem 1rem;
            font-size: var(--text-sm);
            color: var(--ink-500);
            line-height: var(--leading-relaxed);
        }

        /* ============================================================
           HERO / INTRO SECTION
           ============================================================ */
        .hero-box {
            background: linear-gradient(180deg, #f6f9ff, #f0f4fb);
            border: 1px solid #e3eafc;
            border-radius: var(--radius-xl);
            padding: var(--space-4);
        }

        @media (min-width: 768px) {
            .hero-box {
                padding: var(--space-5);
            }
        }

        /* ----- Badge ----- */
        .badge-blue {
            background: #dbeafe;
            color: var(--navy-700);
            font-size: var(--text-xs);
            font-weight: 700;
            padding: 0.3rem 0.8rem;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        /* ----- Quick Link / Stat Card ----- */
        .quick-link {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            background: var(--surface-0);
            border: 1px solid #e3eafc;
            border-radius: var(--radius-md);
            padding: 0.7rem 0.9rem;
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--navy-500);
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .quick-link:hover {
            border-color: var(--navy-500);
            box-shadow: 0 4px 16px rgba(36, 83, 127, 0.08);
            transform: translateY(-1px);
        }

        .quick-icon {
            width: 2rem;
            height: 2rem;
            border-radius: 0.625rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eff6ff;
            color: var(--navy-500);
            flex-shrink: 0;
        }

        /* ============================================================
           PROMO CARD (باکس تبلیغاتی-اطلاعاتی)
           ============================================================ */
        .promo-card {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-lg);
            padding: var(--space-4);
            background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
            color: #fff;
            box-shadow: var(--shadow-xl);
            margin-bottom: var(--space-3);
        }

        /* Glow effect */
        .promo-card::before {
            content: "";
            position: absolute;
            inset: auto -30% -40% auto;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(201, 169, 110, 0.3), transparent 70%);
            pointer-events: none;
        }

        .promo-card::after {
            content: "";
            position: absolute;
            inset: auto auto -50% -20%;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 65%);
            pointer-events: none;
        }

        .promo-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: rgba(201, 169, 110, 0.18);
            color: var(--gold-500);
            font-size: 0.65rem;
            font-weight: 700;
            padding: 0.3rem 0.75rem;
            border-radius: 9999px;
            border: 1px solid rgba(201, 169, 110, 0.35);
            position: relative;
            z-index: 1;
            letter-spacing: 0.03em;
        }

        .promo-title {
            font-size: var(--text-lg);
            font-weight: 800;
            line-height: 1.4;
            margin-top: var(--space-2);
            margin-bottom: var(--space-1);
            position: relative;
            z-index: 1;
        }

        .promo-subtitle {
            color: rgba(255, 255, 255, 0.75);
            font-size: var(--text-sm);
            line-height: var(--leading-relaxed);
            margin-bottom: var(--space-1);
            position: relative;
            z-index: 1;
        }

        .promo-feature {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            padding: 0.6rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
            z-index: 1;
        }

        .promo-feature:first-of-type {
            border-top: none;
        }

        .promo-feature .promo-icon {
            width: 2.1rem;
            height: 2.1rem;
            flex-shrink: 0;
            border-radius: 0.7rem;
            background: rgba(201, 169, 110, 0.16);
            color: var(--gold-500);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }

        .promo-feature:hover .promo-icon {
            transform: scale(1.05);
        }

        .promo-feature-text {
            font-size: var(--text-sm);
            color: rgba(255, 255, 255, 0.85);
            line-height: var(--leading-relaxed);
        }

        .promo-feature-text strong {
            color: #fff;
            font-weight: 700;
        }

        .promo-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: rgba(201, 169, 110, 0.2);
            color: var(--gold-500);
            font-size: var(--text-xs);
            font-weight: 600;
            padding: 0.2rem 0.6rem;
            border-radius: 9999px;
            border: 1px solid rgba(201, 169, 110, 0.2);
            margin-top: var(--space-1);
        }

        /* ============================================================
           INFO SECTIONS (پس از فرم)
           ============================================================ */
        .info-section {
            background: var(--surface-0);
            border-radius: var(--radius-xl);
            border: 1px solid var(--line-200);
            padding: var(--space-4);
            margin-bottom: var(--space-3);
            transition: box-shadow 0.3s ease;
        }

        .info-section:hover {
            box-shadow: var(--shadow-sm);
        }

        @media (min-width: 640px) {
            .info-section {
                padding: var(--space-5);
            }
        }

        .info-section-title {
            font-size: var(--text-base);
            font-weight: 800;
            color: var(--navy-700);
            display: flex;
            align-items: center;
            gap: var(--space-2);
            margin-bottom: var(--space-3);
        }

        .info-section-title .icon-box {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .info-text {
            color: var(--ink-500);
            font-size: var(--text-sm);
            line-height: var(--leading-relaxed);
        }

        .info-text strong {
            color: var(--ink-900);
        }

        /* ----- Grid Cards for Features ----- */
        .feature-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-1);
        }

        @media (min-width: 480px) {
            .feature-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: var(--space-2);
            }
        }

        @media (min-width: 768px) {
            .feature-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--surface-50);
            border: 1px solid var(--line-200);
            border-radius: var(--radius-md);
            padding: 0.6rem 0.75rem;
            transition: all 0.2s ease;
        }

        .feature-item:hover {
            border-color: var(--navy-300);
            background: var(--surface-0);
            box-shadow: var(--shadow-sm);
        }

        .feature-item .emoji {
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .feature-item .label {
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--ink-700);
        }

        /* ----- Loading Overlay ----- */
        #loadingOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(6px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: var(--space-3);
        }

        #loadingOverlay.show {
            display: flex;
        }

        #loadingOverlay .loader-box {
            background: var(--surface-0);
            border-radius: var(--radius-xl);
            padding: var(--space-5);
            max-width: 380px;
            width: 100%;
            text-align: center;
            box-shadow: var(--shadow-xl);
            animation: fadeUp 0.35s ease-out;
        }

        .spinner {
            width: 56px;
            height: 56px;
            border: 5px solid var(--line-200);
            border-top-color: var(--navy-500);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto var(--space-2);
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loading-bar-track {
            width: 100%;
            height: 4px;
            background: var(--line-200);
            border-radius: 4px;
            overflow: hidden;
            margin-top: var(--space-2);
        }

        #loadingProgress {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, var(--navy-500), #3b82f6);
            border-radius: 4px;
            transition: width 0.4s ease;
        }

        #loadingPercent {
            font-size: var(--text-xs);
            color: var(--ink-300);
            margin-top: var(--space-1);
            font-family: monospace;
        }

        /* ============================================================
           RESPONSIVE FINE-TUNE
           ============================================================ */
        @media (max-width: 480px) {
            .hero-box {
                padding: var(--space-3);
            }

            .card-body-modern {
                padding: var(--space-3) !important;
            }

            .promo-card {
                padding: var(--space-3);
            }

            .promo-title {
                font-size: var(--text-base);
            }

            /* ----- Plate row: shrink to fit narrow screens ----- */
            .plate-grid {
                gap: 0.25rem;
                padding: 0.2rem 0.4rem;
            }

            .plate-input {
                height: 2.3rem;
                font-size: 0.9rem;
            }

            #plate_left,
            #plate_right {
                width: 3rem !important;
            }

            #plate_mid {
                width: 3rem !important;
            }

            .plate-select {
                height: 2.3rem;
                width: 3rem;
                font-size: 0.85rem;
                padding: 0;
            }

            .plate-badge {
                height: 2.3rem;
                padding: 0 0.3rem;
                font-size: 0.55rem;
            }
        }

        /* Extra-narrow phones (iPhone SE / small Android, ~320-380px) */
        @media (max-width: 380px) {
            .card-body-modern {
                padding: var(--space-2) !important;
            }

            .hero-box {
                padding: var(--space-1);
            }

            .plate-grid {
                gap: 0.2rem;
                padding: 0.4rem 0.3rem;
            }

            #plate_left,
            #plate_right {
                width: 3rem !important;
            }

            #plate_mid {
                width: 2.4rem !important;
            }

            .plate-select {
                width: 2.5rem;
            }

            .plate-badge {
                padding: 0 0.2rem;
                font-size: 0.5rem;
            }
        }

        @media (min-width: 1024px) {
            .promo-card {
                padding: var(--space-5);
            }

            .promo-title {
                font-size: var(--text-xl);
            }
        }

        /* ============================================================
           INVOICE / PAYMENT STEP
           ============================================================ */
        .invoice-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--surface-100);
        }

        .invoice-row:last-child {
            border-bottom: none;
        }

        /* ----- Swal2 Override (برای هماهنگی) ----- */
        .swal2-popup {
            font-family: var(--font-family) !important;
            border-radius: var(--radius-lg) !important;
        }

        .swal2-confirm {
            background: var(--navy-700) !important;
            border-radius: var(--radius-md) !important;
        }

        .swal2-cancel {
            border-radius: var(--radius-md) !important;
        }