/**
 * Hello Mandsaur - Design System 2.0
 * Unified Tokens, Micro-animations, Mobile-first Components & Entity Cards
 */

:root {
  --hm-saffron: #EA580C;
  --hm-terracotta: #C2410C;
  --hm-gold: #D97706;
  --hm-amber: #F59E0B;
  --hm-amber-light: #FEF3C7;
  --hm-charcoal: #0F172A;
  --hm-navy: #1E293B;
  --hm-slate: #475569;
  --hm-slate-light: #F8FAFC;
  --hm-poppy: #BE123C;
  --hm-emerald: #059669;
  --hm-emerald-light: #D1FAE5;
  --hm-blue: #2563EB;
  --hm-blue-light: #DBEAFE;
  
  --hm-radius-sm: 8px;
  --hm-radius-md: 14px;
  --hm-radius-lg: 20px;
  --hm-radius-xl: 28px;
  --hm-radius-full: 9999px;
  
  --hm-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --hm-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --hm-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --hm-shadow-saffron: 0 8px 24px rgba(234, 88, 12, 0.22);
}

/* Glassmorphism helpers */
.hm-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hm-glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Badges */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--hm-emerald-light);
  color: var(--hm-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--hm-radius-full);
}

.badge-owner-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--hm-radius-full);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #FFF7ED;
  color: var(--hm-saffron);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--hm-radius-full);
  border: 1px solid rgba(234, 88, 12, 0.15);
}

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--hm-emerald);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-closed {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--hm-slate);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Universal Result Card */
.hm-result-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--hm-radius-lg);
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hm-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hm-shadow-lg);
  border-color: #CBD5E1;
}

/* Touch Friendly Mobile Targets */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Sticky Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E2E8F0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  height: 100%;
  transition: color 0.2s;
}

.mobile-nav-item i {
  font-size: 1.15rem;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.mobile-nav-item.active {
  color: var(--hm-saffron);
  font-weight: 800;
}

.mobile-nav-item.active i {
  transform: scale(1.1);
}

/* Padding to prevent mobile content from being covered by bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
}

/* Horizontal scrollbar styling for quick filters */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Interactive Pill Filter */
.pill-filter {
  padding: 0.45rem 1rem;
  border-radius: var(--hm-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--hm-slate);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-filter:hover {
  border-color: var(--hm-saffron);
  color: var(--hm-saffron);
  background: #FFF7ED;
}

.pill-filter.active {
  background: var(--hm-saffron);
  border-color: var(--hm-saffron);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

/* Rating Stars */
.star-rating {
  color: #F59E0B;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.85rem;
}

/* Action button gradients */
.btn-primary-mandsaur {
  background: linear-gradient(135deg, var(--hm-saffron) 0%, var(--hm-terracotta) 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--hm-radius-md);
  padding: 0.65rem 1.25rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--hm-shadow-saffron);
  transition: all 0.2s;
}

.btn-primary-mandsaur:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
  color: #ffffff;
}

.btn-whatsapp-mandsaur {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--hm-radius-md);
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp-mandsaur:hover {
  background-color: #1EBE5D;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Skeleton Loading Animations */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--hm-radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-card {
  height: 220px;
  border-radius: var(--hm-radius-lg);
}

/* Responsive Mobile Filter Bottom Drawer */
.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.2);
  z-index: 1050;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-drawer.open {
  transform: translateY(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Multi-step Listing Wizard */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.wizard-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  transition: all 0.3s ease;
  border: 2px solid #E2E8F0;
}

.wizard-step-node.active {
  background: var(--hm-saffron);
  color: #FFFFFF;
  border-color: var(--hm-saffron);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}

.wizard-step-node.completed {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

/* Profile Completeness Gauge */
.completeness-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--hm-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.completeness-high {
  background: #D1FAE5;
  color: #065F46;
}

.completeness-med {
  background: #FEF3C7;
  color: #92400E;
}

.completeness-low {
  background: #FEE2E2;
  color: #991B1B;
}

/* Quick Categories Grid Touch Items */
.category-touch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: #ffffff;
  border: 1px solid #F1F5F9;
  border-radius: var(--hm-radius-lg);
  box-shadow: var(--hm-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #1E293B;
  min-height: 90px;
}

.category-touch-card:hover {
  transform: translateY(-3px);
  border-color: #FDBA74;
  box-shadow: var(--hm-shadow-md);
  color: var(--hm-saffron);
}

.category-touch-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s;
}

.category-touch-card:hover .icon-box {
  transform: scale(1.1);
}

/* Skeleton Loading Animation */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hm-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: var(--hm-radius-sm);
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--hm-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--hm-shadow-sm);
}

