@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap}

/* ── توکن‌ها: همان زبان پورتال ورزش ── */
:root{
  --brand:#7c3aed;
  --brand-2:#5b21b6;
  --brand-soft:#f2ecfe;
  --ink:#14082b;
  --muted:#6b6780;
  --line:#e9e4f7;
  --bg:#faf9fe;
  --ok:#12894a;
  --ok-soft:#e7f7ee;
  --bad:#c0262b;
  --bad-soft:#fdecec;
  --warn:#b45309;
  --warn-soft:#fef4e6;
  --r:18px;
  --r-sm:12px;
  --sh:0 1px 2px rgba(20,8,43,.05), 0 8px 24px rgba(20,8,43,.04);
  --sh-hover:0 2px 4px rgba(20,8,43,.06), 0 16px 34px rgba(20,8,43,.10);
  --f:'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important}

body{
  margin:0;
  background:
    radial-gradient(1200px 420px at 50% -240px, #f1e9ff 0%, transparent 70%),
    var(--bg);
  color:var(--ink);
  font-family:var(--f);
  font-size:14px;
  line-height:1.95;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:none; color:var(--brand-2)}

h1{font-size:22px; font-weight:800; margin:0 0 14px; letter-spacing:-.01em}
h2{font-size:15.5px; font-weight:700; margin:26px 0 12px}
h3{font-size:13.5px; font-weight:700; margin:16px 0 8px}
small{font-size:11.5px}
.muted{color:var(--muted)}
.mono{font-variant-numeric:tabular-nums}

/* ── هدر: مثل sitebar پورتال ورزش ── */
.shell{min-height:100vh}
.sitebar{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.sitebar__in{
  max-width:1180px; margin:0 auto; padding:10px 22px;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.brand{display:flex; align-items:center; gap:9px; color:inherit}
.mark{
  width:40px; height:40px; border-radius:13px; flex:none;
  display:grid; place-items:center; color:#fff; font-weight:800; font-size:13px;
  background:linear-gradient(150deg,#8b5cf6,var(--brand-2));
  box-shadow:0 6px 16px -6px rgba(124,58,237,.55);
}
.brand span{display:block; line-height:1.45}
.brand b{display:block; font-size:13.5px; font-weight:700}
.brand small{display:block; color:var(--muted); font-size:10.5px}
.nav{display:flex; align-items:center; gap:2px; flex-wrap:wrap; margin-inline-start:8px}
.nav a{
  padding:7px 12px; border-radius:11px; font-size:12.5px; color:#413a55;
  transition:background .15s, color .15s;
}
.nav a:hover{background:var(--brand-soft); color:var(--brand-2)}
.nav a.on{background:var(--brand); color:#fff; font-weight:600}
.nav a.new{background:var(--brand-soft); color:var(--brand-2); font-weight:600}
.nav a.new:hover{background:#e7dcfd}
.user{margin-inline-start:auto; display:flex; align-items:center; gap:10px}
.user__chip{
  display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:4px 12px 4px 6px; font-size:12px; color:inherit;
}
.user__chip:hover{border-color:#d9d0f3; color:inherit}
.user__ava{
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  background:var(--brand-soft); color:var(--brand-2); font-weight:700; font-size:11px;
}
.user__out{font-size:11.5px; color:var(--muted)}
.user__out:hover{color:var(--bad)}

/* ── بدنه ── */
.main{max-width:1180px; margin:0 auto; padding:18px 22px 64px}

/* هیرو */
.hero{
  margin:6px 0 18px; padding:26px 24px; border-radius:22px; color:#fff;
  background:radial-gradient(1200px 400px at 50% -10%, #8b5cf6 0%, #5b21b6 45%, #2e1065 100%);
  box-shadow:0 18px 40px -22px rgba(76,29,149,.75);
}
.hero h1{font-size:24px; margin:0 0 4px; color:#fff}
.hero p{margin:0; color:#e9deff; font-size:13.5px}
.hero__stats{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:18px}
.hstat{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px; padding:10px 12px;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.hstat span{display:block; font-size:11px; color:#d9c9fb}
.hstat b{display:block; font-size:20px; font-weight:800; color:#fff; line-height:1.3}

/* کارت‌های ماژول: مثل «بخش‌های اکوسیستم» */
.cards{
  display:grid; gap:14px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:16px 0 6px;
}
.acard{
  display:grid; gap:6px; justify-items:center; text-align:center;
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  padding:18px 12px; color:var(--ink); box-shadow:var(--sh);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.acard:hover{transform:translateY(-2px); box-shadow:var(--sh-hover); border-color:#ddd3f7; color:var(--ink)}
.acard__ic{
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  font-size:19px; background:var(--brand-soft); color:var(--brand-2); margin-bottom:2px;
}
.acard b{font-size:13px; font-weight:700}
.acard small{color:var(--muted); font-size:11px}
.acard__n{font-size:11px; color:var(--brand-2); font-weight:700}

/* ── کارت و پنل ── */
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  padding:18px 20px; margin:14px 0; box-shadow:var(--sh);
}

/* آمار */
.kpis{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:14px 0 6px}
.kpi{
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  padding:14px 16px; box-shadow:var(--sh);
}
.kpi span{display:block; font-size:11.5px; color:var(--muted)}
.kpi b{display:block; font-size:22px; font-weight:800; margin-top:2px}
.kpi.bad b{color:var(--bad)}
.kpi.ok b{color:var(--ok)}

/* ── جدول ── */
.tbl{
  width:100%; border-collapse:separate; border-spacing:0;
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden; box-shadow:var(--sh);
}
.tbl thead th{
  background:#f7f4fe; color:var(--muted); font-size:11.5px; font-weight:700;
  text-align:start; padding:11px 14px; border-bottom:1px solid var(--line); white-space:nowrap;
}
.tbl td{padding:11px 14px; border-bottom:1px solid #f4f0fc; font-size:12.5px; vertical-align:middle}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl tbody tr{cursor:pointer; transition:background .12s}
.tbl tbody tr:hover{background:#fbf9ff}
.tbl tr.is-done td{opacity:.55}
.tbl tr.is-done td:nth-child(3){text-decoration:line-through}
.tbl td.late{color:var(--bad); font-weight:700}

.badge{font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:999px; white-space:nowrap}
.b-closed{background:#f1eefb; color:#55496e}
.b-open{background:var(--ok-soft); color:var(--ok)}

/* ── دکمه‌ها ── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:8px 15px; border-radius:var(--r-sm); border:1px solid var(--line);
  background:#fff; color:var(--ink); font:inherit; font-size:12.5px; font-weight:600;
  cursor:pointer; transition:all .15s; white-space:nowrap;
}
.btn:hover{background:var(--brand-soft); border-color:#ddd3f7; color:var(--brand-2)}
.btn.primary{
  background:linear-gradient(150deg,#8b5cf6,var(--brand));
  border-color:var(--brand); color:#fff;
  box-shadow:0 8px 18px -10px rgba(124,58,237,.9);
}
.btn.primary:hover{background:linear-gradient(150deg,#7c3aed,var(--brand-2)); color:#fff}
.btn.ghost{background:transparent}
.btn.sm{padding:5px 10px; font-size:11.5px; border-radius:9px}
.btn.ok{background:var(--ok-soft); border-color:#c4ebd4; color:var(--ok)}
.inline{display:inline}

/* ── نمودار و پیشرفت ── */
.bar{height:8px; background:#f1ecfb; border-radius:99px; overflow:hidden; min-width:80px}
.bar span{display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#a78bfa,var(--brand))}
.progress{position:relative; height:22px; background:#f1ecfb; border-radius:10px; overflow:hidden; margin:14px 0 6px}
.progress span{display:block; height:100%; background:linear-gradient(90deg,#a78bfa,var(--brand))}
.progress em{position:absolute; inset:0; display:grid; place-items:center; font-size:11px; font-style:normal; font-weight:700; color:#3d2a63}

/* ── سرصفحهٔ پرونده ── */
.crumb{font-size:12px; color:var(--muted); margin-bottom:10px}
.crumb a{color:var(--brand-2)}
.casehead{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.casehead h1{margin-bottom:2px}
.casehead__acts{display:flex; align-items:center; gap:8px; flex-wrap:wrap}

.kv{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 20px}
.kv div{display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed #f0eafa; padding:7px 0}
.kv span{color:var(--muted); font-size:12px}
.kv b{font-size:12.5px; font-weight:600}

.events{list-style:none; margin:0; padding:0; font-size:12px}
.events li{padding:8px 0; border-bottom:1px dashed #f0eafa}

/* ── فرم ── */
label{display:grid; gap:5px; font-size:12px; color:#413a55; margin-bottom:11px}
input,select,textarea{
  font:inherit; font-size:12.5px; padding:9px 12px; border-radius:var(--r-sm);
  border:1px solid var(--line); background:#fff; color:var(--ink); width:100%;
  transition:border-color .15s, box-shadow .15s;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:#b9a4f5; box-shadow:0 0 0 3px rgba(124,58,237,.13);
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 16px}

.types{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px}
.type{
  display:inline-flex; align-items:center; gap:6px; padding:7px 13px;
  border:1px solid var(--line); border-radius:999px; background:#fff;
  font-size:12px; color:#413a55;
}
.type.on{background:var(--brand); border-color:var(--brand); color:#fff; font-weight:600}
.type:hover{border-color:#d9d0f3}

/* ── بُرد ── */
.board{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; align-items:start}
.col{background:#f7f4fe; border:1px solid var(--line); border-radius:var(--r); padding:10px; min-height:150px}
.col header{display:flex; justify-content:space-between; align-items:center; font-size:11.5px; font-weight:700; color:#413a55; padding:2px 4px 10px}
.col header span{background:#fff; border:1px solid var(--line); border-radius:99px; padding:0 8px; color:var(--muted); font-weight:600}
.kcard{
  display:block; background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:10px 11px; margin-bottom:8px; color:inherit; box-shadow:0 1px 2px rgba(20,8,43,.04);
  transition:transform .12s, box-shadow .12s;
}
.kcard:hover{transform:translateY(-1px); box-shadow:var(--sh-hover); color:inherit}
.kcard b{display:block; font-size:11.5px; font-weight:700}
.kcard small{display:block; color:var(--muted); font-size:10.5px}
.kcard span{display:block; color:#9b90b5; font-size:10px; margin-top:3px}

/* ── خط زمان ── */
.gantt{background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; box-shadow:var(--sh)}
.grow{display:grid; grid-template-columns:190px minmax(0,1fr) 92px; gap:10px; align-items:center; padding:6px 0; border-bottom:1px dashed #f4f0fc}
.grow:last-child{border-bottom:0}
.glabel{display:block; font-size:11.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.glabel b{display:block; font-weight:600}
.glabel small{display:block; color:var(--muted); font-size:10.5px}
.gtrack{position:relative; height:14px; background:#f3effc; border-radius:6px}
.gbar{position:absolute; top:0; height:100%; border-radius:6px; background:linear-gradient(90deg,#a78bfa,var(--brand))}
.gbar.done{background:linear-gradient(90deg,#4ade80,#12894a)}
.gbar.late{background:linear-gradient(90deg,#f87171,#c0262b)}
.gnow{position:absolute; top:-4px; bottom:-4px; width:2px; background:#c0262b; opacity:.5; border-radius:2px}
.gmeta{font-size:10.5px; color:var(--muted); text-align:end}
.gmeta.late{color:var(--bad); font-weight:700}

/* ── ورود ── */
.login{
  max-width:400px; margin:7vh auto; background:#fff; border:1px solid var(--line);
  border-radius:22px; padding:28px 26px; box-shadow:0 24px 60px -30px rgba(76,29,149,.45);
}
.login h1{font-size:18px; margin-bottom:16px}
.login .btn{width:100%; margin-top:8px}

/* ── بقیه ── */
.flash{
  border-radius:14px; padding:10px 14px; margin-bottom:12px; font-size:12.5px;
  background:var(--ok-soft); color:var(--ok); border:1px solid #c4ebd4;
}
.flash.err{background:var(--bad-soft); color:var(--bad); border-color:#f5c9c9}

@media (max-width:1000px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .board{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .sitebar__in{padding:10px 14px}
  .nav{order:3; width:100%; overflow-x:auto; margin-inline-start:0}
  .main{padding:14px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid2{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr}
  .board{grid-template-columns:1fr}
  .grow{grid-template-columns:120px minmax(0,1fr) 70px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── صفحهٔ ورود ── */
.mark--lg{width:46px;height:46px;border-radius:14px;font-size:15px}
.authpage{background:var(--bg)}
.authwrap{
  min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) 460px;
  gap:0; align-items:stretch;
}
.authhero{
  margin:18px; padding:38px 40px; border-radius:26px; color:#fff;
  display:flex; flex-direction:column; gap:16px;
  background:radial-gradient(1200px 500px at 80% -10%,#8b5cf6 0%,#5b21b6 45%,#2e1065 100%);
  box-shadow:0 30px 60px -30px rgba(76,29,149,.6);
}
.authhero__top{display:flex; align-items:center; gap:12px}
.authhero__top b{display:block; font-size:14px}
.authhero__top small{display:block; color:#d9c9fb; font-size:11px}
.authhero h1{font-size:28px; line-height:1.6; margin:10px 0 0; color:#fff; letter-spacing:-.02em}
.authhero p{margin:0; color:#e9deff; font-size:13.5px; line-height:2; max-width:52ch}
.authfeat{list-style:none; margin:8px 0 0; padding:0; display:grid; gap:9px}
.authfeat li{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18);
  border-radius:14px; padding:10px 14px; font-size:12.5px; color:#f3ecff;
}
.authfeat li span{font-size:15px}
.authhero .authhero__foot{margin-top:auto; color:#c9b6f5; font-size:11px}
.authcard{
  align-self:center; margin:24px; padding:30px 28px;
  background:#fff; border:1px solid var(--line); border-radius:24px;
  box-shadow:0 24px 60px -34px rgba(76,29,149,.5);
}
.authcard h2{font-size:19px; margin:0 0 4px}
.authbtn{width:100%; margin-top:6px; padding:11px 16px; font-size:13.5px}
.authtip{margin:14px 0 0; font-size:11.5px; color:var(--muted); line-height:1.9}
@media (max-width:980px){
  .authwrap{grid-template-columns:1fr}
  .authhero{margin:12px; padding:26px 22px; border-radius:20px}
  .authhero h1{font-size:21px}
  .authcard{margin:0 12px 18px}
}


/* ══ صفحهٔ اول — برگرفته از کد پورتال ورزش (help.css/sitebar) ══ */

.vshome .hero{
  margin:16px 0 4px; padding:22px 30px; border-radius:22px; color:#fff;
  background:radial-gradient(1200px 400px at 50% -10%,#8b5cf6 0%,#5b21b6 45%,#2e1065 100%);
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; text-align:start;
}
.vshome .hero__logo{
  width:64px; height:64px; border-radius:18px; display:grid; place-items:center;
  font-weight:800; font-size:20px; color:#fff;
  background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3);
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.vshome .hero .kicker{
  display:inline-block; margin:6px 0 2px; padding:2px 12px;
  border-radius:999px; background:rgba(255,255,255,.16); font-size:12px; color:#fff;
}
.vshome .hero h1{
  margin:4px 0 6px; font-size:clamp(1.2rem,2.6vw,1.65rem);
  line-height:1.6; letter-spacing:-.01em; color:#fff;
}
.vshome .hero p{margin:0; max-width:640px; color:#ede9fe; font-size:.9rem; line-height:1.85}
.vshome .hero__acts{display:flex; flex-direction:row; gap:8px; margin-top:0; align-items:center}
.vshome .hero__go{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:10px 26px; border-radius:14px;
  background:#fff; color:var(--brand-2); font-weight:900; font-size:.95rem;
  text-decoration:none; white-space:nowrap;
  box-shadow:0 10px 24px rgba(20,8,43,.25);
  transition:transform .14s ease, box-shadow .14s ease;
}
.vshome .hero__go span{font-size:1.05rem}
.vshome .hero__go:hover,.vshome .hero__go:focus-visible{
  transform:translateY(-2px); box-shadow:0 14px 30px rgba(20,8,43,.32); outline:0;
}
.vshome .hero__go--ghost{
  background:rgba(255,255,255,.14); color:#fff;
  border:1px solid rgba(255,255,255,.3); box-shadow:none;
}

.vshome h2.sec{margin:26px 0 12px; font-size:1.2rem; text-align:center; color:var(--ink)}
.vshome h2.sec span{color:var(--muted); font-weight:500; font-size:.92rem; display:block; margin-top:4px}

.vshome .grid{display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-bottom:8px}
.vshome .card{
  display:grid; gap:6px; justify-items:center; text-align:center; text-decoration:none; color:var(--ink);
  background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px 14px;
  box-shadow:0 1px 2px rgba(20,8,43,.05), 0 8px 24px rgba(20,8,43,.04);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.vshome .card:hover{transform:translateY(-3px); border-color:#c9b8f5; box-shadow:0 14px 30px rgba(20,8,43,.10)}
.vshome .card i{font-size:2rem; font-style:normal; line-height:1}
.vshome .card b{font-size:.98rem; font-weight:700}
.vshome .card small{color:var(--muted); font-size:.8rem; line-height:1.7}

@media (max-width:900px){
  .vshome .hero{grid-template-columns:1fr; text-align:center; gap:14px; padding:18px 16px; border-radius:18px}
  .vshome .hero__logo{margin:0 auto; width:52px; height:52px; font-size:17px}
  .vshome .hero__acts{flex-direction:row; justify-content:center}
  .vshome .grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  .vshome .card{padding:16px 10px}
}

/* دکمهٔ ورود در نوار بالای صفحهٔ اول */
.sitebar .hero__go{
  background:linear-gradient(150deg,#8b5cf6,var(--brand));
  color:#fff; border-radius:11px; font-weight:700; text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; min-height:38px;
  padding:6px 18px; font-size:.86rem; box-shadow:0 8px 18px -10px rgba(124,58,237,.9);
}
.sitebar .hero__go:hover{color:#fff; filter:brightness(1.06); transform:none}
