/* ==========================================================================
   Manasek Market — Luxury Islamic Modern Design System (v4.0)
   Color Palette: Deep Emerald, Royal Gold, Sand Pearl, Obsidian Navy
   ========================================================================== */

:root {
  --primary-emerald: #062b20;
  --primary-emerald-light: #0d4a38;
  --royal-gold: #c59b27;
  --royal-gold-bright: #e6b943;
  --gold-glow: rgba(197, 155, 39, 0.22);
  --sand-bg: #fbf9f5;
  --card-bg: #ffffff;
  --navy-dark: #09131d;
  --navy-text: #1a2530;
  --muted-text: #596573;
  --border-light: rgba(9, 19, 29, 0.08);
  --border-gold: rgba(197, 155, 39, 0.35);
  --sky-blue: #1d72b8;
  --success-green: #15803d;
  --danger-red: #dc2626;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 43, 32, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--sand-bg);
  color: var(--navy-text);
  line-height: 1.65;
  direction: rtl;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.top-announcement-bar {
  background: var(--navy-dark);
  color: #f1f5f9;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.hijri-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--royal-gold-bright);
  font-weight: 700;
}
.gov-compliance-badge {
  color: #94a3b8;
}
.gov-compliance-badge strong {
  color: #38bdf8;
}

/* Glassmorphic Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-symbol {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--royal-gold), #8e6c13);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.brand-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-emerald);
  line-height: 1.1;
}
.brand-title span {
  color: var(--royal-gold);
}
.brand-tagline {
  font-size: 11px;
  color: var(--muted-text);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-text);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--royal-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-toggle-b2b {
  background: var(--sand-bg);
  color: var(--primary-emerald);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-toggle-b2b:hover, .btn-toggle-b2b.active-b2b {
  background: var(--primary-emerald);
  color: #fff;
}
.btn-nav-emergency {
  background: #fee2e2;
  color: var(--danger-red);
  border: 1px solid #fca5a5;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-image: linear-gradient(135deg, rgba(6, 43, 32, 0.94) 0%, rgba(9, 19, 29, 0.82) 100%), url('../assets/images/hero_mecca.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid var(--royal-gold);
  color: var(--royal-gold-bright);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-title span {
  color: var(--royal-gold-bright);
}
.hero-desc {
  font-size: 17px;
  color: #e2e8f0;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Quick Search Floating Bar */
.search-widget {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--navy-text);
  margin-top: 10px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 6px;
}
.search-field select, .search-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--sand-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-text);
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-field select:focus, .search-field input:focus {
  border-color: var(--royal-gold);
}
.btn-search-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--royal-gold), #9b7716);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform var(--transition-fast);
}
.btn-search-submit:hover {
  transform: translateY(-2px);
}

/* Features Highlights Ribbon */
.highlights-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--sand-bg);
  border: 1px solid var(--border-light);
}
.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  color: var(--royal-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.highlight-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-emerald);
}
.highlight-text p {
  font-size: 12px;
  color: var(--muted-text);
}

/* Section Common Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--royal-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-emerald);
  margin: 6px 0 12px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted-text);
}

/* Packages Section & Filter Tabs */
.packages-section {
  padding: 60px 0;
}
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
  box-shadow: 0 4px 12px rgba(6, 43, 32, 0.15);
}

