/* ════════
 * v4.23 — Savings Ladder rebuild (2026-05-12)
 * Data-driven, mathematically verified, premium SaaS layout
 * ════════ */

.it4-svl{
  max-width: 1100px;
  margin: 32px auto 16px;
  padding: 28px 24px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

.it4-svl-head{ text-align: center; margin-bottom: 22px }
.it4-svl-label{ margin-bottom: 8px !important }
.it4-svl-title{
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 8px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}
.it4-svl-title .hl{
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text){
  .it4-svl-title .hl{ color: #2563eb; -webkit-text-fill-color: initial }
}
.it4-svl-sub{
  font-size: 13.5px;
  color: var(--ds-text-muted);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.it4-svl-sub strong{ color: #10b981; font-weight: 700 }

/* ── 6-card grid ── */
.it4-svl-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  align-items: stretch;
}

.it4-svl-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 0;
}
@media (hover: hover){
  .it4-svl-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.07);
    border-color: rgba(66,153,225,0.25);
  }
}

.it4-svl-card[data-tier="mo"]{
  background: #f8fafc;
  border-style: dashed;
  border-color: rgba(15,23,42,0.12);
}

/* Best-value card (3-year) */
.it4-svl-card.is-best{
  background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
  border: 2px solid rgba(16,185,129,0.40);
  box-shadow: 0 8px 24px rgba(16,185,129,0.14), 0 1px 4px rgba(15,23,42,0.05);
  transform: scale(1.03);
}
@media (hover: hover){
  .it4-svl-card.is-best:hover{
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 16px 32px rgba(16,185,129,0.20);
  }
}

/* Popular card (1-year) — soft accent */
.it4-svl-card.is-popular{
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  border-color: rgba(37,99,235,0.30);
}

