/* ═══════════════════════════════════════════════════════════
   المنزلة وناسها — Main CSS Entry Point
   Imports all modules in correct order
   ═══════════════════════════════════════════════════════════ */

/* 1. Base */
@import url('./base/variables.css');
@import url('./base/reset.css');
@import url('./base/typography.css');

/* 2. Components */
@import url('./components/buttons.css');
@import url('./components/cards.css');
@import url('./components/badges.css');
@import url('./components/forms.css');
@import url('./components/modals.css');
@import url('./components/skeleton.css');
@import url('./components/navigation.css');

/* 3. Pages */
@import url('./pages/home.css');
@import url('./pages/place.css');
@import url('./pages/dashboard.css');

/* ── Global Layout Padding for Fixed Header & Bottom Nav ── */
.page-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: block;
}

@media (max-width: 767px) {
  .page-main {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* ── Additional Utilities ── */

/* Responsive images with lazy load */
img.lazy {
  opacity: 0;
  transition: opacity var(--transition-base);
}
img.lazy.loaded { opacity: 1; }
img.lazy.error {
  opacity: 0.3;
  filter: grayscale(1);
}

/* Search page */
.search-page-header {
  background: var(--primary);
  padding: var(--space-8) 0;
  color: #fff;
}

.search-results-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Category page header */
.category-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
}

.category-page-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

/* Error / 404 page */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.error-page__content {
  text-align: center;
  max-width: 460px;
}

.error-page__code {
  font-size: 5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.error-page__text {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* Login page */
.login-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-card__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-5);
}

.login-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.login-card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-loose);
}

.login-card__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.login-card__divider::before,
.login-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Verification request modal */
.verification-modal__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.verification-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.verification-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.verification-step__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.verification-step__text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover { color: var(--primary); }

.breadcrumb__separator {
  color: var(--border-strong);
  font-size: 0.7rem;
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

/* Print styles */
@media print {
  .header, .bottom-nav, .pwa-banner, .toast-container { display: none !important; }
  .page-wrapper { padding-top: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Smart Voice Search (البحث الصوتي الذكي) Styling
   ═══════════════════════════════════════════════════════════ */
.btn-voice-search {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

[dir="rtl"] .btn-voice-search {
  left: auto;
  left: 62px;
}

.hero-search .btn-voice-search {
  left: 65px;
}

.btn-voice-search:hover {
  background: var(--primary-alpha);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.btn-voice-search.listening {
  background: #EF4444 !important;
  color: #fff !important;
  border-color: #DC2626 !important;
  animation: pulseVoice 1.2s infinite ease-in-out;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.25);
}

@keyframes pulseVoice {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.voice-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #EF4444;
  animation: voiceRipple 1.4s infinite ease-out;
}

@keyframes voiceRipple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 767px) {
  .btn-voice-search {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    left: 54px !important;
  }
}

/* ========================================================
   Professional APK Download Button in Footer
   ======================================================== */
.apk-pro-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1B4F72 0%, #0D7A5F 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(13, 122, 95, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  max-width: 270px;
  width: 100%;
}

.apk-pro-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-25deg);
  transition: 0.65s;
}

.apk-pro-download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(13, 122, 95, 0.38), 0 4px 10px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.apk-pro-download-btn:hover::before {
  left: 150%;
}

.apk-pro-download-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(13, 122, 95, 0.3);
}

.apk-btn-icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #10B981;
  transition: transform 0.25s;
}

.apk-pro-download-btn:hover .apk-btn-icon-box {
  transform: scale(1.1) rotate(6deg);
  color: #fff;
  background: rgba(16, 185, 129, 0.4);
}

.apk-btn-text-box {
  display: flex;
  flex-direction: column;
  text-align: right;
  flex: 1;
}

.apk-btn-sub {
  font-size: 10px;
  opacity: 0.85;
  color: #E2E8F0;
  font-weight: 500;
  line-height: 1.2;
}

