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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;

  --gold-50:  #fffbeb;
  --gold-100: #fef3c7;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;

  --red-50:  #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Semantic */
  --primary:        var(--blue-600);
  --primary-light:  var(--blue-50);
  --primary-dark:   var(--blue-900);
  --primary-glow:   rgba(37,99,235,.15);

  --trust:          var(--blue-700);
  --trust-light:    var(--blue-50);
  --trust-dark:     var(--blue-900);

  --accent:         var(--gold-500);
  --accent-light:   var(--gold-50);
  --accent-dark:    var(--gold-600);

  --danger:         var(--red-500);
  --danger-light:   var(--red-50);

  /* Typography */
  --font: 'Cairo', 'Tajawal', sans-serif;

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;

  /* Shadows */
  --s-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --s-sm: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --s-md: 0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --s-lg: 0 20px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.05);
  --s-xl: 0 32px 64px rgba(0,0,0,.14), 0 12px 24px rgba(0,0,0,.06);
  --s-green: 0 8px 28px rgba(37,99,235,.28);
  --s-blue:  0 8px 28px rgba(37,99,235,.32);

  /* Transitions */
  --t-fast:   .18s cubic-bezier(.4,0,.2,1);
  --t-normal: .28s cubic-bezier(.4,0,.2,1);
  --t-slow:   .45s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  background: #fff;
  color: var(--slate-800);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: 1550px;
  width: 95%;
}
.section { padding: 96px 0; }
.section--dark  { background: var(--slate-950); }
.section--slate { background: var(--slate-50); }
.section--white { background: #fff; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.label--green { background: var(--green-100); color: var(--green-800); }
.label--blue  { background: var(--blue-100);  color: var(--blue-800,#1e40af); }
.label--gold  { background: var(--gold-100);  color: var(--gold-600); }
.label--dark  { background: rgba(255,255,255,.08); color: #93c5fd; }

.section-label { margin-bottom: 16px; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--slate-900); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.h1 { font-size: clamp(28px, 4.5vw, 52px); letter-spacing: -1.5px; }
.h2 { font-size: clamp(21px, 3.2vw, 39px); letter-spacing: -1px; }
.h3 { font-size: clamp(18px, 2.5vw, 26px); }
.h4 { font-size: 12px; }

.section-header {
  max-width: 660px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header p {
  margin-top: 16px;
  font-size: 12px;
  color: var(--slate-600);
  line-height: 1.75;
}
.section--dark .section-header p { color: var(--slate-400); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--s-blue);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,99,235,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--slate-900);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--slate-50);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: var(--r-sm); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.navbar.scrolled {
  box-shadow: var(--s-sm);
  border-bottom-color: var(--slate-200);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__logo-img {
  height: 82px;
  width: auto;
  display: block;
  margin-top: -3px;
}
.navbar__logo-img--footer {
  height: 102px;
}
.navbar__logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--s-blue);
}
.navbar__logo-icon svg { stroke: #fff; width: 22px; height: 22px; }
.navbar__logo-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -.5px;
}
.navbar__logo-name em {
  font-style: normal;
  color: var(--primary);
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 55px;
}
.navbar__nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-600);
  transition: color var(--t-fast);
}
.navbar__nav a:hover { color: var(--primary); }
.navbar__cta { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: linear-gradient(160deg,#fff 0%,var(--slate-50) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 5% 15%, rgba(37,99,235,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 95% 85%, rgba(37,99,235,.05) 0%, transparent 70%);
  pointer-events: none;
}
/* Grid lines decoration */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .25;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero__content { }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  box-shadow: var(--s-xs);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: flex; align-items: center; justify-content: center;
}
.hero__badge-dot svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.5; }

.hero__title {
  font-size: clamp(21px, 3.5vw, 45px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -1.5px;
  color: var(--slate-900);
  margin-bottom: 24px;
}
.hero__title .highlight {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 12px;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
}
.hero__trust-item svg { width: 16px; height: 16px; stroke: var(--primary); }

/* Hero Dashboard Mockup */
.hero__mockup {
  position: relative;
}
.hero__mockup-frame {
  overflow: visible;
  transition: var(--t-slow);
  transform: scale(1.16) translateY(-42px);
}
.hero__mockup-frame:hover {
  transform: scale(1.19) translateY(-48px) perspective(1000px) rotateX(2deg) rotateY(-2deg);
}
.mockup-bar {
  height: 38px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.mockup-bar__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.mockup-bar__dot:nth-child(1) { background: #ff5f57; }
.mockup-bar__dot:nth-child(2) { background: #febc2e; }
.mockup-bar__dot:nth-child(3) { background: #28c840; }
.mockup-bar__url {
  margin-right: 10px;
  flex: 1;
  height: 22px;
  background: var(--slate-200);
  border-radius: 4px;
}
.mockup-body { padding: 0; }
.mockup-body img { width: 100%; display: block; }

/* Floating badges */
.mockup-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--s-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--slate-100);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}
.mockup-float:nth-child(2) { animation-delay: -1.5s; }
.mockup-float:nth-child(3) { animation-delay: -3s; }

.mockup-float--tl { top: -82px; right: -60px; }
.mockup-float--bl { bottom: -12px; left: -60px; }
.mockup-float--tr { top: -82px; left: -64px; }

.mockup-float__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mockup-float__icon svg { width: 18px; height: 18px; }
.icon-green { background: var(--green-100); color: var(--green-700); }
.icon-green svg { stroke: var(--green-700); }
.icon-red   { background: var(--red-100); }
.icon-red svg { stroke: var(--red-600); }
.icon-gold  { background: var(--gold-100); }
.icon-gold svg { stroke: var(--gold-600); }
.icon-blue  { background: var(--blue-100); }
.icon-blue svg { stroke: var(--blue-600); }

.mockup-float__val {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
  margin-bottom: 2px;
}
.mockup-float__lbl { font-size: 11px; font-weight: 700; color: var(--slate-500); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
}
.trust-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(37,99,235,.04) 0%, transparent 70%);
  pointer-events: none;
}
.trust-bar__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 320px;
  flex: 1;
}
.trust-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item__icon svg { width: 21px; height: 21px; stroke: var(--blue-600); }
.trust-item__text { }
.trust-item__val { font-size: 15px; font-weight: 800; color: var(--slate-900); margin-bottom: 4px; }
.trust-item__desc { font-size: 12.5px; color: var(--slate-600); font-weight: 600; line-height: 1.55; }

/* Divider */
.trust-bar__divider {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--slate-200), transparent);
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain { }
.pain__layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.pain__left {
  position: sticky;
  top: 100px;
}
.pain__left h2 { margin-bottom: 20px; }
.pain__left p  { font-size: 17px; color: var(--slate-600); line-height: 1.8; margin-bottom: 32px; }

.pain__cards { 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
}
.pain-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--r-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
  position: relative;
}
.pain-card.active, .pain-card:hover {
  border-color: var(--slate-200);
  box-shadow: var(--s-xs);
}

.pain-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.pain-card__left { display: flex; align-items: center; gap: 18px; }
.pain-card__num {
  font-size: 15px;
  font-weight: 800;
  color: var(--red-500);
  opacity: 0.85;
}
.pain-card__title { 
  font-size: 12px; 
  font-weight: 800; 
  color: var(--slate-900); 
  transition: color var(--t-fast);
}
.pain-card.active .pain-card__title {
  color: var(--primary);
}
.pain-card__chevron {
  width: 16px; height: 16px;
  stroke: var(--slate-400);
  transition: transform var(--t-fast), stroke var(--t-fast);
  flex-shrink: 0;
}
.pain-card.active .pain-card__chevron {
  transform: rotate(180deg);
  stroke: var(--primary);
}

