/* ═══════════════════════════════════════════════════════════════
   IDM Simulation Lab — Portal CSS
   Design system: IDM Life Decision Simulator
   Light • Clean • Professional • Tailwind-inspired
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --idm-bg: #F6F8FC;
  --idm-text: #152238;
  --idm-muted: #607089;
  --idm-primary: #1769E0;
  --idm-primary-hover: #0d56c2;
  --idm-secondary: #38A8E8;
  --idm-success: #16825D;
  --idm-danger: #dc2626;
  --idm-border: #DCE4EF;
  --idm-accent-bg: #E6F4FF;
  --idm-dark: #0A1E3E;
  --idm-card-shadow: 0 1px 3px rgba(21,34,56,0.06), 0 1px 2px rgba(21,34,56,0.04);
  --idm-card-shadow-hover: 0 10px 25px rgba(21,34,56,0.10), 0 4px 10px rgba(21,34,56,0.06);
  --idm-radius: 12px;
  --idm-radius-sm: 8px;
  --idm-radius-lg: 16px;
  --idm-font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --idm-font-ar: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --idm-transition: all 0.2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--idm-font-ar);
  background: var(--idm-bg);
  color: var(--idm-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
html[lang="en"] body { font-family: var(--idm-font-en); }
a { color: var(--idm-primary); text-decoration: none; transition: var(--idm-transition); }
a:hover { color: var(--idm-primary-hover); }
img { max-width: 100%; height: auto; }

/* ─── Layout ─────────────────────────────────────────────────── */
.main { min-height: calc(100vh - 200px); }
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ─── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--idm-border);
  box-shadow: 0 1px 2px rgba(21,34,56,0.04);
}
.header__container {
  max-width: 72rem; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem; flex-wrap: nowrap;
}
.header__brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header__logo { height: 36px; width: auto; flex-shrink: 0; }
.header__title { font-size: 1.0625rem; font-weight: 700; color: var(--idm-dark); line-height: 1.3; white-space: nowrap; }
.header__nav { display: none; align-items: center; gap: 1.5rem; flex-wrap: nowrap; white-space: nowrap; }
.header__nav-link { font-size: 0.875rem; font-weight: 500; color: var(--idm-text); text-decoration: none; transition: color var(--idm-transition); white-space: nowrap; }
.header__nav-link:hover { color: var(--idm-primary); }
.header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: nowrap; }
.header__auth { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
@media (min-width: 900px) {
  .header__nav { display: flex; }
}

/* ─── Language Toggle ────────────────────────────────────────── */
.lang-toggle {
  padding: 0.375rem 0.75rem; border-radius: var(--idm-radius-sm);
  background: var(--idm-accent-bg); color: var(--idm-primary);
  font-weight: 600; font-size: 0.875rem;
  border: 1px solid var(--idm-border); cursor: pointer;
  transition: var(--idm-transition);
}
.lang-toggle:hover { background: var(--idm-primary); color: #fff; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--idm-radius-sm);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  transition: var(--idm-transition); border: 1px solid transparent;
  white-space: nowrap; text-decoration: none;
}
.btn--primary { background: var(--idm-primary); color: #fff; }
.btn--primary:hover { background: var(--idm-primary-hover); box-shadow: 0 4px 12px rgba(23,105,224,0.25); }
.btn--ghost { background: transparent; color: var(--idm-text); border-color: var(--idm-border); }
.btn--ghost:hover { background: var(--idm-accent-bg); color: var(--idm-primary); border-color: var(--idm-primary); }
.btn--lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-radius: var(--idm-radius); }
.btn--sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--idm-danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ─── View System ────────────────────────────────────────────── */
.view { width: 100%; }

/* ─── Landing Hero ───────────────────────────────────────────── */
.landing__hero { text-align: center; padding: 4rem 1rem 3rem; max-width: 72rem; margin: 0 auto; }
.landing__heading { font-size: 2rem; font-weight: 800; color: var(--idm-dark); margin-bottom: 1rem; line-height: 1.2; }
@media (min-width: 768px) { .landing__heading { font-size: 2.75rem; } }
.landing__desc { font-size: 1.125rem; color: var(--idm-muted); max-width: 42rem; margin: 0 auto 2rem; line-height: 1.7; }
.landing__cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── Promo Sections ─────────────────────────────────────────── */
.promo-section { padding: 3rem 1rem; }
.promo-section--alt { background: #fff; border-top: 1px solid var(--idm-border); border-bottom: 1px solid var(--idm-border); }
.promo-section__inner { max-width: 72rem; margin: 0 auto; }
.promo-section__title { font-size: 1.75rem; font-weight: 700; color: var(--idm-dark); text-align: center; margin-bottom: 0.75rem; }
.promo-section__lead { font-size: 1.125rem; color: var(--idm-muted); text-align: center; max-width: 36rem; margin: 0 auto 2rem; line-height: 1.6; }
.promo-section__text { max-width: 42rem; margin: 0 auto; }
.promo-section__text p { color: var(--idm-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ─── Benefits Grid ──────────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 1.75rem;
  text-align: center; box-shadow: var(--idm-card-shadow);
  transition: var(--idm-transition);
}
.benefit-card:hover { box-shadow: var(--idm-card-shadow-hover); transform: translateY(-4px); }
.benefit-card__icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.benefit-card h3, .benefit-card h4 { font-size: 1.125rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 0.5rem; }
.benefit-card p { color: var(--idm-muted); font-size: 0.9375rem; line-height: 1.6; }

/* ─── Stats Strip ────────────────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat__value { font-size: 2rem; font-weight: 800; color: var(--idm-primary); line-height: 1; }
.stat__label { font-size: 0.875rem; color: var(--idm-muted); margin-top: 0.375rem; }

/* ─── Simulator Grid ─────────────────────────────────────────── */
.simulator-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 640px) { .simulator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .simulator-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── Simulator Card (JS dynamic HTML) ───────────────────────── */
.sim-card {
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 1.5rem;
  box-shadow: var(--idm-card-shadow); transition: var(--idm-transition);
  display: flex; flex-direction: column; position: relative;
}
.sim-card:hover { box-shadow: var(--idm-card-shadow-hover); transform: translateY(-4px); border-color: var(--idm-primary); }
.sim-card__badges { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.badge { font-size: 0.6875rem; font-weight: 600; padding: 0.1875rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.025em; }
.badge--free { background: #dcfce7; color: #166534; }
.badge--credits { background: var(--idm-accent-bg); color: var(--idm-primary); }
.badge--featured { background: #fef3c7; color: #92400e; }
.badge--new { background: #fce7f3; color: #9f1239; }
.badge--maintenance { background: #fee2e2; color: #991b1b; }
.sim-card__icon { font-size: 2.25rem; margin-bottom: 0.5rem; display: block; }
.sim-card__title { font-size: 1.125rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 0.375rem; }
.sim-card__desc { color: var(--idm-muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 1rem; flex-grow: 1; }
.sim-card__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.sim-card__meta { font-size: 0.75rem; color: var(--idm-muted); }
.sim-card__access { font-size: 0.75rem; font-weight: 600; padding: 0.1875rem 0.5rem; border-radius: var(--idm-radius-sm); margin-bottom: 0.75rem; display: inline-block; }
.sim-card__access--granted { background: #dcfce7; color: #166534; }
.sim-card__access--denied { background: #fee2e2; color: #991b1b; }
.sim-card__access--login { background: var(--idm-accent-bg); color: var(--idm-primary); }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--idm-primary), var(--idm-secondary));
  border-radius: var(--idm-radius-lg); padding: 3rem 2rem;
  text-align: center; max-width: 72rem; margin: 2rem auto; color: #fff;
}
.cta-banner h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1.0625rem; opacity: 0.9; margin-bottom: 1.5rem; }
.cta-banner .btn--primary { background: #fff; color: var(--idm-primary); }
.cta-banner .btn--primary:hover { background: var(--idm-dark); color: #fff; }
.cta-banner .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-banner .btn--ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────── */
.promo-footer { background: var(--idm-dark); color: #fff; padding: 3rem 1rem 1.5rem; margin-top: auto; }
.promo-footer__inner { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .promo-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.promo-footer__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.promo-footer__logo { height: 36px; }
.promo-footer__name { font-size: 1.125rem; font-weight: 700; }
.promo-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.promo-footer__links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: var(--idm-transition); }
.promo-footer__links a:hover { color: #fff; text-decoration: underline; }
.promo-footer__copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.5); max-width: 72rem; margin: 1.5rem auto 0; }

/* ─── Auth Card (Login/Register) ─────────────────────────────── */
.auth-card {
  max-width: 28rem; margin: 3rem auto;
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 2rem;
  box-shadow: var(--idm-card-shadow);
}
.auth-card__title { font-size: 1.5rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 1.5rem; text-align: center; }
.auth-card__error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.75rem 1rem; border-radius: var(--idm-radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.auth-card__links { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--idm-muted); display: flex; flex-direction: column; gap: 0.5rem; }
.auth-card__links a { color: var(--idm-primary); font-weight: 600; cursor: pointer; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--idm-text); margin-bottom: 0.375rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid var(--idm-border); border-radius: var(--idm-radius-sm);
  font-size: 0.9375rem; color: var(--idm-text); background: #fff;
  transition: var(--idm-transition); font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--idm-primary); box-shadow: 0 0 0 3px rgba(23,105,224,0.1);
}
.form-group--checkbox { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-group--checkbox input { width: auto; margin-top: 0.25rem; }
.form-group--checkbox label { font-size: 0.875rem; font-weight: 400; color: var(--idm-muted); }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ─── Dashboard ──────────────────────────────────────────────── */
.dashboard__welcome-bar {
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 1.5rem 2rem;
  max-width: 72rem; margin: 1.5rem auto; box-shadow: var(--idm-card-shadow);
}
.dashboard__greeting { font-size: 1.5rem; font-weight: 700; color: var(--idm-dark); }
.dashboard__subtitle { color: var(--idm-muted); font-size: 0.9375rem; margin-top: 0.25rem; }
.dashboard__widgets { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 72rem; margin: 0 auto 1.5rem; padding: 0 1rem; }
@media (min-width: 768px) { .dashboard__widgets { grid-template-columns: repeat(3, 1fr); } }

/* ─── Widget (Dashboard) ─────────────────────────────────────── */
.widget {
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius); padding: 1.25rem;
  box-shadow: var(--idm-card-shadow); text-align: center;
  cursor: pointer; transition: var(--idm-transition);
}
.widget:hover { box-shadow: var(--idm-card-shadow-hover); transform: translateY(-2px); border-color: var(--idm-primary); }
.widget__label { display: block; font-size: 0.8125rem; color: var(--idm-muted); text-transform: uppercase; letter-spacing: 0.025em; font-weight: 600; }
.widget__value { display: block; font-size: 1.75rem; font-weight: 800; color: var(--idm-primary); margin-top: 0.25rem; }

/* Dashboard simulator grid */
#dashboard-sims { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 72rem; margin: 0 auto 2rem; padding: 0 1rem; }
@media (min-width: 640px) { #dashboard-sims { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { #dashboard-sims { grid-template-columns: repeat(3, 1fr); } }

/* ─── Wallet ─────────────────────────────────────────────────── */
.wallet-card {
  max-width: 42rem; margin: 1.5rem auto;
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 2rem;
  box-shadow: var(--idm-card-shadow); text-align: center;
}
.wallet-card h2 { font-size: 0.875rem; color: var(--idm-muted); text-transform: uppercase; letter-spacing: 0.025em; font-weight: 600; margin-bottom: 0.5rem; }
.wallet-card__balance { font-size: 3rem; font-weight: 800; color: var(--idm-primary); line-height: 1; margin-bottom: 1.5rem; }
.wallet-card__redeem { border-top: 1px solid var(--idm-border); padding-top: 1.5rem; margin-top: 0.5rem; }
.wallet-card__redeem h3 { font-size: 1rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 0.75rem; }
.wallet-card__redeem-form { display: flex; gap: 0.5rem; max-width: 24rem; margin: 0 auto; }
.wallet-card__redeem-form input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--idm-border); border-radius: var(--idm-radius-sm); font-size: 0.875rem; font-family: inherit; }
.wallet-card__redeem-form input:focus { outline: none; border-color: var(--idm-primary); box-shadow: 0 0 0 3px rgba(23,105,224,0.1); }
.wallet-card__redeem-msg { padding: 0.625rem 0.875rem; border-radius: var(--idm-radius-sm); font-size: 0.875rem; margin-top: 0.75rem; }
.wallet-card__redeem-msg--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.wallet-card__redeem-msg--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Wallet History ─────────────────────────────────────────── */
.wallet-history {
  max-width: 42rem; margin: 1.5rem auto;
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 1.5rem 2rem;
  box-shadow: var(--idm-card-shadow);
}
.wallet-history h3 { font-size: 1.125rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--idm-border); }
.wallet-history__list { list-style: none; }

/* Transaction Row (JS dynamic HTML) */
.tx-row { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid var(--idm-border); transition: var(--idm-transition); }
.tx-row:hover { background: var(--idm-accent-bg); }
.tx-row:last-child { border-bottom: none; }
.tx-row__info { display: flex; flex-direction: column; }
.tx-row__type { font-weight: 600; color: var(--idm-text); font-size: 0.9375rem; }
.tx-row__date { font-size: 0.8125rem; color: var(--idm-muted); }
.tx-row__amount { font-weight: 700; font-size: 1rem; }
.tx-row__amount--credit { color: var(--idm-success); }
.tx-row__amount--debit { color: var(--idm-danger); }

/* ─── Profile ────────────────────────────────────────────────── */
.profile-card {
  max-width: 36rem; margin: 1.5rem auto;
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 2rem;
  box-shadow: var(--idm-card-shadow);
}
.profile-sessions {
  max-width: 36rem; margin: 1.5rem auto;
  background: #fff; border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius-lg); padding: 2rem;
  box-shadow: var(--idm-card-shadow);
}
.profile-sessions h3 { font-size: 1.125rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 1rem; }

/* Session Row (JS dynamic HTML) */
.session-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--idm-border); }
.session-row:last-child { border-bottom: none; }
.session-row__info { font-size: 0.875rem; color: var(--idm-text); }
.session-row__ip { font-size: 0.75rem; color: var(--idm-muted); }

/* ─── Admin ──────────────────────────────────────────────────── */
.admin__nav {
  display: flex; gap: 0.25rem; border-bottom: 1px solid var(--idm-border);
  max-width: 72rem; margin: 1.5rem auto 0; padding: 0 1rem; overflow-x: auto;
}
.admin__tab {
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 600;
  color: var(--idm-muted); background: transparent; border: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: var(--idm-transition); white-space: nowrap;
}
.admin__tab:hover { color: var(--idm-primary); }
.admin__tab.active { color: var(--idm-primary); border-bottom-color: var(--idm-primary); }
.admin__content { max-width: 72rem; margin: 1.5rem auto; padding: 0 1rem; }
.admin__search {
  width: 100%; max-width: 24rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--idm-border); border-radius: var(--idm-radius-sm);
  font-size: 0.875rem; margin-bottom: 1rem; font-family: inherit;
}
.admin__search:focus { outline: none; border-color: var(--idm-primary); box-shadow: 0 0 0 3px rgba(23,105,224,0.1); }
.admin__form { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 36rem; }
@media (min-width: 640px) { .admin__form { grid-template-columns: 1fr 1fr; } .admin__form .full { grid-column: 1 / -1; } }

/* ─── Admin Table ────────────────────────────────────────────── */
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
  margin-top: 1rem; background: #fff;
  border: 1px solid var(--idm-border); border-radius: var(--idm-radius); overflow: hidden;
}
.admin-table thead { background: var(--idm-accent-bg); }
.admin-table th { padding: 0.75rem 1rem; text-align: start; font-weight: 700; color: var(--idm-dark); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.025em; border-bottom: 1px solid var(--idm-border); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--idm-border); color: var(--idm-text); }
.admin-table tbody tr { transition: var(--idm-transition); }
.admin-table tbody tr:hover { background: var(--idm-accent-bg); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--idm-muted); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.empty-state__text { font-size: 0.9375rem; }