/* Discount badge — top floating */
.it4-svl-badge{
  position: absolute;
  inset-block-start: -10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-feature-settings: "tnum" 1;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 2;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.16);
  direction: ltr;
}
.it4-svl-card[data-tier="3m"] .it4-svl-badge{ background: linear-gradient(135deg, #38bdf8, #0ea5e9) }
.it4-svl-card[data-tier="6m"] .it4-svl-badge{ background: linear-gradient(135deg, #6366f1, #4f46e5) }
.it4-svl-card[data-tier="1y"] .it4-svl-badge{ background: linear-gradient(135deg, #2563eb, #1d4ed8) }
.it4-svl-card[data-tier="2y"] .it4-svl-badge{ background: linear-gradient(135deg, #f59e0b, #d97706) }
.it4-svl-card[data-tier="3y"] .it4-svl-badge{
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 3px 8px rgba(16,185,129,0.30);
}

/* "BEST VALUE" / "POPULAR" tag — top-right corner */
.it4-svl-best-tag,
.it4-svl-pop-tag{
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}
.it4-svl-best-tag{
  background: rgba(16,185,129,0.15);
  color: var(--ds-green-text);
  border: 1px solid rgba(16,185,129,0.30);
}
.it4-svl-pop-tag{
  background: rgba(37,99,235,0.10);
  color: var(--ds-blue-text);
  border: 1px solid rgba(37,99,235,0.25);
}

.it4-svl-period{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-top: 6px;
  margin-bottom: 10px;
}
.it4-svl-card.is-best .it4-svl-period{ color: var(--ds-green-text) }
.it4-svl-card.is-popular .it4-svl-period{ color: var(--ds-blue-text) }

.it4-svl-price{
  font-family: 'IBM Plex Mono', monospace;
  font-feature-settings: "tnum" 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #0f172a;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  direction: ltr;
}
.it4-svl-card.is-best .it4-svl-price{
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text){
  .it4-svl-card.is-best .it4-svl-price{ color: #047857; -webkit-text-fill-color: initial }
}
.it4-svl-price small{
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
  -webkit-text-fill-color: initial;
}

/* Meta row: total + save */
.it4-svl-meta{
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-feature-settings: "tnum" 1;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ds-text-muted);
  direction: ltr;
}
.it4-svl-meta-total{ display: block; color: var(--ds-text-2) }
.it4-svl-meta-save{
  display: block;
  margin-top: 3px;
  color: #10b981;
  font-weight: 700;
}
.it4-svl-card.is-best .it4-svl-meta-save{ color: var(--ds-green-text); font-weight: 800 }
.it4-svl-card[data-tier="mo"] .it4-svl-meta{
  font-style: italic;
  color: #94a3b8;
}

/* Foot note */
.it4-svl-foot{
  text-align: center;
  margin: 18px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
}
.it4-svl-link{
  color: var(--ds-blue-text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(37,99,235,0.40);
}
.it4-svl-link:hover{ border-bottom-style: solid }

/* ── DARK THEME ── */
html[data-theme="dark"] .it4-svl{
  background: linear-gradient(180deg, #131c2c 0%, #0f1623 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .it4-svl-title{ color: #f0f6fc !important }
html[data-theme="dark"] .it4-svl-card{
  background: linear-gradient(180deg, #1a2842 0%, #131c2c 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .it4-svl-card[data-tier="mo"]{
  background: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] .it4-svl-card.is-best{
  background: linear-gradient(180deg, #14342a 0%, #0d2820 100%) !important;
  border-color: rgba(16,185,129,0.45) !important;
}
html[data-theme="dark"] .it4-svl-price{ color: #f0f6fc !important }
/* The light theme paints these two with a dark gradient through the text; the dark theme uses its light tokens. */
html[data-theme="dark"] .it4-svl-title .hl{ background: none; -webkit-text-fill-color: var(--ds-blue-text) }
html[data-theme="dark"] .it4-svl-card.is-best .it4-svl-price{ background: none; -webkit-text-fill-color: var(--ds-green-text) }

/* ── RTL ── */
html[dir="rtl"] .it4-svl-meta,
html[dir="rtl"] .it4-svl-price,
html[dir="rtl"] .it4-svl-badge{ direction: ltr }

/* ── MOBILE ── */
@media (max-width: 920px){
  .it4-svl-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (max-width: 640px){
  .it4-svl{ padding: 22px 14px 18px; border-radius: 14px; margin: 22px auto 14px }
  .it4-svl-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
  }
  .it4-svl-card{ padding: 14px 10px 12px }
  .it4-svl-card.is-best{ transform: none } /* save vertical room in 2-col */
  .it4-svl-period{ font-size: 9.5px; margin-bottom: 6px }
  .it4-svl-price{ font-size: 19px }
  .it4-svl-price small{ font-size: 10px }
  .it4-svl-meta{ font-size: 9.5px; margin-top: 8px }
  .it4-svl-badge{ font-size: 9px; padding: 2px 8px; inset-block-start: -8px }
  .it4-svl-best-tag, .it4-svl-pop-tag{ font-size: 7.5px; padding: 1px 5px; inset-block-start: 5px; inset-inline-end: 5px }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce){
  .it4-svl-card{ transition: none !important }
}

/* ────────
   v4.50 — DARK MODE COMPREHENSIVE COVERAGE
   Added 2026-05-13. Overrides every hardcoded white-bg component
   that was missing a [data-theme="dark"] variant. Source rule chain
   ends here, so cascade order wins (no specificity bumping needed).
   ──────── */

/* Feature cards (.exfg-card) — Free Backups, Web Terminal, etc */
html[data-theme="dark"] body .exfg-card{
  background: linear-gradient(180deg, #131c2c 0%, #0f1623 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
html[data-theme="dark"] body .exfg-name{ color: #e2e8f0 !important; }
html[data-theme="dark"] body .exfg-desc{ color: #94a3b8 !important; }
html[data-theme="dark"] body .exfg-icon{ box-shadow: 0 1px 2px rgba(0,0,0,0.25) !important; }

/* Plan cards — popular variant (was missing dark override) */
html[data-theme="dark"] body .plan.popular,
html[data-theme="dark"] body .plan-card.popular,
html[data-theme="dark"] body .plan:has(.plan-pop),
html[data-theme="dark"] body .plan-card:has(.plan-pop){
  background: linear-gradient(180deg, #162237 0%, #0f1623 100%) !important;
  border-color: rgba(66,153,225,0.35) !important;
  box-shadow: 0 4px 18px rgba(66,153,225,0.18), 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* Custom VPS / build-to-order card (specific class) */
html[data-theme="dark"] body .it4-custom-plan,
html[data-theme="dark"] body .plan.it4-custom-plan,
html[data-theme="dark"] body .plan-card.it4-custom-plan{
  background: linear-gradient(180deg, #1a1530 0%, #110b22 100%) !important;
  border-color: rgba(168,85,247,0.30) !important;
  box-shadow: 0 4px 18px rgba(168,85,247,0.18), 0 2px 6px rgba(0,0,0,0.3) !important;
}
html[data-theme="dark"] body .it4-custom-plan .plan-name,
html[data-theme="dark"] body .it4-custom-plan .plan-desc{ color: #e2e8f0 !important; }
html[data-theme="dark"] body .it4-custom-plan .plan-price{ color: #c4b5fd !important; }
html[data-theme="dark"] body .it4-custom-plan .plan-specs .spec{
  background: rgba(168,85,247,0.10) !important;
  color: #cbd5e1 !important;
  border-color: rgba(168,85,247,0.20) !important;
}

/* FAQ items */
html[data-theme="dark"] body .faq-item{
  background: linear-gradient(180deg, #131c2c 0%, #0f1623 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
}
html[data-theme="dark"] body .faq-item.open{
  background: linear-gradient(180deg, #162237 0%, #0f1623 100%) !important;
  border-color: rgba(66,153,225,0.30) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
html[data-theme="dark"] body .faq-q{ color: #e2e8f0 !important; }
html[data-theme="dark"] body .faq-a{ color: #94a3b8 !important; }

/* Testimonial cards */
html[data-theme="dark"] body .testi-card{
  background: linear-gradient(180deg, #131c2c 0%, #0f1623 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] body .testi-card *{ color: #cbd5e1 !important; }
html[data-theme="dark"] body .testi-name{ color: #f1f5f9 !important; }

/* Trustpilot CTA card */
html[data-theme="dark"] body .it4-tp-card{
  background: linear-gradient(180deg, #131c2c 0%, #0f1623 100%) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] body .it4-tp-card .it4-tp-title,
html[data-theme="dark"] body .it4-tp-card h2,
html[data-theme="dark"] body .it4-tp-card h3{ color: #f1f5f9 !important; }
html[data-theme="dark"] body .it4-tp-card .it4-tp-sub{ color: #94a3b8 !important; }

/* Section backgrounds that were forced to white */
html[data-theme="dark"] body #locations,
html[data-theme="dark"] body .me-block,
html[data-theme="dark"] body #windows-vps,
html[data-theme="dark"] body #how,
html[data-theme="dark"] body #reviews{
  background: linear-gradient(180deg, #0f1623 0%, #0a0f1a 100%) !important;
}

/* Plan card popular highlight ring */
html[data-theme="dark"] body .plan-pop{
  background: rgba(66,153,225,0.20) !important;
  color: #60a5fa !important;
  border-color: rgba(66,153,225,0.35) !important;
}

/* Spec rows inside plans */
html[data-theme="dark"] body .plan-specs .spec{
  background: rgba(255,255,255,0.03) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] body .plan-specs .spec strong{ color: #f1f5f9 !important; }

/* Pricing block text within plan cards */
html[data-theme="dark"] body .plan .plan-name,
html[data-theme="dark"] body .plan-card .plan-name{ color: #f1f5f9 !important; }
html[data-theme="dark"] body .plan .plan-period,
html[data-theme="dark"] body .plan-card .plan-period{ color: #94a3b8 !important; }
html[data-theme="dark"] body .plan .plan-tagline,
html[data-theme="dark"] body .plan-card .plan-tagline{ color: #94a3b8 !important; }

/* Generic .plan-btn (Order Now buttons) — stay branded but ensure text contrast */
html[data-theme="dark"] body .plan-btn,
html[data-theme="dark"] body .plan .plan-cta,
html[data-theme="dark"] body .plan-card .plan-cta{
  color: #ffffff !important;
}

/* Compare row backgrounds */
html[data-theme="dark"] body .it4-cmp-row{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] body .it4-cmp-row:hover{
  background: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] body .it4-cmp-c{ color: #cbd5e1 !important; }
html[data-theme="dark"] body .it4-cmp-pname{ color: #f1f5f9 !important; }

/* Light-bg labels that need recoloring */
html[data-theme="dark"] body .lb-v2-text .hl-strong{ background: #1e293b !important; color: #60a5fa !important; }

/* ────────
   v4.54 — Lang switcher anchor polish (CSS-only)
   Targets the <a> elements created by v4.51 SSR migration. Adds the
   styling that previously applied to the <button> elements + modern
   active/hover polish.
   ──────── */

/* Base anchor styling — strip browser-default link look */
.topbar-lang a,
.topbar-lang a:link,
.topbar-lang a:visited{
  text-decoration: none !important;
  color: var(--ds-text-2) !important;
  font-family: var(--ds-sans, 'Inter', -apple-system, system-ui, sans-serif) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  padding: 7px 11px !important;
  margin: 0 !important;
  border-radius: 7px !important;
  line-height: 1 !important;
  min-width: 34px !important;
  min-height: 28px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
}

/* Spacing between buttons (the wrap has gap:0 by default — add subtle separation) */
.topbar-lang{ gap: 2px !important; }

/* Hover state — subtle, non-distracting */
.topbar-lang a:hover{
  color: var(--ds-text, #0f172a) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

/* Active state — clear visual distinction, pill-shaped */
.topbar-lang a.active,
.topbar-lang a.on{
  background: var(--ds-blue, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(37,99,235,.20), 0 2px 6px rgba(37,99,235,.18) !important;
  font-weight: 700 !important;
}
.topbar-lang a.active:hover,
.topbar-lang a.on:hover{
  background: var(--ds-blue, #2563eb) !important;
  color: #ffffff !important;
}

/* Focus ring (keyboard accessibility) */
.topbar-lang a:focus-visible{
  outline: 2px solid var(--ds-blue, #2563eb) !important;
  outline-offset: 2px !important;
}

/* Dark mode adjustments */
html[data-theme="dark"] .topbar-lang a,
html[data-theme="dark"] .topbar-lang a:link,
html[data-theme="dark"] .topbar-lang a:visited{
  color: var(--ds-text-2, #94a3b8) !important;
}
html[data-theme="dark"] .topbar-lang a:hover{
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .topbar-lang a.active,
html[data-theme="dark"] .topbar-lang a.on{
  background: var(--ds-blue, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(37,99,235,.30), 0 2px 6px rgba(37,99,235,.28) !important;
}

/* ────────
   v4.55 — Mobile touch target polish (CSS-only)
   Apple HIG + WCAG 2.1 AA recommend ≥44×44 touch targets. This block
   bumps undersized buttons + links ONLY on mobile viewports.
   ──────── */
@media (max-width: 640px){
  /* Topbar lang switcher anchors — bump to comfortable touch size */
  html body .topbar-lang a,
  html body .topbar-lang a:link{
    min-width: 42px !important;
    min-height: 36px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  /* Topbar icon buttons (theme toggle, hamburger menu) */
  html body .topbar-icon-btn,
  html body .topbar-menu-btn{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 18px !important;
  }


  /* Sidebar navigation links — increase tap target via vertical padding */
  html body .sidebar a,
  html body .sb-nav a,
  html body aside a{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: block !important;
    min-height: 40px !important;
    line-height: 1.4 !important;
  }

  /* Theme toggle button in sidebar (.theme-toggle-btn was 34×34) */
  html body .theme-toggle-btn{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Chat-modal close/minimize buttons — bump from 23-25px to 32px */
  html body .chat-modal-x,
  html body .chat-modal-min,
  html body .cp-close,
  html body .chat-proactive-close{
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  /* Modal close button — bump from 32 to 40 */
  html body .modal-x{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Chat chips — bump height for easier tapping */
  html body .chat-chip{
    min-height: 36px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
/* ────────
   v4.56 — Sidebar lang switcher anchor styling (CSS-only)
   The sidebar's full-name lang switcher (`العربية` / `English` / `Svenska`)
   sits inside a div with inline display:flex but the anchors have no class
   — only a `data-lang` attribute. No CSS targets them. This block adds
   the matching polish that the topbar-lang switcher already has.
   ──────── */
.sidebar-section a[data-lang],
.sidebar a[data-lang]:not(.topbar-lang a){
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  padding: 9px 8px !important;
  font-family: var(--ds-sans, 'Inter', system-ui, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text2, #475569) !important;
  background: transparent !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 7px !important;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  min-height: 36px !important;
  white-space: nowrap !important;
}
.sidebar-section a[data-lang]:hover,
.sidebar a[data-lang]:hover{
  color: var(--text, #0f172a) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}
.sidebar-section a[data-lang].active,
.sidebar a[data-lang].active,
.sidebar a[data-lang].on{
  background: var(--blue, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(37,99,235,.20), 0 2px 6px rgba(37,99,235,.18) !important;
}
.sidebar-section a[data-lang]:focus-visible,
.sidebar a[data-lang]:focus-visible{
  outline: 2px solid var(--blue, #2563eb) !important;
  outline-offset: 2px !important;
}

/* Dark mode adjustments */
html[data-theme="dark"] .sidebar-section a[data-lang],
html[data-theme="dark"] .sidebar a[data-lang]{
  color: var(--ds-text-2, #94a3b8) !important;
}
html[data-theme="dark"] .sidebar-section a[data-lang]:hover,
html[data-theme="dark"] .sidebar a[data-lang]:hover{
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .sidebar-section a[data-lang].active,
html[data-theme="dark"] .sidebar a[data-lang].active{
  background: var(--blue, #2563eb) !important;
  color: #ffffff !important;
}

/* IT4_MOBILE_REVEAL_SAFETY_v1 — force .reveal sections visible on mobile.
   Some mobile browsers (older WebKit, slow networks, content-blocking
   extensions) fail to fire IntersectionObserver on initial render, leaving
   sections with opacity:0. This safety net keeps content visible regardless.
   Desktop animations remain intact (this only applies to <=768px). */
@media (max-width: 768px){
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* IT4_MOBILE_LAUNCH_COMPACT_v1 — fix excess vertical gaps on mobile for the
   launch banner (.lb-v2) and the "All plans include" strip (.it4-allplans).
   Pure CSS overrides — no HTML/JS structural changes. */
@media (max-width: 640px){
  /* ── Launch banner (.lb-v2) ── */
  .lb-v2{
    gap: 10px !important;
    padding: 14px 16px !important;
    margin: 16px auto !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .lb-v2-icon{
    font-size: 30px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    line-height: 1 !important;
  }
  .lb-v2-text{
    font-size: 13px !important;
    line-height: 1.45 !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }
  .lb-v2-text .hl,
  .lb-v2-text .hl-strong{
    padding: 2px 7px !important;
    font-size: 12.5px !important;
    margin: 1px 0 !important;
    display: inline-block !important;
  }
  .lb-v2-counter{
    padding: 7px 14px !important;
    min-width: 0 !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }
  .lb-v2-counter .lb-num{
    font-size: 20px !important;
    line-height: 1 !important;
  }
  .lb-v2-counter,
  .lb-v2-counter .lb-lbl{
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }
  .lb-v2-cta{
    padding: 9px 18px !important;
    font-size: 12.5px !important;
    flex: 0 0 auto !important;
    line-height: 1.2 !important;
  }

  /* ── "All plans include" strip (.it4-allplans) ── */
  .plans-grid > .it4-allplans{
    font-size: 11.5px !important;
    padding: 9px 12px !important;
    gap: 4px 10px !important;
    line-height: 1.55 !important;
  }
  .plans-grid > .it4-allplans .it4-ap-label{
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    padding: 1px 0 !important;
    white-space: nowrap !important;
  }
  .plans-grid > .it4-allplans .it4-ap-item{
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.4 !important;
    padding: 1px 0 !important;
    white-space: nowrap !important;
  }
}

/* Extra-compact for very narrow phones (≤380px) */
@media (max-width: 380px){
  .lb-v2{ gap: 8px !important; padding: 12px 14px !important; margin: 14px auto !important; }
  .lb-v2-icon{ font-size: 26px !important; }
  .lb-v2-text{ font-size: 12.5px !important; }
  .lb-v2-text .hl,
  .lb-v2-text .hl-strong{ font-size: 12px !important; padding: 2px 6px !important; }
  .lb-v2-counter{ padding: 5px 12px !important; }
  .lb-v2-counter .lb-num{ font-size: 18px !important; }
  .lb-v2-counter,
  .lb-v2-counter .lb-lbl{ font-size: 11px !important; }
  .lb-v2-cta{ padding: 8px 14px !important; font-size: 12px !important; }

  .plans-grid > .it4-allplans{
    font-size: 11px !important;
    padding: 8px 10px !important;
    gap: 3px 8px !important;
  }
}

/* IT4_MOBILE_ALLPLANS_ROW_v1 — fix the "All plans include" strip getting
   stretched to 400+px by v4.17d's grid-auto-rows:1fr (which makes plan cards
   equal-height). On mobile, single-column layout doesn't need 1fr rows; the
   per-card min-height keeps cards uniform on their own. Letting rows size to
   max-content collapses the strip's row to its actual ~95px content. */
@media (max-width: 640px){
  html body #plans .plans-grid,
  html body #windows-vps .plans-grid{
    grid-auto-rows: max-content !important;
  }
  html body .plans-grid > .it4-allplans{
    align-self: start !important;
    height: max-content !important;
  }
}
/* ════════
   IT4U-DESKTOP-REFINEMENT-V1 START
   Marketing-site sidebar refinement.
   • Converts sidebar from position:sticky to position:fixed (no flex-edge-case)
   • Slimmer & visually lighter (260→232 px) — keeps useful content but reduces weight
   • Eliminates the "empty space below sidebar" issue completely (fixed = always full viewport)
   • Adjusts .main to offset the fixed sidebar width
   • Refines sidebar typography & spacing for premium feel
   • Tablet (768-900px): hide desktop sidebar — overlay mode kicks in (already exists)
   • Phone (<768px): unchanged
   ════════ */
@media (min-width: 901px) {
    /* Body no longer needs to be flex on desktop — we'll position sidebar fixed */
    body {
        display: block !important;
    }
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        height: 100vh !important;
        width: 232px !important;
        z-index: 50;
        /* Subtle inner shadow + slight bg tint for depth */
        background: var(--surface) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }
    /* RTL (Arabic, default) — sidebar on RIGHT */
    .sidebar {
        right: 0 !important;
        left: auto !important;
        border-left: 1px solid var(--border) !important;
        border-right: none !important;
    }
    [dir="ltr"] .sidebar {
        right: auto !important;
        left: 0 !important;
        border-left: none !important;
        border-right: 1px solid var(--border) !important;
    }
    /* Push main content over by sidebar width */
    .main {
        margin-right: 232px !important;
        margin-left: 0 !important;
        width: auto !important;
    }
    [dir="ltr"] .main {
        margin-right: 0 !important;
        margin-left: 232px !important;
    }

    /* === Sidebar internal refinements — lighter, more premium ============ */
    .sidebar-logo {
        padding: 20px 18px 16px !important;
    }
    .logo-svg {
        width: 38px !important;
        height: 38px !important;
    }
    .logo-tagline {
        font-size: 8px !important;
        letter-spacing: 1.8px !important;
    }
    .sidebar-status {
        padding: 12px 18px !important;
        font-size: 10.5px !important;
    }
    .sidebar-section {
        padding: 14px 18px !important;
    }
    .sidebar-section-title {
        font-size: 10px !important;
        letter-spacing: 1.4px !important;
        margin-bottom: 10px !important;
        opacity: 0.85;
    }
    .sidebar-nav a {
        font-size: 13.5px !important;
        padding: 8px 10px !important;
        gap: 9px !important;
        margin-bottom: 2px !important;
        border-radius: 8px !important;
    }
    .sidebar-nav a .nav-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }
    .sidebar-about {
        font-size: 12.5px !important;
        line-height: 1.7 !important;
    }
    .sidebar-contact a {
        font-size: 12.5px !important;
        padding: 6px 0 !important;
        gap: 7px !important;
    }
    .sidebar-bottom {
        padding: 14px 18px !important;
    }
    .cta-sidebar {
        font-size: 13.5px !important;
        padding: 10px !important;
        border-radius: 9px !important;
        margin-bottom: 8px !important;
    }
    .dash-sidebar-btn {
        font-size: 11px !important;
        padding: 8px !important;
        border-radius: 9px !important;
        margin-bottom: 8px !important;
    }
    .theme-row .theme-label {
        font-size: 11px !important;
    }
    .theme-toggle-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
    }
    /* Refined hover state with subtle gradient */
    .sidebar-nav a:hover {
        background: linear-gradient(90deg, var(--blue-dim), transparent 90%) !important;
    }

    /* The topbar — slightly lighter so it doesn't compete with sidebar */
    .topbar-bar {
        padding: 8px 22px !important;
    }
    /* Hide the hamburger button on desktop — sidebar is always visible */
    .topbar-menu-btn {
        display: none !important;
    }
}

/* === Wide desktops (≥1400px): give content max-width for nicer line lengths === */
@media (min-width: 1400px) {
    .main {
        max-width: calc(100vw - 232px);
    }
    .section, .me-inner {
        max-width: 1040px !important;
    }
}

/* === Tablet portrait (768-900px): sidebar reverts to overlay (already in base CSS) ===
   No override needed — the existing @media(max-width:900px) handles this. */

/* ════════
   IT4U-DESKTOP-REFINEMENT-V1 END
   ════════ */
/* ════════
   IT4U-SIDEBAR-RAIL-V2 START
   Enterprise rail-mode sidebar — matches modern SaaS dashboard pattern.

   Two states (desktop only):
     • Expanded: 244 px wide, full nav with icons + labels (default)
     • Rail:      60 px wide, icons centered, labels hidden, hover tooltips

   Mobile (<901px) retains the existing hamburger-overlay behavior.
   ════════ */

@media (min-width: 901px) {

    /* ── Sidebar shell — refined visual baseline ──────── */
    .sidebar {
        width: 244px !important;
        background: var(--surface) !important;
        transition:
            width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    /* Main reserves space for sidebar; both sides have transition for smooth reflow */
    .main {
        margin-right: 244px !important;
        margin-left: 0 !important;
        transition: margin 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    [dir="ltr"] .main {
        margin-right: 0 !important;
        margin-left: 244px !important;
    }

    /* ── Logo area — cleaner, less padding ──────── */
    .sidebar-logo {
        padding: 18px 16px 14px !important;
        border-bottom: 1px solid var(--border) !important;
        position: relative;
    }
    .logo-wrap {
        gap: 12px !important;
    }
    .logo-svg {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0;
    }
    .logo-text-wrap {
        overflow: hidden;
        transition: opacity 0.2s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .logo-tagline {
        font-size: 8.5px !important;
        letter-spacing: 1.6px !important;
        white-space: nowrap;
    }

    /* ── Status pill — refined ──────── */
    .sidebar-status {
        padding: 10px 14px !important;
        margin: 10px 12px !important;
        border: 1px solid rgba(72, 187, 120, 0.15) !important;
        background: rgba(72, 187, 120, 0.06) !important;
        border-radius: 9px !important;
        font-size: 10.5px !important;
        gap: 8px !important;
    }

    /* ── Section grouping ──────── */
    .sidebar-section {
        padding: 14px 14px 10px !important;
        border-bottom: 0 !important;
        position: relative;
    }
    /* Subtle visual divider only between sections of similar type */
    .sidebar-section + .sidebar-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 14px;
        right: 14px;
        height: 1px;
        background: var(--border);
        opacity: 0.5;
    }
    .sidebar-section-title {
        font-size: 10px !important;
        letter-spacing: 1.4px !important;
        font-weight: 700 !important;
        color: var(--muted) !important;
        margin-bottom: 8px !important;
        padding-left: 4px;
        opacity: 0.75;
        white-space: nowrap;
        overflow: hidden;
    }

    /* ── Nav items — premium pill style ──────── */
    .sidebar-nav a {
        display: flex !important;
        align-items: center !important;
        padding: 9px 10px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: var(--text2) !important;
        border-radius: 9px !important;
        margin-bottom: 2px !important;
        gap: 11px !important;
        transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
        position: relative;
        white-space: nowrap;
        overflow: hidden;
    }
    .sidebar-nav a:hover {
        background: var(--blue-dim) !important;
        color: var(--blue) !important;
    }

    /* Active state — filled brand-blue rectangle (matches reference) */
    .sidebar-nav a.is-active {
        background: var(--blue-fill) !important;
        color: #fff !important;
        font-weight: 600 !important;
        box-shadow:
            0 1px 0 inset rgba(255, 255, 255, 0.1),
            0 4px 12px rgba(66, 153, 225, 0.28);
    }
    .sidebar-nav a.is-active:hover {
        background: var(--blue2) !important;
        color: #fff !important;
    }

    /* Icon refresh — slightly larger touch-target, no boxed border */
    .sidebar-nav a .nav-icon {
        width: 24px !important;
        height: 24px !important;
        background: transparent !important;
        border: none !important;
        font-size: 15px !important;
        flex-shrink: 0;
        opacity: 0.92;
        transition: opacity 0.15s ease;
    }
    .sidebar-nav a:hover .nav-icon,
    .sidebar-nav a.is-active .nav-icon {
        opacity: 1;
    }

    /* ── About / Contact text — softer ──────── */
    .sidebar-about {
        font-size: 12.5px !important;
        line-height: 1.7 !important;
        color: var(--muted) !important;
        opacity: 0.85;
    }
    .sidebar-contact a {
        padding: 6px 4px !important;
        font-size: 12.5px !important;
        gap: 8px !important;
        border-radius: 6px;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .sidebar-contact a:hover {
        background: var(--blue-dim);
        color: var(--blue);
        padding-left: 8px !important;
    }
    [dir="ltr"] .sidebar-contact a:hover {
        padding-left: 4px !important;
        padding-right: 8px !important;
    }

    /* ── Bottom area — compact ──────── */
    .sidebar-bottom {
        padding: 12px 14px !important;
        border-top: 1px solid var(--border) !important;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.06));
    }
    .cta-sidebar {
        font-size: 13.5px !important;
        padding: 10px !important;
        border-radius: 9px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 1px 0 inset rgba(255, 255, 255, 0.08);
        transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }
    .cta-sidebar:hover {
        transform: translateY(-1px);
        box-shadow:
            0 1px 0 inset rgba(255, 255, 255, 0.1),
            0 6px 16px rgba(66, 153, 225, 0.32);
    }
    .dash-sidebar-btn {
        font-size: 11px !important;
        padding: 8px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }
    .theme-toggle-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        border-radius: 7px !important;
    }

    /* ════════
       RAIL MODE — sidebar narrows to icon column (60px)
       Main content reflows to fill freed space (244 - 60 = 184 px gained)
       ════════ */

    body.sidebar-rail .sidebar {
        width: 60px !important;
        overflow-x: hidden;
    }
    body.sidebar-rail .main {
        margin-right: 60px !important;
    }
    [dir="ltr"] body.sidebar-rail .main {
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    /* Logo: center the logo svg, hide brand text */
    body.sidebar-rail .sidebar-logo {
        padding: 18px 0 14px !important;
        text-align: center;
        justify-content: center !important;
    }
    body.sidebar-rail .sidebar-logo .logo-wrap {
        justify-content: center !important;
        gap: 0 !important;
        flex-direction: column;
    }
    body.sidebar-rail .logo-text-wrap {
        opacity: 0;
        max-width: 0;
        margin: 0 !important;
        overflow: hidden;
    }
    body.sidebar-rail .logo-svg {
        width: 34px !important;
        height: 34px !important;
    }

    /* Hide status pill, section titles, about/contact sections */
    body.sidebar-rail .sidebar-status,
    body.sidebar-rail .sidebar-section-title,
    body.sidebar-rail .sidebar-about {
        display: none !important;
    }

    /* Hide the language and about/contact sections entirely in rail mode */
    body.sidebar-rail .sidebar-section:has(.sidebar-about),
    body.sidebar-rail .sidebar-section:has(.sidebar-contact),
    body.sidebar-rail .sidebar-section[data-sty*="padding:14px 20px"] {
        display: none !important;
    }

    /* Nav items: center icons, hide labels */
    body.sidebar-rail .sidebar-section:has(.sidebar-nav) {
        padding: 14px 6px !important;
    }
    body.sidebar-rail .sidebar-nav a {
        justify-content: center !important;
        padding: 11px 0 !important;
        gap: 0 !important;
        position: relative;
    }
    body.sidebar-rail .sidebar-nav a > span:not(.nav-icon) {
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        position: absolute;
        pointer-events: none;
    }
    body.sidebar-rail .sidebar-nav a .nav-icon {
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        font-size: 16px !important;
    }
    /* Hover tooltip on rail-mode nav items */
    body.sidebar-rail .sidebar-nav a::after {
        content: attr(data-tooltip);
        position: absolute;
        top: 50%;
        transform: translateY(-50%) translateX(0);
        background: var(--surface2, #1a2433);
        color: var(--text, #e8edf3);
        border: 1px solid var(--border);
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        z-index: 60;
    }
    /* RTL (sidebar on right): tooltip slides out to the LEFT */
    body.sidebar-rail .sidebar-nav a::after {
        right: 100%;
        margin-right: 12px;
    }
    body.sidebar-rail .sidebar-nav a:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(-3px);
    }
    /* LTR (sidebar on left): tooltip slides out to the RIGHT */
    [dir="ltr"] body.sidebar-rail .sidebar-nav a::after {
        right: auto;
        left: 100%;
        margin-right: 0;
        margin-left: 12px;
    }
    [dir="ltr"] body.sidebar-rail .sidebar-nav a:hover::after {
        transform: translateY(-50%) translateX(3px);
    }

    /* Bottom: keep only the theme toggle button visible */
    body.sidebar-rail .sidebar-bottom {
        padding: 10px 0 !important;
        text-align: center;
    }
    body.sidebar-rail .sidebar-bottom .cta-sidebar,
    body.sidebar-rail .sidebar-bottom .dash-sidebar-btn,
    body.sidebar-rail .sidebar-bottom .theme-label {
        display: none !important;
    }
    body.sidebar-rail .sidebar-bottom .theme-row {
        justify-content: center !important;
    }

    /* ════════
       Toggle button — refined positioning
       ════════ */

    .sidebar-toggle.sidebar-toggle-v2 {
        position: fixed;
        top: 50%;
        right: 244px;
        transform: translate(50%, -50%);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 51;
        box-shadow:
            0 1px 0 inset rgba(255, 255, 255, 0.06),
            0 3px 12px rgba(0, 0, 0, 0.22);
        transition:
            right 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            background 0.18s ease,
            border-color 0.18s ease,
            color 0.18s ease,
            box-shadow 0.18s ease;
    }
    [dir="ltr"] .sidebar-toggle.sidebar-toggle-v2 {
        right: auto;
        left: 244px;
        transform: translate(-50%, -50%);
    }
    .sidebar-toggle.sidebar-toggle-v2:hover {
        background: var(--blue-fill);
        color: #fff;
        border-color: var(--blue);
        box-shadow:
            0 1px 0 inset rgba(255, 255, 255, 0.12),
            0 6px 18px rgba(66, 153, 225, 0.4);
    }
    .sidebar-toggle.sidebar-toggle-v2:active {
        transform: translate(50%, -50%) scale(0.92);
    }
    [dir="ltr"] .sidebar-toggle.sidebar-toggle-v2:active {
        transform: translate(-50%, -50%) scale(0.92);
    }
    .sidebar-toggle.sidebar-toggle-v2:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px;
    }
    .sidebar-toggle.sidebar-toggle-v2 svg {
        width: 13px;
        height: 13px;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* RTL: chevron points right (▶) when expanded */
    [dir="rtl"] .sidebar-toggle.sidebar-toggle-v2 svg {
        transform: rotate(180deg);
    }

    /* Rail mode: toggle button moves with sidebar edge */
    body.sidebar-rail .sidebar-toggle.sidebar-toggle-v2 {
        right: 60px;
    }
    [dir="ltr"] body.sidebar-rail .sidebar-toggle.sidebar-toggle-v2 {
        right: auto;
        left: 60px;
    }
    /* Chevron flips when railed */
    body.sidebar-rail .sidebar-toggle.sidebar-toggle-v2 svg {
        transform: rotate(180deg);
    }
    [dir="rtl"] body.sidebar-rail .sidebar-toggle.sidebar-toggle-v2 svg {
        transform: rotate(0deg);
    }

    /* When sidebar is fully expanded, give content max-width for line comfort */
    .main .section, .main .me-inner {
        transition: max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.sidebar-rail .section,
    body.sidebar-rail .me-inner {
        max-width: 1100px !important;
    }
}
