/* ==========================================================================
   AQAR SCHOOL - عقار سكول
   Design System: Emerald Green + White (Modern)
   Bilingual: Arabic (RTL) + English (LTR)
   ========================================================================== */

:root {
  /* Brand Colors */
  --emerald-900: #1E40AF;
  --emerald-800: #1E3A8A;
  --emerald-700: #2563EB;
  --emerald-600: #2563EB;
  --emerald-500: #60A5FA;
  --emerald-400: #60A5FA;
  --emerald-300: #93C5FD;
  --emerald-100: #DBEAFE;
  --emerald-50:  #EFF6FF;

  --gold: #3B82F6;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white: #ffffff;
  --success: #60A5FA;
  --warning: #3B82F6;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-ar: "Cairo", "Tajawal", system-ui, -apple-system, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 10px 25px rgba(15,23,42,.08), 0 4px 10px rgba(15,23,42,.04);
  --shadow-lg: 0 25px 50px rgba(15,23,42,.15);
  --shadow-emerald: 0 15px 40px rgba(21,122,145,.25);

  --container: 1280px;
  --nav-h: 76px;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); }
html[lang="en"] { direction: ltr; }
html[lang="ar"] { direction: rtl; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAVIGATION ============ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; color: var(--emerald-800);
}
.brand-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  border-radius: 12px;
  display: grid; place-items: center;
  color: white; font-weight: 900; font-size: 20px;
  box-shadow: var(--shadow-emerald);
}
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--ink-700);
  transition: all .2s ease;
}
.nav-links a:hover { background: var(--emerald-50); color: var(--emerald-700); }
.nav-links a.active { background: var(--emerald-100); color: var(--emerald-800); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--ink-300); font-weight: 700; font-size: 13px;
  background: white; color: var(--ink-700); transition: all .2s;
}
.lang-toggle:hover { border-color: var(--emerald-500); color: var(--emerald-700); }

.nav-toggle { display: none; font-size: 24px; color: var(--ink-700); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  transition: all .25s ease; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: white; box-shadow: var(--shadow-emerald);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(21,122,145,.35); }
.btn-secondary {
  background: white; color: var(--emerald-700);
  border-color: var(--emerald-500);
}
.btn-secondary:hover { background: var(--emerald-50); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 0 80px;
  background:
    radial-gradient(60% 80% at 90% 10%, var(--emerald-100) 0%, transparent 60%),
    radial-gradient(40% 60% at 10% 90%, #fdf6e3 0%, transparent 60%),
    linear-gradient(180deg, #f8fffb 0%, white 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(21,122,145,.08) 2px, transparent 2px);
  background-size: 40px 40px;
  opacity: .4;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--emerald-100); color: var(--emerald-800);
  font-weight: 700; font-size: 13px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.15; font-weight: 900;
  color: var(--ink-900); margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--emerald-600), var(--emerald-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--ink-500); margin-bottom: 32px; max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 24px; background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--ink-100);
}
.stat-num { font-size: 28px; font-weight: 900; color: var(--emerald-700); }
.stat-label { font-size: 13px; color: var(--ink-500); font-weight: 600; }

.hero-visual {
  position: relative; aspect-ratio: 1/1;
  max-width: 520px; margin-inline-start: auto;
}
.hero-card {
  position: absolute;
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px; border: 1px solid var(--ink-100);
}
.hv-main {
  inset-block: 5% 10%; inset-inline: 15% 5%;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: white; padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.hv-main h3 { font-size: 22px; margin-bottom: 8px; }
.hv-main .price { font-size: 32px; font-weight: 900; margin-block: 16px; }
.hv-stat { top: 8%; inset-inline-start: -2%; width: 200px; }
.hv-ai { bottom: 12%; inset-inline-start: -6%; width: 220px; }
.hv-tag {
  font-size: 12px; color: var(--emerald-700); font-weight: 700;
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.hv-tag::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); }

/* ============ SECTIONS ============ */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--emerald-100); color: var(--emerald-800);
  border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2; font-weight: 900; color: var(--ink-900);
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-500); font-size: 17px; }

/* ============ PROBLEMS / SOLUTIONS ============ */
.problems { background: var(--ink-50); }
.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.problem-card {
  background: white; border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--ink-100);
  transition: transform .25s, box-shadow .25s;
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.problem-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; margin-bottom: 16px;
}
.problem-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.problem-card p { color: var(--ink-500); font-size: 14px; margin-bottom: 16px; }
.solution-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--emerald-50); color: var(--emerald-700);
  font-size: 12px; font-weight: 700;
}

/* ============ FEATURE GRID ============ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.feature-card {
  position: relative;
  background: white; border-radius: var(--radius-md);
  padding: 30px; border: 1px solid var(--ink-100);
  transition: all .3s ease; overflow: hidden;
}
.feature-card::after {
  content:""; position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 4px; height: 0; background: var(--emerald-500); transition: height .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.feature-card:hover::after { height: 100%; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-50));
  color: var(--emerald-700);
  display: grid; place-items: center; font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h4 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--ink-500); font-size: 15px; line-height: 1.7; }
.feature-list { list-style: none; margin-top: 14px; }
.feature-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-700); margin-bottom: 6px;
}
.feature-list li::before {
  content: "✓"; color: var(--emerald-600); font-weight: 900;
}

/* ============ SERVICES (For audiences) ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 36px;
  background: white; border: 1px solid var(--ink-100);
  transition: all .3s;
}
.service-card.emerald {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: white;
}
.service-card.emerald p { color: rgba(255,255,255,.85); }
.service-card.gold {
  background: linear-gradient(135deg, #DBEAFE, #ffc78f);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.service-card p { font-size: 15px; margin-bottom: 20px; }
.service-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.2); color: inherit;
  display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
}
.service-card.gold .service-ic { background: rgba(212,175,55,.25); color: var(--emerald-900); }
.service-card:not(.emerald):not(.gold) .service-ic { background: var(--emerald-100); color: var(--emerald-700); }

/* ============ FORMS ============ */
.form-wrap {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 40px;
  border: 1px solid var(--ink-100);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block; font-weight: 700; font-size: 14px;
  color: var(--ink-700); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--ink-300); background: white;
  font-size: 15px; color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(21,122,145,.12);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-help { font-size: 12px; color: var(--ink-500); margin-top: 6px; }

/* Stepper */
.stepper {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; position: relative;
  counter-reset: step;
}
.stepper::before {
  content:""; position: absolute; top: 20px;
  inset-inline: 40px; height: 2px; background: var(--ink-100); z-index: 0;
}
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; text-align: center;
}
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: white; border: 2px solid var(--ink-300);
  display: grid; place-items: center;
  font-weight: 800; color: var(--ink-500);
  transition: all .3s;
}
.step.active .step-circle { background: var(--emerald-500); color: white; border-color: var(--emerald-500); }
.step.completed .step-circle {
  background: var(--emerald-600); color: white; border-color: var(--emerald-600);
}
.step-label { font-size: 13px; font-weight: 600; color: var(--ink-500); }
.step.active .step-label, .step.completed .step-label { color: var(--emerald-700); }

.form-step { display: none; animation: fadeUp .4s ease; }
.form-step.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Checkbox group */
.check-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px;
}
.check-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--ink-300); cursor: pointer;
  transition: all .2s;
}
.check-box input { accent-color: var(--emerald-600); width: 18px; height: 18px; }
.check-box:hover { border-color: var(--emerald-400); background: var(--emerald-50); }
.check-box input:checked ~ span { color: var(--emerald-700); font-weight: 700; }