/* ─── Loading ────────────────────────────────────────────────── */
.loading { width: 2rem; height: 2rem; border: 3px solid var(--idm-border); border-top-color: var(--idm-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--idm-dark); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--idm-radius-sm);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(10,30,62,0.25);
  z-index: 9999; opacity: 0; transition: all 0.3s ease; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--idm-success); }
.toast.error { background: var(--idm-danger); }

/* ─── Nav Active State ───────────────────────────────────────── */
[data-nav].active { color: var(--idm-primary); font-weight: 700; }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.view:not(.hidden) { animation: fadeInUp 0.3s ease-out; }

/* ─── RTL/LTR Specific ───────────────────────────────────────── */
html[dir="rtl"] .header__container { flex-direction: row-reverse; }
html[dir="rtl"] .header__brand { flex-direction: row-reverse; }
html[dir="rtl"] .header__brand { order: 3; }
html[dir="rtl"] .header__nav { order: 2; }
html[dir="rtl"] .header__actions { order: 1; }
html[dir="rtl"] .form-actions { justify-content: flex-start; }
html[dir="rtl"] .tx-row { flex-direction: row-reverse; }
html[dir="rtl"] .session-row { flex-direction: row-reverse; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--idm-bg); }
::-webkit-scrollbar-thumb { background: var(--idm-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--idm-muted); }