.pain-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-normal) ease-in-out;
}
.pain-card.active .pain-card__body { max-height: 240px; }
.pain-card__body-inner {
  padding-top: 16px;
  padding-right: 36px;
}
.pain-card__problem {
  font-size: 12px;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 14px;
}
.pain-card__solution {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: transparent;
  border: none;
  border-right: 2.5px solid var(--green-500);
  border-radius: 0;
  padding: 4px 12px 4px 0;
}
.pain-card__solution svg { 
  width: 15px; height: 15px; 
  stroke: var(--green-600); 
  flex-shrink: 0; 
  margin-top: 3px; 
}
.pain-card__solution span { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--green-700); 
  line-height: 1.6; 
}

/* ============================================================
   SOLUTION
   ============================================================ */



/* ============================================================
   USP – INVOICE JOURNEY
   ============================================================ */
.usp { }
.usp__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.usp__right h2 { margin-bottom: 18px; }
.usp__right p  { font-size: 17px; color: var(--slate-600); line-height: 1.8; margin-bottom: 32px; }
.usp__cta-box {
  background: var(--gold-50);
  border: 1.5px solid var(--gold-400);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  text-align: center;
}
.usp__cta-box h3 { font-size: 20px; color: var(--gold-700,#b45309); margin-bottom: 8px; }
.usp__cta-box p  { font-size: 12px; color: var(--slate-700); margin-bottom: 16px; font-weight: 600; }

/* Invoice card */
.usp__invoice-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  overflow: hidden;
}
.invoice-header {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.invoice-header__title { font-size: 12px; font-weight: 800; color: #fff; }
.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.invoice-status--pending { background: rgba(251,191,36,.15); color: var(--gold-400); }
.invoice-status--paid    { background: rgba(34,197,94,.15);  color: #4ade80; }
.invoice-status--dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.invoice-body { padding: 20px 22px; }
.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13.5px;
}
.invoice-row:last-child { border-bottom: none; padding-bottom: 0; }
.invoice-row__key { color: var(--slate-500); font-weight: 600; }
.invoice-row__val { font-weight: 800; color: var(--slate-900); }
.invoice-row__val--green { color: var(--green-700); }
.invoice-row__val--red   { color: var(--red-600); }
.invoice-row__val--gold  { color: var(--gold-600); }

.invoice-impact {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 16px 22px;
}
.invoice-impact__title { font-size: 12px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.invoice-impact__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.impact-pill {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
}
.impact-pill__label { font-size: 11px; color: var(--slate-500); font-weight: 600; margin-bottom: 4px; }
.impact-pill__val   { font-size: 12px; font-weight: 800; }
.impact-pill--red  .impact-pill__val { color: var(--red-600); }
.impact-pill--gold .impact-pill__val { color: var(--gold-600); }
.impact-pill--blue .impact-pill__val { color: var(--blue-600); }

/* ============================================================
   FIELD REPS
   ============================================================ */
.reps__layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.reps__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rep-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border-right: 4px solid transparent;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  transition: all var(--t-normal);
  position: relative;
  box-shadow: none;
  cursor: pointer;
}
.rep-feat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--slate-250, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-normal);
}
.rep-feat__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--slate-600);
  transition: all var(--t-normal);
}
.rep-feat__title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  transition: color var(--t-normal);
}
.rep-feat__desc {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.65;
  transition: color var(--t-normal);
}

/* Hover state */
.rep-feat:hover {
  background: rgba(37, 99, 235, 0.04);
  border-right-color: var(--blue-600);
  transform: translateX(-6px);
}
.rep-feat:hover .rep-feat__icon {
  background: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.rep-feat:hover .rep-feat__icon svg {
  stroke: #fff;
  transform: scale(1.08);
}
.rep-feat:hover .rep-feat__title {
  color: var(--blue-700);
}
.rep-feat:hover .rep-feat__desc {
  color: var(--slate-855, #1e293b);
}

.reps__screen {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--s-xl);
  transform: scale(1.15);
  transition: transform var(--t-normal);
}
.reps__screen:hover {
  transform: scale(1.18);
}
.reps__screen img { width: 100%; display: block; }

/* ============================================================
   WAREHOUSES
   ============================================================ */
.wh__layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.wh__map {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: 28px;
}
.wh__map-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 22px;
  text-align: center;
}
.wh-nodes { display: flex; flex-direction: column; gap: 12px; }
.wh-node {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: var(--t-fast);
}
.wh-node:hover { border-color: var(--blue-400,#60a5fa); box-shadow: var(--s-sm); }
.wh-node.main { background: var(--green-50); border-color: var(--green-300,#86efac); }
.wh-node__icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wh-node__icon svg { width: 18px; height: 18px; }
.wh-node.main .wh-node__icon    { background: var(--green-100); }
.wh-node.main .wh-node__icon svg { stroke: var(--green-700); }
.wh-node.sub  .wh-node__icon    { background: var(--blue-50); }
.wh-node.sub  .wh-node__icon svg { stroke: var(--blue-600); }
.wh-node.car  .wh-node__icon    { background: var(--gold-100); }
.wh-node.car  .wh-node__icon svg { stroke: var(--gold-600); }
.wh-node__info h4 { font-size: 12px; font-weight: 800; }
.wh-node__info p  { font-size: 12px; color: var(--slate-500); }
.wh-node__balance { margin-right: auto; text-align: left; }
.wh-node__balance .val { font-size: 13px; font-weight: 800; color: var(--slate-800); }
.wh-node__balance .lbl { font-size: 11px; color: var(--slate-400); }

.wh-transfer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(37,99,235,.05);
  border: 1px dashed var(--blue-300,#93c5fd);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  margin: 4px 0;
}
.wh-transfer svg { width: 14px; height: 14px; stroke: var(--blue-600); }

.wh__info h2 { margin-bottom: 18px; }
.wh__info p  { font-size: 17px; color: var(--slate-600); line-height: 1.8; margin-bottom: 24px; }
.wh__info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.wh-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
}
.wh-check svg { width: 17px; height: 17px; stroke: var(--primary); flex-shrink: 0; }

/* ============================================================
   PHARMA SPECIFIC
   ============================================================ */
.pharma {
  background: var(--slate-50);
}
.pharma__layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.pharma__left {
  position: sticky;
  top: 100px;
}
.pharma__left h2 {
  margin-bottom: 20px;
  color: var(--slate-900);
}
.pharma__left p {
  font-size: 17px;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 36px;
}

.pharma__list {
  display: flex;
  flex-direction: column;
}
.pharma-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--t-normal);
  cursor: default;
}
.pharma-item:last-child {
  border-bottom: none;
}
.pharma-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
}
.pharma-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-600);
  transition: transform var(--t-normal);
}
.pharma-item__content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
  transition: color var(--t-normal);
}
.pharma-item__content p {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* Hover dynamic animations */
.pharma-item:hover {
  transform: translateX(-6px);
}
.pharma-item:hover .pharma-item__icon svg {
  transform: scale(1.15) rotate(4deg);
}
.pharma-item:hover .pharma-item__content h3 {
  color: var(--blue-700);
}

/* ============================================================
   ANALYTICS / REPORTS
   ============================================================ */
.analytics { }
.analytics__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
  background: var(--slate-100);
  padding: 6px;
  border-radius: var(--r-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}
.tab-btn {
  flex: 1;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-fast);
}
.tab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--s-xs);
}
.tab-btn:hover:not(.active) { color: var(--primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .3s ease; }

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

.analytics__pane-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 52px;
  align-items: center;
}
.analytics__pane-content h3 { font-size: 26px; margin-bottom: 14px; }
.analytics__pane-content p  { font-size: 15px; color: var(--slate-600); line-height: 1.8; margin-bottom: 22px; }
.analytics__checks { display: flex; flex-direction: column; gap: 10px; }
.a-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-800);
}
.a-check svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; }

