:root {
  --bg-deep: #061816;
  --bg-emerald: #0b2522;
  --bg-card: rgba(14, 42, 38, 0.72);
  --bg-card-hover: rgba(19, 56, 51, 0.88);
  --gold-primary: #d4af63;
  --gold-light: #f1dba6;
  --gold-muted: rgba(212, 175, 99, 0.26);
  --gold-border: rgba(212, 175, 99, 0.22);
  --text-cream: #f7f3ea;
  --text-soft: #bfd0cc;
  --text-dim: #8ca59f;
  --accent-teal: #208b7d;
  --danger: #e57373;
  --success: #66bb6a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-luxury: 0 24px 60px rgba(0, 0, 0, 0.48);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(32, 139, 125, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(212, 175, 99, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(16, 62, 56, 0.35) 0%, transparent 55%);
  color: var(--text-cream);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', Tahoma, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sacred Geometric Corner Ornaments */
.geo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23d4af63' stroke-width='0.8'%3E%3Ccircle cx='110' cy='110' r='92'/%3E%3Crect x='45' y='45' width='130' height='130'/%3E%3Crect x='45' y='45' width='130' height='130' transform='rotate(45 110 110)'/%3E%3Ccircle cx='110' cy='110' r='46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 360px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 24, 22, 0.84);
  border-bottom: 1px solid var(--gold-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  background: rgba(15, 48, 44, 0.85);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--gold-primary);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  background: linear-gradient(135deg, #e7c982 0%, #c49a47 100%);
  color: #061816;
  font-weight: 700;
  font-size: 0.93rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212, 175, 99, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 99, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 48, 44, 0.55);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(22, 66, 60, 0.8);
  border-color: var(--gold-primary);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding: 76px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 54px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 99, 0.11);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.arabic-accent {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: 1.08rem;
  color: var(--gold-primary);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 20px;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-head h2 {
  font-family: 'Noto Sans Arabic', 'Amiri', serif;
  line-height: 1.28;
}

.hero h1 .gold-span {
  background: linear-gradient(135deg, #f6e4b8 0%, #d4af63 60%, #b98e3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(212, 175, 99, 0.16);
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Dual Floating Phone Mockups */
.phones-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.glow-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 99, 0.24) 0%, rgba(32, 139, 125, 0.12) 48%, transparent 72%);
  filter: blur(24px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 286px;
  background: linear-gradient(160deg, #2b2619 0%, #101716 100%);
  padding: 10px;
  border-radius: 34px;
  border: 2px solid rgba(212, 175, 99, 0.58);
  box-shadow: var(--shadow-luxury), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-frame.secondary {
  position: absolute;
  right: -8px;
  top: 44px;
  width: 248px;
  z-index: 1;
  opacity: 0.94;
  transform: rotate(5deg);
}

html[dir="rtl"] .phone-frame.secondary {
  right: auto;
  left: -8px;
  transform: rotate(-5deg);
}

.phone-frame.primary {
  margin-right: 64px;
}

html[dir="rtl"] .phone-frame.primary {
  margin-right: 0;
  margin-left: 64px;
}

.phone-notch {
  width: 78px;
  height: 6px;
  background: rgba(212, 175, 99, 0.3);
  border-radius: 99px;
  margin: 2px auto 8px;
}

.phone-screen {
  width: 100%;
  display: block;
  border-radius: 24px;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 37, 34, 0.55) 0%, rgba(6, 24, 22, 0.85) 100%);
  border-top: 1px solid rgba(212, 175, 99, 0.12);
  border-bottom: 1px solid rgba(212, 175, 99, 0.12);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-cream);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* 6 Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 99, 0.48);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 175, 99, 0.12);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* Spotlight Split Section (Tajweed & Dalail Night) */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.spotlight-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.tajweed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.t-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.t-madd { color: #e89b6c; border-color: rgba(232, 155, 108, 0.35); }
.t-ghunnah { color: #8ec98c; border-color: rgba(142, 201, 140, 0.35); }
.t-qalqalah { color: #7bb6db; border-color: rgba(123, 182, 219, 0.35); }
.t-ikhfa { color: #d8b56c; border-color: rgba(216, 181, 108, 0.35); }

.spotlight-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 99, 0.38);
  max-height: 360px;
}

.spotlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 14 Languages Strip */
.langs-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.lang-badge {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(14, 42, 38, 0.8);
  border: 1px solid var(--gold-border);
  color: var(--text-cream);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Legal & Account Deletion Pages */
.legal-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--gold-border);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0 72px;
}

.legal-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  margin: 28px 0 12px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p, .legal-card li {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.legal-card ul, .legal-card ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: rgba(6, 24, 22, 0.85);
  color: var(--text-cream);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.alert-box {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(102, 187, 106, 0.14);
  border: 1px solid rgba(102, 187, 106, 0.45);
  color: #c8e6c9;
}

.alert-error {
  background: rgba(229, 115, 115, 0.14);
  border: 1px solid rgba(229, 115, 115, 0.45);
  color: #ffcdd2;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gold-border);
  background: rgba(4, 16, 15, 0.92);
  padding: 54px 0 36px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(212, 175, 99, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
  .phones-stage {
    min-height: 440px;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 44px 0 64px;
  }
  .phone-frame.primary {
    width: 236px;
    margin-right: 36px;
  }
  .phone-frame.secondary {
    width: 200px;
    right: 0;
  }
  .legal-card {
    padding: 24px 18px;
  }
}


/* =========================================================
   ACADEMIC MONOGRAPH, OPEN-SOURCE CODE & 112-STEP VIEWER
   ========================================================= */
.os-banner {
  background: linear-gradient(135deg, rgba(16, 56, 50, 0.92) 0%, rgba(9, 29, 26, 0.96) 100%);
  border: 1.5px solid rgba(212, 175, 99, 0.42);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-luxury);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.os-banner-content {
  max-width: 720px;
}

.os-banner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold-light);
  line-height: 1.18;
  margin-bottom: 12px;
}

.os-banner p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.monograph-header {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--gold-border);
}

