@import './fonts.css';

/**
 * Ziarat Home Platform - Pure Vanilla CSS Design System
 * 100% Custom CSS - Zero External CDN / Dependencies
 * Optimized for RTL Persian Typography with Local Yekan Font Family
 */

:root {
  /* Color Palette */
  --primary: #085f4c;
  --primary-light: #0d7a62;
  --primary-dark: #032b21;
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  
  --secondary: #b8860b;
  --secondary-light: #d4af37;
  --secondary-50: #fefce8;
  
  --accent: #2563eb;
  --accent-light: #3b82f6;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0d6854;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-emerald: 0 10px 20px -5px rgba(13, 104, 84, 0.25);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1240px;
  --font-family: 'Yekan Bakh FaNum', 'Yekan Bakh', 'IRANYekanWeb', 'Yekan', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  --transition: all 0.2s ease-in-out;
}

/* Margin & Spacing Utilities */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.my-8 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.my-12 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* Flex & Grid Systems */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Header & Navigation Bar */
.topbar {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 0.5rem 0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.topbar-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.topbar-phone-badge:hover {
  color: #fef08a;
}
.topbar-hours-badge {
  font-size: 0.725rem;
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}
.topbar-link-item:hover {
  color: #ffffff;
  text-decoration: underline;
}
.topbar-login-badge {
  color: #fef08a;
  font-weight: 600;
}
.topbar-login-badge:hover {
  color: #ffffff;
}

.topbar-user-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.topbar-user-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: #fef08a;
  font-weight: 600;
  transition: var(--transition);
}
.topbar-user-toggle:hover {
  color: #ffffff;
}
.topbar-dropdown-arrow {
  transition: transform 0.2s ease;
}
.topbar-user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFade 0.2s ease forwards;
}
.topbar-user-dropdown-menu.open {
  display: block;
}
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.topbar-user-menu-header {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}
.topbar-user-menu-items {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.topbar-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}
.topbar-user-menu-item:hover {
  background: #f1f5f9;
  text-decoration: none;
  color: var(--primary);
}
.topbar-user-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.3rem 0;
}

.site-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
}
.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

/* Nav Item Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-btn {
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active,
.nav-item-dropdown:hover .nav-dropdown-btn {
  color: var(--primary);
  background: var(--primary-50);
}
.nav-dropdown-btn svg.chevron {
  transition: transform 0.25s ease;
}
.nav-item-dropdown:hover .nav-dropdown-btn svg.chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--primary-50);
  color: var(--primary);
}
.nav-dropdown-item-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-dropdown-item:hover .nav-dropdown-item-icon,
.nav-dropdown-item.active .nav-dropdown-item-icon {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Nav Drawer & Toggle */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--bg-muted);
}

/* Mobile Sidebar Overlay & Drawer (Slide from Right) */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}
.mobile-sidebar-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-sidebar-header {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}
.mobile-sidebar-close {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.mobile-sidebar-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.mobile-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
}
.mobile-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}
.mobile-sidebar-link:hover {
  background: #f1f5f9;
  color: var(--primary);
  text-decoration: none;
}
.mobile-sidebar-link.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
}
.mobile-sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.mobile-sidebar-link:hover .mobile-sidebar-link-icon,
.mobile-sidebar-link.active .mobile-sidebar-link-icon {
  color: var(--primary);
}

.mobile-sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0.85rem 0.75rem 0.35rem 0.75rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 0.5rem;
}

.mobile-sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}
.mobile-sidebar-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}
.mobile-sidebar-phone-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

