/* =========================================================
   قرارك الذكي | Smart Decision Hub — Premium CSS v4
   Modern SaaS, Glassmorphism, Google Ads Compliance Ready, Dark/Light Mode
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Readex+Pro:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #14B8A6;
  --primary-soft: #E6FFFA;
  --primary-glow: rgba(13, 148, 136, 0.25);
  
  --accent: #4F46E5;
  --accent-dark: #4338CA;
  --accent-light: #6366F1;
  --accent-soft: #EEF2FF;
  
  --warning: #D97706;
  --warning-dark: #B45309;
  --warning-soft: #FFFBEB;
  
  --success: #059669;
  --success-dark: #047857;
  --success-soft: #ECFDF5;
  
  --danger: #DC2626;
  --danger-dark: #B91C1C;
  --danger-soft: #FEF2F2;
  
  --info: #0284C7;
  --info-soft: #F0F9FF;
  
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --surface-elevated: #FFFFFF;
  
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 40px -6px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 12px 28px -4px rgba(13, 148, 136, 0.28);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.18);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font: 'Cairo', 'Readex Pro', 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1240px;
  
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6rem;
  
  --focus: 0 0 0 4px rgba(13, 148, 136, 0.22);
  --tr: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --gradient-primary: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
  --gradient-accent: linear-gradient(135deg, #4338CA 0%, #4F46E5 50%, #6366F1 100%);
  --gradient-hero: linear-gradient(145deg, #064E3B 0%, #0F766E 40%, #0D9488 75%, #0284C7 100%);
  --gradient-footer: linear-gradient(160deg, #091E23 0%, #0F353C 50%, #0F766E 100%);
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #111827;
  --surface-soft: #1E293B;
  --surface-elevated: #1F293D;
  
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: #334155;
  --border-subtle: #1E293B;
  
  --primary: #2DD4BF;
  --primary-dark: #14B8A6;
  --primary-light: #5EEAD4;
  --primary-soft: rgba(45, 212, 191, 0.12);
  --primary-glow: rgba(45, 212, 191, 0.25);
  
  --accent: #818CF8;
  --accent-dark: #6366F1;
  --accent-soft: rgba(129, 140, 248, 0.14);
  
  --warning: #FBBF24;
  --warning-dark: #F59E0B;
  --warning-soft: rgba(251, 191, 36, 0.12);
  
  --success: #34D399;
  --success-dark: #10B981;
  --success-soft: rgba(52, 211, 153, 0.12);
  
  --danger: #F87171;
  --danger-dark: #EF4444;
  --danger-soft: rgba(248, 113, 113, 0.12);
  
  --info: #38BDF8;
  --info-soft: rgba(56, 189, 248, 0.12);
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -6px rgba(0, 0, 0, 0.55);
  --shadow-primary: 0 12px 28px -4px rgba(45, 212, 191, 0.2);
  --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.2);
  
  --gradient-primary: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
  --gradient-accent: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
  --gradient-hero: linear-gradient(145deg, #042F2E 0%, #0F4C49 40%, #0D9488 75%, #0C4A6E 100%);
  --gradient-footer: linear-gradient(160deg, #030712 0%, #0B1120 50%, #0F292F 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--tr), color var(--tr);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--tr), opacity var(--tr);
}

a:hover {
  color: var(--primary-dark);
}

[data-theme="dark"] a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

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

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

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  right: var(--s3);
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: var(--s2) var(--s4);
  border-radius: var(--radius-sm);
  z-index: 3000;
  font-weight: 700;
  transition: top var(--tr);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: var(--s3);
  outline: none;
  box-shadow: var(--focus);
}

*:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-xs);
}

/* ===== Container & Section Layouts ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.section {
  padding: var(--s7) 0;
  position: relative;
}

.section-about, .section-calculators {
  background-color: var(--surface);
}

.section-comparisons, .section-guides, .section-tools {
  background-color: var(--bg);
}

.section-cta {
  background: var(--surface-soft);
  padding: var(--s6) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-disclaimer {
  background-color: var(--surface-soft);
  padding: var(--s4) 0;
}

.section-trust {
  background: var(--gradient-primary);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-trust::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-trust::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--s6);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-dark);
  margin-bottom: var(--s2);
  font-weight: 800;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .section-title {
  color: var(--primary);
}

.section-trust .section-title {
  color: #FFFFFF;
}

.section-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Glassmorphic Navbar ===== */
.navbar {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 2000;
  transition: all var(--tr);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  transition: transform var(--tr);
  letter-spacing: -0.3px;
}

