:root {
  color-scheme: light;
  --background: #FCFBF3;
  --foreground: #3A3304;
  --primary: #180EA2;
  --secondary: #AD7B10;
  --accent: #AD0720;
  --surface: #F3F0E4;
  --surface-strong: #E8E3D2;
  --line: rgba(58, 51, 4, .18);
  --muted: rgba(58, 51, 4, .64);
  --primary-soft: rgba(24, 14, 162, .10);
  --accent-soft: rgba(173, 7, 32, .10);
  --shadow: 0 24px 80px rgba(58, 51, 4, .11);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 34px;
  --font: "Vazirmatn", Tahoma, Arial, sans-serif;
  --header-h: 82px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #1B1818;
  --foreground: #A9ABAB;
  --primary: #4C41EC;
  --secondary: #D94545;
  --accent: #B1C101;
  --surface: #242020;
  --surface-strong: #302A2A;
  --line: rgba(169, 171, 171, .18);
  --muted: rgba(169, 171, 171, .68);
  --primary-soft: rgba(76, 65, 236, .14);
  --accent-soft: rgba(177, 193, 1, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 52%, transparent); outline-offset: 3px; }

.site-progress {
  position: fixed;
  z-index: 300;
  inset: 0 0 auto;
  height: 4px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  pointer-events: none;
}
.site-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 12px;
  transform: translateY(-160%);
  background: var(--foreground);
  color: var(--background);
  padding: 8px 14px;
  border-radius: 10px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.cursor-light {
  position: fixed;
  z-index: 0;
  inset: 0 auto auto 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .35;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent) 0, transparent 68%);
  transform: translate3d(-300px, -300px, 0);
  will-change: transform;
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: embed; }
.persian-num { font-variant-numeric: tabular-nums; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.045em;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--background);
  transform: rotate(-38deg);
}
.brand-mark::before { width: 25px; height: 7px; left: 2px; top: 9px; }
.brand-mark::after { width: 18px; height: 7px; left: 13px; top: 19px; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.scrolled {
  height: 68px;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: .9rem; color: var(--muted); transition: color .2s ease; }
.main-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.icon-button:hover { background: var(--surface); transform: translateY(-1px); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-system-icon, html[data-theme="dark"] .theme-light-icon { display: none; }
html[data-theme="dark"] .theme-system-icon { display: block; }

.btn {
  border: 0;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 26%, transparent); }
.btn-secondary { background: var(--foreground); color: var(--background); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: var(--accent-soft); color: var(--accent); }
.btn-block { width: 100%; }
.btn .spinner { width: 17px; height: 17px; }

.hero {
  --hero-ring-scale: 1;
  --hero-ring-rotate: 0deg;
  min-height: 100svh;
  padding: calc(var(--header-h) + 84px) 0 80px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 52vw;
  aspect-ratio: 1;
  left: -18vw;
  top: 2vh;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(var(--hero-ring-rotate)) scale(var(--hero-ring-scale));
  will-change: transform;
}
.hero-grid { display: grid; grid-template-columns: 1.32fr .68fr; gap: clamp(44px, 8vw, 120px); align-items: end; }
.hero-title {
  margin: 18px 0 28px;
  max-width: 900px;
  font-size: clamp(3.4rem, 8.8vw, 8.4rem);
  line-height: .95;
  letter-spacing: -.075em;
  font-weight: 900;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; }
.hero-title .word { display: inline-block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--foreground); }
.hero-copy { max-width: 530px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-side { padding-bottom: 18px; }
.data-orbit {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.data-orbit::before, .data-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.data-orbit::before { inset: 15%; }
.data-orbit::after { inset: 32%; background: var(--primary); border: 0; }
.orbit-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft); }
.orbit-dot:nth-child(1) { top: 9%; right: 22%; }
.orbit-dot:nth-child(2) { bottom: 17%; left: 9%; background: var(--secondary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--secondary) 12%, transparent); }
.orbit-label { position: absolute; z-index: 2; color: #fff; font-size: .73rem; font-weight: 800; text-align: center; line-height: 1.6; }
.hero-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.note-index { color: var(--accent); font-weight: 800; }
.hero-note p { margin: 0; font-size: .86rem; color: var(--muted); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 40px; will-change: transform; animation: marquee 26s linear infinite; }
.motion-ready .marquee-track { animation: none; }
.marquee-item { display: flex; align-items: center; gap: 40px; white-space: nowrap; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; }
.marquee-item::after { content: "✦"; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(50%); } }

