body {
    font-family: 'Vazirmatn', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Temporarily disable transitions during theme switch / first paint */
.preload,
.preload * {
    transition: none !important;
}

/* Smooth scrolling in iOS webviews */
.overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

/* Ambient glows — radial-gradient already soft; never use CSS filter:blur on these layers */
.ambient-purple,
.ambient-pink,
.ambient-blue,
.ambient-peach {
    filter: none !important;
    contain: paint;
}

.ambient-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(255,255,255,0) 70%);
}

.ambient-pink {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.2) 0%, rgba(255,255,255,0) 70%);
}

.ambient-blue {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(255,255,255,0) 70%);
}

.ambient-peach {
    background: radial-gradient(circle, rgba(253, 186, 116, 0.18) 0%, rgba(255,255,255,0) 70%);
}

.dark .ambient-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
}

@media (max-width: 767px) {
    .ambient-pink,
    .ambient-blue,
    .ambient-peach {
        display: none;
    }
}

@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
    .ambient-purple,
    .ambient-pink,
    .ambient-blue,
    .ambient-peach {
        display: none;
    }
}

/* Glass card: opaque-enough fill + edge highlight. No backdrop-filter (ancestor of inputs). */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 50px 100px -20px rgba(124, 58, 237, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.85), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel,
.reg-modal-overlay,
.reg-modal-panel,
.reg-modal-close,
#addChildModal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.reg-field {
    transition-property: border-color, box-shadow, background-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Smooth step views transition */
