:root {
  --bg-deep: #050510;
  --bg-card: rgba(15, 15, 35, 0.65);
  --border-glass: rgba(100, 130, 255, 0.12);
  --accent: #6C63FF;
  --accent-bright: #8B83FF;
  --accent-glow: rgba(108, 99, 255, 0.4);
  --neon-cyan: #00F0FF;
  --neon-pink: #FF006E;
  --neon-green: #39FF14;
  --text-primary: #EEEEF5;
  --text-secondary: rgba(238, 238, 245, 0.55);
  --text-muted: rgba(238, 238, 245, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}
#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
/* Mouse glow */
#mouse-glow {
  position: fixed; width: 300px; height: 300px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(108,99,255,0.15), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
#mouse-glow.active { opacity: 1; }
.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(80px); opacity: 0.3; z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb--1 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -100px; left: -100px; }
.bg-orb--2 { width: 350px; height: 350px; background: radial-gradient(circle, var(--neon-cyan), transparent 70%); bottom: -80px; right: -80px; animation-delay: -4s; animation-duration: 15s; }
.bg-orb--3 { width: 250px; height: 250px; background: radial-gradient(circle, var(--neon-pink), transparent 70%); top: 50%; left: 60%; animation-delay: -8s; animation-duration: 18s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
.grid-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background-image: linear-gradient(rgba(108,99,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(108,99,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.scanlines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}
/* Card */
.container {
  position: relative; z-index: 10; padding: 20px; width: 100%; max-width: 460px;
  animation: cardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardEntry { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.card {
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), var(--neon-cyan), transparent);
  opacity: 0.6;
}
/* Logo */
.logo-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--neon-cyan));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; position: relative;
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0,240,255,0.15);
  animation: logoPulse 3s ease-in-out infinite;
  transition: transform 0.3s;
}
.logo-icon:hover { transform: scale(1.1) rotate(5deg); }
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0,240,255,0.15); }
  50% { box-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(0,240,255,0.3); }
}
h1 {
  font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.subtitle { text-align: center; color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 24px; }
/* Platform badge */
.platform-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 20px; padding: 6px 16px;
  background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2);
  border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--accent-bright); width: fit-content;
}
.platform-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-green); animation: dotBlink 2s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Auto section */
.auto-section { display: none; text-align: center; margin-bottom: 20px; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.auto-section .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.progress-bar { width: 100%; height: 3px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--neon-cyan)); border-radius: 4px; animation: progressFill 1.5s ease-in-out forwards; box-shadow: 0 0 10px var(--accent-glow); }
@keyframes progressFill { from { width: 0; } to { width: 100%; } }
.auto-section .warn { font-size: 12px; color: var(--neon-cyan); opacity: 0; transition: opacity 0.5s; }
/* Buttons */
.btn-group { display: none; flex-direction: column; gap: 10px; margin-bottom: 16px; animation: fadeIn 0.5s ease; }
.btn-group.visible { display: flex; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: var(--radius-sm);
  border: none; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
/* Ripple */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0); animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }
/* Button variants */
.btn--primary { background: linear-gradient(135deg, #6C63FF, #4F46E5); box-shadow: 0 4px 20px rgba(108,99,255,0.3); }
.btn--primary:hover { box-shadow: 0 6px 30px rgba(108,99,255,0.5); }
.btn--cyan { background: linear-gradient(135deg, #00B4D8, #0077B6); box-shadow: 0 4px 20px rgba(0,180,216,0.3); }
.btn--pink { background: linear-gradient(135deg, #E040FB, #9C27B0); box-shadow: 0 4px 20px rgba(224,64,251,0.3); }
.btn--green { background: linear-gradient(135deg, #00E676, #00C853); color: #0a1a0a; box-shadow: 0 4px 20px rgba(0,230,118,0.3); }
.btn--orange { background: linear-gradient(135deg, #FF9100, #FF6D00); box-shadow: 0 4px 20px rgba(255,145,0,0.3); }
.btn--teal { background: linear-gradient(135deg, #26C6DA, #00838F); box-shadow: 0 4px 20px rgba(38,198,218,0.3); }
.btn--red { background: linear-gradient(135deg, #EF5350, #C62828); box-shadow: 0 4px 20px rgba(239,83,80,0.3); }
.btn--ghost {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary); font-size: 13px; padding: 12px 20px;
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.btn .icon { font-size: 18px; }
.btn .tag { font-size: 10px; opacity: 0.7; margin-left: 4px; }
/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-glass), transparent); }
/* Sub URL */
.sub-url-wrap {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px;
}
.sub-url-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.sub-url-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-secondary); word-break: break-all; line-height: 1.6; }
/* Toast */
#copied-toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(57,255,20,0.15); border: 1px solid rgba(57,255,20,0.3);
  color: var(--neon-green); padding: 10px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 600; z-index: 100;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; backdrop-filter: blur(10px);
}
#copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Touch sparks */
.touch-spark {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  pointer-events: none; z-index: 99;
  animation: sparkAnim 0.8s ease-out forwards;
}
@keyframes sparkAnim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0) translate(var(--dx), var(--dy)); opacity: 0; }
}
.footer { text-align: center; margin-top: 16px; font-size: 11px; color: var(--text-muted); }
.footer a { color: var(--accent-bright); text-decoration: none; }
@media (max-width: 480px) {
  .container { padding: 12px; }
  .card { padding: 28px 20px 20px; }
  h1 { font-size: 20px; }
  .logo-icon { width: 56px; height: 56px; font-size: 26px; }
}
