/* ═══════════════════════════════════════════════════════════════
   سالن زیبایی اپرا — Base CSS (مشترک بین همه صفحات)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Espresso base instead of flat black — warmer, less "generic dark theme" */
    --bg-dark: #16110c;
    --bg-darker: #0d0a06;
    --bg-section-alt: rgba(28, 21, 14, 0.5);
    --bg-card: rgba(35, 27, 19, 0.7);
    --bg-card-2: rgba(42, 32, 22, 0.8);

    /* Antique brass instead of generic bright gold */
    --gold: #bb8f4a;
    --gold-light: #d9b06e;
    --gold-dim: rgba(187, 143, 74, .16);
    --clay: #a8583f;
    --clay-dim: rgba(168, 88, 63, .18);

    --text: #ece5d8;
    --text-muted: #a89a86;
    --text-title: #fbf6ec;
    --border: rgba(187, 143, 74, 0.2);
    --border-strong: rgba(187, 143, 74, 0.4);
    --success: #6a9f5a;
    --error: #c1573f;
    --radius: 18px;
    --font: 'Vazirmatn', Tahoma, sans-serif;
    --font-display: 'Vazirmatn', Tahoma, sans-serif;

    /* Glass & Shadows — lighter blur values, used sparingly */
    --glass: rgba(30, 23, 16, 0.72);
    --glass-2: rgba(40, 31, 21, 0.78);
    --glass-navbar: rgba(22, 17, 12, 0.86);
    --glass-blur: 10px;
    --shadow-card: 0 16px 34px -12px rgba(0, 0, 0, 0.55);

    /* Hero Light/Dark Overlays */
    --hero-bg-color: #16110c;
    --hero-overlay: radial-gradient(circle at 50% 40%, rgba(40, 30, 18, 0.2) 0%, rgba(13, 10, 6, 0.92) 75%),
        linear-gradient(180deg, rgba(13, 10, 6, 0.7) 0%, rgba(13, 10, 6, 0.4) 50%, #16110c 100%);
    --hero-video-filter: brightness(0.62) contrast(1.12) saturate(1.05);
}

[data-theme="light"] {
    --bg-dark: #faf6ee;
    --bg-darker: #f1e9d8;
    --bg-section-alt: #f2ebdd;
    --bg-card: #fffdf8;
    --bg-card-2: #fffdf8;
    --gold: #9c7128;
    --gold-light: #b98d3c;
    --gold-dim: rgba(156, 113, 40, 0.12);
    --clay: #a8583f;
    --clay-dim: rgba(168, 88, 63, .12);
    --text: #3a3226;
    --text-muted: #7a6f5c;
    --text-title: #211b12;
    --border: rgba(60, 45, 20, 0.1);
    --border-strong: rgba(156, 113, 40, 0.35);

    /* Glass & Shadows in Light Mode */
    --glass: #fffdf8;
    --glass-2: #fffdf8;
    --glass-navbar: rgba(255, 253, 248, 0.95);
    --glass-blur: 12px;
    --shadow-card: 0 10px 26px -6px rgba(60, 45, 20, 0.08), 0 4px 12px rgba(60, 45, 20, 0.04);

    /* Hero Light Overlays */
    --hero-bg-color: #faf6ee;
    --hero-overlay: radial-gradient(circle at 50% 40%, rgba(255, 253, 248, 0.18) 0%, rgba(250, 246, 238, 0.88) 75%),
        linear-gradient(180deg, rgba(250, 246, 238, 0.4) 0%, rgba(250, 246, 238, 0.7) 50%, #faf6ee 100%);
    --hero-video-filter: brightness(0.97) contrast(1.04);
}

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

/* Native momentum scroll for 60-120fps smoothness without artificial wheel fighting */
html {
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* GPU Hardware Acceleration Hints — strictly on transforming layers */
.tilt-card,
.hero-media-bg,
#global-bg-canvas {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════════════════════════
   پس‌زمینه زنده سراسری (Three.js) — پشت تمام محتوای هر صفحه
   ═══════════════════════════════════════════════════════════════ */
#global-bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
}

input,
select,
textarea {
    font-family: var(--font);
}

::selection {
    background: var(--gold);
    color: #000;
}

/* ─── اسکرول‌بار ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ─── دکمه‌های مشترک ───────────────────────────────────────────── */
.btn-primary,
.btn-gold,
.btn-ghost,
.btn-secondary,
.btn-outline,
.btn-ai,
.btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s ease;
    white-space: nowrap;
}

.btn-primary,
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #241a0d;
}

