@import url('https://cdn.jsdelivr.net/npm/dirham/dist/css/dirham.css');

/* AceQuest B2B – Clean, premium, lightweight (brand colors only) */
:root{
  --primary:#db324d;   /* CTA */
  --accent:#22aed1;    /* Secondary */

  --bg:#ffffff;
  --bg2:#f7fbfd;
  --surface:#ffffff;
  --surface2:#f3f7fb;

  --text:#333333; 
  --muted:#4b5563;     /* soft dark gray */
  --line:rgba(34,174,209,0.18);
  --line2:rgba(219,50,77,0.16);

  --radius:18px;
  --radius2:14px;

  /* Never use dark shadows */
  --shadow-sm: 0 10px 24px rgba(34,174,209,0.10);
  --shadow-md: 0 18px 42px rgba(34,174,209,0.14);
  --shadow-ac: 0 18px 42px rgba(219,50,77,0.12);

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 14% 8%, rgba(34,174,209,0.10), transparent 60%),
    radial-gradient(900px 520px at 86% 14%, rgba(219,50,77,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }

.container{ width:min(1120px, 92vw); margin:0 auto; }

/* Header */
header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 10px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:84px; height:84px; object-fit:contain; } /* requested */

.nav ul{ list-style:none; display:flex; gap:16px; margin:0; padding:0; flex-wrap:wrap; justify-content:flex-end; }
.nav a{ font-size:14px; color: var(--muted); padding:8px 8px; border-radius: 10px; transition: background .2s ease, color .2s ease; }
.nav a:hover{ color: var(--text); background: rgba(34,174,209,0.10); }

.cta{ display:flex; gap:10px; align-items:center; }

/* Buttons */
.btn{
  --btn-bg: rgba(34,174,209,0.08);
  --btn-line: rgba(34,174,209,0.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select:none;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  box-shadow: var(--shadow-sm);
  position:relative;
  overflow:hidden;
}
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); background: rgba(34,174,209,0.12); border-color: rgba(34,174,209,0.36); }
.btn:active{ transform: translateY(-1px) scale(0.99); }
.btn:focus-visible{ outline: 3px solid rgba(34,174,209,0.28); outline-offset: 2px; }

.btn.primary{
  --btn-bg: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  --btn-line: rgba(219,50,77,0.22);
  color:#ffffff;
  box-shadow: var(--shadow-ac);
}
.btn.primary:hover{ background: linear-gradient(90deg, rgba(219,50,77,1), rgba(34,174,209,1)); }

.btn.ghost{
  background: rgba(255,255,255,0.75);
  border-color: rgba(34,174,209,0.22);
  box-shadow: none;
}

/* Subtle ripple */
.btn::after{
  content:"";
  position:absolute;
  inset:auto;
  width: 10px; height: 10px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(34,174,209,0.35), transparent 70%);
  opacity:0;
  transform: scale(0.5);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.btn:active::after{ opacity: 1; transform: scale(12); }

/* Typography */
h1,h2,h3,h4,button,input,select,textarea{ font-family: inherit; }

.h1{
  font-size: clamp(34px, 2.4vw, 56px);
  line-height: 1.3; /* requested */
  margin: 12px 0 12px;
  letter-spacing: -0.02em;
}

.section-title{
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-sub{
  margin: 0 0 22px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 82ch;
}

.badge{
  display:inline-flex; align-items:center; gap:10px;
  background: rgba(34,174,209,0.10);
  border:1px solid rgba(34,174,209,0.22);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
section{ padding: 70px 0; border-top: 1px solid var(--line); }

/* Panels / Cards */
.panel{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(34,174,209,0.20);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 15px;           /* requested */
  font-size: small;        /* requested */
}

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,174,209,0.18);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(34,174,209,0.28); }
.card h4{ margin:0 0 8px; font-size: 16px; }
.card p{ margin:0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px){ .grid3{ grid-template-columns: 1fr; } }

/* Hero */
.hero{ position:relative; padding: 54px 0 22px; overflow:hidden; border-top: none; }
.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 520px at 10% 20%, rgba(34,174,209,0.14), transparent 60%),
    radial-gradient(900px 520px at 90% 25%, rgba(219,50,77,0.12), transparent 60%);
  pointer-events:none;
}
.hero .inner{ position:relative; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items:start; }
@media (max-width: 980px){ .hero-grid{ grid-template-columns: 1fr; } }

.lead{
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 0 10px;
}

.lead.lead-2{
  margin: 0 0 18px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px; }

/* Packages */
.packages{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px){ .packages{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 700px){ .packages{ grid-template-columns: 1fr;} }

.package{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,174,209,0.18);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  position:relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.package:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(34,174,209,0.30); }
.package .tag{ display:inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--text);
  background: rgba(219,50,77,0.10); border:1px solid rgba(219,50,77,0.22);
}
.package h3{ margin: 10px 0 8px; font-size: 19px; 
  white-space: nowrap;
}

.package ul{ margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); line-height: 1.6; 
  font-size: 13px;
}

.package li{ margin: 8px 0; }

/* Demo */
.demo-wrap{ display:grid; grid-template-columns: 1.3fr 0.7fr; gap: 14px; align-items:start; }
@media (max-width: 980px){ .demo-wrap{ grid-template-columns: 1fr; } }
.canvas-shell{ padding: 14px; }
#unity-canvas{ width:100%; height: 520px; border-radius: var(--radius); background: rgba(34,174,209,0.06); outline: 1px solid rgba(34,174,209,0.18); }
@media (max-width: 700px){ #unity-canvas{ height: 360px; } }

/* Quote modal */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  padding: 12px;
  background: rgba(34,174,209,0.10);
  backdrop-filter: blur(12px);
  z-index: 1000;
}
.modal.open{ display:flex; animation: modalFade .18s ease; }
@keyframes modalFade{ from{opacity:0;} to{opacity:1;} }

.modal-card{
  width: min(1700px, 95vw);
  max-height: 95vh;
  overflow:hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(34,174,209,0.22);
  box-shadow: var(--shadow-md);
  position:relative;
}

.modal-close{
  position:absolute;
  top: 12px;
  right: 12px; /* requested: on edge */
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(255,255,255,0.86);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.modal-close:hover{ transform: translateY(-1px); background: rgba(34,174,209,0.10); }

.modal-body{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; }
@media (max-width: 980px){ .modal-body{ grid-template-columns: 1fr; } }

.modal-left{
  padding: 22px 22px 18px;
  overflow:auto;
  max-height: 95vh;
}
.modal-right{
  border-left: 1px solid rgba(34,174,209,0.18);
  background: linear-gradient(180deg, rgba(34,174,209,0.06), rgba(219,50,77,0.04));
  padding: 22px;
  overflow:auto;
  max-height: 95vh;
}

.quote-total{
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
}
.quote-total span{ color: var(--primary); }

.progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(34,174,209,0.10);
  border: 1px solid rgba(34,174,209,0.18);
  overflow:hidden;
}
.progress > div{
  height:100%;
  width: 18%;
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  border-radius: 999px;
  transition: width .25s ease;
}

.group{
  margin-top: 18px;
  padding: 10px 10px 20px 10px; /* consolidated padding */
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}
.group h4{ margin: 0 0 10px; font-size: 16px; }

.input, select{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  box-shadow: none;
}
.input:focus, select:focus{ outline: 3px solid rgba(34,174,209,0.18); border-color: rgba(34,174,209,0.34); }

.pills{ display:flex; flex-wrap:wrap; gap: 8px; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(34,174,209,0.06);
  cursor:pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}
.pill:hover{ transform: translateY(-1px); background: rgba(34,174,209,0.10); border-color: rgba(34,174,209,0.34); }
.pill input{ accent-color: var(--primary); }

.list{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px){ .list{ grid-template-columns: 1fr; } }

.item{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.18);
  background: rgba(255,255,255,0.90);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}
.item:hover{ transform: translateY(-1px); background: rgba(34,174,209,0.06); border-color: rgba(34,174,209,0.30); }
.item .meta{ color: var(--muted); font-size: 12px; }

.summary{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 15px;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}
.summary b{ color: var(--text); }

.currency-symbol,
.dirham-symbol,
.riyal-symbol{
  color: inherit !important;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: middle;
  font-feature-settings: "ss01";
  margin: 0 3px 0 0 !important;
  padding: 0 !important;
  display: inline-block;
  font-family: inherit !important;
}

.currency-symbol.aed,
.dirham-symbol{ font-family: 'Dirham', system-ui !important; }
.currency-symbol.sar,
.riyal-symbol{ font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", system-ui !important; }

.quote-builder,
.quote-builder *,
.build-quote-portlet,
.build-quote-portlet *{
  font-family: inherit !important;
}

#quoteModal .currency-row select,
#roiCalc .roi-currency-row select,
#quoteModal .pkg3d-meta,
#quoteModal .item .meta,
#quoteModal .billing-price,
#roiCalc{
  font-family: var(--font), 'Dirham', "Noto Sans Symbols 2", "Segoe UI Symbol", system-ui, sans-serif !important;
}

.quote-builder .quote-total,
.quote-builder .final-quote,
.quote-summary{
  font-family: inherit !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
}

.quote-builder .currency-symbol,
.quote-summary .currency-symbol{
  font-family: inherit !important;
}

.quote-builder .currency-symbol{
  vertical-align: middle !important;
}

.quote-builder .currency-symbol.aed,
.quote-builder .currency-select .currency-symbol.aed,
.quote-builder .quote-total .currency-symbol.aed,
.quote-builder .final-quote .currency-symbol.aed,
.quote-summary .currency-symbol.aed{
  font-family: 'Dirham', system-ui !important;
  display: inline-block !important;
}

.quote-builder .currency-symbol.sar,
.quote-builder .currency-select .currency-symbol.sar,
.quote-builder .quote-total .currency-symbol.sar,
.quote-builder .final-quote .currency-symbol.sar,
.quote-summary .currency-symbol.sar{
  font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", system-ui !important;
  display: inline-block !important;
}

.quote-builder .description,
.quote-builder .subtitle,
.quote-builder p:first-of-type,
.quote-builder .portlet-header p,
.quote-builder .portlet-header .small{
  font-family: inherit !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
}

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

/* Reveal animations (failsafe: prevents blank page if JS fails) */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  /* If JS doesn't run (or errors), reveal content after a short delay */
  animation: revealFallback 0s 1.1s forwards;
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFallback{
  to{ opacity:1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
}

  .reveal{ opacity:1; transform:none; }
}

/* Footer */
footer{ padding: 44px 0; border-top: 1px solid var(--line); color: var(--muted); }
.small{ font-size: 13px; color: var(--muted); }


/* ---------- Patch: Packages layout (no horizontal scroll) ---------- */
.packages{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.package{
  display:flex;
  flex-direction:column;
}
.package .actions{
  margin-top:auto;
}

/* ---------- Patch: Quote builder package pills (uniform width) ---------- */
.pill-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 900px){
  .pill-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pill-card{
  min-height: 58px;
  align-items: center;
}
.pill-card .pill-main{
  display:flex;
  flex-direction:column;
  gap: 2px;
  line-height: 1.15;
}
.pill-card .meta{
  display:block;
  margin:0;
  opacity:.85;
}

/* ---------- Patch: Custom game fields sizing ---------- */
.custom-fields{
  display:grid;
  grid-template-columns: 2.4fr 1fr auto;
  gap: 10px;
  align-items:end;
}
.custom-btn{
  display:flex;
}
@media (max-width: 700px){
  .custom-fields{
    grid-template-columns: 1fr;
  }
  .custom-btn button{
    width:100%;
  }
}

/* ---------- Patch: Billing plan cards (sidebar) ---------- */
.billing-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.billing-card{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.18);
  background: rgba(0,0,0,0.10);
  cursor:pointer;
}
.billing-card input{
  margin-top: 3px;
}
.billing-card.is-selected{
  border-color: rgba(34,174,209,0.55);
  box-shadow: 0 0 0 3px rgba(34,174,209,0.10) inset;
}
.billing-title{
  font-weight: 800;
}
.billing-price{
  margin-top: 4px;
  font-weight: 900;
}
.billing-meta{
  margin-top: 4px;
  font-size: 12px;
  opacity: .85;
}
.pill-badge{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-inline-start: 6px;
  background: rgba(34,174,209,0.16);
  border: 1px solid rgba(34,174,209,0.25);
}