/* ─── Selection ──────────────────────────────────────────────── */
::selection { background: var(--idm-primary); color: #fff; }
/* ─── Footer (copyright) ────────────────────────────────────── */
.footer { background: var(--idm-dark, #0A1E3E); color: #fff; padding: 1.5rem 1rem; text-align: center; }
.footer__container { max-width: 72rem; margin: 0 auto; }
.footer p { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin: 0; }
/* ─── Mobile Navigation (mobile-first) ──────────────────────── */
/* Hamburger button - hidden on desktop, visible on mobile */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--idm-accent-bg);
  border-radius: var(--idm-radius-sm);
  cursor: pointer;
  gap: 4px;
  flex-shrink: 0;
  transition: var(--idm-transition);
}
.header__hamburger:hover { background: #d0e8ff; }
.header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--idm-primary);
  border-radius: 2px;
  transition: var(--idm-transition);
}
.header__hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav drawer - hidden by default, slides down */
.mobile-nav {
  display: block;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--idm-border);
  box-shadow: 0 8px 24px rgba(21,34,56,0.12);
  z-index: 49;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}
.mobile-nav.open {
  max-height: 400px;
  opacity: 1;
}
.mobile-nav__list {
  list-style: none;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--idm-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--idm-text);
  cursor: pointer;
  transition: var(--idm-transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: start;
  font-family: inherit;
}
.mobile-nav__item:hover,
.mobile-nav__item:active {
  background: var(--idm-accent-bg);
  color: var(--idm-primary);
}
.mobile-nav__item.active {
  background: var(--idm-accent-bg);
  color: var(--idm-primary);
}
.mobile-nav__item--logout {
  color: var(--idm-danger);
  margin-top: 8px;
  border-top: 1px solid var(--idm-border);
  border-radius: 0;
  padding-top: 16px;
}
.mobile-nav__item--logout:hover {
  background: #fef2f2;
}
.mobile-nav__icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-nav__divider {
  height: 1px;
  background: var(--idm-border);
  margin: 8px 0;
}