.apk-btn-main {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.apk-btn-arrow-box {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  transition: all 0.25s;
}

.apk-pro-download-btn:hover .apk-btn-arrow-box {
  background: #F5A623;
  color: #04121a;
  transform: translateY(2px);
}

.apk-pro-download-btn:hover .download-arrow-icon {
  animation: bounceArrow 0.6s infinite alternate;
}

@keyframes bounceArrow {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

@media all and (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  #footer-apk-container, .footer__apk-download, .apk-pro-download-btn, .apk-download-btn-link {
    display: none !important;
  }
}

/* ========================================================
   Theme Toggle Switcher (Dark / Light Mode)
   ======================================================== */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.theme-toggle-btn:hover {
  background: var(--surface-3);
  transform: scale(1.08) rotate(15deg);
  border-color: var(--secondary);
}
.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Icons visibility depending on theme */
[data-theme="dark"] .theme-icon-dark,
body.dark-theme .theme-icon-dark {
  display: inline-block;
}
[data-theme="dark"] .theme-icon-light,
body.dark-theme .theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark,
body.light-theme .theme-icon-dark,
:root:not([data-theme="dark"]) .theme-icon-dark {
  display: none;
}
[data-theme="light"] .theme-icon-light,
body.light-theme .theme-icon-light,
:root:not([data-theme="dark"]) .theme-icon-light {
  display: inline-block;
}

/* Smooth background transition across entire app */
body, .header, .footer, .place-card, .category-card, .filter-bar, .form-input, .form-select, .dashboard-card, .modal {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

/* Dark mode specific adjustments */
[data-theme="dark"] body {
  background-color: var(--surface);
  color: var(--text-primary);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .place-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .filter-bar,
[data-theme="dark"] .modal,
[data-theme="dark"] .modal-box {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .footer {
  background: #090D16 !important;
  border-top-color: var(--border) !important;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-top-color: var(--border) !important;
}

/* ========================================================
   M Voice Assistant Floating Action Button (FAB)
   ======================================================== */
.bottom-nav__voice-assistant-fab {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1B4F72 0%, #0284C7 50%, #10B981 100%) !important;
  color: #FFFFFF !important;
  border: 3px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  outline: none !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s !important;
  z-index: 10;
}

.bottom-nav__voice-assistant-fab:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(0,0,0,0.3) !important;
}

.bottom-nav__voice-assistant-fab:active {
  transform: translateY(0) scale(0.94) !important;
}

.fab-letter-m {
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.5px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.fab-mic-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #F5A623;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  z-index: 3;
  animation: bounceMicro 2s infinite ease-in-out;
}

@keyframes bounceMicro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.fab-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(2, 132, 199, 0.6);
  animation: fabPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
  pointer-events: none;
}
.fab-pulse-ring.ring-2 {
  animation-delay: 1.2s;
  border-color: rgba(16, 185, 129, 0.5);
}

@keyframes fabPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ========================================================
   Manzala Voice Assistant Modal (BottomSheet / Modal)
   ======================================================== */
.manzala-voice-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 640px) {
  .manzala-voice-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.manzala-voice-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.manzala-voice-modal-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  width: 100%;
  max-width: 520px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

@media (min-width: 640px) {
  .manzala-voice-modal-card {
    border-radius: 24px;
    transform: scale(0.9);
  }
}

.manzala-voice-modal-backdrop.visible .manzala-voice-modal-card {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .manzala-voice-modal-backdrop.visible .manzala-voice-modal-card {
    transform: scale(1);
  }
}

[data-theme="dark"] .manzala-voice-modal-card {
  background: #0F172A;
  border-color: #334155;
}

/* Modal Header */
.mvm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #E2E8F0);
}
.mvm-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mvm-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1B4F72, #10B981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.mvm-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}
.mvm-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.mvm-close-btn {
  background: var(--surface-2, #F1F5F9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.mvm-close-btn:hover {
  background: var(--surface-3, #E2E8F0);
  transform: scale(1.08);
}

/* Center Stage Orb */
.mvm-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
  text-align: center;
}
.mvm-orb-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 16px;
}
.mvm-orb-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B4F72 0%, #0284C7 50%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.45), 0 0 20px rgba(16, 185, 129, 0.35);
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mvm-orb-wrapper:hover .mvm-orb-core {
  transform: scale(1.06);
}
.mvm-orb-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.mvm-orb-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(2, 132, 199, 0.6);
  z-index: 1;
  pointer-events: none;
}
.mvm-orb-wrapper.listening .mvm-orb-pulse.pulse-1 {
  animation: orbPulse 1.8s infinite ease-out;
}
.mvm-orb-wrapper.listening .mvm-orb-pulse.pulse-2 {
  animation: orbPulse 1.8s infinite ease-out 0.9s;
  border-color: rgba(16, 185, 129, 0.6);
}

