/* ═══════════════════════════════════════════════════════════════
   MortgageCompare.ae Design System
   Purple (#6D28D9) + Gold (#D4A418) | Manrope + Noto Kufi Arabic
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

:root {
  --pr: #6D28D9;
  --pr-dk: #5B21B6;
  --pr-lt: #8B5CF6;
  --ac: #D4A418;
  --ac-dk: #B8860B;
  --ac-lt: #E8BF3A;
  --tx: #1E1B4B;
  --tx2: #374151;
  --mu: #6B7280;
  --bg: #FAFAFE;
  --sf: #F3F0FF;
  --bdr: #E5E7EB;
  --green: #059669;
  --green-lt: #D1FAE5;
  --red: #DC2626;
  --orange: #EA580C;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(30,27,75,.08), 0 1px 2px rgba(30,27,75,.06);
  --shadow-md: 0 4px 6px rgba(30,27,75,.07), 0 2px 4px rgba(30,27,75,.06);
  --shadow-lg: 0 10px 15px rgba(30,27,75,.1), 0 4px 6px rgba(30,27,75,.05);
  --max-w: 1200px;
  --nav-h: 56px;
  --ticker-h: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--tx);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pr); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pr-dk); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.ar { font-family: 'Noto Kufi Arabic', sans-serif; direction: rtl; }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── RATE TICKER ─── */
.ticker {
  background: var(--tx);
  color: var(--white);
  height: var(--ticker-h);
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3px;
  position: relative;
  z-index: 100;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item { display: flex; align-items: center; gap: 6px; }
.ticker-item .label { color: rgba(255,255,255,.5); }
.ticker-item .val { color: var(--ac); font-weight: 700; }
.ticker-item .change { font-size: 9px; }
.ticker-item .change.up { color: #34D399; }
.ticker-item .change.down { color: #F87171; }
.ticker-sep { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── NAVIGATION ─── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--bdr);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -.6px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo .hl { color: var(--ac); }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx2);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--pr); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-ar-btn {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ac-dk);
  background: none;
  border: 1.5px solid var(--ac);
  border-radius: 20px;
  padding: 4px 14px;
  transition: all .2s;
}
.nav-ar-btn:hover { background: var(--ac); color: var(--white); }
.btn-primary {
  background: var(--pr);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.2px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--pr-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--white);
  color: var(--pr);
  border: 2px solid var(--pr);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.2px;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--sf); }