.analytics__pane-img {
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}
.analytics__pane-img img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
  transform: scale(1.12) translateX(18px);
  transform-origin: center right;
}
#tab-alerts .analytics__pane-img img {
  transform: scale(1.12) translate(3cm, 1cm);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare { }
.compare__wrapper {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--s-lg);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  text-align: right;
}
.compare-table th,
.compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
.compare-table thead th { font-size: 12px; font-weight: 800; }
.compare-table thead th:first-child { background: var(--slate-50); width: 34%; }
.compare-table thead th:nth-child(2) {
  background: var(--red-50);
  color: var(--red-700,#b91c1c);
  width: 33%;
}
.compare-table thead th:nth-child(3) {
  background: var(--blue-50);
  color: var(--blue-900);
  width: 33%;
  font-size: 16px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
}

.compare-table td:nth-child(2) { font-size: 13.5px; color: var(--slate-500); background: rgba(239,68,68,.018); }
.compare-table td:nth-child(3) { font-size: 13.5px; font-weight: 700; color: var(--slate-900); background: rgba(37,99,235,.018); }
.td-icon { display: flex; align-items: center; gap: 7px; }
.td-icon svg { width: 16px; height: 16px; flex-shrink: 0; }
.td-icon.fail svg  { stroke: var(--red-500); }
.td-icon.ok svg    { stroke: var(--green-600); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item.active, .faq-item:hover { border-color: var(--blue-300,#93c5fd); box-shadow: var(--s-sm); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: right;
}
.faq-q h3 { font-size: 12px; font-weight: 800; color: var(--slate-900); }
.faq-chevron {
  width: 20px; height: 20px;
  stroke: var(--slate-400);
  flex-shrink: 0;
  transition: transform var(--t-fast), stroke var(--t-fast);
}
.faq-item.active .faq-chevron { transform: rotate(180deg); stroke: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-normal);
  background: var(--slate-50);
}
.faq-item.active .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate-600);
  border-top: 1px solid var(--slate-200);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: linear-gradient(150deg, var(--slate-950) 0%, var(--slate-900) 50%, var(--slate-950) 100%);
  text-align: center;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(23px, 3.2vw, 39px); color: #fff; margin-bottom: 18px; }
.final-cta p  { font-size: 12px; color: var(--slate-300); margin-bottom: 40px; line-height: 1.75; }
.final-cta__btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,6,23,.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 580px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-top: 5px solid var(--blue-600);
  transform: translateY(24px) scale(.97);
  transition: transform var(--t-normal);
}
.modal-overlay.open .modal { transform: none; }
.modal__header {
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal__header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal__header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}
.modal__header-desc {
  font-size: 12px;
  color: var(--slate-500);
  margin: 0;
}
.modal__close {
  width: 34px; height: 34px;
  background: var(--slate-100);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--slate-500);
}
.modal__close:hover {
  background: var(--slate-200);
  color: var(--slate-800);
  transform: scale(1.05);
}
.modal__close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; }
.modal__body { padding: 32px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--slate-700);
}
.form-input-wrapper {
  position: relative;
  width: 100%;
}
.form-input-wrapper input,
.form-input-wrapper select,
.form-input-wrapper textarea {
  width: 100%;
  padding: 12px 44px 12px 16px !important;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  background: var(--slate-50);
  font-size: 14.5px;
  color: var(--slate-900);
  outline: none;
  transition: all var(--t-fast);
  text-align: right;
  font-family: var(--font);
  appearance: none; /* Hide default arrow for select */
  -webkit-appearance: none;
}
.form-input-wrapper textarea {
  resize: vertical;
  min-height: 90px;
}
.form-input-wrapper textarea + .input-icon {
  top: 18px;
  transform: none;
}
.form-input-wrapper select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 14px;
  padding-left: 36px !important;
}
.form-input-wrapper input:focus,
.form-input-wrapper select:focus,
.form-input-wrapper textarea:focus {
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.form-input-wrapper.is-valid input,
.form-input-wrapper.is-valid select,
.form-input-wrapper.is-valid textarea {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  box-shadow: none !important;
}
.form-input-wrapper.is-valid .input-icon {
  color: #10b981 !important;
}
.form-input-wrapper.is-invalid input,
.form-input-wrapper.is-invalid select,
.form-input-wrapper.is-invalid textarea {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: none !important;
}
.form-input-wrapper.is-invalid .input-icon {
  color: #ef4444 !important;
}
.form-error-msg {
  display: block;
  font-size: 11.5px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 600;
  min-height: 16px;
  transition: all var(--t-fast);
  opacity: 0;
  transform: translateY(-3px);
  text-align: right;
}
.form-error-msg.show {
  opacity: 1;
  transform: translateY(0);
}
.modal__submit.loading {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800)) !important;
  pointer-events: none;
  opacity: 0.9;
}
.modal__submit.loading .submit-arrow {
  display: none !important;
}
.modal__submit .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: btn-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.form-input-wrapper .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  pointer-events: none;
  transition: color var(--t-fast);
  fill: none;
}
.form-input-wrapper:focus-within .input-icon {
  color: var(--blue-600);
}
.modal__submit {
  width: 100%;
  margin-top: 24px;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  font-weight: 800;
  font-size: 15px;
  border: none;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.modal__submit:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800)) !important;
}
.modal__submit .submit-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--t-fast);
}
.modal__submit:hover .submit-arrow {
  transform: translateX(-4px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes success-pop {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
.form-success__icon {
  width: 64px; height: 64px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
  animation: icon-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes icon-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.form-success__icon svg { width: 30px; height: 30px; stroke: #059669; stroke-width: 3; }
.form-success h4 { font-size: 20px; margin-bottom: 10px; font-weight: 800; color: var(--slate-900); }
.form-success p  { font-size: 13.5px; color: var(--slate-600); line-height: 1.7; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 18px;
  border: none;
}
.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp:active {
  transform: translateY(-1px) scale(0.99);
}
.btn-whatsapp .wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--slate-950);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 12px;
  color: var(--slate-400);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 300px;
}
.footer__col h4 { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li { font-size: 13px; color: var(--slate-400); }
.footer__col ul a { font-size: 13px; color: var(--slate-400); transition: color var(--t-fast); }
.footer__col ul a:hover { color: var(--blue-400,#60a5fa); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-500);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__inner        { grid-template-columns: 1fr; text-align: center; }
  .hero__content      { display: flex; flex-direction: column; align-items: center; }
  .hero__subtitle     { max-width: 100%; }
  .hero__mockup-frame { max-width: 600px; margin: 0 auto; transform: none; }
  .hero__mockup-frame:hover { transform: none; }
  .hero__mockup       { }
  .mockup-float--tl   { top: -12px; right: -12px; }
  .mockup-float--bl   { bottom: 10px; left: -12px; }
  .mockup-float--tr   { display: none; }

  .pain__layout       { grid-template-columns: 1fr; }
  .pain__left         { position: static; text-align: center; }
  .pain__left .btn    { }




  .usp__layout        { grid-template-columns: 1fr; }
  .usp__right         { order: -1; text-align: center; align-items: center; display: flex; flex-direction: column; }
  .usp__cta-box       { max-width: 480px; width: 100%; }

  .reps__layout       { grid-template-columns: 1fr; text-align: center; }
  .reps__features     { max-width: 560px; margin: 0 auto; }
  .rep-feat           { text-align: right; }
  .reps__screen       { transform: none; }
  .reps__screen:hover { transform: none; }

  .wh__layout         { grid-template-columns: 1fr; text-align: center; }
  .wh__map            { max-width: 500px; margin: 0 auto; }
  .wh__info-list      { align-items: center; }

  .pharma__layout     { grid-template-columns: 1fr; gap: 48px; }
  .pharma__left       { position: static; text-align: center; }

  .analytics__pane-grid { grid-template-columns: 1fr; text-align: center; }
  .analytics__checks    { align-items: center; }

  .footer__grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .navbar__nav { display: none; }
  .hero        { padding: 72px 0 60px; }

  .pharma-item { gap: 16px; }
  .analytics__tabs { flex-direction: column; }
  .trust-bar__divider { display: none; }
  .trust-bar__inner { gap: 20px; }
  .compare-table th,
  .compare-table td { padding: 12px 14px; font-size: 12px; }
  .footer__grid  { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .final-cta__btns { flex-direction: column; align-items: center; }
}

/* Plans Table styling */
.plans-table thead th {
  padding: 24px 20px;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 2px solid var(--slate-150);
}
.plans-table thead th:first-child { 
  background: #fff; 
  width: 34%; 
  text-align: right;
  color: var(--slate-900);
}
.plans-table thead th:nth-child(2) { 
  background: rgba(15, 23, 42, 0.015); 
  color: var(--slate-800); 
  width: 22%; 
  text-align: center; 
}
.plans-table thead th:nth-child(3) { 
  background: rgba(37, 99, 235, 0.02); 
  color: var(--blue-700); 
  width: 22%; 
  text-align: center;
  border-left: 1px solid rgba(37, 99, 235, 0.04);
  border-right: 1px solid rgba(37, 99, 235, 0.04);
}
.plans-table thead th:nth-child(4) { 
  background: rgba(16, 185, 129, 0.03); 
  color: var(--emerald-700); 
  width: 22%; 
  text-align: center; 
}

.plans-table td {
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
.plans-table tr:hover td {
  background-color: rgba(241, 245, 249, 0.2);
}

.plans-table td:nth-child(1) {
  font-weight: 700;
  color: var(--slate-900);
  text-align: right;
}
.plans-table td:nth-child(2) { 
  font-size: 13.5px; 
  color: var(--slate-600); 
  text-align: center; 
  background: rgba(15, 23, 42, 0.005);
}
.plans-table td:nth-child(3) { 
  font-size: 13.5px; 
  color: var(--slate-700); 
  text-align: center; 
  background: rgba(37, 99, 235, 0.005);
  font-weight: 600;
}
.plans-table td:nth-child(4) { 
  font-size: 13.5px; 
  font-weight: 700; 
  color: var(--slate-900); 
  text-align: center; 
  background: rgba(16, 185, 129, 0.015); 
}

.category-row td {
  background: var(--slate-50) !important;
  color: var(--blue-700) !important;
  font-weight: 850 !important;
  font-size: 13.5px !important;
  padding: 14px 20px !important;
  text-align: right !important;
  border-bottom: 1px solid var(--slate-200) !important;
  border-top: 1px solid var(--slate-200) !important;
  border-right: 4px solid var(--blue-600) !important;
}

/* Icon style overrides */
.plans-table .td-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.plans-table .td-icon.ok {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.plans-table .td-icon.fail {
  background: var(--slate-100);
}
.plans-table .td-icon.fail svg {
  width: 11px;
  height: 11px;
  stroke: var(--slate-400);
}

.td-text-highlight {
  color: var(--emerald-600);
  font-weight: 800;
}

/* ============================================================
   PRICING & PLANS STYLING (DAFTRA STYLE)
   ============================================================ */

/* 1. Billing Switcher */
.billing-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.billing-switcher {
  display: inline-flex;
  padding: 5px;
  background: var(--slate-100);
  border-radius: 100px;
  border: 1px solid var(--slate-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  position: relative;
}

.billing-btn {
  position: relative;
  padding: 12px 32px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-btn.active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .9; transform: scale(0.97); }
}

.save-badge {
  position: absolute;
  top: -12px;
  right: -16px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  white-space: nowrap;
}

/* 2. Pricing Cards Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 28px;
  padding: 44px 38px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-250);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08);
}

/* Plan Card Accent Borders (Glows & Gradients) */
.plan-card.popular {
  border: 2.5px solid var(--blue-500);
  background: linear-gradient(to bottom, #fff, rgba(37, 99, 235, 0.015));
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.04);
}

.plan-card.popular:hover {
  border-color: var(--blue-600);
  box-shadow: 0 30px 60px -10px rgba(37, 99, 235, 0.16);
}

.plan-card.comprehensive {
  border: 2.5px solid var(--emerald-550);
  background: linear-gradient(to bottom, #fff, rgba(16, 185, 129, 0.015));
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.04);
}

.plan-card.comprehensive:hover {
  border-color: var(--emerald-600);
  box-shadow: 0 30px 60px -10px rgba(16, 185, 129, 0.16);
}

/* Ribbons for highlighted plans */
.popular-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
  letter-spacing: 0.5px;
}

.comprehensive-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

.comprehensive-ribbon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: #fff;
}

/* Plan Title & Header */
.plan-header {
  margin-bottom: 24px;
}

.plan-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 10px;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
}

.plan-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.plan-badge--basic {
  color: var(--slate-600);
  background: var(--slate-100);
}

.plan-badge--advanced {
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.plan-badge--comprehensive {
  color: var(--emerald-650);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.plan-desc {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 44px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.price-original {
  font-size: 15px;
  color: var(--slate-400);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

.price-currency {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-600);
}

.price-val {
  font-size: 46px;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -1.5px;
  line-height: 1;
}

.price-val.text-blue-600 {
  color: var(--blue-600) !important;
}

.price-period {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 600;
}

.yearly-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-600);
  margin-top: 8px;
  min-height: 18px;
}

/* 3. Card Features List */
.plan-body {
  margin-top: 16px;
  margin-bottom: 40px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--slate-700);
  transition: transform 0.2s ease, color 0.2s ease;
}

.plan-features li:hover {
  color: var(--slate-900);
  transform: translateX(-2px);
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-600);
  background: rgba(37, 99, 235, 0.07);
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
}

.plan-card.comprehensive .plan-features li svg {
  stroke: var(--emerald-600);
  background: rgba(16, 185, 129, 0.07);
}

.plan-features li.disabled {
  color: var(--slate-400);
  text-decoration: line-through;
  opacity: 0.65;
}

.plan-features li.disabled svg {
  stroke: var(--slate-400);
  background: var(--slate-100);
}

/* 4. Card Buttons */
.plan-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card .btn-outline {
  background: transparent;
  border: 2px solid var(--slate-250);
  color: var(--slate-700);
}

.plan-card .btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
  transform: translateY(-2px);
}

.plan-card .btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.plan-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.plan-card.comprehensive .btn-outline {
  border-color: var(--slate-250);
}

.plan-card.comprehensive .btn-outline:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-700);
  background: rgba(16, 185, 129, 0.02);
}

/* 5. Sticky Plans Table Header Formatting */
.plans-table__plan-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate-900);
  display: inline-block;
  position: relative;
  margin-top: 4px;
}

