:root {
  --brand:        rgb(147, 51, 234);
  --brand-dark:   rgb(109, 40, 217);
  --brand-darker: rgb(76,  29, 149);
  --brand-light:  rgba(147, 51, 234, 0.10);
  --brand-light2: rgba(147, 51, 234, 0.06);
  --brand-border: rgba(147, 51, 234, 0.30);
  --brand-shadow: rgba(147, 51, 234, 0.35);
  --brand-shadow2:rgba(147, 51, 234, 0.45);
  --gold: #FFD700;
  --red: #EF4444;

  --bg: #F5F5FA;
  --bg2: #EDEAF4;
  --bg3: #FFFFFF;
  --card: rgba(255,255,255,0.85);
  --card-hover: rgba(255,255,255,0.95);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(147,51,234,0.3);
  --text: #0F0A1A;
  --text-sub: #2D1B4E;
  --muted: #6B5A80;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --nav-bg: rgba(245,245,250,0.92);
  --hero-bg: #F3EEF9;
}

[data-theme="dark"] {
  --bg: #0A0712;
  --bg2: #0E0A18;
  --bg3: #110D1C;
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(147,51,234,0.3);
  --text: #EDE8F5;
  --text-sub: #C4B8D9;
  --muted: #7A6A90;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7);
  --nav-bg: rgba(10,7,18,0.92);
  --hero-bg: #0A0712;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body[data-lang="en"] { font-family: 'Inter', sans-serif; direction: ltr; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--brand-shadow);
}

.logo em { color: var(--brand); font-style: normal; }

nav ul { list-style: none; display: flex; align-items: center; gap: 28px; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
nav ul a:hover { color: var(--text); }

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

.toggle-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.toggle-btn:hover { border-color: var(--brand); background: var(--brand-light); }

.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #fff !important;
  padding: 9px 22px; border-radius: 50px;
  font-weight: 700 !important; font-size: 0.85rem !important;
  transition: opacity 0.2s, transform 0.2s !important;
  box-shadow: 0 4px 16px var(--brand-shadow);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* SECTIONS */
section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 48px 80px; position: relative; }
.container { max-width: 1100px; width: 100%; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 20px;
}

/* HERO */
#hero { background: var(--hero-bg); overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(147,51,234,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%,  rgba(109,40,217,0.07) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-content { text-align: center; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 28px;
  animation: fadeDown 0.8s ease both;
}

.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--brand); border-radius: 50%;
  animation: pulse 2s infinite;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; animation: fadeUp 0.8s 0.1s ease both; }

h1 .highlight {
  background: linear-gradient(135deg, var(--brand), rgb(192, 38, 211));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 auto 36px; line-height: 1.9; animation: fadeUp 0.8s 0.2s ease both; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.8s 0.3s ease both; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 14px 30px; border-radius: 50px;
  font-size: 0.98rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px var(--brand-shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--brand-shadow2); }

.btn-outline {
  border: 1px solid var(--border); color: var(--text);
  padding: 14px 30px; border-radius: 50px;
  font-size: 0.98rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s, background 0.2s; background: var(--card);
}
.btn-outline:hover { border-color: var(--brand-border); background: var(--brand-light); }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; animation: fadeUp 0.8s 0.4s ease both; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* SHARED */
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 640px; margin-bottom: 48px; }

/* PROBLEM */
#problem { background: var(--bg2); }
.problems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.problem-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.problem-card:hover { border-color: rgba(239,68,68,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.problem-card:hover::before { opacity: 1; }
.problem-icon { width: 46px; height: 46px; background: rgba(239,68,68,0.1); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.problem-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.problem-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* SOLUTION */
#solution { background: var(--bg3); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }

.pillar-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 34px 26px; text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--brand-border); box-shadow: var(--shadow-lg); }
.pillar-icon { font-size: 2.8rem; margin-bottom: 14px; }
.pillar-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.pillar-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.75; }

/* FEATURES */
#features { background: var(--bg); }
.feature-category { margin-bottom: 72px; }
.category-title { font-size: 1.65rem; font-weight: 800; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden; display: flex; gap: 14px;
  box-shadow: var(--shadow);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--brand-border); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 1.7rem; flex-shrink: 0; margin-top: 2px; }
.feature-content { flex: 1; }
.feature-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 5px; }
.feature-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* WHY US */
#why-us { background: var(--bg2); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }

/* PRICING */
#pricing { background: var(--bg3); }
.pricing-card-wrapper { max-width: 500px; margin: 0 auto; }

.plan-card {
  background: linear-gradient(145deg, rgba(147,51,234,0.07), rgba(109,40,217,0.04));
  border: 2px solid var(--brand);
  border-radius: 30px; padding: 44px 36px; position: relative;
  box-shadow: 0 20px 60px rgba(147,51,234,0.15);
}

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 5px 22px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px var(--brand-shadow);
}

