:root {
  --brand: #16233f;
  --brand-dark: #0a1428;
  --brand-light: #edf0f8;
  --accent: #f0932b;
  --accent-dark: #c9720f;
  --ink: #101828;
  --muted: #64708a;
  --border: #e2e5ee;
  --bg: #f6f7fb;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #1e8e5a;
  --warning: #b8860b;
  --radius: 10px;
  --shadow-sm: 0 1px 4px rgba(10, 20, 40, 0.05);
  --shadow: 0 2px 10px rgba(10, 20, 40, 0.07);
  --shadow-lg: 0 16px 40px rgba(10, 20, 40, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Cairo has full Latin + Arabic glyph coverage, so one font-family rule
     now serves both LTR and RTL pages (previously LTR fell back to the
     browser default "Segoe UI" stack while only RTL got Cairo). */
  font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 14.5px;
  text-decoration: none;
  transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 4px 14px rgba(240, 147, 43, 0.32); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: 0 6px 18px rgba(240, 147, 43, 0.4); }
.btn-accent { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 4px 14px rgba(10, 20, 40, 0.24); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-dark { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 4px 14px rgba(10, 20, 40, 0.3); }
.btn-dark:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #9a2d21); color: #fff; box-shadow: 0 4px 14px rgba(192, 57, 43, 0.24); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo .mark { background: var(--brand); color: #fff; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-weight: 500; position: relative; padding-bottom: 3px; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); border-radius: 2px; transition: right .2s ease; }
.nav-links a:hover { color: var(--brand-dark); }
.nav-links a:hover::after { right: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.lang-switch { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; white-space: nowrap; }

/* ---------- Mobile nav burger + drawer ---------- */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; flex-shrink: 0; padding: 0;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  max-height: 0; overflow: hidden;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: max-height .28s ease;
}
.mobile-nav.open { max-height: 80vh; overflow-y: auto; }
.mobile-nav-links { display: flex; flex-direction: column; padding: 8px 20px; }
.mobile-nav-links a { padding: 13px 2px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav-links a:last-child { border-bottom: 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 22px; border-top: 1px solid var(--border); }
.mobile-nav-actions .lang-switch { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 76px; background: linear-gradient(160deg, var(--brand-dark), var(--brand) 70%, #24345c); overflow: hidden; color: #fff; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; top: -160px; inset-inline-end: -100px; background: radial-gradient(circle at 30% 30%, rgba(240,147,43,.26), rgba(240,147,43,0) 70%); }
.hero::after { width: 300px; height: 300px; bottom: -140px; inset-inline-start: -80px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), rgba(255,255,255,0) 70%); animation-delay: -7s; }
@keyframes floatBlob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.06); } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; letter-spacing: -0.02em; color: #fff; }
.hero p.lead { font-size: 18px; color: #c3cbdf; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(240,147,43,.16); border: 1px solid rgba(240,147,43,.4); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #ffb35c; font-weight: 600; margin-bottom: 18px; }
.hero.has-media::before, .hero.has-media::after { display: none; }
.hero-bg-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-bg-media img, .hero-bg-media video, .hero-bg-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero-bg-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,20,40,.88), rgba(22,35,63,.82) 55%, rgba(36,52,92,.72)); }
.hero-visual { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--border); animation: heroVisualIn .7s ease both; transition: transform .15s ease-out; }
@keyframes heroVisualIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.stat-row { display: flex; justify-content: space-between; margin-top: 30px; }
.stat-row div { text-align: center; }
.stat-row strong { display: block; font-size: 26px; color: var(--brand-dark); }
.stat-row span { font-size: 12.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-visual { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.feature-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; transition: transform .2s ease; }
.feature-card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Scroll-reveal animation ----------
   Content is fully visible by default (no-JS / JS-failed / crawlers) and only
   starts hidden-then-fades-in once the page confirms JS ran (html.js, set inline). */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view .reveal:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in-view .reveal:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in-view .reveal:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in-view .reveal:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in-view .reveal:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in-view .reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Decorative panel (used in place of stock photography) ---------- */
.visual-panel {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 280px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 65%, #24345c);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.visual-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 40%),
                     radial-gradient(circle at 85% 75%, rgba(240,147,43,.28) 0, rgba(240,147,43,0) 45%);
}
.visual-panel .grid-icons { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 32px; }
.visual-panel .grid-icons span { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 26px; backdrop-filter: blur(2px); animation: iconPulse 5s ease-in-out infinite; }
.visual-panel .grid-icons span:nth-child(2n) { animation-delay: -1.6s; }
.visual-panel .grid-icons span:nth-child(3n) { animation-delay: -3.2s; }
@keyframes iconPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .visual-panel .grid-icons span { animation: none; }
}

