:root {
  --ink: #27243d;
  --muted: #858398;
  --line: #e8e7ef;
  --surface: #ffffff;
  --canvas: #fbfbfd;
  --purple: #6955e8;
  --purple-dark: #5843d2;
  --lavender: #f1efff;
  --green: #35a56d;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 12% 18%, #f1eeff 0, transparent 28rem), var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  height: 82px; padding: 0 clamp(22px, 7vw, 112px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid #f0eff4;
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; }
.brand-mark { width: 52px; height: 31px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.main-nav { display: flex; gap: 34px; color: #6e6a7c; font-size: 14px; }
.main-nav a:hover { color: var(--purple); }
.header-actions { display: flex; align-items: center; gap: 14px; direction: ltr; }
.icon-button, .cart-button { border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-button { font-size: 28px; transform: rotate(180deg); }
.cart-button { position: relative; font-size: 26px; }
.cart-button b { position: absolute; top: -5px; left: -8px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; }

.page-content { width: min(1100px, calc(100% - 36px)); margin: 0 auto; flex: 1; }
.hero { min-height: 630px; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 70px; direction: ltr; }
.hero-copy { direction: rtl; }
.eyebrow, .tag { display: inline-flex; padding: 8px 15px; border-radius: 99px; background: var(--lavender); color: var(--purple); font-weight: 700; font-size: 13px; }
h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.35; margin: 22px 0 12px; letter-spacing: -.8px; }
h2 { margin: 0 0 12px; font-size: 28px; }
.hero-copy p, .intro p { color: var(--muted); line-height: 2.1; font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.primary, .secondary { border-radius: 13px; padding: 13px 24px; border: 1px solid transparent; cursor: pointer; font-weight: 700; transition: .2s ease; }
.primary { background: linear-gradient(135deg, #735ff0, #5740d4); color: #fff; box-shadow: 0 12px 24px #6d58e933; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px #6d58e944; }
.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.hero-note { color: var(--muted); font-size: 13px; }
.hero-art { direction: rtl; position: relative; min-height: 400px; display: grid; place-items: center; }
.art-orbit { width: 360px; height: 360px; border-radius: 50%; border: 1px solid #dfdafc; background: linear-gradient(145deg, #f9f7ff, #f1efff); position: relative; }
.art-orbit::before, .art-orbit::after { content: ""; position: absolute; border: 1px solid #e6e1ff; border-radius: 50%; inset: 42px; }
.art-orbit::after { inset: 88px; }
.art-card { position: absolute; width: 190px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px #5147a51c; border: 1px solid #eeeafc; }
.art-card.one { top: 22px; right: 15px; transform: rotate(6deg); }
.art-card.two { bottom: 36px; left: 8px; transform: rotate(-7deg); }
.art-avatar { width: 43px; height: 43px; border-radius: 50%; background: linear-gradient(135deg,#7560ee,#d4b9ff); margin-bottom: 14px; }
.art-lines { display: grid; gap: 8px; } .art-lines i { display:block; height: 8px; border-radius: 9px; background: #ece9fa; } .art-lines i:last-child { width: 65%; }
.art-link { position: absolute; inset: 0; display: grid; place-items: center; color: var(--purple); font-size: 52px; font-weight: 200; }

.test-shell { padding: 64px 0 80px; max-width: 760px; margin: auto; }
.test-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.progress { height: 7px; background: #ecebf3; border-radius: 99px; margin-top: 12px; overflow: hidden; }
.progress span { height:100%; display:block; background:linear-gradient(90deg,#8b7bff,#5d47db); border-radius:99px; transition: width .35s ease; }
.question-card, .invoice-card, .result-card, .dashboard-card { background: var(--surface); border:1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 55px #4a3d8a0b; }
.question-card { padding: 38px; }
.question-number { color: var(--purple); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.question-text { font-size: 21px; line-height: 1.9; margin: 0 0 25px; }
.answers { display: grid; gap: 11px; }
.answer { text-align: right; display:flex; align-items:center; gap:14px; width:100%; padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:#fff; cursor:pointer; color:var(--ink); }
.answer:hover, .answer.selected { border-color: #a69af8; background:#f8f6ff; }
.answer em { font-style:normal; color:var(--purple); background:#f0eeff; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; font-size:13px; }
.question-actions { display:flex; justify-content:space-between; margin-top:30px; }
.question-actions .primary:disabled { opacity:.4; cursor:not-allowed; box-shadow:none; }

.center-page { min-height: 620px; display:grid; place-items:center; padding:50px 0; }
.invoice-card, .result-card { width:min(650px,100%); padding:42px; text-align:center; }
.invoice-row { display:flex; justify-content:space-between; border-bottom:1px dashed var(--line); padding:17px 0; color:var(--muted); }
.invoice-row strong { color:var(--ink); }
.invoice-total { font-size:24px; color:var(--purple); margin:25px 0; font-weight:800; }
.otp-input { width:100%; padding:15px; border:1px solid var(--line); border-radius:12px; text-align:center; letter-spacing:8px; margin:18px 0; outline:none; }
.otp-input:focus { border-color:var(--purple); box-shadow:0 0 0 4px #6955e812; }
.result-score { width:145px; height:145px; border-radius:50%; display:grid; place-items:center; margin:28px auto; background: radial-gradient(circle,#fff 60%,transparent 61%), conic-gradient(var(--purple) 0 76%,#e9e6f5 76%); font-size:34px; color:var(--purple); font-weight:800; }
.result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:25px 0; text-align:right; }
.result-grid div { padding:17px; background:#faf9ff; border-radius:14px; } .result-grid small { color:var(--muted); display:block; margin-bottom:7px; }
.dashboard { padding: 55px 0 80px; } .dashboard-card { padding:30px; margin-top:22px; }
.history-row { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:20px 0; border-bottom:1px solid var(--line); }
.status { color:var(--green); font-size:13px; font-weight:700; }
.empty { color:var(--muted); padding:45px 0; text-align:center; }
.site-footer { margin-top: auto; padding: 28px clamp(22px, 7vw, 112px); display:flex; justify-content:space-between; color:var(--muted); font-size:12px; border-top:1px solid #f0eff4; }
.footer-brand { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:700; }.small { width:27px; height:20px; }
.toast { position:fixed; left:22px; bottom:22px; background:#28243c; color:#fff; padding:13px 18px; border-radius:12px; opacity:0; pointer-events:none; transform:translateY(10px); transition:.25s; font-size:13px; z-index:10; }.toast.show{opacity:1;transform:none}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 18px; } .main-nav { display:none; }
  .hero { grid-template-columns:1fr; gap:18px; padding:42px 0 70px; text-align:center; } .hero-copy p { margin-inline:auto; }
  .hero-actions { justify-content:center; flex-wrap:wrap; } .hero-art { min-height:300px; transform:scale(.82); margin:-32px 0; }
  h1 { font-size:34px; } .question-card, .invoice-card, .result-card { padding:24px 18px; border-radius:18px; }
  .test-shell, .dashboard { padding-top:36px; } .question-text { font-size:18px; } .result-grid { grid-template-columns:1fr; }
  .site-footer { flex-direction:column; gap:10px; align-items:center; }
}