/* ---------- Patch: Contact form in sidebar ---------- */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px){
  .form-grid{ grid-template-columns: 1fr; }
}
.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 10px;
  cursor:pointer;
}
.check input{ margin-top: 3px; }

/* ---------- Patch: Demo controls + loader overlay ---------- */
.demo-controls{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.demo-stage{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
}
.demo-loader{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}
.demo-loader-card{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(2,6,23,0.85);
  border: 1px solid rgba(34,174,209,0.25);
  max-width: 520px;
  width: calc(100% - 24px);
}
.demo-loader-title{
  font-weight: 900;
  margin-bottom: 2px;
}
.spinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.95);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.demo-loader[aria-hidden="true"]{ display:none; }


/* --- Hero: mini list inside the "Why publishers" card --- */
.mini-list{margin:12px 0 0; padding:0; list-style:none; display:grid; gap:10px; color:var(--muted); line-height:1.6;}
.mini-list li{display:flex; gap:10px; align-items:flex-start;}
.mini-list .li-emoji{width:22px; flex:0 0 22px; display:inline-flex; justify-content:center; margin-top:1px;}
.mini-list li b{color:var(--text); font-weight:800;}

/* ==========================================
   FAQ accordion (click to expand/collapse)
   ========================================== */
#faq .card.faq-card { padding: 0 !important; overflow: hidden; }
#faq details.faq { padding: 18px 18px 14px; }
#faq summary.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}
#faq summary.faq-q::-webkit-details-marker { display: none; }
#faq .faq-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
  font-weight: 900;
  transform: translateY(2px);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
#faq details[open] .faq-icon { transform: translateY(2px) rotate(45deg); }
#faq .faq-a { margin-top: 10px; }
#faq .faq-a p { margin: 0; opacity: .92; line-height: 1.55; }
#faq details.faq:focus-within { outline: 2px solid rgba(97,85,255,.20); outline-offset: 2px; border-radius: 16px; }

@media (max-width: 640px){
  #faq summary.faq-q { font-size: 15px; }
}

/* =========================
   Gallery (between Demo & FAQ)
   ========================= */
#gallery .gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 720px){
  #gallery .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px){
  #gallery .gallery-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#gallery .g-card{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border: 1px solid rgba(35, 125, 180, .18);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .18s ease;
}
[dir="rtl"] #gallery .g-card{ text-align: right; }

#gallery .g-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
#gallery .g-thumb{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #f3f6fb;
}
#gallery .g-meta{
  padding: 12px 14px 14px;
}
#gallery .g-title{
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
  color: #1d2a3a;
}
#gallery .g-desc{
  opacity: .86;
}

/* Lightbox */
.lb-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 18, 28, .72);
  z-index: 9999;
}
.lb-overlay.is-open{ display: flex; }

.lb-panel{
  position: relative;
  width: 95vw;
  max-height: 95vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.lb-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  cursor: pointer;
}
[dir="rtl"] .lb-close{ right: auto; left: 12px; }

.lb-img{
  width: 100%;
  max-height: calc(95vh - 220px);
  object-fit: contain;
  display: block;
  background: #0b1220;
}
.lb-caption{
  padding: 12px 16px 16px;
}
.lb-title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.lb-desc{ opacity:.88; line-height:1.55; margin-bottom:0; }

.lb-head{ padding:14px 16px 0; }

.lb-panel{ display:flex; flex-direction:column; overflow:hidden; }

.lb-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  background: linear-gradient(180deg, #0b1220 0%, #0a1526 100%);
}

.lb-img{
  width:100%;
  max-height:70vh;
  object-fit:contain;
  border-radius:14px;
}

.lb-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:900;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.lb-nav:hover{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.26); transform:translateY(-50%) scale(1.03); }
.lb-prev{ left:12px; }
.lb-next{ right:12px; }

[dir="rtl"] .lb-prev{ left:auto; right:12px; }
[dir="rtl"] .lb-next{ right:auto; left:12px; }

.lb-foot{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.lb-slidecap{ opacity:.88; margin-bottom:10px; }

.lb-thumbs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling: touch;
}
.lb-thumb{
  flex:0 0 auto;
  width:96px;
  height:60px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#f1f3f7;
  padding:0;
  cursor:pointer;
  opacity:.92;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .12s ease;
}
.lb-thumb img{ width:100%; height:100%; object-fit:contain; display:block; }
.lb-thumb:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.10); opacity:1; }
.lb-thumb.is-active{ border-color: rgba(97,85,255,.55); box-shadow:0 0 0 3px rgba(97,85,255,.18); opacity:1; }

@media (max-width: 640px){
  .lb-panel{ width: min(1100px, 98vw); max-height: 94vh; }
  .lb-nav{ width:48px; height:48px; border-radius:16px; }
  .lb-thumb{ width:88px; height:56px; }
  .lb-head{ padding:12px 14px 0; }
  .lb-foot{ padding:10px 14px 14px; }
}


/* ===========================
   Contact & Inquiries (v1)
   =========================== */
.contact-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items:start;
  margin-top: 14px;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-card{ padding: 14px; }
.contact-form{ display:grid; gap: 12px; }

.label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-row{ display:block; }
.form-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px){
  .form-grid2{ grid-template-columns: 1fr; }
}

.extra{ margin-top: 2px; }

.form-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn.mini{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: none;
}

.captcha{
  border: 1px solid rgba(34,174,209,0.20);
  background: rgba(34,174,209,0.06);
  border-radius: 16px;
  padding: 12px;
}
.captcha-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.captcha-title{
  font-weight: 900;
  font-size: 13px;
}
.captcha-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.captcha-row{
  display:flex;
  gap: 10px;
  align-items:center;
}
.captcha-q{
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(34,174,209,0.30);
  background: rgba(255,255,255,0.92);
  font-weight: 900;
  color: var(--text);
  text-align:center;
}

/* QC/QA: Anti-spam inputs (two fields + live validation) */
.captcha-q{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 900;
}
.captcha-n{
  width: 56px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(255,255,255,0.98);
  text-align:center;
  font-weight: 950;
  color: var(--text);
}
.captcha-op{
  font-weight: 950;
  opacity: 0.85;
}
.input.captcha-a.is-invalid{
  border-color: rgba(219,50,77,0.85);
  box-shadow: 0 0 0 3px rgba(219,50,77,0.12);
}
.input.captcha-a.is-valid{
  border-color: rgba(105,163,118,0.95);
  box-shadow: 0 0 0 3px rgba(105,163,118,0.14);
}

/* Footer links */
.footer-links a{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-links a:hover{
  color: var(--text);
}

.form-msg{
  display:none;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.form-msg.ok{ display:block; }
.form-msg.bad{ display:block; color: rgba(219,50,77,0.95); }

.contact-aside{ padding: 14px; }
.aside-title{
  font-size: 16px;
  font-weight: 950;
  margin: 0 0 6px 0;
}
.aside-sub{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.aside-list{
  display:grid;
  gap: 8px;
  margin-bottom: 12px;
}
.aside-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.18);
  background: rgba(255,255,255,0.92);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}
.aside-link:hover{
  transform: translateY(-1px);
  background: rgba(34,174,209,0.06);
  border-color: rgba(34,174,209,0.30);
}
.aside-block{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.14);
  background: rgba(255,255,255,0.88);
  margin-bottom: 10px;
}
.aside-k{ font-size: 12px; font-weight: 900; color: var(--muted); margin-bottom: 4px; }
.aside-v{ font-size: 13px; color: var(--text); line-height: 1.55; }
.aside-note{ font-size: 12px; color: var(--muted); padding-top: 4px; }

/* ===========================================
   Hero tabs: true top tabs (not button pills)
   =========================================== */
.hero-why-card{padding:0;overflow:hidden}
.hero-why-card h4{
  margin:0;
  padding:14px 16px 0;
  font-size:14px;
  font-weight:900;
  letter-spacing:-0.01em;
}
.hero-why-card .why-intro{
  margin:0;
  padding:8px 16px 0;
  font-size:13px;
  color:var(--muted);
}
.hero-why-card .why-tabs{position:relative;margin-top:10px;padding:0 14px 16px}
.hero-why-card .why-radio{position:absolute;opacity:0;pointer-events:none}

/* Tab strip */
.hero-why-card .why-tabbar{
  display:flex;
  gap:8px;
  align-items:flex-end;
  padding:0 2px;
}

/* Tabs (labels) */
.hero-why-card .why-tab{
  flex:1;
  text-align:center;
  padding:12px 10px 10px;
  font-weight:900;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  user-select:none;
  border:1px solid rgba(25,55,90,.18);
  border-bottom:0;
  border-radius:14px 14px 0 0;
  background:linear-gradient(180deg,#ffffff,#eef3fb);
  color:#2a394a;
  box-shadow:0 10px 18px rgba(17,40,62,.08);
}
.hero-why-card .why-tab:hover{background:linear-gradient(180deg,#ffffff,#e7efff)}

/* Content panel shell (connected to active tab) */
.hero-why-card .why-panels{
  margin-top:-1px;
  border:1px solid rgba(25,55,90,.18);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,251,255,.92));
  box-shadow:0 14px 26px rgba(17,40,62,.10);
  padding:14px 14px 12px;
}
.hero-why-card .why-panel{display:none;font-size:13px}
.hero-why-card .why-panel p{margin:0;color:var(--muted)}
.hero-why-card .why-panel b{color:var(--ink)}
.hero-why-card .mini-list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}
.hero-why-card .mini-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
}
.hero-why-card .mini-list li::before{
  content:"•";
  color:var(--brand2);
  font-weight:900;
  line-height:1.1;
  margin-top:2px;
}

/* Show panel */
#whyTabPub:checked ~ .why-panels .panel-pub{display:block}
#whyTabEnt:checked ~ .why-panels .panel-ent{display:block}
#whyTabInd:checked ~ .why-panels .panel-ind{display:block}

/* Active tab */
#whyTabPub:checked ~ .why-tabbar label[for="whyTabPub"],
#whyTabEnt:checked ~ .why-tabbar label[for="whyTabEnt"],
#whyTabInd:checked ~ .why-tabbar label[for="whyTabInd"]{
  position:relative;
  top:1px; /* sit above the panel border */
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  color:#fff;
  border-color: rgba(219,50,77,0.38);
  text-shadow:0 1px 0 rgba(0,0,0,.25);
  box-shadow: var(--shadow-ac), 0 10px 18px rgba(17,40,62,.10);
  z-index:2;
}

/* Compact spacing for smaller screens */
@media (max-width: 760px){
  .hero-why-card h4{padding:12px 14px 0;font-size:13px}
  .hero-why-card .why-intro{padding:7px 14px 0;font-size:12.5px}
  .hero-why-card .why-tabs{padding:0 12px 14px}
  .hero-why-card .why-tab{padding:10px 8px 9px;font-size:12.5px}
  .hero-why-card .why-panel{font-size:12.5px}
}
@media (max-width: 520px){
  .hero-why-card .why-tabbar{gap:6px}
  .hero-why-card .why-tab{padding:10px 7px 9px;font-size:12px}
}