@media (min-width: 769px) {
  .mobile-sidebar-drawer,
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(140deg, #02281f 0%, #064e3b 55%, #0a5f4c 100%);
  color: #ffffff;
  padding: 2.25rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-lines-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.hero-lines-overlay svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-wave-path {
  transform-origin: center center;
}

.hero-decorative-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-circle-svg {
  position: absolute;
  width: 500px;
  height: 500px;
  pointer-events: none;
  opacity: 0.65;
}
.hero-circle-svg.top-left {
  top: -150px;
  right: -100px;
}
.hero-circle-svg.bottom-right {
  bottom: -150px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: #fef08a;
}
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Fast Search Bar (Floating on Hero) */
.search-floating-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  margin-top: -2.75rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-color);
}
.mobile-search-indiv-wrapper {
  display: none;
}
.search-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 104, 84, 0.12);
}

/* ==========================================================================
   Home Promo Slider & Side Banners (Hotel2 Design System)
   ========================================================================== */
.promo-section {
  padding: 2.25rem 0 1rem 0;
}
.promo-menu {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}
.promo-slider {
  flex: 1;
  min-width: 0;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-md);
  user-select: none;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}
.slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(7, 35, 28, 0.9) 0%, rgba(7, 35, 28, 0.45) 60%, transparent 100%);
  color: #ffffff;
  padding: 2.5rem 1.5rem 1.25rem 1.5rem;
  z-index: 3;
}
.slider-caption h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.slider-caption p {
  font-size: 0.85rem;
  color: #e2e8f0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover {
  background: var(--primary);
}
.slider-btn.prev {
  right: 12px;
}
.slider-btn.next {
  left: 12px;
}
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 6;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.slider-dots .dot.active {
  background: #fef08a;
  border-color: #ffffff;
  width: 24px;
  border-radius: 9999px;
}