.btn-primary:hover,
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -8px rgba(187, 143, 74, .5);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    width: 100%;
}

.btn-outline:hover {
    background: var(--gold);
    color: #241a0d;
}

.btn-ai {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #241a0d;
    width: 100%;
    padding: 1.1rem;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(187, 143, 74, .6);
}

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

.btn-xl {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ─── باکس‌های وضعیت (خطا/موفقیت) ─────────────────────────────── */
.auth-error {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .2);
    color: var(--error);
    padding: .9rem 1.1rem;
    border-radius: 10px;
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

/* ─── Reveal Animations (مشترک با GSAP) ───────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(30px) scale(.96);
    transition: all .6s cubic-bezier(.16, 1, .3, 1);
}

.reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── Empty state عمومی ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .5;
}

/* ─── ریسپانسیو پایه ───────────────────────────────────────────── */
@media (max-width: 768px) {

    .btn-primary,
    .btn-gold,
    .btn-ghost,
    .btn-secondary {
        padding: .75rem 1.4rem;
        font-size: .88rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SELECT (cs-*)
   ═══════════════════════════════════════════════════════════════ */
.cs-wrap {
    position: relative;
    width: 100%;
}

.cs-native {
    position: absolute !important;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.cs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-radius: 10px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font);
    transition: all .2s ease;
}

.cs-trigger:hover {
    border-color: var(--gold-dim);
}

.cs-wrap.open .cs-trigger {
    border-color: var(--gold);
}

.cs-trigger-arrow {
    color: var(--gold);
    font-size: .75rem;
    transition: transform .25s ease;
    margin-right: .5rem;
}

.cs-wrap.open .cs-trigger-arrow {
    transform: rotate(180deg);
}

.cs-trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-panel {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    left: 0;
    z-index: 60;
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
    max-height: 260px;
    overflow-y: auto;
    padding: .4rem;
}

.cs-wrap.open .cs-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cs-list {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.cs-option {
    list-style: none;
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .87rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s ease;
}

.cs-option:hover {
    background: var(--gold-dim);
    color: var(--gold-light);
}

.cs-option.selected {
    background: var(--gold-dim);
    color: var(--gold);
    font-weight: 600;
}

.cs-option.disabled {
    opacity: .35;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM FILE UPLOAD (cf-*)
   ═══════════════════════════════════════════════════════════════ */
.cf-wrap {
    width: 100%;
}

.cf-native {
    position: absolute !important;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.cf-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-align: center;
    cursor: pointer;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    padding: 2rem 1.2rem;
    background: var(--bg-card-2);
    transition: all .25s ease;
    min-height: 160px;
}

.cf-zone:hover,
.cf-zone.dragover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.cf-icon {
    font-size: 2.2rem;
    opacity: .7;
}

.cf-title {
    font-size: .88rem;
    font-weight: 600;
}

.cf-sub {
    font-size: .76rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

.cf-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
}

.cf-preview img,
.cf-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-filename {
    padding: 1rem;
    font-size: .85rem;
    color: var(--text);
}

.cf-zone.has-file {
    padding: 0;
    min-height: 180px;
}

.cf-remove {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    backdrop-filter: blur(4px);
}

.cf-remove:hover {
    background: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   تقویم شمسی (jdp-*)
   ═══════════════════════════════════════════════════════════════ */
[data-jalali-picker] {
    position: relative;
}

.jdp-display-input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font);
}

.jdp-display-input:focus {
    border-color: var(--gold);
    outline: none;
}

.jdp-popup {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    z-index: 80;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: 16px;
    box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .65);
    padding: 1.1rem;
    opacity: 0;
    transform: translateY(-10px) scale(.97);
    transition: all .18s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.jdp-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.jdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
}

.jdp-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--gold);
}

.jdp-nav {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jdp-nav:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.jdp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: .4rem;
}

.jdp-weekdays div {
    text-align: center;
    font-size: .72rem;
    color: var(--text-muted);
    padding: .3rem 0;
}

.jdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.jdp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .8rem;
    color: var(--text);
    background: transparent;
    transition: all .15s ease;
}

.jdp-day:not(.empty):not(.disabled):hover {
    background: var(--gold-dim);
    color: var(--gold-light);
}

.jdp-day.today {
    border: 1px solid var(--gold-dim);
    color: var(--gold-light);
}

.jdp-day.selected {
    background: var(--gold);
    color: #241a0d;
    font-weight: 700;
}

.jdp-day.disabled {
    opacity: .25;
    cursor: not-allowed;
}