.step-view {
    display: none;
    opacity: 0;
    transform: scale(0.98) translateY(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

    .step-view.active {
        display: block;
        opacity: 1;
        transform: scale(1) translateY(0);
        animation: appSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

@keyframes appSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(12px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Elastic Custom Checkbox */
.custom-check-container {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chkRules:checked ~ .custom-check-container {
    border-color: #a78bfa;
    background-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

    #chkRules:checked ~ .custom-check-container .custom-check-icon {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }

/* Segment Switchers Active States (طراحی همگرا، مات و باکلاس بدون افکت گرادینت تند) */
.label-checked-purple {
    background-color: rgba(243, 232, 255, 0.8);
    color: #7c3aed !important;
    border-color: #d8b4fe;
    /* box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08); */
}

.dark .label-checked-purple {
    background-color: rgba(59, 7, 100, 0.6);
    color: #d8b4fe !important;
    border-color: #581c87;
}

.label-checked-orange {
    background-color: rgba(255, 237, 213, 0.8);
    color: #ea580c !important;
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.dark .label-checked-orange {
    background-color: rgba(67, 20, 7, 0.6);
    color: #fdba74 !important;
    border-color: #7c2d12;
}

.label-checked-blue {
    background-color: rgba(239, 246, 255, 0.8);
    color: #2563eb !important;
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.dark .label-checked-blue {
    background-color: rgba(23, 37, 84, 0.6);
    color: #93c5fd !important;
    border-color: #1e3a8a;
}

.label-checked-pink {
    background-color: rgba(253, 242, 248, 0.8);
    color: #db2777 !important;
    border-color: #fbcfe8;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.08);
}

.dark .label-checked-pink {
    background-color: rgba(76, 5, 25, 0.6);
    color: #fbcfe8 !important;
    border-color: #831843;
}

.map-pulse {
    animation: mapBounce 2.2s infinite;
}

@keyframes mapBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Captcha refresh button */
.refreshCaptcha {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.refreshCaptcha:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.18);
}

.refreshCaptcha:active:not(:disabled) {
    transform: scale(0.94);
}

.refreshCaptcha.is-refreshing {
    pointer-events: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.refreshCaptcha .captcha-spin {
    animation: captchaSpin 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes captchaSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    40% {
        transform: rotate(200deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

#captchaContainer1 img.captcha-img-refresh,
img.captcha-img-refresh {
    animation: captchaImgPulse 0.7s ease;
}

@keyframes captchaImgPulse {
    0% {
        opacity: 0.35;
        transform: scale(0.92);
        filter: blur(1px);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* NewDesign toast notifications */
.reg-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.28);
    border: 1px solid transparent;
    animation: regToastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-toast.is-leaving {
    animation: regToastOut 0.28s ease forwards;
}

.reg-toast-success {
    background: rgba(236, 253, 245, 0.92);
    border-color: rgba(16, 185, 129, 0.35);
    color: #065f46;
}

.dark .reg-toast-success {
    background: rgba(6, 78, 59, 0.88);
    border-color: rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.reg-toast-error {
    background: rgba(255, 241, 242, 0.94);
    border-color: rgba(244, 63, 94, 0.35);
    color: #9f1239;
}

.dark .reg-toast-error {
    background: rgba(76, 5, 25, 0.9);
    border-color: rgba(251, 113, 133, 0.35);
    color: #fecdd3;
}

.reg-toast-warning {
    background: rgba(255, 251, 235, 0.94);
    border-color: rgba(245, 158, 11, 0.4);
    color: #92400e;
}

.dark .reg-toast-warning {
    background: rgba(69, 26, 3, 0.9);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.reg-toast-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.reg-toast-success .reg-toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.dark .reg-toast-success .reg-toast-icon {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.reg-toast-error .reg-toast-icon {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}

.dark .reg-toast-error .reg-toast-icon {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
}

.reg-toast-warning .reg-toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.dark .reg-toast-warning .reg-toast-icon {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.reg-toast-body {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.6;
}

.reg-toast-close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    opacity: 0.55;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

.reg-toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.dark .reg-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

@keyframes regToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes regToastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
}

/* Full-screen AJAX loading — school service themed */
.reg-loading {
    position: fixed;
    inset: 0;
    z-index: 800000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.reg-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reg-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .reg-loading-backdrop {
    background: rgba(2, 6, 23, 0.65);
}

.reg-loading-card {
    position: relative;
    z-index: 1;
    width: min(22rem, 100%);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 24px 48px -20px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(139, 92, 246, 0.08);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-loading.is-visible .reg-loading-card {
    transform: translateY(0) scale(1);
}

.dark .reg-loading-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(51, 65, 85, 0.8);
}

.reg-loading-orbit {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
}

.reg-loading-taxi {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #0f172a;
    background: linear-gradient(145deg, #ffd45a, #ffb800);
    box-shadow: 0 10px 24px -8px rgba(255, 184, 0, 0.55);
    animation: regTaxiPulse 1.6s ease-in-out infinite;
}

.reg-loading-dot {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    margin: -0.275rem;
    animation: regOrbitSpin 1.4s linear infinite;
}

.reg-loading-dot.d1 { --orbit-delay: 0s; --orbit-color: #8b5cf6; background: var(--orbit-color); }
.reg-loading-dot.d2 { --orbit-delay: -0.46s; --orbit-color: #38bdf8; background: var(--orbit-color); animation-delay: var(--orbit-delay); }
.reg-loading-dot.d3 { --orbit-delay: -0.92s; --orbit-color: #fb7185; background: var(--orbit-color); animation-delay: var(--orbit-delay); }

.reg-loading-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
}

.dark .reg-loading-title {
    color: #f8fafc;
}

.reg-loading-sub {
    margin: 0.4rem 0 1.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.reg-loading-bar {
    position: relative;
    height: 0.35rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.25);
    direction: ltr; /* keep indeterminate bar L→R even on RTL pages */
}

.reg-loading-bar span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8, #ffb800);
    animation: regBarSlide 1.15s ease-in-out infinite;
}

@keyframes regTaxiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes regOrbitSpin {
    from { transform: rotate(0deg) translateX(2.35rem) rotate(0deg); }
    to { transform: rotate(360deg) translateX(2.35rem) rotate(-360deg); }
}

@keyframes regBarSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); } /* 100% / 0.4 width → fully exits right */
}

.otp-pulse {
    animation: otpPulse 2s ease-in-out infinite;
}

@keyframes otpPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.otp-digit.is-filled {
    border-color: #34d399 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    transform: scale(1.04);
}

/* Modal: natural height panel; backdrop scrolls */
html.reg-modal-open {
    /* keep scrollbar gutter stable; do NOT lock body — backdrop must scroll */
}

.reg-modal-overlay {
    overscroll-behavior: contain;
}

.reg-modal-frame {
    /* centers when short; when tall, grows and overlay scrolls */
    align-items: safe center;
}

.reg-modal-panel {
    /* natural height only — no inner scroll / max-height clamp */
    overflow: visible;
}

.reg-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.dark .reg-modal-close {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(71, 85, 105, 0.6);
    color: #94a3b8;
}

.reg-modal-close:hover {
    transform: scale(1.08) rotate(90deg);
    color: #e11d48;
    background: rgba(255, 241, 242, 0.95);
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.18);
}

.dark .reg-modal-close:hover {
    background: rgba(76, 5, 25, 0.55);
    color: #fb7185;
}

.reg-modal-close:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.reg-modal-close:active {
    transform: scale(0.94) rotate(90deg);
}



div.genderControl:has(.sr-only.input-validation-error){
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08) !important;
}

/* Input group (addon چسبیده مثل Bootstrap) — dir=ltr روی گروه = addon سمت چپ */
.reg-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 3.5rem; /* h-14 */
    border-radius: 1rem; /* rounded-2xl */
    border: 1px solid rgba(226, 232, 240, 1); /* slate-200 */
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.dark .reg-input-group {
    border-color: rgba(30, 41, 59, 1); /* slate-800 */
    background: rgba(2, 6, 23, 0.4); /* slate-950/40 */
}

.reg-input-group:focus-within {
    border-color: #c084fc; /* purple-400 */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.05);
}

.dark .reg-input-group:focus-within {
    background: rgba(2, 6, 23, 0.7);
}

.reg-input-group:has(.input-validation-error) {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08) !important;
}

.reg-input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #64748b; /* slate-500 */
    background: rgba(241, 245, 249, 0.9); /* slate-100 */
    border-right: 1px solid rgba(226, 232, 240, 1);
    user-select: none;
}

.dark .reg-input-group-text {
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.85); /* slate-800 */
    border-right-color: rgba(51, 65, 85, 1); /* slate-700 */
}

.reg-input-group-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding-left: 1rem;
    padding-right: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .reg-input-group-input {
    color: #e2e8f0;
}

.reg-input-group-input::placeholder {
    color: #94a3b8;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.field-validation-error { display: block; }

.input-validation-error {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08) !important;
}

.validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }

.datepicker-plot-area { z-index: 70 !important; }

/*
 * Select2 themed like NewDesign native selects (province/city):
 * h-14, rounded-2xl, bg-white/40, purple focus ring
 * Utility.fillSelect2 uses theme: bootstrap-5
 */
.glass-panel .select2-container,
.glass-panel .select2-container--bootstrap-5,
.glass-panel .select2-container--default {
    width: 100% !important;
}

.glass-panel .select2-container .select2-selection--single,
.glass-panel .select2-container--bootstrap-5 .select2-selection--single,
.glass-panel .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    padding: 0 1.25rem 0 2.75rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 1.1rem center !important;
    background-size: 14px 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.dark .glass-panel .select2-container .select2-selection--single,
.dark .glass-panel .select2-container--bootstrap-5 .select2-selection--single,
.dark .glass-panel .select2-container--default .select2-selection--single {
    border-color: #1e293b !important;
    background-color: rgba(2, 6, 23, 0.4) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

.glass-panel .select2-container.select2-container--focus .select2-selection--single,
.glass-panel .select2-container.select2-container--open .select2-selection--single,
.glass-panel .select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.glass-panel .select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    border-color: #c084fc !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.05) !important;
}

.dark .glass-panel .select2-container.select2-container--focus .select2-selection--single,
.dark .glass-panel .select2-container.select2-container--open .select2-selection--single,
.dark .glass-panel .select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.dark .glass-panel .select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    background-color: rgba(2, 6, 23, 0.85) !important;
    border-color: #a78bfa !important;
}

.glass-panel .select2-container .select2-selection--single .select2-selection__rendered,
.glass-panel .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
}

.dark .glass-panel .select2-container .select2-selection--single .select2-selection__rendered,
.dark .glass-panel .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}

.glass-panel .select2-container .select2-selection--single .select2-selection__placeholder,
.glass-panel .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

.glass-panel .select2-container .select2-selection--single .select2-selection__arrow,
.glass-panel .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.glass-panel .select2-container .select2-selection--single .select2-selection__clear,
.glass-panel .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    left: 2.4rem;
    right: auto;
    margin: 0;
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--default .select2-dropdown {
    z-index: 80;
    margin-top: 0.35rem;
    overflow: hidden;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.18);
    color: #1e293b;
}

.dark .select2-container--bootstrap-5 .select2-dropdown,
.dark .select2-container--default .select2-dropdown {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #e2e8f0;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
}

.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below,
.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--above {
    border-radius: 1rem !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search {
    padding: 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    height: 2.75rem !important;
    padding: 0 1rem !important;
    border-radius: 0.85rem !important;
    border: 1px solid #e2e8f0 !important;
    background: rgba(248, 250, 252, 0.9) !important;
    font-family: inherit;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #c084fc !important;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.05) !important;
    background: #fff !important;
}

.dark .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    background: rgba(2, 6, 23, 0.6) !important;
    border-color: #1e293b !important;
    color: #e2e8f0;
}

.select2-container--bootstrap-5 .select2-results__option,
.select2-container--default .select2-results__option {
    padding: 0.7rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted {
    background: #f3e8ff !important;
    color: #6b21a8 !important;
}

.dark .select2-container--bootstrap-5 .select2-results__option--highlighted,
.dark .select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(124, 58, 237, 0.35) !important;
    color: #f5f3ff !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background: #ede9fe !important;
    color: #5b21b6 !important;
}

.dark .select2-container--bootstrap-5 .select2-results__option--selected,
.dark .select2-container--bootstrap-5 .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background: rgba(124, 58, 237, 0.25) !important;
    color: #ddd6fe !important;
}

.glass-panel select.input-validation-error + .select2-container .select2-selection--single {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08) !important;
}

/* Leaflet map inside NewDesign location step */
#mapContainerUI #mapcontainer {
    border-radius: 1.5rem;
    min-height: 100%;
}

#mapContainerUI .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    font-family: 'Vazirmatn', sans-serif;
}

#pac-input.leaflet-control,
.leaflet-control-geocoder {
    z-index: 1000;
}

/* ========== Driver registration wizard (public) ========== */
.driver-reg-wizard .sw > .sw-content > .sw-pane {
    padding: 1rem 0.75rem 1.25rem;
}

@media (min-width: 768px) {
    .driver-reg-wizard .sw > .sw-content > .sw-pane {
        padding: 0.75rem 1rem 1.5rem;
    }
}

/* عناوین مراحل smartWizard روی موبایل اسکرول اضافه و شلوغی می‌سازند — فقط نوار پیشرفت */
.driver-reg-wizard #smartwizard > ul.sw-nav {
    display: none !important;
}