/* Desktop: hide hamburger and mobile nav, show inline nav */
@media (min-width: 769px) {
  .header__hamburger { display: none; }
  .mobile-nav { display: none; }
}

/* Mobile: hide desktop inline auth nav, keep lang toggle + hamburger */
@media (max-width: 768px) {
  .header__auth { display: none; }
  .header__container { height: 56px; padding: 0 0.75rem; }
  .header__logo { height: 30px; }
  .header__title { font-size: 0.85rem; }
  .header__actions { gap: 0.375rem; }
  .mobile-nav { top: 56px; }
}
/* ─── Mobile Nav RTL ─────────────────────────────────────────── */
html[dir="rtl"] .mobile-nav__item {
  text-align: right;
  flex-direction: row-reverse;
}
html[dir="rtl"] .header__hamburger {
  margin-right: 0;
  margin-left: 0.375rem;
}

/* ─── Wallet Card Actions & Info ─────────────────────────────── */
.wallet-card__actions {
  margin-bottom: 1.5rem;
}
.wallet-card__buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--idm-radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(23,105,224,0.2);
  transition: var(--idm-transition);
}
.wallet-card__buy-btn:hover {
  background: var(--idm-primary-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23,105,224,0.3);
  transform: translateY(-1px);
}
.wallet-card__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  text-align: start;
}
.wallet-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--idm-bg);
  border: 1px solid var(--idm-border);
  border-radius: var(--idm-radius);
}
.wallet-info__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.6;
}
.wallet-info__item p {
  font-size: 0.875rem;
  color: var(--idm-muted);
  line-height: 1.6;
  margin: 0;
}
html[dir="rtl"] .wallet-info__item {
  text-align: right;
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .wallet-card__info {
    max-width: 100%;
    gap: 0.75rem;
  }
  .wallet-info__item {
    padding: 0.875rem 1rem;
  }
  .wallet-info__item p {
    font-size: 0.8125rem;
  }
  .wallet-card__buy-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ─── Simulator Category Groups ─────────── */
.sim-category-group {
  margin-bottom: 2rem;
}
.sim-category-group:last-child {
  margin-bottom: 0;
}
.sim-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--idm-dark, #1a1a2e);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--idm-border, #e5e7eb);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sim-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--idm-primary, #2563eb);
  border-radius: 2px;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sim-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Personality Profile Dashboard ─────────────────── */
.pp-container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }

