:root{
  --bg:#0b1020;
  --card: rgba(12, 18, 40, .78);
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --accent: #59b7ff;
  --accent2:#ff7a18;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  background-image: url("/public/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}
.overlay{
  position:fixed; inset:0;
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(0,0,0,.25), rgba(0,0,0,.70)),
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.78));
  backdrop-filter: blur(1px);
}

.wrap{
  position:relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 18px 32px;
}

.top{margin-bottom:18px}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
}
.brandLogo{
  width: 220px;
  max-width: 70vw;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.6));
}
.badge{
  display:inline-flex;
  gap:8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: default;
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  text-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.lead{
  max-width: 70ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  box-shadow: 0 12px 38px rgba(0,0,0,.20);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
}
.pill.link{
  border-color: rgba(89,183,255,.35);
}
.pill.link:hover{
  background: rgba(89,183,255,.10);
}

.card{
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 18px;
}

.linksCard{ margin-top: 14px; }

.linkGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.linkCol{
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.linkTitle{
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}
.linkBtn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 700;
  margin-top: 8px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.linkBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.40);
}
.linkBtn:active{ transform: translateY(0px); }
.linkBtn .ico{ width: 26px; text-align:center; }
.linkBtn .chev{ opacity:.75; }

@media (max-width: 720px){
  .linkGrid{ grid-template-columns: 1fr; }
  .brandLogo{ width: 200px; }
}

.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cardTitle{
  font-weight: 800;
  letter-spacing: .02em;
}
.status{
  font-size: 13px;
  color: var(--muted2);
}

.authBox{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,.20);
  margin: 10px 0 14px;
}
.authTitle{ font-weight: 800; margin-bottom: 6px; }
.authText{ color: var(--muted); font-size: 13.5px; line-height:1.5; margin-bottom: 10px; }
.authHint{ color: var(--muted2); font-size: 12.5px; margin-top: 10px; }
.tgWrap{ display:flex; align-items:center; justify-content:flex-start; min-height: 52px; }

.options{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin: 14px 0 18px;
}

.option{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: rgba(0,0,0,.18);
  display:grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items:center;
  cursor:pointer;
  user-select:none;
}
.option:hover{ background: rgba(255,255,255,.04); }
.option.disabled{ opacity: .70; cursor: not-allowed; }
.option .radio{
  width: 18px; height:18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
}
.option.selected .radio{
  border-color: rgba(89,183,255,.95);
  box-shadow: 0 0 0 6px rgba(89,183,255,.12);
}
.option.selected .radio::after{
  content:"";
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(89,183,255,.95);
}
.option .label{
  font-weight: 700;
}
.option .count{
  font-weight: 800;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.bar{
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
  margin-top: 10px;
}
.bar > div{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(89,183,255,.95), rgba(255,122,24,.92));
  transition: width 350ms ease;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.btn{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.26);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn:disabled{ opacity: .55; cursor:not-allowed; }
.btn.primary{
  border-color: rgba(89,183,255,.45);
  background: rgba(89,183,255,.14);
}
.btn.primary:hover{ background: rgba(89,183,255,.20); }

.fineprint{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  color: var(--muted2);
  font-size: 12.5px;
}
.sep{ opacity:.5 }

.foot{
  margin-top: 16px;
  color: var(--muted2);
  font-size: 12.5px;
  text-align:center;
}
.muted{ opacity:.85; color: var(--muted2); text-decoration:none; }
.muted:hover{ color: var(--text); }

.row{
  display:grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items:center;
}
.lbl{ color: var(--muted); font-weight:700; font-size: 13px; }
.inp{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
.inp:focus{ border-color: rgba(89,183,255,.55); }

.results{
  display:flex;
  flex-direction:column;
  gap:10px;
  color: var(--text);
  font-size: 13.5px;
}
.resRow{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,.18);
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.resRow b{ font-weight: 800; }

@media (max-width: 640px){
  .row{ grid-template-columns: 1fr; }
}


/* v3: name input */
.nameRow{
  margin: 14px 0 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.nameRow label{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 700;
  margin-bottom: 8px;
}
.req{ opacity:.9; }
.nameInput{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  outline: none;
}
.nameInput:focus{
  border-color: rgba(120,180,255,.65);
}
.nameHint{
  margin-top: 8px;
  font-size: 12px;
  opacity: .9;
  line-height: 1.35;
}