.section { padding: clamp(90px, 14vw, 180px) 0; }
.section-head { display: grid; grid-template-columns: .65fr 1.35fr; gap: 50px; align-items: start; margin-bottom: 64px; }
.section-title { margin: 0; font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: 1.06; letter-spacing: -.065em; }
.motion-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.motion-word-inner { display: inline-block; will-change: transform, opacity; }
.section-copy { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { min-height: 330px; padding: 34px 28px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); position: relative; }
.principle:last-child { border-left: 0; }
.principle-number { color: var(--accent); font-size: .82rem; font-weight: 800; }
.principle h3 { margin: 80px 0 14px; font-size: 1.5rem; letter-spacing: -.04em; }
.principle p { margin: 0; color: var(--muted); font-size: .92rem; }
.principle::after { content: ""; position: absolute; top: 34px; left: 28px; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; }

.journey { height: 100svh; min-height: 700px; overflow: hidden; background: var(--foreground); color: var(--background); }
.journey-shell { height: 100%; display: flex; flex-direction: column; }
.journey-top { padding: 50px max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.journey-top h2 { margin: 0; max-width: 700px; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: 1.04; letter-spacing: -.06em; }
.journey-progress { width: 180px; height: 3px; background: color-mix(in srgb, var(--background) 22%, transparent); margin-top: 28px; overflow: hidden; }
.journey-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.journey-status { width: 180px; flex: 0 0 auto; }
.journey-counter { margin-top: 13px; direction: ltr; text-align: right; font-size: .76rem; letter-spacing: .08em; opacity: .65; }
.journey-counter b { color: var(--accent); font-size: 1rem; }
.journey-track { flex: 1; display: flex; width: max-content; padding-inline: max(20px, calc((100vw - 1180px) / 2)); gap: 18px; align-items: stretch; padding-bottom: 46px; }
.journey-card { width: min(70vw, 520px); border: 1px solid color-mix(in srgb, var(--background) 26%, transparent); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; transform-origin: center bottom; will-change: transform, opacity; transition: border-color .25s ease, box-shadow .25s ease; }
.journey-card.is-current { border-color: color-mix(in srgb, var(--accent) 82%, white); box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
.journey-card:nth-child(2) { background: var(--primary); color: #fff; border-color: transparent; }
.journey-card:nth-child(3) { background: var(--accent); color: #fff; border-color: transparent; }
.journey-card-index { font-size: 5rem; font-weight: 300; line-height: 1; opacity: .55; }
.journey-card h3 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.05em; }
.journey-card p { margin: 0; max-width: 360px; opacity: .75; }

.editorial-quote { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; border-block: 1px solid var(--line); padding: clamp(50px, 8vw, 90px) 0; }
.editorial-quote blockquote { margin: 0; max-width: 930px; font-size: clamp(2rem, 4.7vw, 5rem); line-height: 1.2; letter-spacing: -.055em; font-weight: 800; }
.quote-shape { width: 105px; aspect-ratio: 1; border-radius: 50% 50% 8px 50%; background: var(--secondary); transform: rotate(20deg); }

.cta-section { padding: 40px 0 120px; }
.cta-card { min-height: 480px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; padding: clamp(32px, 7vw, 82px); position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 50px; }
.motion-ready .cta-card { will-change: transform, clip-path; }
.cta-card::before { content: ""; position: absolute; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; left: -110px; bottom: -150px; box-shadow: 0 0 0 55px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.04); }
.cta-card h2 { position: relative; margin: 0; max-width: 810px; font-size: clamp(2.5rem, 6vw, 6.2rem); line-height: 1.04; letter-spacing: -.07em; }
.cta-card-bottom { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.cta-card p { max-width: 470px; margin: 0; opacity: .76; }
.cta-card .btn { background: #fff; color: #180EA2; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-copy { color: var(--muted); font-size: .82rem; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 9, 9, .62);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card {
  width: min(100%, 490px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}
.modal.open .modal-card { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.modal-head .icon-button { width: 38px; height: 38px; }
.auth-step h2 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.05em; }
.auth-step > p { margin: 0 0 28px; color: var(--muted); font-size: .93rem; }

.field { margin-bottom: 20px; }
.field label, .field-label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 700; }
.control {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  padding: 11px 14px;
  transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}
.control:focus { border-color: var(--primary); background: var(--background); box-shadow: 0 0 0 4px var(--primary-soft); outline: 0; }
.control::placeholder { color: var(--muted); opacity: .65; }
.field-help { display: block; margin-top: 7px; font-size: .76rem; color: var(--muted); }
.field-error { min-height: 22px; margin: 6px 0 0; color: var(--accent); font-size: .78rem; }
select.control { cursor: pointer; }
.phone-wrap { position: relative; }
.phone-wrap::after { content: "+۹۸"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); direction: ltr; }
.phone-wrap input { direction: ltr; text-align: left; padding-left: 58px; }

.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; margin: 24px 0 8px; }
.otp-input { width: 100%; aspect-ratio: 1; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--foreground); text-align: center; font-size: 1.3rem; font-weight: 800; direction: ltr; }
.otp-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.otp-meta { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: .79rem; color: var(--muted); }
.link-button { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 700; cursor: pointer; }
.auth-back { margin-top: 16px; width: 100%; text-align: center; }

