:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0b0206;
  color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 40, 40, 0.15), transparent 22%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 10%),
    radial-gradient(circle at 80% 10%, rgba(255, 220, 220, 0.18), transparent 15%),
    linear-gradient(180deg, #120208 0%, #10080d 40%, #1b090f 100%);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 5, 9, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: #ff3f3f;
}

.nav-links a {
  color: #f8f8f8;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: #ff6a6a;
}

.container {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.hero-card,
.ucp-panel {
  background: rgba(18, 6, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.ucp-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 70, 70, 0.18), transparent 35%);
  pointer-events: none;
}

.hero-copy,
.auth-shell,
.dashboard-shell {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  color: #ff8c8c;
  font-size: 0.95rem;
}

h1 {
  font-size: clamp(3rem, 4.5vw, 5rem);
  margin: 0.8rem 0 1rem;
  line-height: 0.95;
}

.hero-text {
  color: #ddd;
  max-width: 54rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.primary-button,
.secondary-button,
.danger-button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #ff3f3f, #ff1c1c);
  color: #fff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.danger-button {
  background: #6d1515;
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.site-footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.65);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  flex: 1;
  text-align: center;
  padding: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  border-radius: 0.85rem;
  cursor: pointer;
}

.tab-button.active {
  background: rgba(255, 63, 63, 0.95);
  color: #fff;
}

.auth-card {
  display: none;
}

.auth-card.active {
  display: block;
}

.auth-card h2 {
  margin-top: 0;
}

.auth-card label {
  display: block;
  margin: 1rem 0 0.5rem;
  color: #ccc;
}

.auth-card input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.form-error {
  color: #ff7b7b;
  margin-top: 0.85rem;
  min-height: 1.25rem;
}

.dashboard-shell {
  display: none;
}

.dashboard-shell.visible {
  display: block;
}

.profile-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 0.95rem;
  align-items: center;
  color: #f1f1f1;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.whitelist-card,
.quiz-shell {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none !important;
}

.quiz-question {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-question:last-of-type {
  border-bottom: none;
}

.quiz-question p {
  margin: 0 0 1rem;
  font-weight: 700;
}

.quiz-question label {
  display: block;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.quiz-question input {
  margin-right: 0.75rem;
}

.quiz-result {
  margin-top: 1rem;
  font-weight: 700;
  color: #b9ffb8;
}

@media (max-width: 820px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .container {
    padding: 2rem 0 4rem;
  }

  .link-buttons {
    flex-direction: column;
  }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
  animation: star-float 18s linear infinite alternate;
}

@keyframes star-float {
  from { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  to { transform: translateY(-30px) translateX(12px) scale(1.2); opacity: 0.3; }
}

@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-120px) translateX(60px); }
}
