/* QADMAT — قَدَمَات | Design system
   Palette: deep navy (night sea) + warm sand + teal accent */
:root {
  --navy-900: #0A1628;
  --navy-800: #0E1E36;
  --navy-700: #14263F;
  --navy-600: #1B3350;
  --sand-100: #F7F3EC;
  --sand-200: #EFE8DC;
  --sand-300: #E2D8C6;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --rose-400: #FB7185;
  --ink-900: #101828;
  --ink-600: #475467;
  --ink-400: #98A2B3;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-lg: 0 24px 60px -12px rgba(10, 22, 40, 0.35);
  --shadow-md: 0 12px 30px -8px rgba(10, 22, 40, 0.18);
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--sand-100);
  color: var(--ink-900);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { font-family: var(--font-ar); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

/* ---------- layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.nav__brand svg { display: block; }
.brand-name { font-weight: 700; font-size: 21px; letter-spacing: 0.5px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 0; }
.brand-ar {
  font-family: var(--font-ar, inherit); font-weight: 800; font-size: 21px; letter-spacing: .5px;
  color: inherit; white-space: nowrap; line-height: 1.35;
  background: linear-gradient(180deg, currentColor 30%, rgba(251,191,36,.92) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-steps { display: flex; justify-content: space-between; width: 100%; align-items: flex-end; margin: 2px 0 3px; padding: 0 1px; }
.brand-steps i {
  display: block; width: 6px; border-radius: 2px;
  background: linear-gradient(180deg, #FDE68A, #F59E0B);
  box-shadow: 0 0 6px rgba(251,191,36,.45);
  height: 3px;
}
.brand-steps i:nth-child(2) { height: 4.5px; opacity: .9; }
.brand-steps i:nth-child(3) { height: 6px; }
.brand-en {
  display: flex; justify-content: space-between; align-items: center; width: 100%; line-height: 1;
  font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: inherit; opacity: .9;
}
.brand-en::before, .brand-en::after {
  content: ""; flex: 1; height: 1px; margin: 0 7px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,.6), transparent);
}
.ai-chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: var(--teal-300, #5EEAD4); background: rgba(20,184,166,.14); border: 1px solid rgba(45,212,191,.45); border-radius: 999px; padding: 5px 12px; text-transform: uppercase; }
.brand-name span { color: var(--teal-400); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__link { color: var(--sand-200); font-size: 15px; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav__link:hover { opacity: 1; color: var(--teal-400); }
.nav__cta-group { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  background: transparent; color: var(--sand-200);
  border: 1px solid rgba(247, 243, 236, 0.3); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--teal-400); color: var(--teal-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  padding: 11px 22px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--navy-900);
  box-shadow: 0 8px 22px -6px rgba(20, 184, 166, 0.5);
}
.btn--primary:hover { box-shadow: 0 10px 26px -6px rgba(20, 184, 166, 0.65); transform: translateY(-1px); }
.btn--amber {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--navy-900);
  box-shadow: 0 8px 22px -6px rgba(245, 158, 11, 0.45);
}
.btn--amber:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--sand-100);
  border: 1px solid rgba(247, 243, 236, 0.28);
}
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-400); }
.btn--dark {
  background: var(--navy-800); color: var(--sand-100);
}
.btn--dark:hover { background: var(--navy-700); }
.btn--outline {
  background: var(--white); color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
}
.btn--outline:hover { background: var(--sand-200); }
.btn--danger {
  background: transparent; color: var(--rose-400);
  border: 1px solid rgba(251, 113, 133, 0.4);
}
.btn--danger:hover { background: rgba(251, 113, 133, 0.08); }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--lg { padding: 15px 34px; font-size: 17px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(245, 158, 11, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--sand-100);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center 80%, black 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-400);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -0.5px; }
body[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.45; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero__sub { font-size: 18px; color: var(--sand-300); margin-top: 18px; line-height: 1.75; max-width: 520px; }
body[dir="rtl"] .hero__sub { line-height: 2; }
.hero__ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 28px; color: var(--teal-400); font-weight: 800; }
.hero__stat span { font-size: 13px; color: var(--sand-300); opacity: 0.8; }

/* hero mock terminal */
.mock {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(247, 243, 236, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  direction: ltr;
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.1);
}
.mock__dot { width: 11px; height: 11px; border-radius: 50%; }
.mock__dot:nth-child(1) { background: #FF5F57; }
.mock__dot:nth-child(2) { background: #FEBC2E; }
.mock__dot:nth-child(3) { background: #28C840; }
.mock__title { margin-inline-start: 8px; font-size: 12px; color: var(--ink-400); font-family: var(--font-mono); }
.mock__body { padding: 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 2.05; color: #B9C4D3; min-height: 260px; }
body[dir="rtl"] .mock__body { font-family: var(--font-ar); direction: rtl; text-align: right; font-size: 14px; }
body[dir="rtl"] .mock__line { justify-content: flex-end; }
.mock__line { display: flex; gap: 10px; align-items: baseline; }
.mock__ok { color: #28C840; }
.mock__teal { color: var(--teal-400); }
.mock__amber { color: var(--amber-400); }
.mock__dim { color: #6B7A8C; }
.mock__cursor { display: inline-block; width: 8px; height: 15px; background: var(--teal-400); animation: blink 1.1s infinite; vertical-align: middle; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes qpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }

/* ---------- sections ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--teal-600); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
body[dir="rtl"] .section-head .kicker { letter-spacing: 0; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--navy-900); letter-spacing: -0.3px; }
body[dir="rtl"] .section-head h2 { letter-spacing: 0; }
.section-head p { color: var(--ink-600); margin-top: 14px; font-size: 16.5px; line-height: 1.8; }
body[dir="rtl"] .section-head p { line-height: 1.95; }

/* feature cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06), 0 8px 24px -12px rgba(10, 22, 40, 0.1);
  border: 1px solid rgba(10, 22, 40, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(20, 184, 166, 0.05));
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.card p { color: var(--ink-600); font-size: 14.5px; line-height: 1.8; }
body[dir="rtl"] .card p { line-height: 1.95; }

/* steps */
.step { position: relative; display: flex; gap: 20px; }
.step__num {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px -4px rgba(10, 22, 40, 0.35);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--navy-900); }
.step p { color: var(--ink-600); font-size: 14.5px; line-height: 1.85; }

/* ---------- pricing ---------- */
.pricing { background: var(--navy-900); color: var(--sand-100); }
.pricing .section-head h2, .pricing .price-card h3 { color: var(--sand-100); }
.price-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 243, 236, 0.12);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.price-card:hover { transform: translateY(-5px); border-color: rgba(45, 212, 191, 0.4); }
.price-card--featured {
  border-color: var(--teal-400);
  background: linear-gradient(165deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.02) 45%);
  box-shadow: 0 24px 60px -18px rgba(20, 184, 166, 0.4);
}
.price-card__flag {
  position: absolute; top: -13px; inset-inline-start: 30px;
  background: var(--teal-400); color: var(--navy-900);
  font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.price-card__desc { color: var(--sand-300); font-size: 13.5px; opacity: 0.85; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price b { font-size: 44px; font-weight: 800; color: var(--teal-400); letter-spacing: -1px; }
.price span { color: var(--sand-300); font-size: 14px; }
.price-card__note { color: var(--amber-400); font-size: 12.5px; margin-bottom: 22px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0 0 28px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--sand-200); align-items: flex-start; line-height: 1.6; }
.price-card li svg { flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- testimonial / trust ---------- */
.trust-band {
  background: var(--sand-200);
  border-block: 1px solid var(--sand-300);
}
.trust-band .container { display: flex; align-items: center; gap: 40px; justify-content: center; flex-wrap: wrap; padding-block: 26px; }
.trust-band .item { display: flex; align-items: center; gap: 10px; color: var(--ink-600); font-size: 14px; font-weight: 600; }
.trust-band .item svg { color: var(--teal-600); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item h3 { font-size: 15.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.faq-item p { color: var(--ink-600); font-size: 14px; line-height: 1.85; }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--sand-300);
  padding: 48px 0 32px;
  border-top: 3px solid var(--teal-500);
}
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; font-size: 13.5px; line-height: 1.9; opacity: 0.8; margin-top: 14px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer a { display: block; font-size: 13.5px; opacity: 0.75; margin-bottom: 9px; transition: color 0.2s, opacity 0.2s; }
.footer a:hover { color: var(--teal-400); opacity: 1; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; opacity: 0.6;
}

/* ---------- auth & app ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(700px 350px at 0% 100%, rgba(245, 158, 11, 0.07), transparent 55%),
    var(--navy-900);
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-card h1 { font-size: 23px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.auth-card > p { color: var(--ink-600); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-600); margin-bottom: 7px; }
.input {
  width: 100%;
  border: 1.5px solid #D5DBE4;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15); }
.input--error { border-color: var(--rose-400); }

/* password field with show/hide eye toggle */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 44px; }
.pw-eye {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none; background: none; cursor: pointer;
  color: var(--ink-400, #8B95A5); border-radius: 8px;
  transition: color .15s, background .15s;
}
.pw-eye:hover { color: var(--teal-600, #0D8F84); background: rgba(20,184,166,.10); }
body[dir="ltr"] .pw-wrap .input { padding-inline-end: 44px; padding-inline-start: 14px; }
textarea.input { min-height: 84px; resize: vertical; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-600); margin-top: 20px; }
.auth-alt a { color: var(--teal-600); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }

/* alerts */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.7;
  display: none;
}
.alert--error { background: #FEF2F3; color: #B42318; border: 1px solid #FECDCA; }
.alert--ok { background: #ECFDF5; color: #067647; border: 1px solid #A6F4C5; }
.alert--info { background: #FFFAEB; color: #B54708; border: 1px solid #FEDF89; }
.alert.visible { display: block; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy-900);
  color: var(--sand-200);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; }
.sidebar__brand .brand-name { font-size: 18px; color: var(--white); }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--sand-200); font-size: 14.5px; font-weight: 600;
  opacity: 0.75;
  transition: background 0.2s, opacity 0.2s, color 0.2s;
  width: 100%; text-align: start; background: transparent;
}
.nav-item svg { flex-shrink: 0; opacity: 0.9; }
.nav-item:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.nav-item.active { opacity: 1; background: rgba(45, 212, 191, 0.12); color: var(--teal-400); }
.sidebar__spacer { flex: 1; }
.sidebar__user {
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  padding: 14px 10px 4px;
  font-size: 12.5px;
}
.sidebar__user b { display: block; color: var(--white); font-size: 13.5px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user span { opacity: 0.65; }

.main { padding: 34px 38px; max-width: 1240px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; font-weight: 800; color: var(--navy-900); }
.page-head p { color: var(--ink-600); font-size: 14px; margin-top: 5px; }

/* stat tiles */
.stat {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid rgba(10, 22, 40, 0.06);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.05);
}
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--navy-900); margin-bottom: 4px; }
.stat span { font-size: 13px; color: var(--ink-600); font-weight: 600; }
.stat--teal b { color: var(--teal-600); }
.stat--amber b { color: var(--amber-500); }

/* tables */
.table-wrap {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(10, 22, 40, 0.07);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.05);
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: #C9D3E0; border-radius: 3px; }
th {
  text-align: start; padding: 13px 16px;
  background: var(--sand-200); color: var(--ink-600);
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  border-bottom: 1px solid var(--sand-300);
}
td { padding: 13px 16px; border-bottom: 1px solid #F0F2F5; color: var(--ink-900); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBFC; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700;
}
.badge--sent { background: #ECFDF5; color: #067647; }
.badge--queued { background: #FFFAEB; color: #B54708; }
.badge--draft { background: #F2F4F7; color: var(--ink-600); }
.badge--failed { background: #FEF2F3; color: #B42318; }
.badge--replied { background: #EEF4FF; color: #3538CD; }
.badge--filtered { background: #F2F4F7; color: #98A2B3; }
.badge--teal { background: rgba(20, 184, 166, 0.12); color: var(--teal-600); }
.badge--amber { background: rgba(245, 158, 11, 0.14); color: var(--amber-500); }
.badge--navy { background: rgba(10, 22, 40, 0.08); color: var(--navy-800); }

/* ATS score ring */
.ats-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ats-ring { position: relative; width: 148px; height: 148px; }
.ats-ring svg { transform: rotate(-90deg); }
.ats-ring b {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--navy-900);
}
.ats-ring b small { font-size: 11px; color: var(--ink-400); font-weight: 600; }
.ats-issues { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-600); flex: 1; min-width: 240px; }
.ats-issues .iss { display: flex; gap: 9px; align-items: flex-start; line-height: 1.65; }
.ats-issues .iss svg { flex-shrink: 0; margin-top: 3px; }

/* filters bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters .input, .filters select { width: auto; min-width: 140px; padding-block: 9px; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475467' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  padding-inline-end: 34px;
}
body[dir="rtl"] select.input { background-position: left 12px center; }
body[dir="ltr"] select.input { background-position: right 12px center; }

/* job card */
.job-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(10, 22, 40, 0.07);
  padding: 20px 22px; margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
  transition: border-color 0.2s, transform 0.2s;
}
.job-card:hover { border-color: rgba(20, 184, 166, 0.5); transform: translateY(-2px); }
.job-card h3 { font-size: 15.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.job-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-600); }
.job-card .meta span { display: inline-flex; gap: 5px; align-items: center; }
.job-card__side { text-align: end; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 22, 40, 0.66);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: 18px;
  max-width: 660px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 19px; font-weight: 800; color: var(--navy-900); margin-bottom: 18px; }
.modal .close-x {
  float: inline-end; background: none; color: var(--ink-400);
  font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 6px;
}
.modal .close-x:hover { background: var(--sand-200); color: var(--ink-900); }

/* dropzone */
.dropzone {
  border: 2px dashed #C4CCD6;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-600);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--teal-500); background: #F0FDFA; }
.dropzone svg { color: var(--teal-600); margin-bottom: 12px; }
.dropzone b { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 5px; }
.dropzone small { font-size: 12.5px; }

/* onboarding checklist */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.check {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: var(--radius); padding: 16px 20px;
  transition: border-color 0.2s;
}
.check:hover { border-color: rgba(20, 184, 166, 0.5); }
.check__icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-200); color: var(--ink-400);
}
.check.done .check__icon { background: #D1FAE5; color: #05603A; }
.check b { font-size: 14.5px; color: var(--ink-900); display: block; }
.check span { font-size: 12.5px; color: var(--ink-600); }
.check .btn { margin-inline-start: auto; }

/* checkout */
.plan-pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;
}
.pick {
  position: relative; text-align: start;
  background: var(--white);
  border: 2px solid #E3E7ED; border-radius: var(--radius);
  padding: 22px;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.pick:hover { border-color: #B4C0CE; }
.pick.selected { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12); }
.pick b { font-size: 16px; color: var(--navy-900); display: block; margin-bottom: 4px; }
.pick .p-price { font-size: 24px; font-weight: 800; color: var(--teal-600); margin: 8px 0 4px; }
.pick .p-price small { font-size: 12.5px; color: var(--ink-600); font-weight: 600; }
.pick p { font-size: 12.5px; color: var(--ink-600); line-height: 1.7; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gw {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #E3E7ED; border-radius: var(--radius-sm);
  padding: 12px 10px; font-size: 13px; font-weight: 700; color: var(--ink-600);
  background: var(--white); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.gw:hover { border-color: #B4C0CE; }
.gw.selected { border-color: var(--teal-500); color: var(--teal-600); background: #F0FDFA; }
.gw[disabled] { opacity: 0.45; cursor: not-allowed; }
.gw small { font-size: 10px; font-weight: 700; color: var(--amber-500); }

/* settings forms */
.set-card { margin-bottom: 18px; }
.set-card .card__icon { margin-bottom: 14px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; font-size: 14px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #C4CCD6; border-radius: 999px; transition: background 0.2s;
}
.slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  inset-inline-start: 3px; top: 3px;
  background: var(--white); border-radius: 50%; transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--teal-500); }
body[dir="ltr"] .switch input:checked + .slider::before { transform: translateX(20px); }
body[dir="rtl"] .switch input:checked + .slider::before { transform: translateX(-20px); }

/* report view */
.report-block { margin-bottom: 14px; }
.report-block h3 { font-size: 15px; margin-bottom: 10px; color: var(--navy-900); }
.report-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 14px; background: var(--sand-100);
  border-radius: 8px; font-size: 13.5px; margin-bottom: 6px;
}
.report-line span:last-child { font-weight: 700; color: var(--navy-800); }

/* message cards */
.msg {
  background: var(--white); border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
}
.msg .msg-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.msg b { font-size: 14px; color: var(--navy-900); }
.msg .msg-body { font-size: 13px; color: var(--ink-600); line-height: 1.8; white-space: pre-wrap; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 26px;
  z-index: 120;
  background: var(--navy-800); color: var(--sand-100);
  border-radius: 12px; padding: 14px 20px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-inline-start: 4px solid var(--teal-400);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: min(380px, calc(100vw - 52px));
}
body[dir="rtl"] .toast { left: 26px; right: auto; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.err { border-inline-start-color: var(--rose-400); }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--sand-300); margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  background: none; padding: 10px 18px; font-size: 14px; font-weight: 700;
  color: var(--ink-600); border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--navy-900); }
.tab.active { color: var(--teal-600); border-bottom-color: var(--teal-500); }

/* misc */
.muted { color: var(--ink-600); font-size: 13px; }
.spacer { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(10, 22, 40, 0.15);
  border-top-color: var(--teal-500);
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-veil { display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; padding: 60px; color: var(--ink-600); font-size: 14px; }

.empty {
  text-align: center; padding: 48px 20px; color: var(--ink-600);
}
.empty svg { color: var(--ink-400); margin-bottom: 14px; }
.empty b { display: block; font-size: 16px; color: var(--ink-900); margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 60; inset-inline-start: -280px; width: 260px;
    transition: inset-inline-start 0.28s;
  }
  .sidebar.open { inset-inline-start: 0; box-shadow: var(--shadow-lg); }
  .main { padding: 22px 18px; }
  .menu-btn { display: inline-flex !important; }
  .plan-pick { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .price b { font-size: 36px; }
  .job-card { flex-direction: column; }
  .job-card__side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .auth-card { padding: 30px 22px; }
  .nav__cta-group .btn--ghost { display: none; }
  .nav__brand .brand-name { font-size: 17px; }
  .nav__cta-group { gap: 8px; }
}
.menu-btn { display: none; background: transparent; color: var(--white); padding: 8px; border-radius: 8px; }
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* print report */
@media print {
  .sidebar, .nav, .btn, .filters { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .main { padding: 0; }
}

/* devplan + universal disabled state */
.btn:disabled, .btn[disabled] {
  opacity: 1; cursor: not-allowed; transform: none; box-shadow: none;
  background: var(--sand-200); color: var(--ink-500, #6B7280);
  border: 1.5px solid rgba(10, 22, 40, .14);
}

/* rotating matching line on landing mock terminal */
#mock-match { animation: mockSwap .5s ease; }
@keyframes mockSwap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* remember-me row on login */
.remember-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--ink-600, #475467); cursor: pointer; margin: 2px 0 4px;
  user-select: none;
}
.remember-row input { accent-color: var(--teal-500); width: 15px; height: 15px; cursor: pointer; }

/* back button — one clear, always-visible position on every inner page */
.back-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center;
  margin: -6px 0 10px; padding: 10px 0 4px;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-800); border: none;
  color: var(--white); font-size: 13.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 999px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(16,42,67,.18);
  transition: background .15s, transform .12s;
}
.btn-back:hover { background: var(--navy-900, #0A2350); transform: translateY(-1px); }
.btn-back svg { flex: 0 0 auto; }

/* billing period toggle */
.period-toggle .pt-btn {
  background: transparent; border: 1.5px solid rgba(45,212,191,.35); color: var(--sand-200);
  padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.period-toggle .pt-btn:hover { border-color: var(--teal-400); }
.period-toggle .pt-btn.selected { background: var(--teal-400); border-color: var(--teal-400); color: var(--navy-900); }

/* plan value notes */
.plan-why { font-size: 12.5px; color: var(--sand-200); opacity: .85; line-height: 1.7; margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(45,212,191,.08); border: 1px dashed rgba(45,212,191,.3); }
.autoapply-note { font-size: 11.5px; color: var(--sand-300); opacity: .75; text-align: center; margin: 6px 0 10px; }
.tamheer-note { font-size: 12.5px; line-height: 1.7; color: var(--navy-800); background: #FFF7E6; border: 1px solid #FBBF24; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.hire-disclaimer { max-width: 860px; margin: 26px auto 0; text-align: center; font-size: 13.5px; line-height: 1.9; color: var(--sand-300); padding: 14px 20px; border-top: 1px solid rgba(245,237,225,.14); }

/* development message band */
.dev-band { display: flex; gap: 14px; align-items: center; padding: 22px 26px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(45,212,191,.12), rgba(251,191,36,.07)); border: 1px solid rgba(45,212,191,.3); }
.dev-band b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--navy-900); }
.dev-band span { font-size: 14px; line-height: 1.8; color: var(--ink-700); }
.dev-band .ai-chip { flex-shrink: 0; }

/* interview prep modal */
.prep-sec { margin-bottom: 18px; }
.prep-sec h3 { font-size: 15px; font-weight: 800; color: var(--navy-900); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.prep-sec h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--teal-400); }
.prep-sec p { font-size: 13.5px; line-height: 1.9; color: var(--ink-700); white-space: pre-wrap; }
.prep-qa { border: 1px solid #E3E8EF; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #FAFBFC; }
.prep-q { font-weight: 700; font-size: 13.5px; color: var(--navy-900); margin-bottom: 6px; }
.prep-a { font-size: 13px; line-height: 1.8; color: var(--ink-600); white-space: pre-wrap; }