[data-theme="dark"] .nav-logo {
  color: var(--primary);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  font-size: 1.3rem;
  color: #fff;
  line-height: 1;
  background: var(--gradient-primary);
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: transform var(--tr), box-shadow var(--tr);
}

.nav-logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: var(--shadow-glow);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .logo-text {
  background: linear-gradient(135deg, #5EEAD4 0%, #2DD4BF 50%, #99F6E4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--tr);
  display: block;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 700;
}

[data-theme="dark"] .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.lang-switch, .theme-switch {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--tr);
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lang-switch:hover, .theme-switch:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s2);
}

.hamburger {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .hamburger {
  background: var(--primary);
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  background: var(--gradient-hero);
  color: #FFFFFF;
  padding: var(--s8) 0 var(--s7);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 22s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 28s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(35px, -35px); }
}

.hero-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 var(--s4);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: var(--s3);
  line-height: 1.25;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, #FDE047, #FBBF24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: var(--s5);
  color: rgba(255, 255, 255, 0.88);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--s6);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 140px;
  backdrop-filter: blur(8px);
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #FBBF24;
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--s1);
  font-weight: 600;
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--gradient-primary);
  color: #FFFFFF;
  padding: var(--s6) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: var(--s2);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--surface-soft);
  padding: var(--s2) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--muted);
  font-weight: 500;
}

.breadcrumbs-list li::after {
  content: '\2190';
  color: var(--muted);
  opacity: 0.5;
}

html[lang="en"] .breadcrumbs-list li::after {
  content: '\2192';
}

.breadcrumbs-list li:last-child::after {
  display: none;
}

.breadcrumbs-list li[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all var(--tr);
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(13, 148, 136, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn-icon {
  display: inline-block;
  line-height: 1;
}

.wizard-btn {
  padding: 0.9rem 0.75rem;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border-color: var(--border-subtle);
  background: var(--surface-soft);
  white-space: normal;
  line-height: 1.35;
}

.wizard-btn:hover,
.wizard-btn:focus-visible {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

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

/* ===== Google Ads Compliant Ad Placeholder ===== */
.ad-placeholder {
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
  padding: var(--s4);
  margin: var(--s5) auto;
  max-width: var(--maxw);
  border-radius: var(--radius-md);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr);
}

.ad-placeholder:hover {
  border-color: var(--primary);
}

.ad-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--surface);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--s4);
}

/* ===== Tool Cards ===== */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--tr);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

.tool-card.featured {
  border-top: 4px solid var(--primary);
}

.tool-card.featured::before {
  display: none;
}

.tool-icon {
  font-size: 2.6rem;
  margin-bottom: var(--s3);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-left: auto;
  margin-right: auto;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  transition: transform var(--tr);
}

[data-theme="dark"] .tool-icon {
  background: var(--surface-soft);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-6deg);
}

.tool-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: var(--s2);
  font-weight: 800;
}

[data-theme="dark"] .tool-title {
  color: var(--primary);
}

.tool-description {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--s4);
  flex-grow: 1;
  line-height: 1.75;
}

/* ===== Comparison Cards ===== */
.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s4);
  text-align: center;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--tr);
}

.comparison-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

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

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  flex-wrap: wrap;
}

[data-theme="dark"] .comparison-vs {
  color: var(--primary);
}

.comparison-vs .vs-badge {
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.comparison-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.7;
}

.comparison-category {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  background: var(--surface-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: center;
}

/* ===== Comparison Blocks ===== */
.comparison-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: var(--s6);
  scroll-margin-top: 90px;
}

.comparison-block h2 {
  color: var(--primary-dark);
  font-size: 1.7rem;
  margin-bottom: var(--s2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
  font-weight: 800;
}

[data-theme="dark"] .comparison-block h2 {
  color: var(--primary);
}

.comparison-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: var(--s4);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s4);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.comparison-table th, .comparison-table td {
  padding: var(--s3) var(--s4);
  text-align: right;
  border-bottom: 1px solid var(--border);
}