.pp-header { margin-bottom: 1.5rem; }
.pp-header__top { display: flex; align-items: center; gap: 0.75rem; }
.pp-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--idm-dark); margin: 0 0 0.25rem; }
.pp-subtitle { font-size: 0.9375rem; color: var(--idm-muted); margin: 0; }

.pp-disclaimer {
    display: flex; align-items: flex-start; gap: 0.625rem;
    padding: 0.75rem 1rem; margin-bottom: 1.5rem;
    background: rgba(23, 105, 224, 0.06);
    border: 1px solid rgba(23, 105, 224, 0.15);
    border-radius: var(--idm-radius, 10px);
    font-size: 0.8125rem; color: var(--idm-muted); line-height: 1.5;
}
.pp-disclaimer__icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.0625rem; }

.pp-completeness { margin-bottom: 1.5rem; }
.pp-completeness__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem;
}
.pp-completeness__label { font-size: 0.875rem; font-weight: 600; color: var(--idm-dark); }
.pp-completeness__value { font-size: 1.25rem; font-weight: 700; color: var(--idm-primary); }
.pp-completeness__bar {
    height: 8px; background: var(--idm-border, #e2e8f0);
    border-radius: 4px; overflow: hidden;
}
.pp-completeness__fill {
    height: 100%; background: linear-gradient(90deg, var(--idm-primary), #4d9bff);
    border-radius: 4px; transition: width 0.6s ease;
}
.pp-completeness__meta {
    font-size: 0.75rem; color: var(--idm-muted); margin-top: 0.375rem;
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.pp-completeness__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

.pp-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) { .pp-grid { grid-template-columns: 1fr; } }

.pp-card {
    background: #fff; border: 1px solid var(--idm-border, #e2e8f0);
    border-radius: var(--idm-radius, 10px); overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pp-card__header {
    padding: 0.875rem 1rem; border-bottom: 1px solid var(--idm-border, #e2e8f0);
    display: flex; justify-content: space-between; align-items: center;
}
.pp-card__title { font-size: 1rem; font-weight: 600; color: var(--idm-dark); margin: 0; }
.pp-card__count { font-size: 0.6875rem; color: var(--idm-muted); background: var(--idm-border, #f1f5f9); padding: 0.125rem 0.5rem; border-radius: 999px; }
.pp-card__body { padding: 0.5rem 0; }

/* Assessment items */
.pp-assessment-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.625rem 1rem; border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s; gap: 0.75rem;
}
.pp-assessment-item:last-child { border-bottom: none; }
.pp-assessment-item:hover { background: rgba(23, 105, 224, 0.02); }
.pp-assessment-item__info { flex: 1; min-width: 0; }
.pp-assessment-item__name {
    font-size: 0.875rem; font-weight: 500; color: var(--idm-dark);
    display: block; margin-bottom: 0.25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-assessment-item__meta {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.pp-assessment-item__date { font-size: 0.6875rem; color: var(--idm-muted); }
.pp-assessment-item__action { flex-shrink: 0; }

.pp-status {
    font-size: 0.625rem; font-weight: 600; text-transform: uppercase;
    padding: 0.125rem 0.5rem; border-radius: 999px; letter-spacing: 0.03em;
}
.pp-status--completed { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.pp-status--available { background: rgba(23, 105, 224, 0.08); color: var(--idm-primary); }

/* Dimension bars */
.pp-dim-item {
    padding: 0.625rem 1rem; border-bottom: 1px solid #f1f5f9;
    cursor: pointer; transition: background 0.15s;
}
.pp-dim-item:last-child { border-bottom: none; }
.pp-dim-item:hover { background: rgba(23, 105, 224, 0.02); }
.pp-dim-item__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.375rem;
}
.pp-dim-item__name { font-size: 0.8125rem; font-weight: 500; color: var(--idm-dark); }
.pp-dim-item__value { font-size: 0.875rem; font-weight: 700; color: var(--idm-primary); }
.pp-dim-item__value--muted { color: var(--idm-muted); }

.pp-dim-bar {
    height: 6px; background: var(--idm-border, #e2e8f0);
    border-radius: 3px; overflow: hidden; margin-bottom: 0.375rem;
}
.pp-dim-bar__fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.pp-dim-bar__fill--measured { background: var(--idm-primary); }
.pp-dim-bar__fill--inferred { background: #a78bfa; }
.pp-dim-bar__fill--unavailable { background: #cbd5e1; }

.pp-dim-item__meta {
    display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap;
}
.pp-dim-badge {
    font-size: 0.5625rem; font-weight: 600; text-transform: uppercase;
    padding: 0.0625rem 0.375rem; border-radius: 999px; letter-spacing: 0.03em;
}
.pp-dim-badge--measured { background: rgba(23, 105, 224, 0.1); color: var(--idm-primary); }
.pp-dim-badge--inferred { background: rgba(167, 139, 250, 0.12); color: #7c3aed; }
.pp-dim-badge--unavailable { background: rgba(203, 213, 225, 0.3); color: #64748b; }

.pp-confidence-badge {
    font-size: 0.5625rem; font-weight: 500;
    padding: 0.0625rem 0.375rem; border-radius: 999px;
}
.pp-confidence--high { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.pp-confidence--medium { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.pp-confidence--low { background: rgba(239, 68, 68, 0.08); color: #dc2626; }
.pp-confidence--uncalibrated { background: rgba(148, 163, 184, 0.1); color: #64748b; }

.pp-dim-item__count { font-size: 0.625rem; color: var(--idm-muted); }

/* History timeline */
.pp-history-card { margin-bottom: 1.5rem; }
.pp-timeline { position: relative; padding-inline-start: 1.5rem; }
.pp-timeline::before {
    content: ''; position: absolute;
    inset-inline-start: 0.625rem; top: 0; bottom: 0;
    width: 2px; background: var(--idm-border, #e2e8f0);
}
.pp-timeline-item {
    position: relative; padding: 0.5rem 1rem 0.75rem 0;
    cursor: pointer; transition: background 0.15s; border-radius: 6px;
}
.pp-timeline-item:hover { background: rgba(23, 105, 224, 0.02); }
.pp-timeline-item__dot {
    position: absolute; inset-inline-start: -1rem; top: 0.625rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--idm-primary); border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--idm-border, #e2e8f0);
}
.pp-timeline-item__content {
    display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap;
}
.pp-timeline-item__title { font-size: 0.8125rem; font-weight: 500; color: var(--idm-dark); }
.pp-timeline-item__date { font-size: 0.6875rem; color: var(--idm-muted); }
.pp-timeline-item__version {
    font-size: 0.5625rem; color: var(--idm-muted);
    background: #f1f5f9; padding: 0.0625rem 0.3rem; border-radius: 4px;
}

/* Dimension detail modal */
.pp-dim-detail-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem; margin: 1rem 0;
}
.pp-dim-detail-stat {
    background: rgba(23, 105, 224, 0.03);
    border: 1px solid rgba(23, 105, 224, 0.08);
    border-radius: 8px; padding: 0.625rem;
    text-align: center;
}
.pp-dim-detail-stat__label { font-size: 0.6875rem; color: var(--idm-muted); display: block; margin-bottom: 0.25rem; }
.pp-dim-detail-stat__value { font-size: 1rem; font-weight: 700; color: var(--idm-dark); }
.pp-dim-detail-stat__sub { font-size: 0.625rem; color: var(--idm-muted); }

.pp-dim-detail-desc { font-size: 0.875rem; color: var(--idm-muted); line-height: 1.6; margin-bottom: 0.75rem; }

.btn--xs { font-size: 0.6875rem; padding: 0.25rem 0.625rem; border-radius: 6px; }

/* RTL adjustments */
[dir="rtl"] .pp-timeline { padding-inline-start: 1.5rem; padding-right: 0; }
[dir="rtl"] .pp-timeline::before { right: 0.625rem; left: auto; }
[dir="rtl"] .pp-timeline-item__dot { right: -1rem; left: auto; }
/* ─── Onboarding / User Context ─────── */

.onboarding-container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--idm-card-shadow);
}
.onboarding-header { text-align: center; margin-bottom: 2rem; }
.onboarding-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.onboarding-title { font-size: 1.5rem; font-weight: 700; color: var(--idm-dark); margin-bottom: 0.5rem; }
.onboarding-subtitle { font-size: 1rem; color: var(--idm-primary); margin-bottom: 0.5rem; }
.onboarding-description { font-size: 0.875rem; color: var(--idm-muted); line-height: 1.6; max-width: 500px; margin: 0 auto; }
.onboarding-context-message {
    display: flex; align-items: center; gap: 0.5rem;
    background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px;
    padding: 0.75rem 1rem; margin-bottom: 1.5rem; color: #92400e; font-size: 0.875rem;
}
.onboarding-context-message.hidden { display: none; }
.onboarding-context-icon { font-size: 1.125rem; }
.onboarding-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .onboarding-form-grid { grid-template-columns: 1fr 1fr; } }
.onboarding-loading { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--idm-muted); }
.form-group--required label .req { color: #dc2626; margin-inline-start: 0.125rem; }
.form-group--optional label { color: var(--idm-muted); }
.onboarding-input {
    width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 0.875rem; background: #fff; transition: var(--idm-transition);
}
.onboarding-input:focus { outline: none; border-color: var(--idm-primary); box-shadow: 0 0 0 3px rgba(23,105,224,0.1); }
.onboarding-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* Profile Context Section */
.context-profile-section {
    background: rgba(23,105,224,0.03); border: 1px solid rgba(23,105,224,0.1);
    border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem;
}
.context-profile-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.context-profile-header h3 { font-size: 0.9375rem; font-weight: 600; color: var(--idm-dark); margin: 0 0 0.25rem; }
.context-profile-subtitle { font-size: 0.75rem; color: var(--idm-muted); margin: 0; }
.context-status-badge {
    font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.625rem;
    border-radius: 20px; background: #fef3c7; color: #92400e; white-space: nowrap;
}
.context-status-badge--complete { background: #d1fae5; color: #065f46; }
.profile-context-display { margin-bottom: 0.75rem; }
.context-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 480px) { .context-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .context-grid { grid-template-columns: 1fr 1fr 1fr; } }
.context-item {
    display: flex; flex-direction: column; padding: 0.5rem 0.75rem;
    background: #fff; border-radius: 6px; border: 1px solid #f1f5f9;
}
.context-item__label { font-size: 0.6875rem; color: var(--idm-muted); margin-bottom: 0.125rem; }
.context-item__value { font-size: 0.8125rem; font-weight: 500; color: var(--idm-dark); }
.context-empty { font-size: 0.8125rem; color: var(--idm-muted); font-style: italic; padding: 0.5rem 0; }

/* RTL adjustments */
[dir="rtl"] .onboarding-context-message { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .context-profile-header { flex-direction: row-reverse; }
/* ═══════════════════════════════════════════════════════════
   LANDING PAGE — Premium Redesign (2026-08-25)
   ═══════════════════════════════════════════════════════════ */

/* CSS Variables (reuse existing IDM tokens) */
:root {
    --lp-primary: #1769E0;
    --lp-dark: #0A1E3E;
    --lp-darker: #061226;
    --lp-bg: #F6F8FC;
    --lp-white: #FFFFFF;
    --lp-muted: #64748B;
    --lp-border: #E2E8F0;
    --lp-radius: 14px;
    --lp-radius-sm: 8px;
    --lp-max-width: 1200px;
    --lp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Landing Nav (removed — merged into header) ─── */

/* ─── Hero ─── */
.lp-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #061226 0%, #0A1E3E 50%, #0F2A52 100%);
    padding: 3rem 1.5rem 4rem;
}
.lp-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(23, 105, 224, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: lp-glow-pulse 4s ease-in-out infinite;
}
@keyframes lp-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.lp-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.lp-hero__brand {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(23, 105, 224, 0.3);
    border-radius: 100px;
    background: rgba(23, 105, 224, 0.08);
}
.lp-hero__title {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}
.lp-hero__desc {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.lp-hero__cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.lp-hero__badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.lp-badge {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.lp-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-primary);
}

/* ─── Sections ─── */
.lp-section {
    padding: 5rem 1.5rem;
    background: var(--lp-white);
}
.lp-section--alt {
    background: var(--lp-bg);
}
.lp-section__inner {
    max-width: var(--lp-max-width);
    margin: 0 auto;
}
.lp-section__inner--narrow {
    max-width: 800px;
}
.lp-eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.lp-section__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--lp-dark);
    line-height: 1.25;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.lp-section__lead {
    font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
    line-height: 1.7;
    color: var(--lp-muted);
    margin: 0 0 2.5rem;
    max-width: 640px;
}
[dir="rtl"] .lp-section__lead { margin-left: auto; margin-right: 0; }

/* ─── Hook Grid ─── */
.lp-hook-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 640px) { .lp-hook-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lp-hook-item {
    padding: 2rem 1.5rem;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    background: var(--lp-white);
    transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}
.lp-hook-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 30, 62, 0.08);
}
.lp-hook-item__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lp-primary);
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
}
.lp-hook-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lp-dark);
    margin: 0 0 0.5rem;
}
.lp-hook-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lp-muted);
    margin: 0;
}

/* ─── Steps ─── */
.lp-steps {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.lp-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem 1.25rem;
}
.lp-step__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--lp-primary);
}
.lp-step__icon svg { width: 100%; height: 100%; }
.lp-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lp-dark);
    margin: 0 0 0.5rem;
}
.lp-step p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lp-muted);
    margin: 0;
}
.lp-step__arrow {
    display: flex;
    align-items: center;
    color: var(--lp-primary);
    font-size: 1.5rem;
    opacity: 0.4;
}
[dir="rtl"] .lp-step__arrow { transform: scaleX(-1); }
@media (max-width: 767px) { .lp-step__arrow { display: none; } }