/* Package Card */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}
.package-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}
.package-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.package-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.package-card:hover .package-img {
  transform: scale(1.04);
}
.agency-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 19, 29, 0.85);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.category-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.category-badge.five-star { background: linear-gradient(135deg, var(--royal-gold), #9e7a17); }
.category-badge.four-star { background: linear-gradient(135deg, #0284c7, #0369a1); }
.category-badge.economy { background: linear-gradient(135deg, #16a34a, #15803d); }

.package-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.agency-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--sky-blue);
  margin-bottom: 6px;
}
.package-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 16px;
  line-height: 1.4;
}

.package-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--sand-bg);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.spec-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.spec-item strong {
  display: block;
  color: var(--navy-dark);
  font-size: 13px;
}
.spec-sub {
  color: var(--muted-text);
  font-size: 11px;
}

.package-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.perk-pill {
  font-size: 11px;
  background: #ecfdf5;
  color: #065f46;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.package-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.price-wrap {
  margin-bottom: 14px;
}
.cash-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cash-price .amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-emerald);
}
.cash-price .currency {
  font-size: 12px;
  color: var(--muted-text);
}
.install-price {
  font-size: 12px;
  color: var(--royal-gold);
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-compare {
  background: var(--sand-bg);
  border: 1px solid var(--border-light);
  color: var(--navy-text);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-compare:hover, .btn-compare.active {
  background: #fef3c7;
  border-color: var(--royal-gold);
  color: #92400e;
}
.btn-book-now {
  background: linear-gradient(135deg, var(--royal-gold), #9b7716);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.btn-book-now:hover {
  opacity: 0.92;
}

/* Interactive Map Section */
.map-section {
  background: #ffffff;
  padding: 70px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.map-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.map-chip {
  background: var(--sand-bg);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.map-chip.active {
  background: var(--royal-gold);
  color: #fff;
  border-color: var(--royal-gold);
}

.map-viewport-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
  background: #fcf9f4;
}
.haram-svg-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.hotel-marker {
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.hotel-marker:hover {
  transform: scale(1.15);
}
.marker-pulse {
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.animated-dash {
  animation: dash 30s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

.hotel-popup-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.popup-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted-text);
  cursor: pointer;
}
.popup-badge {
  background: var(--gold-glow);
  color: var(--royal-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}
.popup-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-top: 4px;
}
.popup-body {
  margin: 12px 0;
  font-size: 13px;
}
.popup-stat {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
}
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.popup-price small {
  font-size: 10px;
  color: var(--muted-text);
}
.popup-price h3 {
  font-size: 18px;
  color: var(--primary-emerald);
  font-weight: 900;
}
.btn-sm-primary {
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Floating Compare Bar */
.compare-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--royal-gold);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
.compare-bar-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--royal-gold-bright);
}
.btn-launch-compare {
  background: var(--royal-gold);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.btn-clear-compare {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
}

/* Live Group & SOS Section */
.operations-section {
  padding: 70px 0;
  background: var(--sand-bg);
}
.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.live-chat-panel, .sos-rescue-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-header {
  padding: 18px 24px;
  background: var(--primary-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h3 {
  font-size: 16px;
  font-weight: 800;
}
.status-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.chat-messages-box {
  height: 320px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fdfcfb;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}
.user-bubble {
  align-self: flex-start;
  background: #e2e8f0;
  color: var(--navy-dark);
}
.supervisor-bubble {
  align-self: flex-end;
  background: #fef3c7;
  border: 1px solid var(--border-gold);
  color: #78350f;
}
.chat-meta {
  font-size: 10px;
  color: var(--muted-text);
  margin-bottom: 2px;
  font-weight: 700;
}
.chat-input-bar {
  padding: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  background: #fff;
}
.chat-input-bar input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
}
.btn-send {
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* SOS Panel Body */
.sos-body {
  padding: 28px;
  text-align: center;
}
.sos-big-btn {
  width: 140px;
  height: 140px;
  margin: 20px auto;
  background: radial-gradient(circle, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid #fee2e2;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.2);
  cursor: pointer;
  transition: transform var(--transition-fast);
  animation: pulse-sos 1.8s infinite;
}
.sos-big-btn:hover {
  transform: scale(1.06);
}
.sos-big-btn .icon { font-size: 38px; }
.sos-big-btn .text { font-size: 15px; font-weight: 900; margin-top: 4px; }

@keyframes pulse-sos {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 24px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* AI Assistant & Addons Section */
.ai-addons-section {
  padding: 70px 0;
  background: #ffffff;
}
.ai-assistant-card {
  background: var(--sand-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  padding: 28px;
  margin-bottom: 50px;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ai-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-emerald);
  color: var(--royal-gold-bright);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.ai-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ai-prompt-chip {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-emerald);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ai-prompt-chip:hover {
  background: var(--royal-gold);
  color: #fff;
}
.ai-chat-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 220px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.ai-msg {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  max-width: 85%;
}
.user-ai {
  background: #e2e8f0;
  align-self: flex-start;
}
.bot-ai {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  align-self: flex-end;
}
.ai-ans-title {
  font-weight: 800;
  margin-bottom: 4px;
  color: #166534;
}
.ai-source-tag {
  font-size: 10px;
  color: #15803d;
  margin-top: 6px;
  font-weight: 700;
}

/* Addons Cards Grid */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.addon-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.addon-badge {
  background: var(--gold-glow);
  color: var(--royal-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.addon-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-emerald);
}
.addon-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--royal-gold);
  margin: 8px 0;
}
.addon-desc {
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 19, 29, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gold);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  padding: 20px 28px;
  background: var(--primary-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.modal-body {
  padding: 28px;
}

/* Wizard Steps Indicator */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
}
.wizard-step {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 0 10px;
  text-align: center;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sand-bg);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 6px;
  color: var(--muted-text);
}
.wizard-step.active .step-number {
  background: var(--royal-gold);
  color: #fff;
  border-color: var(--royal-gold);
}
.wizard-step.completed .step-number {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}
.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-text);
}

/* Passport OCR Upload Area */
.ocr-dropzone {
  border: 2px dashed var(--royal-gold);
  background: #fdfbf7;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.ocr-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: scanLaser 1.8s infinite ease-in-out;
  display: none;
}
@keyframes scanLaser {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}
.btn-ocr-demo {
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}
.ocr-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
.ocr-status.scanning { color: var(--sky-blue); }
.ocr-status.success { color: var(--success-green); }

/* Form Fields Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--sand-bg);
  font-size: 14px;
}

/* Installment Providers Selector */
.term-selector {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
}
.term-chip {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--sand-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.term-chip.active {
  background: #fef3c7;
  border-color: var(--royal-gold);
  color: #92400e;
}

/* B2B Agency Dashboard */
.b2b-view-wrap {
  padding: 50px 0;
  background: #f8fafc;
}
.b2b-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.b2b-stat-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.b2b-stat-title {
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 700;
}
.b2b-stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-emerald);
  margin: 6px 0;
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.compare-table th, .compare-table td {
  padding: 14px;
  border: 1px solid var(--border-light);
  text-align: right;
  font-size: 13px;
}
.compare-table th {
  background: var(--sand-bg);
  font-weight: 800;
}
.cmp-card-header h4 {
  font-size: 15px;
  color: var(--primary-emerald);
}
.cmp-agency {
  font-size: 11px;
  color: var(--muted-text);
  margin: 4px 0;
}
.cmp-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--royal-gold);
  margin: 8px 0;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 2px solid var(--royal-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-links h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--royal-gold-bright);
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 992px) {
  .operations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 26px; }
  .search-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
