/* General Variables */
@import url('../fonts/Vazirmatnmatn-font-face.css'); /* تمام فونت‌های Vazir موجود */

/* ============================================================
   Dark Theme (Default)
============================================================ */
:root,
:root.dark-theme {
    --bg-primary: #0f121e;
    --bg-secondary: #1a1f33;
    --bg-tertiary: #232c42;
    --card-bg: #1a1f33;
    --primary-yellow: #fbbf24;
    --primary-orange: #f97316;
    --accent-blue: #3b82f6;
    --main-barber-border-1: #40a9ff00;
    --main-barber-border-2: hsla(262, 100%, 65%, 0);
    --main-barber-border-3: lch(82.24% 84.13 84.68 / 0.342);
    --main-barber-border-4: hsla(46, 100%, 65%, 0);
    --main-barber-badge-bg: #b4b4b4f2;
    --text-white: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);
    --nav-height: 85px;
}

/* ============================================================
   Light Theme
============================================================ */
:root.light-theme {
    --bg-primary: #f6f0ea;
    --bg-secondary: #fffaf6;
    --bg-tertiary: #f0e5dc;
    --card-bg: rgba(255, 253, 249, 0.84);
    --primary-yellow: #b67813;
    --primary-orange: #d26c16;
    --accent-blue: #3656bf;
    --text-white: #2f241f;
    --text-secondary: #2f241f;
    --text-muted: #6f6258;
    --text-dark: #1b160f;
    --border-color: rgba(99, 81, 67, 0.16);
    --shadow-sm: 0 2px 10px rgba(104, 84, 67, 0.12);
    --shadow-md: 0 10px 26px rgba(104, 84, 67, 0.16);
    --shadow-lg: 0 16px 42px rgba(104, 84, 67, 0.18);
    --nav-height: 85px;
}

/* Backward compatibility - use new variables */
:root {
    --bg-dark: var(--bg-primary);
}

/* فونت‌ها از Vazirmatnmatn-font-face.css load می‌شوند */


/* ===================================================
   Toast Message (برای پیام‌های کوچک بالا)
=================================================== */


/* ===================================================
   Modal Pin Input Styles (برای تایید شماره موبایل)
=================================================== */
.pin-input-group {
    display: flex;
    gap: 10px; /* فاصله بین اینپوت‌ها */
    justify-content: center;
    align-items: center;
    direction: ltr; /* برای چپ به راست شدن اینپوت‌ها */
}

.pin-input-group .pin-input {
    width: 45px; /* عرض هر اینپوت */
    height: 45px; /* ارتفاع هر اینپوت */
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    background-color: var(--card-bg); /* رنگ پس‌زمینه کارت‌های شما */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.pin-input-group .pin-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* ===================================================
   iOS Minimal Toast - (Glassmorphism)
=================================================== */
.app-toast {
    position: fixed;
    top: 40px; /* 🍏 کمی پایین‌تر برای حس بهتر */
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.9); /* شروع با مقیاس کوچک */
    
    /* ابعاد مینیمال */
    min-width: 220px;
    max-width: fit-content;
    white-space: nowrap;
    z-index: 10000;
    
    /* استایل شیشه‌ای اپل */
    background: rgba(255, 255, 255, 0.75); /* سفید شفاف */
    backdrop-filter: blur(20px) saturate(160%); /* بلر بسیار قوی */
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    
    color: #000000; /* متن تیره روی شیشه روشن */
    padding: 10px 24px;
    border-radius: 50px; /* 🍏 کاملاً گرد (Capsule Style) */
    border: 0.5px solid rgba(0, 0, 0, 0.05); /* خط بسیار محو */
    
    /* سایه بسیار نرم و پخش شده */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1); /* انیمیشن نرم اپلی */
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    font-size: 0.9rem;
    font-weight: 500; /* کمی ضخیم‌تر برای خوانایی */
    font-family: 'Vazirmatn', sans-serif;
}

/* افکت نمایش (Spring Animation) */
.app-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* رنگ‌بندی بسیار ملایم (فقط در متن و آیکون) */
.app-toast.success {
    color: var(--primary-yellow); /* سبز اپلی */
}

.app-toast.error {
    color: #d63384; /* قرمز/صورتی اپلی */
}

/* نسخه دارک مد (اختیاری - اگر سایت شما تاریک است) */
@media (prefers-color-scheme: dark) {
    .app-toast {
        background: rgba(30, 30, 30, 0.7);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.1);
    }
}


/* Base Body Styles */
body {
    background-color: var(--bg-dark);
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-white);
    font-feature-settings: "ss01"; 
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px); /* Space for bottom nav + safe area */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection on some elements */
}

/* Page Transition Animations */
/* --- انیمیشن دقیقاً مشابه نمونه شما --- */
/* انیمیشن ورود صفحات */
#app-content {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#app-content.animate-active {
    opacity: 1;
    /* نکته حیاتی: حذف ترنسفرم پس از اجرا تا دکمه‌های فیکس درست کار کنند */
    transform: none; 
}


/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}
#loader.d-none {
    opacity: 0;
    pointer-events: none;
}

:root.light-theme #loader {
    background-color: rgba(255, 255, 255, 0.4);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-yellow) !important;
}

/* اندازه کوچک spinner */
.spinner-border-sm {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* تم لایت: رنگ spinner سفید */
@media (prefers-color-scheme: light) {
    .spinner-border {
        color: #ffffff !important;
    }
    .spinner-border-sm {
        color: #ffffff !important;
    }
}

/* ===================================================
   Global Fullscreen Loader
=================================================== */
.global-loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    flex-direction: column; /* 🔴 اسپینر و متن را زیر هم قرار می‌دهد */
    gap: 1.5rem; /* 🔴 فاصله بین اسپینر و متن */
}

/* ============================================================
   Sheet Action Buttons (Approve/Reject)
============================================================ */
.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.sheet-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: none;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sheet-btn i {
    font-size: 1.1rem;
}

/* Approve Button - Primary Color */
.sheet-btn-approve {
    background: var(--accent-blue);
    color: #ffffff;
}

.sheet-btn-approve:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sheet-btn-approve:active {
    transform: translateY(0);
}

/* Reject Button - Light Mode/Dark Mode */
.sheet-btn-reject {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 2px solid #f44336;
}

.sheet-btn-reject:hover {
    background: #f44336;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

.sheet-btn-reject:active {
    transform: translateY(0);
}

/* Light Theme Override */
:root.light-theme .sheet-btn-approve {
    background: #3656bf;
}

:root.light-theme .sheet-btn-reject {
    background: rgba(210, 108, 22, 0.15);
    color: #d26c16;
    border-color: #d26c16;
}

:root.light-theme .sheet-btn-reject:hover {
    background: #d26c16;
    color: #ffffff;
}

.sheet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .sheet-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .sheet-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}


.global-loader-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* 🔴 استایل جدید برای متن زیر اسپینر 🔴 */
.loader-text {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    opacity: 0.8;
}
/* ✅ اسپینر 12 تیغه از Uiverse */
.spinner {
  font-size: 28px;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.spinner.center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.spinner .spinner-blade {
  position: absolute;
  left: 0.4629em;
  bottom: 0;
  width: 0.074em;
  height: 0.2777em;
  border-radius: 0.0555em;
  background-color: #69717d;
  -webkit-transform-origin: center -0.2222em;
  -ms-transform-origin: center -0.2222em;
  transform-origin: center -0.2222em;
  animation: spinner-fade9234 1s infinite linear;
}

.spinner .spinner-blade:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
}

.spinner .spinner-blade:nth-child(2) {
  -webkit-animation-delay: 0.083s;
  animation-delay: 0.083s;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.spinner .spinner-blade:nth-child(3) {
  -webkit-animation-delay: 0.166s;
  animation-delay: 0.166s;
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}

.spinner .spinner-blade:nth-child(4) {
  -webkit-animation-delay: 0.249s;
  animation-delay: 0.249s;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.spinner .spinner-blade:nth-child(5) {
  -webkit-animation-delay: 0.332s;
  animation-delay: 0.332s;
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}

.spinner .spinner-blade:nth-child(6) {
  -webkit-animation-delay: 0.415s;
  animation-delay: 0.415s;
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}

.spinner .spinner-blade:nth-child(7) {
  -webkit-animation-delay: 0.498s;
  animation-delay: 0.498s;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.spinner .spinner-blade:nth-child(8) {
  -webkit-animation-delay: 0.581s;
  animation-delay: 0.581s;
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}

.spinner .spinner-blade:nth-child(9) {
  -webkit-animation-delay: 0.664s;
  animation-delay: 0.664s;
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}

.spinner .spinner-blade:nth-child(10) {
  -webkit-animation-delay: 0.747s;
  animation-delay: 0.747s;
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}

.spinner .spinner-blade:nth-child(11) {
  -webkit-animation-delay: 0.83s;
  animation-delay: 0.83s;
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}

.spinner .spinner-blade:nth-child(12) {
  -webkit-animation-delay: 0.913s;
  animation-delay: 0.913s;
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}

@keyframes spinner-fade9234 {
  0% {
    background-color: #69717d;
  }

  100% {
    background-color: transparent;
  }
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    font-weight: 400;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: transform 0.2s;
    cursor: pointer;
}
.btn-primary-custom:hover {
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}
.btn-primary-custom:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.15);
}

.btn-secondary-custom {
    background-color: #1899D6;
    border: solid transparent;
    border-radius: 16px;
    border-width: 0 0 4px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 20px;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 13px 19px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: filter 0.2s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
}

.btn-secondary-custom:after {
    background-clip: padding-box;
    background-color: #1CB0F6;
    border: solid transparent;
    border-radius: 16px;
    border-width: 0 0 4px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.btn-secondary-custom:hover:not(:disabled) {
    filter: brightness(1.1);
}

.btn-secondary-custom:disabled {
    cursor: auto;
}

.btn-secondary-custom:active:after {
    border-width: 0 0 0px;
}

.btn-secondary-custom:active {
    padding-bottom: 10px;
    transform: scale(0.97);
}

.page-header {
    position: relative;
    padding: calc(15px + env(safe-area-inset-top)) 20px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(60px + env(safe-area-inset-top));
}

.back-btn {
    position: absolute;
    right: 20px;
    top: calc(50% + env(safe-area-inset-top) / 2);
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.back-btn:hover {
    background: rgba(255,255,255,0.12);
}

.back-btn:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(255,255,255,0.15);
}

/* دکمه خروج */
.logout-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.logout-btn:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(239, 68, 68, 0.35);
}

/* محتوای وسط */
.page-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* استپر */
.page-center-content .stepper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}


.page-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Section Labels (e.g., "انتخاب آرایشگر") */
.section-label {
    display: flex;
    align-items: center;
    margin: 15px 20px 20px;
}
.section-label h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding-right: 12px;
    border-right: 4px solid var(--primary-yellow);
}
.section-label .tag {
    background: var(--primary-yellow);
    color: #000;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-right: auto; /* Pushes the tag to the left */
}

/* Barber Card Styles (from previous design) */
.barber-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: visible;
}
.barber-card.selected {
    border-color: var(--primary-yellow);
    background-color: #20253a; /* Slightly lighter to show selection */
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}
.barber-card.main-barber {
    background-color: var(--card-bg);
    border: 2px solid transparent;
}
.barber-card.main-barber::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        var(--main-barber-border-1),
        var(--main-barber-border-2),
        var(--main-barber-border-3),
        var(--main-barber-border-4)
    );
    background-size: 300% 300%;
    animation: mainBarberBorder 3.5s ease infinite;
}
.barber-card.main-barber > * {
    position: relative;
    z-index: 1;
}
.barber-card.main-barber .main-barber-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--main-barber-badge-bg);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(4, 127, 255, 0.3);
}
@keyframes mainBarberBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.barber-img-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}
.barber-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}
.rating-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark); /* Match background */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}
.rating-badge i {
    color: var(--primary-yellow);
    font-size: 0.8rem;
}
.barber-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}
.barber-spec {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Home Page Specifics */
.hero-section {
    height: 320px;
    background-size: cover !important; /* Ensure image covers */
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,18,30,0.3) 0%, rgba(15,18,30,0.95) 90%, var(--bg-dark) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 60px; /* Offset for potential status bar */
}
.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
}
.brand-subtitle {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    font-weight: 500;
}
.booking-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin: -40px 20px 20px; /* Overlap with hero section */
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.service-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.service-card.purple {
    background: linear-gradient(135deg, rgba(59, 53, 125, 0.8), rgba(40, 35, 90, 0.9));
}
.icon-box {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.1); margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-white);
}

/* ============================================================
   iOS 26 Liquid Glass Nav — 3D Ultra Edition
   Dark + Light
============================================================ */

@keyframes navItemSlide {
    from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes iconPop3D {
    0%   { transform: scale(0.85) translateY(2px); opacity: 0.6; }
    55%  { transform: scale(1.12) translateY(-2px); }
    80%  { transform: scale(1.05) translateY(-0.5px); }
    100% { transform: scale(1.08) translateY(-1px); }
}

/* ============ CONTAINER — DARK ============ */

.bottom-nav-container {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    width: calc(100% - 32px);
    max-width: 360px;
    margin-bottom: 0;

    border-radius: 36px;
    padding: 8px 10px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);

    animation: navItemSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;

    /* === 3D DARK GLASS BACKGROUND === */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.01) 40%,
            rgba(0, 0, 0, 0.10) 100%
        ),
        rgba(18, 18, 24, 0.55);

    backdrop-filter: blur(48px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.1);

    /* Layered border for rim-lit edge */
    border: 1px solid rgba(255, 255, 255, 0.13);
    outline: 1px solid rgba(0, 0, 0, 0.45);
    outline-offset: -2px;

    /* === 3D SHADOW STACK === */
    box-shadow:
        /* top specular highlight */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
        /* top-left edge light */
        inset 1px 1px 0 rgba(255, 255, 255, 0.07),
        /* bottom inner shadow (concavity) */
        inset 0 -1px 0 rgba(0, 0, 0, 0.40),
        inset 0 -2px 6px rgba(0, 0, 0, 0.25),
        /* inner ambient depth */
        inset 0 2px 12px rgba(0, 0, 0, 0.15),
        /* bottom-right inner shadow */
        inset -1px -1px 0 rgba(0, 0, 0, 0.30),
        /* outer rim */
        0 0 0 0.5px rgba(255, 255, 255, 0.04),
        /* elevation */
        0 4px 8px rgba(0, 0, 0, 0.20),
        0 12px 28px rgba(0, 0, 0, 0.40),
        0 28px 56px rgba(0, 0, 0, 0.30),
        0 2px 4px rgba(0, 0, 0, 0.50);
}

/* Top glass sheen */
.bottom-nav-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    border-radius: 36px 36px 60% 60% / 36px 36px 28px 28px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.02) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* Bottom reflection */
.bottom-nav-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    border-radius: 0 0 36px 36px;
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* ============ INNER NAV ============ */

.bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
    position: relative;
    z-index: 5;
}

/* ============ NAV ITEMS ============ */

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex: 1;
    height: 56px;
    border-radius: 24px;

    text-decoration: none;
    cursor: pointer;

    color: rgba(255, 255, 255, 0.48);

    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    font-size: 1.35rem;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.9;
    margin-top: 2px;
}

/* ============ ACTIVE — DARK ============ */

.nav-item.active {
    color: #fbbf24;
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(251, 191, 36, 0.08) 100%);
    box-shadow:
        inset 0 1px 0 rgba(251, 191, 36, 0.20),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        inset 0 2px 8px rgba(251, 191, 36, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.30),
        0 2px 8px rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.nav-item.active .nav-icon {
    transform: scale(1.08) translateY(-1px);
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.40));
    animation: iconPop3D 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.nav-item.active .nav-label {
    color: #fbbf24;
    opacity: 1;
}

/* ============================================================
   LIGHT MODE — LIQUID GLASS 3D
============================================================ */

body.light-theme .bottom-nav-container,
.light-theme .bottom-nav-container,
[data-theme="light"] .bottom-nav-container {

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(255, 255, 255, 0.38) 40%,
            rgba(200, 210, 230, 0.25) 100%
        ),
        rgba(240, 244, 252, 0.35);

    backdrop-filter: blur(52px) saturate(220%) brightness(1.08);
    -webkit-backdrop-filter: blur(52px) saturate(220%) brightness(1.08);

    border: 1px solid rgba(255, 255, 255, 0.85);
    outline: 1px solid rgba(120, 130, 150, 0.12);
    outline-offset: -2px;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 1px 1px 0 rgba(255, 255, 255, 0.60),
        inset 0 -1px 0 rgba(150, 160, 180, 0.20),
        inset 0 -2px 8px rgba(100, 110, 140, 0.08),
        inset 0 2px 16px rgba(255, 255, 255, 0.30),
        inset -1px -1px 0 rgba(180, 190, 210, 0.15),
        0 0 0 0.5px rgba(255, 255, 255, 0.50),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.10),
        0 2px 3px rgba(0, 0, 0, 0.12);
}

/* Light top sheen — stronger */
body.light-theme .bottom-nav-container::before,
.light-theme .bottom-nav-container::before,
[data-theme="light"] .bottom-nav-container::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 100%
    );
}