/* Safe Bottom Padding for Mobile Nav */
.pb-mobile-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
  .pb-mobile-nav {
    padding-bottom: 0 !important;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 950;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Custom Thin Scrollbar for Scrollable Menus & Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.5);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 1);
}
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.8) rgba(241, 245, 249, 0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  min-height: 48px;
  min-width: 54px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item i {
  font-size: 1.125rem;
  transition: transform 0.2s;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  color: var(--hm-saffron);
}

.mobile-nav-item.active {
  color: var(--hm-saffron);
}

.mobile-nav-item.active i {
  transform: translateY(-2px);
  color: var(--hm-saffron);
}


/* Action Buttons */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--hm-radius-md);
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-call:hover {
  background: #e2e8f0;
  color: #ea580c;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--hm-radius-md);
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #bbf7d0;
  color: #166534;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--hm-radius-md);
  min-height: 44px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-directions:hover {
  background: #dbeafe;
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-fav:hover, .btn-fav.active {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* Mobile Filter Drawer / Bottom Sheet */
.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filter-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.filter-drawer.active {
  transform: translateY(0);
}

.drawer-drag-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  margin: 10px auto 4px;
}

/* Wizard Steps (8 steps support) */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.wizard-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  transition: all 0.3s;
  z-index: 2;
}

.wizard-node.active {
  background: var(--hm-saffron);
  border-color: var(--hm-saffron);
  color: #ffffff;
  box-shadow: var(--hm-shadow-saffron);
}

.wizard-node.completed {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.wizard-connector {
  flex: 1;
  height: 3px;
  background: #cbd5e1;
  margin: 0 4px;
  transition: background 0.3s;
}

.wizard-connector.filled {
  background: #10b981;
}

/* Mobile Sticky Search Bar */
.mobile-search-pill {
  min-height: 46px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #64748b;
}

.mobile-search-pill:hover, .mobile-search-pill:focus {
  border-color: var(--hm-saffron);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}

/* ========================================================
 * PHASE 18: DESIGN SYSTEM 2.0 EXPANSION
 * ======================================================== */

/* --- 18.6 & 18.7 Universal Button System & Sizing --- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--hm-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}
.hm-btn:disabled, .hm-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
}

/* Sizing Tokens */
.hm-btn-xs { padding: 0.3rem 0.6rem; font-size: 0.72rem; min-height: 32px; border-radius: var(--hm-radius-sm); }
.hm-btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; min-height: 38px; border-radius: var(--hm-radius-md); }
.hm-btn-md { padding: 0.65rem 1.25rem; font-size: 0.875rem; min-height: 44px; border-radius: var(--hm-radius-md); }
.hm-btn-lg { padding: 0.85rem 1.65rem; font-size: 1rem; min-height: 50px; border-radius: var(--hm-radius-lg); }
.hm-btn-xl { padding: 1.1rem 2.25rem; font-size: 1.125rem; min-height: 58px; border-radius: var(--hm-radius-xl); font-weight: 700; }

/* Variants */
.hm-btn-primary {
  background: linear-gradient(135deg, var(--hm-saffron) 0%, var(--hm-terracotta) 100%);
  color: #FFFFFF;
  box-shadow: var(--hm-shadow-saffron);
}
.hm-btn-primary:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
}

.hm-btn-secondary {
  background: var(--hm-navy);
  color: #FFFFFF;
  box-shadow: var(--hm-shadow-sm);
}
.hm-btn-secondary:hover {
  background: var(--hm-charcoal);
  transform: translateY(-1px);
}

.hm-btn-outline {
  background: transparent;
  border-color: #CBD5E1;
  color: var(--hm-slate);
}
.hm-btn-outline:hover {
  border-color: var(--hm-saffron);
  color: var(--hm-saffron);
  background: #FFF7ED;
}

.hm-btn-ghost {
  background: transparent;
  color: var(--hm-slate);
}
.hm-btn-ghost:hover {
  background: #F1F5F9;
  color: var(--hm-charcoal);
}

.hm-btn-success {
  background: var(--hm-emerald);
  color: #FFFFFF;
}
.hm-btn-success:hover {
  background: #047857;
}

