:root {
  --bg: #050510;
  --panel: #0b0b1a;
  --accent: #65f3ff;
  --accent-2: #a855f7;
  --text: #f5f6ff;
  --muted: #a5adcb;
  --border: rgba(101, 243, 255, 0.3);
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }


body {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(101, 243, 255, 0.15), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.12), transparent 30%),
              var(--bg);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  padding: 32px 16px 24px;
  gap: 20px;
}

.glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(101, 243, 255, 0.2), transparent 60%);
  filter: blur(40px);
  opacity: 0.8;
  animation: float 12s ease-in-out infinite;
}

.shell {
  position: relative;
  width: min(960px, 90vw);
  display: grid;
  gap: 20px;
  z-index: 2;
}

.neon-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(101, 243, 255, 0.08), rgba(168, 85, 247, 0.12));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.menu-logo {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(101, 243, 255, 0.3);
  background: linear-gradient(120deg, rgba(101, 243, 255, 0.12), rgba(168, 85, 247, 0.12));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.menu-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}


.menu-button {
  position: relative;
  width: 64px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  border: 1px solid rgba(101, 243, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, border 0.2s ease, box-shadow 0.25s ease;
}

.menu-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(101, 243, 255, 0.25), rgba(168, 85, 247, 0.25));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-button .button-core {
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
              radial-gradient(circle at 70% 70%, rgba(101, 243, 255, 0.25), transparent 40%),
              rgba(255, 255, 255, 0.03);
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(101, 243, 255, 0.8);
  box-shadow: 0 12px 26px rgba(101, 243, 255, 0.25);
}

.menu-button:hover::after,
.menu-button:focus-visible::after {
  opacity: 1;
}


.site-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.site-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.site-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-link:hover {
  color: var(--accent);
}


.header {
  text-align: left;
}

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.platform-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  max-width: 640px;
}

.legal-reminder {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 14px;
}


.panel {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(101, 243, 255, 0.06), rgba(168, 85, 247, 0.08));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.stat-value {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


.input-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: center;
}

.consent-callout {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}


input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

option {
  color: #000;
  background: #fff;
}


input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(101, 243, 255, 0.12);
}

.btn {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(101, 243, 255, 0.12), rgba(168, 85, 247, 0.2));
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 243, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: linear-gradient(120deg, #65f3ff, #a855f7);
  color: #050510;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(101, 243, 255, 0.35);
}

.preview {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  min-height: 120px;
  display: grid;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.preview h3 {
  margin: 0;
  font-size: 18px;
}

.preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}

.control label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.action-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.loader-bar {
  position: relative;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: none;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.loader-bar.active { display: flex; }

.loader-bar .bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.loader-bar .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #65f3ff, transparent, #a855f7, transparent);
  animation: shimmer 1.2s linear infinite;
}

.loader-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

@keyframes shimmer {
  from { transform: translateX(-50%); }
  to { transform: translateX(50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 640px) {
  body { padding: 20px 16px 24px; align-items: flex-start; }
  .shell { margin-top: 24px; }
  .input-row { grid-template-columns: 1fr; }
  .action-row { justify-content: center; }
}

.error {
  color: #ff8fa3;
  margin: 0;
}


.how-to {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.how-to h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.how-to ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.how-to li strong {
  color: var(--text);
}


.site-footer {
  margin: 20px 0 40px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  width: min(960px, 90vw);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}