@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Poppins:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #070707;
  --bg2: #111111;
  --accent: #00B7FF;
  --cyan: #00E5FF;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(0,183,255,0.18);
  --text: #ffffff;
  --text-sub: rgba(255,255,255,0.5);
  --card: rgba(255,255,255,0.04);
  --radius: 18px;
  --glow: 0 0 30px rgba(0,183,255,0.25);
  --glow-strong: 0 0 60px rgba(0,183,255,0.4);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  user-select: none;
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── INTRO ── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  gap: 28px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#intro.hidden { opacity: 0; visibility: hidden; }

#intro-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0,183,255,0.8);
  opacity: 0;
  animation: logoFade 1s ease 0.3s forwards;
}
#intro-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-sub);
  opacity: 0;
  animation: logoFade 1s ease 0.6s forwards;
}
#intro-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(0,183,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: logoFade 0.5s ease 0.9s forwards;
}
#intro-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  animation: barFill 1.6s ease 1s forwards;
  box-shadow: 0 0 10px var(--accent);
}
#intro-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--text-sub);
  opacity: 0;
  animation: logoFade 0.5s ease 1s forwards;
}

@keyframes logoFade { to { opacity: 1; } }
@keyframes barFill  { to { width: 100%; } }

/* ── MAIN CONTAINER ── */
#app {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#app.visible { opacity: 1; }

/* ── POPUP ── */
#popup {
  width: 100%;
  max-width: 420px;
  background: rgba(10,10,14,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  box-shadow: 0 8px 60px rgba(0,0,0,0.8), var(--glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
#app.visible #popup {
  transform: translateY(0) scale(1);
}

/* Animated border */
#popup::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;
  background: linear-gradient(
    var(--border-angle, 0deg),
    transparent 20%,
    var(--accent) 40%,
    var(--cyan) 60%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  pointer-events: none;
}
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes borderSpin {
  to { --border-angle: 360deg; }
}

/* inner top glow */
#popup::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 120px;
  background: radial-gradient(ellipse, rgba(0,183,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── HEADER ── */
.popup-header {
  position: sticky;
  top: -32px;
  z-index: 5;
  text-align: center;
  margin: -32px -28px 22px;
  padding: 32px 28px 14px;
  background: rgba(10,10,14,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.popup-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0,183,255,0.6);
  line-height: 1;
}
.popup-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-sub);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ── NOTE BOX ── */
.note-box {
  background: rgba(0,183,255,0.05);
  border: 1px solid rgba(0,183,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.note-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
}
.note-text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}
.note-text span {
  color: var(--accent);
  font-weight: 600;
}

/* ── STEP BUTTONS ── */
.step-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  color: rgba(255,255,255,0.75);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  -webkit-appearance: none;
}
.step-btn svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.step-btn:hover {
  border-color: rgba(0,183,255,0.35);
  background: rgba(0,183,255,0.07);
  box-shadow: 0 0 20px rgba(0,183,255,0.12);
  transform: translateY(-1px);
}
.step-btn:active { transform: scale(0.97); }
.step-btn.done {
  border-color: rgba(0,183,255,0.5);
  background: rgba(0,183,255,0.1);
  color: var(--accent);
}
.step-btn.done .btn-icon { display: none; }
.step-btn.done::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300B7FF' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat, rgba(0,183,255,0.15);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,183,255,0.25);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── PROGRESS BAR ── */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px var(--accent);
}
.progress-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-sub);
  white-space: nowrap;
}

/* ── CONTINUE BUTTON ── */
#btn-continue {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(0,183,255,0.08);
  border: 1px solid rgba(0,183,255,0.2);
  color: rgba(255,255,255,0.3);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: not-allowed;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
#btn-continue.active {
  background: linear-gradient(135deg, rgba(0,183,255,0.2), rgba(0,229,255,0.12));
  border-color: var(--accent);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0,183,255,0.2);
  text-shadow: 0 0 12px rgba(0,183,255,0.6);
  animation: continuePulse 2s ease infinite;
}
#btn-continue.active:hover {
  box-shadow: 0 0 40px rgba(0,183,255,0.35);
  transform: translateY(-1px);
}
#btn-continue.active:active { transform: scale(0.98); }
@keyframes continuePulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,183,255,0.2); }
  50%      { box-shadow: 0 0 40px rgba(0,183,255,0.4); }
}

/* ── SCREEN TRANSITION ── */
.screen {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.screen.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.screen.exit {
  opacity: 0;
  transform: translateX(-20px);
}

/* ── METHOD SELECTION ── */
.method-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.method-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--card);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.method-card:hover {
  border-color: rgba(0,183,255,0.3);
  background: rgba(0,183,255,0.05);
}
.method-card.selected {
  border-color: var(--accent);
  background: rgba(0,183,255,0.08);
  box-shadow: 0 0 20px rgba(0,183,255,0.12), inset 0 0 20px rgba(0,183,255,0.04);
}
.method-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.method-card.selected .method-radio {
  border-color: var(--accent);
  background: rgba(0,183,255,0.15);
}
.method-radio-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.method-card.selected .method-radio-dot {
  opacity: 1;
  transform: scale(1);
}
.method-info { flex: 1; }
.method-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  transition: color 0.25s;
}
.method-card.selected .method-name { color: var(--accent); }
.method-desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}
.method-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,183,255,0.12);
  border: 1px solid rgba(0,183,255,0.25);
  color: var(--accent);
}