.hm-btn-danger {
  background: #EF4444;
  color: #FFFFFF;
}
.hm-btn-danger:hover {
  background: #DC2626;
}

.hm-btn-floating {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 99;
  border-radius: var(--hm-radius-full);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

/* --- 18.8 - 18.10 Universal Form System & States --- */
.hm-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hm-form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hm-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hm-input, .hm-select, .hm-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--hm-charcoal);
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--hm-radius-md);
  outline: none;
  transition: all 0.2s ease;
  min-height: 46px;
}

.hm-textarea {
  min-height: 100px;
  resize: vertical;
}

.hm-input:focus, .hm-select:focus, .hm-textarea:focus {
  border-color: var(--hm-saffron);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.hm-input.is-invalid, .hm-select.is-invalid, .hm-textarea.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2;
}

.hm-input.is-valid, .hm-select.is-valid, .hm-textarea.is-valid {
  border-color: #10B981 !important;
  background-color: #F0FDF4;
}

.invalid-feedback {
  display: none;
  font-size: 0.75rem;
  color: #EF4444;
  font-weight: 600;
  margin-top: 2px;
}

.valid-feedback {
  display: none;
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 600;
  margin-top: 2px;
}

/* Switch & Checkbox */
.hm-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.hm-switch input { opacity: 0; width: 0; height: 0; }
.hm-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 34px;
}
.hm-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hm-switch input:checked + .hm-switch-slider {
  background-color: var(--hm-saffron);
}
.hm-switch input:checked + .hm-switch-slider:before {
  transform: translateX(22px);
}

/* --- 18.23 Responsive Table System --- */
.hm-table-container {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--hm-radius-lg);
  box-shadow: var(--hm-shadow-sm);
}

.hm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.hm-table th {
  background: #F8FAFC;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  color: var(--hm-slate);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E2E8F0;
}

.hm-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--hm-charcoal);
  vertical-align: middle;
}

.hm-table tr:hover td {
  background-color: #F8FAFC;
}

/* --- 18.24 Universal Modal Dialog System --- */
.hm-modal-open {
  overflow: hidden;
}

.hm-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.hm-modal-dialog {
  background: #FFFFFF;
  border-radius: var(--hm-radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hm-modal.active .hm-modal-dialog {
  transform: translateY(0) scale(1);
}

.hm-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hm-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hm-navy);
  margin: 0;
}

.hm-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--hm-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.hm-modal-close:hover {
  background: #F1F5F9;
  color: var(--hm-charcoal);
}

.hm-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.hm-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* --- 18.25 Universal Toast System --- */
.hm-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.hm-toast {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: var(--hm-radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 300px;
  max-width: 420px;
  border-left: 4px solid var(--hm-saffron);
}

.hm-toast-success { border-left-color: #10B981; }
.hm-toast-success i { color: #10B981; }

.hm-toast-error { border-left-color: #EF4444; }
.hm-toast-error i { color: #EF4444; }

.hm-toast-warning { border-left-color: #F59E0B; }
.hm-toast-warning i { color: #F59E0B; }

.hm-toast-info { border-left-color: #3B82F6; }
.hm-toast-info i { color: #3B82F6; }

.hm-toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-charcoal);
}

.hm-toast-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  cursor: pointer;
}

/* --- 18.26 Empty States --- */
.hm-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #FFFFFF;
  border-radius: var(--hm-radius-xl);
  border: 1.5px dashed #CBD5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hm-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF7ED;
  color: var(--hm-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.hm-empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hm-navy);
  margin: 0;
}

.hm-empty-desc {
  font-size: 0.875rem;
  color: var(--hm-slate);
  max-width: 400px;
  line-height: 1.5;
  margin: 0;
}

/* --- 18.27 Skeleton Loaders --- */
.hm-skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: hmSkeletonWave 1.5s infinite;
  border-radius: var(--hm-radius-md);
}

@keyframes hmSkeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hm-skeleton-text { height: 1rem; width: 100%; margin-bottom: 0.5rem; }
.hm-skeleton-title { height: 1.5rem; width: 65%; margin-bottom: 0.75rem; }
.hm-skeleton-avatar { width: 50px; height: 50px; border-radius: 50%; }

/* --- Phase 19 Badges & Preview --- */
.badge-sponsored {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--hm-radius-full);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.badge-free-site {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--hm-radius-full);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.hm-site-preview-frame {
  border: 12px solid #0F172A;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  background: #FFFFFF;
}