html[lang="en"] .comparison-table th, html[lang="en"] .comparison-table td {
  text-align: left;
}

.comparison-table thead {
  background: var(--primary);
}

.comparison-table thead th {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

.comparison-table tbody tr:hover {
  background: var(--primary-soft);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  width: 25%;
}

@media (max-width: 480px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.comparison-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}

.verdict-card {
  padding: var(--s4);
  border-radius: var(--radius-md);
  border: 2px solid;
}

.verdict-card.left {
  background: var(--info-soft);
  border-color: var(--info);
}

.verdict-card.right {
  background: var(--warning-soft);
  border-color: var(--warning);
}

.verdict-card h3 {
  margin-bottom: var(--s2);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

[data-theme="dark"] .verdict-card h3 {
  color: var(--primary);
}

.verdict-card ul {
  padding-right: var(--s4);
}

html[lang="en"] .verdict-card ul {
  padding-right: 0;
  padding-left: var(--s4);
}

.verdict-card li {
  list-style: disc;
  margin-bottom: var(--s1);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Guides Grid & Cards ===== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--s4);
}

.guide-card {
  position: relative;
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 16px);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.02));
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary, #0d9488);
  box-shadow: 0 12px 24px -6px rgba(13, 148, 136, 0.1);
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.guide-category {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-dark, #0f766e);
  background: var(--primary-soft, #e6fffa);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

[data-theme="dark"] .guide-category {
  color: var(--primary, #0d9488);
  background: var(--surface-soft, #1e293b);
}

.guide-read-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted, #64748b);
}

.guide-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .guide-title {
  color: var(--primary, #0d9488);
}

.guide-excerpt {
  font-size: 0.92rem;
  color: var(--muted, #64748b);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark, #0f766e);
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border-subtle, #f1f5f9);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-badge:hover {
  background: var(--primary-soft, #ccfbf1);
  border-color: var(--primary, #0d9488);
  color: var(--primary-dark, #0f766e);
}

[data-theme="dark"] .link-badge {
  background: var(--surface-soft, #1e293b);
  border-color: var(--border, #334155);
  color: var(--primary-light, #14b8a6);
}

[data-theme="dark"] .link-badge:hover {
  background: var(--primary-dark, #0f766e);
  color: #ffffff;
  border-color: var(--primary, #0d9488);
}

.guide-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary, #0d9488);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.guide-read-more svg {
  transition: transform 0.2s ease;
}

.guide-read-more:hover {
  color: var(--primary-dark, #0f766e);
}

[data-theme="dark"] .guide-read-more:hover {
  color: var(--primary-light, #14b8a6);
}

.guide-read-more:hover svg {
  transform: translateX(-4px);
}

/* ===== Trust Section ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}

.trust-item {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--s4);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all var(--tr);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.trust-icon {
  font-size: 2.6rem;
  margin-bottom: var(--s2);
}

.trust-title {
  font-size: 1.1rem;
  margin-bottom: var(--s2);
  font-weight: 800;
}

.trust-item p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

/* ===== CTA Section ===== */
.cta-content {
  max-width: 750px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: var(--s3);
  font-weight: 800;
}

[data-theme="dark"] .cta-content h2 {
  color: var(--primary);
}

.cta-content p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: var(--s4);
  line-height: 1.8;
}

/* ===== Page Content ===== */
.page-main {
  padding: var(--s6) 0;
  min-height: 65vh;
}

.page-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.page-content h1 {
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 3px solid var(--primary);
  font-weight: 800;
}

[data-theme="dark"] .page-content h1 {
  color: var(--primary);
}

.page-content h2 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin: var(--s5) 0 var(--s2);
  font-weight: 800;
}

[data-theme="dark"] .page-content h2 {
  color: var(--primary);
}

.page-content h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin: var(--s4) 0 var(--s2);
  font-weight: 700;
}

[data-theme="dark"] .page-content h3 {
  color: var(--primary);
}

.page-content p {
  color: var(--muted);
  margin-bottom: var(--s3);
  line-height: 1.85;
  font-size: 1.02rem;
}

.page-content ul, .page-content ol {
  margin: var(--s2) 0 var(--s4);
  padding-right: var(--s4);
}

html[lang="en"] .page-content ul, html[lang="en"] .page-content ol {
  padding-right: 0;
  padding-left: var(--s4);
}

.page-content li {
  color: var(--muted);
  margin-bottom: var(--s2);
  list-style: disc;
  line-height: 1.75;
}

.page-content ol li {
  list-style: decimal;
}

.page-content strong {
  color: var(--text);
  font-weight: 700;
}

.page-content a {
  color: var(--primary);
  font-weight: 700;
}

.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--s4);
  font-weight: 500;
}

/* ===== Alerts ===== */
.alert {
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s4);
  font-size: 0.98rem;
  line-height: 1.75;
  box-shadow: var(--shadow-xs);
}

.alert-info {
  background: var(--info-soft);
  color: var(--info);
  border-right: 4px solid var(--info);
}

html[lang="en"] .alert-info {
  border-right: none;
  border-left: 4px solid var(--info);
}

.alert-warning {
  background: var(--warning-soft);
  color: var(--warning-dark);
  border-right: 4px solid var(--warning);
}

html[lang="en"] .alert-warning {
  border-right: none;
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background: var(--danger-soft);
  color: var(--danger-dark);
  border-right: 4px solid var(--danger);
}

html[lang="en"] .alert-danger {
  border-right: none;
  border-left: 4px solid var(--danger);
}

/* ===== Footer ===== */
.footer {
  background: var(--gradient-footer);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--s7) 0 var(--s4);
  margin-top: var(--s7);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.footer::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s6);
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: var(--s2);
  font-weight: 800;
}

.footer-description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: var(--s3);
  font-weight: 800;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--tr), transform var(--tr);
  display: inline-block;
}

.footer-links a:hover {
  color: #FBBF24;
  transform: translateX(-3px);
}

html[lang="en"] .footer-links a:hover {
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--s4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Calculators UI ===== */
.calc-tabs {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--s3);
}

.calc-tab {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
  transition: all var(--tr);
  font-size: 0.98rem;
  cursor: pointer;
}

.calc-tab:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.calc-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.tab-icon {
  font-size: 1.2rem;
}

.calculator-card {
  background: var(--surface, #ffffff);
  border-radius: var(--radius-lg, 24px);
  padding: 2.2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--border, #e2e8f0);
  display: none;
  transition: opacity 0.25s ease;
  animation: fadeIn 0.25s ease;
}

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

.calculator-card.active {
  display: block;
}

.calc-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}

.calc-title {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--primary-dark, #0f766e);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .calc-title {
  color: var(--primary, #0d9488);
}

.calc-description {
  color: var(--muted, #64748b);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.calc-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.calc-form {
  background: var(--surface-soft, #f8fafc);
  padding: 1.75rem;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border-subtle, #f1f5f9);
}

.calc-results {
  background: var(--primary-soft, #e6fffa);
  padding: 1.75rem;
  border-radius: var(--radius-md, 16px);
  min-height: 240px;
  transition: all 0.25s ease;
  border: 1px solid var(--primary-soft, #e6fffa);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(13, 148, 136, 0.02);
}

[data-theme="dark"] .calc-results {
  background: rgba(13, 148, 136, 0.05);
  border-color: rgba(13, 148, 136, 0.1);
}

.calc-results:empty::before {
  content: 'النتائج والتوصيات الفورية ستظهر هنا فور إدخال بياناتك وقيم الحساب.';
  color: var(--muted, #64748b);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ===== Form Controls ===== */
.form-group {
  margin-bottom: var(--s3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s1);
  font-size: 0.95rem;
}

.required {
  color: var(--danger);
}

.input-group {
  display: flex;
  gap: var(--s2);
}

.input-group .form-input {
  flex: 1;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem var(--s3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all var(--tr);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
  background: var(--surface);
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--s1);
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: var(--danger);
  margin-top: var(--s1);
  background: var(--danger-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  animation: shake 0.3s ease;
  font-weight: 600;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-actions {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s4);
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 130px;
}

.currency-select {
  max-width: 110px;
  font-weight: 700;
}

/* ===== Interactive Calculation Results Cards & Visual Breakdown ===== */
.result-card {
  background: var(--surface);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-md);
  margin-bottom: var(--s3);
  border-right: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.35s ease;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}

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

html[lang="en"] .result-card {
  border-right: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
}

.result-card.success { border-color: var(--success); }
.result-card.warning { border-color: var(--warning); }
.result-card.danger { border-color: var(--danger); }

.result-title {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: var(--s1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
}

[data-theme="dark"] .result-value {
  color: var(--primary);
}

.result-value.success { color: var(--success); }
.result-value.warning { color: var(--warning); }
.result-value.danger { color: var(--danger); }

.result-detail {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: var(--s1);
}

.result-recommendation {
  background: var(--warning-soft);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  margin-top: var(--s3);
  font-size: 0.98rem;
  color: var(--text);
  border-right: 4px solid var(--warning);
  line-height: 1.75;
}

html[lang="en"] .result-recommendation {
  border-right: none;
  border-left: 4px solid var(--warning);
}

.result-recommendation strong {
  color: var(--warning-dark);
  display: block;
  margin-bottom: var(--s1);
}

/* Visual Progress & Breakdown Bar */
.progress-bar-wrap {
  margin-top: var(--s3);
  margin-bottom: var(--s2);
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.result-bar {
  background: var(--surface-soft);
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}

.result-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-bar-fill.success { background: var(--success); }
.result-bar-fill.warning { background: var(--warning); }
.result-bar-fill.danger { background: var(--danger); }

/* Copy Result Button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: var(--s3);
  transition: all var(--tr);
}

.copy-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.copy-btn.copied {
  background: var(--success);
  color: #FFFFFF;
  border-color: var(--success);
}

/* ===== Calc Extras ===== */
.calc-example, .calc-links, .calc-faq, .calc-disclaimer {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

.example-title, .links-title, .faq-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: var(--s2);
  font-weight: 800;
}

[data-theme="dark"] .example-title, [data-theme="dark"] .links-title, [data-theme="dark"] .faq-title {
  color: var(--primary);
}

.calc-example p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.link-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--tr);
  display: inline-block;
}

[data-theme="dark"] .link-badge {
  background: var(--surface-soft);
  color: var(--primary);
}

.link-badge:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.faq-item {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border);
  transition: all var(--tr);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: var(--s2) 0;
  list-style: none;
  position: relative;
  padding-left: 32px;
}

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

.faq-item summary::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--tr);
}

.faq-item[open] summary::before {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  padding: var(--s2) 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.calc-disclaimer {
  background: var(--warning-soft);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  color: var(--warning-dark);
  font-size: 0.92rem;
  border-right: 4px solid var(--warning);
  line-height: 1.7;
}

html[lang="en"] .calc-disclaimer {
  border-right: none;
  border-left: 4px solid var(--warning);
}

/* ===== Subscription Rows ===== */
.subscription-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: var(--s2);
  align-items: end;
  margin-bottom: var(--s3);
  padding: var(--s3);
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--tr);
}

.subscription-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.subscription-row .form-group {
  margin-bottom: 0;
}

.subscription-row .form-label {
  font-size: 0.8rem;
}

.subscription-row .form-input, .subscription-row .form-select {
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Contact Cards & Form ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s3);
  margin: var(--s4) 0;
}

.contact-card {
  background: var(--surface-soft);
  padding: var(--s4);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--tr);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--s2);
}

.contact-card-title {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: var(--s1);
}

[data-theme="dark"] .contact-card-title {
  color: var(--primary);
}

.contact-card-detail {
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

/* ===== Cookie Consent Banner (GDPR / Google Consent Mode v2) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: var(--s4);
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.active {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* ===== Toast Notification ===== */
.toast-container {
  position: fixed;
  bottom: var(--s4);
  left: var(--s4);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 380px;
  pointer-events: none;
}

html[lang="en"] .toast-container {
  left: auto;
  right: var(--s4);
}

.toast {
  background: var(--surface-elevated);
  color: var(--text);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--tr);
  pointer-events: auto;
  border-right: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-right-color: var(--success); }
.toast.error { border-right-color: var(--danger); }

/* ===== 404 Error Page ===== */
.error-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s6) 0;
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--s3);
}

.error-message {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: var(--s5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}

/* ===== Responsive Adaptations ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .calc-content {
    grid-template-columns: 1fr;
  }
  .comparison-verdict {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 66px;
    right: -100%;
    width: 290px;
    height: calc(100vh - 66px);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s4);
    gap: var(--s2);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1999;
    border-left: 1px solid var(--border);
  }
  html[lang="en"] .nav-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border);
  }
  .nav-menu.active {
    right: 0;
  }
  html[lang="en"] .nav-menu.active {
    right: auto;
    left: 0;
  }
  .nav-link {
    display: block;
    padding: var(--s3);
  }
  .section {
    padding: var(--s6) 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .subscription-row {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .calc-tabs {
    gap: var(--s1);
  }
  .calc-tab {
    padding: var(--s2) var(--s3);
    font-size: 0.88rem;
  }
  .tab-icon {
    display: none;
  }
  .calculator-card {
    padding: var(--s3);
  }
  .comparison-table {
    font-size: 0.9rem;
  }
  .comparison-table th, .comparison-table td {
    padding: var(--s2);
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
  .hero-stats {
    gap: var(--s3);
  }
  .cookie-container {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Ultra Premium Header Date Badges ===== */
.navbar-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.08);
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.navbar-date:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.15);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.date-badge.date-greg {
  color: var(--primary-dark);
}

