@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #131112;
  --panel: #201c1d;
  --surface: #292324;
  --line: #42383a;
  --gold: #e3bb80;
  --text: #faf3e9;
  --muted: #c1b7af;
  --green: #a4d9b2;
  --bad: #ffa99d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.85 Vazirmatn,Tahoma,sans-serif; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea,summary { touch-action: manipulation; }
button,summary { cursor: pointer; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1280px,calc(100% - clamp(40px,9vw,160px))); margin-inline: auto; }
.site-head { background: #141213; border-bottom: 1px solid #393030; position: relative; z-index: 3; }
.head-inner,.head-controls,.brand,.public-nav,.actions,.tools,.pills,.inline,.pages { display: flex; align-items: center; }
.head-inner { min-height: 76px; justify-content: space-between; gap: 24px; }
.head-controls,.brand { gap: 11px; }
.brand b,.brand small { display: block; }
.brand img { width: 44px; height: 44px; }
.brand b { font-weight: 830; font-size: 19px; line-height: 1.55; }
.brand small { font: 650 9px/1.5 Arial,sans-serif; letter-spacing: 2px; color: var(--gold); }
.public-nav { gap: 32px; font-size: 14px; color: #ddd4cb; }
.public-nav a { padding-block: 7px; border-bottom: 1px solid transparent; }
.public-nav a:hover,.public-nav [aria-current] { color: var(--gold); border-color: var(--gold); }
.actions,.tools,.pills,.inline,.pages { gap: 12px; flex-wrap: wrap; }
.head-action,.button,.mini,.tab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface); color: var(--text); font-weight: 650; border: 1px solid var(--line); border-radius: 7px; padding: 9px 17px; transition: background .18s,border-color .18s,color .18s; }
.head-action { padding: 7px 15px; font-size: 14px; color: #f0d1a1; background: transparent; border-color: #6c5540; }
.head-action:hover,.glass:hover,.mini:hover,.tab:hover { border-color: #a78861; background: #332a26; }
.button { min-height: 49px; padding: 10px 22px; font-size: 15px; }
.gold { border-color: #e6c48e; color: #221910; background: linear-gradient(115deg,#ddb074,#f4d19a); }
.gold:hover { background: #f7dcae; color: #160f09; }
.glass { background: #21191bd9; border-color: #72625a; }
.icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu { display: none; }
.hero { position: relative; background: #170f10; isolation: isolate; overflow: hidden; }
.hero picture,.hero-image,.hero::before,.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -3; }
.hero-image { object-fit: cover; object-position: 37% 43%; }
.hero::before { content: ''; z-index: -2; background: linear-gradient(270deg,#171012 3%,#1d1314f5 18%,#211617c2 32%,#21151642 47%,transparent 62%),linear-gradient(0deg,#100b0db0,transparent 26%); }
.hero-frame { pointer-events: none; inset: 16px; width: auto; height: auto; border: 1px solid #f2d5a72b; z-index: -1; }
.hero-frame::before,.hero-frame::after { position: absolute; content: ''; width: 27px; height: 27px; border-color: #e8c48b9c; border-style: solid; }
.hero-frame::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.hero-frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.hero-views { position: absolute; z-index: 1; bottom: 27px; left: max(30px,4.5vw); display: flex; gap: 2px; padding: 3px; border: 1px solid #846e58; background: #171214df; border-radius: 8px; }
.hero-views button { background: transparent; border: 0; border-radius: 5px; color: #eee1cf; padding: 5px 12px; font-size: 12px; }
.hero-views button[aria-pressed="true"] { background: #edce9c; color: #231a13; }
.hero-inner { min-height: clamp(525px,40vw,665px); display: flex; align-items: center; }
.hero-copy { width: min(48%,570px); padding-block: 48px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold); font-size: 13px; font-weight: 650; }
.eyebrow i { width: 31px; height: 1px; display: inline-block; background: currentColor; position: relative; }
.eyebrow i::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.hero h1 { line-height: 1.37; font-size: clamp(62px,6.1vw,98px); font-weight: 900; letter-spacing: -.045em; margin: 9px 0 12px; }
.hero em { color: var(--gold); font-style: normal; }
.motto { margin: 0 0 14px; padding-inline-start: 17px; border-inline-start: 2px solid #a17c4c; }
.motto strong,.motto span { display: block; }
.motto strong { font-size: clamp(21px,1.85vw,30px); line-height: 1.65; font-weight: 730; }
.motto span { color: #eee0cc; font-size: clamp(14px,1.12vw,18px); line-height: 1.9; }
.invitation { font-size: 15px; line-height: 2.05; color: #d4c7bd; margin: 0 0 24px; max-width: 495px; }
.section { padding-block: clamp(32px,4.2vw,66px); }
.section-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.section-heading h2,.club-story h2,.workspace h1 { font-size: clamp(26px,2.7vw,42px); line-height: 1.55; letter-spacing: -.04em; margin: 0; font-weight: 820; }
.heading-rule { flex: 1; height: 1px; background: linear-gradient(to left,#7d6144,#3b3233 50%,transparent); }
.benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.feature-card { display: grid; align-items: end; position: relative; min-height: clamp(270px,21vw,330px); border: 1px solid #56463e; border-radius: 12px; overflow: hidden; background: #261e20; isolation: isolate; }
.feature-card img,.feature-card::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-card img { z-index: -2; object-fit: cover; object-position: center 34%; transition: transform .6s ease; }
.gathering img { object-position: 26% 38%; }
.feature-card::before { content: ''; z-index: -1; background: linear-gradient(0deg,#120f10 2%,#160f10f2 16%,#170f10cf 35%,#170f1030 66%,transparent 85%); }
.feature-copy { padding: 22px; }
.feature-copy h3 { margin: 6px 0 2px; font-size: clamp(18px,1.45vw,24px); }
.feature-copy p { margin: 0; font-size: 14px; line-height: 1.8; color: #e1d6cc; }
.icon-tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b79a6c8f; border-radius: 7px; color: #f0c68b; background: #1d1719dc; }
@media (hover:hover) { .feature-card:hover img { transform: scale(1.035); } }
.club-story { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(28px,6vw,85px); padding-block: 45px 62px; border-top: 1px solid var(--line); }
.club-story .about { max-width: 560px; }
.club-story h2 { font-size: clamp(25px,2vw,33px); }
.about .eyebrow { margin-bottom: 8px; }
.about p,.steps p { color: var(--muted); }
.text-action { display: inline-flex; gap: 12px; align-items: center; color: var(--gold); font-weight: 650; border-bottom: 1px solid #70583b; padding-bottom: 3px; }
.steps { list-style: none; counter-reset: step; margin: 15px 0 0; padding: 0; }
.steps li { position: relative; counter-increment: step; padding: 0 45px 14px 0; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step,persian); position: absolute; right: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #796046; border-radius: 50%; color: var(--gold); font-size: 14px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; right: 14px; top: 32px; bottom: 3px; width: 1px; background: #4d3a31; }
.steps p { font-size: 14px; margin: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 71px; }
footer a { font: 600 11px Arial,sans-serif; letter-spacing: 2px; color: var(--gold); }

.workspace { min-height: calc(100dvh - 148px); padding-block: 32px 55px; }
.workspace h1 { margin: 0 0 17px; }
.workspace h2,dialog h2 { font-size: 23px; margin: 0 0 16px; }
.workspace h3,.box h3 { margin: 0 0 8px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 20px; max-width: 996px; margin: 12px auto; }
.auth-art { min-height: 390px; background: linear-gradient(0deg,#160e10f5,transparent 61%),url('/images/insignia.jpg') 49% center/cover; border: 1px solid #5b4538; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #f2d2a0; }
.auth-art b { font-size: 29px; }
.auth-art span { color: #ddcbb7; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.wide { grid-column: 1/-1; }
.field input,.field textarea,.field select,.tools select,.tools input,dialog input,dialog select { width: 100%; padding: 9px 12px; border: 1px solid #514646; border-radius: 7px; background: #171415; color: var(--text); min-height: 44px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder { color: #b1a5a0; }
.field input[dir=ltr] { text-align: left; }
.form-actions { margin-top: 19px; }
.mini,.tab { font-size: 13px; padding: 7px 13px; }
.mini:disabled { opacity: .55; cursor: default; }
.plain { background: transparent; border: 0; color: var(--gold); padding: 4px; }
.plain:hover { text-decoration: underline; }
.captcha { display: flex; align-items: center; gap: 10px; }
.captcha img { width: 139px; height: 42px; }
.error,.notice,.empty { padding: 12px 15px; border-radius: 9px; background: #292222; color: #eae0d5; border: 1px solid #574640; margin: 12px 0; }
.error { color: #ffccbf; background: #3e2722; border-color: #72493f; }
.error:empty { display: none; }
.empty { text-align: center; padding: 32px 15px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; padding: 17px 22px; border: 1px solid #57433b; border-inline-start: 3px solid #b78c57; border-radius: 10px; background: linear-gradient(110deg,#211b1c,#332124); }
.dash-head p { margin: 0; }
.dash-nav { display: flex; gap: 7px; overflow: auto; padding: 8px 0 13px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.dash-nav a { white-space: nowrap; }
.tab.current { border-color: #a88454; color: #f1ce98; background: #372b25; }
.tools { margin: 0 0 16px; }
.tools>* { width: auto !important; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr)); gap: 15px; }
.box,.card { min-width: 0; padding: 23px; background: linear-gradient(135deg,#252021,#1e1a1b); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: 18px; overflow-wrap: anywhere; }
.card h3 { font-size: 18px; }
.muted,.box p,.card p { color: var(--muted); }
.card p { white-space: pre-line; margin: 7px 0; }
.card-top,.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ref { direction: ltr; display: inline-block; letter-spacing: 1px; font: 600 12px/1.6 monospace; color: #d5be9c; }
.tag { font-size: 12px; padding: 2px 9px; border: 1px solid #6c5f57; border-radius: 20px; color: #d5c9bf; }
.approved { color: var(--green); border-color: #52735b; }
.pending { color: var(--gold); border-color: #796647; }
.rejected,.danger { color: var(--bad); border-color: #84574a; }
.subrow { padding: 9px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.pages { justify-content: center; margin: 20px 0; }
.board-scale,.track { direction: ltr; position: relative; }
.board-scale { display: flex; justify-content: space-between; font: 12px monospace; color: var(--muted); margin-top: 12px; }
.track { height: 12px; margin: 7px 0 15px; border-radius: 5px; background: repeating-linear-gradient(90deg,#514440 0 1px,#302829 1px calc(100% / 24)); overflow: hidden; }
.track i { position: absolute; height: 100%; background: var(--gold); border-radius: 4px; }
.award-mark { font-size: 32px; color: var(--gold); width: 58px; height: 58px; background: radial-gradient(#4d3727,#302427); border: 1px solid #7b6848; border-radius: 15px; display: grid; place-items: center; }
.data-list { display: grid; gap: 10px; }
.rowbox { padding: 14px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; }
.checklist { display: flex; gap: 10px; flex-wrap: wrap; }
.checklist label { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; }
.checklist input { accent-color: var(--gold); width: auto; min-height: unset; }
.member-picker { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.member-picker .tools { margin: 6px 0; }
.member-picker .tools input { flex: 1; min-width: 100px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.stats b { color: var(--gold); }
dialog { width: min(650px,94vw); max-height: 90dvh; overflow: auto; border: 1px solid #68574d; background: var(--bg); border-radius: 14px; padding: 24px; color: var(--text); }
dialog::backdrop { background: #100b0dc7; backdrop-filter: blur(4px); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; background: #eee4ce; color: #25271c; box-shadow: 0 8px 28px #0007; padding: 10px 20px; border-radius: 10px; max-width: 92vw; text-align: center; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .head-inner { gap: 16px; }
  .public-nav { gap: 17px; }
  .hero-copy { width: 53%; }
  .hero-inner { min-height: 510px; }
  .hero h1 { font-size: clamp(52px,7vw,67px); }
  .hero::before { background: linear-gradient(270deg,#1a1113 6%,#1b1214ef 25%,#1d1516ab 44%,transparent 78%); }
  .feature-copy { padding: 15px; }
  .benefit-grid { gap: 10px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .public-nav { display: none; }
  .head-inner { min-height: 65px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand { gap: 7px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 8px; letter-spacing: 1.7px; }
  .head-action { padding: 6px 11px; font-size: 13px; }
  .head-controls { gap: 7px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; color: var(--gold); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { position: relative; height: 12px; width: 19px; border-block: 1.5px solid currentColor; }
  .mobile-menu summary span::before { content: ''; position: absolute; top: 3.75px; width: 100%; border-top: 1.5px solid; }
  .mobile-menu nav { position: absolute; z-index: 4; top: 46px; inset-inline-end: 0; width: 180px; display: grid; background: #201a1c; border: 1px solid #685247; border-radius: 8px; box-shadow: 0 10px 25px #0007; padding: 5px; }
  .mobile-menu a { padding: 9px 13px; }
  .hero { background: #191315; }
  .hero picture { height: clamp(245px,57vw,370px); }
  .hero-image { object-position: 50% 31%; }
  .hero::before { height: clamp(246px,57.2vw,371px); background: linear-gradient(0deg,#191315 0%,#191315a8 14%,transparent 45%); }
  .hero-frame { inset: 9px; }
  .hero-views { inset: 15px auto auto 15px; }
  .hero-inner { align-items: end; min-height: 0; padding-top: clamp(192px,43vw,300px); }
  .hero-copy { width: 100%; padding: 17px 5px 32px; }
  .hero h1 { font-size: clamp(48px,10.7vw,67px); margin: 6px 0 7px; }
  .motto { margin-bottom: 11px; padding-inline-start: 12px; }
  .motto strong { font-size: 21px; }
  .motto span { font-size: 14px; }
  .invitation { font-size: 14px; line-height: 1.95; margin-bottom: 17px; max-width: none; }
  .actions { gap: 8px; }
  .button { padding: 9px 15px; font-size: 14px; min-height: 45px; }
  .section-heading { gap: 12px; margin-bottom: 15px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 13px; }
  .feature-card { min-height: 220px; }
  .feature-copy { padding: 18px; }
  .feature-card img { object-position: center 35%; }
  .gathering img { object-position: 25% 40%; }
  .club-story { grid-template-columns: 1fr; padding-block: 30px 38px; gap: 28px; }
  .journey { padding-top: 23px; border-top: 1px solid var(--line); }
  .auth-layout,.fields { grid-template-columns: minmax(0,1fr); }
  .auth-art { display: none; }
  .auth-layout { margin: 0 auto; }
  .box,dialog { padding: 17px; }
  .workspace { padding-top: 22px; }
  .tools { gap: 7px; }
  .tools select,.tools input { max-width: 100%; }
  .dash-head { padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}