@keyframes orbPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Waveform bars */
.mvm-waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin-bottom: 12px;
}
.wave-bar {
  width: 4px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 4px;
  transition: height 0.2s, background-color 0.2s;
}
.mvm-waveform.active .wave-bar {
  background: linear-gradient(to top, #10B981, #0284C7);
  animation: waveDance 0.8s ease-in-out infinite alternate;
}
.mvm-waveform.active .wb-1 { animation-delay: 0.1s; }
.mvm-waveform.active .wb-2 { animation-delay: 0.3s; }
.mvm-waveform.active .wb-3 { animation-delay: 0.5s; }
.mvm-waveform.active .wb-4 { animation-delay: 0.2s; }
.mvm-waveform.active .wb-5 { animation-delay: 0.4s; }
.mvm-waveform.active .wb-6 { animation-delay: 0.6s; }
.mvm-waveform.active .wb-7 { animation-delay: 0.15s; }

@keyframes waveDance {
  0% { height: 6px; }
  100% { height: 26px; }
}

.mvm-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.mvm-transcript-box {
  background: var(--surface-2, #F8FAFC);
  border: 1px dashed var(--border, #CBD5E1);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  max-width: 420px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvm-transcript-placeholder {
  color: var(--text-muted);
  font-size: 12px;
}
.mvm-live-interim {
  color: var(--secondary, #F5A623);
  font-weight: 700;
}
.mvm-final-query {
  color: #10B981;
  font-weight: 800;
}


/* ═════════════════════════════════════════════════════════════════════
   VOICE ASSISTANT MODAL & CHIPS STYLING (PERFECT MOBILE RESPONSIVE)
   ═════════════════════════════════════════════════════════════════════ */

.mvm-quick-chips {
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--border, #E2E8F0);
  background: var(--surface-2, #F8FAFC);
}

.mvm-chips-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted, #64748B);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mvm-chips-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px 8px 2px !important;
  scrollbar-width: none !important;
}

.mvm-chips-scroll::-webkit-scrollbar {
  display: none !important;
}

.mvm-chip {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  padding: 7px 14px !important;
  border-radius: 9999px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0F2B48 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mvm-chip:hover, .mvm-chip:active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 4px 12px rgba(2,132,199,0.3) !important;
}


.mvm-results-container {
  padding: 14px 16px;
  overflow-y: auto;
  max-height: 240px;
}
.mvm-results-header {
  margin-bottom: 10px;
}
.mvm-results-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.mvm-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mvm-place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.mvm-place-row:hover {
  background: var(--surface-3, #EEF2F7);
  transform: translateX(-3px);
  border-color: var(--secondary);
}
.mvm-place-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.mvm-place-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mvm-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1B4F72, #2980B9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.mvm-place-info {
  flex: 1;
  min-width: 0;
}
.mvm-place-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mvm-place-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   Live Owner Online Indicator (متصل الآن بالأخضر النبضي)
   ═══════════════════════════════════════════════════════════ */
.badge-online-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full, 9999px);
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.15);
  animation: onlineFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  vertical-align: middle;
}

[data-theme="dark"] .badge-online-pulse {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.online-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.online-indicator-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.55);
  animation: onlinePulseWave 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes onlinePulseWave {
  0% { transform: scale(0.8); opacity: 0.95; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes onlineFadeIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   Premium GPS Directions Button (الوصول للمكان عبر الخرائط)
   ═══════════════════════════════════════════════════════════ */
.btn-directions-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.btn-directions-gps:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(41, 128, 185, 0.4);
  background: linear-gradient(135deg, #154360 0%, #1F618D 100%);
  color: #ffffff !important;
}

.btn-directions-gps:active {
  transform: scale(0.97);
}

.btn-directions-gps .gps-icon {
  font-size: 14px;
  display: inline-block;
  animation: gpsPulse 2.5s ease-in-out infinite;
}

.btn-directions-gps .gps-arrow {
  font-size: 11px;
  opacity: 0.85;
}

@keyframes gpsPulse {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg); }
  60% { transform: rotate(14deg); }
}





/* ═══════════════════════════════════════════════════════════
   ATM Live Status Badges & Glow Pulse Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes atmPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75), 0 2px 10px rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 4px 18px rgba(16, 185, 129, 0.7);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 2px 10px rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
}

@keyframes atmPulseBlue {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.75), 0 2px 10px rgba(37, 99, 235, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0), 0 4px 18px rgba(37, 99, 235, 0.7);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 2px 10px rgba(37, 99, 235, 0.4);
    transform: scale(1);
  }
}

@keyframes atmGlowWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.atm-badge-cash-available {
  background: linear-gradient(135deg, #10B981 0%, #059669 40%, #34D399 100%) !important;
  background-size: 200% 200% !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  animation: atmPulseGreen 2s infinite ease-in-out, atmGlowWave 3s ease infinite !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
}

.atm-badge-machine-working {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 40%, #60A5FA 100%) !important;
  background-size: 200% 200% !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  animation: atmPulseBlue 2.2s infinite ease-in-out, atmGlowWave 3s ease infinite !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
}

.atm-badge-card-cash {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%) !important;
  color: #065F46 !important;
  border: 1.5px solid #34D399 !important;
  font-weight: 800 !important;
  animation: atmPulseGreen 2.5s infinite ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.atm-badge-card-working {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%) !important;
  color: #1E40AF !important;
  border: 1.5px solid #60A5FA !important;
  font-weight: 800 !important;
  animation: atmPulseBlue 2.5s infinite ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}


/* Global Mobile Overflow Fix */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Hide public bottom-nav when inside Admin page to prevent stacked bottom bars */
body:has(#admin-mobile-bottom-nav) .bottom-nav,
body:has(.admin-layout) .bottom-nav {
  display: none !important;
}


/* ═════════════════════════════════════════════════════════════════════
   UNIVERSAL ULTRA-RESPONSIVE ADAPTIVE SYSTEM (ALL SCREENS & DEVICES)
   ═════════════════════════════════════════════════════════════════════ */

/* 1. Global Viewport & Container Zero-Gutter Optimization */
html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  width: 100% !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
  padding-left: max(14px, env(safe-area-inset-left)) !important;
  padding-right: max(14px, env(safe-area-inset-right)) !important;
}

/* 2. Fluid Adaptive Grids for All Device Widths */
.places-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 95px), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.offers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
  }

  .places-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 8px !important;
  }

  .place-header-card {
    margin: 0 !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: 14px 12px !important;
  }

  .place-title {
    font-size: 1.15rem !important;
  }

  .place-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .place-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .dashboard-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .dashboard-sidebar {
    display: none !important;
  }

  .dashboard-content {
    width: 100% !important;
    padding: 10px !important;
  }
}