.monograph-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.14;
  color: var(--text-cream);
  margin-bottom: 18px;
  max-width: 980px;
}

.monograph-lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 900px;
  margin-bottom: 28px;
}

.charter-box {
  background: linear-gradient(135deg, rgba(212, 175, 99, 0.13) 0%, rgba(16, 54, 48, 0.65) 100%);
  border: 1px solid rgba(212, 175, 99, 0.45);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 26px;
}

html[dir="rtl"] .charter-box {
  border-left: 1px solid rgba(212, 175, 99, 0.45);
  border-right: 4px solid var(--gold-primary);
}

.charter-box h3 {
  font-size: 1.02rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.charter-box p {
  font-size: 0.93rem;
  color: var(--text-cream);
  opacity: 0.92;
}

.paper-section {
  padding: 52px 0;
  border-bottom: 1px solid rgba(212, 175, 99, 0.14);
}

.paper-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  color: var(--gold-light);
  margin-bottom: 16px;
}

.paper-prose p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 940px;
}

.eq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.eq-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.eq-card h3 {
  font-size: 1.06rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.eq-card p {
  font-size: 0.91rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.math-formula {
  font-family: 'Cambria Math', 'Times New Roman', Georgia, serif;
  background: rgba(4, 15, 14, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.22);
  border-radius: 10px;
  padding: 12px 16px;
  color: #f6e4b8;
  font-size: 0.98rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

/* Authority Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  background: rgba(7, 25, 23, 0.85);
}

.auth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}

.auth-table th, .auth-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 99, 0.14);
}

html[dir="rtl"] .auth-table th,
html[dir="rtl"] .auth-table td {
  text-align: right;
}

.auth-table th {
  background: rgba(212, 175, 99, 0.12);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Open-Source Code Explorer */
.code-explorer {
  margin-top: 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: #041210;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(14, 42, 38, 0.9);
  border-bottom: 1px solid var(--gold-border);
}

.code-tab {
  background: rgba(6, 24, 22, 0.7);
  color: var(--text-soft);
  border: 1px solid rgba(212, 175, 99, 0.2);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.81rem;
  font-family: 'Consolas', 'SFMono-Regular', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab:hover, .code-tab.active {
  background: linear-gradient(135deg, #e7c982 0%, #c49a47 100%);
  color: #061816;
  font-weight: 700;
  border-color: transparent;
}

.code-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(9, 29, 26, 0.95);
  border-bottom: 1px solid rgba(212, 175, 99, 0.14);
  direction: ltr;
}

.code-meta {
  font-size: 0.83rem;
  color: var(--gold-light);
  font-family: 'Consolas', monospace;
}

.code-viewport {
  max-height: 520px;
  overflow: auto;
  padding: 20px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #d7e8e4;
  white-space: pre;
  direction: ltr;
  text-align: left;
}

/* 112-Step Technical Specification Cards */
.steps-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 28px;
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chap-btn {
  background: rgba(14, 42, 38, 0.8);
  color: var(--text-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chap-btn.active, .chap-btn:hover {
  background: var(--gold-primary);
  color: #061816;
  border-color: var(--gold-primary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.step-num {
  flex-shrink: 0;
  background: rgba(212, 175, 99, 0.16);
  border: 1px solid rgba(212, 175, 99, 0.45);
  color: var(--gold-light);
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.step-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.35;
}

.step-body p {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.callout-rationale {
  background: rgba(32, 139, 125, 0.13);
  border-left: 3px solid #4dd0e1;
  padding: 11px 15px;
  border-radius: 8px;
  color: #d0f4f7;
  font-size: 0.9rem;
  margin: 10px 0;
}

.callout-pitfall {
  background: rgba(186, 104, 200, 0.12);
  border-left: 3px solid #ce93d8;
  padding: 11px 15px;
  border-radius: 8px;
  color: #f1dcf5;
  font-size: 0.9rem;
  margin: 10px 0;
}

.callout-fiqh {
  background: rgba(255, 158, 128, 0.12);
  border-left: 3px solid #ffab91;
  padding: 11px 15px;
  border-radius: 8px;
  color: #ffe2d8;
  font-size: 0.9rem;
  margin: 10px 0;
}

html[dir="rtl"] .callout-rationale,
html[dir="rtl"] .callout-pitfall,
html[dir="rtl"] .callout-fiqh {
  border-left: none;
  border-right: 3px solid var(--gold-primary);
}

.step-code {
  background: rgba(4, 15, 14, 0.85);
  border: 1px solid rgba(212, 175, 99, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  color: #cfe8e2;
  overflow-x: auto;
  margin-top: 10px;
  direction: ltr;
  text-align: left;
}

@media (max-width: 860px) {
  .eq-grid {
    grid-template-columns: 1fr;
  }
  .os-banner {
    padding: 28px 22px;
  }
}


/* =========================================================
   LIVE PRAYER TIMES PORTAL, QIBLA COMPASS & MONTHLY TIMETABLE
   ========================================================= */
.calc-toolbar {
  background: rgba(11, 36, 32, 0.88);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-luxury);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrap {
  flex: 1 1 320px;
  position: relative;
}

.calc-input, .calc-select {
  width: 100%;
  background: rgba(5, 19, 17, 0.92);
  border: 1px solid rgba(212, 175, 99, 0.32);
  border-radius: var(--radius-sm);
  color: var(--text-cream);
  padding: 12px 14px;
  font-size: 0.94rem;
  font-family: inherit;
}

.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: var(--gold-light);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #08201d;
  border: 1px solid rgba(212, 175, 99, 0.45);
  border-radius: var(--radius-sm);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
  display: none;
}

.search-suggestions button {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 99, 0.1);
  color: var(--text-cream);
  padding: 11px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.search-suggestions button:hover {
  background: rgba(212, 175, 99, 0.15);
  color: var(--gold-light);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-field label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.live-board {
  background: linear-gradient(135deg, rgba(16, 56, 49, 0.95) 0%, rgba(7, 24, 22, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 99, 0.44);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-luxury);
}

.live-board-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 99, 0.18);
  margin-bottom: 24px;
}

.city-headline h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-cream);
  line-height: 1.1;
  margin-bottom: 6px;
}

.city-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.countdown-box {
  background: rgba(5, 18, 16, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  text-align: center;
  min-width: 230px;
}

.countdown-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.countdown-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.countdown-local {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.vakit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.vakit-card {
  background: rgba(6, 22, 20, 0.82);
  border: 1px solid rgba(212, 175, 99, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vakit-card.is-next {
  background: linear-gradient(180deg, rgba(212, 175, 99, 0.24) 0%, rgba(15, 52, 46, 0.92) 100%);
  border: 1.5px solid var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(212, 175, 99, 0.18);
}

.vakit-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.vakit-time {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.vakit-exact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  color: var(--text-dim);
}

.aux-qibla-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  margin-bottom: 28px;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.info-panel h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.kv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.kv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(5, 18, 16, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 99, 0.12);
  font-size: 0.86rem;
}

.kv-item span:first-child {
  color: var(--text-soft);
}

.kv-item strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold-light);
  font-size: 0.88rem;
}

.qibla-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.compass-svg {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.timetable-table tr.is-today td {
  background: rgba(212, 175, 99, 0.18);
  color: #fff;
  font-weight: 700;
}

.city-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  background: rgba(12, 40, 36, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.22);
  color: var(--text-soft);
  transition: all 0.18s ease;
}

.city-pill:hover, .city-pill.active {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(212, 175, 99, 0.14);
}

@media (max-width: 960px) {
  .vakit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aux-qibla-grid {
    grid-template-columns: 1fr;
  }
  .kv-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vakit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header, .calc-toolbar, .aux-qibla-grid, .no-print, .site-footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .live-board, .info-panel, .authority-table-wrap {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  .authority-table th, .authority-table td, .city-headline h2, .vakit-time, .vakit-name {
    color: #000 !important;
  }
}


/* =========================================================
   HOMEPAGE TOP MAKKAH / GPS PRAYER TIMES & COUNTDOWN RIBBON
   ========================================================= */
.top-prayer-ribbon {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10, 36, 32, 0.94) 0%, rgba(6, 22, 20, 0.96) 100%);
  border-bottom: 1px solid rgba(212, 175, 99, 0.28);
  padding: 12px 0 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.tpr-row-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.tpr-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tpr-city-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.tpr-loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(212, 175, 99, 0.13);
  border: 1px solid rgba(212, 175, 99, 0.42);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tpr-loc-btn:hover {
  background: rgba(212, 175, 99, 0.26);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.tpr-reset-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(212, 175, 99, 0.25);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  cursor: pointer;
}

.tpr-reset-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.tpr-times-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tpr-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 17, 15, 0.7);
  border: 1px solid rgba(212, 175, 99, 0.16);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.tpr-item .tpr-lbl {
  color: var(--text-soft);
  font-weight: 500;
}

.tpr-item .tpr-val {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-cream);
  font-weight: 700;
  font-size: 0.88rem;
}

.tpr-item.is-next {
  background: linear-gradient(135deg, rgba(212, 175, 99, 0.26) 0%, rgba(18, 58, 52, 0.92) 100%);
  border-color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(212, 175, 99, 0.18);
}

.tpr-item.is-next .tpr-lbl {
  color: var(--gold-light);
  font-weight: 700;
}

.tpr-item.is-next .tpr-val {
  color: #fff;
}

.tpr-row-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(212, 175, 99, 0.16);
  font-size: 0.83rem;
  color: var(--text-soft);
}

.tpr-countdown-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tpr-countdown-digits {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-light);
  background: rgba(212, 175, 99, 0.12);
  border: 1px solid rgba(212, 175, 99, 0.3);
  padding: 2px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.tpr-detail-link {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
}

.tpr-detail-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .tpr-row-times {
    justify-content: center;
  }
  .tpr-times-strip {
    justify-content: center;
  }
  .tpr-row-countdown {
    justify-content: center;
    text-align: center;
  }
}


/* Monthly Prayer Timetable Precision Alignment */
.timetable-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.timetable-table th,
.timetable-table td {
  padding: 13px 18px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(212, 175, 99, 0.13);
}

.timetable-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.timetable-table th:nth-child(n+3),
.timetable-table td:nth-child(n+3) {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.timetable-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.timetable-table tr.is-today td {
  background: linear-gradient(90deg, rgba(212, 175, 99, 0.24) 0%, rgba(212, 175, 99, 0.12) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  border-top: 1px solid rgba(240, 213, 150, 0.45);
  border-bottom: 1px solid rgba(240, 213, 150, 0.45);
}

.timetable-table tr.is-today td:first-child {
  box-shadow: inset 4px 0 0 var(--gold-light);
  color: var(--gold-light) !important;
}

/* Official Google Play Identity Badge */
.store-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 99, 0.1);
  border: 1px solid rgba(212, 175, 99, 0.34);
  color: var(--gold-light);
  font-size: 0.81rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.phone-frame.clickable-zoom {
  cursor: zoom-in;
}

/* 8-Slide Localized Google Play App Showcase Gallery */
.showcase-wrap {
  position: relative;
}

.showcase-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.showcase-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: rgba(9, 31, 28, 0.9);
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.showcase-nav-btn:hover {
  background: var(--gold-primary);
  color: #061816;
  border-color: var(--gold-primary);
}

.showcase-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 23vw, 276px);
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 99, 0.45) rgba(6, 24, 22, 0.5);
}

.showcase-track::-webkit-scrollbar {
  height: 7px;
}

.showcase-track::-webkit-scrollbar-track {
  background: rgba(6, 24, 22, 0.5);
  border-radius: 99px;
}

.showcase-track::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 99, 0.45);
  border-radius: 99px;
}