/* ── GENERATE BUTTON ── */
#btn-generate {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0090cc, #00B7FF 50%, #00cfff);
  background-size: 200% 200%;
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,183,255,0.35);
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
#btn-generate:hover {
  box-shadow: 0 6px 40px rgba(0,183,255,0.55);
  transform: translateY(-2px);
}
#btn-generate:active { transform: scale(0.98); }
#btn-generate.loading {
  background: rgba(0,183,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,183,255,0.3);
  cursor: wait;
  animation: none;
  box-shadow: 0 0 20px rgba(0,183,255,0.2);
}

/* Shine */
#btn-generate::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease infinite 1s;
}
@keyframes btnShine {
  0%,100% { left: -100%; }
  40%,60%  { left: 140%; }
}

/* Loading dots */
.loading-dots span {
  display: inline-block;
  animation: dotBounce 1.2s ease infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.5; }
  40%         { transform: translateY(-4px); opacity: 1; }
}

/* ── SUCCESS SCREEN ── */
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(0,183,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 40px rgba(0,183,255,0.3);
  animation: successPulse 2s ease infinite;
}
@keyframes successPulse {
  0%,100% { box-shadow: 0 0 30px rgba(0,183,255,0.3); }
  50%      { box-shadow: 0 0 60px rgba(0,183,255,0.5); }
}
.success-icon svg {
  width: 28px; height: 28px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.6s ease 0.3s forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.success-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-align: center;
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 0 20px rgba(0,183,255,0.4);
}

.key-box {
  background: rgba(0,183,255,0.05);
  border: 1px solid rgba(0,183,255,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0,183,255,0.08);
}
.key-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  flex: 1;
  word-break: break-all;
  text-shadow: 0 0 12px rgba(0,183,255,0.4);
}
.copy-icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,183,255,0.3);
  background: rgba(0,183,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.copy-icon-btn:hover { background: rgba(0,183,255,0.2); }
.copy-icon-btn svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; }

.action-btns {
  display: flex;
  gap: 8px;
}
.action-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,183,255,0.2);
  background: rgba(0,183,255,0.06);
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.action-btn:hover {
  background: rgba(0,183,255,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0,183,255,0.15);
}

/* copied toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,183,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,183,255,0.3);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── BACK BUTTON ── */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--accent); }
.back-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 460px) {
  #popup { padding: 24px 18px 20px; }
  .step-buttons { flex-direction: column; }
}

/* ── BRAND BADGE ── */
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
}
.badge-dot-accent {
  color: var(--accent);
  font-weight: 600;
}
.badge-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.badge-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(0,183,255,0.4);
  display: inline-block;
}

/* ── SOCIAL FOOTER ── */
.social-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(0,183,255,0.2);
  background: rgba(0,183,255,0.05);
}
.tg-handle {
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* ── BYPASS SCREEN ── */
.bypass-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid #FF4444;
  background: rgba(255,68,68,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 16px;
  box-shadow: 0 0 30px rgba(255,68,68,0.2);
}
.bypass-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #FF4444;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 0 16px rgba(255,68,68,0.4);
}
.bypass-msg {
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.7;
}

/* ── PREMIUM REDESIGN OVERRIDES ── */

/* Popup logo — white border glow */
.popup-logo {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 20px rgba(0,183,255,0.15), inset 0 0 12px rgba(0,183,255,0.04);
  letter-spacing: 6px;
}

/* Note label — white border pill */
.note-label {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 10px;
}

/* Method name accent text — white border underline */
.method-card.selected .method-name {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
}

/* Method badge — white border */
.method-badge {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 8px;
}
.method-card.selected .method-badge {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,183,255,0.1);
}

/* Success title — white border pill */
.success-title {
  display: inline-block;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

/* Key box — stronger white + blue border */
.key-box {
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 24px rgba(0,183,255,0.12), inset 0 0 12px rgba(0,183,255,0.04);
}

/* Progress label — white bordered pill */
.progress-label {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
}

/* Action buttons — white border */
.action-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}
.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,183,255,0.08);
}

/* Step btn done state — white border */
.step-btn.done {
  border: 1px solid rgba(255,255,255,0.2);
}

/* Brand badge separator dots */
.badge-dots span {
  background: rgba(255,255,255,0.3);
}

/* ── 60 SEC COUNTDOWN ── */
#key-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}
#key-timer-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
#key-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 3px;
  transition: width 1s linear;
  box-shadow: 0 0 6px var(--accent);
}
#key-timer-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-sub);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}
#key-expired-msg {
  display: none;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,68,68,0.3);
  background: rgba(255,68,68,0.06);
  color: rgba(255,100,100,0.8);
  font-size: 11px;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  margin-top: 10px;
}

/* popup-tagline white border */
.popup-tagline {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  font-size: 10px;
}

/* method title white border line */
.method-title {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 12px;
  margin-bottom: 14px;
}


/* ── KEY GENERATION HELP VIDEO ── */
.key-help {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.key-help-title {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid rgba(0,183,255,0.25);
  border-radius: 20px;
  padding: 3px 9px;
  margin-bottom: 7px;
}
.key-help-text {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  margin-bottom: 9px;
}
.key-help-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(0,183,255,0.2);
  background: #000;
  box-shadow: 0 0 18px rgba(0,183,255,0.08);
}
.key-help-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.key-help-link {
  display: block;
  text-align: center;
  margin-top: 9px;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.key-help-link:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0,229,255,0.5); }
@media (max-width: 460px) {
  .popup-header { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .key-help { padding: 10px; }
  .key-help-text { font-size: 10px; }
}

/* Keep CRITICAL XR header visible while the longer help section is scrolled on desktop/mobile. */
#popup {
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.popup-header {
  position: sticky;
  top: -32px;
  z-index: 5;
  padding-top: 32px;
  padding-bottom: 8px;
  margin-top: -32px;
  background: rgba(10,10,14,0.96);
}