.app-shell { min-height: 100svh; background: var(--surface); }
.app-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: var(--background);
  border-left: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar-brand { padding: 5px 10px 30px; }
.app-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 48px; border: 0; border-radius: 12px; padding: 10px 13px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 12px; text-align: right; cursor: pointer; transition: background .18s ease, color .18s ease; }
.nav-item:hover { color: var(--foreground); background: var(--surface); }
.nav-item.active { color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.mini-profile { display: flex; align-items: center; gap: 11px; padding: 8px 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; flex: 0 0 auto; }
.mini-profile-info { min-width: 0; }
.mini-profile-info strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.mini-profile-info span { display: block; font-size: .72rem; color: var(--muted); }

.app-main { min-height: 100svh; margin-right: 260px; }
.app-topbar { height: 76px; padding: 0 clamp(20px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 25; }
.topbar-title h1 { margin: 0; font-size: 1.22rem; letter-spacing: -.035em; }
.topbar-title p { margin: 1px 0 0; font-size: .72rem; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; color: var(--muted); }
.connection-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2a9d57; box-shadow: 0 0 0 4px rgba(42,157,87,.12); }
.connection-pill.offline::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mobile-menu { display: none; }

.app-content { padding: clamp(24px, 4vw, 54px); }
.app-view { display: none; animation: viewIn .35s ease both; }
.app-view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.view-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.view-head h2 { margin: 0 0 5px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.055em; }
.view-head p { margin: 0; color: var(--muted); font-size: .9rem; }

.dashboard-hero { min-height: 300px; padding: clamp(30px, 5vw, 58px); border-radius: 30px; background: var(--primary); color: #fff; position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 50px; }
.dashboard-hero::after { content: ""; position: absolute; left: -80px; top: -100px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.03); }
.dashboard-hero-content { position: relative; z-index: 1; max-width: 650px; }
.dashboard-hero h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.12; letter-spacing: -.065em; }
.dashboard-hero p { margin: 0; max-width: 520px; opacity: .76; }
.dashboard-hero-actions { position: relative; z-index: 1; }
.dashboard-hero .btn { background: #fff; color: #180EA2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat-card, .panel { background: var(--background); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card { padding: 23px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .78rem; }
.stat-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--primary); }
.stat-value { margin-top: 28px; font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; }
.stat-note { font-size: .73rem; color: var(--muted); }

