:root {
  --radius: 1.25rem;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
a { color: var(--primary-700); }

.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: inherit;
}
.brand__mark {
  width: 2.5rem; height: 2.5rem; border-radius: 0.7rem;
  background: var(--primary-600); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__text strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--primary-900); }
.brand__text span { font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; }
.nav__links { display: none; align-items: center; gap: 1.5rem; list-style: none; }
.nav__links a {
  text-decoration: none; color: var(--ink-muted);
  font-size: 0.9rem; font-weight: 600;
}
.nav__links a:hover { color: var(--primary-700); }
.nav__cta { display: flex; align-items: center; gap: 0.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.25rem; border-radius: 0.85rem;
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: linear-gradient(165deg, var(--primary-500), var(--primary-700));
  color: #fff; box-shadow: 0 12px 28px -10px rgba(51,78,104,0.45);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: var(--btn-ghost-bg); color: var(--primary-800);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--primary-50); }
.btn--lg { padding: 0.95rem 1.75rem; font-size: 1rem; border-radius: 1rem; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.82rem; border-radius: 0.65rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.page-auth {
  min-height: calc(100vh - 4rem);
  display: grid; place-items: center;
  padding: 2rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(51,78,104,0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14,116,144,0.08), transparent 50%),
    linear-gradient(180deg, var(--primary-50) 0%, #fff 50%);
}
.auth-card {
  width: min(100%, 26rem);
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.45rem; font-weight: 800; color: var(--primary-900); margin-bottom: 0.35rem; }
.auth-card__sub { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--primary-900); margin-bottom: 0.35rem;
}
.field input {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: 0.75rem;
  font-family: inherit; font-size: 0.95rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(51,78,104,0.1);
}
.field input.error { border-color: #f87171; }
.field__err { font-size: 0.78rem; color: #dc2626; margin-top: 0.25rem; }
.alert {
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  font-size: 0.88rem; margin-bottom: 1rem;
}
.alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.auth-card__foot {
  margin-top: 1.25rem; text-align: center;
  font-size: 0.88rem; color: var(--ink-muted);
}
.auth-card__foot a { font-weight: 700; }

.page-dashboard { padding: 2rem 0 3rem; background: var(--primary-50); min-height: calc(100vh - 4rem); }
.dash-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid__wide { grid-column: 1 / -1; }
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.1rem; font-weight: 800; color: var(--primary-900); margin-bottom: 0.75rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.5rem; }
.stat {
  text-align: center; padding: 0.85rem 0.5rem;
  border-radius: 0.85rem; background: var(--primary-50);
}
.stat__val { font-size: 1.35rem; font-weight: 800; color: var(--primary-700); }
.stat__lbl { font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.15rem; }
.info-list { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; }
.info-list span { color: var(--ink-muted); }
.steps-list { list-style: none; counter-reset: step; display: grid; gap: 0.75rem; }
.steps-list li {
  counter-increment: step; padding-right: 2.5rem; position: relative;
  font-size: 0.9rem; color: var(--ink-muted);
}
.steps-list li::before {
  content: counter(step);
  position: absolute; right: 0; top: 0;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--primary-600); color: #fff;
  font-size: 0.8rem; font-weight: 800;
  display: grid; place-items: center;
}
.footer-mini {
  text-align: center; padding: 1.5rem;
  font-size: 0.78rem; color: var(--ink-muted);
}