/* ─── Categories ─── */
.lp-cats {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 640px) { .lp-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lp-cats { grid-template-columns: 1fr 1fr 1fr; } }
.lp-cat {
    padding: 1.75rem;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    background: var(--lp-white);
    transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}
.lp-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 30, 62, 0.06);
}
.lp-cat--soon {
    opacity: 0.6;
    background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
}
.lp-cat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.lp-cat__header h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lp-dark);
    margin: 0;
}
.lp-cat__tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--lp-primary);
    background: rgba(23, 105, 224, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    white-space: nowrap;
}
.lp-cat__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lp-muted);
    margin: 0 0 0.75rem;
}
.lp-cat__items {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #94A3B8;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--lp-border);
}

/* ─── Dimensions ─── */
.lp-dims {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.lp-dim {
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lp-dark);
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    transition: all var(--lp-transition);
}
.lp-dim:hover {
    color: var(--lp-primary);
    border-color: var(--lp-primary);
    background: rgba(23, 105, 224, 0.05);
}

/* ─── Flow (Smarter Decisions) ─── */
.lp-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}
.lp-flow__step {
    flex: 1;
    min-width: 200px;
    padding: 1.75rem;
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
}
.lp-flow__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.lp-flow__step p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lp-dark);
    margin: 0;
}
.lp-flow__connector {
    width: 2px;
    background: linear-gradient(to bottom, var(--lp-primary), var(--lp-border));
    margin: 1.5rem 0;
    align-self: stretch;
}
@media (min-width: 768px) {
    .lp-flow__connector { width: 24px; height: 2px; background: linear-gradient(to right, var(--lp-primary), var(--lp-border)); margin: 0; align-self: center; }
}
@media (max-width: 767px) {
    .lp-flow__connector { display: none; }
}
.lp-flow__note {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--lp-muted);
    font-style: italic;
    text-align: center;
}