.jdp-day.empty {
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   کرسر طلایی سفارشی
   ═══════════════════════════════════════════════════════════════ */
/* کرسر سفارشی غیرفعال شد */

/* ═══════════════════════════════════════════════════════════════
   نوار پیشرفت اسکرول
   ═══════════════════════════════════════════════════════════════ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0%;
    z-index: 9997;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 12px rgba(187, 143, 74, .6);
    transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   شیمر طلایی روی متن (کلاس عمومی .text-shimmer)
   ═══════════════════════════════════════════════════════════════ */
.text-shimmer {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, #fff 50%, var(--gold-light) 75%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerMove 3.5s linear infinite;
}

@keyframes shimmerMove {
    to {
        background-position: -200% center;
    }
}

/* ─── جداکنندهٔ موج مو بین سکشن‌ها ──────────────────────────────── */
.hair-divider {
    display: block;
    width: 100%;
    height: 40px;
    margin: -1px 0;
}

.hair-divider path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    opacity: .35;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.6s cubic-bezier(.16, 1, .3, 1);
}

.hair-divider.visible path {
    stroke-dashoffset: 0;
}

/* ─── جداکنندهٔ امضادار: بخیهٔ پارچه (Signature stitched-seam divider) ── */
.seam-divider {
    position: relative;
    height: 56px;
    margin: -1px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.seam-divider::before {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    height: 1px;
    background: var(--border-strong);
}

.seam-divider::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: calc(50% - 5px);
    height: 10px;
    background-image: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 6px, transparent 6px, transparent 16px);
    opacity: .55;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.seam-divider .seam-mark {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    color: var(--gold);
    font-size: .8rem;
    letter-spacing: 3px;
    padding: 0 1.2rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .jdp-popup {
        width: 260px;
    }
}

/* ── دکمه تغییر تم (Dark/Light) ── */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--glass-2);
    border-color: var(--gold);
}

@media (max-width: 968px) {
    .theme-toggle-btn {
        top: auto;
        bottom: 22px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        background: var(--bg-card-2);
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
        border: 1.5px solid var(--border-strong);
    }
}

/* ═══════════════════════════════════════════════════════════════
   7. LUXURY CUSTOM MODAL & CONFIRM DIALOG (سالن زیبایی اپرا)
   ═══════════════════════════════════════════════════════════════ */
.im-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 7, 5, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.im-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.im-modal-card {
    background: var(--bg-card-2, #231b13);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 2.2rem 2rem 1.8rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px var(--gold-dim);
    transform: scale(0.9) translateY(16px);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    color: var(--text);
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.im-modal-overlay.active .im-modal-card {
    transform: scale(1) translateY(0);
}

.im-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.im-modal-card.type-danger::before {
    background: linear-gradient(90deg, transparent, var(--error, #c1573f), transparent);
}

.im-modal-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 24px var(--gold-dim);
}

.im-modal-card.type-danger .im-modal-badge {
    background: rgba(193, 87, 63, 0.15);
    border-color: var(--error, #c1573f);
    color: var(--error, #c1573f);
    box-shadow: 0 8px 24px rgba(193, 87, 63, 0.25);
}

.im-modal-card.type-success .im-modal-badge {
    background: rgba(106, 159, 90, 0.15);
    border-color: var(--success, #6a9f5a);
    color: var(--success, #6a9f5a);
    box-shadow: 0 8px 24px rgba(106, 159, 90, 0.25);
}

.im-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.im-modal-msg {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.8rem;
    word-break: break-word;
}

.im-modal-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
}

.im-modal-btn {
    flex: 1;
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    border: none;
    outline: none;
}

.im-modal-btn-cancel {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
}

.im-modal-btn-cancel:hover {
    background: var(--bg-darker);
    border-color: var(--text-muted);
}

.im-modal-btn-confirm {
    background: linear-gradient(135deg, var(--gold) 0%, #9c7128 100%);
    color: #000;
    box-shadow: 0 6px 20px var(--gold-dim);
}

.im-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-dim);
}

.im-modal-card.type-danger .im-modal-btn-confirm {
    background: linear-gradient(135deg, var(--error, #c1573f) 0%, #8a2a16 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(193, 87, 63, 0.35);
}

.im-modal-card.type-danger .im-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 87, 63, 0.5);
}

/* ─── PERSIAN FORM VALIDATION BADGES ───────────────────────────── */
.persian-input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
    animation: shakeField 0.35s ease-in-out;
}

@keyframes shakeField {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.persian-field-error {
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    direction: rtl;
    text-align: right;
    animation: fadeInError 0.25s ease-out;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}