.plan-name { font-size: 1.1rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; text-align: center; }
.plan-price { font-size: 3.2rem; font-weight: 800; margin-bottom: 6px; text-align: center; }
.plan-price span { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.plan-divider { height: 1px; background: var(--border); margin: 28px 0; }
.plan-features { list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; margin-bottom: 12px; line-height: 1.5; }
.plan-features li::before { content: '✅'; flex-shrink: 0; margin-top: 1px; }

.plan-btn {
  display: block; width: 100%; text-align: center;
  padding: 15px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  margin-top: 28px; transition: all 0.2s;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 8px 28px var(--brand-shadow);
}
.plan-btn:hover { box-shadow: 0 12px 36px var(--brand-shadow2); transform: translateY(-2px); }

.plan-footer { text-align: center; margin-top: 20px; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

.comparison-note {
  max-width: 580px; margin: 44px auto 0; padding: 22px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 14px; font-size: 0.88rem; color: var(--muted); line-height: 1.85;
}
.comparison-note strong { color: var(--text); }

/* FAQ (Native Details Element for SEO) */
#faq { background: var(--bg); }
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s; overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item:hover { border-color: var(--brand-border); box-shadow: var(--shadow-lg); }

.faq-question {
  font-size: 1rem; font-weight: 700; color: var(--text);
  padding: 24px 28px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; user-select: none; transition: color 0.2s;
  list-style: none; /* Hide default summary list marker */
}
.faq-question::-webkit-details-marker { display: none; } /* Hide Chrome/Safari marker */

.faq-item[open] .faq-question { color: var(--brand); }
.faq-chevron { font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s ease; color: var(--muted); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }

.faq-answer {
  font-size: 0.88rem; color: var(--muted); line-height: 1.85;
  padding: 0 28px 24px;
}

/* CTA */
#cta { background: var(--bg2); text-align: center; }

.cta-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 28px; padding: 60px;
  position: relative; overflow: hidden;
  max-width: 780px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(147,51,234,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2, .cta-box p { position: relative; z-index: 1; }
.cta-box p { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* FOOTER */
footer { text-align: center; padding: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.83rem; }
footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.aquadic-link {
  color: var(--brand); text-decoration: none; font-weight: 700;
  border-bottom: 1px dashed var(--brand-border); transition: border-color 0.2s;
}
.aquadic-link:hover { border-bottom-color: var(--brand); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav ul { display: none; }
  section { padding: 100px 20px 60px; }
  .problems-grid, .pillars-grid, .features-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-box { padding: 36px 20px; }
  .plan-card { padding: 30px 20px; }
  nav { padding: 14px 20px; }
}
@media (max-width: 600px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  h1 { font-size: 2rem; }
  .plan-price { font-size: 2.5rem; }
}

/* CALCULATOR SECTION */
#calculator {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.calc-inputs-card, .calc-results-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.calc-inputs-card:hover, .calc-results-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg);
}

.calc-field {
  margin-bottom: 24px;
}
.calc-field:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-sub);
}

.calc-selectors-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .calc-selectors-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.calc-select {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.calc-select:focus {
  border-color: var(--brand);
  outline: none;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--muted);
}
body[data-lang="ar"] .select-wrapper::after {
  left: 20px;
}
body[data-lang="en"] .select-wrapper::after {
  right: 20px;
}

/* Custom Searchable Dropdown */
.custom-select-container {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body[data-lang="ar"] .custom-select-trigger {
  text-align: right;
}

.custom-select-trigger:focus,
.custom-select-container.open .custom-select-trigger {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-light);
}

.custom-select-trigger span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-options-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-select-container.open .custom-select-options-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-search {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.custom-select-search:focus {
  border-color: var(--brand);
}

.custom-select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Scrollbar styling */
.custom-select-list::-webkit-scrollbar {
  width: 6px;
}
.custom-select-list::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.custom-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-sub);
  transition: all 0.15s ease;
  text-align: left;
}
body[data-lang="ar"] .custom-select-option {
  text-align: right;
  flex-direction: row-reverse;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
  background: var(--bg);
  color: var(--brand);
}

.custom-select-option.selected {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

.custom-select-option .option-flag-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-lang="ar"] .custom-select-option .option-flag-name {
  flex-direction: row-reverse;
}

.custom-select-option .option-code {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: normal;
}

.dropdown-chevron {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.custom-select-container.open .dropdown-chevron {
  transform: rotate(180deg);
}

.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-field-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.calc-rate-badge {
  font-size: 0.78rem;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
}

.calc-rate-badge.free-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  border-radius: 5px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg3);
  cursor: pointer;
  box-shadow: 0 0 8px var(--brand-shadow);
  transition: transform 0.1s ease;
}
.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg3);
  cursor: pointer;
  box-shadow: 0 0 8px var(--brand-shadow);
  transition: transform 0.1s ease;
}
.calc-range::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.calc-num-input {
  width: 90px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: border-color 0.2s;
}
.calc-num-input:focus {
  border-color: var(--brand);
  outline: none;
}

.calc-field-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.calc-results-card {
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.05), rgba(109, 40, 217, 0.03));
  border: 2px solid var(--border);
  position: sticky;
  top: 100px;
}

[data-theme="dark"] .calc-results-card {
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.08), rgba(109, 40, 217, 0.04));
  border-color: var(--brand-border);
}