@media (max-width: 767px) {
    .driver-reg-wizard #driverRegStepper {
        display: none !important;
    }

    .driver-reg-wizard .progress {
        display: block !important;
        margin: 0 0 1rem;
    }
}

.reg-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 900;
    color: #334155;
    padding-inline: 0.25rem;
    margin-bottom: 0.35rem;
}

.dark .reg-label {
    color: #e2e8f0;
}

.reg-input,
select.reg-input,
textarea.reg-input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.45);
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.dark .reg-input,
.dark select.reg-input,
.dark textarea.reg-input {
    border-color: #1e293b;
    background: rgba(2, 6, 23, 0.45);
    color: #e2e8f0;
}

.reg-input:focus,
select.reg-input:focus,
textarea.reg-input:focus {
    border-color: #c084fc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.08);
}

.dark .reg-input:focus,
.dark select.reg-input:focus,
.dark textarea.reg-input:focus {
    background: rgba(2, 6, 23, 0.75);
}

textarea.reg-input {
    min-height: 6rem;
    resize: vertical;
}

.reg-readonly {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.75);
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
}

.dark .reg-readonly {
    border-color: #1e293b;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reg-grid-span-all {
    grid-column: 1 / -1;
}

.reg-panel-card {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dark .reg-panel-card {
    border-color: rgba(30, 41, 59, 0.85);
    background: rgba(2, 6, 23, 0.28);
}

.reg-panel-card-sky {
    border-color: rgba(186, 230, 253, 0.55);
    background: rgba(240, 249, 255, 0.35);
}

.dark .reg-panel-card-sky {
    border-color: rgba(12, 74, 110, 0.55);
    background: rgba(8, 47, 73, 0.18);
}

.reg-panel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.55);
}