/* Signature Pad */
.sig-wrap {
  border: 2px dashed var(--ink-300); border-radius: var(--radius-md);
  background: var(--ink-50); padding: 12px;
}
.sig-canvas {
  width: 100%; height: 180px; background: white;
  border-radius: 10px; cursor: crosshair; touch-action: none;
}
.sig-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ============ UNITS LISTING ============ */
.units-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.unit-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--ink-100); transition: all .3s;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.unit-media {
  position: relative; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  display: grid; place-items: center; color: white; font-size: 48px;
}
.unit-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold); color: var(--ink-900);
  font-weight: 800; font-size: 12px;
}
.unit-badge.ready { background: var(--emerald-500); color: white; }
.unit-badge.offplan { background: #3b82f6; color: white; }
.unit-body { padding: 20px; }
.unit-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.unit-loc { font-size: 13px; color: var(--ink-500); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.unit-specs {
  display: flex; gap: 14px; padding-block: 12px;
  border-block: 1px solid var(--ink-100);
  color: var(--ink-700); font-size: 13px;
}
.unit-specs span { display: flex; align-items: center; gap: 4px; }
.unit-price {
  margin-top: 14px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.unit-price .p {
  font-size: 22px; font-weight: 900; color: var(--emerald-700);
}
.unit-price small { font-size: 12px; color: var(--ink-500); }

/* Filters */
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  background: white; padding: 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
  border: 1px solid var(--ink-100);
}

/* ============ MORTGAGE CALCULATOR ============ */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-card { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); border: 1px solid var(--ink-100); }
.range-wrap { display: flex; flex-direction: column; gap: 6px; }
.range-wrap input[type="range"] { accent-color: var(--emerald-600); }
.range-values { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }
.result-tile {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: white; border-radius: var(--radius-lg); padding: 32px;
}
.result-big {
  font-size: 44px; font-weight: 900; margin-block: 8px;
}
.result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.result-row:last-child { border-bottom: 0; }
.result-row .lbl { color: rgba(255,255,255,.75); }
.result-row .val { font-weight: 700; }

.banks-table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.banks-table th {
  background: var(--emerald-700); color: white; font-weight: 700;
  padding: 14px; text-align: start; font-size: 14px;
}
.banks-table td { padding: 14px; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.banks-table tr:last-child td { border-bottom: 0; }
.banks-table tr:hover { background: var(--emerald-50); }
.bank-logo-mini {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--emerald-100); color: var(--emerald-700);
  display: inline-grid; place-items: center; font-weight: 900; margin-inline-end: 8px;
}

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.news-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--ink-100); transition: all .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
  position: relative;
}
.news-image.featured { aspect-ratio: 16/10; }
.news-cat {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: white; color: var(--emerald-700);
  font-weight: 800; font-size: 11px;
}
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
.news-body.featured h3 { font-size: 24px; }
.news-body p { color: var(--ink-500); font-size: 14px; margin-bottom: 12px; flex: 1; }
.news-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }

/* ============ PODCAST ============ */
.podcast-hero {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: white; border-radius: var(--radius-xl);
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; overflow: hidden; position: relative;
}
.podcast-hero::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 90% 30%, rgba(212,175,55,.25), transparent 70%);
}
.podcast-hero > * { position: relative; }
.podcast-cover {
  aspect-ratio: 1/1; max-width: 320px;
  margin-inline: auto; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), #3B82F6);
  display: grid; place-items: center; font-size: 120px;
  box-shadow: var(--shadow-lg);
}
.player {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 20px; margin-top: 24px;
}
.player-bar {
  height: 6px; background: rgba(255,255,255,.2); border-radius: 999px;
  position: relative; margin-block: 12px;
}
.player-bar .fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 35%;
  background: var(--gold); border-radius: 999px;
}
.player-controls {
  display: flex; justify-content: center; gap: 20px; align-items: center;
}
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; color: var(--emerald-800);
  display: grid; place-items: center; font-size: 22px;
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.08); }

.episodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.episode-card {
  background: white; border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--ink-100);
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  transition: all .3s;
}
.episode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ep-cover {
  width: 72px; height: 72px; border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
  color: var(--gold);
  display: grid; place-items: center; font-size: 28px;
}
.ep-body h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.ep-body p { font-size: 12px; color: var(--ink-500); }
.ep-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--ink-500); }
.ep-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emerald-100); color: var(--emerald-700);
  display: grid; place-items: center; font-size: 16px;
  transition: all .2s;
}
.ep-play:hover { background: var(--emerald-600); color: white; }

/* ============ DASHBOARD ============ */
.dash-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: var(--emerald-900); color: white;
  padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 32px;
  color: white; font-weight: 800; font-size: 18px;
}
.dash-brand .brand-logo { background: var(--gold); color: var(--emerald-900); }
.dash-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dash-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.dash-menu a:hover { background: rgba(255,255,255,.08); color: white; }
.dash-menu a.active { background: var(--emerald-700); color: white; }
.dash-menu .sep { padding: 14px 14px 6px; font-size: 11px; color: rgba(255,255,255,.4); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.dash-main { background: var(--ink-50); padding: 28px; overflow: auto; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dash-header h1 { font-size: 26px; font-weight: 900; }
.dash-header p { color: var(--ink-500); font-size: 14px; margin-top: 2px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.kpi-card {
  background: white; border-radius: var(--radius-md);
  padding: 22px; border: 1px solid var(--ink-100);
  position: relative; overflow: hidden;
}
.kpi-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--emerald-100); color: var(--emerald-700);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px;
}
.kpi-card .val { font-size: 30px; font-weight: 900; color: var(--ink-900); }
.kpi-card .lbl { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.kpi-trend { font-size: 12px; font-weight: 700; margin-top: 6px; }
.kpi-trend.up { color: var(--emerald-600); }
.kpi-trend.down { color: var(--danger); }

.panel {
  background: white; border-radius: var(--radius-md);
  padding: 24px; border: 1px solid var(--ink-100);
}
.panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.panel h3 small { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: start; font-weight: 700; font-size: 13px;
  color: var(--ink-500); padding: 10px; border-bottom: 1px solid var(--ink-100);
  text-transform: uppercase; letter-spacing: .5px;
}
.dash-table td { padding: 12px 10px; font-size: 14px; border-bottom: 1px solid var(--ink-100); }
.dash-table tr:last-child td { border-bottom: 0; }
.pill {
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; display: inline-block;
}
.pill.success { background: var(--emerald-100); color: var(--emerald-800); }
.pill.warn { background: #DBEAFE; color: #92400e; }
.pill.danger { background: #fee2e2; color: #991b1b; }
.pill.info { background: #dbeafe; color: #1e40af; }

/* Chart canvas */
.chart-box { height: 260px; display: grid; place-items: center; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 12px; width: 100%; }
.bar {
  flex: 1; background: linear-gradient(180deg, var(--emerald-500), var(--emerald-700));
  border-radius: 8px 8px 0 0; position: relative; min-height: 10px;
  transition: transform .3s;
}
.bar:hover { transform: scaleY(1.05); transform-origin: bottom; }
.bar-label { position: absolute; bottom: -22px; inset-inline: 0; text-align: center; font-size: 11px; color: var(--ink-500); font-weight: 600; }

/* Progress bars */
.progress-bar { height: 8px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--emerald-500), var(--emerald-700)); border-radius: 999px; }

/* Badge */
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #fee2e2; color: #991b1b; font-size: 11px; font-weight: 800;
}
.badge-live::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: white; border-radius: var(--radius-xl);
  padding: 60px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(212,175,55,.2), transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 28px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-900); color: rgba(255,255,255,.8);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer h5 { color: white; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,.7); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--emerald-400); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.6); max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: white;
  display: grid; place-items: center; font-size: 16px;
}
.footer-social a:hover { background: var(--emerald-600); }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px;
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  padding: 32px; box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease;
}
.modal h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.modal p { color: var(--ink-500); margin-bottom: 20px; }
.modal-ic {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--emerald-100); color: var(--emerald-700);
  display: grid; place-items: center; font-size: 30px; margin-bottom: 16px;
}

/* ============ AI HELPER WIDGET ============ */
.ai-helper {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: white; border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); cursor: pointer; z-index: 900;
  transition: all .3s;
}
.ai-helper:hover { transform: translateY(-4px) scale(1.02); }
.ai-helper .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s infinite;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-top: 40px; }
  .calc-grid { grid-template-columns: 1fr; }
  .podcast-hero { grid-template-columns: 1fr; padding: 32px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-2-eq { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: fixed; inset-inline-start: -260px; width: 260px; height: 100vh; transition: inset-inline-start .3s; z-index: 1100; }
  .dash-sidebar.open { inset-inline-start: 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); inset-inline: 0; background: white; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
  section { padding: 60px 0; }
  .stepper { gap: 4px; }
  .step-label { font-size: 11px; }
  .form-wrap { padding: 24px; }
}

