

:root{
  --page-bg:#0b0e0f;
  --muted:#9aa0a0;
  --accent:#00ff99;
  --accent-2:#00e080;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: Inter, system-ui, Segoe UI, Arial;
  background: radial-gradient(1200px 600px at 50% 60%, rgba(0,255,150,0.06), transparent 40%), var(--page-bg);
  color:#e9f6f0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

canvas{
  position:fixed;
  inset:0;
  z-index:0;
}

.wrap{
  width:80vw;
  max-width:1170px;
  min-width:300px;
  z-index:2;
}

.panel{
  display:flex;
  gap:18px;
  align-items:stretch;
  justify-content:center;
}

.panel.show-code{
  justify-content:space-between;
}

.card{
  flex: 0 0 470px;
  max-width: 470px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12));
  border-radius:18px;
  padding:20px 26px 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.04);
  position:relative;
  overflow:hidden;
  transition: transform .28s ease, opacity .28s ease;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 40%, rgba(0,255,150,0.08), transparent 45%);
  filter: blur(30px);
  z-index:0;
}

.content{position:relative;z-index:1;text-align:center}

.topline{
  font-size:13px;
  color:var(--muted);
  letter-spacing:0.6px;
  margin-bottom:12px;
}

.topline a{
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
  transition: transform .18s ease, text-shadow .18s ease;
}

.topline a:hover{
  transform: scale(1.06);
  text-shadow:0 0 10px rgba(0,255,150,0.8);
}

h1{
  margin:0 0 16px;
  font-size:21px;
  color:var(--accent);
  text-shadow:0 0 12px rgba(0,255,150,0.4);
}

.block{
  background: rgba(0,0,0,0.35);
  border-radius:12px;
  padding:11px 14px;
  margin-bottom:10px;
  border:1px solid rgba(0,255,150,0.15);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}

.block:hover{
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0,255,150,0.35);
}

.label{
  display:block;
  font-size:13px;
  color:#8fdac0;
  margin-bottom:6px;
  letter-spacing:0.5px;
}

.value{
  font-size:15px;
  word-break: break-all;
  color:#eafff6;
}

.value a{
  color:var(--accent);
  font-weight:700;
  text-decoration:none;
  transition: transform .18s ease, text-shadow .18s ease;
}

.value a:hover{
  transform: scale(1.06);
  text-shadow:0 0 12px rgba(0,255,150,0.9);
}

.key-input{
  width: 100%;
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,150,0.22);
  background: rgba(0,0,0,0.35);
  color: #eafff6;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.35);
}

.key-input:focus{
  border-color: rgba(0,255,150,0.55);
  box-shadow: 0 0 20px rgba(0,255,150,0.12), inset 0 0 10px rgba(0,0,0,0.35);
}

.getcode-btn{
  width:100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: none;
  color: #042016;
  font-weight: 900;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(0,255,150,0.12), 0 2px 6px rgba(0,0,0,0.5);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.getcode-btn:hover{ transform: translateY(-2px) }
.getcode-btn:active{ transform: translateY(1px) scale(0.997) }
.getcode-btn[disabled]{ cursor:not-allowed; opacity:0.55; transform:none }

.desc{
  margin-top:8px;
  font-size:12px;
  color:#b8c9c2;
  line-height:1.5;
}

.important{
  margin-top:14px;
  font-size:13px;
  line-height:1.6;
  color:#d6e6df;
}

.important strong{color:#ffd27d}

.note{
  margin-top:12px;
  font-size:13px;
  color:#9fdcff;
}

.right-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
}

.topline-code{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.code{
  font-family: "Courier New", monospace;
  font-size: 60px;
  letter-spacing: 10px;
  font-weight: 900;
  margin: 8px 0 4px;
  color: var(--accent);
  text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 6px 18px rgba(0,255,150,0.14), 0 18px 40px rgba(0,255,150,0.06);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.sub{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.sync{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6b7c75;
}

.controls{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin-top:8px;
}

.copy-btn{
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: none;
  color: #042016;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(0,255,150,0.12), 0 2px 6px rgba(0,0,0,0.5);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.copy-btn:hover{ transform: translateY(-2px) }
.copy-btn:active{ transform: translateY(1px) scale(0.997) }
.copy-btn[disabled]{ cursor:not-allowed; opacity:0.55; transform:none }

.progress{
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-top: 10px;
  overflow:hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.progress-bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(0,255,150,0.9), rgba(0,200,140,0.95));
  box-shadow: 0 8px 30px rgba(0,255,150,0.08);
  transition: width .9s linear;
}

.caption{
  margin-top: 10px;
  color: #92a79b;
  font-size: 12px;
}

.toast{
  position: fixed;
  left:50%;
  transform: translateX(-50%) translateY(12px);
  bottom: 36px;
  background: rgba(16,18,16,0.96);
  color: #dfffe8;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5), 0 4px 20px rgba(0,255,150,0.04);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s, transform .18s;
  z-index:9999;
  font-weight:800;
}

.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); pointer-events:auto }

.hidden{ display:none }

@media (max-width:900px){
  body{padding:10px; overflow:auto}
  .wrap{width:95vw; max-width:820px}
  .panel{flex-direction:column; gap:14px}
  .card{flex: 0 0 auto; max-width: 100%}
  .code{font-size:56px; letter-spacing:8px}
}

@media (max-width:420px){
  .card{padding:20px 18px 22px; border-radius:14px}
  h1{font-size:20px}
  .label{font-size:12px}
  .value{font-size:14px}
  .code{font-size:48px; letter-spacing:8px}
}
