/* ==========================================================================
   المصرية تك (Almasrya Tech) - Official Stylesheet
   Modern, SEO-optimized, High-Performance RTL CSS
   ========================================================================== */

:root {
  --primary: #081325;
  --primary-light: #0f2445;
  --primary-lighter: #1a3a6b;
  --primary-dark: #040913;
  --gold: #c99738;
  --gold-hover: #e0ac45;
  --gold-light: #fef9ed;
  --gold-soft: rgba(201, 151, 56, 0.12);
  --cyan: #00a8e8;
  --cyan-soft: rgba(0, 168, 232, 0.1);
  --accent: #e63946;
  --success: #10b981;
  --whatsapp: #25d366;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #07101e;
  
  --text-main: #0f172a;
  --text-muted: #52637a;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-color: #cbd5e1;
  --border-gold: rgba(201, 151, 56, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(8, 19, 37, 0.08);
  --shadow-lg: 0 12px 28px rgba(8, 19, 37, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 151, 56, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  
    --font-heading: 'El Messiri', 'Cairo', serif;
  --font-body: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family: var(--font-body);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
  text-align: right;
}


h1, h2, h3, h4, h5, h6, .section-title, .logo-text, .page-header h1, .brand-card h3, .disclaimer-badge, .stat-number, .header-brand-chip, .btn, .nav-link {
  font-family: var(--font-heading);
}

body, p, span, input, select, textarea, button, .faq-answer, .disclaimer-sub-text {
  font-family: var(--font-body);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 75px; /* Spacing for mobile bottom nav */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item i {
  color: var(--gold);
}

.top-bar-item .status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.top-bar-phone {
  color: var(--gold);
  font-weight: 700;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-phone:hover {
  color: #fff;
}

/* Main Header */
/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-body) !important;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background-color: var(--gold-soft);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-surface);
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  display: none;
  z-index: 1001;
  animation: dropdownIn 0.2s ease forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.dropdown-item i {
  color: var(--gold);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  padding-right: 16px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #a3721e);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.96rem;
  box-shadow: 0 4px 14px rgba(201, 151, 56, 0.3);
  transition: var(--transition);
  white-space: nowrap !important;
}

.btn-header-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 151, 56, 0.45);
  color: #ffffff;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--primary);
  font-size: 1.25rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* Tablet & Intermediate Desktop Header Tuning (992px - 1180px) */
@media (max-width: 1180px) and (min-width: 992px) {
  .header .container {
    gap: 12px;
  }
  .logo-img {
    height: 40px;
    max-width: 180px;
  }
  .nav-desktop {
    gap: 4px;
  }
  .nav-link {
    font-size: 0.88rem !important;
    padding: 6px 8px !important;
  }
  .btn-header-call {
    font-size: 0.88rem !important;
    padding: 7px 14px !important;
    gap: 6px !important;
  }
}

/* ==========================================================================
   Brand Mode Bar
   ========================================================================== */
.brand-mode-bar {
  background: linear-gradient(90deg, #071325, #0d2038, #071325);
  color: #ffffff;
  padding: 10px 0;
  border-bottom: 2px solid var(--gold);
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.brand-mode-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-mode-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-family: var(--font-body);
}

.brand-mode-logo-wrap {
  height: 32px;
  min-width: 48px;
  background: #ffffff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-mode-logo-wrap img {
  max-height: 22px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
}

.brand-mode-text strong {
  color: var(--gold);
  font-weight: 800;
  font-family: var(--font-heading);
}

.brand-mode-exit {
  background: rgba(201, 151, 56, 0.15);
  border: 1px solid var(--gold);
  color: #ffd885;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.brand-mode-exit:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 151, 56, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #152c52 0%, var(--primary) 70%);
  color: #ffffff;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(0, 168, 232, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(201, 151, 56, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 151, 56, 0.18);
  border: 1px solid rgba(201, 151, 56, 0.4);
  color: #ffd885;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-badge i {
  color: var(--gold);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.85rem;
  }
}

.hero-title .highlight {
  color: var(--gold);
  background: linear-gradient(135deg, #ffd885, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: #e2e8f0;
  margin-bottom: 30px;
  max-width: 620px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, #dfb251, var(--gold));
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(201, 151, 56, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffd885, #dfb251);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(201, 151, 56, 0.5);
  color: var(--primary-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: #ffffff;
}

.hero-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hero-badge-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-check i {
  color: var(--cyan);
}

/* Hero Quick Form Card */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.hero-card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-card-header p {
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero-form-group {
  margin-bottom: 14px;
}

.hero-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.hero-form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--primary);
  outline: none;
  transition: var(--transition);
}

.hero-form-control:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.2);
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-section {
  margin-top: -35px;
  position: relative;
  z-index: 10;
}

.stats-card-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stats-card-wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info .stat-number {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Section Title & Layout
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.section-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-dark .section-badge {
  background: rgba(201, 151, 56, 0.15);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-dark .section-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   Brands Grid (9 Brands)
   ========================================================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 576px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 151, 56, 0.4);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-logo-holder {
  width: 130px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.brand-logo-holder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-card:hover .brand-logo-holder {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.brand-devices-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.brand-action-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-card:hover .brand-action-link {
  color: var(--gold-hover);
  gap: 10px;
}

/* ==========================================================================
   Services Section (Appliance Grid)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-soft), rgba(0, 168, 232, 0.08));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: var(--primary);
  color: var(--gold);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
  font-size: 0.875rem;
}

.service-card-footer a {
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-footer a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Cross-Brand Interlinking (Crucial Feature)
   ========================================================================== */
.cross-brand-section {
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  padding: 35px 30px;
  margin: 40px 0;
  border: 1px solid var(--border-light);
}

.cross-brand-header {
  margin-bottom: 24px;
}

.cross-brand-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cross-brand-header h3 i {
  color: var(--gold);
}

.cross-brand-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cross-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .cross-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cross-brand-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.cross-brand-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cross-brand-item img {
  width: 48px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.cross-brand-item-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* ==========================================================================
   Page Headers & Breadcrumbs
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff;
  padding: 45px 0 50px;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.page-header-logo img {
  height: 38px;
  width: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs span.current {
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   Content Grid & Sidebars
   ========================================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 50px 0;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr 340px;
  }
}

.main-article {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.main-article h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin: 30px 0 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-soft);
}

.main-article h2:first-child {
  margin-top: 0;
}

.main-article h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-light);
  margin: 24px 0 12px;
}

.main-article p {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1.025rem;
}

.main-article ul, .main-article ol {
  margin-bottom: 24px;
  padding-right: 20px;
}

.main-article li {
  margin-bottom: 10px;
  color: var(--text-main);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: 1px solid rgba(201, 151, 56, 0.3);
}

.sidebar-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-widget-cta .sidebar-heading {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

.sidebar-phone-btn {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 900;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.sidebar-phone-btn:hover {
  background: var(--gold-hover);
}

.sidebar-whatsapp-btn {
  background: var(--whatsapp);
  color: #fff;
  font-weight: 800;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.925rem;
}

.sidebar-links a:hover {
  color: var(--gold);
  padding-right: 6px;
}

/* ==========================================================================
   Areas Grid (Governorates)
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 576px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.area-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.area-badge i {
  color: var(--gold);
}

.area-badge:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 18px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  gap: 15px;
}

.faq-question i {
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer & Legal Disclaimer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

/* Mandatory Legal Disclaimer Box */
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 151, 56, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  text-align: right;
  line-height: 1.8;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd885;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.disclaimer-badge i {
  color: var(--gold);
  font-size: 1.1rem;
}

.disclaimer-main-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.disclaimer-sub-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.disclaimer-sub-text a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  gap: 15px;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Floating Action Buttons & Mobile Bottom Bar
   ========================================================================== */
.float-buttons {
  position: fixed;
  bottom: 85px;
  left: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 992px) {
  .float-buttons {
    bottom: 30px;
  }
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  position: relative;
}

.float-btn.call {
  background: linear-gradient(135deg, var(--gold), #9a6b18);
}

.float-btn.whatsapp {
  background: var(--whatsapp);
}

.float-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* Mobile Fixed Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 65px;
  z-index: 1040;
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  flex: 1;
  height: 100%;
  gap: 4px;
}

.bottom-nav-item i {
  font-size: 1.15rem;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--gold);
}

.bottom-nav-item.call-action {
  color: #ffffff;
  position: relative;
  top: -14px;
}

.bottom-nav-item.call-action .call-circle {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--gold), #a3721e);
  border: 4px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(201, 151, 56, 0.4);
}

.bottom-nav-item.call-action .call-circle i {
  font-size: 1.4rem;
  color: #ffffff;
}

/* ==========================================================================
   Booking Modal (3-Steps)
   ========================================================================== */
.booking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 19, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  width: 90%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow: hidden;
}

.booking-overlay.active, .booking-modal.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  background: var(--primary);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--gold);
}