/* =======================================================================
   HERO AUDIENCE TABS — QA COMPACT CONNECTED TABS (no extra header/portlet)
   ======================================================================= */
.hero-why-card{
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* The tabs component itself becomes the “box” */
.hero-why-card .why-tabs{
  margin-top: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(148,210,234,.65);
  background: rgba(255,255,255,.78);
  overflow: hidden;
}

/* Real tab bar (top) */
.hero-why-card .why-tabbar{
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(240,250,255,1), rgba(245,250,255,.55));
  border-bottom: 1px solid rgba(148,210,234,.65);
}

/* Tabs should look like tabs (connected, not “buttons”) */
.hero-why-card .why-tab{
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid rgba(148,210,234,.65);
  border-radius: 0;
  box-shadow: none;
  font-weight: 800;
}

.hero-why-card .why-tab:last-child{ border-right: 0; }
.hero-why-card .why-tab:first-child{ border-top-left-radius: 16px; }
.hero-why-card .why-tab:last-child{ border-top-right-radius: 16px; }

/* RTL touch-ups (layout + bullets) */
html[dir="rtl"] .hero-why-card .why-panel{ text-align:right; }
html[dir="rtl"] .hero-why-card .why-panel h4,
html[dir="rtl"] .hero-why-card .why-panel b{ text-align:right; }
html[dir="rtl"] .hero-why-card .mini-list li{ flex-direction:row-reverse; justify-content:flex-end; text-align:right; }
html[dir="rtl"] .hero-why-card .mini-list li::before{ margin-top:4px; }
html[dir="rtl"] .hero-why-card .hero-actions{ direction:ltr; justify-content:flex-start; }
/* Active tab should visually “merge” with the panel */
#whyTabPub:checked ~ .why-tabbar label[for="whyTabPub"],
#whyTabEnt:checked ~ .why-tabbar label[for="whyTabEnt"],
#whyTabInd:checked ~ .why-tabbar label[for="whyTabInd"]{
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.28), 0 14px 28px rgba(34,174,209,.16);
}

/* Panel: square top corners so tabs connect cleanly */
.hero-why-card .why-panels{
  border: 0;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 14px 16px 14px;
  background: rgba(255,255,255,.85);
}

.hero-why-card .why-sub{
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(20,31,49,.72);
}

.hero-why-card .mini-list{ margin-top: 10px; }
.hero-why-card .mini-list li{ margin-top: 7px; }


/* =========================================================
   HERO AUDIENCE TABS — RTL (Arabic)
   Keep the same visual style as EN, but with RTL text alignment.
   ========================================================= */
.hero-why-card[dir="rtl"] .why-panels{ direction: rtl; text-align:right; }
.hero-why-card[dir="rtl"] .why-panel{ text-align:right; }
.hero-why-card[dir="rtl"] .mini-list li{ flex-direction: row-reverse; justify-content:flex-end; text-align:right; }
.hero-why-card[dir="rtl"] .mini-list li::before{ margin-top:4px; }
.hero-why-card[dir="rtl"] .hero-actions{ direction:ltr; justify-content:flex-start; }





/* =========================================================
   HERO PROOF TABS — Success stories (reuses the hero tab style)
   Replaces the old “See key benefits” button with a second
   tab strip + compact case cards + reference links.
   ========================================================= */
.hero-why-card .proof-tabs{ margin-top: 12px; }

/* Show panels */
#proofTab1:checked ~ .why-panels .panel-proof1{ display:block; }
#proofTab2:checked ~ .why-panels .panel-proof2{ display:block; }
#proofTab3:checked ~ .why-panels .panel-proof3{ display:block; }

/* Active tab (same brand gradient as the main hero tabs) */
#proofTab1:checked ~ .why-tabbar label[for="proofTab1"],
#proofTab2:checked ~ .why-tabbar label[for="proofTab2"],
#proofTab3:checked ~ .why-tabbar label[for="proofTab3"]{
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.28), 0 14px 28px rgba(34,174,209,.16);
}

/* Compact case cards inside the proof panels */
.hero-why-card .case-grid{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.hero-why-card .case-item{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,210,234,.65);
  background: rgba(240,250,255,.55);
}
.hero-why-card .case-title{
  font-weight: 950;
  font-size: 13px;
  color: var(--ink);
}
.hero-why-card .case-text{
  margin-top: 4px;
  color: rgba(20,31,49,.72);
  font-size: 12.5px;
  line-height: 1.5;
}
.hero-why-card .case-metric{
  margin-top: 7px;
  font-weight: 950;
  font-size: 12px;
  color: rgba(18,18,18,.82);
}
.hero-why-card .case-meta{
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(20,31,49,.56);
}

/* “Built to convert…” panel under the proof tabs */
.hero-why-card .convert-panel{ margin-top: 12px; }
.hero-why-card .convert-panel .convert-sub{
  margin: 6px 0 10px;
  color: rgba(20,31,49,.72);
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-why-card .ref-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-why-card .ref-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(34,174,209,0.06);
  color: rgba(18,18,18,0.78);
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
}
.hero-why-card .ref-links a:hover{
  transform: translateY(-1px);
  background: rgba(34,174,209,0.10);
  border-color: rgba(34,174,209,0.34);
}

/* Keep reference pills readable in RTL (keep pill order LTR) */
html[dir="rtl"] .hero-why-card .ref-links{
  direction: ltr;
  justify-content: flex-start;
}

/* =========================================================
   QC/QA R3 — Quote Portlet Only
   - 90% width modal
   - Currency switch + crypto discount badge
   - 3D pressable package buttons
   - 100+ games lists usability (scroll per category)
   - Better custom game row sizing
   - Cleaner portlet typography + smaller notes text
   ========================================================= */

/* Currency switch row (sidebar, under total) */
#quoteModal .currency-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 8px 0 12px;
}
#quoteModal .currency-row .currency-label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}
#quoteModal .currency-row .currency-controls{
  display:flex;
  align-items:center;
  gap: 8px;
}
#quoteModal .currency-row select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 34px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.22);
  background: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  line-height: 1.1;
}
#quoteModal .currency-row .select-wrap{
  position:relative;
}
#quoteModal .currency-row .select-wrap:after{
  content:"▾";
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(18,18,18,0.65);
  pointer-events:none;
  font-size: 12px;
}
html[dir="rtl"] #quoteModal .currency-row .select-wrap:after{ right:auto; left:12px; }
html[dir="rtl"] #quoteModal .currency-row select{ padding: 10px 14px 10px 34px; }
#quoteModal select:not(#currencySelect){
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%23132238' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}
html[dir="rtl"] #quoteModal select:not(#currencySelect){
  padding-right: 12px;
  padding-left: 34px;
  background-position: left 12px center;
}
html.dark #quoteModal select:not(#currencySelect){
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%23ecf3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#quoteModal .pill-badge.crypto{
  background: rgba(219,50,77,0.12);
  border: 1px solid rgba(219,50,77,0.22);
  color: rgba(219,50,77,0.95);
  font-weight: 900;
}

/* 3D pressable package buttons (left column, portlet only) */
#quoteModal .pkg3d-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 980px){
  #quoteModal .pkg3d-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#quoteModal .pkg3d{
  position:relative;
  display:block;
  cursor:pointer;
  user-select:none;
}
#quoteModal .pkg3d input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
#quoteModal .pkg3d .pkg3d-face{
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(34,174,209,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(34,174,209,0.06));
  box-shadow: 0 10px 0 rgba(0,0,0,0.10), 0 18px 32px rgba(0,0,0,0.08);
  padding: 12px 12px 10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 4px;
  transform: translateY(-1px);
  transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease, background .2s ease;
}
#quoteModal .pkg3d:hover .pkg3d-face{
  transform: translateY(-3px);
  box-shadow: 0 12px 0 rgba(0,0,0,0.10), 0 22px 34px rgba(0,0,0,0.10);
  border-color: rgba(34,174,209,0.38);
}
#quoteModal .pkg3d input:checked + .pkg3d-face{
  transform: translateY(4px); /* pressed */
  box-shadow: 0 4px 0 rgba(0,0,0,0.10), 0 10px 20px rgba(0,0,0,0.08);
  border-color: rgba(34,174,209,0.55);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(219,50,77,0.06));
}
#quoteModal .pkg3d .pkg3d-title{
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.1;
}
#quoteModal .pkg3d .pkg3d-meta{
  font-size: 11.5px;
  color: rgba(18,18,18,0.64);
  line-height: 1.15;
}

/* Better usability for 100+ games: scroll inside each category */
#quoteModal #quoteApp .list[data-cat]{
  max-height: 320px;
  overflow:auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.16);
  background: rgba(255,255,255,0.62);
}
#quoteModal #quoteApp .list[data-cat]::-webkit-scrollbar{ width: 10px; }
#quoteModal #quoteApp .list[data-cat]::-webkit-scrollbar-thumb{
  background: rgba(34,174,209,0.25);
  border-radius: 999px;
}

/* Notes field text smaller */
#quoteModal #quoteApp #notes{
  font-size: 13px;
  line-height: 1.35;
}
#quoteModal #quoteApp #notes::placeholder{
  font-size: 12px;
  opacity: .85;
}

/* Cleaner, consistent typography inside the portlet only */
#quoteModal #quoteApp h3{ font-size: 24px; letter-spacing: -.2px; }
#quoteModal #quoteApp h4{ font-size: 15px; letter-spacing: -.1px; margin: 0 0 10px; }
#quoteModal #quoteApp .small{ font-size: 12px; }
#quoteModal #quoteApp .item b{ font-size: 14px; }
#quoteModal #quoteApp .meta{ font-size: 12px; }
#quoteModal #quoteApp input.input,
#quoteModal #quoteApp select,
#quoteModal #quoteApp textarea.input{ font-size: 14px; }

/* ==========================================
   QC/QA R18: Anti-spam question dotted container
   Ensure the two numbers (+) are INSIDE a single dotted box
   (applies to both EN + AR without affecting anything else)
   ========================================== */
.captcha-q{
  display:inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  border: 2px dotted rgba(34,174,209,0.32);
  padding: 10px 14px;
}
.captcha-q .captcha-n{
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 34px;
  min-width: 34px;
}

/* ===============================
   QC Patch R21: Footer centered two-row layout (copyright row + policy links row)
   - Keeps typography harmony (uses existing .small) and keeps copyright slightly smaller
   - Centers BOTH rows for both LTR and RTL
   =============================== */
footer{ padding: 24px 0; }
footer .footer-row{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  text-align: center;
}
footer .footer-copy{
  flex: 0 0 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}
/* Keep the copyright in one full row on larger screens */
@media (min-width: 980px){
  footer .footer-copy{ white-space: nowrap; }
}
footer .footer-links{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  margin: 0;
  text-align: center;
}
footer .footer-sep{ opacity: .7; }
footer .footer-trust-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  text-align: center;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(34,174,209,0.14);
}
footer .footer-trust-copy{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-weight: 700;
}
footer .payment-icons{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  flex-wrap: wrap;
  color: inherit;
}
footer .payment-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  color: inherit;
  opacity: .98;
  filter: drop-shadow(0 2px 6px rgba(18,34,56,0.16));
}
footer .payment-icon svg{
  display:block;
  width: auto;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}