/* ============ LISTINGS PAGE ============ */
.listings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.filter-sidebar {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.filter-sidebar h4 {
  font-size: 14px; font-weight: 800; color: var(--ink-900);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between;
}
.filter-group { margin-bottom: 22px; }
.filter-group label { display: block; font-size: 13px; color: var(--ink-500); margin-bottom: 8px; font-weight: 600; }
.filter-group input, .filter-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--ink-100);
  border-radius: 10px; font-size: 14px; background: var(--ink-50);
  transition: all .2s;
}
.filter-group input:focus, .filter-group select:focus {
  outline: none; border-color: var(--emerald-500); background: white;
}
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input { flex: 1; }
.range-row span { color: var(--ink-500); font-size: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--ink-50); border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s; color: var(--ink-700); font-weight: 600;
}
.chip:hover { background: var(--emerald-50); color: var(--emerald-700); }
.chip.active { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }
.listings-main .toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; background: white; padding: 14px 18px;
  border-radius: var(--radius-md); border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm); flex-wrap: wrap; gap: 10px;
}
.toolbar .count { font-weight: 700; color: var(--emerald-700); font-size: 14px; }
.toolbar .sort select {
  padding: 8px 12px; border: 1.5px solid var(--ink-100); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-700); background: white;
}
.view-toggle { display: flex; gap: 4px; background: var(--ink-50); padding: 4px; border-radius: 10px; }
.view-toggle button {
  padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-500);
}
.view-toggle button.active { background: white; color: var(--emerald-700); box-shadow: var(--shadow-sm); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.listing-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm); transition: all .3s;
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.listing-img {
  height: 200px; background: linear-gradient(135deg, var(--emerald-100), var(--emerald-300));
  position: relative; display: grid; place-items: center; font-size: 56px; color: var(--emerald-700);
}
.listing-img .tag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--emerald-600); color: white; font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.listing-img .fav {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; background: rgba(255,255,255,.9); border-radius: 50%;
  display: grid; place-items: center; color: var(--danger);
}
.listing-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-body h4 { font-size: 17px; font-weight: 800; color: var(--ink-900); line-height: 1.4; }
.listing-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-500); }
.listing-specs {
  display: flex; gap: 14px; font-size: 12px; color: var(--ink-700);
  padding: 10px 0; border-top: 1px dashed var(--ink-100); border-bottom: 1px dashed var(--ink-100);
}
.listing-specs span { display: flex; align-items: center; gap: 4px; }
.listing-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px;
}
.listing-price { font-size: 20px; font-weight: 900; color: var(--emerald-700); }
.listing-price small { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 40px;
}
.pagination button {
  width: 40px; height: 40px; border-radius: 10px; font-weight: 700; font-size: 14px;
  background: white; color: var(--ink-700); border: 1px solid var(--ink-100);
}
.pagination button.active { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }
.pagination button:hover:not(.active) { background: var(--emerald-50); color: var(--emerald-700); }

/* ============ PROPERTY DETAIL ============ */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.gallery-main {
  grid-row: span 2;
  height: 460px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-700));
  display: grid; place-items: center; font-size: 80px; color: white;
  position: relative;
}
.gallery-main .btn {
  position: absolute; inset-inline-end: 16px; inset-block-end: 16px;
  background: rgba(255,255,255,.95); color: var(--ink-900); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  display: flex; gap: 6px; align-items: center;
}
.gallery-sub {
  height: 224px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-200, #bad7de), var(--emerald-500));
  display: grid; place-items: center; font-size: 44px; color: white;
}
.prop-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px; background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100); margin-bottom: 24px; flex-wrap: wrap; gap: 20px;
}
.prop-header h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; color: var(--ink-900); }
.prop-header .loc { color: var(--ink-500); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.prop-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.prop-tags .t {
  background: var(--emerald-50); color: var(--emerald-700);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.prop-price { text-align: end; }
.prop-price .num { font-size: 32px; font-weight: 900; color: var(--emerald-700); }
.prop-price .per { font-size: 13px; color: var(--ink-500); }

.prop-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start;
}
.prop-card {
  background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.prop-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 16px; color: var(--ink-900); }
.prop-specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
}
.spec-box {
  text-align: center; padding: 16px 10px; background: var(--ink-50);
  border-radius: var(--radius-md);
}
.spec-box i { color: var(--emerald-600); font-size: 22px; margin-bottom: 6px; }
.spec-box .v { font-weight: 900; font-size: 18px; color: var(--ink-900); }
.spec-box .l { font-size: 12px; color: var(--ink-500); }
.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.amenity {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; background: var(--ink-50); border-radius: 10px;
  font-size: 13px; color: var(--ink-700);
}
.amenity i { color: var(--emerald-600); }

.prop-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.contact-card {
  background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-md); margin-bottom: 16px;
}
.agent {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink-100);
}
.agent-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  display: grid; place-items: center; font-size: 24px; color: white;
}
.agent-info .n { font-weight: 800; color: var(--ink-900); }
.agent-info .r { font-size: 12px; color: var(--ink-500); }
.agent-info .stars { color: var(--gold); font-size: 13px; margin-top: 2px; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 40px;
}
.contact-method {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 28px 22px; text-align: center; transition: all .3s; box-shadow: var(--shadow-sm);
}
.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.contact-method .ic {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--emerald-50); color: var(--emerald-600);
  display: grid; place-items: center; font-size: 26px;
}
.contact-method h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--ink-900); }
.contact-method p { font-size: 13px; color: var(--ink-500); margin-bottom: 10px; }
.contact-method .val { font-size: 15px; font-weight: 700; color: var(--emerald-700); }

.contact-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.faq-item {
  background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden;
  transition: all .2s;
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--emerald-300); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-weight: 700; color: var(--ink-900); cursor: pointer;
  width: 100%; text-align: start;
}
.faq-q i { color: var(--emerald-600); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s;
  padding: 0 20px; color: var(--ink-500); font-size: 14px; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 20px; }

.topic-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* ============ SUBMIT PROPERTY ============ */
.upload-area {
  border: 2.5px dashed var(--emerald-300);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center; background: var(--emerald-50);
  transition: all .3s; cursor: pointer;
}
.upload-area:hover { background: var(--emerald-100); border-color: var(--emerald-500); }
.upload-area i { font-size: 50px; color: var(--emerald-600); margin-bottom: 14px; }
.upload-area h4 { font-size: 17px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.upload-area p { font-size: 13px; color: var(--ink-500); }
.uploaded-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.uploaded-item {
  height: 100px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-300), var(--emerald-600));
  display: grid; place-items: center; color: white; font-size: 24px;
  position: relative;
}
.uploaded-item .x {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: white; font-size: 12px;
  display: grid; place-items: center; cursor: pointer;
}

/* ============ FLOATING BUTTONS ============ */
.whatsapp-float {
  position: fixed; inset-block-end: 90px; inset-inline-start: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white; font-size: 28px;
  display: grid; place-items: center; z-index: 899;
  box-shadow: 0 10px 25px rgba(37,211,102,.4); transition: all .3s;
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(37,211,102,.3); animation: pulse 2s infinite; z-index: -1;
}
.back-to-top {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  width: 48px; height: 48px; border-radius: 14px;
  background: white; color: var(--emerald-700);
  display: none; place-items: center; z-index: 899;
  box-shadow: var(--shadow-md); border: 1.5px solid var(--emerald-200);
  font-size: 18px; transition: all .3s;
}
.back-to-top.show { display: grid; }
.back-to-top:hover { background: var(--emerald-600); color: white; transform: translateY(-4px); }

@media (max-width: 980px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-side { position: static; }
  .property-gallery { grid-template-columns: 1fr 1fr; }
  .gallery-main { grid-column: span 2; grid-row: auto; height: 320px; }
  .contact-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .property-gallery { grid-template-columns: 1fr; }
  .gallery-main { grid-column: auto; height: 260px; }
  .gallery-sub { height: 160px; }
  .prop-price { text-align: start; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 24px; }
}