/* ─── Science ─── */
.lp-science {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 640px) { .lp-science { grid-template-columns: 1fr 1fr 1fr; } }
.lp-science__item {
    text-align: center;
    padding: 2rem 1.5rem;
}
.lp-science__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--lp-primary);
}
.lp-science__icon svg { width: 100%; height: 100%; }
.lp-science__item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lp-dark);
    margin: 0 0 0.5rem;
}
.lp-science__item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--lp-muted);
    margin: 0;
}

/* ─── Reports ─── */
.lp-reports {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lp-reports__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
}
.lp-reports__check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(23, 105, 224, 0.1);
    color: var(--lp-primary);
    font-size: 0.875rem;
    font-weight: 700;
}
.lp-reports__item p {
    font-size: 0.9375rem;
    color: var(--lp-dark);
    margin: 0;
}

/* ─── Final CTA ─── */
.lp-cta {
    background: linear-gradient(135deg, #061226 0%, #0A1E3E 50%, #0F2A52 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(23, 105, 224, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.lp-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.lp-cta__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.lp-cta__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem;
}
.lp-cta .btn--primary {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    font-size: 1rem;
    padding: 0.875rem 2.5rem;
}
.lp-cta .btn--primary:hover {
    background: #1453C0;
}

/* ─── Hero Ghost Button Override (dark background) ─── */
.lp-hero .btn--ghost {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}
.lp-hero .btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
}

