@font-face{
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  src: local("Vazirmatn"), local("Vazir"), local("Tahoma");
}

:root{
  --bg:#070708;
  --card:#0f1013;
  --border:rgba(255,255,255,.10);
  --text:#f1f1f1;
  --muted:rgba(255,255,255,.70);
  --gold:#d8b35a;
  --gold2:#b9923e;
  --danger:#ff5a5a;
  --ok:#2ee59d;
}

*{box-sizing:border-box}
body{
  margin:0;
  background: radial-gradient(1100px 600px at 70% -20%, rgba(216,179,90,.18), transparent 60%),
              radial-gradient(800px 500px at 20% 0%, rgba(185,146,62,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px}
.card{
  width:min(980px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.head{padding:18px 18px 10px;border-bottom:1px solid var(--border)}
.brand{display:flex;gap:14px;align-items:center}
.logo{width:64px;height:64px;object-fit:contain;filter: drop-shadow(0 10px 20px rgba(0,0,0,.4))}
.brandText h1{margin:0;font-size:22px;letter-spacing:.2px}
.brandText p{margin:6px 0 0;color:var(--muted);font-size:14px}

.steps{
  margin-top:16px;
  position:relative;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.step{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(0,0,0,.18);
  min-width: 0;
  flex: 1;
}
.step span{
  width:32px;height:32px;border-radius:12px;
  display:grid;place-items:center;
  border:1px solid rgba(216,179,90,.55);
  color:var(--gold);
  font-weight:800;
}
.step b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.step.active{border-color:rgba(216,179,90,.45);box-shadow: inset 0 0 0 1px rgba(216,179,90,.12)}
.line{display:none}

.form{padding:18px}
.panel{display:none;animation:fade .25s ease}
.panel.active{display:block}
@keyframes fade{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}

h2{margin:0 0 14px;font-size:18px}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid.two{grid-template-columns:1.25fr .75fr}
.field{display:flex;flex-direction:column;gap:8px}
.field > span{font-size:15px;color:rgba(255,255,255,.92)}
.field input{
  height:54px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  padding:0 14px;
  outline:none;
  font-size:16px;
}
.field input:focus{border-color:rgba(216,179,90,.6);box-shadow:0 0 0 4px rgba(216,179,90,.10)}
.field small{color:var(--muted);font-size:13px;line-height:1.4}

.note{
  padding:12px 14px;
  border:1px solid rgba(216,179,90,.35);
  background: rgba(216,179,90,.07);
  border-radius:14px;
  margin-bottom:14px;
  color:rgba(255,255,255,.92);
  font-size:14px;
  line-height:1.7;
}

.pass{display:flex;gap:8px;align-items:center}
.pass input{flex:1}
.eye{
  width:54px;height:54px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor:pointer;
  font-size:18px;
}

.preview{margin-top:10px}
.previewBox{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.18);
}
.previewTitle{color:var(--muted);font-size:13px;margin-bottom:10px}
.previewImgWrap{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  height:240px;
  display:grid;place-items:center;
}
.previewImgWrap img{max-width:100%;max-height:100%;display:none}
#previewEmpty{color:var(--muted);font-size:14px;padding:16px;text-align:center}

.sample{
  border:1px solid var(--border);
  border-radius:18px;
  background: rgba(0,0,0,.16);
  padding:12px;
}
.sampleTitle{display:block;color:rgba(255,255,255,.92);margin-bottom:10px;font-size:15px}
.sample img{width:100%;height:auto;border-radius:14px;border:1px solid var(--border)}
.sample ul{margin:10px 0 0;padding:0 18px;color:var(--muted);font-size:13px;line-height:1.8}

.rules{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.check{display:flex;gap:10px;align-items:flex-start}
.check input{margin-top:4px;transform:scale(1.15)}
.check span{color:rgba(255,255,255,.92);font-size:14px;line-height:1.8}

.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.btn{
  height:54px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}
.btn.primary{
  border-color: rgba(216,179,90,.55);
  background: linear-gradient(135deg, rgba(216,179,90,.20), rgba(185,146,62,.10));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.btn:disabled{opacity:.55;cursor:not-allowed}

.hint{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.16);
  border-radius:14px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.8;
}
.tlink{color:var(--gold);text-decoration:none}
.tlink:hover{text-decoration:underline}

.status{
  margin-top:12px;
  display:none;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:14px;
  line-height:1.8;
}
.status.show{display:block}
.status.ok{border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.08); color: rgba(255,255,255,.92)}
.status.err{border-color: rgba(255,90,90,.35); background: rgba(255,90,90,.08); color: rgba(255,255,255,.92)}

.foot{
  display:flex;justify-content:space-between;gap:10px;
  padding:14px 18px;
  border-top:1px solid var(--border);
  background: rgba(0,0,0,.10);
}
.footItem{
  color: rgba(255,255,255,.82);
  text-decoration:none;
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  font-size:14px;
}
.footItem:hover{border-color: rgba(216,179,90,.35)}
.right{text-align:right}
.mid{text-align:center}
.left{text-align:left}

/* Mobile */
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
  .grid.two{grid-template-columns:1fr}
  .brandText h1{font-size:19px}
  .steps{gap:8px}
  .step b{font-size:13px}
}
