:root {
  /* Colors */
  --color-bg: #0f0f11;
  --color-surface: #1a1b1e;
  --color-elevated: #222326;
  --color-text: #f1f1f1;
  --color-muted: #9ca3af;
  --color-accent: #a3ff12;
  --color-accent-hover: #d0ff61;
  --color-border: #2c2d30;

  /* Spacing & Sizing */
  --radius: 20px;
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --max-width: 720px;

  /* Typography */
  --font-body: 16px;
  --font-heading: 28px;

  /* Shadow */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Layout Shell */
.app-shell {
  display: flex;
  justify-content: center;
  padding: var(--space-32) var(--space-16);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

/* Typography */
.page-title {
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  color: white;
  letter-spacing: -0.25px;
  line-height: 1.2;
}

/* Card Base */
.card {
  background: rgba(26, 27, 30, 0.75); /* translucent for glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  border-radius: var(--radius);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Form Group */
.form-group label {
  font-weight: 500;
  margin-bottom: var(--space-8);
  display: block;
  color: var(--color-muted);
}

textarea {
  width: 100%;
  height: 160px;
  padding: var(--space-16);
  background-color: var(--color-elevated);
  color: white;
  font-size: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Button Row */
.button-row {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* spacing between icon and text */
}

.btn i {
  font-size: 18px;
  display: inline-block;
  line-height: 1;
}


.btn.primary {
  background: var(--color-accent);
  color: black;
  border: none;
  box-shadow: 0 0 10px var(--color-accent);
}

.btn.primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 14px var(--color-accent-hover);
  transform: scale(1.02);
}

.btn.secondary {
  background: var(--color-elevated);
  color: white;
  border: 1px solid var(--color-border);
}

.btn.secondary:hover {
  background: #2f2f33;
}



/* Guide */
.section-title,
.section-subtitle {
  font-weight: 600;
  color: white;
}

.section-title {
  font-size: 20px;
  margin-bottom: var(--space-8);
}

.section-subtitle {
  font-size: 16px;
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
}

.guide-list {
  list-style: disc;
  padding-left: var(--space-16);
  color: var(--color-muted);
}

/* Footer */
.footer {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: black;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 0 12px var(--color-accent);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.animated-title {
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent);
  text-shadow: 0 0 8px var(--color-accent), 0 0 24px rgba(163, 255, 18, 0.5);
  animation: pulseGlow 3s ease-in-out infinite, shimmerMove 8s linear infinite;
  background: linear-gradient(
    120deg,
    var(--color-accent),
    #ffffff,
    var(--color-accent)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 8px var(--color-accent), 0 0 24px rgba(163, 255, 18, 0.5);
  }
  50% {
    text-shadow: 0 0 16px var(--color-accent), 0 0 36px rgba(163, 255, 18, 0.8);
  }
}

@keyframes shimmerMove {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

body {
  cursor: none; /* hide default system cursor */
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--color-accent), 0 0 24px var(--color-accent);
  transition: width 0.2s, height 0.2s, opacity 0.3s ease;
}

.cursor.blob {
  width: 32px;
  height: 32px;
  background: rgba(163, 255, 18, 0.2);
  border: 2px solid var(--color-accent);
}

.btn:hover ~ .cursor.blob {
  width: 48px;
  height: 48px;
}

/* Ripple on click */
.ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.7;
  pointer-events: none;
  animation: rippleEffect 0.5s ease-out forwards;
  z-index: 9999;
}

@keyframes rippleEffect {
  to {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* behind everything */
  overflow: hidden;
}

#starfield-bg {
  width: 100%;
  height: 100%;
  display: block;
}

.live-feed {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(30, 30, 30, 0.8);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #a3ff12;
  z-index: 20;
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.2);
}

.user-avatar-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 20, 0.85);
  padding: 8px 12px;
  border-radius: 24px;
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.2);
  animation: popIn 0.8s ease;
}

.user-avatar-bubble img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.bubble-msg {
  color: #f0f0f0;
  font-size: 13px;
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