/* ============ AI SEARCH (Chat style) ============ */
.ai-search-hero {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: white; padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.ai-search-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(212,175,55,.18), transparent 70%);
}
.ai-search-hero > * { position: relative; z-index: 1; }
.ai-search-box {
  max-width: 840px; margin: 24px auto 0;
  background: white; border-radius: var(--radius-xl);
  padding: 20px; box-shadow: var(--shadow-lg);
  display: flex; gap: 10px;
}
.ai-search-box input {
  flex: 1; padding: 16px 20px; font-size: 16px;
  border: none; outline: none; color: var(--ink-900);
  background: transparent;
}
.ai-search-box button {
  padding: 14px 24px; background: var(--emerald-700); color: white;
  border-radius: var(--radius-lg); font-weight: 700; display: flex; gap: 8px; align-items: center;
}
.ai-chips {
  max-width: 900px; margin: 20px auto 0;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.ai-chip {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: white; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.ai-chip:hover { background: rgba(255,255,255,.22); }

.chat-ui {
  max-width: 860px; margin: 40px auto; display: flex; flex-direction: column; gap: 16px;
}
.msg {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 85%; animation: fadeUp .3s ease;
}
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.msg.bot .avatar { background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800)); color: white; }
.msg.user .avatar { background: var(--ink-100); color: var(--ink-700); }
.msg .bubble {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.7;
}
.msg.bot .bubble { background: white; border: 1px solid var(--ink-100); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.msg.user .bubble { background: var(--emerald-600); color: white; }
.msg-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-top: 12px;
}
.res-mini {
  background: white; border: 1px solid var(--ink-100); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  transition: all .2s;
}
.res-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.res-mini .t { font-weight: 800; font-size: 14px; color: var(--ink-900); }
.res-mini .p { font-weight: 900; color: var(--emerald-700); font-size: 16px; }
.res-mini .m { font-size: 12px; color: var(--ink-500); }

.typing-dots {
  display: inline-flex; gap: 4px;
}
.typing-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500);
  animation: pulse 1.3s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

/* ============ BROKER PROFILE ============ */
.broker-hero {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: white; padding: 60px 0;
}
.broker-profile {
  display: grid; grid-template-columns: 320px 1fr; gap: 32px;
  align-items: start;
}
.broker-card-big {
  background: white; border-radius: var(--radius-xl);
  padding: 28px; text-align: center;
  box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--nav-h) + 20px);
}
.broker-avatar-big {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
  color: white; font-size: 60px; display: grid; place-items: center;
  margin: -80px auto 16px; border: 6px solid white; box-shadow: var(--shadow-md);
  position: relative;
}
.broker-avatar-big .verified {
  position: absolute; bottom: 6px; right: 6px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--info); color: white; font-size: 16px;
  display: grid; place-items: center; border: 3px solid white;
}
.broker-tier {
  display: inline-block; padding: 6px 16px;
  background: linear-gradient(135deg, #ffc78f, var(--gold));
  color: #7c2d12; border-radius: 999px; font-size: 12px; font-weight: 800;
  margin-bottom: 8px;
}
.stars-big { color: var(--gold); font-size: 16px; margin: 6px 0; }
.broker-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; padding: 18px 0; margin: 16px 0;
  border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100);
}
.broker-stats .s { text-align: center; }
.broker-stats .v { font-weight: 900; color: var(--emerald-700); font-size: 18px; }
.broker-stats .l { font-size: 11px; color: var(--ink-500); }
.contact-row { display: flex; flex-direction: column; gap: 8px; }
.social-icons { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: white; font-size: 15px;
}
.sc-fb { background: #1877F2; }
.sc-ig { background: #E4405F; }
.sc-ln { background: #0A66C2; }
.sc-tw { background: #1DA1F2; }
.sc-tk { background: #000; }
.sc-yt { background: #FF0000; }
.sc-wa { background: #25D366; }

.review-item {
  padding: 16px; border-radius: var(--radius-md);
  background: var(--ink-50); margin-bottom: 10px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-head .n { font-weight: 800; color: var(--ink-900); }
.review-head .stars { color: var(--gold); font-size: 13px; }
.review-p { font-size: 13px; color: var(--ink-700); line-height: 1.7; }
.review-date { font-size: 11px; color: var(--ink-500); margin-top: 4px; }

.response-badge {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: var(--emerald-50); color: var(--emerald-700); font-weight: 700;
}
.lang-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px;
  background: var(--ink-50); color: var(--ink-700); font-weight: 700;
}

/* ============ TOP 10 RANKINGS ============ */
.rank-tabs {
  display: flex; gap: 4px; padding: 6px;
  background: var(--ink-100); border-radius: var(--radius-lg);
  max-width: 560px; margin: 0 auto 40px;
}
.rank-tabs button {
  flex: 1; padding: 12px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14px; color: var(--ink-500);
}
.rank-tabs button.active {
  background: white; color: var(--emerald-700); box-shadow: var(--shadow-sm);
}
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: grid; grid-template-columns: 80px 72px 1fr auto; gap: 16px;
  padding: 18px 22px; background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); align-items: center; transition: all .3s;
}
.rank-item:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.rank-num {
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num { background: linear-gradient(135deg, #3B82F6, #1D4ED8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rank-item:nth-child(2) .rank-num { background: linear-gradient(135deg, #94a3b8, #475569); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rank-item:nth-child(3) .rank-num { background: linear-gradient(135deg, #fb923c, #c2410c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rank-logo {
  width: 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center; font-size: 34px; color: white;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
}
.rank-info h4 { font-size: 17px; font-weight: 800; color: var(--ink-900); margin-bottom: 4px; }
.rank-info .meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-500); flex-wrap: wrap; }
.rank-info .meta .stars { color: var(--gold); }
.rank-kpi { text-align: center; }
.rank-kpi .v { font-weight: 900; color: var(--emerald-700); font-size: 18px; }
.rank-kpi .l { font-size: 11px; color: var(--ink-500); }

/* ============ COMMUNITY WALL ============ */
.community-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
}
.compose-box {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.compose-box textarea {
  width: 100%; border: none; resize: vertical; min-height: 80px;
  font-size: 15px; padding: 8px 0; outline: none;
}
.compose-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--ink-100);
}
.compose-tools { display: flex; gap: 10px; color: var(--ink-500); }
.compose-tools button {
  width: 36px; height: 36px; border-radius: 10px; color: var(--ink-500);
  transition: all .2s;
}
.compose-tools button:hover { background: var(--emerald-50); color: var(--emerald-700); }

.post-card {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.post-head { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.post-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-700));
  color: white; font-size: 18px; display: grid; place-items: center;
}
.post-name { font-weight: 800; color: var(--ink-900); display: flex; gap: 6px; align-items: center; }
.post-name .v { color: var(--info); font-size: 13px; }
.post-meta { font-size: 12px; color: var(--ink-500); }
.post-body { color: var(--ink-700); line-height: 1.8; margin-bottom: 12px; }
.post-tag {
  display: inline-block; padding: 3px 10px; background: var(--emerald-50);
  color: var(--emerald-700); border-radius: 999px; font-size: 11px; font-weight: 700;
  margin-right: 6px;
}
.post-actions {
  display: flex; gap: 22px; padding-top: 12px;
  border-top: 1px solid var(--ink-100);
}
.post-actions button {
  display: flex; gap: 6px; align-items: center; color: var(--ink-500);
  font-weight: 600; font-size: 13px; transition: all .2s;
}
.post-actions button:hover { color: var(--emerald-700); }
.post-actions button.liked { color: var(--danger); }

.sidebar-card {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.sidebar-card h5 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--ink-900); }
.trend-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--ink-100);
}
.trend-item:last-child { border: none; }
.trend-item .t { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.trend-item .c { font-size: 11px; color: var(--ink-500); }

/* ============ STOCKS ============ */
.ticker-strip {
  background: var(--ink-900); color: white; padding: 12px 0;
  border-top: 2px solid var(--emerald-600); border-bottom: 2px solid var(--emerald-600);
  overflow: hidden; position: relative;
}
.ticker-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: tickerRoll 40s linear infinite;
}
@keyframes tickerRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700;
}
.ticker-item .up { color: var(--success); }
.ticker-item .dn { color: var(--danger); }