.showcase-card {
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 99, 0.32);
  background: #061816;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.58), 0 0 22px rgba(212, 175, 99, 0.18);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.showcase-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(4, 15, 13, 0.84);
  border: 1px solid rgba(212, 175, 99, 0.45);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

html[dir="rtl"] .showcase-zoom-badge {
  right: auto;
  left: 10px;
}

.showcase-card:hover .showcase-zoom-badge {
  opacity: 1;
}

/* Spotlight Upgraded Dual & Framed Phone Previews */
.spotlight-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.spotlight-screen-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 99, 0.38);
  background: #051412;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.spotlight-screen-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.spotlight-screen-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.spotlight-single-wrap {
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(212, 175, 99, 0.12) 0%, rgba(4, 15, 13, 0.65) 75%);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 99, 0.24);
  padding: 18px;
}

.spotlight-single-wrap .spotlight-screen-card {
  max-width: 255px;
  width: 100%;
  box-shadow: var(--shadow-luxury);
}

/* Fullscreen Interactive Lightbox */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-lightbox.open {
  display: flex;
}

.qr-lb-inner {
  position: relative;
  max-width: min(92vw, 520px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-lb-inner img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 99, 0.55);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.qr-lb-caption {
  text-align: center;
  color: var(--text-cream);
  max-width: 480px;
}

.qr-lb-caption strong {
  display: block;
  color: var(--gold-light);
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.qr-lb-caption span {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.qr-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 99, 0.5);
  background: rgba(8, 28, 25, 0.92);
  color: var(--gold-light);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 99, 0.5);
  background: rgba(8, 28, 25, 0.92);
  color: var(--gold-light);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-lb-prev { left: 22px; }
.qr-lb-next { right: 22px; }

@media (max-width: 680px) {
  .qr-lb-prev { left: 8px; }
  .qr-lb-next { right: 8px; }
  .spotlight-dual-grid { gap: 10px; }
}

/* =========================================================
   SEO CITATION ARCHITECTURE: BREADCRUMBS, FEATURED SNIPPET,
   DIYANET VS MWL COMPARISON, DISTRICT HUBS & FAQ ACCORDION
   ========================================================= */
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 4px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.seo-breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}