.dark .reg-panel-card-head {
    border-bottom-color: rgba(51, 65, 85, 0.65);
}

.reg-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #6d28d9;
    background: rgba(243, 232, 255, 0.7);
    border: 1px solid rgba(216, 180, 254, 0.35);
}

.dark .reg-panel-badge {
    color: #d8b4fe;
    background: rgba(59, 7, 100, 0.4);
    border-color: rgba(88, 28, 135, 0.45);
}

.reg-panel-badge-sky {
    color: #0369a1;
    background: rgba(224, 242, 254, 0.75);
    border-color: rgba(125, 211, 252, 0.4);
}

.dark .reg-panel-badge-sky {
    color: #7dd3fc;
    background: rgba(12, 74, 110, 0.35);
    border-color: rgba(14, 116, 144, 0.45);
}

.reg-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.25rem;
}

.reg-section-head-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #9333ea;
    background: rgba(250, 245, 255, 0.95);
    border: 1px solid rgba(233, 213, 255, 0.85);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
}

.dark .reg-section-head-icon {
    color: #d8b4fe;
    background: rgba(88, 28, 135, 0.32);
    border-color: rgba(126, 34, 206, 0.42);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.reg-section-head-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.dark .reg-section-head-title {
    color: #f8fafc;
}

.reg-section-head-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

/* Step 1 — single column stack */
.reg-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 36rem;
    margin-inline: auto;
}