/* Side Banners (2 stacked banners on desktop) */
.promo-left {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  display: block;
  text-decoration: none !important;
  transition: var(--transition);
  background: #ffffff;
  border: 1px solid var(--border-color);
}
.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.promo-card.small {
  height: 164px;
}
.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,104,84,0.85) 0%, rgba(7,56,45,0.7) 100%);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.promo-card:hover .promo-card-overlay {
  background: linear-gradient(135deg, rgba(13,104,84,0.92) 0%, rgba(7,56,45,0.8) 100%);
}
.promo-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  color: #fef08a;
}
.promo-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.promo-card-subtitle {
  font-size: 0.8rem;
  color: #d1fae5;
  margin-top: 0.25rem;
}
.promo-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fef08a;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(13, 104, 84, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 14px rgba(13, 104, 84, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}
.btn-secondary:hover {
  background: #996f08;
}
.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-50);
}
.btn-light {
  background: var(--bg-muted);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-light:hover {
  background: #e2e8f0;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
}

/* Section Header */
.section {
  padding: 3.5rem 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Tour Card (Matching ziarathome design with high precision) */
.tour-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tour-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}
.tour-card-header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
}
.tour-agency-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}
.tour-code-tag {
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.tour-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge-item {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.badge-classic { background: #64748b; color: #ffffff; }
.badge-hotel { background: #059669; color: #ffffff; }
.badge-vip { background: #991b1b; color: #ffffff; }
.badge-friday { background: #0284c7; color: #ffffff; }
.badge-installment { background: #b45309; color: #ffffff; }
.badge-special { background: #7c3aed; color: #ffffff; }

.tour-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}
.tour-info-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tour-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-muted);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  gap: 0.5rem;
  text-align: center;
  font-size: 0.825rem;
}
.tour-meta-item strong {
  display: block;
  color: var(--text-main);
  font-size: 0.875rem;
}
.tour-meta-item span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Custom Bus & Seat Capacity Progress Bar */
.seat-progress-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
}
.seat-bus-icon {
  width: 38px;
  height: 22px;
  position: relative;
  background: #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 1px solid #94a3b8;
}
.seat-bus-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary);
  transition: width 0.4s ease;
}
.seat-bus-wheels {
  position: absolute;
  bottom: 2px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}
.seat-bus-wheel {
  width: 6px;
  height: 6px;
  background: #334155;
  border-radius: 50%;
}
.seat-progress-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}
.seat-progress-text span {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Price & Booking Footer */
.tour-card-footer {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-tag {
  display: flex;
  flex-direction: column;
}
.price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.toman-symbol {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-original {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Feature Banners & Fast Inquiry */
.home-dark-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.loan-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lottery-dark-banner {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 60%, #0f172a 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.individual-dark-banner {
  background: linear-gradient(135deg, #134e4a 0%, #042f2e 60%, #0f172a 100%);
  border-color: rgba(20, 184, 166, 0.3);
}

.donation-dark-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 60%, #0f172a 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.home-card-decor-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.decor-circle-svg {
  position: absolute;
  width: 440px;
  height: 440px;
  pointer-events: none;
  opacity: 0.65;
}

.decor-circle-svg.top-right-spin,
.decor-circle-svg.top-right {
  top: -120px;
  right: -80px;
}

.decor-circle-svg.bottom-left-spin,
.decor-circle-svg.bottom-left {
  bottom: -120px;
  left: -80px;
}

.decor-circle-svg.top-left-spin,
.decor-circle-svg.top-left {
  top: -120px;
  left: -80px;
}

.decor-circle-svg.bottom-right-spin,
.decor-circle-svg.bottom-right {
  bottom: -120px;
  right: -80px;
}

.decor-radial-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.25;
}

.decor-radial-glow.top-right-glow {
  top: -40px;
  right: -40px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.decor-radial-glow.bottom-left-glow {
  bottom: -40px;
  left: -40px;
  background: radial-gradient(circle, #10b981, transparent 70%);
}

.decor-radial-glow.top-left-blue-glow {
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
}

.decor-radial-glow.bottom-right-gold-glow {
  bottom: -40px;
  right: -40px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.decor-radial-glow.bottom-left-teal-glow {
  bottom: -40px;
  left: -40px;
  background: radial-gradient(circle, #14b8a6, transparent 70%);
}

.decor-radial-glow.top-left-gold-glow {
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.decor-radial-glow.bottom-right-green-glow {
  bottom: -40px;
  right: -40px;
  background: radial-gradient(circle, #10b981, transparent 70%);
}

.bg-white-10 {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 10px;
}

.btn-glow-gold {
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}
.btn-glow-gold:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

.loan-banner-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fde047;
}
.loan-banner-info p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.loan-calculator-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .home-dark-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .home-dark-card .flex-wrap {
    justify-content: center;
  }
  .loan-banner {
    grid-template-columns: 1fr;
    text-align: right;
  }
}

/* Articles & Guides Section */
.article-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.article-image-wrap {
  height: 175px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.article-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-image-wrap img {
  transform: scale(1.06);
}
.article-category-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  z-index: 2;
}
.article-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}
.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}
.article-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #0b251e;
  color: #e2e8f0;
  margin-top: auto;
  padding-top: 3.5rem;
  border-top: 4px solid var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--secondary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}
.footer-bottom {
  background: #061612;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.825rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Flash Messages & Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
/* Badges System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-primary {
  background: #0d6854;
  color: #ffffff;
  border: 1px solid #0a5242;
}
.badge-admin-role {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.badge-organizer-role {
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #115e59;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.badge-user-role {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.badge-success {
  background: #15803d;
  color: #ffffff;
  border: 1px solid #166534;
}
.badge-warning {
  background: #d97706;
  color: #ffffff;
  border: 1px solid #b45309;
}
.badge-danger {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
}
.badge-info {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
}
.badge-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Detail Page & Booking Styles */
.detail-hero {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.booking-step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
  .topbar {
    padding: 0.35rem 0;
    font-size: 0.775rem;
  }
  .topbar-wrapper {
    gap: 0.5rem;
  }
  .topbar-phone-title {
    display: none;
  }
  .topbar-hours-badge {
    display: none;
  }
  .topbar-phone-badge {
    font-size: 0.775rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
  }
  .topbar-links {
    gap: 0.4rem;
  }
  .topbar-link-item {
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  .topbar-login-badge span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }

  .nav-menu { 
    display: none; 
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-wrapper { 
    height: 60px; 
  }
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  .logo-icon svg {
    width: 18px;
    height: 18px;
  }
  .logo-text h1 {
    font-size: 1.05rem;
  }
  .logo-text span {
    font-size: 0.65rem;
  }
  .header-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.825rem;
  }

  .hero-section { padding: 1.5rem 0 2.75rem 0; }
  .hero-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .hero-subtitle { font-size: 0.875rem; margin-bottom: 0.75rem; }
  .loan-banner { grid-template-columns: 1fr; padding: 1.5rem; }
  .search-floating-card { margin-top: -1.75rem; padding: 1rem; }
  .mobile-search-indiv-wrapper {
    display: block;
    margin-bottom: 0.85rem;
  }
  .mobile-search-indiv-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #02281f 0%, #064e3b 60%, #085f4c 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(2, 40, 31, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
  }
  .mobile-search-indiv-btn:active,
  .mobile-search-indiv-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(7, 56, 45, 0.3);
  }
  .mobile-search-indiv-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
  }
  .mobile-search-indiv-tag {
    font-size: 0.625rem;
    font-weight: 800;
    color: #fde047;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }
  .mobile-search-indiv-title {
    font-size: 0.825rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
  }
  .mobile-search-indiv-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
  }
  .search-form-grid { grid-template-columns: 1fr; }

  /* Mobile Promo Slider & Banners */
  .promo-section { padding: 1.25rem 0 0.5rem 0; }
  .promo-menu { flex-direction: column; gap: 0.75rem; }
  .promo-left { width: 100%; display: flex; flex-direction: row; gap: 0.5rem; }
  .promo-card.small { flex: 1 1 calc(50% - 0.25rem); height: 95px; border-radius: var(--radius-md); }
  .slider-wrapper { height: 190px; border-radius: var(--radius-md); }
  .slider-caption { padding: 1rem 0.75rem 0.6rem 0.75rem; }
  .slider-caption h3 { font-size: 0.95rem; }
  .slider-caption p { font-size: 0.7rem; display: none; }
  .promo-card-badge { font-size: 0.55rem; padding: 1px 5px; }
  .promo-card-title { font-size: 0.75rem; font-weight: 700; line-height: 1.25; margin-top: 0.2rem !important; }
  .promo-card-subtitle { display: none !important; }
  .promo-card-cta { font-size: 0.65rem; margin-top: 0.15rem; }
  .promo-card-cta svg { width: 11px; height: 11px; }
  .promo-card-overlay { padding: 0.5rem 0.65rem; }

  .tour-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .tour-card-footer { flex-direction: column; gap: 1rem; align-items: stretch; }
  .tour-card-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
  .promo-left { display: flex; flex-direction: row; gap: 0.4rem; width: 100%; }
  .promo-card.small { flex: 1 1 calc(50% - 0.2rem); height: 88px; }
  .promo-card-title { font-size: 0.7rem; }
  .promo-card-cta { font-size: 0.6rem; }
}

/* ==========================================================================
   Auth & Login / Registration Styles (Hotel2 Pattern)
   ========================================================================== */
.auth-page-container {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at 50% 10%, var(--primary-50) 0%, transparent 60%);
}
.auth-card-wrap {
  width: 100%;
  max-width: 460px;
}
.auth-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}
.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 12px rgba(13, 104, 84, 0.12);
}
.auth-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}
.auth-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
}
.auth-tabs {
  display: flex;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
}
.auth-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.auth-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.auth-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}
.auth-input-wrapper {
  position: relative;
  width: 100%;
}
.auth-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  transition: var(--transition);
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 104, 84, 0.12);
}
.auth-input-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.auth-input-otp {
  width: 100%;
  padding: 0.85rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.6rem;
  outline: none;
  background: #ffffff;
  color: var(--primary-dark);
}
.auth-error-text {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.2rem;
}
.auth-card-footer {
  text-align: center;
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* Bale Messenger Auth Styles */
.btn-bale {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-bale:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38);
  color: #ffffff !important;
}
.btn-bale:active {
  transform: translateY(0);
}
.bale-badge {
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.775rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border-color);
}
.auth-divider span {
  padding: 0 0.75rem;
}
.badge-bale-channel {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 4px;
}
.badge-sms-channel {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 1px 7px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 4px;
}
.btn-resend-bale {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-resend-bale:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.btn-resend-sms {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-resend-sms:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   User Dashboard Styles
   ========================================================================== */
.user-dashboard-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 6rem;
  min-height: calc(100vh - 380px);
}
.user-profile-header-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.user-profile-info-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.user-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 104, 84, 0.25);
  border: 3px solid #ffffff;
  flex-shrink: 0;
}
.user-main-details {
  flex: 1;
  min-width: 240px;
}
.user-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}
.user-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.user-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
}
.user-stat-box {
  background: var(--bg-muted);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.user-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.user-stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.user-main-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.user-main-card-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
}
.user-main-card-body {
  padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) {
  .user-main-card-body {
    padding: 2.25rem 2rem;
  }
}
.user-tabs-bar {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.user-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}
.user-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(13, 104, 84, 0.2);
}