.seo-breadcrumbs a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.seo-breadcrumbs .bc-sep {
  opacity: 0.45;
  font-size: 0.78rem;
}

.seo-breadcrumbs .bc-current {
  color: var(--gold-light);
  font-weight: 600;
}

.seo-answer-snippet {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(5, 20, 18, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.32);
  border-left: 4px solid var(--gold-primary);
}

html[dir="rtl"] .seo-answer-snippet {
  border-left: 1px solid rgba(212, 175, 99, 0.32);
  border-right: 4px solid var(--gold-primary);
}

.seo-answer-snippet h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin: 0 0 8px;
  font-weight: 700;
}

.seo-answer-snippet p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-cream);
}

.seo-answer-snippet strong {
  color: #fff5dc;
}

.mwl-diff-panel {
  background: linear-gradient(135deg, rgba(16, 48, 43, 0.92) 0%, rgba(7, 23, 21, 0.96) 100%);
  border: 1px solid rgba(212, 175, 99, 0.38);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-luxury);
}

.mwl-diff-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.mwl-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 99, 0.16);
  border: 1px solid rgba(212, 175, 99, 0.45);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mwl-diff-panel h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  color: var(--text-cream);
  margin: 0;
  line-height: 1.25;
}

.mwl-diff-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 18px;
}