footer .payment-icon svg text{
  fill: currentColor;
  font: 800 7px/1 Inter, Arial, sans-serif;
  letter-spacing: .4px;
}
footer .payment-icon--lock{ color: rgba(34,174,209,0.98); }
footer .payment-icon--visa{ color: rgba(34,174,209,0.96); }
footer .payment-icon--mastercard{ color: rgba(219,50,77,0.92); }
footer .payment-icon--amex{ color: rgba(120,193,215,0.96); }
footer .payment-icon--paypal{ color: rgba(56,132,219,0.96); }
footer .payment-icon--crypto{ color: rgba(125,145,174,0.96); }
html.dark footer .payment-icon{
  filter: drop-shadow(0 2px 8px rgba(2,8,20,0.42));
}
html.dark footer .payment-icon--visa{ color: rgba(82,198,231,0.96); }
html.dark footer .payment-icon--mastercard{ color: rgba(255,106,131,0.94); }
html.dark footer .payment-icon--amex{ color: rgba(148,223,242,0.94); }
html.dark footer .payment-icon--paypal{ color: rgba(103,166,255,0.96); }
html.dark footer .payment-icon--crypto{ color: rgba(196,208,230,0.96); }
footer .payment-icon--symbol{
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

/* RTL pages: still centered */
html[dir="rtl"] footer .footer-copy,
html[dir="rtl"] footer .footer-links,
html[dir="rtl"] footer .footer-trust-line{
  margin: 0;
  text-align: center;
}

/* ==========================================
   QC/QA: Back to Top button (EN + AR)
   - Consistent with existing .btn styles
   - Appears after scrolling 300px
   - Auto flips to bottom-left on RTL
   ========================================== */
/* ==========================================
   QC/QA: Back to Top button (EN + AR)
   - Fixed position, compact size (prevents CTA sizing)
   - Default: bottom-right
   - RTL: bottom-left (via data-rtl, not global dir)
   ========================================== */
.back-to-top-btn{
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
  left: auto !important;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, filter .22s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  width: auto !important;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(219,50,77,0.22);
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.95));
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-ac);
}
.back-to-top-btn:hover{
  filter: brightness(1.03);
  box-shadow: 0 14px 34px rgba(34,174,209,0.18), 0 10px 28px rgba(219,50,77,0.16);
}
.back-to-top-btn:focus-visible{
  outline: 2px solid rgba(34,174,209,0.45);
  outline-offset: 3px;
}
.back-to-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn[data-rtl="1"]{
  right: auto !important;
  left: 22px !important;
}

@media (max-width: 520px){
  .back-to-top-btn{ bottom: 16px !important; right: 16px !important; }
  .back-to-top-btn[data-rtl="1"]{ left: 16px !important; right: auto !important; }
}


/* ==============================
   QC/QA R28: Micro tweaks only
   - Quote portlet pay-method spacing
   - Billing plan title color/baseline alignment
   - Smaller PDF helper text
   ============================== */
#quoteModal .pay-method{ margin-top: 16px; margin-bottom: 16px; }
#quoteModal .pay-method h4{ margin: 0 0 8px; }
#quoteModal .payment-select-shell{
  position: relative;
  color: inherit;
}
#quoteModal .payment-select-shell::before{
  content:"";
  position:absolute;
  inset-inline-start: 12px;
  top:50%;
  width:20px;
  height:20px;
  transform:translateY(-50%);
  background: currentColor;
  opacity:.9;
  filter: none;
  pointer-events:none;
  -webkit-mask: var(--payment-icon) center / contain no-repeat;
  mask: var(--payment-icon) center / contain no-repeat;
}
#quoteModal .payment-select-shell > select{
  padding-left: 46px;
}
html[dir="rtl"] #quoteModal .payment-select-shell > select{
  padding-right: 46px;
  padding-left: 34px;
}
#quoteModal .contact-group .check span{ font-size: 12px; line-height: 1.35; }

#quoteModal .billing-card{ align-items: center; }
#quoteModal .billing-card input{ margin-top: 0; }
#quoteModal .billing-title{ color:#db324d; line-height: 1.15; }
#quoteModal .billing-price{ margin-top: 0; line-height: 1.15; }
#quoteModal .billing-meta{ margin-top: 0; line-height: 1.15; }


/* WebGL demo tutorial (EN/AR) — minimal, scoped */
.demo-tutorial{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(2, 20, 39, 0.08);
  padding: 10px;
  border-radius: 15px;
  /* Universal cross-browser support */
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}

.demo-tutorial h5{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.demo-steps{
  margin: 0;
  padding-inline-start: 18px; /* direction-aware */
  display: grid;
  gap: 6px;
}

.demo-steps li{
  font-size: 13px;
  line-height: 1.55;
  color: rgba(2, 20, 39, 0.78);
}

.demo-tutorial-nav{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-tutorial-nav a{
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 20, 39, 0.10);
  text-decoration: none;
  color: rgba(2, 20, 39, 0.80);
  background: rgba(255, 255, 255, 0.55);
}

.demo-tutorial-nav a:hover{
  border-color: rgba(2, 20, 39, 0.18);
}

/* QC: hide tutorial nav buttons under How to use the WebGL demo */
.demo-tutorial-nav{ display: none !important; }


/* ===== Convert panel (links) — nicer styling + RTL alignment ===== */
.convert-panel .ref-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
}
[dir="rtl"] .convert-panel .ref-links{
  justify-content:flex-end;
  direction: rtl;
}
.convert-panel .ref-links a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(219,50,77,.18);
  background: linear-gradient(90deg, rgba(219,50,77,.10), rgba(34,174,209,.10));
  color: rgba(15,23,42,.82);
  font-weight: 800;
  font-size: 12px;
  text-decoration:none;
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.convert-panel .ref-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(34,174,209,.28);
  box-shadow: 0 14px 34px rgba(2,6,23,.10);
}


/* ===== WebGL loader — polished (logo + percent) without changing logic ===== */
.demo-loader{
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.demo-loader-card{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 26px 70px rgba(2,6,23,.18);
}
.demo-loader-inner{
  display:flex;
  align-items:center;
  gap:14px;
}
.demo-loader-logo{
  width: 120px;
  height: auto;
  display:block;
  opacity: .95;
}
.demo-loader-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.demo-loader-pct{
  font-weight: 900;
  opacity:.80;
}
.demo-loader-sub{ opacity:.72; margin-top:2px; }
.demo-loader-progress{
  margin-top:10px;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background: rgba(15,23,42,0.10);
}
.demo-loader-progress > span{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, #db324d, #22aed1);
  transition: width .18s ease;
}
.demo-loader-eta{ margin-top:6px; opacity:.70; }
[dir="rtl"] .demo-loader-inner{ direction: rtl; }


.demo-loader{ opacity:0; transition: opacity .18s ease; }
.demo-loader.is-visible{ opacity:1; }


/* ===== QA overrides (minimal, targeted) ===== */
.demo-loader-logo{ opacity: .75 !important; width: 140px !important; }

/* Ensure lightbox truly uses ~95% viewport */
.lb-panel{ width: 95vw !important; height: 95vh !important; max-height: 95vh !important; }

/* Thumbnails: never crop */
.lb-thumb img{ object-fit: contain !important; object-position: center !important; }

/* Caption: stable RTL/LTR count order */
.lb-slidecap.has-count{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.lb-slidecap.has-count .lb-cap-sep{ opacity:.7; }
html[dir="rtl"] .lb-slidecap.has-count{ flex-direction: row; justify-content:flex-start; direction: rtl; text-align:right; }
html[dir="rtl"] .lb-thumbs{ direction: rtl; }

/* References links: nicer + direction-aware */
.convert-panel .ref-links{
  gap: 10px;
  margin-top: 10px;
}
.convert-panel .ref-links a{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(219,50,77,0.18);
  box-shadow: 0 10px 22px rgba(2,6,23,0.06);
  font-weight: 800;
}
.convert-panel .ref-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(34,174,209,0.28);
  background: rgba(34,174,209,0.08);
}
html[dir="rtl"] .convert-panel .ref-links{
  direction: rtl;
  justify-content: flex-start;
}


/* ===== QA v1.2.15 targeted fixes (no redesign) ===== */

/* Convert panel: merge note with reference pills + correct RTL alignment */
.hero-why-card .ref-links .ref-note{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px dashed rgba(34,174,209,0.28);
  background: rgba(34,174,209,0.05);
  color: rgba(20,31,49,.74);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}
html[dir="rtl"] .hero-why-card .ref-links{
  direction: rtl !important;
  justify-content: flex-end !important;
}

/* Gallery lightbox: 95% viewport and keep thumbs fully visible */
.lb-panel{
  width: min(1400px, 95vw) !important;
  height: 95vh !important;
  max-height: 95vh !important;
  display:flex !important;
  flex-direction:column !important;
}
.lb-stage{
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
.lb-img{
  max-height: 100% !important;
}
.lb-foot{
  flex: 0 0 auto !important;
}

/* Thumbnails: never crop */
.lb-thumb img{
  object-fit: contain !important;
  object-position: center !important;
}

/* WebGL watermark: smaller + 50% opacity; hide in-canvas hint messages */
.demo-stage #demoOverlay img,
.demo-stage .demo-watermark img,
.demo-stage .demo-overlay-logo,
.demo-stage .aq-webgl-hint-logo{
  width: min(420px, 62%) !important;
  height: auto !important;
  opacity: 0.50 !important;
  display:block;
}

.demo-stage .demo-overlay-hint,
.demo-stage .demo-overlay-message,
.demo-stage .demo-overlay-hint-text,
.demo-stage .aq-webgl-hint-text{
  display:none !important;
}

/* =========================================================
   QC/QA R25: Mobile header/nav responsiveness fix
   - Scope: Header/nav/CTA layout on small screens only
   - Goal: Prevent CTA shrink (vertical text), keep nav usable, keep layout clean
   ========================================================= */
@media (max-width: 820px){
  header .nav{
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
  }
  header .nav .brand{
    flex: 0 0 auto;
  }
  header .nav .brand img{
    height: 46px;
    width: auto;
  }
  header .nav .cta{
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  header .nav .cta .btn{
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 14px;
  }
  header .nav .cta .btn.primary{
    white-space: nowrap;
  }

  /* Make the menu usable on mobile without crushing the CTA */
  header .nav ul{
    flex: 1 1 100%;
    order: 3;
    gap: 10px;
    margin-top: 4px;
    padding-top: 10px;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  header .nav ul::-webkit-scrollbar{ display:none; }
  header .nav ul li{ flex: 0 0 auto; }
  header .nav a{
    padding: 10px 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 420px){
  header .nav .brand img{ height: 42px; }
  header .nav .cta .btn{ padding: 9px 10px; font-size: 13px; }
  header .nav a{ padding: 9px 9px; font-size: 13px; }
}


/* -----------------------------
   2026 Light Premium Updates
   Hero Slider + Tabs + ROI + Packages + Quote Minimize
--------------------------------*/
.nav ul{ gap:10px; }
.nav a{ font-size:13px; padding:7px 8px; }

.hero.hero-slider{ padding: 14px 0 6px; }
.hero-slider-wrap{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,253,0.96));
  border: 1px solid rgba(34,174,209,0.18);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px 14px;
  overflow:hidden;
}
.hero-slider-top{ display:flex; flex-direction:column; gap:10px; }
.hero-slider-top-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.hero-slider-cta{ display:flex; gap:10px; flex-wrap:wrap; }

.hero-slider-viewport{ position:relative; margin-top: 6px; border-radius: 22px; overflow:hidden; }
.hero-slider-track{ transition: height .35s ease; position:relative; min-height: 380px; }
.hero-slide{
  position:absolute; inset:0;
  opacity:0; transform: translateX(12px);
  transition: opacity .45s ease, transform .55s ease;
  pointer-events:none;
}
.hero-slide.is-active{ opacity:1; transform: translateX(0); pointer-events:auto; }
.hero-slide-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 12px; align-items:start;
  padding: 12px;
}
.hero-slide-title{ margin:0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.hero-slide-text{ margin: 0 0 10px; color: var(--muted); line-height:1.6; }
.hero-slide-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 8px; }

.hero-slide-media{
  display:flex; align-items:flex-start; justify-content:center;
  padding: 0px;
}
.hero-slide-media img{
  width:min(600px, 96%);
  height:auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.14));
  transform: translateZ(0);
  transition: transform .85s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}