/* ---------- Admin-authored page content ---------- */
.page-content { color: var(--ink); font-size: 15.5px; line-height: 1.75; }
.page-content h2 { font-size: 22px; margin-top: 1.4em; }
.page-content h3 { font-size: 18px; margin-top: 1.2em; }
.page-content p { margin: 0 0 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em; padding-inline-start: 24px; }
.page-content a { text-decoration: underline; }
.page-content img { border-radius: 8px; margin: 12px 0; }

/* ---------- Map embed ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Pricing ---------- */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 36px; }
.pricing-card { text-align: center; position: relative; transition: transform .12s ease-out, box-shadow .2s ease; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.pricing-card .badge-featured { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.price { font-size: 40px; font-weight: 800; color: var(--brand-dark); margin: 14px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.cycle-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.cycle-switch input { opacity: 0; width: 0; height: 0; }
.cycle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 26px; transition: .2s; }
.cycle-slider::before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cycle-switch input:checked + .cycle-slider { background: var(--brand); }
.cycle-switch input:checked + .cycle-slider::before { transform: translateX(20px); }
.plan-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
html[dir="rtl"] .plan-features { text-align: right; }
.plan-features li { padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink); }
.plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #c3cbdf; padding: 48px 0 24px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; color: #8b96b5; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14.5px; background: #fff; color: var(--ink);
  font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease; box-shadow: 0 1px 2px rgba(10, 20, 40, .03);
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #a3acc2; }
input:hover, select:hover, textarea:hover { border-color: #c7cede; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(22, 35, 63, .12); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-inline-end: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364708a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
html[dir="rtl"] select { background-position: left 12px center; padding-inline-end: 14px; padding-inline-start: 38px; }
select:disabled { cursor: not-allowed; opacity: .6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-text { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Modern file input ---------- */
input[type=file] {
  width: 100%; padding: 10px 12px; border: 1.5px dashed var(--border); border-radius: 8px;
  background: var(--bg); color: var(--muted); font-size: 13.5px; font-family: inherit; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
input[type=file]:hover { border-color: var(--brand); background: var(--brand-light); }
input[type=file]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
input[type=file]::file-selector-button {
  padding: 7px 16px; margin-inline-end: 12px; border: none; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  font-weight: 600; font-size: 13px; cursor: pointer; transition: opacity .15s ease;
}
input[type=file]::file-selector-button:hover { opacity: .9; }

.auth-wrap {
  min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: radial-gradient(circle at 15% 10%, var(--brand-light), transparent 55%), radial-gradient(circle at 85% 90%, var(--brand-light), transparent 50%), var(--bg);
}
.auth-card {
  max-width: 460px; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px;
  box-shadow: 0 20px 48px rgba(10, 20, 40, 0.14); position: relative; overflow: hidden;
}
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--brand), var(--brand-dark)); }
.auth-card h2 { margin-bottom: 6px; font-size: 24px; letter-spacing: -.01em; }
.auth-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }
.plan-pick { border: 2px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.plan-pick:hover { border-color: var(--brand); transform: translateY(-2px); }
.plan-pick input { display: none; }
.plan-pick.active, .plan-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.plan-pick .name { font-weight: 700; font-size: 14px; }
.plan-pick .p { font-size: 13px; color: var(--muted); }

/* ---------- Auth split-hero (login/register) ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-split-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 440px; margin: 0 auto; width: 100%; }
.auth-split-form .logo { margin-bottom: 40px; }
.auth-split-form h1 { font-size: 27px; margin-bottom: 6px; letter-spacing: -.01em; }
.auth-split-form .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.auth-social .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-foot-link { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.auth-split-panel {
  position: relative; background: linear-gradient(160deg, var(--brand-dark), var(--brand) 60%, #24345c);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.auth-split-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 15%, rgba(240,147,43,.2), transparent 45%), radial-gradient(circle at 85% 85%, rgba(255,255,255,.08), transparent 50%); }
.auth-split-panel > * { position: relative; z-index: 1; }
.auth-split-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(240,147,43,.16); border: 1px solid rgba(240,147,43,.4); color: #ffb35c; padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; margin-bottom: 22px; width: fit-content; }
.auth-split-panel h2 { font-size: 32px; line-height: 1.22; margin-bottom: 16px; max-width: 420px; color: #fff; }
.auth-split-panel p.desc { color: #c3cbdf; font-size: 15px; max-width: 420px; }
.auth-split-stats { display: flex; gap: 40px; margin-top: 36px; }
.auth-split-stats strong { display: block; font-size: 26px; color: var(--accent); }
.auth-split-stats span { font-size: 12.5px; color: #a8b1c9; }
.auth-split-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #8b96b5; }
.auth-split-foot a { color: #c3cbdf; }
.auth-split-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: #fff; }
.auth-split-logo .mark { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-panel { display: none; }
  .auth-split-form { padding: 32px 24px; }
}

/* A longer form (registration) needs more breathing room than the login
   split's 440px — this modifier widens just the form panel's own column and
   its content cap, without touching the shared .auth-split/.auth-split-form
   rules every other auth page still uses. */
.auth-split--wide { grid-template-columns: 0.86fr 1.14fr; }
.auth-split--wide .auth-split-form { max-width: 600px; padding: 48px 56px; }
@media (max-width: 900px) {
  .auth-split--wide { grid-template-columns: 1fr; }
  .auth-split--wide .auth-split-form { padding: 32px 24px; }
}

.auth-form-section { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.auth-form-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.auth-form-section-title {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: 16px;
}
.auth-form-section-title .num {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); font-size: 11px; font-weight: 800;
}

.password-strength { margin-top: 8px; }
.password-strength-track { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.password-strength-fill { height: 100%; width: 0%; border-radius: 3px; background: #d1453b; transition: width .2s ease, background-color .2s ease; }
.password-strength-label { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }

.auth-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 4px;
}
.auth-checkbox-row input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.auth-checkbox-row a { color: var(--brand); font-weight: 600; }

.auth-security-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--brand-light); font-size: 12.5px; color: var(--brand-dark); line-height: 1.45;
}

.password-field { position: relative; }
.password-field input { padding-inline-end: 42px; }
.password-toggle {
  position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 4px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: var(--muted); border-radius: 6px; padding: 0;
}
.password-toggle:hover { color: var(--brand); background: var(--brand-light); }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle[data-visible="true"] .icon-eye { display: none; }
.password-toggle[data-visible="true"] .icon-eye-off { display: block; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e7f6ee; color: var(--success); border: 1px solid #b7e4cc; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f4c3bd; }

/* ---------- App shell (user/admin panels) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: linear-gradient(160deg, var(--brand-dark), var(--brand) 75%); color: #c3cbdf; flex-shrink: 0; display: flex; flex-direction: column; box-shadow: 2px 0 12px rgba(0,0,0,.08); }
.sidebar .brand { padding: 20px; font-weight: 800; color: #fff; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.sidebar nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: #c3cbdf; font-size: 14px; font-weight: 500; margin-bottom: 2px; position: relative; transition: background .15s ease, color .15s ease, padding-inline-start .15s ease; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 700; }
.sidebar nav a.active::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
.sidebar nav .nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #8b96b5; padding: 14px 14px 6px; }
.sidebar nav .nav-section:first-child { padding-top: 4px; }
.sidebar nav a.locked { opacity: .55; }
.sidebar nav a .lock { font-size: 10px; margin-inline-start: 2px; }
.sidebar .foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8b96b5; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); position: relative; z-index: 5; gap: 16px; }
.topbar .who { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- Topbar global search ---------- */
.topbar-search { position: relative; flex: 1; max-width: 360px; margin: 0; }
.topbar-search input[type="search"] { width: 100%; padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13.5px; background: var(--bg); color: var(--ink); }
.topbar-search input[type="search"]:focus { outline: none; border-color: var(--brand); background: #fff; }
.search-dropdown { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; inset-inline-end: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 20; padding: 6px 0; text-align: start; }
.search-dropdown-group { padding: 8px 14px; }
.search-dropdown-group + .search-dropdown-group { border-top: 1px solid var(--border); }
.search-dropdown-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.search-dropdown-group a { display: block; padding: 6px 4px; font-size: 13.5px; color: var(--ink); border-radius: 6px; }
.search-dropdown-group a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.search-dropdown-empty { padding: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- City combobox: progressive enhancement over <select name="city"> ---------- */
.city-combo { position: relative; }
.city-combo .city-select-native { display: none; }
.city-combo-list { list-style: none; margin: 0; }
.city-combo-option { padding: 8px 14px; font-size: 13.5px; color: var(--ink); cursor: pointer; border-radius: 6px; }
.city-combo-option:hover, .city-combo-option.is-active { background: var(--brand-light); color: var(--brand-dark); }
.city-combo-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .topbar-search { max-width: 150px; }
  .topbar { padding: 0 14px; gap: 8px; }
}
.content { padding: 28px; flex: 1; animation: contentFadeIn .35s ease both; }
@keyframes contentFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 23px; margin: 0; letter-spacing: -.01em; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.kpi::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--brand), var(--accent)); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi .label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 27px; font-weight: 800; color: var(--brand-dark); margin-top: 4px; }
.kpi .delta { font-size: 12.5px; color: var(--success); font-weight: 600; }
.kpi .delta.down { color: var(--danger); }