.btn-gold {
  background: linear-gradient(135deg, var(--ac), var(--ac-lt));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.2px;
  transition: all .2s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-green {
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.btn-green:hover { background: #1DA851; transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--tx); margin: 5px 0; transition: all .3s; border-radius: 1px; }

/* ─── HERO SLIDESHOW ─── */
.hero {
  background: linear-gradient(135deg, #1E1B4B, #3B0764 50%, #1E3A5F);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text { color: var(--white); }
.hero-bismillah {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  color: var(--ac);
  opacity: .7;
  margin-bottom: 12px;
  direction: rtl;
}
.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text h1 .hl { color: var(--ac); }
.hero-text p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-ctas .btn-primary,
.hero-ctas .btn-secondary,
.hero-ctas .btn-gold { padding: 12px 30px; font-size: 20px; }
.hero-cta-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  color: var(--ac);
  opacity: .6;
  direction: rtl;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder {
  width: 100%;
  height: 320px;
  background: rgba(255,255,255,.05);
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots span.active {
  width: 24px;
  border-radius: 4px;
  background: var(--ac);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--bdr);
  padding: 16px 0;
}
.trust-items {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx2);
  white-space: nowrap;
}
.trust-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.trust-item .icon.purple { background: var(--sf); color: var(--pr); }
.trust-item .icon.gold { background: #FFF8E1; color: var(--ac-dk); }
.trust-item .icon.green { background: var(--green-lt); color: var(--green); }

/* ─── SECTION LAYOUTS ─── */
.section { padding: 64px 0; }
.section-alt { background: var(--sf); }
.section-dark { background: linear-gradient(135deg, #1E1B4B, #3B0764); color: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 4px;
}
.section-header .ar-sub {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  color: var(--ac);
  direction: rtl;
  opacity: .5;
  margin-bottom: 8px;
}
.section-header p { font-size: 14px; color: var(--mu); max-width: 560px; margin: 0 auto; }

/* ─── RATE CARDS ─── */
.rate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rate-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all .2s;
}
.rate-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rate-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rate-badge.best { background: var(--pr); color: var(--white); }
.rate-badge.popular { background: var(--ac); color: var(--white); }
.rate-badge.low { background: var(--green); color: var(--white); }
.rate-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.rate-type.islamic { color: var(--ac-dk); }
.rate-type.conventional { color: var(--pr); }
.rate-bank { font-size: 15px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.rate-product { font-size: 12px; color: var(--mu); margin-bottom: 12px; }
.rate-number { font-size: 36px; font-weight: 800; color: var(--pr); letter-spacing: -1.5px; line-height: 1; }
.rate-number small { font-size: 14px; font-weight: 500; color: var(--mu); letter-spacing: 0; }
.rate-details { margin-top: 12px; font-size: 11px; color: var(--tx2); line-height: 1.8; }
.rate-details strong { color: var(--tx); }

/* ─── FEATURE GRID ─── */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}
.feat-icon.purple { background: linear-gradient(135deg, var(--pr), var(--pr-lt)); color: var(--white); }
.feat-icon.gold { background: linear-gradient(135deg, var(--ac), var(--ac-lt)); color: var(--white); }
.feat-icon svg { width: 24px; height: 24px; fill: currentColor; }
.feat-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.feat-card p { font-size: 12px; color: var(--mu); line-height: 1.5; }
.feat-card .ar-sub {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 10px;
  color: var(--ac);
  direction: rtl;
  opacity: .5;
  margin-top: 8px;
}

/* ─── DUAL CTA ─── */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-box {
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.cta-box.islamic {
  background: linear-gradient(135deg, #1E1B4B, #3B0764);
  color: var(--white);
  border: 1px solid rgba(212,164,24,.3);
}
.cta-box.eligibility {
  background: var(--white);
  border: 2px solid var(--pr);
  color: var(--tx);
}
.cta-box h3 { font-size: 20px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.cta-box p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; opacity: .85; }
.cta-box .ar-line {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  color: var(--ac);
  direction: rtl;
  opacity: .6;
  margin-bottom: 16px;
}

/* ─── WHATSAPP BAR ─── */
.wa-bar {
  background: #25D366;
  padding: 14px 20px;
  text-align: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 998;
  display: block;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.wa-bar:hover { background: #1DA851; color: var(--white); }
.wa-bar .ar-text {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  opacity: .8;
  display: block;
  margin-top: 2px;
  direction: rtl;
}

/* ─── NEWS CARDS ─── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--sf), #E8E0F5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.news-body { padding: 20px; }
.news-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pr);
  margin-bottom: 6px;
}
.news-card h4 { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.news-card p { font-size: 12px; color: var(--mu); line-height: 1.5; }
.news-meta { font-size: 10px; color: var(--mu); margin-top: 10px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--tx);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.6px;
  margin-bottom: 12px;
}
.footer-brand .hl { color: var(--ac); }
.footer p { font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 12px; transition: color .2s; }
.footer-links a:hover { color: var(--ac); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.footer-bottom .ar-text {
  font-family: 'Noto Kufi Arabic', sans-serif;
  color: var(--ac);
  opacity: .4;
  direction: rtl;
  font-size: 10px;
}

/* ─── RATE TABLE (Comparison Page) ─── */
.rate-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--bdr);
  background: var(--white);
  color: var(--tx2);
  cursor: pointer;
  transition: all .2s;
}
.filter-pill:hover, .filter-pill.active { background: var(--pr); color: var(--white); border-color: var(--pr); }
.filter-pill.active-gold { background: var(--ac); color: var(--white); border-color: var(--ac); }

.rate-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rate-table thead { background: var(--tx); color: var(--white); }
.rate-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.rate-table td { padding: 14px; border-bottom: 1px solid var(--bdr); vertical-align: middle; }
.rate-table tr:nth-child(even) { background: #FAFAFE; }
.rate-table tr:hover { background: var(--sf); }
.rate-table .islamic-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: #FFF8E1;
  color: var(--ac-dk);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.rate-table .conv-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: var(--sf);
  color: var(--pr);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.rate-table .rate-val { font-size: 18px; font-weight: 800; color: var(--pr); letter-spacing: -.5px; }
.rate-table .pom-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-left: 8px;
}

/* ─── CALCULATOR ─── */
.calc-container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-form {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calc-result {
  background: linear-gradient(135deg, #1E1B4B, #3B0764);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 20px);
}
.calc-field { margin-bottom: 20px; }
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tx);
}
.calc-field .ar-label {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 10px;
  color: var(--ac);
  opacity: .5;
  direction: rtl;
  display: block;
  margin-bottom: 4px;
}
.calc-field input[type="text"],
.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bdr);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .2s;
  background: var(--white);
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--pr); box-shadow: 0 0 0 3px var(--sf); }
.calc-field input[type="range"] { width: 100%; accent-color: var(--pr); }
.calc-field .range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--mu); margin-top: 4px; }
.calc-field .range-value {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--pr);
  margin-bottom: 8px;
  letter-spacing: -.8px;
}

.calc-result h3 { font-size: 14px; font-weight: 700; margin-bottom: 20px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }
.result-big { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 4px; }
.result-big .currency { font-size: 18px; font-weight: 600; opacity: .6; }
.result-label { font-size: 12px; opacity: .6; margin-bottom: 20px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.result-item {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.result-item .r-label { font-size: 10px; opacity: .5; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.result-item .r-value { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }

/* ─── EIBOR TRACKER ─── */
.eibor-hero {
  background: linear-gradient(135deg, #1E1B4B, #3B0764);
  padding: 48px 0;
  color: var(--white);
}
.eibor-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.eibor-stat {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.eibor-stat .val { font-size: 28px; font-weight: 800; color: var(--ac); letter-spacing: -1px; }
.eibor-stat .lbl { font-size: 10px; opacity: .5; text-transform: uppercase; margin-top: 4px; letter-spacing: .5px; }
.eibor-chart-placeholder {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mu);
  font-size: 14px;
  margin-top: 32px;
}

/* ─── ELIGIBILITY WIZARD ─── */
.wizard-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
}
.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.wizard-progress .step {
  flex: 1;
  height: 4px;
  background: var(--bdr);
  border-radius: 2px;
  transition: background .3s;
}
.wizard-progress .step.done { background: var(--pr); }
.wizard-progress .step.current { background: var(--ac); }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-header { text-align: center; margin-bottom: 28px; }
.wizard-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.wizard-header .ar-sub {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  color: var(--ac);
  direction: rtl;
  opacity: .5;
  margin-top: 4px;
}
.wizard-question { margin-bottom: 24px; }
.wizard-question h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.wizard-question .q-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 10px;
  color: var(--ac);
  direction: rtl;
  opacity: .5;
  margin-bottom: 12px;
}
.wizard-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wizard-options.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.wizard-options.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.wizard-option {
  background: var(--white);
  border: 2px solid var(--bdr);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--tx);
}
.wizard-option:hover { border-color: var(--pr-lt); background: var(--sf); }
.wizard-option.selected { border-color: var(--pr); background: var(--sf); color: var(--pr); box-shadow: 0 0 0 3px rgba(109,40,217,.1); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.wizard-nav .btn-back {
  background: none;
  border: 1.5px solid var(--bdr);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mu);
  transition: all .2s;
}
.wizard-nav .btn-back:hover { border-color: var(--tx); color: var(--tx); }
.wizard-gate { text-align: center; max-width: 420px; margin: 0 auto; }
.wizard-gate .gate-icon { font-size: 40px; margin-bottom: 12px; color: var(--ac); }
.wizard-gate input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--bdr);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.wizard-gate input:focus { outline: none; border-color: var(--pr); box-shadow: 0 0 0 3px var(--sf); }
.wizard-gate .privacy {
  font-size: 10px;
  color: var(--mu);
  margin-top: 12px;
  line-height: 1.6;
}

/* Wizard result */
.wizard-result { text-align: center; }
.result-status {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}
.result-status.eligible { background: var(--green-lt); color: var(--green); }
.result-status.possible { background: #FFF7ED; color: var(--orange); }
.result-status.unlikely { background: #FEF2F2; color: var(--red); }
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.result-card-item {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.result-card-item .rc-label { font-size: 10px; color: var(--mu); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.result-card-item .rc-value { font-size: 26px; font-weight: 800; color: var(--pr); letter-spacing: -1px; }
.result-card-item .rc-note { font-size: 10px; color: var(--mu); margin-top: 2px; }
.result-next-steps {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  text-align: left;
}
.result-next-steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.result-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result-step { text-align: center; display: flex; flex-direction: column; align-items: center; }
.result-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sf);
  color: var(--pr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.result-step h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.result-step p { font-size: 11px; color: var(--mu); line-height: 1.5; margin-bottom: 8px; }
.result-step .btn-primary,
.result-step .btn-green { width: 100%; text-align: center; justify-content: center; display: inline-flex; margin-top: auto; }

/* ─── PAGE HERO (for inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #1E1B4B, #3B0764);
  padding: 40px 0;
  color: var(--white);
}
.page-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 4px; }
.page-hero .subtitle { font-size: 13px; opacity: .6; margin-bottom: 4px; }
.page-hero .ar-sub {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  color: var(--ac);
  direction: rtl;
  opacity: .5;
}
.page-hero .updated { font-size: 11px; opacity: .4; margin-top: 8px; }

/* ─── STICKY WHATSAPP BUTTON (Mobile) ─── */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37,211,102,.35);
  z-index: 1000;
  transition: all .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(37,211,102,.45); color: var(--white); }

/* Add bottom padding to body to account for fixed WhatsApp bar */
body { padding-bottom: 60px; }

/* ─── OUTGOINGS SLIDER ─── */
.outgoings-slider-wrap {
  margin-top: 12px;
}
.outgoings-slider-wrap .range-value {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--pr);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .rate-cards { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .dual-cta { grid-template-columns: 1fr; }
  .calc-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .eibor-stat-grid { grid-template-columns: 1fr 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  .result-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 52px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--bdr);
    box-shadow: var(--shadow-lg);
    gap: 12px;
  }
  .hamburger { display: block; }
  .nav-ar-btn { display: none; }
  .hero-text h1 { font-size: 30px; }
  .hero { min-height: 400px; }
  .rate-cards { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 16px; }
  .trust-item { font-size: 11px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .rate-table { font-size: 12px; }
  .rate-table th, .rate-table td { padding: 10px 8px; }
  .wizard-options { grid-template-columns: 1fr; }
  .wizard-options.cols-3, .wizard-options.cols-4 { grid-template-columns: 1fr 1fr; }
  .eibor-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .trust-items { flex-direction: column; align-items: center; }
  .feat-grid { grid-template-columns: 1fr; }
  .wizard-options.cols-3, .wizard-options.cols-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   RTL / Arabic Language Support
   Applied when body has .ar class and html has dir="rtl"
   ═══════════════════════════════════════════════════════════════ */

body.ar {
  font-family: 'Noto Kufi Arabic', 'Manrope', system-ui, sans-serif;
  text-align: right;
}

/* Navigation RTL */
body.ar .nav-inner { flex-direction: row-reverse; }
body.ar .nav-links { flex-direction: row-reverse; }
body.ar .nav-actions { flex-direction: row-reverse; }
body.ar .hamburger { order: -1; }

/* Ticker RTL — reverse scroll direction */
body.ar .ticker-inner { animation-name: tickerScrollRTL; }
@keyframes tickerScrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
body.ar .ticker-item { flex-direction: row-reverse; }

/* Hero RTL */
body.ar .hero-content { direction: rtl; }
body.ar .hero-text { text-align: right; }
body.ar .hero-ctas { justify-content: flex-start; }

/* General section text alignment */
body.ar .section-header { text-align: right; }
body.ar .section-header h2, body.ar .section-header p { text-align: right; }

/* Trust bar */
body.ar .trust-items { flex-direction: row-reverse; }
body.ar .trust-item { flex-direction: row-reverse; }

/* Rate cards */
body.ar .rate-card { text-align: right; }
body.ar .rate-details { text-align: right; }

/* Feature grid */
body.ar .feat-card { text-align: right; }
body.ar .feat-icon { margin-left: 0; margin-right: 0; }

/* Dual CTA */
body.ar .cta-box { text-align: right; }

/* News */
body.ar .news-card { direction: rtl; }
body.ar .news-body { text-align: right; }

/* Rate table */
body.ar .rate-table { direction: rtl; }
body.ar .rate-table th, body.ar .rate-table td { text-align: right; }
body.ar .rate-table th:first-child, body.ar .rate-table td:first-child { text-align: center; }

/* Calculator */
body.ar .calc-form label { text-align: right; }
body.ar .calc-result { text-align: right; }
body.ar .calc-result-grid { direction: rtl; }

/* Eligibility wizard */
body.ar .wizard-step { text-align: right; }
body.ar .wizard-nav { flex-direction: row-reverse; }
body.ar .wizard-option { text-align: right; }

/* Footer RTL */
body.ar .footer-grid { direction: rtl; }
body.ar .footer-bottom { flex-direction: row-reverse; }
body.ar .footer-links { text-align: right; }

/* WhatsApp bar */
body.ar .wa-bar { direction: rtl; }

/* WhatsApp float — move to left side */
body.ar .wa-float { right: auto; left: 20px; }

/* Filter pills */
body.ar .rate-filters { flex-direction: row-reverse; }

/* Subscribe popup */
body.ar #subscribe-popup { direction: rtl; text-align: right; }

/* EIBOR section */
body.ar .eibor-stat { text-align: right; }

/* Inline direction for elements with inline styles */
body.ar [style*="direction: rtl"] { direction: rtl; }

/* Mobile nav RTL */
@media (max-width: 768px) {
  body.ar .nav-links.open { text-align: right; }
  body.ar .nav-ar-btn { display: block; }
}