.reg-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reg-input-icon-wrap {
    position: relative;
}

.reg-input-icon-wrap .reg-input {
    padding-left: 3rem;
}

.reg-input-icon-wrap .reg-field-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 1rem;
}

/* Iranian plate input (editable) */
.reg-plate-input {
    display: flex;
    width: 100%;
    max-width: 26rem;
    height: 3.5rem;
    margin-inline: auto;
    border: 2px solid #0f172a;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8fafc;
    direction: ltr;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .reg-plate-input {
    border-color: #cbd5e1;
    background: #0f172a;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.plqArea:has([name="Plaque"].input-validation-error) .reg-plate-input {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1) !important;
}

.reg-plate-input .reg-plate-blue {
    width: 2.125rem;
    background: linear-gradient(180deg, #1a4db3 0%, #003399 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0.2rem 0;
    flex-shrink: 0;
}

.reg-plate-input .reg-plate-flag {
    width: 1rem;
    height: 0.625rem;
    border-radius: 1px;
    overflow: hidden;
    background: linear-gradient(180deg, #239f40 0 33%, #fff 33% 66%, #da0000 66% 100%);
    position: relative;
}

.reg-plate-input .reg-plate-flag::after {
    content: '';
    position: absolute;
    inset: 33% 0 34%;
    background: radial-gradient(circle at 50% 50%, #da0000 0 1.2px, transparent 1.4px);
}

.reg-plate-input .reg-plate-ir {
    color: #fff;
    font-size: 0.38rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

.reg-plate-input .reg-plate-main {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.2rem;
    cursor: text;
}

.reg-plate-input .reg-plate-main input,
.reg-plate-input .reg-plate-main select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 0.15rem !important;
    text-align: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    outline: none;
    font-variant-numeric: tabular-nums;
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.reg-plate-input .reg-plate-main input::-webkit-outer-spin-button,
.reg-plate-input .reg-plate-main input::-webkit-inner-spin-button,
.reg-plate-input .reg-plate-city input::-webkit-outer-spin-button,
.reg-plate-input .reg-plate-city input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dark .reg-plate-input .reg-plate-main input,
.dark .reg-plate-input .reg-plate-main select {
    color: #f1f5f9;
}

.reg-plate-input .reg-plate-main input::placeholder {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
}

.reg-plate-input #txtPlate1 {
    flex: 0.9 1 0;
}

.reg-plate-input #txtPlate2 {
    flex: 1.2 1 0;
}

.reg-plate-input #ddlPlate {
    flex: 1 1 0;
    font-size: 0.95rem !important;
    cursor: pointer;
}

.reg-plate-input .reg-plate-city {
    width: 3.35rem;
    border-left: 2px solid #0f172a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.1rem;
    background: #fff;
    flex-shrink: 0;
    padding: 0.15rem 0.2rem 0.25rem;
    cursor: text;
}

.dark .reg-plate-input .reg-plate-city {
    border-left-color: #cbd5e1;
    background: #1e293b;
}

.reg-plate-input .reg-plate-iran-label {
    font-size: 0.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    text-align: center;
}

.dark .reg-plate-input .reg-plate-iran-label {
    color: #e2e8f0;
}

.reg-plate-input .reg-plate-city input {
    width: 100% !important;
    flex: 1 1 auto;
    min-height: 1.5rem;
    font-size: 1rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.dark .reg-plate-input .reg-plate-city input {
    color: #f1f5f9;
}

@media (max-width: 480px) {
    .reg-plate-input {
        max-width: 100%;
        height: 3.25rem;
    }

    .reg-plate-input .reg-plate-main input,
    .reg-plate-input .reg-plate-main select {
        font-size: 1rem;
    }

    .reg-captcha-row {
        gap: 0.75rem;
    }

    .reg-captcha-box {
        width: 100%;
    }

    .reg-btn-map span {
        display: none;
    }

    .reg-btn-map {
        min-width: 3.5rem;
        padding-inline: 0.85rem;
    }
}

/* Captcha row */
.reg-captcha-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .reg-captcha-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.reg-captcha-input-wrap {
    flex: 1;
    min-width: 0;
}

.reg-captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    min-height: 3.5rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.dark .reg-captcha-box {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(51, 65, 85, 0.9);
}

.reg-captcha-box img {
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.dark .reg-captcha-box img {
    border-color: rgba(51, 65, 85, 0.85);
}

.reg-captcha-refresh {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(243, 232, 255, 0.85);
    color: #7c3aed;
    border: 1px solid rgba(216, 180, 254, 0.55);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.reg-captcha-refresh:hover {
    background: rgba(233, 213, 255, 0.95);
    transform: rotate(-8deg);
}

.dark .reg-captcha-refresh {
    background: rgba(59, 7, 100, 0.45);
    color: #d8b4fe;
    border-color: rgba(126, 34, 206, 0.45);
}

/* Postal + map button */
.reg-postal-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .reg-postal-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.reg-postal-row .reg-affix {
    flex: 1;
    min-width: 0;
}

.reg-btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0 1.15rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 232, 255, 0.65) 100%);
    color: #7c3aed;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.dark .reg-btn-map {
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.85) 0%, rgba(59, 7, 100, 0.55) 100%);
    color: #d8b4fe;
    border-color: rgba(126, 34, 206, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.reg-btn-map:hover {
    transform: translateY(-1px);
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
}

.reg-btn-map i {
    font-size: 1rem;
}

.reg-foot-center {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.reg-btn-search-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 15rem;
    height: 3.5rem;
    padding: 0 2.5rem;
    border: none;
    border-radius: 1rem;
    font-size: 0.9375rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.32);
    transition: transform 0.2s, box-shadow 0.2s;
}

.reg-btn-search-lg:hover {
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.reg-btn-search-lg:active {
    transform: scale(0.98);
}

.reg-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.38);
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 12.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.reg-btn:active {
    transform: scale(0.97);
}

.reg-btn-next,
.reg-btn-search {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.reg-btn-next:hover,
.reg-btn-search:hover {
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.38);
    transform: translateY(-1px);
}

.reg-btn-back {
    background: rgba(255, 255, 255, 0.72);
    color: #e11d48;
    border: 1px solid rgba(251, 113, 133, 0.42);
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.06);
}