/* Light bottom reflection */
body.light-theme .bottom-nav-container::after,
.light-theme .bottom-nav-container::after,
[data-theme="light"] .bottom-nav-container::after {
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.35) 0%,
        transparent 100%
    );
}

/* ============ LIGHT TEXT ============ */

body.light-theme .nav-item,
.light-theme .nav-item,
[data-theme="light"] .nav-item {
    color: rgba(50, 55, 70, 0.50);
}

body.light-theme .nav-item:hover:not(.active),
.light-theme .nav-item:hover:not(.active),
[data-theme="light"] .nav-item:hover:not(.active) {
    color: rgba(50, 55, 70, 0.85);
    background: rgba(255, 255, 255, 0.30);
}

/* ============ ACTIVE — LIGHT ============ */

body.light-theme .nav-item.active,
.light-theme .nav-item.active,
[data-theme="light"] .nav-item.active {
    color: #b45309;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(251, 191, 36, 0.18) 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(180, 83, 9, 0.15),
        inset 0 2px 10px rgba(255, 255, 255, 0.60),
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(180, 83, 9, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

body.light-theme .nav-item.active .nav-icon,
.light-theme .nav-item.active .nav-icon,
[data-theme="light"] .nav-item.active .nav-icon {
    filter: drop-shadow(0 2px 5px rgba(180, 83, 9, 0.30));
}

body.light-theme .nav-item.active .nav-label,
.light-theme .nav-item.active .nav-label,
[data-theme="light"] .nav-item.active .nav-label {
    color: #b45309;
    opacity: 1;
}
/* --- استایل کارت خدمات (Service Card) --- */
.service-item {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid transparent; /* حاشیه شفاف پیش‌فرض */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* حالت انتخاب شده */
.service-item.selected {
    border-color: var(--primary-yellow);
    background-color: rgba(251, 191, 36, 0.05); /* کمی روشن‌تر */
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* تصویر سمت چپ */
.service-img {
    width: 80px; 
    height: 80px; 
    border-radius: 16px; 
    object-fit: cover; 
    margin-left: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* اطلاعات وسط */
.service-info {
    flex-grow: 1;
}

.service-info h4 {
    font-size: 1rem;
    margin: 0 0 5px;
    font-weight: 700;
    color: #fff;
}

.service-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
    max-width: 95%;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.service-price {
    font-size: 0.95rem;
    color: var(--primary-yellow);
    font-weight: 800;
}

.service-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

/* آیکون انتخاب (دایره یا تیک) */
.select-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    margin-right: 10px;
    transition: all 0.2s;
}

.service-item.selected .select-icon {
    color: var(--primary-yellow);
    transform: scale(1.1);
}

/* بج "انتخاب شده" زرد رنگ بالای کارت (اختیاری مثل تصویر) */
.selected-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-yellow);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-bottom-right-radius: 10px;
    display: none;
}
.service-item.selected .selected-badge {
    display: block;
}

/* --- Stepper (مراحل رزرو) --- */
.stepper-container {
    display: flex;
    gap: 6px;
}
.step-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* انیمیشن فنری */
}
.step-dot.active {
    background-color: var(--primary-yellow);
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* --- Profile & Wallet --- */
.wallet-card {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    pointer-events: none;
}
.wallet-amount { font-size: 2.5rem; font-weight: 900; margin: 10px 0; }
.wallet-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-wallet {
    background: rgba(0,0,0,0.1); border: none; color: #000; font-weight: 700;
    flex: 1; padding: 10px; border-radius: 12px; font-size: 0.9rem;
}
.btn-wallet.dark { background: #1a1a1a; color: #fbbf24; }

/* Menu List in Profile */
.profile-menu-item {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}
.profile-menu-item:active { transform: scale(0.98); }

/* Time Slots */
.time-slot.disabled {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
}
.time-slot.selected {
    background-color: var(--primary-yellow);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* اسکرول تاریخ (اصلاح سایه) */
.date-scroller {
    display: flex;
    gap: 12px;
    padding: 15px 20px 30px 20px; /* پدینگ پایین بیشتر برای سایه */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); /* محو شدن لبه‌ها */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.date-scroller::-webkit-scrollbar { display: none; }

.date-card {
    min-width: 85px;
    height: 105px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    scroll-snap-align: center;
    color: var(--text-muted);
    position: relative;
}

.date-card.active {
    background: var(--primary-yellow);
    color: #1a1a1a;
    border-color: var(--primary-yellow);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.25); /* سایه نرم‌تر */
    z-index: 10; /* روی بقیه باشد */
}

.date-day-text { font-size: 0.75rem; font-weight: 500; margin-bottom: 2px; }
.date-day-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.date-month-text { font-size: 0.75rem; font-weight: 500; margin-top: 2px; }

/* --- Time Slots Grid --- */
.time-slot {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 16px;
    padding: 14px 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.time-slot:active { transform: scale(0.95); }

/* هاور (فقط دسکتاپ) */
.time-slot:hover:not(.disabled):not(.selected) {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* حالت انتخاب شده ساعت */
.time-slot.selected {
    background: var(--primary-yellow);
    color: #1a1a1a;
    border-color: var(--primary-yellow);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.3);
}

/* حالت غیرفعال/رزرو شده */
.time-slot.disabled {
    opacity: 0.2;
    pointer-events: none;
    text-decoration: line-through;
    border-style: dashed;
}

/* حالت قفل شده توسط کاربر دیگر (در حال رزرو) */
.time-slot.locked {
    opacity: 0.35;
    border: 2px solid #f97316;
    border-style: dashed;
    background: rgba(249, 115, 22, 0.08);
    position: relative;
    cursor: not-allowed;
}

.time-slot.locked .lock-timer {
    display: inline-block;
    font-size: 0.65rem;
    background: #f97316;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
}

/* غیرفعال کردن انتخاب متن روی اسلات قفل شده */
.time-slot.disabled {
    pointer-events: none;
}

/* انیمیشن آبشاری */
.animate-cascade {
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* اصلاح رنگ متن‌های تایید نهایی */
.info-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 4px; }
.info-value { color: #fff; font-size: 1rem; font-weight: 500; }
.form-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 15px;
    color: #fff;
}

/* --- دکمه شناور (فیکس شده بالای نویگیشن) --- */
.floating-btn-container {
    position: fixed;
    bottom: calc(120px + env(safe-area-inset-bottom)); /* ارتفاع نویگیشن + فاصله + safe area */
    left: 20px;
    right: 20px;
    z-index: 900; /* زیر منو ولی روی محتوا */
    display: flex;
    justify-content: center;
    pointer-events: none; /* کلیک‌ها از اطراف دکمه رد شوند */
}

.floating-btn-container button {
    pointer-events: auto; /* دکمه قابل کلیک باشد */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 500px; /* در دسکتاپ خیلی پهن نشود */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.d-none-custom { display: none !important; }

/* --- استایل‌های قبلی نویگیشن و کارت‌ها حفظ شوند --- */
/* (کد نویگیشن بار و کارت‌ها که قبلاً دادم اینجا باشد) */
/* استایل متن تاریخ در هدر */
.header-date-text {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

.light-theme .header-date-text {
    color: #333;
    background: rgba(0, 0, 0, 0.08);
}

.dark-theme .header-date-text {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --- دیالوگ پرداخت (Design Fix) --- */
.payment-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 10000;
    display: flex; align-items: flex-end; /* از پایین بیاید */
    justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.payment-modal-backdrop.active { opacity: 1; pointer-events: auto; }

.payment-modal-content {
    background: #1a1f33; /* رنگ سرمه‌ای تیره */
    width: 100%; max-width: 500px;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    padding: 25px 20px 40px 20px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.payment-modal-backdrop.active .payment-modal-content { transform: translateY(0); }

.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-right: 0;
}

.payment-modal-close-btn {
    color: #fff;
    transition: all 0.2s;
}

.payment-modal-close-btn:active {
    opacity: 0.8;
}

.modal-header-line {
    width: 40px; height: 4px; background: rgba(255,255,255,0.2);
    border-radius: 2px; margin: 0 auto 20px auto;
}

/* دیالوگ کافی نبودن موجودی */
.insufficient-balance-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 10000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.insufficient-balance-backdrop.active { opacity: 1; pointer-events: auto; }

.insufficient-balance-content {
    background: #1a1f33;
    width: 100%; max-width: 500px;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    padding: 25px 20px 40px 20px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.insufficient-balance-backdrop.active .insufficient-balance-content { transform: translateY(0); }

/* دکمه کلوز برای مودال‌ها */
.modal-close-btn {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.modal-close-btn:active {
    background: rgba(255,255,255,0.15);
    transform: scale(0.95);
}

.dialog-icon-container {
    width: 60px; height: 60px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #ef4444;
    margin: 0 auto 20px;
}

.dialog-title {
    color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px;
}

.dialog-message {
    color: #cbd5e1; font-size: 0.9rem; line-height: 1.6; margin-bottom: 25px;
}

.dialog-actions {
    display: flex; flex-direction: column; gap: 12px;
}

.btn-action {
    padding: 14px 20px; border-radius: 14px; border: none;
    font-weight: 400; font-size: 0.95rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s; text-decoration: none;
}

.btn-action.btn-primary {
    background: var(--primary-yellow); color: #000;
}
.btn-action.btn-primary:active { transform: scale(0.98); }

.btn-action.btn-secondary {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-action.btn-secondary:active { transform: scale(0.98); }

/* کارت‌های انتخاب پرداخت */
.pay-option {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 15px 20px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
}
.pay-option:active { transform: scale(0.98); }

/* استایل گزینه "پرداخت کامل" (زرد) */
.pay-option.full {
    border: 1px solid var(--primary-yellow);
    background: rgba(251, 191, 36, 0.05);
}
/* استایل گزینه "بیعانه" */
.pay-option.deposit {
    border: 1px solid rgba(255,255,255,0.2);
}

.pay-amount-box { text-align: right; }
.pay-amount { font-size: 1.2rem; font-weight: 800; color: var(--primary-yellow); }
.pay-amount-label { font-size: 0.7rem; color: #94a3b8; }

.pay-text-box { text-align: right; flex-grow: 1; padding-right: 15px; }
.pay-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.pay-desc { font-size: 0.75rem; color: #94a3b8; }

.pay-icon {
    width: 45px; height: 45px; background: rgba(255,255,255,0.05);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
}
.pay-option.full .pay-icon { color: var(--primary-yellow); background: rgba(251, 191, 36, 0.1); }

/* اصلاح رنگ متن توضیحات در پروفایل (که سیاه بود) */
.text-light-desc { color: rgba(255, 255, 255, 0.7) !important; }
.profile-menu-item .text-muted { color: rgba(255, 255, 255, 0.5) !important; }
.profile-header-redesign {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 20px 10px;
}
.notif-btn {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}

/* کارت زرد کیف پول */
.wallet-card-yellow {
    background: #ffc107; /* رنگ زرد */
    background: linear-gradient(135deg, #ffca28, #ffc107);
    border-radius: 24px; padding: 25px 20px;
    color: #000; margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    position: relative; overflow: hidden;
}
.wallet-card-yellow .wallet-icon {
    width: 45px; height: 45px; border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 10px;
}
.wallet-card-yellow .balance-title { font-size: 0.8rem; opacity: 0.8; font-weight: 600; }
.wallet-card-yellow .balance-amount { font-size: 2.2rem; font-weight: 900; line-height: 1; margin: 5px 0 20px; }
.wallet-card-yellow .currency { font-size: 1rem; font-weight: 500; }

.wallet-actions-grid { display: flex; gap: 10px; }
.btn-yellow-action {
    flex: 1; padding: 12px; border-radius: 14px; border: none;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-yellow-action.dark { background: #0f172a; color: #ffc107; } /* دکمه افزایش موجودی */
.btn-yellow-action.light { background: rgba(255,255,255,0.3); color: #000; } /* دکمه تراکنش ها */

.menu-list-item {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 16px 20px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; text-decoration: none; transition: all 0.2s;
}
.menu-list-item:active { background: rgba(255,255,255,0.05); transform: scale(0.98); }
.menu-text { font-weight: 500; font-size: 0.95rem; }
.menu-icon-left { color: #64748b; font-size: 1.2rem; }

/* --- Transactions Page --- */
/* --- New Transaction List Design (Dynamic Colors) --- */
.transaction-card {
    background: #1e293b; border-radius: 20px; padding: 15px;
    margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* بخش مبلغ و وضعیت */
.trans-amount-section { text-align: left; margin-left: 15px; }
.trans-amount { font-size: 0.9rem; font-weight: 400; display: block; direction: ltr; }
.trans-amount.positive { color: #10b981; } /* سبز */
.trans-amount.negative { color: #ef4444; } /* قرمز */
.trans-amount.refund { color: #94a3b8; } /* خاکستری برای برگشت وجه */

.trans-status-badge {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 6px;
    display: inline-block; margin-top: 4px; font-weight: 700;
}
.status-success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-failed { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* بخش عنوان و زمان */
.trans-info-section { flex-grow: 1; text-align: right; padding: 0 15px; }
.trans-title { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.trans-datetime { color: #94a3b8; font-size: 0.75rem; }

/* دکمه فلش */
.trans-action-btn {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.08); /* پس‌زمینه پیش‌فرض */
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; transition: all 0.2s;
}
.trans-action-btn i { transition: transform 0.2s; }

/* رنگ آیکون‌ها بر اساس نوع تراکنش */
.trans-action-btn.charge { background: rgba(16, 185, 129, 0.2); color: #10b981; } /* سبز برای شارژ */
.trans-action-btn.payment { background: rgba(239, 68, 68, 0.2); color: #ef4444; } /* قرمز برای پرداخت */
.trans-action-btn.refund { background: rgba(148, 163, 184, 0.2); color: #94a3b8; } /* خاکستری برای برگشت */

/* جهت فلش‌ها */
.trans-action-btn.charge i { transform: rotate(-90deg); } /* بالا */
.trans-action-btn.payment i { transform: rotate(90deg); }  /* پایین */
.trans-action-btn.refund i { transform: rotate(0deg); }    /* راست */



/* --- Wallet (Add Funds) Page --- */
.current-balance-box {
    background: #1e293b; border-radius: 20px; padding: 20px; text-align: center;
    border: 1px solid rgba(255,255,255,0.05); margin-bottom: 30px;
}
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.amount-btn {
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; border-radius: 12px; padding: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.amount-btn.active {
    background: var(--primary-yellow); color: #000; border-color: var(--primary-yellow);
}
.gateway-box {
    background: #1e293b; border-radius: 16px; padding: 15px;
    border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center;
    justify-content: space-between; margin-top: 20px;
}
.gateway-radio { width: 20px; height: 20px; accent-color: var(--primary-yellow); }

/* --- New Profile Design (Dark Glass) --- */

/* هدر پروفایل */
.profile-header-new {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px;
}
.header-btn-group { display: flex; gap: 10px; }
.icon-btn-glass {
    width: 45px; height: 45px; border-radius: 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}
.icon-btn-glass:active { transform: scale(0.95); background: rgba(255,255,255,0.1); }

/* بخش اطلاعات کاربر */
.user-info-section {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 25px; margin-bottom: 20px; text-align: right;
}
.user-avatar-new {
    width: 70px; height: 70px; border-radius: 20px; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1); margin-left: 15px;
}
.user-name-new { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.user-phone-new { font-size: 0.85rem; color: #94a3b8; letter-spacing: 1px; }

/* کارت موجودی جدید (Dark Blue Card) */
.wallet-card-new {
    background: #1e2336; /* سرمه‌ای تیره */
    border-radius: 30px; padding: 25px; margin: 0 20px 30px 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative; overflow: hidden;
}

/* قسمت بالای کارت (موجودی و دکمه پلاس) */
.wallet-top-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px;
}
/* دکمه پلاس زرد */
.add-balance-btn {
    width: 55px; height: 55px; background: var(--primary-yellow);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.8rem; box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
    cursor: pointer; transition: transform 0.2s;
}
.add-balance-btn:active { transform: scale(0.95); }

.balance-info { text-align: right; }
.balance-label { font-size: 0.8rem; color: #94a3b8; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.balance-val { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.currency-small { font-size: 0.9rem; font-weight: 400; opacity: 0.7; }

/* دکمه‌های پایین کارت */
.wallet-btns-row { display: flex; gap: 10px; }
.wallet-action-btn {
    flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 12px; color: #fff; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: background 0.2s;
}
.wallet-action-btn:active { background: rgba(255,255,255,0.08); }

/* --- Booking Item New Design --- */
.booking-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 25px 10px 25px; margin-top: 10px;
}
.section-title-new { font-size: 1.1rem; font-weight: 800; color: #fff; }
.badge-count {
    background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; color: #94a3b8;
}

.booking-card-new {
    background: #1e2336; border-radius: 24px; padding: 18px; margin: 0 20px 15px 20px;
    border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
}
/* خط زرد سمت راست */
.booking-card-new::before {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; width: 4px;
    background: var(--primary-yellow); border-radius: 4px 0 0 4px;
}

.booking-main-content { display: flex; align-items: center; justify-content: space-between; }

/* عکس سرویس */
.b-service-img {
    width: 65px; height: 65px; border-radius: 16px; object-fit: cover;
    margin-left: 15px; border: 1px solid rgba(255,255,255,0.1);
}

/* اطلاعات وسط */
.b-info { flex-grow: 1; text-align: right; }
.b-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.b-barber { font-size: 0.8rem; color: #94a3b8; margin-bottom: 10px; }

/* بج وضعیت */
.b-status {
    position: absolute; top: 18px; left: 18px;
    padding: 4px 10px; border-radius: 8px; font-size: 0.7rem; font-weight: 700;
}
.status-confirmed { background: rgba(251, 191, 36, 0.15); color: var(--primary-yellow); border: 1px solid rgba(251, 191, 36, 0.3); }
.status-pending { background: rgba(255,255,255,0.1); color: #94a3b8; }

/* دکمه فلش جزئیات */
.b-arrow-btn {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; cursor: pointer; position: absolute; bottom: 18px; left: 18px;
}

/* ردیف زمان و تاریخ */
.b-meta-row {
    display: flex; gap: 10px; margin-top: 5px; justify-content: flex-end;
}
.b-meta-badge {
    background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 8px;
    font-size: 0.75rem; color: #94a3b8; display: flex; align-items: center; gap: 5px;
    direction: ltr; /* برای نمایش صحیح ساعت و تاریخ */
}
.b-meta-badge i { color: var(--primary-yellow); font-size: 0.9rem; }
/* --- New Profile V2 (Golden Style) --- */

/* هدر پروفایل */
.profile-header-v2 {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px 10px; margin-bottom: 10px;
}
.header-title-center {
    font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 1px;
}
.icon-box-glass {
    width: 48px; height: 48px; background: #1e2336;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.icon-box-glass:active { transform: scale(0.95); }

/* بخش آواتار و اطلاعات */
.profile-user-info { text-align: center;
    margin-top: 70px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    padding: 15px 0; }

.avatar-container {
    position: relative; width: 110px; height: 110px; margin: 0 auto 50px;
}
.avatar-img-v2 {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid #1e2336; /* فاصله با بوردر طلایی */
    position: relative; z-index: 2;
}
/* حلقه طلایی دور عکس */
.avatar-ring {
    position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px solid var(--primary-yellow); border-radius: 50%;
    z-index: 1; box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* دکمه ویرایش (روی عکس) */
.edit-badge-btn {
    position: absolute; bottom: 0; left: 0; z-index: 3;
    width: 32px; height: 32px; background: #1e2336; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem; cursor: pointer;
}
/* بج ستاره (روی عکس) */
.star-badge {
    position: absolute; bottom: 0; right: 0; z-index: 3;
    width: 32px; height: 32px; background: var(--primary-yellow);
    border: 3px solid #0f121e; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1rem;
}

.user-name-v2 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-phone-row { 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    color: #94a3b8; font-size: 0.9rem; margin-top: 5px; flex-wrap: wrap;
}
.membership-badge { color: var(--primary-yellow); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }

/* کارت کیف پول جدید */
.wallet-card-v2 {
    background: #15192b; border-radius: 30px; padding: 25px 20px;
    margin: 0 15px 30px; border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative; overflow: hidden;
}
/* افکت نور پس‌زمینه کارت */
.wallet-card-v2::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-top-section {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.add-btn-large {
    width: 60px; height: 60px; background: var(--primary-yellow);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #000; box-shadow: 0 10px 25px rgba(251, 191, 36, 0.25);
    cursor: pointer; transition: transform 0.2s;
}
.add-btn-large:active { transform: scale(0.95); }

.balance-v2-info { text-align: right; overflow: hidden; }
.balance-label-v2 { font-size: 0.8rem; color: #94a3b8; margin-bottom: 5px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-amount-v2 { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.currency-v2 { font-size: 0.9rem; font-weight: 400; opacity: 0.7; margin-right: 5px; white-space: nowrap; }

.wallet-actions-v2 { display: flex; gap: 12px; }
.action-btn-v2 {
    flex: 1; background: #1e2336; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 14px; color: #fff; font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}

/* کارت نوبت (طراحی جدید) */
.booking-section-title {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 25px; margin-bottom: 15px;
}
.title-text { font-size: 1.1rem; font-weight: 700; color: #fff; }
.title-icon { color: var(--primary-yellow); font-size: 1.2rem; }

.booking-card-v2 {
    background: #1e2336; border-radius: 24px; padding: 15px; margin: 0 20px 15px;
    border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between;
}
.b-left-section {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.status-badge-v2 {
    background: rgba(251, 191, 36, 0.1); color: var(--primary-yellow);
    padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.cancel-btn-v2 {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; cursor: pointer; transition: all 0.2s;
}
.cancel-btn-v2:active { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.b-center-section {
    flex-grow: 1; text-align: center; padding: 0 10px;
}
.b-title-v2 { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.b-sub-v2 { font-size: 0.75rem; color: #94a3b8; margin-bottom: 12px; }
.b-time-row {
    display: flex; justify-content: center; gap: 8px;
}
.time-badge-v2 {
    background: #15192b; border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 10px; border-radius: 8px; font-size: 0.75rem; color: #cbd5e1;
    display: flex; align-items: center; gap: 5px; direction: ltr;
}
.time-badge-v2 i { color: var(--primary-yellow); font-size: 0.85rem; }

.b-img-v2 {
    width: 75px; height: 75px; border-radius: 18px; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1); position: relative;
}
.img-icon-overlay {
    position: absolute; bottom: -5px; right: -5px;
    width: 24px; height: 24px; background: #1e2336; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1);
}
/* خط زرد عمودی */
.booking-card-v2::after {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; width: 4px;
    background: var(--primary-yellow); border-radius: 4px 0 0 4px;
}

body { font-feature-settings: "ss01"; }
/* --- New Booking List Design (Perfect Match - No Image - RTL Final) --- */
/* --- New Booking List Design (Perfect Match - No Image - RTL Final 2) --- */
/* --- New Booking List Design (Perfect Match - No Image - RTL Final 3) --- */
.booking-item-card {
    background: var(--card-bg-light); border-radius: 24px; padding: 18px;
    margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.05);
    position: relative; display: flex;
    justify-content: space-between; /* فاصله بین آیتم‌ها */
    align-items: start; /* تراز کردن مرکزی */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    flex-direction: row; /* !!! RTL: چیدمان عادی (اطلاعات راست، اکشن چپ) !!! */
    overflow: hidden; /* جلوگیری از overflow */
}

/* خط زرد سمت راست */
.booking-item-card::before {
    content: ''; position: absolute; right: 0; top: 15px; bottom: 15px; width: 4px;
    background: var(--primary-yellow); border-radius: 4px 0 0 4px;
}

/* بخش اصلی اطلاعات (سرویس، آرایشگر، زمان، تاریخ) */
.b-main-info {
    flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; /* !!! اطلاعات راست‌چین !!! */
    text-align: right; padding-right: 15px; /* فاصله از خط زرد */
    padding-left: 10px; /* فاصله از اکشن‌ها */
    min-width: 0; /* برای جلوگیری از overflow */
    width: 100%; max-width: 100%; overflow: hidden;
}
.b-service-title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-barber-name { font-size: 0.8rem; color: #94a3b8; margin-bottom: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ردیف زمان و تاریخ */
.b-meta-row-new {
    display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; width: 100%; /* !!! راست‌چین !!! */
}
.b-meta-item {
    display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 100%;
    font-size: 0.8rem; color: #cbd5e1; direction: rtl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.b-meta-item i { color: var(--primary-yellow); font-size: 0.9rem; flex-shrink: 0; }

/* بج تاخیر */
.delay-badge {
    font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; max-width: 150px; display: inline-block;
}

/* وضعیت و دکمه لغو (سمت چپ) */
.b-actions {
    display: flex; flex-direction: column; align-items: flex-end; /* !!! چپ‌چین !!! */
    gap: 8px; /* فاصله بین بج وضعیت و دکمه لغو */
    flex-shrink: 0; /* مانع کوچک شدن */
    padding-right: 15px; /* فاصله از لبه */
}


/* دکمه لغو (سطل آشغال) */
.b-delete-btn {
    width: 38px; height: 38px;
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #ef4444; cursor: pointer; transition: all 0.2s;
}
.b-delete-btn:active { transform: scale(0.9); background: rgba(239, 68, 68, 0.25); }

/* --- Edit Profile Page Design --- */
.profile-edit-avatar {
    width: 110px; height: 110px; margin: 20px auto 10px; position: relative;
}
.profile-edit-img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid #1e2336;
}
.camera-btn {
    position: absolute; bottom: 0; right: 0;
    width: 36px; height: 36px; background: var(--primary-yellow);
    border-radius: 50%; border: 3px solid #0f121e;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.1rem; cursor: pointer;
}
.edit-label {
    text-align: center; color: var(--primary-yellow); font-size: 0.8rem; margin-bottom: 30px; font-weight: 700;
}

.form-group-new { margin-bottom: 20px; }
.form-label-new {
    display: block; text-align: right; color: #94a3b8; font-size: 0.8rem; margin-bottom: 8px; padding-right: 5px;
}
.input-new {
    width: 100%; background: #1e2336; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 16px; color: #fff; font-size: 1rem;
    text-align: right; direction: ltr; /* برای اعداد و ایمیل */
    transition: border-color 0.3s;
}
.input-new:focus { border-color: var(--primary-yellow); outline: none; }
.input-icon-wrapper { position: relative; }
.input-icon-right {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 1.2rem;
}
.input-with-icon { padding-right: 45px; text-align: center; } /* متن وسط چین مثل عکس */

/* --- Wallet Page Design (Bank Card Style) --- */


/* باکس موجودی پیامک */
.charge-sms-icon-box {
    width: 45px; height: 45px; background: rgba(16, 185, 129, 0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #10b981; font-size: 1.5rem;
}
.charge-sms-balance { color: #10b981; font-weight: 900; font-size: 1.3rem; }

/* فیلدهای فرم (از قبل در پروژه شما بود) */
.bank-card-container {
    background: linear-gradient(135deg, #2c3e50, #1e293b);
    border-radius: 24px; padding: 25px; margin-bottom: 30px;
    position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); min-height: 180px;
    display: flex; flex-direction: column; justify-content: space-between;
}
/* افکت نور */
.bank-card-container::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%); pointer-events: none;
}

.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.card-chip { color: #fbbf24; font-size: 2rem; opacity: 0.8; }
.card-title-row { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 0.9rem; }
.card-number { letter-spacing: 3px; color: #94a3b8; font-family: monospace; font-size: 1.1rem; margin-top: 15px; text-align: left; direction: ltr; }

.card-balance-row { text-align: center; margin-top: auto; }
.card-balance-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 5px; }
.card-balance-val { font-size: 2rem; font-weight: 800; color: #fff; }

/* استایل دیت پیکر (سفارشی سازی پلاگین) */
.datepicker-container { z-index: 10000 !important; font-family: 'Vazirmatn', sans-serif; }
.datepicker-plot-area { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: none; background-color: #1e2336; }
.datepicker-header { background-color: #1e2336; color: #fff; border-radius: 15px 15px 0 0; }
.datepicker-day-view .table-days td span { border-radius: 10px; }
.datepicker-day-view .table-days td.selected span { background-color: var(--primary-yellow) !important; color: #000 !important; text-shadow: none; }
/* --- Input Specific Styles (for amount fields) --- */
.input-new.amount-input {
    text-align: center; /* وسط‌چین */
    direction: ltr;     /* جهت از چپ به راست */
    font-weight: 800;   /* پررنگ‌تر */
    font-size: 1.2rem;  /* بزرگتر */
}
/* ################################################### */

/* --- Barber Panel Redesign --- */
.bp-header-card {
    text-align: center; margin-bottom: 25px;
}
.bp-avatar {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    border: 3px solid #8b5cf6; /* بنفش */
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); margin-bottom: 10px;
}
.bp-badge-star {
    position: absolute; bottom: 0; right: 0; width: 28px; height: 28px;
    background: var(--primary-yellow); border-radius: 50%; color: #000;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    border: 2px solid var(--bg-dark);
}
.bp-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.bp-role { font-size: 0.85rem; color: #a5b4fc; }

/* آمار سه تایی */
.bp-stats-row {
    display: flex; gap: 10px; margin-bottom: 25px;
}
.bp-stat-box {
    flex: 1; background: #1e2336; border-radius: 16px; padding: 12px 5px;
    text-align: center; border: 1px solid rgba(255,255,255,0.05);
}
.bp-stat-val { font-size: 1.1rem; font-weight: 800; color: #fff; display: block; }
.bp-stat-label { font-size: 0.7rem; color: #94a3b8; }

/* باکس مدیریت تاخیر */
.bp-delay-card {
    background: rgba(255,255,255,0.03); border-radius: 24px; padding: 20px;
    border: 1px solid rgba(255,255,255,0.05); margin-bottom: 25px;
}
.bp-delay-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.bp-delay-display {
    background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 10px;
    font-weight: 300; font-size: 1rem; color: hsl(46, 100%, 50%); letter-spacing: 1px;
}
.bp-btn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bp-delay-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #1f2937;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
}

.bp-delay-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.bp-delay-btn:disabled {
    cursor: auto;
    opacity: 0.5;
}

.bp-delay-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.bp-delay-btn.reset {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

.bp-delay-btn.reset:hover:not(:disabled) {
    background-color: #fecaca;
    box-shadow: 0 2px 4px 0 rgba(220, 38, 38, 0.1);
}

.bp-delay-btn.minus {
    background-color: #fed7aa;
    border-color: #fdba74;
    color: #92400e;
}

.bp-delay-btn.minus:hover:not(:disabled) {
    background-color: #fbbd96;
    box-shadow: 0 2px 4px 0 rgba(249, 115, 22, 0.1);
}

.bp-delay-btn.add {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.bp-delay-btn.add:hover:not(:disabled) {
    background-color: #bbf7d0;
    box-shadow: 0 2px 4px 0 rgba(34, 197, 94, 0.1);
}

/* تم لایت */
:root.light-theme .bp-delay-btn {
    background-color: #ffffff;
    border-color: #9ca3af;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

:root.light-theme .bp-delay-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #111827;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

:root.light-theme .bp-delay-btn.reset {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

:root.light-theme .bp-delay-btn.reset:hover:not(:disabled) {
    background-color: #fee8e8;
    color: #991b1b;
    box-shadow: 0 2px 4px 0 rgba(220, 38, 38, 0.1);
}

:root.light-theme .bp-delay-btn.minus {
    background-color: #fef5f0;
    border-color: #fdba74;
    color: #92400e;
}

:root.light-theme .bp-delay-btn.minus:hover:not(:disabled) {
    background-color: #fde8e0;
    color: #7c2d12;
    box-shadow: 0 2px 4px 0 rgba(249, 115, 22, 0.1);
}

:root.light-theme .bp-delay-btn.add {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

:root.light-theme .bp-delay-btn.add:hover:not(:disabled) {
    background-color: #bbf7d0;
    color: #065f46;
    box-shadow: 0 2px 4px 0 rgba(34, 197, 94, 0.1);
}


:root.light-theme .bp-delay-btn:hover:not(:disabled) {
    background-color: #F4AE52;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

:root.light-theme .bp-delay-btn.reset {
    background-color: #EA5252;
    border-color: rgba(220, 38, 38, 0.5);
    color: #ffffff;
}

:root.light-theme .bp-delay-btn.reset:hover:not(:disabled) {
    background-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

:root.light-theme .bp-delay-btn.minus {
    background-color: #EA5252;
    border-color: rgba(249, 115, 22, 0.5);
    color: #ffffff;
}

:root.light-theme .bp-delay-btn.minus:hover:not(:disabled) {
    background-color: hsla(21, 90%, 48%, 0.349);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* حذف استایل‌های قدیم :after */
.bp-delay-btn:after,
.bp-delay-btn.reset:after,
.bp-delay-btn.minus:after {
    display: none;
}

.bp-delay-btn.add {
    background-color: #10b981;
}

.bp-delay-btn.add:after {
    background-color: #34d399;
}

/* Dark Theme - bp-delay-btn */
:root.dark-theme .bp-delay-btn {
    background-color: #374151;
    border-color: #6b7280;
    color: #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

:root.dark-theme .bp-delay-btn:hover:not(:disabled) {
    background-color: #4b5563;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

:root.dark-theme .bp-delay-btn.reset {
    background-color: #7f1d1d;
    border-color: #b91c1c;
    color: #fee2e2;
}

:root.dark-theme .bp-delay-btn.reset:hover:not(:disabled) {
    background-color: #991b1b;
    color: #fecaca;
    box-shadow: 0 2px 4px 0 rgba(220, 38, 38, 0.3);
}

:root.dark-theme .bp-delay-btn.minus {
    background-color: #EA5252;
    
    color: hsl(0, 0%, 100%);
}

:root.dark-theme .bp-delay-btn.minus:hover:not(:disabled) {
    background-color: #92400e;
    color: #fbbd96;
    box-shadow: 0 2px 4px 0 rgba(249, 115, 22, 0.3);
}

:root.dark-theme .bp-delay-btn.add {
    background-color: #065f46;
    border-color: #10b981;
    color: #dcfce7;
}

:root.dark-theme .bp-delay-btn.add:hover:not(:disabled) {
    background-color: #047857;
    color: #bbf7d0;
    box-shadow: 0 2px 4px 0 rgba(34, 197, 94, 0.3);
}

/* تم تاریک برای flat-btn */
:root.dark-theme .flat-btn {
    background-color: #374151;
    border-color: #6b7280;
    color: #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

:root.dark-theme .flat-btn:hover:not(:disabled) {
    background-color: #4b5563;
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

:root.dark-theme .flat-btn.btn-yellow {
    background-color: #374151;
    border-color: #6b7280;
    color: #f3f4f6;
}

:root.dark-theme .flat-btn.btn-yellow:hover:not(:disabled) {
    background-color: #4b5563;
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

/* تم تاریک برای btn-shift-config */
:root.dark-theme .btn-shift-config {
    background-color: #374151;
    border-color: #6b7280;
    color: #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

:root.dark-theme .btn-shift-config:hover:not(:disabled) {
    background-color: #4b5563;
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

/* تم تاریک برای btn-manual-booking */
:root.dark-theme .btn-manual-booking {
    background-color: #374151;
    border-color: #6b7280;
    color: #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

:root.dark-theme .btn-manual-booking:hover:not(:disabled) {
    background-color: #4b5563;
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

.btn-content-wrapper {
    display: flex;
    align-items: center;      /* مرکزیت عمودی */
    justify-content: center;  /* مرکزیت افقی */
    gap: 0.5rem;              /* فاصله بین آیکون و متن */
}
/* لیست نوبت‌های امروز */
.bp-appt-card {
    background: #1e2336; border-radius: 20px; padding: 15px; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.bp-appt-time-box {
    background: #2c334a; border-radius: 14px; padding: 8px 12px; text-align: center; min-width: 65px;
}
.bp-appt-time { font-size: 1.1rem; font-weight: 800; color: #fff; display: block; line-height: 1; margin-bottom: 3px; }
.bp-appt-dur { font-size: 0.7rem; color: #94a3b8; }

.bp-appt-info { flex-grow: 1; padding: 0 15px; text-align: right; }
.bp-appt-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.bp-appt-service { font-size: 0.8rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; }

.bp-appt-action {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #94a3b8;
    cursor: pointer; transition: 0.2s;
}
.bp-appt-action:active { background: rgba(255,255,255,0.1); color: #fff; }

.service-edit-shell {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

#appointments-list-container {
    display:flex;
    flex-direction:column;
    gap:0px;
}

/* وضعیت آنلاین پایین */
.status-bar-bottom {
    background: #0f172a; border-radius: 16px; padding: 12px; margin-top: 20px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid #10b981; color: #10b981; font-weight: 700;
}
/* ///////////////////////////////////////////////////// */


/* --- Barber Action Sheet --- */
.action-sheet-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 10000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.action-sheet-backdrop.active { opacity: 1; pointer-events: auto; }

.action-sheet-content {
    background: #1a1f33; width: 100%; max-width: 500px;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    padding: 30px 20px 40px 20px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.action-sheet-backdrop.active .action-sheet-content { transform: translateY(0); }

:root.light-theme .action-sheet-backdrop {
    background: rgba(142, 123, 109, 0.5);
}

:root.light-theme .action-sheet-content {
    background: #f6f0ea;
    border-top-color: rgba(119, 99, 86, 0.2);
    box-shadow: 0 -8px 32px rgba(104, 84, 67, 0.25);
    color: var(--text-white);
}

:root.light-theme .as-icon-circle {
    background: rgba(183, 120, 19, 0.12);
    border-color: rgba(183, 120, 19, 0.24);
    color: var(--primary-yellow);
}

:root.light-theme .as-title {
    color: var(--text-white);
}

:root.light-theme .as-desc {
    color: var(--text-muted);
}

/* Light Theme - bg-dark for slot duration */
:root.light-theme .bg-dark {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

:root.light-theme .border-secondary {
    border-color: rgba(119, 99, 86, 0.2) !important;
}

:root.light-theme .as-btn {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.18);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .as-btn.complete {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.28);
    color: #15803d;
}

:root.light-theme .as-btn.call {
    background: rgba(54, 86, 191, 0.12);
    border-color: rgba(54, 86, 191, 0.28);
    color: #2747b5;
}

:root.light-theme .as-btn.cancel {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #b91c1c;
}

:root.light-theme .as-btn.mt-2 {
    background: rgba(255,255,255,0.62);
    border-color: rgba(119, 99, 86, 0.16);
    color: var(--text-muted);
}

.as-icon-circle {
    width: 60px; height: 60px; background: rgba(255,255,255,0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; border: 1px solid rgba(255,255,255,0.1); font-size: 1.5rem; color: #fff;
}
.as-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.as-desc { font-size: 0.8rem; color: #94a3b8; margin-bottom: 25px; }

.as-btn {
    width: 100%; padding: 15px; border-radius: 16px; margin-bottom: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s;
}
.as-btn:active { transform: scale(0.98); }

.as-btn.complete { border-color: #10b981; color: #10b981; background: rgba(16, 185, 129, 0.1); }
.as-btn.call { border-color: #3b82f6; color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.as-btn.cancel { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.1); }
/* ////////////////////////////////
 */
 /* اصلاح سلکت باکس پنل باربر */
.custom-select-wrapper {
    position: relative; margin-bottom: 12px; width: 100%;
}
.custom-select {
    width: 100%;
    background: #15192b; /* تیره‌تر */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 45px 16px 15px; /* پدینگ بیشتر برای آیکون */
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    appearance: none; /* حذف استایل پیش‌فرض مرورگر */
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.custom-select:focus { border-color: var(--primary-yellow); }

.custom-select-icon {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: var(--primary-yellow); font-size: 1.2rem; pointer-events: none;
}
/* برای RTL: آیکون سمت راست باشد */
/* دکمه وضعیت شناور و بزرگ */
.bp-status-btn {
    position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1000;
    height: 60px; border-radius: 20px; border: none; font-size: 1.1rem; font-weight: 400;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: all 0.5s;
}
.bp-status-btn.online {
    background: #059669; color: #fff; border: 2px solid #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.bp-status-btn.offline {
    background: #1e293b; color: #94a3b8; border: 2px solid #475569;
}
.bp-fixed-header {
    position: fixed; top: 0; left: 0; right: 0; height: 70px;
    background: rgba(15, 18, 30, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; 
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; 
    direction: rtl;
    background-color: var(--bg-dark);
}

.bp-fixed-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bp-page-shell {
    padding-bottom: 90px;
}

.bp-section-title {
    font-size: 0.95rem;
}

.bp-section-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bp-stat-star {
    font-size: 0.8rem;
}

.bp-loading-message {
    opacity: 0.6;
}

.bp-status-icon {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 16px;
    background-color: rgba(24, 153, 214, 0.1);
    color: hsl(180, 7%, 97%);
    border: 1px solid #fbfbfc33;
}

.status-online {
    background: rgba(16, 185, 129, 0.1); padding: 6px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-online .status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 5px #10b981; }
.status-online .status-text { color: #10b981; font-size: 0.8rem; font-weight: 700; }

.status-offline {
    background: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.1);
}
.status-offline .status-dot { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; }
.status-offline .status-text { color: #94a3b8; font-size: 0.8rem; font-weight: 700; }
.bp-content { 
        padding-top: 85px !important; /* افزایش فاصله */
        padding-bottom: 60px; 
    }

    /* ///////////////////////////////////////////// */

    /* --- Cancel Modal Styles --- */
/* --- Modal (Cancel & Refund) Styles --- */
.modal-backdrop-blur {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; /* عرض کامل */
    height: 100vh; /* ارتفاع کامل */
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px); /* بلر پس‌زمینه */
    z-index: 99999; /* بالاترین لایه */
    display: flex; 
    justify-content: center; 
    align-items: center; /* وسط چین عمودی و افقی */
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
}
.modal-backdrop-blur.active { opacity: 1; pointer-events: auto; }

.modal-confirm-box {
    background: #1a1f33; 
    width: 90%; 
    max-width: 350px;
    border-radius: 24px; 
    padding: 30px 25px; 
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    transform: scale(0.9); 
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* افکت فنری */
}
.modal-backdrop-blur.active .modal-confirm-box { transform: scale(1); }

.modal-icon-danger {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #ef4444; margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}
.modal-icon-success {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #10b981; margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.modal-title-bold { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.modal-text-muted { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 15px; line-height: 1.6; }
.modal-text-warning { 
    font-size: 0.8rem; color: #fbbf24; background: rgba(251, 191, 36, 0.1);
    padding: 10px; border-radius: 12px; margin-bottom: 25px;
}

.modal-btn-row { display: flex; gap: 12px; margin-top: 10px; }
.btn-modal-cancel {
    flex: 1; padding: 14px; border-radius: 14px; border: none;
    background: #ef4444; color: #fff; font-weight: 400; cursor: pointer;
    font-size: 1rem; box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s;
}
.btn-modal-cancel:active { transform: scale(0.95); }

:root.light-theme .btn-modal-cancel {
    color: white;
}

.btn-modal-close {
    flex: 1; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: #fff; font-weight: 400; cursor: pointer;
    font-size: 1rem; transition: background 0.2s;
}
.btn-modal-close:active { background: rgba(255,255,255,0.1); }

/* ============================================================
   Admin SMS Recharge Page Styles
============================================================ */

/* ============ تب‌ها ============ */
.tabs-container {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    height: 0;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

.tab-badge {
    background: var(--primary-yellow);
    color: #1a1a2e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 4px;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 193, 7, 0.8);
}

/* ============ محتوای تب ============ */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ لیست درخواست‌ها ============ */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.request-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.request-card.pending {
    border-left: 4px solid var(--primary-yellow);
}

.request-card.completed.approved {
    border-left: 4px solid #10b981;
}

.request-card.completed.rejected {
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

/* ============ هدر کارت ============ */
.request-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.request-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-info {
    flex: 1;
}

.request-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.request-phone {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.request-status-badge {
    position: absolute;
    left: 0;
    top: 0;
}

.badge-approved {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-rejected {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============ بدنه کارت ============ */
.request-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.request-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.request-row:last-child {
    border-bottom: none;
}

.request-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-amount {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 0.95rem;
}

.request-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============ دکمه‌ها ============ */
.request-actions {
    display: flex;
    gap: 10px;
}

.btn-approve,
.btn-reject {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-approve:active {
    transform: translateY(0);
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444 0%, #EA5252 100%);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-reject:active {
    transform: translateY(0);
}

/* ============ حالت خالی ============ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ============ Responsive ============ */
@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.85rem;
        padding: 12px 12px;
    }

    .request-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .request-actions {
        flex-direction: column;
    }

    .btn-approve,
    .btn-reject {
        width: 100%;
    }
}

/* ============ Light Theme ============ */
:root.light-theme .request-card {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

:root.light-theme .request-card:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

:root.light-theme .request-name {
    color: #1a1a2e;
}

:root.light-theme .request-label {
    color: #666;
}

:root.light-theme .request-row {
    border-bottom-color: #e9ecef;
}

:root.light-theme .tabs-container {
    background: #f8f9fa;
    border-bottom-color: #e9ecef;
}

:root.light-theme .tab-btn {
    color: #666;
}

:root.light-theme .tab-btn.active {
    color: #ffc107;
}

:root.light-theme .empty-state i {
    color: #999;
}

:root.light-theme .empty-state h3 {
    color: #1a1a2e;
}

:root.light-theme .empty-state p {
    color: #666;
}

/* /////////////////////////////////// پایان استایل دیال.گ */

.b-img-container {
    position: relative; width: 85px; height: 85px; flex-shrink: 0; 
    margin-left: 15px; /* فاصله از متن */
}
.b-img-thumb {
    width: 100%; height: 100%; object-fit: cover; border-radius: 18px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.b-img-icon {
    position: absolute; bottom: -6px; right: -6px; width: 28px; height: 28px;
    background: #2c334a; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.1);
}

/* 2. اطلاعات اصلی (بخش وسط) */
.b-main-info {
    flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; /* راست‌چین متن */
    text-align: right; padding-right: 15px; /* فاصله از خط زرد یا عکس */
    padding-left: 10px; /* فاصله از اکشن‌ها (سمت چپ) */
}
.b-service-title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.b-barber-name { font-size: 0.8rem; color: #94a3b8; margin-bottom: 12px; }

/* ردیف آیکون‌های زیر متن (قیمت، زمان و ...) */
.b-meta-row-new {
    display: flex; gap: 15px; justify-content: flex-start; /* راست‌چین */
}
.b-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: #cbd5e1; direction: ltr; /* ساعت چپ‌چین باشد */
}
.b-meta-item i { color: var(--primary-yellow); font-size: 0.9rem; }

/* 3. وضعیت و دکمه‌ها (چپ ترین بخش) */
.b-actions {
    display: flex; flex-direction: column; align-items: flex-end; /* چپ‌چین داخل خودش */
    justify-content: space-between;
    height: 85px; /* هم‌ارتفاع با کارت یا عکس */
    padding-left: 10px; /* فاصله از لبه چپ */
    flex-shrink: 0; /* مانع کوچک شدن و له شدن دکمه‌ها میشود */
}

/* بج وضعیت */
.b-status-badge {
    background: rgba(251, 191, 36, 0.15); color: var(--primary-yellow);
    padding: 4px 12px; border-radius: 12px; font-size: 0.7rem; font-weight: 800;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.b-status-badge.pending { background: rgba(255,255,255,0.1); color: #94a3b8; border-color: rgba(255,255,255,0.2); }
.b-status-badge.success { background: hsla(161, 94%, 30%, 0.119); color: #059669; border-color: #059669 }


/* دکمه لغو / آیکون فلش (پایین چپ) */
.b-delete-btn {
    width: 38px; height: 38px;
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #ef4444; cursor: pointer; transition: all 0.2s;
}
.b-delete-btn:active { transform: scale(0.9); background: rgba(239, 68, 68, 0.25); }

/* Custom Dark Captcha Styles */
.custom-captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e2228;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    direction: rtl;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-captcha-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #252a32;
}

.custom-captcha-box.success {
    border-color: #10b981;
    pointer-events: none;
}

.captcha-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.captcha-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 3px;
}

.captcha-subtitle {
    color: #94a3b8;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.captcha-checkbox {
    width: 32px;
    height: 32px;
    border: 2px solid #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    transition: all 0.3s ease;
}

.custom-captcha-box.success .captcha-checkbox {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.captcha-check-icon {
    color: #10b981;
    font-size: 1.5rem;
    display: none;
    animation: scaleIn 0.3s ease forwards;
}

.captcha-spinner {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
    color: #e2e8f0;
    display: none;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


    /* استایل‌های سفارشی برای input-group-custom و input-new (اگر قبلاً در custom.css نیستند) */
    .input-group-custom {
        display: flex;
        width: 100%;
        border-radius: 12px;
        overflow: hidden; /* برای اینکه border-radius درست اعمال شود */
        border: 1px solid #4a5568; /* Border for the whole group */
    }
    .input-group-custom .input-new {
        flex: 1; /* Input takes available space */
        border: none; /* Remove individual input border */
        background-color: #2e3541; /* Dark background */
        color: #ffffff; /* Text color */
        padding: 15px; /* Adjust padding for better look */
        border-radius: 0; /* No radius on input itself */
        outline: none; /* Remove focus outline */
    }
    .input-group-custom .input-new::placeholder {
        color: #a0aec0; /* Placeholder color */
    }
    .input-group-custom .input-new:focus {
        background-color: #3b4252; /* Slightly lighter on focus */
    }
    .input-group-text-custom {
        background-color: #2e3541; /* Dark background */
        color: #a0aec0; /* Text color */
        padding: 15px;
        border: none; /* Remove individual span border */
        display: flex;
        align-items: center;
    }

    /* === [استایل کارت بانکی جدید] === */
    .bank-card-container {
        display: flex;
        justify-content: center;
        margin-bottom: 15px; /* فاصله از آیتم بعدی */
        width: 100%;
    }

    .bank-card {
        width: 90; /* عرض کارت */
        height: 200px; /* ارتفاع کارت */
        background: linear-gradient(135deg, #2a303b 0%, #1e2228 100%); /* گرادینت دارک */
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
        color: #e0e6ed;
        font-family: 'Vazirmatn', sans-serif; /* استفاده از فونت پروژه */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden; /* برای جلوگیری از سرریز شدن سایه و ... */
        border: 1px solid rgba(255, 255, 255, 0.08); /* حاشیه کم‌رنگ */
    }

    /* افزودن افکت شبیه به هولوگرام / نوار درخشان */
    .bank-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.05) 0%, transparent 40%);
        z-index: 0;
    }

    .bank-card > div { /* تمام محتوا بالاتر از ::before باشد */
        position: relative;
        z-index: 1;
    }

    .bank-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .bank-logo {
        width: 40px; /* اندازه لوگوی بانک */
        height: 25px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23fbbd0a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-credit-card"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line></svg>') no-repeat center center;
        background-size: contain;
        filter: brightness(1.2); /* کمی درخشندگی بیشتر */
    }

    .card-type {
        font-weight: bold;
        color: var(--primary-yellow); /* رنگ طلایی برای نوع کارت */
        font-size: 0.9rem;
    }

    .bank-card-chip {
        width: 45px;
        height: 35px;
        background: linear-gradient(135deg, #bbbbbb 0%, #777777 100%);
        border-radius: 5px;
        margin: 15px 0;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
    }

    .bank-card-number {
        display: flex;
        justify-content: space-between;
        font-size: 1.25rem;
        font-weight: bold;
        letter-spacing: 2px;
        margin-bottom: 10px;
        direction: ltr; /* شماره کارت به صورت LTR نمایش داده شود */
    }
    .bank-card-number span:not(:last-child) {
        margin-right: 8px; /* فاصله بین گروه‌های 4 رقمی */
    }

    .bank-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        font-size: 0.75rem;
        opacity: 0.9;
    }

    .card-holder-name {
        font-weight: bold;
        text-transform: uppercase;
        color: #fff;
    }

/* فونت Arad - از طریق Vazirmatn-font-face.css */
/* @import url('assets/css/Vazirmatn-font-face.css'); */ /* Already imported at top */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#loader.d-none {
    display: none !important;
}

/* ✅ استایل جدید برای لودر - باکس مرکزی */
.loader-box {
    background: rgba(21, 25, 43, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    width: auto;
    height: auto;
    min-width: 25px;
    min-height: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ✅ Light theme برای لودر */
:root.light-theme #loader {
    background-color: rgba(255, 255, 255, 0.4);
}

:root.light-theme .loader-box {
    background: rgba(255, 250, 246, 0.96);
    border: 1px solid rgba(183, 120, 19, 0.16);
    box-shadow: 0 8px 32px rgba(104, 84, 67, 0.2);
}

:root.light-theme .spinner .spinner-blade {
    background-color: #c45e10 !important;
    animation: spinner-fade9234-light 1s infinite linear !important;
}

@keyframes spinner-fade9234-light {
  0%   { background-color: #c45e10; }
  100% { background-color: rgba(196, 94, 16, 0.08); } /* شفاف‌تر = کنتراست بیشتر */
}

:root.light-theme .global-loader-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
}

:root.light-theme .loader-text {
    color: #7c4a0f; /* تیره نارنجی — روی پس‌زمینه روشن خوانا */
    text-shadow: none;
}

    /* استایل مربوط به چارت‌ها و گراف‌ها (اگر در custom.css نیستند) */
/* =========================================================
   Barber Panel - Flat & Fast Design (No Blur/Glass)
========================================================= */

/* ============================================================
   Uiverse Button Styles - Global Button Design
============================================================ */

/* Base button styles from Uiverse */
button,
.btn-manual-booking,
.btn-shift-config,
.flat-btn,
.bp-delay-btn,
.btn-secondary-custom,
.action-full {
    appearance: button;
    border: solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-weight: 200;
    line-height: 1.25rem;
    margin: 0;
    outline: none;
    overflow: visible;
    text-align: center;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

/* btn-manual-booking style */
.btn-manual-booking {
    background-color: #f5f5f5;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-manual-booking:hover:not(:disabled) {
    background-color: #e5e7eb;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-manual-booking:disabled {
    cursor: auto;
    opacity: 0.5;
}

.btn-manual-booking:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-manual-booking:focus,
.btn-manual-booking:main {
    user-select: auto;
}

/* حذف استایل‌های قدیم :after */
.btn-manual-booking:after,
.btn-manual-booking:active:after {
    display: none;
}

/* تم لایت */
:root.light-theme .btn-manual-booking {
    background-color: #ffffff;
    border-color: #9ca3af;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

:root.light-theme .btn-manual-booking:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #111827;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* btn-shift-config style */
.btn-shift-config {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #1f2937;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
}

.btn-shift-config:hover:not(:disabled) {
    background-color: #f3f4f6;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-shift-config:disabled {
    cursor: auto;
    opacity: 0.5;
}

.btn-shift-config:active:not(:disabled) {
    transform: scale(0.98);
}

/* حذف استایل‌های قدیم :after */
.btn-shift-config:after {
    display: none;
}

.btn-shift-config:active:after {
    display: none;
}

/* تم لایت */
:root.light-theme .btn-shift-config {
    background-color: #ffffff;
    border-color: #9ca3af;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

:root.light-theme .btn-shift-config:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #111827;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* کلاس‌های پایه فلت */
.flat-card {
    background-color: var(--card-bg);
    border-radius: 25px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03); /* بردر بسیار محو برای عمق دادن */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* سایه بسیار سبک */
}

.flat-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #1f2937;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.flat-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.flat-btn:disabled {
    cursor: auto;
    opacity: 0.5;
}

.flat-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.flat-btn.btn-yellow {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}

.flat-btn.btn-yellow:hover:not(:disabled) {
    background-color: #f3f4f6;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* action-full variant */
.flat-btn.action-full,
.action-full {
    width: 100%;
    padding: 0.75rem 1rem;
}

/* حذف استایل‌های قدیم :after */
.flat-btn:after,
.flat-btn.btn-yellow:after {
    display: none;
}

.flat-btn:active:after,
.flat-btn.btn-yellow:active:after {
    display: none;
}

/* تم لایت */
:root.light-theme .flat-btn {
    background-color: #F4AE52;
    border-color: rgba(124, 58, 237, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

:root.light-theme .flat-btn:hover:not(:disabled) {
    background-color: #F4AE52;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

:root.light-theme .flat-btn.btn-yellow {
    background-color: transparent;
    border-color: #f97316;
    color: #f97316;
}

:root.light-theme .flat-btn.btn-yellow:hover:not(:disabled) {
    background-color: transparent;
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* هدر پروفایل */
.inline-profile-header { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem; }
.profile-info-group { display: flex; align-items: center; gap: 0.8rem; }
.profile-avatar { width: 55px; height: 55px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); object-fit: cover; }
.profile-name { font-size: 1rem; font-weight: 800; color: var(--text-white); margin: 0; }
.profile-role { font-size: 0.75rem; color: var(--primary-yellow); margin: 0; }

/* بج پیامک */
.sms-badge {
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sms-amount { color: #10b981; font-weight: 900; font-size: 1.1rem; line-height: 1; }
.sms-label { font-size: 0.6rem; color: rgba(16, 185, 129, 0.8); }

/* گریدها و المان‌های دیگر */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.stat-box { background-color: var(--card-bg); border-radius: 16px; padding: 1rem 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; border: 1px solid rgba(255, 255, 255, 0.03); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.stat-val { font-size: 1.1rem; font-weight: 900; color: var(--text-white); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.action-full { grid-column: span 2; }
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.icon-box.yellow { background-color: rgba(251, 191, 36, 0.1); color: var(--primary-yellow); }

.uni-select-wrapper { position: relative; margin-bottom: 0.8rem; }
.uni-select { width: 100%; background-color: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 14px; color: var(--text-white); padding: 0.8rem 1rem 0.8rem 2.5rem; appearance: none; font-size: 0.9rem; outline: none; }
.uni-select-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

#echarts-container {
    width: 100%;
    height: 250px; /* ارتفاع ثابت برای ECharts */
    /* ECharts خودش اسکرول را مدیریت می‌کند */
}
/* =========================================================
   Chart Styles (بدون تغییر در طراحی، فقط انتقال به اینجا)
========================================================= */
.static-chart-card { width: 100%; background-color: var(--card-bg); border-radius: 24px; padding: 15px 0 20px 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4); overflow: hidden; border: 1px solid rgba(255,255,255,0.03); margin-bottom: 1rem; }
.static-chart-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.02); margin-bottom: 10px;}
.static-chart-header h2 { margin: 0; font-size: 0.9rem; color: var(--text-muted); font-family: 'Vazirmatn', sans-serif;}
.static-chart-price { font-size: 1.3rem; font-weight: 800; margin: 0; color: var(--text-white); font-family: 'Vazirmatn', sans-serif;}

.static-chart-viewport { width: 100%; overflow-x: auto; cursor: grab; padding-bottom: 5px; scrollbar-width: none; scroll-behavior: smooth; }
.static-chart-viewport::-webkit-scrollbar { display: none; }

.static-chart-wrapper { width: 1600px; height: 160px; position: relative; padding: 10px 0; }
.static-chart-wrapper svg { width: 100%; height: 100%; display: block; overflow: visible; }

.static-line { fill: none; stroke: #8b5cf6; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4)); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2s ease-out forwards; }
.static-line-glow { fill: none; stroke: rgba(139, 92, 246, 0.2); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 20, 50; animation: pulse-flow 4s linear infinite; }

.static-point { fill: var(--bg-dark); stroke: #8b5cf6; stroke-width: 3; transition: all 0.2s ease; cursor: pointer; }
.static-point:hover, .static-point.active { fill: #8b5cf6; r: 7; filter: drop-shadow(0 0 8px #8b5cf6); }

.static-area-gradient { fill: url(#staticChartGradient); opacity: 0; animation: fadeIn 1.5s ease forwards 0.5s; }
.static-labels-x { display: flex; justify-content: space-between; padding: 0 10px; margin-top: 5px; }
.static-label-day { color: var(--text-muted); font-size: 0.65rem; width: 45px; text-align: center; font-family: 'Vazirmatn', sans-serif; white-space: nowrap;}

.chart-popup-tooltip {
    position: absolute;
    background-color: var(--card-bg); /* حذف شیشه ای شدن تولتیپ برای روونی بیشتر */
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.8);
    transition: opacity 0.15s ease, transform 0.15s ease-out;
    z-index: 2;
    min-width: 100px;
}
.chart-popup-tooltip.show { opacity: 1; transform: translate(-50%, -35px) scale(1); }
.chart-popup-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); border-width: 6px; border-style: solid;
    border-color: rgba(139, 92, 246, 0.5) transparent transparent transparent;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse-flow { 0% { stroke-dashoffset: 0; opacity: 0.3; } 50% { opacity: 1; } 100% { stroke-dashoffset: -200; opacity: 0.3; } }
@keyframes fadeIn { to { opacity: 1; } }
/* //////// دکمه حذف برای خدمات آرایشگر */

/* ... (کدهای CSS دیگر شما) ... */

/* 🔴🔴🔴 استایل دکمه حذف 🔴🔴🔴 */

/* /////////////// */
.scissor-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    /* حذف کامل مارجین بالا و پایین */
    margin: 0; 
    padding: 0;
    width: 100%;
    overflow: hidden;
}

/* خط سمت چپ (از مرکز پررنگ به سمت چپ محو) */
.scissor-divider::before {
    content: "";
    flex: 1;
    height: 1px;
    /* رنگ در سمت راست (نزدیک قیچی) شروع و به سمت چپ شفاف می‌شود */
    background: linear-gradient(to left, #d1d1d1, transparent);
    margin-right: 12px;
}

/* خط سمت راست (از مرکز پررنگ به سمت راست محو) */
.scissor-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    /* رنگ در سمت چپ (نزدیک قیچی) شروع و به سمت راست شفاف می‌شود */
    background: linear-gradient(to right, #d1d1d1, transparent);
    margin-left: 12px;
}

/* استایل قیچی افقی با رنگ Warning */
.scissor-icon {
    color: #ff9800; /* نارنجی استاندارد Warning */
    font-size: 22px;
    display: inline-block;
    /* جهت قیچی کاملاً افقی به سمت راست */
    transform: rotate(90deg); 
    user-select: none;
    transition: all 0.3s ease;
    line-height: 1;
}

/* افکت هاور */
.scissor-divider:hover .scissor-icon {
    color: #f57c00;
    transform: rotate(90deg) scale(1.2);
}

.scissor-divider:hover::before {
    background: linear-gradient(to left, #ff9800, transparent);
}

.scissor-divider:hover::after {
    background: linear-gradient(to right, #ff9800, transparent);
}
.overtime-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 10px 0 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    cursor: pointer;
}

.overtime-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.overtime-switch-title {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 800;
}

.overtime-switch-desc {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.7;
}

.overtime-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ios-switch-visual {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148,163,184,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ios-switch-visual::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}

.overtime-switch-row input:checked + .ios-switch-visual {
    background: hsl(115, 72%, 43%);
    border-color: hsl(115, 72%, 43%);
}

.overtime-switch-row input:checked + .ios-switch-visual::after {
    transform: translateX(22px);
}

.shift-slot-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 2px;
    color: var(--primary-yellow);
    font-size: 0.78rem;
    font-weight: 800;
}

.shift-slot-separator::before,
.shift-slot-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.85), transparent);
}

/* ============================================================
   Animated Theme Toggle Button (Perfect & Beautiful)
============================================================ */
.theme-toggle-btn {
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
}

.theme-toggle-btn:active {
    transform: scale(0.92);
}

/* Slider knob */
.toggle-knob {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-yellow);
    position: absolute;
    left: 3px;
    transition: left 0.15s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.9rem;
}

/* Icons */
.toggle-icon {
    position: absolute;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    font-size: 0.85rem;
}

.toggle-icon.sun {
    left: 10px;
    color: #d97706;
}

.toggle-icon.moon {
    right: 10px;
    color: #60a5fa;
}

/* Light theme state */
.theme-toggle-btn.light-mode .toggle-knob {
    left: 27px;
}

.theme-toggle-btn.light-mode .toggle-icon.sun {
    opacity: 1;
}

/* Dark theme state */
.theme-toggle-btn.dark-mode .toggle-knob {
    left: 3px;
}

.theme-toggle-btn.dark-mode .toggle-icon.moon {
    opacity: 1;
}

/* Smooth transition for body background */
body {
    transition: background-color 0.2s ease, color 0.2s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll without breaking fixed-position backdrop-filter on iOS */
}

/* Light theme body adjustments */
:root.light-theme body {
    /* background: linear-gradient(180deg, #f6f0ea 0%, #efefea 100%);
    color: var(--text-white); */
}

:root.light-theme .icon-box-glass,
:root.light-theme .btn-primary-custom {
    background: rgba(255,255,255,0.55);
    border-color: rgba(150, 124, 104, 0.22);
    color: var(--text-white);
    box-shadow: 0 6px 18px rgba(89, 71, 57, 0.12);
}

:root.light-theme .card-bg,
:root.light-theme .theme-surface,
:root.light-theme .theme-surface-soft,
:root.light-theme .theme-surface-muted,
:root.light-theme .flat-card,
:root.light-theme .stat-box,
:root.light-theme .booking-card-glass,
:root.light-theme .suggested-card,
:root.light-theme .gallery-shortcut-glass,
:root.light-theme .service-list-card,
:root.light-theme .confirm-card,
:root.light-theme .rules-card,
:root.light-theme .reg-input-group,
:root.light-theme .input-group-custom,
:root.light-theme .captcha-content,
:root.light-theme .theme-panel,
:root.light-theme .theme-chart-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

:root.light-theme .theme-surface-soft,
:root.light-theme .theme-surface-muted,
:root.light-theme .gallery-shortcut-glass,
:root.light-theme .suggested-card,
:root.light-theme .service-list-card,
:root.light-theme .theme-soft-row,
:root.light-theme .theme-chip,
:root.light-theme .theme-input,
:root.light-theme .theme-soft-pill,
:root.light-theme .theme-status-chip {
    background: rgba(254, 250, 247, 0.86);
}

:root.light-theme .text-white,
:root.light-theme .text-light-custom,
:root.light-theme .confirm-service-title,
:root.light-theme .detail-value,
:root.light-theme .brand-title-simple,
:root.light-theme .booking-card-glass h3,
:root.light-theme .sa-serv-nm,
:root.light-theme .sa-barber-nm,
:root.light-theme .page-title,
:root.light-theme .profile-name,
:root.light-theme .profile-role,
:root.light-theme .sl-title,
:root.light-theme .static-chart-header h2,
:root.light-theme .chart-label,
:root.light-theme .theme-text-strong,
:root.light-theme .theme-text-primary,
:root.light-theme .theme-heading {
    color: var(--text-white) !important;
}

:root.light-theme .text-muted,
:root.light-theme .theme-text-soft,
:root.light-theme .detail-label,
:root.light-theme .sa-dt,
:root.light-theme .booking-card-glass p,
:root.light-theme .gallery-shortcut-glass span:last-child,
:root.light-theme .sl-meta-item,
:root.light-theme .stat-label,
:root.light-theme .theme-text-muted,
:root.light-theme .theme-subtle-label,
:root.light-theme .section-subtitle {
    color: var(--text-muted) !important;
}

:root.light-theme .theme-input,
:root.light-theme .reg-input,
:root.light-theme .input-group-custom input,
:root.light-theme .captcha-input,
:root.light-theme .uni-select,
:root.light-theme .pin-input {
    background: rgba(255, 255, 255, 0.62);
    color: var(--text-white);
    border-color: rgba(119, 99, 86, 0.22);
}

:root.light-theme .btn-primary-custom {
    background: linear-gradient(135deg, #d79a2b, #b97610);
    color: #fffaf5;
    box-shadow: 0 10px 24px rgba(183, 118, 16, 0.22);
}

:root.light-theme .btn-secondary-custom,
:root.light-theme .theme-ghost-btn {
    background-color: #1899D6;
    border: solid transparent;
    border-width: 0 0 4px;
    color: #FFFFFF;
}

:root.light-theme .back-btn {
    background: rgba(255,255,255,0.68);
    color: var(--text-white);
    border: 1px solid rgba(119, 99, 86, 0.18);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .back-btn:hover {
    background: rgba(255,255,255,0.86);
}

:root.light-theme .back-btn:active {
    background: rgba(255,255,255,0.96);
}

:root.light-theme .back-btn i,
:root.light-theme .bp-fixed-header .back-btn i {
    color: var(--text-white);
}

/* Light Theme - Logout Button */
:root.light-theme .logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #EA5252;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

:root.light-theme .logout-btn:active {
    background: rgba(239, 68, 68, 0.3);
}

:root.light-theme .logout-btn i {
    color: #dc2626;
}

:root.light-theme .theme-toggle-btn {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.2);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .theme-toggle-btn .toggle-knob {
    background: linear-gradient(135deg, var(--primary-yellow), #dba12e);
}

:root.light-theme .nav-item {
    color: var(--text-muted);
}

:root.light-theme .nav-item:hover:not(.active) {
    color: var(--text-white);
}

:root.light-theme .nav-icon {

    border-color: rgba(119, 99, 86, 0.15);
    color: var(--text-muted);
}

:root.light-theme .nav-item.active .nav-icon {
    /* background: linear-gradient(135deg,
        rgba(183, 120, 19, 0.98) 0%,
        rgba(219, 161, 46, 0.95) 100%
    ); */
    border-color: rgba(255, 255, 255, 0.4);

    color: var(--primary-yellow);
}

:root.light-theme .nav-item.active .nav-label {
    color: #b77813;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root.light-theme .nav-item.active .nav-label {
    color: var(--primary-yellow);
}

:root.light-theme .time-slot {
    background: rgba(255,255,255,0.7);
    border-color: rgba(119, 99, 86, 0.18);
    color: var(--text-white);
}

:root.light-theme .time-slot:hover:not(.disabled):not(.selected) {
    background: rgba(255,255,255,0.84);
    border-color: rgba(119, 99, 86, 0.28);
}

:root.light-theme .time-slot.selected {
    background: linear-gradient(135deg, var(--primary-yellow), #dba12e);
    color: #fffaf5;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(183, 120, 19, 0.26);
}

:root.light-theme .time-slot.disabled {
    opacity: 0.38;
}

:root.light-theme .time-slot.locked {
    opacity: 0.45;
    border: 2px solid #d26c16;
    background: rgba(210, 108, 22, 0.08);
}

:root.light-theme .time-slot.locked .lock-timer {
    background: #d26c16;
}

:root.light-theme .date-card {
    background: rgba(255,255,255,0.68);
    border-color: rgba(119, 99, 86, 0.16);
    color: var(--text-white);
}

:root.light-theme .date-card.active {
    background: linear-gradient(135deg, var(--primary-yellow), #dba12e);
    color: #fffaf5;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(183, 120, 19, 0.26);
}

:root.light-theme .bp-fixed-header {
    background: var(--bg-primary);;
    border-bottom: 1px solid rgba(119, 99, 86, 0.16);
    box-shadow: 0 4px 18px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(10px);
}

:root.light-theme .bp-status-btn.online {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.22);
}

:root.light-theme .bp-status-btn.offline {
    background: rgba(255,255,255,0.78);
    color: var(--text-white);
    border-color: rgba(119, 99, 86, 0.2);
}

:root.light-theme .status-online {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.24);
}

:root.light-theme .status-online .status-text {
    color: #15803d;
}

:root.light-theme .status-offline {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.2);
}

:root.light-theme .status-offline .status-text {
    color: var(--text-muted);
}

:root.light-theme .bp-delay-card,
:root.light-theme .bp-stat-box,
:root.light-theme .bp-appt-card {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.16);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .bp-appt-time-box {
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(119, 99, 86, 0.16);
}

:root.light-theme .bp-appt-time,
:root.light-theme .bp-appt-name {
    color: var(--text-white);
}

:root.light-theme .bp-appt-dur,
:root.light-theme .bp-appt-service {
    color: var(--text-muted);
}

:root.light-theme .bp-appt-service .text-success {
    color: #15803d !important;
}

/* Light Theme - btn-outline-light (+ و - دکمه‌ها) */
:root.light-theme .btn-outline-light {
    --bs-btn-color: #3656bf;
    --bs-btn-border-color: rgba(54, 86, 191, 0.3);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: rgba(54, 86, 191, 0.4);
    --bs-btn-hover-border-color: rgba(54, 86, 191, 0.6);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: rgba(54, 86, 191, 0.5);
    --bs-btn-active-border-color: rgba(54, 86, 191, 0.7);
}

:root.light-theme .btn-outline-light:hover {
    background-color: rgba(54, 86, 191, 0.12) !important;
}

/* Dark Theme - btn-outline-light */
:root.dark-theme .btn-outline-light {
    --bs-btn-color: #d1d5db;
    --bs-btn-border-color: rgba(209, 213, 219, 0.3);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: rgba(209, 213, 219, 0.2);
    --bs-btn-hover-border-color: rgba(209, 213, 219, 0.5);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: rgba(209, 213, 219, 0.3);
    --bs-btn-active-border-color: rgba(209, 213, 219, 0.6);
}

:root.light-theme .bp-appt-service .text-warning {
    color: #b87916 !important;
}

:root.light-theme .bp-appt-action {
    background: rgba(255,255,255,0.72);
    color: var(--text-muted);
    border: 1px solid rgba(119, 99, 86, 0.16);
}

:root.light-theme .bp-appt-action:active {
    background: rgba(255,255,255,0.9);
    color: var(--text-white);
}

:root.light-theme .modal-backdrop-blur {
    background: rgba(142, 123, 109, 0.32);
}

:root.light-theme .modal-confirm-box {
    background: rgba(255,255,255,0.82);
    border-color: rgba(119, 99, 86, 0.16);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

:root.light-theme .modal-title-bold {
    color: var(--text-white);
}

:root.light-theme .modal-text-muted {
    color: var(--text-muted);
}

:root.light-theme .modal-text-white {
    color: var(--text-white) !important;
}

:root.light-theme .modal-text-warning {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
}

:root.light-theme .modal-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.26);
    color: #b91c1c;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.14);
}

:root.light-theme .modal-icon-success {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.26);
    color: #15803d;
    box-shadow: 0 0 24px rgba(22, 163, 74, 0.14);
}

:root.light-theme .btn-modal-close {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.2);
    color: var(--text-white);
}

:root.light-theme .payment-modal-backdrop {
    background: rgba(142, 123, 109, 0.38);
}

:root.light-theme .payment-modal-content {
    background: #ffffff;
    border-color: rgba(119, 99, 86, 0.2);
    color: var(--text-white);
}

:root.light-theme .payment-modal-close-btn {
    color: #000000 !important;
}

:root.light-theme .payment-modal-close-btn i {
    color: #000000 !important;
}

:root.light-theme .payment-modal-content h3 {
    color: var(--text-white) !important;
}

:root.light-theme .payment-modal-content {
    background: #ffffff;
    border-color: rgba(119, 99, 86, 0.2);
    box-shadow: 0 -12px 40px rgba(104, 84, 67, 0.3);
    color: var(--text-white);
}

:root.light-theme .insufficient-balance-content {
    background: #ffffff;
    border-color: rgba(119, 99, 86, 0.2);
    box-shadow: 0 -12px 40px rgba(104, 84, 67, 0.3);
}

:root.light-theme .dialog-title {
    color: var(--text-white);
}

:root.light-theme .dialog-message {
    color: var(--text-muted);
}

:root.light-theme .dialog-icon-container {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.26);
    color: #b91c1c;
}

:root.light-theme .btn-action.btn-primary {
    
    background: var(--primary-yellow);
    color: #ffffff;
}

:root.light-theme .btn-action.btn-secondary {
    background: rgba(119, 99, 86, 0.08);
    color: var(--text-white);
    border-color: rgba(119, 99, 86, 0.16);
}

:root.light-theme .modal-close-btn {
    background: rgba(119, 99, 86, 0.12);
    border-color: rgba(119, 99, 86, 0.18);
    color: var(--text-white);
}

:root.light-theme .modal-header-line {
    background: rgba(183, 120, 19, 0.38);
}

:root.light-theme .pay-option {
    background: rgba(255,255,255,0.66);
    border-color: rgba(119, 99, 86, 0.18);
}

:root.light-theme .pay-option.full {
    background: rgba(183, 120, 19, 0.12);
    border-color: var(--primary-yellow);
}

:root.light-theme .pay-title,
:root.light-theme .pay-amount {
    color: var(--text-white);
}

:root.light-theme .pay-desc {
    color: var(--text-muted);
}

:root.light-theme .pay-icon {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
}

:root.light-theme .form-label-new {
    color: var(--text-muted);
}

:root.light-theme .input-new,
:root.light-theme .custom-select {
    background: rgba(255,255,255,0.74);
    border-color: rgba(119, 99, 86, 0.2);
    color: var(--text-white);
}

:root.light-theme .input-new:focus,
:root.light-theme .custom-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(183, 120, 19, 0.16);
}

:root.light-theme .input-icon-right,
:root.light-theme .custom-select-icon {
    color: var(--text-muted);
}

:root.light-theme .service-edit-shell {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.16);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .service-summary-pill {
    background: rgba(183, 120, 19, 0.14);
    border-color: rgba(183, 120, 19, 0.26);
    color: var(--primary-yellow);
}

:root.light-theme .upload-box {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.2);
    color: var(--text-muted);
}

:root.light-theme .upload-box:hover {
    border-color: var(--primary-yellow);
}

:root.light-theme .upload-overlay {
    background: rgba(255,255,255,0.6);
    color: var(--text-white);
}

:root.light-theme .custom-captcha-box {
    background: rgba(255,255,255,0.72);
    border-color: rgba(119, 99, 86, 0.18);
    box-shadow: var(--shadow-sm);
}

:root.light-theme .custom-captcha-box:hover {
    background: rgba(255,255,255,0.86);
    border-color: rgba(183, 120, 19, 0.3);
}

:root.light-theme .custom-captcha-box.success {
    border-color: #16a34a;
}

:root.light-theme .captcha-title {
    color: var(--text-white);
}

:root.light-theme .captcha-subtitle {
    color: var(--text-muted);
}

:root.light-theme .captcha-checkbox {
    background: rgba(255,255,255,0.74);
    border-color: rgba(119, 99, 86, 0.24);
}

:root.light-theme .custom-captcha-box.success .captcha-checkbox {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
}

/* ===== LIGHT THEME: BARBER CARD & SERVICE ITEM STYLES ===== */
:root.light-theme .barber-card {
    background: rgba(255, 250, 246, 0.9);
    border-color: rgba(183, 120, 19, 0.18);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
}

:root.light-theme .barber-card:hover {
    background: rgba(255, 250, 246, 0.95);
    border-color: rgba(183, 120, 19, 0.28);
    box-shadow: 0 8px 24px rgba(104, 84, 67, 0.16);
}

:root.light-theme .barber-card.selected {
    border-color: var(--primary-yellow);
    background: rgba(183, 120, 19, 0.08);
    box-shadow: 0 8px 28px rgba(183, 120, 19, 0.22);
}

:root.light-theme .barber-img {
    border-color: rgba(119, 99, 86, 0.24);
}

:root.light-theme .rating-badge {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(119, 99, 86, 0.2);
    color: var(--text-white);
}

:root.light-theme .barber-name {
    color: var(--text-white);
}

:root.light-theme .barber-spec {
    color: var(--text-muted);
}

:root.light-theme .service-item {
    background: rgba(255, 250, 246, 0.92);
    border-color: rgba(183, 120, 19, 0.18);
    box-shadow: 0 2px 12px rgba(104, 84, 67, 0.1);
}

:root.light-theme .service-item:hover {
    background: rgba(255, 253, 249, 0.96);
    border-color: rgba(183, 120, 19, 0.28);
    box-shadow: 0 4px 18px rgba(104, 84, 67, 0.14);
}

:root.light-theme .service-item.selected {
    border-color: var(--primary-yellow);
    background: rgba(183, 120, 19, 0.1);
    box-shadow: 0 6px 24px rgba(183, 120, 19, 0.2);
}

:root.light-theme .service-img {
    border-color: rgba(119, 99, 86, 0.2);
}

:root.light-theme .service-info h4 {
    color: var(--text-white);
}

:root.light-theme .service-info p {
    color: var(--text-muted);
}

:root.light-theme .select-icon {
    color: rgba(183, 120, 19, 0.3);
}

:root.light-theme .service-item.selected .select-icon {
    color: var(--primary-yellow);
}

:root.light-theme .section-label h3 {
    color: var(--text-white);
    border-right-color: var(--primary-yellow);
}

:root.light-theme .page-header {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(119, 99, 86, 0.12);
}

:root.light-theme .page-title {
    color: var(--text-white);
}

:root.light-theme .stepper-container {
    opacity: 0.8;
}

:root.light-theme .step-dot {
    background-color: rgba(183, 120, 19, 0.2);
}

:root.light-theme .step-dot.active {
    background-color: var(--primary-yellow);
    box-shadow: 0 0 10px rgba(183, 120, 19, 0.4);
}

/* ===== LIGHT THEME: HOME PAGE STYLES ===== */
:root.light-theme .hero-section {
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.06), rgba(212, 108, 22, 0.1)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

:root.light-theme .hero-overlay {
    background: linear-gradient(to bottom, rgba(246, 240, 234, 0.4) 0%, rgba(246, 240, 234, 0.75) 90%, var(--bg-primary) 100%);
}

:root.light-theme .brand-title {
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:root.light-theme .brand-subtitle {
    color: var(--primary-yellow);
}

:root.light-theme .booking-card {
    background: rgba(255, 253, 249, 0.94);
    border: 1px solid rgba(183, 120, 19, 0.18);
    box-shadow: 0 8px 32px rgba(104, 84, 67, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root.light-theme .booking-card:hover {
    box-shadow: 0 12px 40px rgba(104, 84, 67, 0.2);
    border-color: rgba(183, 120, 19, 0.28);
}

:root.light-theme .service-card {
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(119, 99, 86, 0.16);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

:root.light-theme .service-card:hover {
    box-shadow: 0 8px 24px rgba(104, 84, 67, 0.16);
    border-color: rgba(183, 120, 19, 0.22);
    background: rgba(255, 253, 249, 0.96);
}

:root.light-theme .service-card.purple {
    background: linear-gradient(135deg, rgba(183, 120, 19, 0.08), rgba(212, 108, 22, 0.06));
    border-color: rgba(183, 120, 19, 0.2);
}

:root.light-theme .icon-box {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
}

:root.light-theme .hero-section h2 {
    color: var(--text-white);
}

:root.light-theme .hero-section p {
    color: var(--text-muted);
}
/* ===== END LIGHT THEME HOME STYLES ===== */

/* ===== LIGHT THEME: BOOKING PAGE STYLES ===== */
:root.light-theme .section-label {
    background: rgba(255, 250, 246, 0.4);
    border-bottom: 1px solid rgba(119, 99, 86, 0.1);
    padding: 15px 20px;
    margin: 0;
}

:root.light-theme .section-label h3 {
    color: var(--text-white);
    border-right-color: var(--primary-yellow);
}

:root.light-theme .section-label .text-warning {
    color: var(--primary-yellow);
}

:root.light-theme .container.px-3 {
   
}

:root.light-theme .time-slot {
    background: rgba(255, 250, 246, 0.85);
    border: 1px solid rgba(183, 120, 19, 0.18);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.08);
}

:root.light-theme .time-slot:hover:not(.disabled):not(.selected) {
    background: rgba(255, 253, 249, 0.95);
    border-color: rgba(183, 120, 19, 0.28);
}

:root.light-theme .time-slot.selected {
    background: linear-gradient(135deg, var(--primary-yellow), #d79a2b);
    color: #fffaf5;
    border: none;
    box-shadow: 0 6px 20px rgba(183, 120, 19, 0.28);
}

:root.light-theme .time-slot.disabled {
    background: rgba(200, 190, 180, 0.3);
    color: rgba(127, 107, 87, 0.5);
    border-color: rgba(119, 99, 86, 0.1);
}

:root.light-theme .date-card {
    background: rgba(255, 250, 246, 0.85);
    border: 1px solid rgba(183, 120, 19, 0.18);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.08);
}

:root.light-theme .date-card:hover {
    background: rgba(255, 253, 249, 0.95);
    border-color: rgba(183, 120, 19, 0.28);
}

:root.light-theme .date-card.active {
    background: linear-gradient(135deg, var(--primary-yellow), #d79a2b);
    color: #fffaf5;
    border: none;
    box-shadow: 0 6px 20px rgba(183, 120, 19, 0.28);
}

:root.light-theme .booking-card-glass {
    background: rgba(255, 253, 249, 0.9);
    border: 1px solid rgba(183, 120, 19, 0.2);
    box-shadow: 0 8px 28px rgba(104, 84, 67, 0.14);
}

:root.light-theme .price-badge {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
}

:root.light-theme .duration-badge {
    background: rgba(54, 86, 191, 0.12);
    color: #3656bf;
}
/* ===== END LIGHT THEME BOOKING STYLES ===== */

/* ===== LIGHT THEME: PROFILE PAGE STYLES ===== */
:root.light-theme .profile-header-new {
    background: rgba(255, 250, 246, 0.6);
    border-bottom: 1px solid rgba(119, 99, 86, 0.12);
}

:root.light-theme .profile-header-new .icon-box-glass {
    background: rgba(255, 250, 246, 0.8);
    border: 1px solid rgba(183, 120, 19, 0.18);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.1);
}

:root.light-theme .header-title-center {
    color: var(--text-muted);
}

:root.light-theme .profile-user-info {
    padding: 15px 0;
    background: var(--bg-primary);
}

:root.light-theme .avatar-ring {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 16px rgba(183, 120, 19, 0.3);
}

:root.light-theme .avatar-img-v2 {
    border-color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.14);
}

:root.light-theme .user-name-v2 {
    color: var(--text-white);
}

:root.light-theme .user-phone-row {
    color: var(--text-muted);
}

:root.light-theme .membership-badge {
    color: var(--primary-yellow);
}

:root.light-theme .wallet-card-v2 {
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(183, 120, 19, 0.18);
    box-shadow: 0 8px 28px rgba(104, 84, 67, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root.light-theme .add-btn-large {
    background: var(--primary-yellow);
    box-shadow: 0 8px 20px rgba(183, 120, 19, 0.28);
}

:root.light-theme .balance-label-v2 {
    color: var(--text-muted);
}

:root.light-theme .balance-amount-v2 {
    color: var(--text-white);
}

:root.light-theme .action-btn-v2 {
    background: rgba(255, 250, 246, 0.8);
    border: 1px solid rgba(119, 99, 86, 0.16);
    color: var(--text-white);
}

:root.light-theme .action-btn-v2:active {
    background: rgba(255, 250, 246, 0.95);
}

:root.light-theme .booking-section-title {
    background: rgba(255, 250, 246, 0.4);
    padding: 12px 25px;
    margin: 20px 0 12px 0;
}

:root.light-theme .title-text {
    color: var(--text-white);
}

:root.light-theme .title-icon {
    color: var(--primary-yellow);
}

:root.light-theme .booking-card-v2 {
    background: rgba(255, 250, 246, 0.9);
    border: 1px solid rgba(183, 120, 19, 0.18);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:root.light-theme .booking-card-v2::before {
    background: var(--primary-yellow);
    opacity: 0.9;
}

:root.light-theme .b-title-v2 {
    color: var(--text-white);
}

:root.light-theme .b-sub-v2 {
    color: var(--text-muted);
}

:root.light-theme .time-badge-v2 {
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid rgba(119, 99, 86, 0.16);
    color: var(--text-white);
}

:root.light-theme .status-badge-v2 {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
    border: 1px solid rgba(183, 120, 19, 0.2);
}

:root.light-theme .cancel-btn-v2 {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #b91c1c;
}

:root.light-theme .cancel-btn-v2:active {
    background: rgba(239, 68, 68, 0.2);
}

:root.light-theme .b-img-v2 {
    border: 1px solid rgba(119, 99, 86, 0.16);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.1);
}

:root.light-theme .img-icon-overlay {
    background: rgba(255, 250, 246, 0.9);
    border: 1px solid rgba(119, 99, 86, 0.16);
    color: var(--text-muted);
}

:root.light-theme .booking-item-card {
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(183, 120, 19, 0.18);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:root.light-theme .booking-item-card::before {
    background: var(--primary-yellow);
    opacity: 0.85;
}

:root.light-theme .b-service-title {
    color: var(--text-white);
}

:root.light-theme .b-barber-name {
    color: var(--text-muted);
}

:root.light-theme .b-meta-item {
    color: var(--text-muted);
}

:root.light-theme .b-meta-item i {
    color: var(--primary-yellow);
}

:root.light-theme .b-delete-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #b91c1c;
}

:root.light-theme .b-delete-btn:active {
    background: rgba(239, 68, 68, 0.2);
}
/* ===== END LIGHT THEME BOOKING ITEMS STYLES ===== */

/* ===== LIGHT THEME: TRANSACTIONS PAGE STYLES ===== */
:root.light-theme .transaction-card {
    margin-top: 15px;
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(119, 99, 86, 0.16);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:root.light-theme .transaction-card:hover {
    box-shadow: 0 6px 20px rgba(104, 84, 67, 0.16);
    border-color: rgba(183, 120, 19, 0.22);
}

:root.light-theme .trans-amount-section {
    background: rgba(245, 245, 245, 0.6);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(119, 99, 86, 0.1);
}

:root.light-theme .trans-amount {
    color: var(--text-white);
    font-weight: 400;
}

:root.light-theme .trans-amount.positive {
    color: #16a34a;
}

:root.light-theme .trans-amount.negative {
    color: #b91c1c;
}

:root.light-theme .trans-amount.refund {
    color: var(--text-muted);
}

:root.light-theme .trans-status-badge {
    background: rgba(183, 120, 19, 0.12);
    color: var(--primary-yellow);
    border: 1px solid rgba(183, 120, 19, 0.2);
}

:root.light-theme .trans-status-badge.status-success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.2);
}

:root.light-theme .trans-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

:root.light-theme .trans-info-section {
    text-align: right;
    padding: 0 15px;
}

:root.light-theme .trans-title {
    color: var(--text-white);
    font-weight: 700;
}

:root.light-theme .trans-datetime {
    color: var(--text-muted);
}

:root.light-theme .trans-action-btn {
    background: rgba(245, 245, 245, 0.7);
    border: 1px solid rgba(119, 99, 86, 0.16);
    color: var(--text-muted);
}

:root.light-theme .trans-action-btn:active {
    background: rgba(245, 245, 245, 0.9);
}

:root.light-theme .trans-action-btn.charge {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #15803d;
}

:root.light-theme .trans-action-btn.payment {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

:root.light-theme .trans-action-btn.refund {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(119, 99, 86, 0.2);
    color: var(--text-muted);
}
/* ===== END LIGHT THEME TRANSACTIONS STYLES ===== */

/* ===== LIGHT THEME: NAVBAR STYLING (merged into the canonical .light-theme .bottom-nav-container block above) ===== */

:root.light-theme .theme-toggle-btn {
    background: rgba(255, 250, 246, 0.8);
    border: 1px solid rgba(183, 120, 19, 0.2);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.1);
}

:root.light-theme .theme-toggle-btn .toggle-knob {
    background: linear-gradient(135deg, var(--primary-yellow), #d79a2b);
    box-shadow: 0 2px 6px rgba(183, 120, 19, 0.3);
}

:root.light-theme .theme-toggle-btn:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 12px rgba(183, 120, 19, 0.24);
}
/* ===== END LIGHT THEME NAVBAR STYLING ===== */

:root.light-theme .theme-soft-pill,
:root.light-theme .theme-status-chip,
:root.light-theme .theme-chip {
    border-color: rgba(119, 99, 86, 0.2);
}

:root.light-theme .theme-border-soft,
:root.light-theme .theme-border,
:root.light-theme .service-list-card::before,
:root.light-theme .confirm-card-header,
:root.light-theme .confirm-details-row,
:root.light-theme .gallery-shortcut-glass,
:root.light-theme .suggested-card,
:root.light-theme .flat-card,
:root.light-theme .stat-box {
    border-color: rgba(119, 99, 86, 0.16) !important;
}

.theme-surface {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.theme-surface-soft {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-white);
}

.theme-surface-muted {
    background: var(--bg-tertiary);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.theme-pill-soft,
.theme-chip,
.theme-status-chip {
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-white);
}

.theme-input,
.theme-text-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-white);
}

.theme-soft-row {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.theme-text-soft { color: var(--text-muted); }
.theme-text-strong { color: var(--text-white); }
.theme-border-soft { border-color: var(--border-color); }

.stepper-container {
    display: flex;
    gap: 8px;
    position: relative;
    left: auto;
    transform: none;
    order: 1;
}

.step-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(83, 72, 64, 0.28);
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.step-dot.active {
    background-color: var(--primary-yellow);
    transform: scale(1.2);
}

.confirm-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.confirm-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(119, 99, 86, 0.16);
}

.confirm-service-img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(119, 99, 86, 0.18);
}

.confirm-header-info {
    flex-grow: 1;
}

.confirm-service-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirm-service-price {
    color: var(--primary-yellow);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 5px;
}

.confirm-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(119, 99, 86, 0.12);
}

.confirm-details-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.confirm-status-badge {
    background-color: rgba(16, 185, 129, 0.16);
    color: #15803d;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.rules-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border-right: 4px solid var(--primary-yellow);
    box-shadow: var(--shadow-md);
}

.rules-title {
    color: var(--primary-yellow);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.rules-title i {
    font-size: 1.2rem;
    margin-left: 10px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.rules-list li {
    position: relative;
    padding-right: 15px;
    margin-bottom: 8px;
}

.rules-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-yellow);
    font-weight: bold;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.service-list-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    direction: rtl;
    box-shadow: var(--shadow-sm);
}

.service-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-list-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: var(--primary-yellow);
    border-radius: 4px 0 0 4px;
}

.sl-img-box {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.sl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(119, 99, 86, 0.12);
}

.sl-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.sl-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sl-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--text-muted);
}

.sl-action-box {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 70px;
}

.sl-bottom-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-status-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.sl-status-approved {
    background: rgba(16, 185, 129, 0.16);
    color: #15803d;
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.sl-status-pending {
    background: rgba(182, 120, 19, 0.16);
    color: var(--primary-yellow);
    border: 1px solid rgba(182, 120, 19, 0.24);
}

.sl-status-rejected {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.sl-arrow-icon {
    font-size: 1.2rem;
    color: rgba(119, 99, 86, 0.28);
}

.sl-delete-btn {
    width: 28px;
    height: 28px;
    background-color: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.24);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sl-delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.28);
    color: #fff;
    transform: scale(1.1);
}

.chart-card-shell {
    padding: 15px 0 20px 0;
    margin-bottom: 1rem;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 10px 20px;
    border-bottom: 1px solid rgba(119, 99, 86, 0.12);
    margin-bottom: 10px;
}

.chart-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Vazirmatn', sans-serif;
}

.chart-total {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-white);
    font-family: 'Vazirmatn', sans-serif;
}

.chart-total-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: normal;
}

.chart-viewport {
    width: 100%;
    height: 250px;
}

.chart-footnote-success {
    color: #15803d;
    font-size: 0.65rem;
}

/* ===================================================
   HOME PAGE STYLES (منتقل شده از inline style)
=================================================== */
@keyframes meshGradient {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.home-wrapper {
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px;
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* ===== APPOINTMENTS SECTION ===== */
.home-appointments-section {
    position: relative;
    margin: 2px;
    padding: 15px;
    z-index: 2;
}

.appointments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.appointments-accent-bar {
    width: 4px;
    height: 18px;
    background: #F59E0B;
    border-radius: 10px;
}

.appointments-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.appointments-empty {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

.appointments-empty p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.gallery-icon-box i {
    font-size: 1.4rem;
    color: #F59E0B;
}

.gallery-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.gallery-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    display: block;
}

.gallery-arrow {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bg-glow-static {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.glow-top { background: #F59E0B; top: -150px; left: -100px; }
.glow-bottom { background: #F0FFC3; bottom: 10%; right: -150px; }

.content-container { position: relative; z-index: 2; }

.simple-header { padding: 40px 20px 10px 20px; text-align: center; }
.brand-title-simple { font-size: 2.2rem; font-weight: 900; color: #fff; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.glass-element-wrapper { position: relative; margin: 25px 20px; }
.element-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(45px);
    z-index: -1;
    opacity: 0.6;
    animation: meshGradient 6s infinite ease-in-out;
}
.glow-primary { background: #FF6500; top: -10px; left: 10px; }
.glow-secondary { background: #111F35; bottom: -10px; right: 10px; animation-delay: -3s; }

.booking-card-glass {
    background: rgba(255, 255, 255, 0.4);  /* از 0.03 به 0.1 */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.40);  /* از 0.08 به 0.15 */
    border-radius: 32px;
    padding: 35px 25px;
    text-align: center;
}

.booking-card-glass h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.booking-card-glass p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 25px; }

.suggested-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.suggested-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.sa-barber-av { width: 35px; height: 35px; border-radius: 12px; border: 1px solid var(--primary-yellow); }
.sa-barber-nm { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.sa-serv-nm { font-size: 0.9rem; font-weight: 700; color: #fff; margin: 8px 0 2px 0; display: block; }
.sa-prc { font-size: 1.05rem; font-weight: 800; color: var(--primary-yellow); }

.sa-btm {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.04);
}
.sa-tm { color: #4ade80; font-weight: 700; font-size: 0.8rem; }
.sa-dt { color: rgba(255,255,255,0.4); font-size: 0.7rem; }

.gallery-wrapper { position: relative; margin: 20px 0; padding: 0 0px; }
.gallery-shortcut-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-shortcut-glass:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}


.gallery-shortcut-glass:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-shine {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 48px;
    color: #fff;
    background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
    background-position: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    animation-fill-mode: forwards;
    -webkit-text-size-adjust: none;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

@-moz-keyframes shine {
    0% { background-position: 0; }
    60% { background-position: 180px; }
    100% { background-position: 180px; }
}

@-webkit-keyframes shine {
    0% { background-position: 0; }
    60% { background-position: 180px; }
    100% { background-position: 180px; }
}

@keyframes shine {
    0% { background-position: 0; }
    100% { background-position: 180px; }
}

/* === BUTTON APPOINTMENT ANIMATION === */
.btn-book-appointment {
    position: relative;
    overflow: hidden;
}

.btn-book-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-loop 2s infinite;
    z-index: 1;
}

@keyframes shimmer-loop {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success Animation - Pop In/Out */
@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes popOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
}

/* Slide animations */
@keyframes slideInDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.btn-book-appointment:active {
    transform: scale(0.97);
}

/* === LIGHT THEME HOME PAGE ADJUSTMENTS === */
:root.light-theme .home-wrapper {
    background: linear-gradient(180deg, #f6f0ea 0%, #efefea 100%);
}

:root.light-theme .home-appointments-section {

}

:root.light-theme .appointments-header {
    border-bottom: 1px solid rgba(183, 120, 19, 0.12);
    padding-bottom: 15px;
}

:root.light-theme .appointments-accent-bar {
    background: linear-gradient(180deg, var(--primary-yellow), #d79a2b);
}

:root.light-theme .appointments-title {
    color: var(--text-white);
}

:root.light-theme .appointments-empty {
    background: rgba(255, 250, 246, 0.6);
    border: 1px solid rgba(183, 120, 19, 0.12);
    box-shadow: inset 0 2px 8px rgba(104, 84, 67, 0.05);
}

:root.light-theme .appointments-empty p {
    color: var(--text-muted);
}

:root.light-theme .gallery-icon-box {
    background: rgba(183, 120, 19, 0.14);
    border: 1px solid rgba(183, 120, 19, 0.22);
}

:root.light-theme .gallery-icon-box i {
    color: var(--primary-yellow);
}

:root.light-theme .gallery-title {
    color: var(--text-white);
}

:root.light-theme .gallery-subtitle {
    color: var(--text-muted);
}

:root.light-theme .gallery-arrow {
    color: rgba(183, 120, 19, 0.3);
}

:root.light-theme .booking-card-glass {
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(183, 120, 19, 0.18);
    box-shadow: 0 8px 28px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root.light-theme .booking-card-glass h3 {
    color: var(--text-white);
}

:root.light-theme .booking-card-glass p {
    color: var(--text-muted);
}

:root.light-theme .suggested-card {
    background: rgba(255, 250, 246, 0.88);
    border: 1px solid rgba(183, 120, 19, 0.16);
    box-shadow: 0 2px 12px rgba(104, 84, 67, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:root.light-theme .suggested-card:hover {
    background: rgba(255, 253, 249, 0.96);
    border-color: rgba(183, 120, 19, 0.24);
    box-shadow: 0 4px 18px rgba(104, 84, 67, 0.14);
}

:root.light-theme .sa-barber-nm {
    color: var(--text-muted);
}

:root.light-theme .sa-serv-nm {
    color: var(--text-white);
}

:root.light-theme .sa-tm {
    color: #16a34a;
}

:root.light-theme .sa-dt {
    color: var(--text-muted);
}

:root.light-theme .gallery-shortcut-glass {
    background: rgba(255, 250, 246, 0.88);
    border: 1px solid rgba(183, 120, 19, 0.16);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root.light-theme .gallery-shortcut-glass:hover {
    background: rgba(255, 253, 249, 0.96);
    border-color: rgba(183, 120, 19, 0.24);
    box-shadow: 0 6px 20px rgba(104, 84, 67, 0.16);
}

:root.light-theme .sa-prc {
    color: #c97316;
}

/* === PROFILE PAGE LIGHT THEME FIX === */
:root.light-theme .edit-badge-btn {
    background: rgba(255, 250, 246, 0.85);
    border: 1px solid rgba(183, 120, 19, 0.2);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(104, 84, 67, 0.1);
}

:root.light-theme .edit-badge-btn:hover {
    background: rgba(255, 253, 249, 0.95);
    border-color: rgba(183, 120, 19, 0.32);
}

/* === PROFILE HEADER FIXED === */
.profile-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: calc(70px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: 20px;
    padding-right: 20px;

    background: rgba(15, 18, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;

    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.profile-header-spacer {
    height: calc(50px + env(safe-area-inset-top));
    width: 100%;
}

:root.light-theme .profile-header-fixed {
    background: var(--bg-primary);
    border-bottom-color: rgba(119, 99, 86, 0.12);
    box-shadow: 0 4px 16px rgba(104, 84, 67, 0.1);
}

.chart-footnote-muted {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.theme-pill-soft {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-white);
}

.booking-card-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 35px 25px;
    text-align: center;
}

.booking-card-glass h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.booking-card-glass p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 25px;
}

.suggested-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    padding: 15px;
}

.suggested-card .sa-barber-nm {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.suggested-card .sa-serv-nm {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 2px 0;
    display: block;
}

.suggested-card .sa-prc {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-yellow);
}

.suggested-card .sa-btm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.suggested-card .sa-tm {
    color: #4ade80;
    font-weight: 700;
    font-size: 0.8rem;
}

.suggested-card .sa-dt {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
}

.brand-title-simple {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 40px);
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.logo-box {
    font-weight: 900;
    font-size: 1.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-box .login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.input-group-custom {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group-custom.focus,
.input-group-custom:focus-within {
    border-bottom-color: var(--primary-yellow);
    box-shadow: none;
}

.input-group-custom input {
    background: transparent !important;
    border: none;
    outline: none;
    color: var(--text-white) !important;
    font-size: 1.1rem;
    padding: 5px;
    flex-grow: 1;
    text-align: left;
    direction: ltr;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.input-group-custom input::placeholder {
    color: var(--text-muted);
}

.input-group-custom i {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-left: 10px;
}

/* Light Theme - input-group-custom */
:root.light-theme .input-group-custom {
    background-color: transparent;
    border-bottom-color: rgba(99, 81, 67, 0.3);
}

:root.light-theme .input-group-custom input {
    color: var(--text-dark) !important;
}

:root.light-theme .input-group-custom input::placeholder {
    color: rgba(111, 98, 88, 0.5);
}

.pin-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    direction: ltr;
}

.pin-input {
    width: 50px;
    height: 50px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-white);
    font-size: 1.5rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pin-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 4px rgba(182, 120, 19, 0.14);
}

.btn-submit-login {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    font-weight: 800;
    border: none;
    width: 100%;
    max-width: 350px;
    padding: 16px;
    border-radius: 18px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
    transition: transform 0.2s, opacity 0.2s;
}

.btn-submit-login-bale {
    background: linear-gradient(135deg, #00d1a8, #00b894);
    color: #1a1a1a;
    font-weight: 800;
    border: none;
    width: 100%;
    max-width: 350px;
    padding: 16px;
    border-radius: 18px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px #00d1a83b;
    transition: transform 0.2s, opacity 0.2s;
}


.btn-submit-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit-login-bale:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit-login-bale:active:not(:disabled) {
    transform: scale(0.96);
}

.btn-submit-login:active:not(:disabled) {
    transform: scale(0.96);
}

.message-box {
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    color: var(--text-white);
    display: none;
}

.message-box[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.message-box .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.message-box.error {
    background: rgba(191, 60, 49, 0.16);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.message-box.success {
    background: rgba(18, 135, 77, 0.16);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Light Theme - message-box */
:root.light-theme .message-box.error {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

:root.light-theme .message-box.success {
    background: rgba(22, 101, 52, 0.1);
    color: #166534;
}

.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.captcha-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.captcha-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s;
}

.captcha-modal.active .captcha-content {
    transform: translateY(0);
    opacity: 1;
}

.captcha-question {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
}

.captcha-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-white);
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    width: 100px;
    margin: 0 auto 20px;
    direction: ltr;
}

:root.light-theme .captcha-input {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.register-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 40px);
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.reg-logo-box {
    background: var(--primary-yellow);
    color: #fffaf5;
    font-weight: 900;
    font-size: 1.5rem;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 28px rgba(182, 120, 19, 0.28);
}

.reg-input-group {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reg-input-group:focus-within {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 4px rgba(182, 120, 19, 0.14);
}

.reg-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 1.1rem;
    padding: 5px;
    flex-grow: 1;
    text-align: right;
    direction: rtl;
}

.reg-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.reg-icon {
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-left: 10px;
}

.btn-reg-submit {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    font-weight: 800;
    border: none;
    width: 100%;
    max-width: 350px;
    padding: 16px;
    border-radius: 18px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-reg-submit:active {
    transform: scale(0.96);
}

.btn-reg-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.d-none-custom {
    display: none !important;
}

.text-light-custom {
    color: var(--text-muted);
}

/* Light Theme - text-warning (for mobile display) */
:root.light-theme .text-warning,
:root.light-theme #sent-mobile-display {
    color: var(--primary-orange) !important;
}

/* Light Theme - Registration Form */
:root.light-theme .reg-input-group {
    background-color: rgba(255, 255, 255, 0.9);
}

:root.light-theme .reg-input {
    color: var(--text-dark);
}

:root.light-theme .reg-input::placeholder {
    color: rgba(111, 98, 88, 0.5);
}

:root.light-theme .reg-icon {
    color: var(--text-muted);
}

/* Smooth transition for all elements */
* {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Fast transitions for interactive elements */
button, .btn-primary-custom, .flat-btn, .time-slot, .date-card, .service-item {
    transition: all 0.2s ease;
}

/* ===================================================
   MANUAL PAYMENT PAGE - DARK MODE STYLES
=================================================== */

/* --- Light & Dark Mode CSS Variables (Using Project Theme Colors) --- */
/* DARK MODE (Default) */
:root,
[data-theme="dark"] {
    --mp-bg:          var(--bg-primary);
    --mp-surface:     var(--bg-secondary);
    --mp-surface-2:   var(--bg-tertiary);
    --mp-border:      var(--border-color);
    --mp-text-1:      var(--text-white);
    --mp-text-2:      var(--text-muted);
    --mp-text-3:      var(--text-dark);
    --mp-accent:      var(--primary-yellow);
    --mp-accent-soft: rgba(251, 191, 36, 0.08);
    --mp-gold:        var(--primary-yellow);
    --mp-gold-soft:   rgba(251, 191, 36, 0.1);
    --mp-danger:      #e05a40;
    --mp-success:     #4caf7d;
    --mp-warn-bg:     rgba(251, 191, 36, 0.08);
    --mp-warn-border: rgba(251, 191, 36, 0.2);
    --mp-warn-text:   var(--primary-yellow);
    --mp-shadow-sm:   var(--shadow-sm);
    --mp-shadow-md:   var(--shadow-md);
    --mp-shadow-lg:   var(--shadow-lg);
    --mp-radius-sm:   10px;
    --mp-radius-md:   16px;
    --mp-radius-lg:   24px;
    --mp-font:        'Vazirmatn', sans-serif;
}

/* LIGHT MODE */
:root.light-theme {
    --mp-bg:          var(--bg-primary);
    --mp-surface:     var(--bg-secondary);
    --mp-surface-2:   var(--bg-tertiary);
    --mp-border:      var(--border-color);
    --mp-text-1:      var(--text-white);
    --mp-text-2:      var(--text-muted);
    --mp-text-3:      var(--text-dark);
    --mp-accent:      var(--primary-yellow);
    --mp-accent-soft: rgba(182, 120, 19, 0.08);
    --mp-gold:        var(--primary-yellow);
    --mp-gold-soft:   rgba(182, 120, 19, 0.1);
    --mp-danger:      #d4462a;
    --mp-success:     #2e7d52;
    --mp-warn-bg:     rgba(182, 120, 19, 0.08);
    --mp-warn-border: rgba(182, 120, 19, 0.2);
    --mp-warn-text:   var(--primary-yellow);
    --mp-shadow-sm:   var(--shadow-sm);
    --mp-shadow-md:   var(--shadow-md);
    --mp-shadow-lg:   var(--shadow-lg);
}

/* --- Page Shell --- */
.mp-page {
    font-family: var(--mp-font);
    background: var(--mp-bg);
    min-height: 100vh;
    padding: 0 0 80px 0;
    direction: rtl;
    color: var(--mp-text-1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Header --- */
.mp-header {
    position: relative;
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: right;
    align-items: center;
    min-height: 60px;

}

.mp-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-text-1);
    letter-spacing: -0.01em;
    margin: 0;
    transition: color 0.3s ease;
}

.mp-back-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--mp-surface-2);
    border-radius: var(--mp-radius-sm);
    color: var(--mp-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
}

.mp-back-btn:hover {
    background: var(--mp-border);
    color: var(--mp-text-1);
}

.mp-back-btn:active {
    transform: scale(0.95);
}

/* --- Content --- */
.mp-content {
    padding: 24px 16px 0;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Hero Amount --- */
.mp-hero {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 32px 24px 28px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: var(--mp-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mp-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--mp-gold-soft) 0%, transparent 70%);
    pointer-events: none;
}

.mp-hero-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--mp-text-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.mp-hero-amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--mp-text-1);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.3s ease;
}

.mp-hero-currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mp-text-2);
    margin-top: 6px;
    transition: color 0.3s ease;
}

.mp-hero-divider {
    width: 32px;
    height: 2px;
    background: var(--mp-gold);
    border-radius: 2px;
    margin: 16px auto 0;
    opacity: 0.6;
    transition: background 0.3s ease, opacity 0.3s ease;
}

/* --- Section Label --- */
.mp-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mp-text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 20px 0 8px;
    padding: 0 2px;
    transition: color 0.3s ease;
}

/* --- Card Box --- */
.mp-card-box {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-md);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--mp-shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.mp-card-icon {
    width: 34px;
    height: 34px;
    background: var(--mp-accent-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--mp-accent);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.mp-card-meta-info {
    flex: 1;
}

.mp-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mp-text-1);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.mp-card-subtitle {
    font-size: 0.72rem;
    color: var(--mp-text-3);
    margin: 2px 0 0;
    transition: color 0.3s ease;
}

.mp-card-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--mp-surface-2);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    padding: 12px 14px;
    gap: 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mp-card-number {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mp-text-1);
    letter-spacing: 3px;
    direction: ltr;
    flex: 1;
    text-align: center;
    transition: color 0.3s ease;
}

.mp-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mp-gold);
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-copy-btn:hover {
    background: var(--mp-gold-soft);
}

.mp-copy-btn:active {
    transform: scale(0.95);
}

.mp-copy-btn span {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--mp-font);
}

/* --- Steps / Instructions --- */
.mp-steps {
    background: var(--mp-warn-bg);
    border: 1px solid var(--mp-warn-border);
    border-radius: var(--mp-radius-md);
    padding: 18px 18px 16px;
    margin-bottom: 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mp-steps-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mp-warn-text);
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.mp-steps-title i {
    font-size: 0.95rem;
}

.mp-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--mp-warn-text);
    line-height: 1.5;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.mp-step-num {
    width: 20px;
    height: 20px;
    background: var(--mp-warn-border);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--mp-warn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* --- Upload Section --- */
.mp-upload-area {
    background: var(--mp-surface);
    border: 1.5px dashed var(--mp-border);
    border-radius: var(--mp-radius-md);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 16px;
    position: relative;
}

.mp-upload-area:hover {
    border-color: var(--mp-gold);
    background: var(--mp-gold-soft);
}

.mp-upload-area.has-file {
    border-style: solid;
    border-color: var(--mp-success);
    background: rgba(46, 125, 82, 0.04);
}

.mp-upload-icon {
    width: 48px;
    height: 48px;
    background: var(--mp-surface-2);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--mp-text-2);
    margin-bottom: 12px;
    transition: background 0.2s, color 0.2s;
}

.mp-upload-area:hover .mp-upload-icon {
    background: var(--mp-gold-soft);
    color: var(--mp-gold);
}

.mp-upload-area.has-file .mp-upload-icon {
    background: rgba(46, 125, 82, 0.1);
    color: var(--mp-success);
}

.mp-upload-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mp-text-1);
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.mp-upload-sub {
    font-size: 0.78rem;
    color: var(--mp-text-3);
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.mp-upload-file-name {
    display: none;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mp-success);
    background: rgba(46, 125, 82, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

.mp-upload-file-name.visible {
    display: block;
}

#receipt-file {
    display: none;
}

/* --- Submit Button --- */
.mp-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: var(--mp-accent);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius-md);
    font-family: var(--mp-font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s, background 0.3s ease;
    box-shadow: var(--mp-shadow-md);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.mp-submit-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: var(--mp-shadow-lg);
}

.mp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mp-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

[data-theme="dark"] .mp-submit-btn {
    background: var(--mp-gold);
    color: #1a1814;
}

[data-theme="dark"] .mp-submit-btn:hover:not(:disabled) {
    background: #d4b896;
}

/* --- Spinner --- */
.mp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mp-spin 0.7s linear infinite;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

[data-theme="dark"] .mp-spinner {
    border-color: rgba(26,24,20,0.3);
    border-top-color: #1a1814;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

/* --- Fade-in animation --- */
.mp-fade-up {
    animation: mp-fadeUp 0.4s ease both;
}

@keyframes mp-fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mp-fade-up:nth-child(1) { animation-delay: 0.05s; }
.mp-fade-up:nth-child(2) { animation-delay: 0.10s; }
.mp-fade-up:nth-child(3) { animation-delay: 0.15s; }
.mp-fade-up:nth-child(4) { animation-delay: 0.20s; }
.mp-fade-up:nth-child(5) { animation-delay: 0.25s; }
.mp-fade-up:nth-child(6) { animation-delay: 0.30s; }

/* --- Success Overlay --- */
.mp-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mp-bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mp-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mp-success-container {
    text-align: center;
    padding: 40px 20px;
    animation: mp-successPulse 0.5s ease both;
}

.mp-success-icon-wrapper {
    margin-bottom: 24px;
    animation: mp-scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.mp-success-icon {
    width: 80px;
    height: 80px;
    background: var(--mp-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--mp-surface);
    animation: mp-checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

.close-btn .ri-close-line {
    color: #fff;
}

:root.light-theme .close-btn .ri-close-line {
    color: #000;
}

.mp-success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mp-text-1);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.mp-success-message {
    font-size: 0.95rem;
    color: var(--mp-text-2);
    margin: 0;
    animation: mp-pulse 1.5s ease-in-out infinite;
}

@keyframes mp-successPulse {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mp-scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mp-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mp-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* --- Light Theme Overrides --- */
:root.light-theme .mp-submit-btn {
    background: var(--mp-accent);
    color: #fff;
}

:root.light-theme .mp-submit-btn:hover:not(:disabled) {
    background: #403a35;
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .mp-content {
        padding: 16px 12px 0;
    }

    .mp-hero {
        padding: 24px 16px 20px;
    }

    .mp-hero-amount {
        font-size: 2.2rem;
    }

    .mp-header {
        padding: 14px 16px 10px;
    }

    .mp-submit-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

/* ========================================================
   Day Slots Overview Card (نمایش نوبت‌های پر و خالی امروز)
======================================================== */

.day-slots-overview-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slots-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.3px;
}

.slots-title i {
    color: var(--primary-yellow);
    font-size: 1rem;
}

.slots-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

/* شبکه اسلات‌ها */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.slots-grid::-webkit-scrollbar {
    width: 4px;
}

.slots-grid::-webkit-scrollbar-track {
    background: transparent;
}

.slots-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.slots-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.shift-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    margin: 0.2rem 0;
}

/* هر سلول اسلات */
.slot-cell {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slot-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.slot-cell.available {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.slot-cell.available:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
    transform: scale(1.05);
}

.slot-cell.occupied {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    cursor: not-allowed;
}

.slot-cell.occupied:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.slot-cell.past {
    background: rgba(128, 128, 128, 0.1);
    color: rgba(148, 163, 184, 0.6);
    border-color: rgba(128, 128, 128, 0.2);
    cursor: not-allowed;
    opacity: 0.7;
}

.slot-time {
    font-family: 'Arad', 'Vazirmatn', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.slots-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.slots-empty-state i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.slots-empty-state p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* لجند اسلات‌ها */
.slots-legend {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.available {
    background: #22c55e;
}

.legend-dot.occupied {
    background: #ef4444;
}

.legend-dot.past {
    background: rgba(148, 163, 184, 0.5);
}

/* ====== تم لایت ====== */
:root.light-theme .day-slots-overview-card {
    background-color: rgba(255, 253, 249, 0.9);
    border-color: rgba(99, 81, 67, 0.1);
}

:root.light-theme .slots-header {
    border-bottom-color: rgba(99, 81, 67, 0.08);
}

:root.light-theme .slots-title {
    color: #2f241f;
}

:root.light-theme .slots-count {
    background-color: rgba(99, 81, 67, 0.05);
    color: #6f6258;
}

:root.light-theme .slots-grid {
    scrollbar-color: rgba(99, 81, 67, 0.1) transparent;
}

:root.light-theme .slot-cell.available {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.35);
}

:root.light-theme .slot-cell.available:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.18));
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

:root.light-theme .slot-cell.occupied {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.35);
}

:root.light-theme .slot-cell.past {
    background: rgba(156, 163, 175, 0.12);
    color: rgba(107, 114, 128, 0.65);
    border-color: rgba(156, 163, 175, 0.25);
    opacity: 0.8;
}

:root.light-theme .slots-empty-state {
    color: #6f6258;
}

:root.light-theme .slots-empty-state i {
    color: rgba(99, 81, 67, 0.08);
}

:root.light-theme .slots-legend {
    background-color: rgba(99, 81, 67, 0.02);
}

:root.light-theme .legend-item {
    color: #6f6258;
}