/* 4. Medium Screens / Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .places-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 12px !important;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    gap: 10px !important;
  }
}

/* 5. Safe Element Overflow & Text Truncation Guards */
* {
  min-width: 0;
}

img, video, iframe, canvas, svg {
  max-width: 100% !important;
  height: auto;
}

.place-card, .category-card, .offer-card, .product-card, .stat-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure all flex rows wrap smoothly instead of spilling horizontally */
.badge-row, .meta-row, .tags-wrapper, .filter-chips, .place-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  max-width: 100% !important;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 1rem !important;
}


/* ═════════════════════════════════════════════════════════════════════
   DISTINGUISHED LIVE PULSE (يحدث الآن) ULTRA ANIMATIONS & LUXURY STYLING
   ═════════════════════════════════════════════════════════════════════ */

/* Live Radar Pulse Dot */
.live-radar-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}
.live-radar-dot {
  width: 9px;
  height: 9px;
  background: #EF4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #EF4444;
  position: relative;
  z-index: 2;
}
.live-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #EF4444;
  animation: radarWave 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.8;
}
.live-radar-ring.ring-2 {
  animation-delay: 0.6s;
}

@keyframes radarWave {
  0% { width: 10px; height: 10px; opacity: 0.9; }
  100% { width: 28px; height: 28px; opacity: 0; }
}