.dark .reg-btn-back {
    background: rgba(15, 23, 42, 0.62);
    color: #fb7185;
    border-color: rgba(190, 18, 60, 0.42);
}

.reg-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.reg-btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: #475569;
    border: 1px dashed rgba(148, 163, 184, 0.55);
}

.dark .reg-btn-ghost {
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    border-color: rgba(71, 85, 105, 0.65);
}

.reg-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.reg-fieldset {
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: rgba(255, 255, 255, 0.34);
    margin: 0 0 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dark .reg-fieldset {
    border-color: rgba(51, 65, 85, 0.75);
    background: rgba(15, 23, 42, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.reg-legend {
    font-size: 0.875rem;
    font-weight: 900;
    color: #7c3aed;
    padding: 0 0.65rem;
    margin-bottom: 0.35rem;
}

.dark .reg-legend {
    color: #c4b5fd;
}

.reg-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(248, 250, 252, 0.65);
}

.dark .reg-seg {
    border-color: rgba(30, 41, 59, 0.85);
    background: rgba(2, 6, 23, 0.45);
}

.reg-seg input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.reg-seg label {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.75rem 0.65rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reg-seg input:checked + label {
    background: rgba(243, 232, 255, 0.85);
    color: #7c3aed;
    border: 1px solid rgba(216, 180, 254, 0.65);
}

.dark .reg-seg input:checked + label {
    background: rgba(59, 7, 100, 0.55);
    color: #d8b4fe;
    border-color: rgba(88, 28, 135, 0.65);
}

.reg-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
    margin: 0.5rem 0;
}

.reg-val-summary {
    display: inline-grid;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #e11d48;
    margin-top: 0.75rem;
}

.reg-affix {
    position: relative;
}

.reg-affix-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.reg-affix .reg-input {
    padding-left: 3rem;
}

.reg-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.reg-plaque-tag {
    display: none;
}

.reg-map-split {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .reg-map-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reg-map-box #mapcontainer-home,
.reg-map-box #mapcontainer-choose {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.reg-map-box .controls {
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.dark .reg-map-box .controls {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}

.reg-map-hints {
    color: #7c3aed;
    margin: 0 0 0.75rem;
}

.dark .reg-map-hints {
    color: #c4b5fd;
}

.drg-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #5b21b6;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.65;
}

.dark .drg-field-hint {
    background: rgba(91, 33, 182, 0.25);
    border-color: rgba(167, 139, 250, 0.35);
    color: #ddd6fe;
}

.drg-field-hint i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.drg-radius-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(236, 253, 245, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.7;
}

.dark .drg-radius-note {
    background: rgba(6, 78, 59, 0.35);
    border-color: rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.drg-radius-note i {
    margin-top: 0.25rem;
    color: #059669;
    flex-shrink: 0;
}

.dark .drg-radius-note i {
    color: #34d399;
}

.drg-choices-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.85);
}

.dark .drg-choices-panel {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.55);
}