.chart-box { position: relative; height: 220px; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 13px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--border); }
html[dir="rtl"] table.data th, html[dir="rtl"] table.data td { text-align: right; }
table.data th { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; border-bottom: none; }
table.data tr:last-child td { border-bottom: none; }
table.data tr { transition: background .12s ease; }
table.data tr:hover td { background: var(--brand-light); }

.badge { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.badge-green { background: #e7f6ee; color: var(--success); }
.badge-yellow { background: #fdf3e0; color: var(--warning); }
.badge-red { background: #fdecea; color: var(--danger); }
.badge-gray { background: #eef1f0; color: var(--muted); }
.badge-blue { background: #e7effd; color: #1a56c4; }

.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }

.line-items { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.line-items th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; }
html[dir="rtl"] .line-items th { text-align: right; }
.line-items td { padding: 6px 8px; }
.line-items input { padding: 8px; }
.total-row { text-align: right; font-size: 18px; font-weight: 800; color: var(--brand-dark); margin-top: 10px; }
html[dir="rtl"] .total-row { text-align: left; }

/* ---------- Gantt schedule ---------- */
.gantt-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.gantt-grid { display: grid; align-items: stretch; position: relative; }
.gantt-head-label, .gantt-row-label { position: sticky; inset-inline-start: 0; background: #fff; z-index: 2; padding: 8px 14px; font-size: 12.5px; font-weight: 600; border-inline-end: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; align-items: center; box-sizing: border-box; height: 34px; }
.gantt-head-label { background: #fafcfb; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; z-index: 3; }
.gantt-day { text-align: center; font-size: 10.5px; color: var(--muted); padding: 4px 2px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid #f0f3f2; background: #fafcfb; box-sizing: border-box; height: 34px; }
.gantt-day.weekend { background: #f3f6f5; }
.gantt-day .dow { display: block; font-size: 9px; opacity: .7; }
.gantt-project-row { grid-column: 1 / -1; background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: 12.5px; padding: 0 14px; border-bottom: 1px solid var(--border); position: sticky; inset-inline-start: 0; box-sizing: border-box; height: 34px; display: flex; align-items: center; }
.gantt-task-cell { border-bottom: 1px solid var(--border); border-inline-end: 1px solid #f0f3f2; height: 38px; box-sizing: border-box; position: relative; }
.gantt-row-label { height: 38px; }
.gantt-bar { position: relative; margin: 6px 3px; height: 20px; border-radius: 5px; background: var(--muted); display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,.15); box-sizing: border-box; }
.gantt-bar.status-pending { background: linear-gradient(135deg, #98a5a3, #7f8b89); }
.gantt-bar.status-in_progress { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.gantt-bar.status-done { background: linear-gradient(135deg, var(--success), #14713f); }
/* Critical-path tasks (float = 0, from CriticalPathCalculator): same gradient fills as
   the status-* modifiers above, just flagged with a bold red accent border/glow so the
   chain that drives the project's finish date is easy to spot at a glance. */
.gantt-bar.critical { border: 2px solid var(--danger); box-shadow: 0 0 0 1px rgba(214,69,65,.35), 0 1px 3px rgba(0,0,0,.15); }
.gantt-today-line { grid-row: 1 / -1; border-inline-start: 2px solid var(--danger); position: relative; }
.gantt-today-line::before { content: "Today"; position: absolute; top: -18px; inset-inline-start: -14px; font-size: 9px; color: var(--danger); font-weight: 700; white-space: nowrap; }
.gantt-deps-overlay { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.gantt-dep-line { stroke: var(--danger); stroke-width: 1.5; fill: none; opacity: .55; }
.float-badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #eef1f0; color: var(--muted); font-weight: 600; }
.float-badge.zero { background: #fde8e7; color: var(--danger); }
.dependency-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: #eef1f0; border-radius: 999px; padding: 2px 4px 2px 9px; margin: 2px; }
html[dir="rtl"] .dependency-chip { padding: 2px 9px 2px 4px; }
.dependency-chip form { display: inline-flex; margin: 0; }
.dependency-chip button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1; padding: 0 4px; }
.dependency-chip button:hover { color: var(--danger); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.tabs a:hover { color: var(--brand-dark); text-decoration: none; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }

.card-list .card, .toolbar + .card, .content > .card { transition: box-shadow .18s ease; }
.content .card:hover { box-shadow: var(--shadow); }

/* ---------- Quick Estimate calculator ---------- */
.qe-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 40px 0; }
.qe-hero h1 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.qe-hero p { color: #c3cbdf; margin: 0; }
.qe-badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.qe-badge { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.qe-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding: 28px 0 60px; }
.qe-summary { position: sticky; top: 90px; }
.qe-summary .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.qe-summary .mini-kpi { border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.qe-summary .mini-kpi .l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.qe-summary .mini-kpi .v { font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.qe-summary .total-box { background: var(--brand-dark); color: #fff; border-radius: 10px; padding: 16px; text-align: center; margin: 10px 0; }
.qe-summary .total-box .label { font-size: 11px; opacity: .8; text-transform: uppercase; }
.qe-summary .total-box .value { font-size: 26px; font-weight: 800; }
.qe-summary .breakdown { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.qe-summary .breakdown div { display: flex; justify-content: space-between; padding: 3px 0; }
.breakdown { color: var(--muted); }
.breakdown div { display: flex; justify-content: space-between; padding: 3px 0; }

.qe-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.qe-pick-card { border: 2px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; transition: all .12s; }
.qe-pick-card:hover { border-color: var(--brand); }
.qe-pick-card.selected { border-color: var(--brand); background: var(--brand-light); }
.qe-pick-card .name { font-weight: 700; font-size: 13.5px; }
.qe-pick-card .price { font-size: 12.5px; color: var(--brand-dark); font-weight: 600; margin-top: 3px; }
.qe-pick-card .desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.qe-pick-card input { display: none; }

.qe-addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qe-addon-card { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.qe-addon-card:hover { border-color: var(--brand); }
.qe-addon-card.selected { border-color: var(--brand); background: var(--brand-light); }
.qe-addon-card .name { font-weight: 700; font-size: 13px; }
.qe-addon-card .price { font-size: 11.5px; color: var(--brand-dark); font-weight: 600; }
.qe-addon-card .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.qe-addon-card > input[type="checkbox"] { margin-top: 3px; }
.qe-addon-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qe-addon-qty span { font-size: 11px; color: var(--muted); font-weight: 600; }
.qe-addon-qty input { width: 64px; padding: 4px 6px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px; }
.qe-pro-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; margin-inline-start: 5px; vertical-align: middle; }

@media (max-width: 900px) {
  .qe-layout { grid-template-columns: 1fr; }
  .qe-summary { position: static; }
  .qe-pick-grid { grid-template-columns: 1fr 1fr; }
  .qe-addon-grid { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.how-step { text-align: center; position: relative; }
.how-step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin: 0 auto 14px; }
.how-step h3 { font-size: 16px; }
.how-step p { color: var(--muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .12s ease-out, box-shadow .2s ease; }
.testi-card:hover { box-shadow: var(--shadow-lg); }
.testi-card .stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.testi-card p.quote { font-size: 14.5px; color: var(--ink); margin-bottom: 16px; }
.testi-card .author { display: flex; align-items: center; gap: 10px; }
.testi-card .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.testi-card .name { font-weight: 700; font-size: 13.5px; }
.testi-card .role { font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 18px 4px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 4px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- App mockup (CSS-built product preview, no screenshot needed) ---------- */
.app-mockup { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.18); animation: heroVisualIn .7s ease both; }
.app-mockup .mockup-bar { background: #eef1f0; padding: 10px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }
.app-mockup .mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe3; }
.app-mockup .mockup-dot:nth-child(1) { background: #ff6159; }
.app-mockup .mockup-dot:nth-child(2) { background: #ffbd2e; }
.app-mockup .mockup-dot:nth-child(3) { background: #28c840; }
.app-mockup .mockup-tab { margin-inline-start: 10px; font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; }
.app-mockup .mockup-body { padding: 20px; background: var(--bg); }
.app-mockup .mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.app-mockup .mockup-kpi { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.app-mockup .mockup-kpi .mk-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.app-mockup .mockup-kpi .mk-value { font-size: 17px; font-weight: 800; color: var(--brand-dark); margin-top: 3px; }
.app-mockup .mockup-chart { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; align-items: flex-end; gap: 6px; height: 86px; }
.app-mockup .mockup-chart span { flex: 1; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); border-radius: 4px 4px 0 0; animation: mockupBar 3.4s ease-in-out infinite; transform-origin: bottom; }
.app-mockup .mockup-chart span:nth-child(2n) { animation-delay: -1.1s; }
.app-mockup .mockup-chart span:nth-child(3n) { animation-delay: -2.2s; }
@keyframes mockupBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .app-mockup { animation: none; }
  .app-mockup .mockup-chart span { animation: none; }
}

/* ---------- Comprehensive feature showcase (categorized) ---------- */
.feature-category { margin-bottom: 56px; }
.feature-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.feature-category-head .cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.feature-category-head h3 { font-size: 19px; margin: 0; }
.feature-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-mini-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feature-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.feature-mini-card .mini-icon { font-size: 19px; flex-shrink: 0; line-height: 1.3; }
.feature-mini-card h4 { font-size: 14px; margin: 0 0 3px; }
.feature-mini-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Solutions by role ---------- */
.role-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-card .role-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 23px; margin: 0 auto 14px; }
.role-card h3 { font-size: 15.5px; }
.role-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Saudi Vision 2030 alignment panel (Saudi-green, deliberately distinct
   from the product's own brand palette — this is about the Kingdom, not the product) ---------- */
.vision2030-panel { background: linear-gradient(135deg, #0b6e4f, #063d2c 75%); border-radius: 20px; padding: 44px; color: #fff; position: relative; overflow: hidden; }
.vision2030-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 45%); pointer-events: none; }
.vision2030-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.vision2030-panel h2 { color: #fff; }
.vision2030-panel p.lead { color: rgba(255,255,255,.82); max-width: 640px; }
.vision2030-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; position: relative; z-index: 1; }
.vision2030-pillar { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 18px; }
.vision2030-pillar .vp-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.vision2030-pillar h4 { font-size: 14.5px; margin: 0 0 6px; color: #fff; }
.vision2030-pillar p { font-size: 13px; color: rgba(255,255,255,.78); margin: 0; line-height: 1.55; }

/* ---------- Trust badges strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; align-items: center; padding: 20px 0; }
.trust-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust-badge .tb-icon { font-size: 18px; }

/* ---------- Footer: richer link set + Vision 2030 strip ---------- */
.footer-vision-strip { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #a9c4bd; font-size: 12.5px; }
.footer-vision-strip .vision2030-badge { margin-bottom: 0; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.footer-newsletter input { flex: 1; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.footer-newsletter input::placeholder { color: #a9c4bd; }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
  .feature-mini-grid { grid-template-columns: 1fr; }
  .vision2030-pillars { grid-template-columns: 1fr; }
  .vision2030-panel { padding: 28px 22px; }
  .app-mockup .mockup-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .site-header .nav-links, .site-header .header-actions { display: none; }
  .site-header .container { height: 62px; }
  .nav-burger { display: flex; }
  .mobile-nav { display: block; }
  .logo { font-size: 17px; }
  .logo .mark { width: 28px; height: 28px; font-size: 14px; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; max-height: 60vh; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 16px; }
  table.data { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Support ticket thread ---------- */
.ticket-thread { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.ticket-msg { max-width: 82%; padding: 12px 14px; border-radius: 12px; background: #f3f5f4; border: 1px solid var(--border); }
.ticket-msg-me { align-self: flex-end; background: var(--brand-light); border-color: transparent; margin-inline-start: auto; }
.ticket-msg-them { align-self: flex-start; }
.ticket-msg-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ticket-msg-body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.ticket-msg-attachment { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--brand); text-decoration: none; transition: color .15s ease; }
.ticket-msg-attachment:hover { color: var(--brand-dark); }

/* ---------- Pricing comparison table ---------- */
.compare-table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.compare-table th, table.compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
table.compare-table th:first-child, table.compare-table td:first-child { text-align: start; font-weight: 500; }
table.compare-table thead th { font-weight: 700; background: var(--brand); color: #fff; position: sticky; top: 0; }
table.compare-table thead th:first-child { background: #fff; color: var(--ink); }
table.compare-table .yes { color: var(--success); font-weight: 700; }
table.compare-table .no { color: var(--border); }

/* ---------- Trust strip (certificates) ---------- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; opacity: .85; }
.trust-strip img { max-height: 44px; filter: grayscale(30%); }

/* Prevents any stray wide element from forcing the whole page to scroll horizontally. */
html, body { max-width: 100%; overflow-x: hidden; }