.stocks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.stock-card {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); transition: all .3s;
  position: relative; overflow: hidden;
}
.stock-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stock-card.up::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 4px; height: 100%; background: var(--success);
}
.stock-card.dn::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 4px; height: 100%; background: var(--danger);
}
.stock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stock-sym {
  font-weight: 900; font-size: 18px; color: var(--ink-900);
  padding: 4px 10px; background: var(--emerald-50); border-radius: 8px;
}
.stock-name { font-size: 13px; color: var(--ink-500); margin-bottom: 12px; }
.stock-price { font-size: 28px; font-weight: 900; color: var(--ink-900); margin-bottom: 4px; }
.stock-change {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.stock-change.up { background: #e6f0f3; color: #15803d; }
.stock-change.dn { background: #fee2e2; color: #b91c1c; }
.stock-chart-mini {
  height: 60px; margin-top: 14px; border-radius: 8px;
  background: linear-gradient(180deg, transparent, var(--emerald-50));
  position: relative; overflow: hidden;
}
.stock-chart-mini svg { width: 100%; height: 100%; }

.compare-table {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: var(--emerald-50); color: var(--emerald-800);
  font-weight: 800; font-size: 13px;
  padding: 14px 16px; text-align: start;
}
.compare-table td {
  padding: 14px 16px; font-size: 14px;
  border-top: 1px solid var(--ink-100); color: var(--ink-700);
}
.compare-table tr:hover { background: var(--ink-50); }

/* ============ PRICE CHECK + HISTORY ============ */
.fairness-gauge {
  background: linear-gradient(135deg, white, var(--emerald-50));
  border-radius: var(--radius-xl); padding: 40px;
  text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--emerald-100);
}
.gauge-circle {
  width: 220px; height: 220px; margin: 0 auto 20px;
  border-radius: 50%; position: relative;
  background: conic-gradient(
    var(--success) 0% 35%,
    var(--emerald-400) 35% 58%,
    var(--warning) 58% 80%,
    var(--danger) 80% 100%
  );
  display: grid; place-items: center;
}
.gauge-circle::before {
  content: ''; position: absolute; inset: 18px;
  background: white; border-radius: 50%;
}
.gauge-content {
  position: relative; text-align: center;
}
.gauge-score {
  font-size: 44px; font-weight: 900; color: var(--emerald-700); line-height: 1;
}
.gauge-lbl { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.gauge-needle {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 4px; height: 85px; background: var(--ink-900);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(20deg);
  border-radius: 4px;
}

.history-chart {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.history-chart svg { width: 100%; height: 280px; }
.history-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 20px;
}
.hk {
  padding: 16px; border-radius: var(--radius-md);
  background: var(--emerald-50); text-align: center;
}
.hk .v { font-weight: 900; color: var(--emerald-700); font-size: 20px; }
.hk .l { font-size: 12px; color: var(--ink-500); }

/* ============ PROPERTY MANAGEMENT ============ */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.svc-card-big {
  background: white; border-radius: var(--radius-xl);
  padding: 28px; border: 1.5px solid var(--ink-100);
  transition: all .3s; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.svc-card-big:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--emerald-300);
}
.svc-card-big .svc-ic {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: white; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 18px;
}
.svc-card-big h4 { font-size: 20px; font-weight: 900; color: var(--ink-900); margin-bottom: 8px; }
.svc-card-big p { color: var(--ink-500); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li {
  padding: 8px 0; font-size: 13px; color: var(--ink-700);
  display: flex; gap: 8px; align-items: center;
}
.svc-list li i { color: var(--emerald-600); }
.svc-price {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-100);
  font-weight: 900; color: var(--emerald-700); font-size: 18px;
}
.svc-price small { color: var(--ink-500); font-weight: 500; font-size: 12px; }

.pm-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-top: 30px;
}
.pm-feat {
  padding: 22px; background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); text-align: center;
}
.pm-feat .big-num {
  font-size: 40px; font-weight: 900;
  background: linear-gradient(135deg, var(--emerald-600), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pm-feat h5 { font-weight: 800; color: var(--ink-900); font-size: 15px; margin: 6px 0; }
.pm-feat p { font-size: 13px; color: var(--ink-500); }

/* ============ WOW FEATURES GRID ============ */
.wow-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.wow-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, white, var(--emerald-50));
  border: 1.5px solid var(--emerald-100);
  transition: all .3s; position: relative; overflow: hidden;
}
.wow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-400); }
.wow-card .badge-new {
  position: absolute; top: 12px; inset-inline-end: 12px;
  padding: 3px 10px; background: var(--gold); color: #7c2d12;
  font-size: 10px; font-weight: 800; border-radius: 999px;
}
.wow-card .wow-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: white; display: grid; place-items: center; font-size: 24px;
  margin-bottom: 14px;
}
.wow-card h4 { font-size: 17px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.wow-card p { font-size: 13px; color: var(--ink-500); line-height: 1.7; }

@media (max-width: 980px) {
  .broker-profile { grid-template-columns: 1fr; }
  .broker-card-big { position: static; }
  .community-layout { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 60px 56px 1fr; grid-template-areas: "num logo info" "num logo kpi"; }
  .rank-kpi { grid-area: kpi; text-align: start; }
}
@media (max-width: 720px) {
  .rank-item { grid-template-columns: 50px 1fr; grid-template-areas: "num info" "logo info" "kpi kpi"; gap: 10px; }
  .rank-logo { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
  .rank-num { font-size: 28px; }
  .gauge-circle { width: 180px; height: 180px; }
  .gauge-circle::before { inset: 14px; }
  .gauge-score { font-size: 36px; }
}

/* ==========================================================================
   DROPDOWN NAVIGATION
   ========================================================================== */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 8px;
  min-width: 230px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
  z-index: 1000;
}
.nav-links .dropdown li { display: block; }
.nav-links .dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800, #1e293b);
  transition: all 0.15s ease;
  text-decoration: none;
}
.nav-links .dropdown a:hover {
  background: var(--primary, #60A5FA);
  color: #fff;
}
.nav-links .has-dropdown:hover > .dropdown,
.nav-links .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* badge-new helper (for "رائج" label inside service cards) */
.badge-new {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-inline-start: 6px;
  vertical-align: middle;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-links .has-dropdown > a i.fa-chevron-down { display: none; }
}

/* ==========================================================================
   HOMEPAGE REDESIGN — Facebook-feed style
   ========================================================================== */

/* Top stocks ticker enhancements */
.ticker-strip {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
  position: relative;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 6px 0 12px rgba(0,0,0,.35);
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .8);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .8); }
  70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.ticker-track {
  display: flex;
  gap: 34px;
  animation: tickerRoll 55s linear infinite;
  white-space: nowrap;
  padding-inline-start: 20px;
}
.ticker-strip a.ticker-item {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ticker-strip a.ticker-item:hover { color: #60A5FA; }
.ticker-item .up { color: #60A5FA; }
.ticker-item .dn { color: #ef4444; }
@keyframes tickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
html[dir="ltr"] .ticker-track { animation: tickerRollLTR 55s linear infinite; }
@keyframes tickerRollLTR {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* AI Search Hero */
.ai-hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 400px at 50% -80px, rgba(31,143,170,.25), transparent),
    linear-gradient(180deg, #EFF6FF 0%, #f8fafc 100%);
  overflow: hidden;
  isolation: isolate;
}

/* ====================================================
   Hero Photo System — real-estate background images
   Each page sets --hero-img: url(...) on the hero section
   ==================================================== */
.has-hero-photo {
  position: relative;
  isolation: isolate;
}
.has-hero-photo::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}
.has-hero-photo::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,61,76,.55) 0%, rgba(0,61,76,.78) 70%, rgba(5,46,28,.92) 100%);
}
/* Variant: lighter overlay for image-forward heroes */
.has-hero-photo.hero-light::after{
  background:
    linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(239,245,247,.85) 100%);
}
/* Variant: vivid for cityscape heroes */
.has-hero-photo.hero-vivid::after{
  background:
    linear-gradient(135deg, rgba(0,61,76,.65) 0%, rgba(31,143,170,.45) 50%, rgba(255,122,0,.30) 100%);
}
/* Animated parallax effect on scroll */
@media (prefers-reduced-motion: no-preference){
  .has-hero-photo::before{
    animation: heroZoom 22s ease-in-out infinite alternate;
  }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
/* Make sure inner content stays above overlay */
.has-hero-photo > *{ position: relative; z-index: 1; }

/* When ai-hero has a background photo, switch text colors to white */
.ai-hero.has-hero-photo .ai-hero-h1,
.ai-hero.has-hero-photo .ai-hero-lead,
.ai-hero.has-hero-photo .ah-num,
.ai-hero.has-hero-photo .ah-lbl,
.ai-hero.has-hero-photo .hero-chip {
  color: #ffffff !important;
}
.ai-hero.has-hero-photo .ai-hero-lead { color: rgba(255,255,255,.85) !important; }
.ai-hero.has-hero-photo .ah-lbl { color: rgba(255,255,255,.75) !important; }
.ai-hero.has-hero-photo .hero-chip{
  background: rgba(255,122,0,.18);
  border: 1px solid rgba(255,122,0,.4);
  color: #3B82F6 !important;
  backdrop-filter: blur(6px);
}
.ai-hero.has-hero-photo .ai-hero-box{
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ai-hero.has-hero-photo .ai-hero-blobs{ display: none; }
.ai-hero.has-hero-photo .ai-chip{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.ai-hero.has-hero-photo .ai-chip:hover{
  background: rgba(255,122,0,.25);
  border-color: rgba(255,122,0,.5);
}

/* When broker-hero has a background photo */
.broker-hero.has-hero-photo h1,
.broker-hero.has-hero-photo p { color: #ffffff !important; }
.broker-hero.has-hero-photo p { color: rgba(255,255,255,.85) !important; }

/* ==========================================
   Quick Booking Form — Payment Method Cards
   ========================================== */
.qb-pay-method{
  display:flex; align-items:center; gap:12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  user-select: none;
}
.qb-pay-method:hover{
  border-color: var(--emerald-400, #60A5FA);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.qb-pay-method.active{
  border-color: var(--emerald-600, #2563EB);
  background: linear-gradient(135deg, #EFF6FF 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(21,122,145,.15);
}
.qb-pay-method.active::after{
  content: "✓";
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--emerald-600, #2563EB);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.qb-pay-method strong{
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1E40AF;
  margin-bottom: 2px;
}
.qb-pay-method small{
  font-size: 11px;
  color: #6b7280;
}
.qb-pay-icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.qb-pay-badge{
  position: absolute;
  top: -8px;
  inset-inline-end: 8px;
  background: linear-gradient(135deg, #3B82F6, #3B82F6);
  color: #78350f;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.qb-pay-panel{
  animation: panelSlideIn .35s ease both;
}
@keyframes panelSlideIn{
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form-level error state */
.form-control.is-invalid{
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}
.form-control.is-valid{
  border-color: #60A5FA !important;
}

/* Generic .hero with photo background */
.hero.has-hero-photo h1,
.hero.has-hero-photo h2,
.hero.has-hero-photo .lead{
  color: #ffffff !important;
}
.hero.has-hero-photo .lead{ color: rgba(255,255,255,.88) !important; }
.hero.has-hero-photo .hero-chip{
  background: rgba(255,122,0,.20);
  border: 1px solid rgba(255,122,0,.45);
  color: #ffc78f !important;
  backdrop-filter: blur(6px);
}

/* AI Search hero — already has dark bg, photo enhances it */
.ai-search-hero.has-hero-photo .hero-chip{
  background: rgba(255,122,0,.20) !important;
  border: 1px solid rgba(255,122,0,.45) !important;
  color: #ffc78f !important;
}

/* Launch hero, business hero, arena hero — all already use dark gradients,
   so photo just enhances the look. Keep their own text colors. */
.lx-hero.has-hero-photo,
.bd-hero.has-hero-photo,
.ar-hero.has-hero-photo{
  /* Their existing styles work; the ::before/::after add the photo + overlay */
}
.ai-hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ai-hero-blobs .blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35;
}
.ai-hero-blobs .b1 { width: 380px; height: 380px; background: #60A5FA; top: -100px; left: -80px; animation: blobFloat 14s ease-in-out infinite; }
.ai-hero-blobs .b2 { width: 300px; height: 300px; background: #06b6d4; top: 60px; right: -60px; animation: blobFloat 18s ease-in-out infinite reverse; }
.ai-hero-blobs .b3 { width: 260px; height: 260px; background: #8b5cf6; bottom: -80px; left: 40%; animation: blobFloat 16s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
}
.ai-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 900px;
}
.ai-hero-h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin: 14px 0 12px;
  letter-spacing: -.02em;
}
.ai-hero-lead {
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 28px;
}
.ai-hero-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #DBEAFE;
  border-radius: 18px;
  padding: 8px 8px 8px 18px;
  padding-inline-start: 52px;
  box-shadow: 0 20px 40px rgba(31, 143, 170, 0.18);
  max-width: 760px;
  margin: 0 auto;
}
.ai-hero-box:focus-within {
  border-color: #60A5FA;
  box-shadow: 0 20px 60px rgba(31, 143, 170, 0.35);
}
.ai-hero-icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #60A5FA;
  font-size: 20px;
}
.ai-hero-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
}
.ai-mic, .ai-cam {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: none;
  background: #f1f5f9;
  color: #60A5FA;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.ai-mic:hover, .ai-cam:hover { background: #e6f0f3; transform: scale(1.05); }
.ai-hero-btn {
  padding: 14px 22px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  white-space: nowrap;
}
.ai-hero-chips {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 20px;
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #DBEAFE;
  color: #1E3A8A;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.ai-chip:hover {
  background: #60A5FA;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31,143,170,.4);
}
.ai-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 44px auto 0;
  padding: 22px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.ah-num {
  font-size: 32px;
  font-weight: 900;
  color: #60A5FA;
  line-height: 1;
}
.ah-lbl {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin-top: 4px;
}

/* Quick tools grid */
.quick-tools {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.qt-card {
  text-align: center;
  padding: 22px 14px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #f1f5f9;
  text-decoration: none;
  color: #0f172a;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.qt-card::before {
  content: ""; position: absolute;
  inset: 0 0 auto 0; height: 4px;
  background: var(--c, #60A5FA);
  transform: scaleX(0); transform-origin: start;
  transition: transform .3s;
}
.qt-card:hover::before { transform: scaleX(1); }
.qt-card:hover {
  transform: translateY(-4px);
  border-color: var(--c, #60A5FA);
  box-shadow: 0 14px 30px rgba(15,23,42,.1);
}
.qt-ic {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--c, #60A5FA) 15%, #fff);
  color: var(--c, #60A5FA);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.qt-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.qt-card p { font-size: 11.5px; color: #64748b; font-weight: 600; }

/* Feed headers / small link */
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.feed-head h2 { font-size: 26px; font-weight: 900; color: #0f172a; }
.feed-link {
  color: #60A5FA; text-decoration: none;
  font-weight: 800; font-size: 14px;
}
.feed-link:hover { text-decoration: underline; }

/* Featured units grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feat-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: #0f172a;
  transition: all .25s;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}
.feat-media {
  position: relative;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.feat-badge {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.feat-badge.hot { background: #DBEAFE; color: #92400e; }
.feat-badge.new { background: #e6f0f3; color: #166534; }
.feat-badge.ready { background: #dbeafe; color: #1e40af; }
.feat-badge.offplan { background: #ede9fe; color: #5b21b6; }
.feat-price-chip {
  position: absolute;
  bottom: 12px; inset-inline-end: 12px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.feat-body { padding: 14px 16px 16px; }
.feat-body h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.feat-loc {
  font-size: 12px; color: #64748b;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 4px;
}
.feat-meta {
  display: flex; gap: 12px;
  font-size: 12px; color: #475569;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.feat-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.dev-chip {
  background: #e6f0f3;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
}
.feat-ai {
  font-size: 11px;
  color: #1e40af;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}

/* Facebook-style 2-col layout */
.fb-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}
.fb-main > * + * { margin-top: 16px; }

/* Compose mini box */
.compose-mini {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
  display: grid;
  grid-template-areas: "avatar input" "chips chips";
  grid-template-columns: 48px 1fr;
  gap: 10px 14px;
  align-items: center;
}
.compose-avatar {
  grid-area: avatar;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60A5FA, #2563EB);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
.compose-mini input {
  grid-area: input;
  border: none;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  font-weight: 600;
}
.compose-mini input:focus { background: #e0f2fe; }
.compose-chips {
  grid-area: chips;
  display: flex; gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.cc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background .15s;
}
.cc:hover { background: #EFF6FF; color: #1E3A8A; }

/* Post mini (facebook-like) */
.post-mini {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.post-mini-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 10px;
}
.post-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.post-name {
  font-weight: 800; font-size: 14.5px; color: #0f172a;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.post-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.post-type {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}
.post-type.q { background: #dbeafe; color: #1e40af; }
.post-type.off { background: #e6f0f3; color: #166534; }
.post-type.warn { background: #fee2e2; color: #991b1b; }
.post-body { padding: 0 16px 12px; line-height: 1.8; color: #1e293b; }
.post-body p { font-size: 14.5px; }
.post-pic {
  margin-top: 12px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
}
.post-mini-foot {
  display: flex;
  border-top: 1px solid #f1f5f9;
  padding: 6px;
}
.pm-act {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pm-act:hover { background: #f1f5f9; color: #0f172a; }

/* Sidebar cards */
.side-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.side-card + .side-card { margin-top: 14px; }
.side-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.side-head h3 { font-size: 16px; font-weight: 800; color: #0f172a; margin:0; }
.side-head a { font-size: 12px; color: #60A5FA; font-weight: 700; text-decoration: none; }
.rank-mini { list-style: none; padding: 0; margin: 0; }
.rank-mini li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}
.rank-mini li:last-child { border-bottom: none; }
.rm-num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  flex-shrink: 0;
}
.rm-num.gold { background: linear-gradient(135deg,#3B82F6,#1D4ED8); color: #fff; }
.rm-num.silver { background: linear-gradient(135deg,#d1d5db,#6b7280); color: #fff; }
.rm-num.bronze { background: linear-gradient(135deg,#f97316,#9a3412); color: #fff; }
.rm-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 11px;
  flex-shrink: 0;
}
.rm-name { flex: 1; font-weight: 700; font-size: 13.5px; color: #1e293b; }
.rm-kpi { font-size: 12px; font-weight: 800; color: #3B82F6; }
.trend-mini { list-style: none; padding: 0; margin: 0; }
.trend-mini li {
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
  display: flex; flex-direction: column;
}
.trend-mini li:last-child { border-bottom: none; }
.trend-mini strong { font-size: 13.5px; color: #60A5FA; font-weight: 800; }
.trend-mini span { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* Responsive */
@media (max-width: 1200px) {
  .quick-tools { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .fb-layout { grid-template-columns: 1fr; }
  .ai-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .quick-tools { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-label { font-size: 11px; padding: 0 10px; }
  .ai-hero { padding: 50px 0 40px; }
  .ai-hero-box { padding-inline-start: 44px; }
  .ai-hero-icon { font-size: 16px; inset-inline-start: 14px; }
  .ai-mic, .ai-cam { width: 40px; height: 40px; }
}
@media (max-width: 620px) {
  .quick-tools { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .ai-hero-stats { grid-template-columns: 1fr 1fr; }
  .ah-num { font-size: 24px; }
  .ai-hero-box { flex-wrap: wrap; }
  .ai-hero-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   FINAL POLISH — accessibility, utilities, animations
   ========================================================================== */

/* Focus-visible for keyboard accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [data-lang-toggle]:focus-visible {
  outline: 3px solid rgba(31,143,170,.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Reduced-motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smooth fade-in on load for hero and sections */
.ai-hero-inner > * { animation: fadeUp .6s ease-out both; }
.ai-hero-inner > *:nth-child(1) { animation-delay: .05s; }
.ai-hero-inner > *:nth-child(2) { animation-delay: .15s; }
.ai-hero-inner > *:nth-child(3) { animation-delay: .25s; }
.ai-hero-inner > *:nth-child(4) { animation-delay: .35s; }
.ai-hero-inner > *:nth-child(5) { animation-delay: .45s; }
.ai-hero-inner > *:nth-child(6) { animation-delay: .55s; }

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

/* Utility for skeleton loading (in case we want to add loaders later) */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #f1f5f9 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  min-height: 14px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Fallback for color-mix (older browsers) — ensures qt-ic background has a soft tint */
@supports not (background: color-mix(in oklab, red 50%, blue)) {
  .qt-ic { background: #EFF6FF !important; }
}

/* Language-toggle inside dashboard header */
.dash-header .lang-toggle {
  padding: 8px 14px;
  border: 2px solid var(--emerald-700, #2563EB);
  background: #fff;
  color: var(--emerald-800, #1E3A8A);
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.dash-header .lang-toggle:hover {
  background: var(--emerald-700, #2563EB);
  color: #fff;
}

/* Horizontal scroll helper on narrow screens (for tables) */
.compare-table, table {
  -webkit-overflow-scrolling: touch;
}
.card:has(> table) { overflow-x: auto; }

/* Print friendliness — hide floating nav elements */
@media print {
  .navbar, .ticker-strip, .whatsapp-float, .back-to-top,
  .ai-helper, .nav-toggle, .lang-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #1E40AF; text-decoration: underline; }
  .ai-hero, section { page-break-inside: avoid; padding: 16px 0; }
}

/* Ensure all images are responsive by default */
img { max-width: 100%; height: auto; }

/* Better RTL support: icons inside buttons flip correctly */
html[dir="rtl"] .btn i.fa-arrow-left::before { content: "\f060"; } /* arrow-left glyph stays as back-indicator */
html[dir="ltr"] .btn i.fa-arrow-left::before { content: "\f061"; } /* arrow-right glyph in LTR */

/* Make sure the dropdown doesn't overflow viewport on mobile */
@media (max-width: 640px) {
  .nav-links .dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
}

/* ==========================================================================
   ACCESSIBILITY - Focus-visible & Reduced Motion
   ========================================================================== */

/* Clear focus ring for keyboard navigation on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.lang-toggle:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.dash-menu a:focus-visible,
.back-to-top:focus-visible,
.whatsapp-float:focus-visible,
.ai-helper:focus-visible {
  outline: 3px solid #3B82F6;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip outline on mouse/touch interaction */
:focus:not(:focus-visible) {
  outline: none;
}

/* Respect users who request reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   CONTACT FORM — Premium Card Design
   ========================================================================== */
.contact-card{
  background:#fff;
  border-radius:20px;
  padding:32px;
  box-shadow: 0 25px 60px -20px rgba(21,122,145,.2), 0 8px 20px -8px rgba(0,0,0,.08);
  border:1px solid rgba(21,122,145,.08);
  position:relative; overflow:hidden;
}
.contact-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:5px;
  background: linear-gradient(90deg, #1E3A8A, #60A5FA, #3B82F6, #60A5FA, #1E3A8A);
  background-size: 200% 100%;
  animation: gradMove 6s linear infinite;
}
@keyframes gradMove { 0%{background-position: 0% 0%;} 100%{background-position:-200% 0%;} }

.contact-card-head{
  display:flex; align-items:center; gap:14px; margin-bottom:24px;
  padding-bottom:20px; border-bottom:1px dashed rgba(21,122,145,.2);
  flex-wrap:wrap;
}
.contact-card-icon{
  width:52px; height:52px; border-radius:14px;
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow: 0 8px 20px -6px rgba(21,122,145,.5);
  flex-shrink:0;
}
.contact-sla{
  margin-inline-start:auto;
  background: linear-gradient(135deg, #DBEAFE, #ffc78f); color:#78350f;
  padding:7px 14px; border-radius:999px; font-size:12px; font-weight:800;
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid #fcd34d;
}

/* Steps / sections */
.ct-section{ margin-bottom:22px; padding-bottom:22px; border-bottom:1px dashed rgba(0,0,0,.07); }
.ct-section:last-of-type{ border-bottom:none; padding-bottom:0; }
.ct-section-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.ct-step{
  width:26px; height:26px; border-radius:50%;
  background: linear-gradient(135deg, #1E3A8A, #2563EB); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:13px;
  box-shadow: 0 4px 10px -2px rgba(21,122,145,.5);
  flex-shrink:0;
}

/* Topic chips — prettier */
.topic-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.topic-chips .chip{
  padding:10px 14px; border:2px solid #e5e7eb; border-radius:999px;
  font-weight:700; font-size:13px; cursor:pointer; background:#fff; color:var(--ink-700);
  transition: all .2s ease; display:inline-flex; align-items:center; gap:6px;
  font-family:inherit;
}
.topic-chips .chip i{ font-size:12px; color:#6b7280; transition: color .2s; }
.topic-chips .chip:hover{ border-color:var(--emerald-600); color:var(--emerald-700); transform: translateY(-1px); }
.topic-chips .chip:hover i{ color:var(--emerald-600); }
.topic-chips .chip.active{
  background: linear-gradient(135deg, #1E3A8A, #2563EB); color:#fff;
  border-color:transparent;
  box-shadow: 0 8px 18px -6px rgba(21,122,145,.55);
}
.topic-chips .chip.active i{ color:#ffc78f; }

.ct-team-hint{
  background: linear-gradient(135deg, #EFF6FF, #f0fdf4);
  border:1px dashed #60A5FA; border-radius:12px;
  padding:10px 14px; font-size:13px; color:var(--ink-700);
  display:flex; align-items:center; gap:8px;
}
.ct-team-hint i{ color:var(--emerald-700); }
.ct-team-hint strong{ color:var(--emerald-800); }

/* Inputs with icons */
.ct-field{ margin-bottom:14px; }
.ct-input-wrap{ position:relative; }
.ct-input-wrap i{
  position:absolute; inset-inline-start:14px; top:50%; transform:translateY(-50%);
  color:#9ca3af; font-size:14px; pointer-events:none; transition: color .2s;
}
.ct-input-wrap input{
  width:100%; padding:13px 14px 13px 42px; padding-inline-start:42px; padding-inline-end:14px;
  border:2px solid #e5e7eb; border-radius:12px;
  font-family:inherit; font-size:14px; font-weight:600;
  background:#f9fafb; transition: all .2s;
}
[dir="rtl"] .ct-input-wrap input{ padding-inline-start:42px; padding-inline-end:14px; }
.ct-input-wrap input:focus{
  outline:none; border-color:var(--emerald-600);
  background:#fff; box-shadow: 0 0 0 4px rgba(21,122,145,.1);
}
.ct-input-wrap input:focus + i,
.ct-input-wrap:focus-within i{ color:var(--emerald-600); }

.ct-field textarea{
  width:100%; padding:13px 14px; border:2px solid #e5e7eb; border-radius:12px;
  font-family:inherit; font-size:14px; font-weight:600;
  background:#f9fafb; transition: all .2s; resize:vertical;
}
.ct-field textarea:focus{
  outline:none; border-color:var(--emerald-600);
  background:#fff; box-shadow: 0 0 0 4px rgba(21,122,145,.1);
}
.ct-char-count{
  text-align:end; font-size:11px; color:var(--ink-500); font-weight:700; margin-top:4px;
  font-variant-numeric: tabular-nums;
}

/* Error state */
.ct-field.has-error .ct-input-wrap input,
.ct-field.has-error textarea{
  border-color:#ef4444; background:#fef2f2;
}
.ct-field.has-error .ct-input-wrap i{ color:#ef4444; }
.ct-err{ display:block; color:#dc2626; font-size:12px; font-weight:700; margin-top:4px; min-height:16px; }

/* Consent checkbox — custom */
.ct-consent{
  display:flex; align-items:flex-start; gap:10px; margin:18px 0 20px;
  font-size:13px; color:var(--ink-600); cursor:pointer;
  padding:12px 14px; background:#f9fafb; border-radius:10px;
  border:1px solid #e5e7eb; transition: all .2s;
}
.ct-consent:hover{ border-color: var(--emerald-400); }
.ct-consent input[type="checkbox"]{
  position:absolute; opacity:0; pointer-events:none;
}
.ct-check-box{
  width:22px; height:22px; border-radius:6px; border:2px solid #d1d5db;
  background:#fff; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  transition: all .2s;
}
.ct-check-box i{ color:#fff; font-size:12px; opacity:0; transform: scale(.5); transition: all .2s; }
.ct-consent input:checked ~ .ct-check-box{
  background: linear-gradient(135deg, #1E3A8A, #2563EB); border-color:transparent;
  box-shadow: 0 4px 10px -2px rgba(21,122,145,.45);
}
.ct-consent input:checked ~ .ct-check-box i{ opacity:1; transform: scale(1); }
.ct-consent input:focus-visible ~ .ct-check-box{ box-shadow: 0 0 0 3px rgba(21,122,145,.25); }

/* Submit */
.ct-submit{
  width:100%; padding:15px; border:none; cursor:pointer; position:relative;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #60A5FA 100%);
  background-size: 200% 100%; background-position: 0% 0%;
  color:#fff; font-weight:900; font-size:15px; border-radius:14px;
  font-family:inherit; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(21,122,145,.55);
  transition: all .3s ease;
  overflow:hidden;
}
.ct-submit:hover:not(:disabled){
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(21,122,145,.7);
}
.ct-submit:disabled{ opacity:.7; cursor:not-allowed; }
.ct-submit .ct-submit-loading{ display:none; gap:8px; align-items:center; }
.ct-submit .ct-submit-default{ display:flex; gap:8px; align-items:center; }
.ct-submit.loading .ct-submit-default{ display:none; }
.ct-submit.loading .ct-submit-loading{ display:flex; }

/* Success banner */
.ct-success{
  margin-top:16px; padding:16px 18px; border-radius:14px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border:1.5px solid #60A5FA;
  display:flex; align-items:center; gap:14px;
  animation: slideIn .4s ease;
}
@keyframes slideIn { from { transform: translateY(-6px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.ct-success-icon{
  width:44px; height:44px; border-radius:50%;
  background: linear-gradient(135deg, #60A5FA, #2563EB); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
  box-shadow: 0 6px 14px -3px rgba(31,143,170,.5);
}
.ct-success strong{ color: var(--emerald-800); font-size:15px; }
.ct-success p{ margin:4px 0 0; color: var(--ink-700); font-size:13px; }

@media (max-width: 700px){
  .contact-card{ padding:22px; }
  .contact-card-head{ gap:10px; }
  .contact-sla{ width:100%; justify-content:center; margin-inline-start:0; }
}

/* ==========================================
   AI Hero search box — defensive visibility
   Ensures input/icons/buttons always render
   on top of the form, regardless of cascade
   ========================================== */
.ai-hero-box{ min-height: 60px; align-items: stretch; }
.ai-hero-box > *{ opacity: 1 !important; visibility: visible !important; position: relative; z-index: 2; }
.ai-hero-box .ai-hero-icon{ z-index: 3; pointer-events: none; color: #60A5FA !important; opacity: 1 !important; }
.ai-hero-box input{
  color: #0f172a !important;
  background: transparent !important;
  min-width: 0;
  flex: 1 1 auto !important;
}
.ai-hero-box input::placeholder{ color: #94a3b8; opacity: 1; }
.ai-hero-box input::-webkit-input-placeholder{ color: #94a3b8; opacity: 1; }
.ai-hero-box input::-moz-placeholder{ color: #94a3b8; opacity: 1; }
.ai-hero-box .ai-mic, .ai-hero-box .ai-cam{
  color: #60A5FA !important; background: #f1f5f9 !important;
  flex-shrink: 0 !important;
}
.ai-hero-box .ai-hero-btn{
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%) !important;
  color: #ffffff !important; flex-shrink: 0 !important;
  display: inline-flex !important; align-items: center; gap: 8px;
}
.ai-hero-box .ai-hero-btn span,
.ai-hero-box .ai-hero-btn i{ color: #ffffff !important; }
@media (max-width: 720px){
  .ai-hero-box{ flex-wrap: wrap; padding: 8px; padding-inline-start: 44px; }
  .ai-hero-box input{ width: 100%; padding: 12px 8px; min-height: 44px; }
  .ai-hero-box .ai-mic, .ai-hero-box .ai-cam{ width: 44px; height: 44px; }
  .ai-hero-box .ai-hero-btn{ width: 100%; justify-content: center; }
}