.drg-choices-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.drg-choices-title {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.dark .drg-choices-title {
    color: #f1f5f9;
}

.drg-choices-count {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7c3aed;
}

.dark .drg-choices-count {
    color: #c4b5fd;
}

.drg-choices-empty {
    margin: 0;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(167, 139, 250, 0.55);
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
}

.dark .drg-choices-empty {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(167, 139, 250, 0.35);
    color: #94a3b8;
}

.drg-choices-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drg-choice-chip {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.drg-choice-main {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.1rem;
    align-items: center;
    text-align: right;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(196, 181, 253, 0.65);
    background: #fff;
    color: #4c1d95;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .drg-choice-main {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(139, 92, 246, 0.45);
    color: #ddd6fe;
}

.drg-choice-main:hover {
    border-color: #7c3aed;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
}

.drg-choice-idx {
    grid-row: 1 / span 2;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    font-size: 0.8125rem;
}

.drg-choice-label {
    font-size: 0.875rem;
}

.drg-choice-hint {
    grid-column: 2;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.drg-choice-del {
    width: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(251, 113, 133, 0.45);
    background: rgba(255, 241, 242, 0.95);
    color: #e11d48;
    cursor: pointer;
}

.dark .drg-choice-del {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(251, 113, 133, 0.35);
    color: #fda4af;
}

.drg-add-point-btn {
    width: 100%;
    justify-content: center;
}

.driver-reg-wizard .picture-container .picture-src {
    border: 3px solid rgba(216, 180, 254, 0.55);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

.driver-reg-wizard label.Upload.reg-btn-ghost {
    cursor: pointer;
    margin-top: 0.5rem;
}

.reg-alert-warn {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(254, 243, 199, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #92400e;
    font-weight: 700;
    line-height: 1.7;
}

.dark .reg-alert-warn {
    background: rgba(69, 26, 3, 0.45);
    border-color: rgba(180, 83, 9, 0.45);
    color: #fcd34d;
}

.driver-reg-wizard .reg-input-action:has(~ [name="Plaque"].input-validation-error) > * {
    border-color: #f43f5e;
}

.driver-reg-wizard #codeInput .otp-letters {
    min-width: 280px;
    width: 100%;
    max-width: 360px;
    margin: 1rem auto;
    display: flex;
    gap: 0.35rem;
}

.driver-reg-wizard #codeInput .letter {
    height: 2.75rem;
    text-align: center;
    flex: 1 1 0;
    outline: none;
    font-size: 1.125rem;
    font-weight: 900;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    color: #1e293b;
}

.dark .driver-reg-wizard #codeInput .letter {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.55);
    color: #f1f5f9;
}

.driver-reg-wizard #codeInput .letter:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.driver-reg-wizard .progress {
    overflow: hidden;
    height: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(248, 250, 252, 0.85);
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.dark .driver-reg-wizard .progress {
    background: rgba(15, 23, 42, 0.65);
    border-color: #334155;
}

.driver-reg-wizard .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    border-radius: 999px;
    transition: width 0.35s ease;
}

#driverRegApp .sng-tw-modal-overlay {
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
}