.hero-slide-media:before{
  content:"";
  position:absolute;
  width: 62%;
  height: 62%;
  background: radial-gradient(circle at 30% 30%, rgba(219,50,77,0.16), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(34,174,209,0.18), transparent 60%);
  filter: blur(14px);
  opacity: .9;
  border-radius: 999px;
  pointer-events:none;
}

.hero-slider-nav{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-top: 6px;
}
.hs-btn{
  width: 40px; height: 40px; border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.28);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  font-size: 18px;
}
.hs-btn:hover{ transform: translateY(-1px); }
.hs-dots{ display:flex; gap: 8px; align-items:center; }
.hs-dot{
  width: 10px; height: 10px; border-radius: 99px;
  border: 1px solid rgba(34,174,209,0.30);
  background: rgba(34,174,209,0.12);
  cursor:pointer;
}
.hs-dot.is-active{
  width: 26px;
  background: linear-gradient(90deg, rgba(219,50,77,0.32), rgba(34,174,209,0.30));
  border-color: rgba(219,50,77,0.30);
}
.hs-progress{ height: 5px; background: rgba(34,174,209,0.10); border-radius: 99px; overflow:hidden; margin-top: 6px; }
.hs-progress-bar{ height: 100%; width: 0%; background: linear-gradient(90deg, rgba(219,50,77,0.75), rgba(34,174,209,0.75)); border-radius: 99px; }

@media (max-width: 980px){
  .hero-slider-track{ min-height: 520px; }
  .hero-slide-grid{ grid-template-columns: 1fr; }
  .hero-slide-media{ order:-1; }
  .hero-slide-media img{ width: min(640px, 100%); }
}


/* Tabs */
.tabs-wrap{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(34,174,209,0.18);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin-top: 18px;
}
.tabs-bar{
  display:flex; flex-wrap:nowrap; gap:10px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(34,174,209,0.06);

  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.tab-btn{
  border: 1px solid rgba(34,174,209,0.16);
  background: rgba(255,255,255,0.85);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;

  white-space: nowrap;
  scroll-snap-align: start;
}

.tab-btn:hover{ transform: translateY(-1px); border-color: rgba(34,174,209,0.30); }
.tab-btn.is-active{
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,253,0.92));
  border-color: rgba(219,50,77,0.24);
  box-shadow: var(--shadow-sm);
}
.tabs-panels{ margin-top: 12px; }
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; }
.tab-grid{ display:grid; grid-template-columns: 1fr; gap: 14px; }
.tab-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,174,209,0.16);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(34,174,209,0.08);
  min-width: 0;
}
.tab-card h4{ margin:0 0 8px; }
@media (max-width: 980px){ .tab-grid{ grid-template-columns:1fr; } }

/* Platform: keep charts/diagrams inside cards */
#platform .tab-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
#platform .tab-card{ min-width:0; max-width:100%; overflow:hidden; }
#platform .tab-chart-wrap, #platform .diagram{ max-width:100%; overflow:hidden; }
#platform canvas, #platform svg, #platform img{ max-width:100% !important; }

/* ROI */
.roi-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; margin-top: 14px; }
.roi-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,174,209,0.18);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.roi-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.roi-field label{ display:block; margin-bottom:6px; }
.roi-hint{ margin-top: 8px; opacity:.9; }
.roi-disclaimer{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(219,50,77,0.20);
  background: rgba(219,50,77,0.06);
  color: var(--muted);
  line-height: 1.6;
}
.roi-results .roi-metrics{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roi-metric{
  background: rgba(34,174,209,0.06);
  border: 1px solid rgba(34,174,209,0.14);
  border-radius: 18px;
  padding: 12px;
}
.roi-num{ font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -0.01em; }
.roi-chart{ margin-top: 12px; }
.roi-chart{ height: 260px; }
.roi-chart canvas{ width: 100% !important; height: 100% !important; }
#roiCalc .roi-currency-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.16);
  background: rgba(34,174,209,0.05);
}
#roiCalc .roi-currency-row .currency-label{ font-weight: 700; color: var(--muted); }
#roiCalc .roi-currency-row select{
  width: 160px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.18);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(34,174,209,0.08);
}
@media (max-width: 980px){
  .roi-grid{ grid-template-columns: 1fr; }
  .roi-row{ grid-template-columns: 1fr; }
}

/* Packages */
.packages-plus .package{ display:flex; flex-direction:column; }
.pkg-block{
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.14);
  background: rgba(34,174,209,0.05);
  padding: 12px;
}
.pkg-block-title{ font-weight: 800; margin-bottom: 8px; }
.pkg-list{ margin: 0; padding-left: 18px; }
.pkg-list li{ margin: 7px 0; color: var(--muted); }
.packages-plus .actions{ margin-top:auto; }

/* Quote modal controls */
.modal-card{ position:relative; }
.modal-min{
  position:absolute;
  top: 12px;
  right: 52px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(34,174,209,0.28);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  font-size: 18px;
  line-height: 1;
}
.modal-close{
  width: 38px;
  height: 38px;
  border-radius: 14px;
}
.quote-dock{
  position:fixed;
  bottom: 74px;
  right: 22px;
  left: auto;
  z-index: 9999;
  display:none;
}

.quote-dock[aria-hidden="false"]{ display:block; }
.quote-dock .btn{ box-shadow: var(--shadow-md); }

.demo-loader{ background: rgba(255,255,255,0.78) !important; backdrop-filter: blur(10px); }
.demo-loader-card{ background: rgba(255,255,255,0.92) !important; border: 1px solid rgba(34,174,209,0.18) !important; }
.lb{ background: rgba(255,255,255,0.95) !important; }
.lb-stage{ background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,251,253,0.9)) !important; }

/* Hosting Plan Options */
.hosting-wrap{ display:block; }
.hosting-grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 840px){ .hosting-grid{ grid-template-columns: 1fr; } }

.hosting-card{
  display:block;
  position:relative;
  border: 1px solid rgba(34,174,209,0.16);
  border-radius: 16px;
  padding: 12px;
  padding-inline-start: 58px;
  background: rgba(255,255,255,0.92);
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  min-width: 0;
}
.hosting-card:hover{ transform: translateY(-1px); border-color: rgba(34,174,209,0.28); box-shadow: 0 14px 28px rgba(34,174,209,0.08); }
.hosting-card:focus-within{ outline: 3px solid rgba(34,174,209,0.18); outline-offset: 2px; }

.hosting-card input{
  position:absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Custom premium radio UI (no :has dependency) */
.hosting-card::before{
  content:"";
  position:absolute;
  top: 14px;
  inset-inline-start: 16px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(34,174,209,0.35);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 18px rgba(34,174,209,0.10);
}
.hosting-card::after{
  content:"";
  position:absolute;
  top: 19px;
  inset-inline-start: 21px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .18s ease;
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.90));
}
.hosting-card.is-selected{
  border-color: rgba(219,50,77,0.28);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}
.hosting-card.is-selected::before{ border-color: rgba(219,50,77,0.45); }
.hosting-card.is-selected::after{ transform: scale(1); }

.hosting-title{ font-weight: 800; }
.hosting-price{ margin-top: 8px; }
.hosting-note{ margin-top: 10px; opacity: .9; }
/* =============================
   QC PATCH (2026-02-27)
   - Hero mainline in-slider + cropping fix
   - Tabs: single-row + richer viz blocks
   - ROI: status pill + smoother chart updates
   - Packages: longer cards + no-wrap titles
================================*/

/* Hero: main headline inside each slide */
.hero-mainline{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* Hero: prevent cropping by letting JS drive track height */
.hero-slider-track{
  transition: height .45s ease;
}
.hero-slide-grid{ align-items: center; }
.hero-slide-media{ position: relative; }
.hero-slide-media img{
  max-height: 430px;
  object-fit: contain;
}
@media (max-width: 980px){
  .hero-slide-media img{ max-height: 340px; }
}

/* Tabs: force single row (no wrap) and make it feel like a real GUI */
.tabs-bar{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  gap: 8px;
}
.tabs-bar::-webkit-scrollbar{ display:none; }
.tabs-bar{ scrollbar-width: none; }
.tab-btn{ white-space: nowrap; display:flex; align-items:center; gap:8px; }
.tab-btn.is-active{ position: relative; }
.tab-btn.is-active::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(219,50,77,0.55), rgba(34,174,209,0.55));
}

/* Rich tab viz blocks */
.tab-viz-grid{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-top: 12px; max-width: 100%; }
@media (max-width: 980px){
  .tab-viz-grid{ grid-template-columns: 1fr; }
}
.kpi-row{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 12px; }
@media (max-width: 980px){
  .kpi-row{ grid-template-columns: 1fr 1fr; }
}
.kpi{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,174,209,0.16);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 28px rgba(34,174,209,0.06);
}
.kpi-val{ font-weight: 900; font-size: 18px; letter-spacing:-0.01em; }
.kpi-lbl{ margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height:1.35; }
.tab-chart-wrap{ background: rgba(34,174,209,0.05); border: 1px solid rgba(34,174,209,0.14); border-radius: 16px; padding: 10px; max-width:100%; overflow:hidden; }
.tab-chart{ width: 100% !important; height: 160px !important; display:block; }
.tab-source{ margin-top: 8px; opacity: .9; }
.viz-list{ margin: 0; padding-left: 18px; }
.viz-list li{ margin: 8px 0; color: var(--muted); }

.mini-bars{ margin-top: 10px; display:grid; gap: 10px; }
.bar-row{ display:grid; grid-template-columns: 150px 1fr; gap: 12px; align-items:center; }
.bar-row span{ font-size: 12.5px; color: var(--muted); }
.bar-row i{ display:block; height: 10px; border-radius: 999px; background: rgba(34,174,209,0.10); overflow:hidden; position:relative; }
.bar-row i::after{ content:""; position:absolute; inset:0; width: 100%; background: linear-gradient(90deg, rgba(219,50,77,0.55), rgba(34,174,209,0.55)); transform-origin:left; transform: scaleX(1); }