/* User Dashboard Mobile Hamburger Menu */
.user-mobile-nav {
  display: none;
  position: relative;
  margin-bottom: 0;
}
.user-mobile-nav-toggle {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 104, 84, 0.08);
  font-family: inherit;
}
.user-mobile-nav-hamburger {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-mobile-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.user-mobile-nav-dropdown {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0.35rem;
}
.user-mobile-nav-dropdown.open {
  display: flex;
}
.user-mobile-nav-item {
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: right;
  transition: var(--transition);
}
.user-mobile-nav-item.active {
  background: var(--primary);
  color: #ffffff;
}
.user-mobile-nav-item:not(.active):hover {
  background: var(--bg-muted);
}

@media (max-width: 768px) {
  .user-tabs-bar {
    display: none !important;
  }
  .user-mobile-nav {
    display: block;
  }
}

.tracking-badge {
  background: #f1f5f9;
  color: var(--primary-dark);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Agency Public Profile Styles
   ========================================================================== */
.agency-profile-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  min-height: calc(100vh - 350px);
}
.agency-header-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.agency-header-bg {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
}
.agency-header-body {
  padding: 1.75rem 2rem 2rem 2rem;
  position: relative;
}
.agency-main-flex {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-top: -60px;
  flex-wrap: wrap;
}
.agency-logo-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agency-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agency-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agency-details-col {
  flex: 1;
  min-width: 280px;
  padding-top: 0.5rem;
}
.agency-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}
.agency-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.agency-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.agency-meta-label {
  color: var(--text-muted);
}
.agency-meta-val {
  font-weight: 600;
  color: var(--text-main);
}
.agency-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.agency-description-box {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .agency-main-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -50px;
  }
  .agency-meta-grid {
    justify-content: center;
  }
  .agency-address-row {
    justify-content: center;
  }
  .agency-header-body {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   Individual Registration & Multi-step Wizard Styles
   ========================================================================== */
.wizard-stepper-container {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.wizard-stepper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .wizard-stepper-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
}

.wizard-step-item.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 104, 84, 0.08);
}

.wizard-step-item.completed {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--primary);
  cursor: pointer;
}

.wizard-step-item.completed:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.wizard-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: #e2e8f0;
  color: #64748b;
  transition: var(--transition);
}

.wizard-step-item.active .wizard-step-number {
  background: var(--primary);
  color: #ffffff;
}

.wizard-step-item.completed .wizard-step-number {
  background: #059669;
  color: #ffffff;
}

.wizard-card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wizard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .wizard-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.wizard-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wizard-card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.wizard-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .wizard-nav-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .wizard-nav-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}