.date-badge.date-hijri {
  color: #0d9488;
}

.date-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.date-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  opacity: 0.6;
  margin: 0 0.15rem;
}

[data-theme="dark"] .navbar-date {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .date-badge.date-greg {
  color: var(--text-light);
}

[data-theme="dark"] .date-badge.date-hijri {
  color: var(--primary-light);
}

[data-theme="dark"] .date-divider {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switch {
  display: none !important;
}

@media (max-width: 992px) {
  .navbar-date {
    padding: 0.2rem 0.5rem;
    gap: 0.35rem;
    margin-right: 0.35rem;
  }
  .date-badge {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .navbar-container {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .navbar-date {
    display: inline-flex;
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0 0 0;
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ===== Policy-Compliant Google AdSense Containers ===== */
.ad-placeholder,
.ad-slot,
.ad-banner,
.ad-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: var(--s6) auto;
  padding: var(--s3);
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ad-placeholder::before {
  content: "إعلان Google Ads";
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: var(--s2);
}

.ad-placeholder .ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ad-placeholder {
    margin: var(--s4) auto;
    padding: var(--s2);
    min-height: 80px;
  }
  .ad-placeholder .ad-inner {
    max-width: 320px;
    min-height: 50px;
    font-size: 0.75rem;
  }
}


/* ===== Comparison Filter Pills — Dynamic Colorful Tabs ===== */
.filter-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

.filter-pill {
  --tab-c: var(--primary);
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.filter-pill[data-filter="all"]          { --tab-c: var(--primary); }
.filter-pill[data-filter="ai"]           { --tab-c: var(--accent); }
.filter-pill[data-filter="productivity"] { --tab-c: var(--warning); }
.filter-pill[data-filter="design"]       { --tab-c: #DB2777; }
.filter-pill[data-filter="cloud"]        { --tab-c: var(--info); }
.filter-pill[data-filter="hardware"]     { --tab-c: #2563EB; }
.filter-pill[data-filter="finance"]      { --tab-c: var(--success); }

.pill-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-pill:hover {
  background: color-mix(in srgb, var(--tab-c) 14%, var(--surface));
  border-color: var(--tab-c);
  color: var(--tab-c);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--tab-c) 35%, transparent);
}

.filter-pill:hover .pill-icon {
  transform: rotate(-14deg) scale(1.2);
}

.filter-pill:active {
  transform: translateY(-1px) scale(0.97);
}

.filter-pill.active {
  background: var(--tab-c);
  border-color: var(--tab-c);
  color: #ffffff !important;
  box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--tab-c) 55%, transparent);
  animation: pillPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-pill.active:hover {
  transform: translateY(-3px);
  color: #ffffff !important;
}

@keyframes pillPop {
  0% { transform: scale(0.86); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .filter-pill, .pill-icon { transition: none; animation: none; }
}

.featured-comp-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

@media print {
  .navbar, .footer, .ad-placeholder, .calc-tabs, .form-actions, .nav-toggle, .breadcrumbs, .toast-container, .skip-link, .cookie-banner {
    display: none !important;
  }
  body {
    background: #FFFFFF;
    font-size: 11pt;
    color: #000000;
  }
  .calculator-card, .comparison-block, .page-content, .tool-card, .guide-card {
    box-shadow: none;
    border: 1px solid #CCCCCC;
    page-break-inside: avoid;
  }
  a {
    color: #000000;
    text-decoration: underline;
  }
  .hero, .page-hero, .section-trust {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #CCCCCC;
  }
}

@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;
  }
  .hero::before, .hero::after {
    display: none;
    animation: none;
  }
}

/* =========================================================
   2026 SaaS Premium UI - Stage 1 Optimization
   ========================================================= */

/* Minimal Premium Category Rails */
.category-nav-container {
  background: var(--surface, #ffffff) !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04)) !important;
  padding: 0.85rem 1.15rem !important;
}

.category-nav-rail {
  display: flex !important;
  gap: 0.55rem !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  padding: 0.15rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
  -webkit-overflow-scrolling: touch !important;
}
.category-nav-rail::-webkit-scrollbar {
  display: none !important; /* Safari & Chrome */
}

/* Overriding filter-pill with Premium Minimal aesthetics */
.filter-pills .filter-pill,
.category-nav-rail .filter-pill {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: var(--surface-soft, #f8fafc) !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  color: var(--text, #0f172a) !important;
  padding: 0 1.25rem !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.filter-pills .filter-pill:hover,
.category-nav-rail .filter-pill:hover {
  background-image: linear-gradient(135deg, var(--surface, #ffffff), var(--primary-soft, #e6fffaf5)) !important;
  border-color: var(--primary, #0d9488) !important;
  color: var(--primary-dark, #0f766e) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08) !important;
}

.filter-pills .filter-pill.active,
.category-nav-rail .filter-pill.active {
  background-image: linear-gradient(135deg, var(--primary, #0d9488), var(--primary-dark, #0f766e)) !important;
  border-color: var(--primary-dark, #0f766e) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.32) !important;
  transform: translateY(-1px) !important;
}

.nav-count-badge {
  background: rgba(0, 0, 0, 0.08) !important;
  color: inherit !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 9999px !important;
  margin-right: 0.15rem !important;
}
.filter-pill.active .nav-count-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Dark mode compatibility override */
[data-theme="dark"] .filter-pills .filter-pill.active,
[data-theme="dark"] .category-nav-rail .filter-pill.active {
  border-color: var(--primary-light, #14b8a6) !important;
}

/* 2026 Resilient Featured Cards Grid */
.comp-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

.comp-cards-grid .comparison-block {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: block;
  width: 100%;
}
.comp-cards-grid .comparison-block:hover {
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 1024px) {
  .comp-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .comp-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* Premium Comparison Card */
.saas-comp-card {
  position: relative;
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.02));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  min-height: 290px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.saas-comp-card:hover {
  border-color: var(--primary, #0d9488);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(13, 148, 136, 0.12);
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.card-category-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-dark, #0f766e);
  background: var(--primary-soft, #e6fffa);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.card-ratings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--warning, #d97706);
  background: var(--warning-soft, #fffbeb);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--warning) 12%, transparent);
}
.card-ratings-badge svg {
  fill: var(--warning, #d97706);
  stroke: none;
}

.card-vs-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.prod-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-name:last-child {
  text-align: left;
}

@media (max-width: 420px) {
  .card-vs-identity {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .prod-name {
    white-space: normal;
    flex-basis: 40%;
  }
}

.vs-micro-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark, #0f766e), var(--primary, #0d9488));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.saas-comp-card:hover .vs-micro-capsule {
  transform: scale(1.1) rotate(-6deg);
}

.card-insight-text {
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  line-height: 1.6;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}
.card-specs-row span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-dark, #0f766e);
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border-subtle, #f1f5f9);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.card-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 40px;
  background: var(--surface-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  color: var(--text, #0f172a);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.card-cta-ghost svg {
  stroke: var(--muted, #64748b);
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.saas-comp-card:hover .card-cta-ghost {
  background: var(--primary-soft, #ccfbf1);
  border-color: var(--primary, #0d9488);
  color: var(--primary-dark, #0f766e);
}
.saas-comp-card:hover .card-cta-ghost svg {
  transform: translateX(-3px);
  stroke: var(--primary-dark, #0f766e);
}

/* =========================================================
   2026 SaaS Premium UI - Stage 2 Optimization
   ========================================================= */

/* Premium Comparison Blocks */
.comparison-block {
  background: var(--surface, #ffffff) !important;
  border: 1.5px solid var(--border, #e2e8f0) !important;
  border-radius: var(--radius-lg, 16px) !important;
  padding: 2rem !important;
  margin-bottom: 2.5rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
  position: relative !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.comparison-block:hover {
  border-color: var(--primary, #0d9488) !important;
  box-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.12) !important;
}

.comparison-block h2 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--text, #0f172a) !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.comparison-block h2 .vs-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--primary-dark, #0f766e), var(--primary, #0d9488)) !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3) !important;
  flex-shrink: 0 !important;
}

.comparison-intro {
  font-size: 0.98rem !important;
  color: var(--muted, #64748b) !important;
  line-height: 1.75 !important;
  margin-bottom: 1.5rem !important;
}

/* Premium Comparison Tables */
.comparison-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--border-subtle, #f1f5f9) !important;
  margin-bottom: 1.5rem !important;
}

.comparison-table th {
  background: var(--surface-soft, #f8fafc) !important;
  color: var(--primary-dark, #0f766e) !important;
  font-weight: 800 !important;
  padding: 0.9rem 1.1rem !important;
  border-bottom: 2px solid var(--border, #e2e8f0) !important;
  font-size: 0.95rem !important;
  text-align: right !important;
}

.comparison-table td {
  padding: 0.85rem 1.1rem !important;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9) !important;
  font-size: 0.92rem !important;
  color: var(--text, #334155) !important;
  line-height: 1.55 !important;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none !important;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5) !important;
}

/* Pros and Cons Custom Design */
.pros-cons-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr !important;
  }
}

.pros-box, .cons-box {
  background: var(--surface-soft, #f8fafc) !important;
  border: 1px solid var(--border-subtle, #f1f5f9) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
}

.pros-box h4 {
  color: var(--success, #059669) !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  font-size: 1rem !important;
}

.cons-box h4 {
  color: var(--warning, #d97706) !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  font-size: 1rem !important;
}

.pros-box ul, .cons-box ul {
  padding-right: 1.25rem !important;
  margin: 0 !important;
}

.pros-box li, .cons-box li {
  font-size: 0.88rem !important;
  color: var(--text, #334155) !important;
  line-height: 1.65 !important;
  margin-bottom: 0.4rem !important;
}

/* Premium Decision Verdict */
.decision-verdict {
  margin-top: 1.5rem !important;
  padding: 1.25rem 1.5rem !important;
  background: var(--primary-soft, #ccfbf1) !important;
  border-radius: 14px !important;
  border-right: 5px solid var(--primary, #0d9488) !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08) !important;
}

.decision-verdict h3 {
  color: var(--primary-dark, #0f766e) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.decision-verdict p {
  font-size: 0.95rem !important;
  color: var(--text, #0f172a) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Dark Mode support for tables and pros/cons */
[data-theme="dark"] .comparison-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3) !important;
}
[data-theme="dark"] .pros-box, 
[data-theme="dark"] .cons-box {
  background: rgba(15, 23, 42, 0.2) !important;
}
[data-theme="dark"] .decision-verdict {
  background: rgba(13, 148, 136, 0.15) !important;
  border-right-color: var(--primary-light, #14b8a6) !important;
}
[data-theme="dark"] .decision-verdict h3 {
  color: var(--primary-light, #14b8a6) !important;
}
[data-theme="dark"] .decision-verdict p {
  color: var(--surface-soft, #f8fafc) !important;
}

/* Premium trust button link */
.trust-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full, 9999px);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
}

.trust-read-more-btn:hover {
  background: #ffffff !important;
  color: var(--primary-dark, #0f766e) !important;
  border-color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