.pill-grid{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.pill{ display:inline-flex; align-items:center; padding: 7px 10px; border-radius: 999px; background: rgba(219,50,77,0.06); border: 1px solid rgba(219,50,77,0.18); font-size: 12.5px; color: var(--text); }

.diagram{ background: rgba(34,174,209,0.05); border: 1px solid rgba(34,174,209,0.14); border-radius: 16px; padding: 10px; overflow:hidden; }
.diagram svg{ width: 100%; height: auto; display:block; }

/* ROI: disclaimer size + status pill */
.roi-disclaimer{ font-size: 13px; }
.roi-status{ grid-column: 1 / -1; display:flex; align-items:center; justify-content:space-between; }
.roi-status-pill{ display:inline-flex; align-items:center; gap:10px; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(34,174,209,0.18); background: rgba(34,174,209,0.05); }
.roi-dot{ width: 10px; height: 10px; border-radius: 999px; background: rgba(255,165,0,0.95); box-shadow: 0 0 0 6px rgba(255,165,0,0.15); }
#roiStatus[data-status="good"] .roi-dot{ background: rgba(0,160,90,0.95); box-shadow: 0 0 0 6px rgba(0,160,90,0.14); }
#roiStatus[data-status="bad"] .roi-dot{ background: rgba(210,50,60,0.95); box-shadow: 0 0 0 6px rgba(210,50,60,0.14); }
#roiStatus[data-status="ok"] .roi-dot{ background: rgba(255,165,0,0.95); box-shadow: 0 0 0 6px rgba(255,165,0,0.15); }

/* Packages: longer cards + keep titles on one line */
.packages-plus .package{ min-height: 610px; }
#packages .package h3{ font-size: 18px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
#packages .package .tag{ white-space: nowrap; font-size: 12.5px; }
@media (max-width: 520px){
  #packages .package h3{ font-size: 16px; }
}


/* QC PATCH (2026-02-27 v2): Hero slider polish */
.hero-slide .hero-slide-media img{ transform: translateZ(0) scale(.97); }
.hero-slide.is-active .hero-slide-media img{ transform: translateZ(0) scale(1); }
.hero-slide-media{ position: relative; }
.hero-slide-media::after{ content:''; position:absolute; inset:10% 14%; border-radius: 999px; background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); box-shadow: 0 24px 70px rgba(34,174,209,0.10); pointer-events:none; z-index:-1; }

/* QC PATCH (2026-02-27 v2): Tabs readability */
.tabs-wrap .small{ font-size: 14px; }
.tab-card h4{ font-size: 18px; letter-spacing: -0.01em; }

/* QC PATCH (2026-02-27 v2): Quote dock as a parked window */
.quote-dock .btn{ border-radius: 14px; padding: 10px 12px; }
@media (max-width: 700px){ .quote-dock{ bottom: 70px; right: 14px; } }

/* QC v6: Quote minimize button hover matches close */
.modal-min{ border: 1px solid rgba(34,174,209,0.22); background: rgba(255,255,255,0.86); box-shadow: var(--shadow-sm); transition: transform .18s ease, background .2s ease, box-shadow .2s ease; }
.modal-min:hover{ transform: translateY(-1px); background: rgba(34,174,209,0.10); }

/* QC v6: Smooth minimize/restore */
.modal.is-minimizing .modal-card{ transform: scale(.98); opacity: .0; transition: transform .18s ease, opacity .18s ease; }
.modal.open .modal-card{ transform: scale(1); opacity: 1; transition: transform .18s ease, opacity .18s ease; }

/* QC v6: Dock next to Back-to-Top (JS sets inline offsets) */
.quote-dock{ bottom: 22px; }


/* =============================
   QC PATCH v7 (2026-02-27)
   Requested tweaks only:
   1) Hero: remove top CTA row buttons, reduce vertical padding, "no block" wrap, cooler slider UX, larger artwork.
   2) Platform tabs: stack sub-components under main + fix diagram overflow + improve readability.
   3) ROI: currency UI inside calculator + charts + package autofill + live updates (CSS side).
   4) Packages: longer cards + CTA pinned to bottom.
   5) Quote: hosting radio polish + minimize dock above Back-to-Top (CSS animation helpers).
================================*/

/* 1) Hero spacing + no "card block" wrapper */
.hero.hero-slider{ padding: 10px 0 2px; }
.hero-slider-wrap{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}
.hero-slider-top{ align-items:center; text-align:center; }
.hero-slider-top-row{
  justify-content:center;
  align-items:center;
  gap: 10px;
}
.hero-slider-top-row .h1{ margin: 0; text-wrap: balance; }
.hero-slider-viewport{ border-radius: 24px; }
.hero-slider-track{ transition: height .42s ease; min-height: 460px; }
.hero-slide{ transform: translateY(10px) scale(.995); transition: opacity .52s ease, transform .72s cubic-bezier(.2,.9,.2,1); }
.hero-slide.is-active{ transform: translateY(0) scale(1); }
.hero-slide-media img{ width: min(680px, 100%); filter: drop-shadow(0 22px 44px rgba(0,0,0,0.14)); }
.hs-btn{
  width: 42px; height: 42px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.hs-btn:hover{ transform: translateY(-1px) scale(1.02); box-shadow: 0 16px 34px rgba(34,174,209,0.12), 0 12px 28px rgba(219,50,77,0.10); }
.hs-dot{ height: 11px; width: 11px; }
.hs-dot.is-active{ width: 30px; }

/* 2) Platform: stack cards (sub-components under main) + contain diagrams */
#platform .container{ max-width: 1240px; }
#platform .tab-grid{ grid-template-columns: 1fr; gap: 14px; }
#platform .tab-card{ padding: 16px; }
#platform .tab-card h4{ font-size: 19px; }
#platform .small{ font-size: 14.5px; line-height: 1.7; }
#platform .tab-chart-wrap{ width: 100%; max-width:100%; overflow:hidden; }
#platform .tab-chart{ width: 100% !important; max-width:100% !important; }
#platform .tabs-wrap{ overflow: hidden; }

/* 3) ROI: make injected currency row look native + stable chart sizing */
.roi-currency-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.16);
  background: rgba(255,255,255,0.90);
}
.roi-currency-row .currency-label{ font-weight: 800; color: var(--text); }
.roi-currency-row .currency-controls{ display:flex; align-items:center; gap: 10px; }
.roi-currency-row .select-wrap{ position:relative; }
.roi-currency-row select{
  appearance:none;
  border: 1px solid rgba(34,174,209,0.20);
  border-radius: 14px;
  padding: 10px 42px 10px 14px;
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  cursor:pointer;
}
.roi-currency-row .select-wrap:after{
  content:"▾";
  position:absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  pointer-events:none;
}
html[dir="rtl"] .roi-currency-row .select-wrap:after{ right:auto; left:14px; }
html[dir="rtl"] .roi-currency-row select{ padding: 10px 14px 10px 42px; }
.roi-chart{ height: 260px; }
#roiChart{ width: 100% !important; height: 100% !important; display:block; }

/* 4) Packages: longer cards + CTA pinned to bottom */
.packages-plus .package{
  min-height: 660px;
  display:flex;
  flex-direction: column;
}
.packages-plus .package .actions{ margin-top: auto; }

/* 5) Hosting radio polish (keep same UI, better sizing) */
.hosting-card::before{
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.hosting-card::after{
  width: 12px;
  height: 12px;
  top: 20px;
  inset-inline-start: 21px;
}
.hosting-card{ padding-inline-start: 60px; }

/* Quote minimize / dock animation helpers */
#quoteModal.is-minimizing .modal-card{
  transform: translateY(10px) scale(.97);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.quote-dock{
  transition: transform .22s ease, opacity .22s ease;
  transform: translateY(6px);
  opacity: 0;
}
.quote-dock[aria-hidden="false"]{
  opacity: 1;
  transform: translateY(0);
}

/* Quote restore pop */
.modal-card.is-restoring{ animation: quoteRestore .24s ease; }
@keyframes quoteRestore{ from{ transform: translateY(10px) scale(.97); opacity:0; } to{ transform: translateY(0) scale(1); opacity:1; } }


/* =============================
   QC PATCH v8 (2026-02-27)
   Scope: ONLY requested fixes (Hero spacing/typography, Platform containment, ROI reliability, Packages height)
   ============================= */

/* 1) Hero: bigger headline, tighter gap, wider copy, bigger artwork */
.hero-slider-top-row .h1{
  font-size: clamp(46px, 3.2vw, 72px);
  line-height: 1.14;
  margin-bottom: 6px;
}
.hero-slider-viewport{ margin-top: 6px; }
.hero-slide-grid{
  grid-template-columns: 1.18fr 0.82fr;
  padding: 14px;
  gap: 16px;
}
.hero-slide-media{ padding: 0; }
.hero-slide-media img{ width: min(740px, 100%); }
.hero-slide-copy, .hero-slide-text{ max-width: none; }

/* 2) Platform: keep diagrams/charts inside the section at all breakpoints */
#platform{ overflow-x: hidden; }
#platform .container{ max-width: 1320px; }
#platform .tabs-wrap{ overflow: hidden; }
#platform .tabs-panels, #platform .tab-panel{ overflow: hidden; }
#platform .tab-grid{ grid-template-columns: 1fr !important; }
#platform .tab-card{ overflow:hidden; min-width:0; max-width:100%; }
#platform .tab-chart-wrap{ max-width:100%; overflow:hidden; }
#platform canvas, #platform svg, #platform img{ max-width:100% !important; display:block; }

/* 4) Packages: make cards longer and keep CTA pinned */
.packages-plus .package{ min-height: 660px; }



/* =======================
   QC Patch v9 (Tabs/ROI/Quote UI)
   Only targeted overrides
   ======================= */

/* 1) Hero headline rhythm */
.hero-slider-top .h1{
  line-height: 1.14;
}
.hero-slider-viewport{
  margin-top: 6px;
}

/* 2) Platform tabs: fixed width + CTA-colored active state */
.tabs-bar{ gap: 10px; }
.tab-btn{
  flex: 0 0 200px;
  justify-content: center;
  text-align: center;
}
.tab-btn:hover{
  background: rgba(219,50,77,0.08);
  border-color: rgba(219,50,77,0.22);
}
.tab-btn.is-active{
  background: var(--primary);
  color: #fff;
  border-color: rgba(219,50,77,0.55);
  box-shadow: var(--shadow-ac);
}
.tab-btn.is-active:hover{
  filter: brightness(0.98);
}

/* Tab insights (KPIs + charts) */
.tab-insights{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34,174,209,0.16);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 28px rgba(34,174,209,0.08);
  overflow: hidden;
}
.tab-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .tab-kpis{ grid-template-columns: 1fr; }
}
.kpi{
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.14);
  background: rgba(34,174,209,0.05);
  padding: 12px;
  min-width: 0;
}
.kpi-label{ font-weight: 800; font-size: 13px; color: var(--muted); }
.kpi-value{ font-weight: 950; font-size: 22px; margin-top: 6px; letter-spacing: -0.02em; }
.kpi-note{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.tab-chart-wrap{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.14);
  background: rgba(255,255,255,0.92);
  padding: 12px;
  overflow: hidden;
}
.tab-chart{
  width: 100% !important;
  height: 220px !important;
  display: block;
}
.tab-chart-note{ margin-top: 6px; color: var(--muted); }
.tab-sources{ margin-top: 10px; }
.tab-sources a{ color: var(--text); text-decoration: underline; text-decoration-color: rgba(219,50,77,0.35); }
.tab-sources a:hover{ text-decoration-color: rgba(219,50,77,0.75); }