.modal-close {
  color: #cbd5e1;
  font-size: 1.4rem;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
}

.booking-steps-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
}

.step-indicator.active .step-bubble {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.step-indicator.completed .step-bubble {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.device-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.device-pick-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.device-pick-card:hover, .device-pick-card.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.device-pick-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1090;
  display: none;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  bottom: 0;
  width: 300px;
  background: #ffffff;
  z-index: 1100;
  padding: 24px 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: right 0.3s ease;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-header img {
  height: 38px;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 10px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--primary);
}

.mobile-nav-list a i {
  color: var(--gold);
  width: 20px;
}

.mobile-nav-list a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ==========================================================================
   Creative Smart Booking Station (محطة الحجز الذكي المبتكرة)
   ========================================================================== */

.smart-booking-station {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  box-shadow: 0 16px 40px rgba(8, 19, 37, 0.08), 0 0 0 1px rgba(201, 151, 56, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.smart-booking-station::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
}

.station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.station-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.station-title i {
  color: var(--gold);
  font-size: 1.3rem;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.booking-step-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-step-label span.step-num {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Device Selector Cards */
.device-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .device-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.device-select-btn {
  background: var(--bg-subtle);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.device-select-btn:hover {
  background: #ffffff;
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.device-select-btn.active {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(201, 151, 56, 0.2);
}

.device-select-btn i {
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.device-select-btn.active i {
  color: var(--gold);
  transform: scale(1.15);
}

.device-select-btn span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.device-select-btn.active span {
  color: var(--primary);
  font-weight: 800;
}

/* Brand Chips */
.brand-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.brand-chip-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-chip-item:hover {
  border-color: var(--cyan);
  background: #ffffff;
}

.brand-chip-item.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 19, 37, 0.15);
}

.brand-chip-item img {
  height: 14px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  filter: grayscale(1);
  transition: var(--transition);
}

.brand-chip-item.active img {
  filter: brightness(0) invert(1);
}

/* Symptoms Tag Cloud */
.symptom-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.symptom-tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.symptom-tag:hover {
  border-color: var(--gold);
  color: var(--primary);
  background: var(--gold-light);
}

.symptom-tag.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Time Slot Selector */
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .timeslot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeslot-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeslot-btn:hover {
  background: #ffffff;
  border-color: var(--border-color);
}

.timeslot-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(8, 19, 37, 0.15);
}

.timeslot-btn.emergency {
  border-color: rgba(230, 57, 70, 0.3);
  color: #e63946;
}

.timeslot-btn.emergency.active {
  background: #e63946;
  color: #ffffff;
  border-color: #e63946;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Dynamic Live Estimate Box */
.estimate-live-box {
  background: linear-gradient(135deg, rgba(8, 19, 37, 0.03), rgba(201, 151, 56, 0.08));
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.estimate-item {
  font-size: 0.8rem;
}

.estimate-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 2px;
}

.estimate-item span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* Booking Action Buttons */
.station-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

@media (max-width: 576px) {
  .station-actions {
    grid-template-columns: 1fr;
  }
}

.btn-whatsapp-confirm {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-whatsapp-confirm:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Celebration State */
.celebration-view {
  text-align: center;
  padding: 30px 15px;
}

.celebration-badge {
  width: 70px;
  height: 70px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.booking-code-chip {
  background: #f8fafc;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-block;
  margin: 14px 0 20px;
}

.booking-code-chip strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 2px;
}



/* ==========================================================================
   Grid System & Responsive Layouts
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1080px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card Base */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

/* Brand Hub Card */
.brand-hub-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(8, 19, 37, 0.04);
  transition: var(--transition);
  position: relative;
  border-top: 4px solid var(--gold);
}

.brand-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(8, 19, 37, 0.1);
  border-color: var(--border-gold);
}

.brand-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.brand-hub-logo-stage {
  height: 52px;
  min-width: 100px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-hub-logo-stage img {
  max-height: 36px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
}

.brand-hub-badge {
  background: var(--gold-soft);
  color: #936b1e;
  border: 1px solid rgba(201, 151, 56, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-hub-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.brand-hub-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.brand-hub-devices {
  margin-bottom: 20px;
}

.brand-hub-devices-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-device-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  margin-left: 6px;
  margin-bottom: 6px;
  transition: var(--transition);
}

.brand-device-tag:hover {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold);
}

.brand-hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.94rem;
  font-family: var(--font-heading);
  transition: var(--transition);
  text-decoration: none;
}

.brand-hub-btn:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 151, 56, 0.3);
}

/* Category Brand Card */
.category-brand-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(8, 19, 37, 0.04);
  transition: var(--transition);
  border-top: 4px solid var(--cyan);
}

.category-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(8, 19, 37, 0.1);
  border-color: var(--border-gold);
  border-top-color: var(--gold);
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-card-logo-wrap {
  height: 48px;
  min-width: 90px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.category-card-logo-wrap img {
  max-height: 32px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.category-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.category-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 6px;
}

.category-card-features li i {
  color: var(--success);
  font-size: 0.8rem;
}

/* Brand Services Sub-Nav under Breadcrumbs */
.brand-services-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 12px 0;
  position: relative;
  z-index: 90;
}

.brand-services-subnav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-services-subnav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.brand-services-subnav-label i {
  color: var(--gold);
  font-size: 1.05rem;
}

.brand-services-subnav-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  white-space: nowrap;
}

.brand-subnav-pill i {
  color: var(--gold);
}

.brand-subnav-pill:hover {
  background: var(--gold-soft);
  color: #936b1e;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.brand-subnav-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 19, 37, 0.2);
}

.brand-subnav-pill.active i {
  color: var(--gold);
}

.brand-subnav-pill.portal-chip {
  background: #fff;
  border: 1px dashed var(--gold);
  color: #936b1e;
}