#driverRegApp .sng-tw-modal-sheet {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px -24px rgba(124, 58, 237, 0.25);
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
}

.dark #driverRegApp .sng-tw-modal-sheet {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(51, 65, 85, 0.85);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.55);
}

#driverRegApp .sng-tw-modal-head,
#driverRegApp .sng-tw-modal-foot {
    border-color: rgba(148, 163, 184, 0.35) !important;
}

#driverRegApp .sng-kit-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.75);
    color: #64748b;
}

.dark #driverRegApp .sng-kit-close {
    background: rgba(15, 23, 42, 0.75);
    color: #94a3b8;
}

.glass-panel .select2-container--default .select2-selection--single,
.glass-panel .select2-container .select2-selection--single {
    min-height: 3.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.45);
}

.dark .glass-panel .select2-container--default .select2-selection--single,
.dark .glass-panel .select2-container .select2-selection--single {
    border-color: #1e293b;
    background: rgba(2, 6, 23, 0.45);
}

/* —— تایید نهایی / رسید راننده —— */
.drg-confirm-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drg-confirm-block {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.75rem 0.9rem 0.85rem;
}

.dark .drg-confirm-block {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.45);
}

.drg-confirm-block-title {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #5b21b6;
}

.dark .drg-confirm-block-title {
    color: #c4b5fd;
}

.drg-confirm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 0.75rem;
}

@media (min-width: 768px) {
    .drg-confirm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.drg-confirm-span {
    grid-column: 1 / -1;
}

.drg-confirm-field,
.drg-confirm-grid .js-confirm-field {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-height: auto;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.9);
}

.dark .drg-confirm-grid .js-confirm-field {
    border-bottom-color: rgba(51, 65, 85, 0.9);
}

.drg-confirm-k {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.drg-confirm-k::after {
    content: ':';
    margin-right: 0.15rem;
}

.drg-confirm-v {
    flex: 1 1 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.dark .drg-confirm-v {
    color: #e2e8f0;
    background: transparent;
}

.drg-receipt-host {
    position: absolute;
    left: -12000px;
    top: 0;
    width: 700px;
    pointer-events: none;
}

.drg-receipt-host.is-exporting {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.drg-receipt {
    width: 700px;
    max-width: 700px;
    margin: 0;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 18px 20px 14px;
    background: #fff;
    color: #0f172a;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.drg-receipt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 12px;
}

.drg-receipt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drg-receipt-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.drg-receipt-org {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.drg-receipt-sub {
    margin: 3px 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.drg-receipt-doc {
    text-align: left;
}

.drg-receipt-doc h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.drg-receipt-doc p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.drg-receipt-meta {
    display: flex;
    gap: 8px;
    margin: 12px 0 4px;
    flex-wrap: wrap;
}

.drg-receipt-meta > div {
    flex: 1 1 30%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 700;
}

.drg-receipt-meta span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
}

.drg-receipt-sec {
    margin-top: 10px;
}

.drg-receipt-sec h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    background: #f1f5f9;
    border-right: 3px solid #7c3aed;
    padding: 5px 8px;
    border-radius: 5px;
}

.drg-receipt-rows {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.drg-receipt-rows td {
    border: 1px solid #e2e8f0;
    padding: 5px 8px;
    vertical-align: top;
}

.drg-receipt-rows td.lbl {
    width: 88px;
    color: #64748b;
    font-weight: 700;
    background: #fafbfd;
    white-space: nowrap;
}

.drg-receipt-rows td.val {
    font-weight: 700;
}

.drg-receipt .ltr {
    direction: ltr;
    text-align: right;
    unicode-bidi: embed;
}

.drg-receipt-note {
    margin: 12px 0 0;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    line-height: 1.8;
}

.drg-receipt-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}