/* ─── FAQ ─── */
.lp-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lp-faq__item {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    overflow: hidden;
    background: var(--lp-white);
}
.lp-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lp-dark);
    text-align: start;
    transition: background var(--lp-transition);
}
.lp-faq__q:hover { background: var(--lp-bg); }
.lp-faq__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--lp-primary);
    transition: transform var(--lp-transition);
    margin-inline-start: 1rem;
}
.lp-faq__item--open .lp-faq__icon { transform: rotate(45deg); }
.lp-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--lp-transition), padding var(--lp-transition);
    padding: 0 1.5rem;
}
.lp-faq__item--open .lp-faq__a {
    max-height: 500px;
    padding: 0 1.5rem 1.125rem;
}
.lp-faq__a p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--lp-muted);
    margin: 0;
}

/* ─── Footer ─── */
.lp-footer {
    background: var(--lp-darker);
    padding: 2.5rem 1.5rem;
}
.lp-footer__inner {
    max-width: var(--lp-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.lp-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.lp-footer__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}
.lp-footer__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}
.lp-footer__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}
.lp-footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.lp-footer__links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--lp-transition);
}
.lp-footer__links a:hover { color: #fff; }

/* ─── RTL Adjustments ─── */
[dir="rtl"] .lp-hero__content { text-align: center; }
[dir="rtl"] .lp-step__arrow { transform: scaleX(-1); }

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .lp-hero { min-height: 80vh; padding: 2.5rem 1.25rem 3rem; }
    .lp-section { padding: 3.5rem 1.25rem; }
    .lp-cta { padding: 3.5rem 1.25rem; }
    .lp-steps { flex-direction: column; gap: 1rem; }
    .lp-step { padding: 1.5rem 1rem; }
    .lp-hook-item { padding: 1.5rem 1.25rem; }
    .lp-cat { padding: 1.25rem; }
    .lp-flow { flex-direction: column; gap: 0.75rem; }
    .lp-flow__step { padding: 1.25rem; }
    .lp-reports__item { padding: 1rem 1.25rem; }
    .lp-footer__inner { flex-direction: column; text-align: center; }
}

/* ─── Animation on Scroll (optional, CSS-only) ─── */
@media (prefers-reduced-motion: no-preference) {
    .lp-section > * {
        animation: lp-fade-up 0.6s ease-out backwards;
    }
    .lp-section__inner > *:nth-child(1) { animation-delay: 0.05s; }
    .lp-section__inner > *:nth-child(2) { animation-delay: 0.1s; }
    .lp-section__inner > *:nth-child(3) { animation-delay: 0.15s; }
}
@keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Btn XL ─── */
.btn--xl {
    font-size: 1rem;
    padding: 0.875rem 2.5rem;
    border-radius: 100px;
}