/* Shimmer Button Sweep */
.btn-shimmer-live {
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 50%, #0284C7 100%) !important;
  background-size: 200% auto !important;
  animation: liveShimmer 3.5s linear infinite !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
  border: none !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-shimmer-live:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5) !important;
}

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

/* Card Entrance Stagger Animation */
.live-card-stagger {
  opacity: 0;
  animation: liveCardIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes liveCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Live News Card Luxury Glass Style */
.live-news-card-luxury {
  background: var(--surface, #FFFFFF);
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.live-news-card-luxury:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 14px 35px rgba(15, 43, 72, 0.1);
}

.live-news-card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #F5A623, #EF4444, #0284C7);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.live-news-card-luxury:hover::before {
  opacity: 1;
}

/* Reaction Button Interactive Pop */
.btn-reaction-pop {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease !important;
}
.btn-reaction-pop:active {
  transform: scale(1.22) !important;
}


/* ═════════════════════════════════════════════════════════════════════
   PULSING JOB BADGES & DISTINCTIVE HIGHLIGHTS (وظائف شاغرة وباحث عن عمل)
   ═════════════════════════════════════════════════════════════════════ */
.badge-job-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #059669, #10B981) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
  animation: jobBadgePulse 1.8s ease-in-out infinite !important;
}
@keyframes jobBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.badge-job-seeker-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7C3AED, #8B5CF6) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5) !important;
  animation: jobSeekerBadgePulse 1.8s ease-in-out infinite !important;
}
@keyframes jobSeekerBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(139, 92, 246, 0); }
}

.card-job-vacant {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, var(--surface, #fff) 100%) !important;
}
.card-job-seeker {
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, var(--surface, #fff) 100%) !important;
}


/* ═════════════════════════════════════════════════════════════════════
   ULTRA VIBRANT PULSING "يحدث الآن" LIVE BADGE ANIMATION
   ═════════════════════════════════════════════════════════════════════ */
.badge-live-pulse-vibrant {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F87171 100%) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.8px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8), 0 0 25px rgba(220, 38, 38, 0.5) !important;
  animation: liveBadgeBreathing 1.6s ease-in-out infinite !important;
  vertical-align: middle !important;
}

@keyframes liveBadgeBreathing {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7), 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.09);
    box-shadow: 0 0 22px rgba(239, 68, 68, 1), 0 0 0 7px rgba(239, 68, 68, 0);
  }
}

.live-beacon-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff;
  display: inline-block;
  animation: beaconFlash 1.2s ease-in-out infinite;
}

@keyframes beaconFlash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}