/* Integration diagram */
.tab-diagram{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,174,209,0.14);
  background: rgba(34,174,209,0.05);
  padding: 12px;
}
.tab-diagram-title{ font-weight: 900; margin-bottom: 10px; }
.diag-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px){
  .diag-row{ grid-template-columns: 1fr; }
}
.diag-step{
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(34,174,209,0.14);
  padding: 10px;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.diag-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.90));
  box-shadow: 0 10px 18px rgba(219,50,77,0.14);
  flex: 0 0 12px;
}
.diag-text{ font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3) ROI investment indicator (near ROI currency) */
#roiCalc .roi-currency-row .currency-controls{
  display:flex;
  align-items:center;
  gap: 10px;
}
.roi-invest{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,174,209,0.18);
  background: rgba(255,255,255,0.86);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.roi-invest .bulb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  position: relative;
  animation: bulbPulse 1.6s ease-in-out infinite;
}
@keyframes bulbPulse{
  0%, 100%{ transform: scale(1); filter: brightness(1); }
  50%{ transform: scale(1.08); filter: brightness(1.12); }
}
.roi-invest.good .bulb{ background: #22c55e; box-shadow: 0 0 0 8px rgba(34,197,94,0.14); }
.roi-invest.ok .bulb{ background: #f59e0b; box-shadow: 0 0 0 8px rgba(245,158,11,0.14); }
.roi-invest.bad .bulb{ background: #ef4444; box-shadow: 0 0 0 8px rgba(239,68,68,0.14); }

/* 5) Quote portlet controls (Close/Minimize) */
.modal-close{
  background: var(--primary) !important;
  border-color: rgba(219,50,77,0.55) !important;
  color: #fff !important;
}
.modal-close:hover{
  background: rgba(219,50,77,0.92) !important;
  transform: translateY(-1px);
}
.modal-close:active{
  transform: translateY(0);
  filter: brightness(0.95);
}

.modal-min{
  background: var(--accent) !important;
  border-color: rgba(34,174,209,0.55) !important;
  color: #fff !important;
}
.modal-min:hover{
  background: rgba(34,174,209,0.92) !important;
  transform: translateY(-1px);
}
.modal-min:active{
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Quote: package selection as full-width buttons/cards */
.pill-grid{
  grid-template-columns: 1fr !important;
}

/* Hosting buttons: feel like pressed package cards (keep 2 columns) */
.hosting-card{
  background: rgba(255,255,255,0.95);
}
.hosting-card.is-selected{
  border-color: rgba(219,50,77,0.30);
  box-shadow: var(--shadow-ac);
}
.hosting-card::before{
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.hosting-card::after{
  width: 12px;
  height: 12px;
  top: 19px;
  inset-inline-start: 21px;
}

/* Hosting option extra details */
.hosting-extra{
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}


/* =============================
   QC Patch v10 (2026-02-27)
   Focused fixes per screenshots:
   1) Hero/Slider spacing + wider slide copy
   2) Platform tabs: no clipping, all tabs visible, teal active, charts at top, smoother data blocks
   3) ROI: currency dropdown + status spacing and nicer indicator visuals
   4) Quote: package buttons longer & unified across EN/AR
   5) Quote: Hosting radio fit & appearance (2-column already kept)
================================ */

:root{ --teal:#0499a3; } /* added brand teal (safe) */

/* 1) Hero: keep headline size, slightly higher line-height + tighter gap */
.hero-slider-top-row .h1{ line-height: 1.18; margin-bottom: 4px; }
.hero-slider-viewport{ margin-top: 4px; }

/* Expand slide copy to use available space */
.hero-slide-grid{
  grid-template-columns: 1.30fr 0.70fr;
  gap: 18px;
  padding: 14px 12px;
}
.hero-slide-copy{ width: 100%; }
.hero-slide-text{ width: 100%; max-width: none; }

/* Slightly larger artwork without cropping */
.hero-slide-media{ padding: 0; }
.hero-slide-media img{ width: min(760px, 100%); }

@media (max-width: 980px){
  .hero-slide-grid{ grid-template-columns: 1fr; }
}

/* 2) Platform tabs — match reference, no red active, no clipping */
#platform .tabs-wrap{ overflow: visible !important; }
#platform .tabs-bar{
  overflow: visible !important;
  flex-wrap: nowrap;
  justify-content: center;
  scroll-snap-type: none;
}

/* Ensure ALL tabs fit on desktop (no cutoff) */
#platform .tab-btn{
  flex: 0 0 170px;
  justify-content: center;
  text-align: center;
  font-size: 13.5px;
  padding: 10px 10px;
}
#platform .tab-btn:hover{
  background: rgba(34,174,209,0.08) !important;
  border-color: rgba(34,174,209,0.35) !important;
}

/* Active tab: teal (NOT red) */
#platform .tab-btn.is-active{
  background: linear-gradient(90deg, rgba(34,174,209,0.98), rgba(4,153,163,0.98)) !important;
  color: #fff !important;
  border-color: rgba(34,174,209,0.55) !important;
  box-shadow: 0 18px 42px rgba(34,174,209,0.14) !important;
}
#platform .tab-btn.is-active:hover{ filter: brightness(0.985); }

/* Responsive: wrap so all tabs remain visible on smaller screens */
@media (max-width: 980px){
  #platform .tabs-bar{ flex-wrap: wrap; justify-content: center; }
  #platform .tab-btn{ flex: 0 1 168px; }
}
@media (max-width: 520px){
  #platform .tab-btn{ flex: 1 1 100%; }
}

/* Place charts/diagrams first, then the text cards */
#platform .tab-grid{
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}
#platform .tab-insights{ order: -1; margin-top: 0; margin-bottom: 14px; }

/* Make data blocks feel premium */
@keyframes tabFadeUp{ from{ opacity:0; transform: translateY(6px);} to{opacity:1; transform: translateY(0);} }
#platform .tab-insights,
#platform .tab-card,
#platform .tab-chart-wrap,
#platform .tab-diagram{
  animation: tabFadeUp .35s ease both;
}
#platform .kpi,
#platform .tab-chart-wrap{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#platform .kpi:hover,
#platform .tab-chart-wrap:hover{
  transform: translateY(-1px);
  border-color: rgba(34,174,209,0.28);
  box-shadow: 0 18px 32px rgba(34,174,209,0.10);
}
#platform .tab-sources a{
  text-decoration-color: rgba(34,174,209,0.45) !important;
}
#platform .tab-sources a:hover{
  text-decoration-color: rgba(4,153,163,0.85) !important;
}

/* 3) ROI: spacing & nicer indicator graphics */
#roiCalc .roi-currency-row .currency-controls{
  flex: 1;
  justify-content: space-between;
  gap: 14px;
}
#roiCalc .roi-currency-row .select-wrap{ min-width: 160px; }

#roiCalc .roi-invest{
  padding: 9px 12px;
  gap: 10px;
  border-color: rgba(34,174,209,0.22);
  background: rgba(255,255,255,0.92);
}
@keyframes bulbGlow{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.10); } }
#roiCalc .roi-invest .bulb{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  position: relative;
  animation: bulbGlow 1.8s ease-in-out infinite;
}

/* =============================
   QC Patch v28 (2026-02-28)
   Platform tabs GUI/UX refresh (EN + AR)
   Scope: #platform only (no other site changes)
================================ */

/* Premium container, tighter + cleaner */
#platform .tabs-wrap{
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(34,174,209,0.18) !important;
  border-radius: 26px !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 16px !important;
  overflow: visible !important;
}

/* Modern curved tab strip (not literal “folder” copy) */
#platform .tabs-bar{
  display:flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(34,174,209,0.07), rgba(34,174,209,0.03)) !important;
  border: 1px solid rgba(34,174,209,0.14) !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
}

/* Tab button: curved, subtle, with hover/press micro-interactions */
#platform .tab-btn{
  flex: 1 1 168px !important;
  min-width: 152px !important;
  max-width: 240px !important;
  position: relative !important;
  border-radius: 18px !important;
  padding: 12px 12px 14px !important;
  border: 1px solid rgba(34,174,209,0.16) !important;
  background: rgba(255,255,255,0.70) !important;
  color: var(--muted) !important;
  box-shadow: 0 10px 22px rgba(34,174,209,0.06) !important;
  transform: translateY(0) !important;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#platform .tab-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 60px at 20% 20%, rgba(34,174,209,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

#platform .tab-btn:hover{
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(34,174,209,0.26) !important;
  box-shadow: 0 16px 34px rgba(34,174,209,0.10) !important;
  transform: translateY(-1px) !important;
}
#platform .tab-btn:hover::before{ opacity: 1; }

#platform .tab-btn:active{
  transform: translateY(0) scale(0.995) !important;
  box-shadow: 0 12px 26px rgba(34,174,209,0.08) !important;
  filter: brightness(0.99) !important;
}

#platform .tab-btn:focus-visible{
  outline: 3px solid rgba(34,174,209,0.28) !important;
  outline-offset: 2px !important;
}

/* Active tab: NO solid fill — subtle light gradient + accent underline */
#platform .tab-btn.is-active{
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,253,0.92)) !important;
  color: var(--text) !important;
  border-color: rgba(34,174,209,0.30) !important;
  box-shadow: 0 18px 40px rgba(34,174,209,0.12) !important;
}
#platform .tab-btn.is-active::before{ opacity: 1; }
#platform .tab-btn.is-active::after{
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,174,209,0.80), rgba(219,50,77,0.65));
  opacity: 0.95;
}

/* Panel container: slightly separated, still light */
#platform .tabs-panels{
  margin-top: 14px !important;
}

/* Clean layout per tab: insights top, then 2 text cards */
#platform .tab-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
#platform .tab-insights{
  grid-column: 1 / -1 !important;
  order: 0 !important;
  margin: 0 !important;
}

@media (max-width: 980px){
  #platform .tab-grid{ grid-template-columns: 1fr !important; }
}

/* Mobile: keep tabs scrollable and tidy */
@media (max-width: 820px){
  #platform .tabs-bar{
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  #platform .tab-btn{
    flex: 0 0 auto !important;
    min-width: 168px !important;
    scroll-snap-align: start;
  }
}
#roiCalc .roi-invest .bulb:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-4px;
  transform: translateX(-50%);
  width: 8px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: rgba(0,0,0,0.18);
  opacity: .35;
}
#roiCalc .roi-invest.good .bulb{
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(34,197,94,0.85));
  box-shadow: 0 0 0 8px rgba(34,197,94,0.12), 0 0 18px rgba(34,197,94,0.22);
}
#roiCalc .roi-invest.ok .bulb{
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(245,158,11,0.85));
  box-shadow: 0 0 0 8px rgba(245,158,11,0.12), 0 0 18px rgba(245,158,11,0.18);
}
#roiCalc .roi-invest.bad .bulb{
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(239,68,68,0.85));
  box-shadow: 0 0 0 8px rgba(239,68,68,0.12), 0 0 18px rgba(239,68,68,0.18);
}

/* 4) Quote: make "Choose a package" buttons longer (both EN/AR) */
#quoteModal .pkg3d-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 980px){
  #quoteModal .pkg3d-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
#quoteModal .pkg3d .pkg3d-face{
  height: 84px;
  padding: 12px 14px 11px;
}
#quoteModal .pkg3d .pkg3d-title{ font-size: 15px; }
#quoteModal .pkg3d .pkg3d-meta{ font-size: 12px; }

/* 5) Hosting: radio buttons fit & look professional */
.hosting-card{ padding-inline-start: 56px; }
.hosting-card::before{
  width: 18px;
  height: 18px;
  top: 18px;
  inset-inline-start: 16px;
  border-width: 2px;
  box-shadow: 0 10px 16px rgba(34,174,209,0.08);
}
.hosting-card::after{
  width: 8px;
  height: 8px;
  top: 23px;
  inset-inline-start: 21px;
}

/* =============================
   QC Patch v13 (Hero container = site container, tighter stack, unified headline)
   Scope: ONLY Hero/Slider layout polish (EN + AR)
   ============================= */

/* 1) Hero container MUST match the rest of the page (do NOT widen beyond .container) */
.hero.hero-slider > .container{ width: min(1120px, 92vw) !important; }

/* 2) Bring all hero elements into one tighter section (tagline → headline → slider) */
.hero.hero-slider{ padding: 22px 0 10px !important; }
.hero.hero-slider .hero-slider-top{ gap: 8px !important; }
.hero.hero-slider .h1{
  line-height: 1.18 !important;
  margin: 10px 0 8px !important;
}

/* Reduce the space between headline and slider */
.hero.hero-slider .hero-slider-viewport{ margin-top: 8px !important; }

