:root {
  /* Brand */
  --primary: #8B5E3C;
  --secondary: #C46A2B;

  /* Background */
  --bg-main: #F7F3EE;
  --bg-card: #FFFFFF;
  --bg-muted: #EFE8DE;

  /* Text */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-inverse: #FFFFFF;

  /* States */
  --success: #6B8E23;
  --error: #B0413E;
  --warning: #E6A23C;
  --info: #5C7AEA;

  /* UI */
  --border-color: #DDD3C7;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: all 0.35s ease;

  /* Toast & Notification (Coffee / Nescafe Theme | تم قهوه نسکافه‌ای) */
  --toast-bg-start: #4A2E1B;
  --toast-bg-end: #2E180D;
  --toast-text: #FFF8F0;
  --toast-border: rgba(196, 106, 43, 0.5);
  --toast-shadow: 0 10px 28px rgba(36, 18, 10, 0.42), 0 0 18px rgba(196, 106, 43, 0.22);

  /* Toast Semantic Colors */
  --toast-error-bg-start: #7F1D1D;
  --toast-error-bg-end: #991B1B;
  --toast-error-border: rgba(239, 68, 68, 0.55);
  --toast-error-shadow: 0 12px 32px rgba(153, 27, 27, 0.45);

  --toast-warning-bg-start: #78350F;
  --toast-warning-bg-end: #92400E;
  --toast-warning-border: rgba(245, 158, 11, 0.55);
  --toast-warning-shadow: 0 12px 32px rgba(146, 64, 14, 0.45);

  --toast-success-bg-start: #064E3B;
  --toast-success-bg-end: #065F46;
  --toast-success-border: rgba(16, 185, 129, 0.55);
  --toast-success-shadow: 0 12px 32px rgba(6, 95, 70, 0.45);
}

/* ☕ تم سراسری و کاملاً ریپانسیو نوتیفیکیشن‌ها و پاپ‌آپ‌های بقچه */
.toast:empty,
.explore-toast:empty,
.toast-notification:empty,
.boghcheh-toast:empty,
.booths-toast:empty,
.dashboard-toast:empty,
.toast-slr:empty {
  display: none !important;
}

.toast,
.explore-toast,
.toast-notification,
.boghcheh-toast,
.booths-toast,
.dashboard-toast,
.toast-slr {
  max-width: min(92vw, 440px) !important;
  width: max-content !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.6 !important;
  text-align: right !important;
  direction: rtl !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  padding: 12px 20px !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 1000000 !important;
  font-family: inherit !important;
  box-shadow: var(--toast-shadow, 0 10px 28px rgba(36, 18, 10, 0.42)) !important;
  background: linear-gradient(135deg, var(--toast-bg-start, #4A2E1B) 0%, var(--toast-bg-end, #2E180D) 100%) !important;
  color: var(--toast-text, #FFF8F0) !important;
  border: 1px solid var(--toast-border, rgba(196, 106, 43, 0.5)) !important;
}

/* حالت اعلان خطا (قرمز با کنتراست بالا و شفاف) */
.toast.toast--error,
.toast.is-error,
.toast[data-type="error"],
.explore-toast.toast--error,
.toast-notification.toast--error,
.boghcheh-toast.toast--error,
.toast-slr.is-error,
.toast-slr.toast--error {
  background: linear-gradient(135deg, var(--toast-error-bg-start, #7F1D1D) 0%, var(--toast-error-bg-end, #991B1B) 100%) !important;
  border-color: var(--toast-error-border, rgba(239, 68, 68, 0.55)) !important;
  box-shadow: var(--toast-error-shadow, 0 12px 32px rgba(153, 27, 27, 0.45)) !important;
  color: #FFFFFF !important;
}

/* حالت اعلان هشدار (کهربایی گرم) */
.toast.toast--warning,
.toast.is-warning,
.toast[data-type="warning"],
.explore-toast.toast--warning,
.toast-notification.toast--warning,
.boghcheh-toast.toast--warning {
  background: linear-gradient(135deg, var(--toast-warning-bg-start, #78350F) 0%, var(--toast-warning-bg-end, #92400E) 100%) !important;
  border-color: var(--toast-warning-border, rgba(245, 158, 11, 0.55)) !important;
  box-shadow: var(--toast-warning-shadow, 0 12px 32px rgba(146, 64, 14, 0.45)) !important;
  color: #FFFFFF !important;
}

/* حالت اعلان موفقیت (سبز زمردی) */
.toast.toast--success,
.toast.is-success,
.toast[data-type="success"],
.explore-toast.toast--success,
.toast-notification.toast--success,
.boghcheh-toast.toast--success,
.toast-slr.is-success,
.toast-slr.toast--success {
  background: linear-gradient(135deg, var(--toast-success-bg-start, #064E3B) 0%, var(--toast-success-bg-end, #065F46) 100%) !important;
  border-color: var(--toast-success-border, rgba(16, 185, 129, 0.55)) !important;
  box-shadow: var(--toast-success-shadow, 0 12px 32px rgba(6, 95, 70, 0.45)) !important;
  color: #FFFFFF !important;
}

.toast span,
.explore-toast span,
.toast-notification span,
.boghcheh-toast span,
.booths-toast span,
.dashboard-toast span,
.toast-slr span {
  color: inherit !important;
  line-height: 1.55 !important;
}

/* بهینه‌سازی ریپانسیو اعلان‌ها در موبایل با دکمه‌ها و منوی شناور پایین صفحه */
@media (max-width: 768px) {
  .toast,
  .explore-toast,
  .toast-notification,
  .boghcheh-toast,
  .booths-toast,
  .dashboard-toast,
  .toast-slr {
    max-width: calc(100vw - 32px) !important;
    left: 16px !important;
    right: 16px !important;
    transform: none !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    padding: 11px 16px !important;
  }
}