.mwl-diff-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mwl-diff-card {
  background: rgba(5, 18, 16, 0.82);
  border: 1px solid rgba(212, 175, 99, 0.22);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.mwl-diff-card.is-critical {
  border-color: rgba(240, 213, 150, 0.6);
  background: rgba(212, 175, 99, 0.1);
}

.mwl-diff-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.mwl-diff-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 2px 4px;
}

.mwl-diff-row strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-cream);
}

.mwl-diff-delta {
  margin-top: 7px;
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(212, 175, 99, 0.18);
  color: var(--gold-light);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.district-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(6, 22, 20, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.22);
  color: var(--text-cream);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.district-pill:hover,
.district-pill.active {
  background: rgba(212, 175, 99, 0.18);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.district-pill small {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-family: 'JetBrains Mono', monospace;
}

.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.seo-faq-item {
  background: rgba(5, 19, 17, 0.78);
  border: 1px solid rgba(212, 175, 99, 0.26);
  border-radius: 12px;
  overflow: hidden;
}

.seo-faq-item summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::after {
  content: '+';
  color: var(--gold-light);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seo-faq-item[open] summary::after {
  content: '−';
}

.seo-faq-item[open] summary {
  border-bottom: 1px solid rgba(212, 175, 99, 0.16);
  color: var(--gold-light);
}

.seo-faq-ans {
  padding: 14px 18px 16px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-soft);
}

.search-sugg-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(212, 175, 99, 0.18);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  margin-inline-start: 8px;
}

@media (max-width: 920px) {
  .mwl-diff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .mwl-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mwl-diff-panel {
    padding: 20px 16px;
  }
}