.plans-table__plan-price {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.plans-table__plan-price .price-val {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}
.plans-table__plan-price .price-val.text-blue-600 {
  color: var(--blue-600);
}
.plans-table__plan-price .price-currency {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--slate-500);
}
.plans-table__plan-price .price-period {
  font-size: 10.5px;
  color: var(--slate-400);
}


/* 6. Media Queries & Responsiveness */
@media (max-width: 992px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============================================================
   NEW PREMIUM PRICING SECTION - DAFTRA STYLE
   ============================================================ */

/* ── Plan card variants using BEM ── */
.plan-card--popular {
  border: 2px solid var(--blue-500) !important;
  background: linear-gradient(160deg, #fff 0%, rgba(37,99,235,0.03) 100%) !important;
  box-shadow: 0 20px 60px -10px rgba(37,99,235,0.12) !important;
  transform: translateY(-6px);
  z-index: 1;
}
.plan-card--popular:hover {
  transform: translateY(-14px) !important;
  box-shadow: 0 35px 80px -10px rgba(37,99,235,0.2) !important;
}

.plan-card--comprehensive {
  border: 2px solid var(--emerald-550) !important;
  background: linear-gradient(160deg, #fff 0%, rgba(16,185,129,0.03) 100%) !important;
  box-shadow: 0 15px 40px -10px rgba(16,185,129,0.1) !important;
}
.plan-card--comprehensive:hover {
  border-color: var(--emerald-600) !important;
  box-shadow: 0 35px 70px -10px rgba(16,185,129,0.18) !important;
}

/* ── Top accent bar ── */
.plan-card__top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
}
.plan-card__top-bar--basic   { background: linear-gradient(90deg, #94a3b8, #64748b); }
.plan-card__top-bar--popular { background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); }
.plan-card__top-bar--comprehensive { background: linear-gradient(90deg, var(--emerald-500,#10b981), var(--emerald-600,#059669)); }

/* ── Popular flag badge ── */
.popular-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  width: fit-content;
  letter-spacing: 0.03em;
}
.popular-flag svg { width: 12px; height: 12px; }

/* ── Plan header ── */
.plan-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.plan-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plan-icon svg { width: 22px; height: 22px; }

.plan-icon--basic        { background: #f1f5f9; color: #64748b; }
.plan-icon--popular      { background: rgba(37,99,235,0.1); color: var(--blue-600); }
.plan-icon--comprehensive{ background: rgba(16,185,129,0.1); color: var(--emerald-550,#059669); }

.plan-meta .plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px;
}
.plan-meta .plan-desc {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}

/* ── Pricing block ── */
.plan-price-block {
  margin-bottom: 20px;
}
.plan-price-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}
.price-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-500);
  margin-top: 8px;
}
.price-val {
  font-size: 44px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.price-val.text-blue-600 { color: var(--blue-600); }
.price-currency.text-blue-600 { color: var(--blue-600); }

.price-period {
  font-size: 13px;
  color: var(--slate-400);
  display: block;
  margin-top: 6px;
}

.yearly-label {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Plan divider ── */
.plan-divider {
  height: 1px;
  background: var(--slate-100);
  margin: 20px 0;
}
.plan-divider--popular { background: rgba(37,99,235,0.12); }
.plan-divider--comprehensive { background: rgba(16,185,129,0.12); }

/* ── Feature list ── */
.plan-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 28px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.5;
}
.plan-features li.disabled { color: var(--slate-400); }
.plan-features li.disabled span:last-child { text-decoration: none; }

.feat-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat-check svg { width: 11px; height: 11px; }

.feat-check--ok            { background: rgba(16,185,129,0.12); color: var(--emerald-550,#059669); }
.feat-check--popular       { background: rgba(37,99,235,0.12); color: var(--blue-600); }
.feat-check--comprehensive { background: rgba(16,185,129,0.12); color: var(--emerald-550,#059669); }
.feat-check--off           { background: var(--slate-100); color: var(--slate-300); }

/* ── Plan buttons ── */
.plan-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.plan-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.plan-btn:hover svg { transform: translateX(-4px); }

.plan-btn--outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.plan-btn--outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.plan-btn--popular {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.plan-btn--popular:hover {
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
  transform: translateY(-2px);
}

.plan-btn--comprehensive {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(16,185,129,0.25);
}
.plan-btn--comprehensive:hover {
  box-shadow: 0 10px 30px rgba(16,185,129,0.35);
  transform: translateY(-2px);
}

.plan-btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ── Comparison section header ── */
.plans-compare-section {
  margin-top: 72px;
}

.plans-compare-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.plans-compare-header__icon {
  width: 48px; height: 48px;
  background: var(--blue-50,#eff6ff);
  color: var(--blue-600);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plans-compare-header__icon svg { width: 22px; height: 22px; }
.plans-compare-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px;
}
.plans-compare-header__desc {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
}

/* ── Compare wrapper ── */
.compare__wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 8px 32px rgba(15,23,42,0.06);
  background: #fff;
}

@media (min-width: 993px) {
  .compare__wrapper {
    overflow: visible; /* Allows position: sticky on table headers to work relative to the page viewport */
  }
}

.plans-table {
  width: 100%;
  border-collapse: separate; /* Required for sticky table headers to render borders correctly */
  border-spacing: 0;
  font-size: 14px;
  min-width: 850px;
  table-layout: fixed; /* Force browser to strictly follow column percentages */
}

/* Enforce same column widths */
.plans-table th:first-child,
.plans-table td:first-child {
  width: 40%;
}
.plans-table th:nth-child(2),
.plans-table td:nth-child(2),
.plans-table th:nth-child(3),
.plans-table td:nth-child(3),
.plans-table th:nth-child(4),
.plans-table td:nth-child(4) {
  width: 20%;
}

.plans-table thead th {
  padding: 22px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-800);
  background: #ffffff !important; /* Pure solid white, 100% opaque */
  border-bottom: 2px solid var(--slate-200);
  position: sticky;
  top: 80px; /* Stick directly below the 80px navbar */
  z-index: 100;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.plans-table thead th.plans-table__popular-col {
  background: #f4f8ff !important; /* Solid light blue tint, 100% opaque to match popular column style */
  border-left: 1px solid var(--slate-200) !important;
  border-right: 1px solid var(--slate-200) !important;
}
.plans-table thead th:first-child {
  text-align: right;
  color: var(--slate-800);
  font-weight: 700;
  background: var(--slate-50,#f8fafc) !important;
  border-right: 1px solid var(--slate-200);
  border-left: 1px solid var(--slate-200);
}
.plans-table thead th:nth-child(2) {
  border-left: 1px solid var(--slate-200);
}
.plans-table thead th:nth-child(4) {
  border-left: 1px solid var(--slate-200);
}

.plans-table__feat-col {
  min-width: 240px;
  text-align: right !important;
}

.plans-table__plan-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.plans-table__plan-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.plans-table__plan-dot--basic        { background: #94a3b8; }
.plans-table__plan-dot--popular      { background: var(--blue-500); }
.plans-table__plan-dot--comprehensive{ background: #10b981; }

.plans-table__popular-tag {
  font-size: 9px;
  background: var(--blue-600);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: absolute;
  top: -8px;
  right: 100%;
  margin-right: -15px; /* Shift to the right */
}

.plans-table__popular-col {
  background: rgba(37,99,235,0.005);
}
.plans-table__comprehensive-col {
  background: rgba(16,185,129,0.005);
}
.plans-table thead th.plans-table__comprehensive-col {
  background: #f0fdf4 !important; /* Solid light green tint */
  border-left: 1px solid var(--slate-200) !important;
  border-right: 1px solid var(--slate-200) !important;
}
.text-emerald-600 {
  color: #10b981 !important;
}

/* ── Table body rows ── */
.plans-table tbody td {
  padding: 18px 24px;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
}
.plans-table tbody td:first-child {
  text-align: right;
  background: var(--slate-50, #f8fafc) !important;
  font-weight: 700;
  color: var(--slate-900);
  border-left: 1px solid var(--slate-100);
  border-right: 1px solid var(--slate-100);
}
.plans-table tbody td:nth-child(2) {
  border-left: 1px solid var(--slate-100);
}
.plans-table tbody td.plans-table__popular-col {
  background: rgba(37, 99, 235, 0.005) !important;
  border-left: 1px solid var(--slate-150) !important;
  border-right: 1px solid var(--slate-150) !important;
}
.plans-table tbody tr.plans-table__cta-row td.plans-table__popular-col {
  border-bottom: 1px solid var(--slate-150) !important;
}

.plans-table tbody td.plans-table__comprehensive-col {
  background: rgba(16, 185, 129, 0.005) !important;
  border-left: 1px solid var(--slate-150) !important;
  border-right: 1px solid var(--slate-150) !important;
}
.plans-table tbody tr.plans-table__cta-row td.plans-table__comprehensive-col {
  border-bottom: 1px solid var(--slate-150) !important;
}

.plans-table tbody tr:last-child td { border-bottom: none; }
.plans-table tbody tr:hover td { background: rgba(248,250,252,0.8); }


/* ── Category row ── */
.category-row td {
  padding: 16px 24px !important;
  background: #f1f5f9 !important; /* Premium light slate background */
  border-top: 1px solid var(--slate-200) !important;
  border-bottom: 1px solid var(--slate-200) !important;
  border-right: 4px solid var(--blue-600) !important; /* Thick right accent border representing a main title */
}
.category-row__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--slate-900, #0f172a);
}
.category-row__inner svg { width: 20px; height: 20px; color: var(--blue-600, #2563eb); }

/* ── Table cell helpers ── */
.td-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.td-icon svg { width: 13px; height: 13px; }
.td-icon.ok   { background: rgba(22, 163, 74, 0.15); color: #16a34a; font-size: 17px; font-weight: 900; line-height: 1; }
.td-icon.fail { background: rgba(239,68,68,0.08); color: #ef4444; }

.td-limit {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.td-limit--mid {
  background: rgba(37,99,235,0.08);
  color: var(--blue-700,#1d4ed8);
}

.td-text-highlight {
  color: #059669;
  font-weight: 700;
  font-size: 13px;
}

/* ── CTA row in table ── */
.plans-table__cta-row td {
  padding: 20px 24px !important;
  background: var(--slate-50,#f8fafc) !important;
  border-top: 1px solid var(--slate-200) !important;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .plans-compare-section { margin-top: 48px; }
  .plans-compare-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 768px) {
  .plan-card--popular { transform: translateY(0); }
  .plans-compare-header__title { font-size: 17px; }
}


/* ============================================================
   VS COMPARISON TABLE (TRADITIONAL VS RXSUPPLY)
   ============================================================ */

.compare__wrapper--vs {
  border-radius: 24px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 45px rgba(15, 23, 42, 0.035);
  overflow: hidden;
  background: #ffffff;
  margin-top: 40px;
}
@media (min-width: 993px) {
  .compare__wrapper--vs {
    overflow: visible;
  }
}

.vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  font-size: 14.5px;
  table-layout: fixed;
}

.vs-table thead th {
  padding: 22px 24px;
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-800);
  border-bottom: 2px solid var(--slate-200);
  background: #ffffff;
}

/* Column Widths */
.vs-table th:first-child,
.vs-table td:first-child {
  width: 26%;
  background: var(--slate-50, #f8fafc);
  font-weight: 700;
  color: var(--slate-900);
  border-left: 1px solid var(--slate-100);
  border-right: 1px solid var(--slate-100);
}

.vs-table th:nth-child(2),
.vs-table td:nth-child(2) {
  width: 37%;
  color: var(--slate-500);
  border-left: 1px solid var(--slate-100);
}

.vs-table th:nth-child(3),
.vs-table td:nth-child(3) {
  width: 37%;
  font-weight: 600;
  color: var(--slate-900);
  background: rgba(37, 99, 235, 0.008);
}

.vs-table tbody tr {
  transition: background-color 0.2s ease;
}
.vs-table tbody tr:hover {
  background-color: var(--slate-50, #f8fafc);
}
.vs-table tbody tr:hover td:nth-child(3) {
  background-color: rgba(37, 99, 235, 0.015);
}

.vs-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
  line-height: 1.6;
}

.vs-table tbody tr:last-child td {
  border-bottom: none;
}

/* Head cells specific colors */
.vs-table thead th:first-child {
  background: var(--slate-50, #f8fafc);
  border-right: 1px solid var(--slate-200);
  border-left: 1px solid var(--slate-200);
}
.vs-table thead th:nth-child(2) {
  color: var(--red-600);
  background: rgba(239, 68, 68, 0.015);
  border-left: 1px solid var(--slate-200);
}
.vs-table thead th:nth-child(3) {
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.025);
  border-left: 1px solid var(--slate-200);
}

/* vs-cell component layout */
.vs-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vs-cell__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.vs-cell__icon svg {
  width: 12px;
  height: 12px;
}

.vs-cell__icon--fail {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red-500);
}
.vs-cell__icon--ok {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-600);
}

.vs-cell__text {
  font-size: 13.5px;
  color: var(--slate-600);
}
.vs-cell__text--highlight {
  font-weight: 700;
  color: var(--slate-850, #1e293b);
}

@media (max-width: 992px) {
  .vs-table {
    min-width: 780px; /* Enable horizontal scrolling on tablets/mobiles */
  }
}




/* ============================================================
   BILLING PERIOD SWITCHER — PREMIUM REDESIGN
   ============================================================ */
.premium-lever-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0;
}
.lever-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lever-label.active {
  color: #1e293b;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}
.lever-switch {
  cursor: pointer;
  width: 64px;
  height: 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 
              inset 0 -1px 2px rgba(255, 255, 255, 0.8),
              0 1px 2px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.lever-switch:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5);
}
.lever-switch[aria-checked="true"] {
  background: linear-gradient(180deg, #16a34a 0%, #22c55e 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 
              inset 0 -1px 2px rgba(255, 255, 255, 0.2),
              0 2px 6px rgba(34, 197, 94, 0.4);
}
.lever-switch__thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15),
              0 1px 2px rgba(0, 0, 0, 0.1),
              inset 0 -1px 1px rgba(0, 0, 0, 0.05),
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lever-switch__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
  transition: background 0.4s ease;
}
.lever-switch[aria-checked="true"] .lever-switch__thumb {
  transform: translateX(-32px);
}
.lever-switch[aria-checked="true"] .lever-switch__thumb::after {
  background: #22c55e;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), 0 0 4px rgba(34,197,94,0.5);
}

.lever-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  background: linear-gradient(110deg, #16a34a 0%, #22c55e 25%, #86efac 50%, #22c55e 75%, #16a34a 100%);
  background-size: 200% auto;
  color: #022c22;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  animation: shimmerLever 3s linear infinite, pulseGlowLever 2s infinite;
  transition: all 0.3s ease;
}

@keyframes shimmerLever {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlowLever {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), 0 2px 6px rgba(34, 197, 94, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0), 0 2px 6px rgba(34, 197, 94, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 2px 6px rgba(34, 197, 94, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
}

/* ============================================================
   FEATURE TOOLTIP STYLING (PREMIUM - UPGRADED)
   ============================================================ */
.feature-tooltip-trigger {
  border-bottom: none !important; /* Remove dotted underline completely */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}
.feature-tooltip-trigger::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--t-fast), filter var(--t-fast);
}
.feature-tooltip-trigger:hover {
  color: var(--blue-600, #2563eb);
}
.feature-tooltip-trigger:hover::after {
  transform: scale(1.15); /* Soft scale up on hover */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

.feature-tooltip {
  position: absolute;
  z-index: 1000;
  display: none;
  background: #ffffff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 16px 20px;
  width: 290px;
  text-align: right;
  direction: rtl;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}
.feature-tooltip.open {
  opacity: 1;
  transform: translateY(0);
}
.feature-tooltip-close {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--slate-400, #94a3b8) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-tooltip-close:hover,
.feature-tooltip-close:focus,
.feature-tooltip-close:active {
  color: var(--slate-900, #0f172a) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.feature-tooltip-close svg {
  width: 14px !important;
  height: 14px !important;
  stroke: var(--slate-400, #94a3b8) !important;
  fill: none !important;
}
.feature-tooltip-close:hover svg,
.feature-tooltip-close:focus svg,
.feature-tooltip-close:active svg {
  stroke: var(--slate-900, #0f172a) !important;
}
.feature-tooltip-arrow {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  color: #ffffff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.04));
}
.feature-tooltip.tooltip-bottom .feature-tooltip-arrow {
  bottom: auto;
  top: -9px;
  transform: translateX(-50%) scaleY(-1);
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.04));
}
.feature-tooltip-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin-bottom: 6px;
  padding-left: 16px; /* Avoid overlapping close button */
}
.feature-tooltip-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate-600, #475569);
  margin: 0;
}

/* ── Interactive Timeline Styles ── */
/* Vertical Scrollytelling styles */
.scrolly-section {
  position: relative;
  min-height: 320vh;
  background-color: var(--slate-50);
}

.scrolly-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 993px) {
  .scrolly-container-wrapper {
    max-width: 1260px !important;
  }
}

.scrolly-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  height: 85vh;
  width: 100%;
}

.scrolly-details {
  flex: 1;
  min-width: 0;
  margin-top: -30px; /* Shift the card slightly upwards */
}

.scrolly-nav {
  position: relative;
  width: 340px;
  height: 580px;
  flex-shrink: 0;
}

.scrolly-svg-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scrolly-path-bg {
  stroke-dasharray: 8 6;
}

.scrolly-path-active {
  transition: stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolly-steps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.scrolly-step {
  position: absolute;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.35;
  transform: scale(0.95);
  pointer-events: auto;
}

.scrolly-step.active {
  opacity: 1;
  transform: scale(1.08);
}

/* --- Positions: anchor point is the dot center (22px radius) --- */
/* Step 1: top-center */
.scrolly-step:nth-child(1) {
  left: 50%;
  top: 3%;
  transform: translate(-50%, -50%) scale(0.95);
}
.scrolly-step:nth-child(1).active {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Step 2: right side */
.scrolly-step:nth-child(2) {
  right: 8%;
  top: calc(16.5% - 22px);
}

/* Step 3: left side */
.scrolly-step:nth-child(3) {
  left: 8%;
  top: calc(30% - 22px);
}

/* Step 4: right side */
.scrolly-step:nth-child(4) {
  right: 8%;
  top: calc(43.5% - 22px);
}

/* Step 5: left side */
.scrolly-step:nth-child(5) {
  left: 8%;
  top: calc(57% - 22px);
}

/* Step 6: right side */
.scrolly-step:nth-child(6) {
  right: 8%;
  top: calc(70.5% - 22px);
}

/* Step 7: left side */
.scrolly-step:nth-child(7) {
  left: 8%;
  top: calc(84% - 22px);
}

/* Step 8: bottom-center */
.scrolly-step:nth-child(8) {
  left: 50%;
  top: 97%;
  transform: translate(-50%, -50%) scale(0.95);
}
.scrolly-step:nth-child(8).active {
  transform: translate(-50%, -50%) scale(1.08);
}

.scrolly-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--slate-250);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--slate-500);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.scrolly-step:hover .scrolly-dot {
  border-color: var(--blue-400);
  color: var(--blue-600);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.scrolly-step.active .scrolly-dot {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15), 0 10px 20px rgba(37, 99, 235, 0.25);
  animation: pulse-ring 2s infinite;
}

/* Step-label: shown as a floating tooltip-style badge beside the dot */
.scrolly-step-label {
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 10px;
  padding: 5px 12px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}

/* Right-side steps (2,4,6): label floats to the left of the dot */
.scrolly-step:nth-child(2) .scrolly-step-label,
.scrolly-step:nth-child(4) .scrolly-step-label,
.scrolly-step:nth-child(6) .scrolly-step-label {
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
}

/* Left-side steps (3,5,7): label floats to the right of the dot */
.scrolly-step:nth-child(3) .scrolly-step-label,
.scrolly-step:nth-child(5) .scrolly-step-label,
.scrolly-step:nth-child(7) .scrolly-step-label {
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
}

/* Center steps (1, 8): label floats above the dot to prevent bottom overflow clipping */
.scrolly-step:nth-child(1) .scrolly-step-label,
.scrolly-step:nth-child(8) .scrolly-step-label {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

/* Show label on hover and active */
.scrolly-step:hover .scrolly-step-label,
.scrolly-step.active .scrolly-step-label {
  opacity: 1;
}

.scrolly-step:nth-child(2):hover .scrolly-step-label,
.scrolly-step:nth-child(2).active .scrolly-step-label,
.scrolly-step:nth-child(4):hover .scrolly-step-label,
.scrolly-step:nth-child(4).active .scrolly-step-label,
.scrolly-step:nth-child(6):hover .scrolly-step-label,
.scrolly-step:nth-child(6).active .scrolly-step-label {
  transform: translateY(-50%) translateX(0);
}

.scrolly-step:nth-child(3):hover .scrolly-step-label,
.scrolly-step:nth-child(3).active .scrolly-step-label,
.scrolly-step:nth-child(5):hover .scrolly-step-label,
.scrolly-step:nth-child(5).active .scrolly-step-label,
.scrolly-step:nth-child(7):hover .scrolly-step-label,
.scrolly-step:nth-child(7).active .scrolly-step-label {
  transform: translateY(-50%) translateX(0);
}

.scrolly-step:nth-child(1):hover .scrolly-step-label,
.scrolly-step:nth-child(1).active .scrolly-step-label {
  transform: translateX(-50%) translateY(0);
}
.scrolly-step:nth-child(8):hover .scrolly-step-label,
.scrolly-step:nth-child(8).active .scrolly-step-label {
  transform: translateX(-50%) translateY(0);
}

.scrolly-step-label h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue-700);
  margin: 0;
  line-height: 1.2;
}

.scrolly-step.active .scrolly-step-label h4 {
  color: var(--blue-700);
  font-weight: 900;
}

.scrolly-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.timeline-details-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  min-height: 480px; /* Increased to 480px to accommodate user custom images */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to top to leave space at the bottom */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

#timeline-detail-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Fallback layout */
.scrolly-mobile-fallback {
  display: none;
  padding: 60px 0;
  background-color: var(--slate-50);
}

.scrolly-mobile-step {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--slate-150);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  overflow: hidden; /* Added to clip full-bleed images at bottom corners */
}

.scrolly-mobile-step__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.scrolly-mobile-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.scrolly-mobile-step h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}

.scrolly-mobile-step p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .scrolly-sticky {
    display: none;
  }
  .scrolly-section {
    min-height: auto;
    height: auto;
  }
  .scrolly-mobile-fallback {
    display: block;
  }
}

.scrolly-section .section-label {
  font-size: 14px;
  padding: 8px 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

/* Premium Mockup Wrapper & Browser styling */
.mockup-wrapper {
  background: transparent;
  padding: 0;
  border: none;
  margin-top: 24px;
}

.mockup-browser {
  border: 1px solid var(--slate-250);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mockup-browser:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

/* Chrome Tab Bar */
.mockup-browser__tabbar {
  background: #e2e8f0;
  padding: 8px 16px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--slate-200);
}
.mockup-browser__tabs {
  display: flex;
  align-items: end;
  gap: 6px;
}
.mockup-browser__tab {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px 10px 0 0;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--slate-600);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: none;
  max-width: 200px;
  height: 28px;
  cursor: default;
}
.mockup-browser__tab.active {
  background: #ffffff;
  color: var(--slate-850);
  font-weight: 600;
  border-color: var(--slate-200);
  height: 32px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.mockup-browser__favicon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.mockup-browser__tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.mockup-browser__tab-close {
  font-size: 12px;
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.mockup-browser__tab-close:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}
.mockup-browser__tab-add {
  font-size: 16px;
  color: var(--slate-500);
  padding: 0 8px;
  cursor: pointer;
  align-self: center;
  margin-bottom: 2px;
}

/* Chrome Header & Actions */
.mockup-browser__header {
  height: 46px;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
}
.mockup-browser__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-browser__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-browser__dot--red { background: #ff5f56; }
.mockup-browser__dot--yellow { background: #ffbd2e; }
.mockup-browser__dot--green { background: #27c93f; }

.mockup-browser__nav-arrows {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: ltr;
}
.mockup-browser__nav-icon {
  font-size: 12px;
  color: var(--slate-600);
  cursor: pointer;
  transition: color 0.2s;
}
.mockup-browser__nav-icon:hover {
  color: var(--slate-900);
}
.mockup-browser__nav-icon.disabled {
  color: var(--slate-300);
  cursor: not-allowed;
}

.mockup-browser__address {
  flex-grow: 1;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 11.5px;
  color: var(--slate-500);
  padding: 6px 16px;
  border-radius: 8px;
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto;
  justify-content: start;
}
.mockup-browser__address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-browser__menu-dots {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mockup-browser__content img {
  width: 100%;
  display: block;
  height: auto;
}

@media (max-width: 768px) {
  .mockup-wrapper {
    padding: 0;
  }
  .mockup-browser__address {
    display: none;
  }
  .mockup-browser__nav-arrows {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE OPTIMIZATIONS FOR COMPARISON & PRICING PLANS
   ============================================================ */

/* 1. Global Wrapper Scroll & Scrollbar Styling for tables on tablet/mobile */
@media (max-width: 992px) {
  .compare__wrapper--vs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Modern custom scrollbar for comparison wrappers */
  .compare__wrapper--vs::-webkit-scrollbar {
    height: 6px;
  }
  .compare__wrapper--vs::-webkit-scrollbar-track {
    background: var(--slate-100, #f1f5f9);
    border-radius: 10px;
  }
  .compare__wrapper--vs::-webkit-scrollbar-thumb {
    background: var(--slate-300, #cbd5e1);
    border-radius: 10px;
  }
  .compare__wrapper--vs::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400, #94a3b8);
  }
}

/* 2. Tablet responsiveness (769px to 992px) - Scroll with sticky column for both tables */
@media (min-width: 769px) and (max-width: 992px) {
  .vs-table, .plans-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  /* Sticky first column to the right in RTL */
  .vs-table th:first-child,
  .vs-table td:first-child,
  .plans-table th:first-child,
  .plans-table td:first-child {
    position: sticky !important;
    right: 0 !important;
    z-index: 10 !important;
    background: var(--slate-50, #f8fafc) !important;
    border-left: 2px solid var(--slate-250, #e2e8f0) !important;
    box-shadow: -4px 0 10px rgba(15, 23, 42, 0.05) !important;
  }
  
  .vs-table thead th:first-child,
  .plans-table thead th:first-child {
    z-index: 110 !important;
  }
}

/* 3. Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
  
  /* A. COMPARISON TABLE (.vs-table) -> CARDS LAYOUT */
  .compare__wrapper--vs:first-of-type {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin-top: 24px;
  }
  
  .vs-table {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    background: transparent !important;
  }
  
  .vs-table thead {
    display: none !important;
  }
  
  .vs-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .vs-table tbody tr {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--slate-200, #e2e8f0) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  
  .vs-table tbody tr:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
    background-color: #ffffff !important;
  }
  
  .vs-table tbody td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: right !important;
  }
  
  /* Feature Title Cell */
  .vs-table td:first-child {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: var(--blue-700, #1d4ed8) !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed var(--slate-200, #e2e8f0) !important;
    margin-bottom: 14px !important;
  }
  
  /* Traditional Systems Cell */
  .vs-table td:nth-child(2) {
    padding: 12px 14px !important;
    background: rgba(239, 68, 68, 0.03) !important;
    border: 1px solid rgba(239, 68, 68, 0.08) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }
  
  .vs-table td:nth-child(2)::before {
    content: "الأنظمة التقليدية";
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--red-500, #ef4444);
    margin-bottom: 6px;
    opacity: 0.85;
  }
  
  /* RxSupply Cell */
  .vs-table td:nth-child(3) {
    padding: 12px 14px !important;
    background: rgba(37, 99, 235, 0.04) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 10px !important;
  }
  
  .vs-table td:nth-child(3)::before {
    content: "منصة RxSupply المتخصصة";
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-600, #2563eb);
    margin-bottom: 6px;
    opacity: 0.9;
  }
  
  .vs-cell {
    gap: 10px !important;
    align-items: flex-start !important;
  }
  
  .vs-cell__icon {
    margin-top: 1px !important;
  }
  
  .vs-cell__text {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
  
  
  /* B. PRICING PLANS TABLE (.plans-table) -> HORIZONTAL SCROLL & STICKY COLUMN */
  .plans-compare-section .compare__wrapper--vs {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid var(--slate-200, #e2e8f0) !important;
  }
  
  .plans-table {
    min-width: 520px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  
  /* Stick first column (features) to the right on mobile */
  .plans-table th:first-child,
  .plans-table td:first-child {
    position: sticky !important;
    right: 0 !important;
    z-index: 10 !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    background: var(--slate-50, #f8fafc) !important;
    border-left: 2px solid var(--slate-200, #e2e8f0) !important;
    box-shadow: -4px 0 10px rgba(15, 23, 42, 0.05) !important;
    padding: 12px 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    word-wrap: break-word;
    white-space: normal !important;
  }
  
  .plans-table thead th:first-child {
    z-index: 110 !important;
  }
  
  /* Set sizes for pricing columns */
  .plans-table th:nth-child(2),
  .plans-table td:nth-child(2),
  .plans-table th:nth-child(3),
  .plans-table td:nth-child(3),
  .plans-table th:nth-child(4),
  .plans-table td:nth-child(4) {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    padding: 12px 10px !important;
    font-size: 12px !important;
  }
  
  /* Table headers sticky top offset */
  .plans-table thead th {
    top: 79px !important; /* Exactly below sticky navbar */
    padding: 16px 10px !important;
  }
  
  .plans-table__plan-name {
    font-size: 13.5px !important;
  }
  
  .plans-table__plan-price .price-val {
    font-size: 15px !important;
  }
  
  .plans-table__plan-price .price-currency {
    font-size: 10px !important;
  }
  
  .plans-table__plan-price .price-period {
    font-size: 8.5px !important;
  }
  
  /* Make category rows span sticky across the scroll */
  .plans-table tr.category-row td {
    position: sticky !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    width: 100% !important;
    background: #f1f5f9 !important;
    padding: 10px 12px !important;
  }
  
  .category-row__inner {
    font-size: 13px !important;
    gap: 8px !important;
  }
  
  .category-row__inner svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .plans-table .td-icon {
    width: 20px !important;
    height: 20px !important;
  }
  .plans-table .td-icon.ok {
    font-size: 13px !important;
  }
  
  .td-limit {
    font-size: 11px !important;
    padding: 2px 6px !important;
  }
  
  .td-text-highlight {
    font-size: 11px !important;
  }
  
  .plan-btn--sm {
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }
}