.calc-results-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-sub);
  font-weight: 600;
}

.price-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.price-val.highlighted {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
}

.total-row {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 800;
}

.divider-dashed {
  height: 1px;
  border-top: 1px dashed var(--border);
  margin: 24px 0;
}

.competitor-comparison h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.comparison-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.comp-box {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.comp-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.comp-total {
  font-weight: 700;
  margin-top: 8px;
}

.price-val.red-text {
  color: var(--red);
}

.savings-card {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(192, 38, 211, 0.1));
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.1);
}

.savings-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.savings-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  text-shadow: 0 2px 10px rgba(147, 51, 234, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .calc-results-card {
    position: static;
  }
}

/* LANG */
.ar { }
.en { display: none; }
body[data-lang="en"] .ar { display: none; }
body[data-lang="en"] .en { display: block; }
body[data-lang="en"] .en.inline { display: inline; }
body[data-lang="en"] .en.flex { display: flex; }
body[data-lang="en"] .en.inline-flex { display: inline-flex; }
body[data-lang="ar"] .ar.inline { display: inline; }
body[data-lang="ar"] .ar.flex { display: flex; }
body[data-lang="ar"] .ar.inline-flex { display: inline-flex; }


/* ==========================================
   USE CASES & COMPARISON PAGES NEW STYLES
   ========================================== */

/* WhatsApp Mockup UI */
.whatsapp-mockup {
  max-width: 340px;
  width: 100%;
  background: #efeae2;
  border-radius: 24px;
  border: 8px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  margin: 20px auto;
  direction: ltr; /* Mockups follow standard layout direction */
}
[data-theme="dark"] .whatsapp-mockup {
  background: #0b141a;
  border-color: #222e35;
}
.wa-header {
  background: #008069;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
[data-theme="dark"] .wa-header {
  background: #202c33;
}
.wa-avatar {
  width: 32px;
  height: 32px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.wa-status {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
}
.wa-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  font-size: 0.82rem;
  line-height: 1.4;
  background: #efeae2;
}
[data-theme="dark"] .wa-body {
  background: #0b141a;
}
.wa-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  word-wrap: break-word;
}
.wa-msg.in {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 0;
  color: #000;
}
[data-theme="dark"] .wa-msg.in {
  background: #202c33;
  color: #e9edef;
}
.wa-msg.out {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-right-radius: 0;
  color: #000;
}
[data-theme="dark"] .wa-msg.out {
  background: #005c4b;
  color: #e9edef;
}
.wa-time {
  font-size: 0.65rem;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
}
.wa-template-btn {
  margin-top: 6px;
  background: #fff;
  border: 1px solid #e9edef;
  border-radius: 20px;
  color: #008069;
  padding: 6px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
[data-theme="dark"] .wa-template-btn {
  background: #202c33;
  border-color: #2f3b43;
  color: #53bdeb;
}

/* --- USE CASES PAGE --- */
.page-hero {
  text-align: center;
  padding: 160px 20px 60px;
  position: relative;
  background: var(--hero-bg);
}
.use-case-section {
  padding: 80px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.use-case-section:nth-child(even) {
  background: var(--bg2);
}
.use-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.use-case-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.use-case-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.use-case-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.use-case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.use-case-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-sub);
}
body[data-lang="ar"] .use-case-list li::before {
  content: '🎯';
  margin-left: 8px;
}
body[data-lang="en"] .use-case-list li::before {
  content: '🎯';
  margin-right: 8px;
}
.use-case-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- COMPARISON PAGE --- */
.compare-hero {
  text-align: center;
  padding: 160px 20px 60px;
  background: var(--hero-bg);
}
.compare-section {
  padding: 80px 20px;
  background: var(--bg);
}
.compare-container {
  max-width: 1000px;
  margin: 0 auto;
}
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}
body[data-lang="en"] .comparison-table {
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.comparison-table th {
  font-weight: 800;
  color: var(--text);
  background: rgba(147, 51, 234, 0.05);
}
.comparison-table td {
  color: var(--text-sub);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .cloudwa-col {
  background: rgba(147, 51, 234, 0.04);
  font-weight: 700;
  color: var(--brand);
}
[data-theme="dark"] .comparison-table .cloudwa-col {
  background: rgba(147, 51, 234, 0.08);
}
.comparison-table .feature-name {
  font-weight: 700;
  color: var(--text);
}
.check-icon {
  color: #10b981;
  font-weight: 800;
}
.cross-icon {
  color: var(--red);
  font-weight: 800;
}

/* Zero Commission Explainer Card */
.zero-comm-card {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, rgba(109, 40, 217, 0.03) 100%);
  border: 2px solid var(--brand-border);
  border-radius: 24px;
  padding: 40px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}
.zero-comm-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.zero-comm-icon {
  font-size: 2.5rem;
}
.zero-comm-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
}
.zero-comm-desc {
  font-size: 0.98rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.zero-comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.zero-comm-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.zero-comm-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.zero-comm-box p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .use-case-grid, .zero-comm-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .use-case-section:nth-child(even) .use-case-grid {
    display: flex;
    flex-direction: column-reverse;
  }
}