.recommend-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.wizard { padding: clamp(22px, 4vw, 38px); }
.wizard-progress { display: flex; align-items: center; margin-bottom: 38px; }
.wizard-progress-item { flex: 1; display: flex; align-items: center; color: var(--muted); font-size: .74rem; }
.wizard-progress-item::after { content: ""; height: 1px; background: var(--line); flex: 1; margin-inline: 9px; }
.wizard-progress-item:last-child { flex: 0 0 auto; }
.wizard-progress-item:last-child::after { display: none; }
.wizard-progress-item span { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); margin-left: 7px; font-size: .72rem; }
.wizard-progress-item.active { color: var(--primary); font-weight: 800; }
.wizard-progress-item.active span, .wizard-progress-item.done span { background: var(--primary); color: #fff; border-color: var(--primary); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: viewIn .28s ease both; }
.wizard-step h3 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.045em; }
.wizard-step > p { margin: 0 0 28px; color: var(--muted); font-size: .88rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.wizard-actions .btn:only-child { margin-right: auto; }

.side-note { padding: 24px; position: sticky; top: 94px; }
.side-note-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.side-note h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.side-note p { margin: 0; color: var(--muted); font-size: .8rem; }
.rule-box { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.rule-range { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.rule-range strong { color: var(--primary); font-size: 1.4rem; }

.search-select { position: relative; }
.search-select-input-wrap { position: relative; }
.search-select-input-wrap svg { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.search-select-input-wrap .control { padding-right: 43px; }
.options-list { max-height: 265px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--background); margin-top: 7px; padding: 6px; box-shadow: var(--shadow); }
.option-item { width: 100%; border: 0; border-radius: 10px; background: transparent; color: var(--foreground); padding: 10px 11px; display: flex; justify-content: space-between; gap: 12px; text-align: right; cursor: pointer; }
.option-item:hover, .option-item.selected { background: var(--primary-soft); color: var(--primary); }
.option-item small { color: var(--muted); }
.empty-options { padding: 28px 14px; color: var(--muted); text-align: center; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .76rem; font-weight: 700; }
.chip button { border: 0; background: none; color: inherit; padding: 0; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.selected-counter { color: var(--muted); font-size: .75rem; margin-top: 8px; }

.review-grid { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 14px; overflow: hidden; }
.review-row { background: var(--background); padding: 14px 16px; display: flex; justify-content: space-between; gap: 20px; }
.review-row span { color: var(--muted); font-size: .8rem; }
.review-row strong { font-size: .85rem; text-align: left; }

.results-summary { padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 16px; }
.results-summary h3 { margin: 0 0 4px; }
.results-summary p { margin: 0; color: var(--muted); font-size: .8rem; }
.result-count { min-width: 82px; height: 82px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; text-align: center; }
.result-count strong { display: block; line-height: 1; font-size: 1.55rem; }
.result-count span { display: block; font-size: .63rem; opacity: .76; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-card { padding: 22px; position: relative; overflow: hidden; }
.result-card::before { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: var(--primary); }
.result-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.result-rank { color: var(--muted); font-size: .72rem; }
.probability { width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--primary) var(--probability, 0%), var(--surface-strong) 0); display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.probability::before { content: ""; position: absolute; inset: 6px; background: var(--background); border-radius: 50%; }
.probability strong { position: relative; font-size: .82rem; direction: ltr; }
.result-card h3 { margin: 28px 0 5px; font-size: 1.14rem; }
.result-university { margin: 0; color: var(--muted); font-size: .84rem; }
.result-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.meta-tag { padding: 5px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.empty-state { padding: clamp(45px, 8vw, 90px) 24px; text-align: center; }
.empty-illustration { width: 92px; height: 92px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--primary); }
.empty-illustration svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { max-width: 480px; margin: 0 auto 22px; color: var(--muted); font-size: .86rem; }

.usage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.usage-card { padding: 26px; }
.usage-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.usage-card h3 { margin: 0; font-size: 1rem; }
.usage-number { margin: 34px 0 12px; font-size: 2.1rem; font-weight: 900; }
.progress-bar { height: 8px; background: var(--surface-strong); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .6s ease; }
.usage-foot { margin-top: 10px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .74rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { padding: 28px; }
.profile-card h3 { margin: 0 0 24px; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); font-size: .8rem; }
.detail-row strong { font-size: .84rem; }

.upgrade-card { min-height: 460px; padding: clamp(30px, 6vw, 64px); border-radius: 30px; background: var(--foreground); color: var(--background); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.upgrade-card::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid color-mix(in srgb, var(--background) 22%, transparent); border-radius: 50%; left: -110px; top: -90px; box-shadow: 0 0 0 55px color-mix(in srgb, var(--background) 5%, transparent); }
.upgrade-content { position: relative; z-index: 1; }
.upgrade-content h2 { margin: 12px 0 17px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -.065em; }
.upgrade-content p { max-width: 560px; opacity: .7; }
.upgrade-features { position: relative; z-index: 1; display: grid; gap: 12px; }
.upgrade-feature { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid color-mix(in srgb, var(--background) 20%, transparent); border-radius: 14px; }
.upgrade-feature::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; }
.upgrade-card .btn { margin-top: 24px; background: var(--background); color: var(--foreground); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-strong); color: transparent !important; border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--background) 45%, transparent), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(-100%); } }
.spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region { position: fixed; z-index: 250; left: 22px; bottom: 22px; width: min(380px, calc(100% - 44px)); display: grid; gap: 9px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; background: var(--foreground); color: var(--background); padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); animation: toastIn .3s ease both; }
.toast.error { background: var(--accent); color: #fff; }
.toast.success { background: #207944; color: #fff; }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin-top: 8px; opacity: .72; flex: 0 0 auto; }
.toast p { margin: 0; font-size: .82rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

.global-loader { position: fixed; z-index: 220; inset: 0; background: color-mix(in srgb, var(--background) 82%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; }
.loader-card { display: grid; justify-items: center; gap: 15px; padding: 26px 32px; border-radius: 18px; background: var(--background); border: 1px solid var(--line); box-shadow: var(--shadow); }
.loader-card p { margin: 0; font-size: .84rem; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .section-head { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-left: 0; min-height: 240px; }
  .principle h3 { margin-top: 45px; }
  .recommend-layout { grid-template-columns: 1fr; }
  .side-note { position: static; order: -1; }
  .results-grid { grid-template-columns: 1fr; }
  .app-sidebar { transform: translateX(105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .app-sidebar.open { transform: none; }
  .app-main { margin-right: 0; }
  .mobile-menu { display: inline-grid; }
  .profile-grid, .upgrade-card { grid-template-columns: 1fr; }
  .upgrade-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 28px, 1180px); }
  .site-header .brand { font-size: 1.08rem; }
  .site-header .brand-mark { width: 30px; height: 30px; }
  .header-actions .btn { min-height: 40px; padding: 8px 14px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-title { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero-actions { display: grid; }
  .section { padding: 84px 0; }
  .section-head { gap: 24px; margin-bottom: 44px; }
  .journey { height: auto; min-height: 0; padding: 75px 0; }
  .journey-top { padding: 0 20px 35px; display: block; }
  .journey-progress { display: none; }
  .journey-status { display: none; }
  .journey-track { width: 100%; display: grid; padding: 0 20px; }
  .journey-card { width: 100%; min-height: 350px; }
  .editorial-quote { grid-template-columns: 1fr; }
  .quote-shape { width: 74px; }
  .cta-card { min-height: 520px; }
  .cta-card-bottom { display: grid; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .app-topbar { height: 68px; padding: 0 15px; }
  .connection-pill { display: none; }
  .app-content { padding: 20px 14px 90px; }
  .view-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .stats-grid, .usage-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .wizard { padding: 21px 16px; }
  .wizard-progress-item { font-size: 0; }
  .wizard-progress-item span { font-size: .7rem; }
  .results-summary { align-items: flex-start; }
  .profile-grid { grid-template-columns: 1fr; }
  .upgrade-card { padding: 30px 22px; }
  .upgrade-features { grid-template-columns: 1fr; }
  .topbar-title p { display: none; }
  .modal { padding: 10px; }
  .modal-card { border-radius: 24px; padding: 24px 18px; }
  .otp-row { gap: 5px; }
  .toast-region { left: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-light { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .site-progress { display: none; }
}