/* Remove the outer “card block” around the whole hero (keep slider itself premium) */
.hero-slider-wrap{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Slider viewport styling (light premium, tight) */
.hero-slider-viewport{
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,251,253,0.94)) !important;
  border: 1px solid rgba(34,174,209,0.16) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* 3) Paragraphs must expand to fill available space */
.hero-slider-viewport .hero-slide-grid{
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr) !important;
  gap: 16px !important;
  padding: 14px 14px 14px !important;
}

.hero-slider-viewport .hero-slide-copy,
.hero-slider-viewport .hero-slide-copy *{
  max-width: none !important;
}

.hero-slider-viewport .hero-slide-text{
  width: 100% !important;
}

/* 4) Artwork closer to the edge without stealing too much copy width */
.hero-slider-viewport .hero-slide-media{
  padding: 0 !important;
  justify-content: flex-end !important;
  align-self: stretch;
}

.hero-slider-viewport .hero-slide-media img{
  width: min(560px, 100%) !important;
  max-height: 420px;
  object-fit: contain;
}

/* “Touch the edges” feel: bias padding toward the copy side (LTR/RTL) */
.hero-slider-viewport .hero-slide-grid{
  padding-left: 18px !important;
  padding-right: 10px !important;
}
html[lang="ar"] .hero-slider-viewport .hero-slide-grid{
  padding-left: 10px !important;
  padding-right: 18px !important;
}

/* Mobile stays clean */
@media (max-width: 980px){
  .hero.hero-slider{ padding: 20px 0 8px !important; }
  .hero-slider-viewport .hero-slide-grid{
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 12px !important;
  }
  .hero-slider-viewport .hero-slide-media{ justify-content:center !important; }
  .hero-slider-viewport .hero-slide-media img{
    width: min(520px, 100%) !important;
    max-height: 360px;
  }
}



/* =======================
   QC Patch v18 (Hero: move hero-slider-top into hero-slide-grid)
   ONLY hero slider adjustments requested by user.
   ======================= */

/* Remove the “card” feel: no border/white BG around the slider viewport */
.hero.hero-slider .hero-slider-viewport{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* New top block inside each slide */
.hero.hero-slider .hero-slide-top{
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: 0 0 2px;
}

/* Headline rhythm: tighter and consistent */
.hero.hero-slider .hero-slide-top .h1{
  margin: 4px 0 0 !important;
  line-height: 1.14 !important;
}

/* Arabic headline slightly larger to visually match EN */
html[lang="ar"] .hero.hero-slider .hero-slide-top .h1{
  font-size: clamp(36px, 2.45vw, 58px) !important;
}

/* Reduce the space between the headline area and the slide content by ~50% */
.hero.hero-slider .hero-slider-viewport .hero-slide-grid{
  row-gap: 8px !important;   /* row gap between hero-slide-top and content */
  column-gap: 16px !important;
}

/* Remove background/glow effects around the slider images (keep the image itself) */
.hero.hero-slider .hero-slide-media::before,
.hero.hero-slider .hero-slide-media::after{
  content: none !important;
  display: none !important;
}

/* QC PATCH v30 (2026-02-28): PACKAGES — remove HTML bullet markers (emoji-only lines) */
#packages .pkg-list{
  list-style: none !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin: 0 !important;
}

/* ================================
   QC PATCH v38 — ONLY (Hero headline + nav positioning)
   - Force hero headline to stay on ONE line (EN + AR)
   - Match EN/AR headline visual size (RTL tuned)
   - Move loader/progress + dots closer to slider content
   ================================ */
.hero.hero-slider .h1{
  white-space: nowrap;
  text-wrap: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  max-width: 100%;
  /* Tuned to keep the headline on a single row across viewports */
  font-size: clamp(13px, 2.2vw + 6px, 44px);
}
.hero.hero-slider .h1 br{ display:none; }

/* RTL tuning: keep the headline visually comparable to EN */
html[dir="rtl"] .hero.hero-slider .h1{
  font-size: clamp(13px, 2.0vw + 6px, 42px);
  letter-spacing: 0;
}

/* Bring dots + loader closer to the slider content */
.hero.hero-slider .hero-slider-nav{ margin-top: 2px; }
.hero.hero-slider .hs-progress{ margin-top: 3px; }

/* ================================
   QC PATCH v39 — ONLY (Hero headline sizing + nav spacing + hero height)
   Baseline: v38_header_nav_only
   Scope: ONLY Hero/Slider section (EN + AR)
   - Keep headline on ONE line (no wrap)
   - Make EN headline slightly smaller (nicer fit, never cropped)
   - Keep EN/AR headline visually similar size
   - Move loader/progress + dots closer
   - Shorten hero section height (padding + slider min-height)
   ================================ */

/* 1) Headline: enforce single line + slightly smaller (EN + AR) */
.hero.hero-slider .hero-slide-top .h1,
.hero.hero-slider .hero-slide-top h1,
.hero.hero-slider .h1{
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.hero.hero-slider .h1 br{ display:none !important; }

/* EN tuning (slightly smaller + tighter tracking so it stays elegant on one row) */
html[lang="en"] .hero.hero-slider .hero-slide-top .h1,
html:not([dir="rtl"]) .hero.hero-slider .hero-slide-top .h1{
  font-size: clamp(12px, 1.55vw + 6px, 40px) !important;
  letter-spacing: -0.03em !important;
}

/* AR tuning: match EN visually without over-sizing */
html[dir="rtl"] .hero.hero-slider .hero-slide-top .h1,
html[lang="ar"] .hero.hero-slider .hero-slide-top .h1{
  font-size: clamp(12px, 1.50vw + 6px, 40px) !important;
  letter-spacing: 0 !important;
}

/* 2) Bring dots + loader closer to the slider content */
.hero.hero-slider .hero-slider-nav{ margin-top: 0px !important; }
.hero.hero-slider .hs-progress{ margin-top: 1px !important; }

/* 3) Shorter hero: reduce padding + reduce slider minimum height */
.hero.hero-slider{ padding: 16px 0 6px !important; }
.hero.hero-slider .hero-slider-top{ gap: 6px !important; }
.hero.hero-slider .hero-slider-viewport{ margin-top: 6px !important; }

/* Reduce overall slider height a bit while keeping content readable */
.hero.hero-slider .hero-slider-track{ min-height: 420px !important; }
@media (max-width: 980px){
  .hero.hero-slider .hero-slider-track{ min-height: 480px !important; }
}
@media (max-width: 520px){
  .hero.hero-slider .hero-slider-track{ min-height: 460px !important; }
}

/* ===========================
   QC PATCH v40 — ONLY: Quote > Hosting Plan Options radio sizing
   - Scope: Build a Quick Quote modal (EN + AR)
   - Goal: proper radio size + centered inner dot (no other changes)
   =========================== */
.modal .hosting-wrap .hosting-card::before,
.modal .hosting-wrap .hosting-card::after{
  display:none !important;
  content:none !important;
}

.modal .hosting-wrap .hosting-card > input[type="radio"][name="hostingPlan"]{
  position:absolute !important;
  top: 14px !important;
  inset-inline-start: 16px !important;

  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;

  opacity: 1 !important;
  pointer-events: auto !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  border-radius: 999px !important;
  border: 2px solid rgba(34,174,209,0.38) !important;
  background: rgba(255,255,255,0.92) !important;

  display:grid !important;
  place-content:center !important;

  box-shadow: 0 10px 18px rgba(34,174,209,0.10) !important;
}

.modal .hosting-wrap .hosting-card > input[type="radio"][name="hostingPlan"]::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .18s ease;
  background: linear-gradient(90deg, rgba(219,50,77,0.95), rgba(34,174,209,0.90));
}

.modal .hosting-wrap .hosting-card > input[type="radio"][name="hostingPlan"]:checked{
  border-color: rgba(219,50,77,0.45) !important;
}

.modal .hosting-wrap .hosting-card > input[type="radio"][name="hostingPlan"]:checked::before{
  transform: scale(1);
}

.modal .hosting-wrap .hosting-card > input[type="radio"][name="hostingPlan"]:focus-visible{
  outline: 3px solid rgba(34,174,209,0.18) !important;
  outline-offset: 2px !important;
}

/* Keep the selected card highlight behavior unchanged */


/* =======================================================================
   QC PATCH v44 — ONLY: Build a Quick Quote → "📦 Choose a package" 2×2 grid
   Scope: Quote modal only (EN + AR). No global selector changes.
   ======================================================================= */
#quoteModal #pkgPills{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}
#quoteModal #pkgPills .pkg3d{
  width: 100% !important;
  margin: 0 !important;
}
#quoteModal #pkgPills .pkg3d-face{
  width: 100% !important;
  height: 100% !important;
}

/* Very small screens: allow 1 column to avoid overflow */
@media (max-width: 520px){
  #quoteModal #pkgPills{
    grid-template-columns: 1fr !important;
  }
}

/* QC PATCH v45 — ROI ARPU/MAU alignment (scoped, no global impact) */
#roi .roi-field label[for="roiMAU"],
#roi .roi-field label[for="roiARPU"]{
  min-height: 2.6em;           /* equalize label height so inputs align */
  display: flex;
  align-items: flex-end;
}

@media (max-width: 980px){
  #roi .roi-field label[for="roiMAU"],
  #roi .roi-field label[for="roiARPU"]{
    min-height: 0;             /* stacked layout: don't add extra space */
  }
}

/* ===================================================================
   QC PATCH v46 — Mobile Responsive Fixes (diagrams + slider media)
   Scope: MOBILE ONLY. No desktop UI changes.
   =================================================================== */
@media (max-width: 640px){

  /* Prevent horizontal overflow from media elements */
  #platform canvas,
  #roi canvas,
  #platform img,
  #roi img,
  .hero-slider img{
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* HERO: keep slider images contained and readable on small screens */
  .hero-slide-media{
    padding: 0 !important;
    align-items: center !important;
  }
  .hero-slide-media img{
    width: 100% !important;
    max-height: 260px !important;
    object-fit: contain;
  }

  /* PLATFORM: charts/diagrams must not overflow and must remain legible */
  #platform .tab-chart-wrap{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  #platform .tab-chart{
    width: 100% !important;
    max-width: 100% !important;
    /* Increase chart height on mobile for legibility */
    height: 220px !important;
  }

  /* PLATFORM: fixed-width bar labels can overflow on narrow devices */
  #platform .bar-row{
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* ROI: keep chart readable and prevent clipping */
  #roi .roi-chart{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  #roi #roiChart{
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
  }

  /* Any lightbox/gallery thumbnails: never force overflow */
.g-thumb,
.lb-img{
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  }
}

/* ==========================================
   Precise UI follow-up patch
   Scope: hero spacing, currency monograms, package alignment, WebGL polish, gallery image parity
   ========================================== */
.hero.hero-slider {
  padding: 6px 0 26px !important;
}

.hero-slide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.hero.hero-slider .hero-slider-nav {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

#packages .package h3{
  font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.25rem) !important;
  line-height: 1.22 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#packages .package .actions{
  width: 100%;
  justify-content: center;
}

#packages .package .actions .btn{
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  justify-content: center;
  text-align: center;
}

#demo .demo-watermark-logo{
  width: 494px !important;
  max-width: 72% !important;
  height: min(64%, 336px) !important;
  max-height: 336px !important;
  object-fit: contain !important;
  transform: none !important;
  transform-origin: center center !important;
}

#gallery .g-card[data-title="Alameed Coffee Lounge"] .g-thumb{
  display: block;
  width: 100% !important;
  height: 170px !important;
  padding: 0 !important;
  margin: 0 !important;
  aspect-ratio: auto;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.06) translateY(-8px);
  transform-origin: center top;
}
