/* ============================================================
   DapuraPROXY - Gerador de key gratis
   ============================================================ */

[hidden] { display: none !important; }

.gen {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 520px);
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 2px;
}

.gen-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dotted rgba(96, 116, 154, .5);
  padding-bottom: 1px;
  white-space: nowrap;
}

.gen-back:hover { color: #9fc2ff; }

/* Hero */
.gen-hero {
  padding: 24px 22px 22px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(0, 212, 255, .05));
  border-color: rgba(47, 107, 255, .38);
  overflow: hidden;
}

.gen-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, .28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.gen-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.12;
  margin: 12px 0 8px;
}

.gen-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 44ch;
}

.gen-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.gen-stat {
  padding: 10px 8px;
  border-radius: var(--r-md);
  background: rgba(4, 8, 16, .45);
  border: 1px solid var(--line);
  text-align: center;
}

.gen-stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}

.gen-stat span {
  display: block;
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.gen-stat.stock b { color: #8df7ca; }

/* Steps card */
.gen-card { padding: 20px; }

.gen-card .eyebrow { margin-bottom: 4px; }

.gen-card h2 {
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.2;
  margin: 6px 0 4px;
}

.gen-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.gate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(4, 8, 16, .35);
  transition: border-color .2s, background .2s;
}

.gate + .gate { margin-top: 10px; }

.gate.done {
  border-color: rgba(46, 230, 168, .34);
  background: rgba(46, 230, 168, .05);
}

.gate-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, .12);
  border: 1px solid rgba(47, 107, 255, .32);
  color: #8fb6ff;
}

.gate.done .gate-icon {
  background: rgba(46, 230, 168, .10);
  border-color: rgba(46, 230, 168, .34);
  color: #7df5c7;
}

.gate-body { flex: 1; min-width: 0; }

.gate-body b {
  display: block;
  font-size: 13.5px;
  line-height: 1.25;
}

.gate-body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.gate-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(125, 165, 255, .08);
  color: #bcd4ff;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.gate-btn:hover { background: rgba(125, 165, 255, .16); color: #fff; }

.gate-btn.marked {
  background: rgba(46, 230, 168, .10);
  border-color: rgba(46, 230, 168, .34);
  color: #7df5c7;
  pointer-events: none;
}

.gen-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--dim);
}

.gen-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(125, 165, 255, .10);
  overflow: hidden;
}

.gen-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6bff, #00d4ff);
  transition: width .35s ease;
}

.gen-form-error {
  min-height: 17px;
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--red);
  opacity: 0;
  transition: opacity .2s;
}

.gen-form-error.show { opacity: 1; }

/* Result */
.gen-result { text-align: center; }

.gen-result .ok-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 230, 168, .10);
  border: 1px solid rgba(46, 230, 168, .38);
  color: #7df5c7;
  box-shadow: 0 0 30px rgba(46, 230, 168, .18);
}

.gen-result h2 { margin: 0 0 4px; }

.gen-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
  padding: 14px 12px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(0, 212, 255, .45);
  background: rgba(0, 212, 255, .05);
}

.gen-key code {
  font-family: var(--f-mono);
  font-size: clamp(16px, 5vw, 20px);
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  word-break: break-all;
}

.gen-result .hint {
  margin: 0 0 16px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.gen-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gen-actions .btn { text-decoration: none; }

.gen-meta {
  margin: 12px 0 0;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--dim);
}

/* Notice */
.gen-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 2px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--dim);
}

.gen-notice svg { flex: none; margin-top: 1px; color: #6f8ec4; }

/* Toast copiado */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 16, 28, .95);
  border: 1px solid rgba(46, 230, 168, .4);
  color: #8df7ca;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .gen { padding-top: 20px; }
  .gen-hero { padding: 20px 18px 18px; }
  .gate { padding: 11px; gap: 10px; }
  .gate-btn { padding: 8px 9px; font-size: 9px; }
  .gate-body span { font-size: 11px; }
  .gen-stat b { font-size: 15px; }
  .gen-stat span { font-size: 8px; letter-spacing: .08em; }
}
