/* ============================================================
   QUIZ CUP — Stylesheet (Mobile-First, Football Green Theme)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  /* Dark base — original deep space purple-black */
  --bg:           #07070f;
  --surface:      #0d0d1a;
  --card:         #121220;
  --card-hover:   #181830;
  --border:       #22223a;
  --border-light: #2e2e55;

  /* Primary: vibrant pitch green */
  --accent:       #00e56b;
  --accent-dark:  #00b854;
  --accent-glow:  rgba(0, 229, 107, 0.22);

  /* Secondary: vibrant Solana purple */
  --purple:       #9945ff;
  --purple-dark:  #7323d4;
  --purple-glow:  rgba(153, 69, 255, 0.22);

  /* Gold for rewards */
  --gold:         #ffd700;
  --gold-glow:    rgba(255, 215, 0, 0.2);

  --red:          #ff4d4d;
  --red-dark:     #b80000;

  /* Clean neutral text — no green tint */
  --text:         #f0f0ff;
  --text-muted:   #7777aa;
  --text-dim:     #3a3a60;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:       12px;
  --radius-lg:    18px;
  --transition:   0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,229,107,0.5)) drop-shadow(0 0 24px rgba(153,69,255,0.4)); }
  50%       { filter: drop-shadow(0 0 28px rgba(0,229,107,0.9)) drop-shadow(0 0 56px rgba(153,69,255,0.6)); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,107,0.45), 0 4px 22px rgba(0,229,107,0.22); }
  50%       { box-shadow: 0 0 0 10px rgba(0,229,107,0), 0 4px 32px rgba(0,229,107,0.45); }
}

@keyframes glowPulsePurple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(153,69,255,0.4), 0 4px 20px rgba(153,69,255,0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(153,69,255,0), 0 4px 28px rgba(153,69,255,0.4); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes heroBgScale {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility animation classes */
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.animate-float { animation: floatY 4s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 12vw, 6.5rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.45rem); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; padding: 0 16px; margin: 0 auto; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1140px) { .container { max-width: 1100px; } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

.section-title { text-align: center; margin-bottom: 36px; }
.section-title span { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary { background: var(--accent); color: #000; font-weight: 700; }
.btn-primary:hover { background: #00f575; transform: translateY(-2px); color: #000; }

.btn-glow { animation: glowPulse 2.5s ease-in-out infinite; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-gold   { background: var(--gold); color: #000; }
.btn-gold:hover { background: #ffe44d; box-shadow: 0 0 20px var(--gold-glow); transform: translateY(-2px); }

.btn-danger { background: var(--red-dark); color: #fff; }
.btn-danger:hover { background: var(--red); transform: translateY(-2px); }

/* Big CA button */
.btn-ca {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #000;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 24px;
  animation: glowPulse 2.5s ease-in-out infinite;
}
.btn-ca:hover { background: linear-gradient(135deg, #00f575, var(--accent)); transform: translateY(-2px); color: #000; }

/* Big X button */
.btn-x {
  background: #000;
  color: #fff;
  font-size: 1.05rem;
  border: 1px solid #333;
  padding: 15px 24px;
}
.btn-x:hover { background: #111; border-color: #fff; transform: translateY(-2px); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 38px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; animation: none; }
.w-full { width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: #0d0d1a; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card:hover { border-color: var(--border-light); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-pending    { background: rgba(255,170,0,0.12);   color: #ffaa00; }
.badge-approved   { background: rgba(0,229,107,0.12);   color: var(--accent); }
.badge-processing { background: rgba(153,69,255,0.15);  color: var(--purple); }
.badge-paid       { background: rgba(255,215,0,0.12);   color: var(--gold); }
.badge-rejected   { background: rgba(255,77,77,0.12);   color: var(--red); }
.badge-active     { background: rgba(0,229,107,0.12);   color: var(--accent); }
.badge-closed     { background: rgba(100,100,100,0.12); color: var(--text-muted); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.5;
}
.alert-success { background: rgba(0,229,107,0.08); border: 1px solid rgba(0,229,107,0.3); color: var(--accent); }
.alert-error   { background: rgba(255,77,77,0.08);  border: 1px solid rgba(255,77,77,0.3);  color: var(--red); }
.alert-info    { background: rgba(153,69,255,0.08); border: 1px solid rgba(153,69,255,0.3); color: var(--purple); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) { .nav-inner { padding: 12px 24px; } }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img {
  height: 40px;
  width: auto;
  transition: filter var(--transition);
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(0,229,107,0.75)) drop-shadow(0 0 6px rgba(153,69,255,0.4));
}
.nav-logo span { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); letter-spacing: 0.1em; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 7, 15, 0.98);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 8px 0 16px;
}
.nav-links.open { display: flex; }
.nav-links a {
  padding: 13px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition), background var(--transition);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); background: rgba(153,69,255,0.05); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    flex-direction: row;
    gap: 28px;
    padding: 0;
  }
  .nav-links a { padding: 0; min-height: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 92vh; } }

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroBgScale 1.4s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(153,69,255,0.28) 0%, transparent 48%),
    radial-gradient(ellipse at 85% 55%, rgba(153,69,255,0.28) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 95%, rgba(0,229,107,0.15)  0%, transparent 50%),
    linear-gradient(to bottom, rgba(7,7,15,0.45) 0%, rgba(7,7,15,0.72) 60%, rgba(7,7,15,1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 20px 60px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Big hero logo */
.hero-logo-wrap { margin-bottom: 16px; }
.hero-logo {
  width: clamp(100px, 22vw, 160px);
  height: auto;
  margin: 0 auto;
  animation: logoGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(0,229,107,0.6)) drop-shadow(0 0 32px rgba(153,69,255,0.4));
}

.hero-tagline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,229,107,0.35);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
  background: rgba(0,229,107,0.07);
}

.hero h1 {
  color: var(--text);
  margin-bottom: 14px;
  text-shadow: 0 0 40px rgba(153,69,255,0.3), 0 0 80px rgba(0,229,107,0.15);
}
.hero h1 .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.hero-subtitle span { color: var(--text); font-weight: 600; }

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { flex: 1; max-width: 200px; }

/* ============================================================
   CA + X HERO SECTION
   ============================================================ */
.ca-hero-section {
  padding: 28px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.ca-hero-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.ca-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.ca-hero-address {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  word-break: break-all;
  width: 100%;
  text-align: center;
  line-height: 1.5;
}

#xBlock { width: 100%; }

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-section { background: var(--surface); }

.quiz-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(153,69,255,0.07);
  transition: box-shadow var(--transition);
}
.quiz-card:hover {
  box-shadow: 0 12px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(153,69,255,0.18);
}

.quiz-card-header {
  background: linear-gradient(135deg, rgba(153,69,255,0.1), rgba(100,40,200,0.04));
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 640px) { .quiz-card-header { padding: 18px 28px; } }

.quiz-card-header h3 { color: var(--text); font-size: clamp(0.95rem, 3vw, 1.35rem); }

.quiz-card-body { padding: 20px; }
@media (min-width: 640px) { .quiz-card-body { padding: 22px 28px 20px; } }

.quiz-question {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.45;
}
.quiz-description { color: var(--text-muted); margin-bottom: 18px; font-size: 0.88rem; }

.quiz-meta { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.quiz-meta-item { display: flex; flex-direction: column; gap: 3px; }
.quiz-meta-item .meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.quiz-meta-item .meta-value       { font-size: 0.95rem; font-weight: 700; color: var(--gold); }
.quiz-meta-item .meta-value.deadline-val { color: var(--text); font-weight: 500; font-size: 0.85rem; }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 12px 12px;
  text-align: center;
  margin-bottom: 0;
}
.countdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
}
.timer-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
  animation: countUp 0.25s ease;
}
.timer-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.timer-sep {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--border-light);
  margin-bottom: 14px;
  line-height: 1;
}
.timer-expired {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Form divider & embedded form */
.quiz-form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  margin: 4px 0;
}
@media (min-width: 640px) { .quiz-form-divider { padding: 0 28px; } }
.quiz-form-divider::before,
.quiz-form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.quiz-form-divider span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  white-space: nowrap;
}

.quiz-form-body { padding: 20px; }
@media (min-width: 640px) { .quiz-form-body { padding: 18px 28px 28px; } }

.no-quiz { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.no-quiz h3 { margin-bottom: 10px; color: var(--text); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4,1fr); gap: 20px; } }

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,229,107,0.12);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,229,107,0.08);
  border: 1px solid rgba(0,229,107,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}
.step-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 8px; letter-spacing: 0.05em; }
.step-desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .footer-inner { padding: 0 24px; } }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 1fr 1.5fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo img { height: 32px; filter: drop-shadow(0 0 8px rgba(153,69,255,0.45)); }
.footer-logo span { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); letter-spacing: 0.1em; }
.footer-about { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }

.footer-links h4 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links li a:hover { color: var(--accent); }

.footer-ca h4 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 10px;
}
.footer-ca-address {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p    { font-size: 0.78rem; color: var(--text-dim); }
.footer-bottom .disclaimer { font-size: 0.72rem; }

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-hero {
  padding: 56px 0 40px;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.status-hero h2   { margin-bottom: 10px; }
.status-hero p    { color: var(--text-muted); font-size: 0.9rem; }

.status-search-section { padding: 40px 0; background: var(--bg); }
.status-search-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
@media (min-width: 640px) { .status-search-box { padding: 32px 36px; } }
.status-search-box h3 {
  font-family: var(--font-display);
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.status-results { padding: 0 0 60px; background: var(--bg); }
.status-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.status-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (min-width: 640px) { .status-card-header { padding: 18px 28px; } }
.status-card-header h3 { font-family: var(--font-display); letter-spacing: 0.05em; font-size: 1.1rem; }

.status-card-body { padding: 20px; }
@media (min-width: 640px) { .status-card-body { padding: 24px 28px; } }

.status-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.status-field .field-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); }
.status-field .field-value { font-size: 0.9rem; color: var(--text); }

.progress-tracker { display: flex; align-items: flex-start; margin: 24px 0 8px; position: relative; overflow-x: auto; padding-bottom: 4px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; min-width: 60px; }
.progress-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  z-index: 1; transition: all 0.3s;
}
.progress-step-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); text-align: center; white-space: nowrap; }
.progress-line { position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.progress-step:last-child .progress-line { display: none; }
.progress-step.done    .progress-step-dot   { background: var(--accent); border-color: var(--accent); color: #000; }
.progress-step.done    .progress-step-label { color: var(--accent); }
.progress-step.done    .progress-line       { background: var(--accent); }
.progress-step.current .progress-step-dot   { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.progress-step.current .progress-step-label { color: var(--text); }
.progress-step.rejected .progress-step-dot  { border-color: var(--red); color: var(--red); }
.progress-step.rejected .progress-step-label { color: var(--red); }

.results-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   ADMIN — LOGIN
   ============================================================ */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.admin-login-box {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.admin-login-box img { height: 52px; margin: 0 auto 16px; filter: drop-shadow(0 0 12px rgba(153,69,255,0.55)); }
.admin-login-box h2 { margin-bottom: 6px; }
.admin-login-box p  { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }

/* ============================================================
   ADMIN — LAYOUT (mobile-first)
   ============================================================ */
.admin-layout { display: none; flex-direction: column; min-height: 100vh; }

.admin-sidebar {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-logo img  { height: 26px; filter: drop-shadow(0 0 6px rgba(153,69,255,0.45)); }
.admin-sidebar-logo span { font-family: var(--font-display); font-size: 1rem; color: var(--text); letter-spacing: 0.1em; }

.admin-nav-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
  gap: 2px;
}
.admin-nav-scroll::-webkit-scrollbar { display: none; }

.admin-nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.admin-nav-item:hover  { color: var(--text); }
.admin-nav-item.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-nav-icon { font-size: 0.85rem; }

.admin-nav-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.admin-nav-actions a,
.admin-nav-actions button {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 7px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none;
  min-height: 36px;
}
.admin-nav-actions button:hover { color: var(--red); border-color: var(--red); }
.admin-nav-actions a:hover      { color: var(--accent); border-color: var(--accent); }

.admin-main { padding: 18px 14px; flex: 1; }
@media (min-width: 640px) { .admin-main { padding: 24px; } }

/* Desktop sidebar */
@media (min-width: 900px) {
  .admin-layout { flex-direction: row; }
  .admin-sidebar {
    width: 210px; height: 100vh;
    position: fixed; top: 0; left: 0;
    border-bottom: none; border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
  .admin-sidebar-logo { padding: 18px 20px; margin-bottom: 6px; }
  .admin-nav-scroll { flex-direction: column; overflow-x: visible; padding: 0; gap: 0; flex: 1; }
  .admin-nav-item {
    border-bottom: none; border-left: 3px solid transparent;
    padding: 11px 18px; width: 100%; font-size: 0.82rem;
  }
  .admin-nav-item.active { border-left-color: var(--accent); border-bottom-color: transparent; background: rgba(0,229,107,0.05); }
  .admin-nav-actions { flex-direction: column; align-items: stretch; padding: 14px 16px; margin-top: auto; border-top: 1px solid var(--border); }
  .admin-nav-actions a, .admin-nav-actions button { justify-content: center; }
  .admin-main { margin-left: 210px; padding: 26px; }
}

/* ============================================================
   ADMIN — PAGES
   ============================================================ */
.admin-page        { display: none; }
.admin-page.active { display: block; }

.admin-page-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.admin-page-header h2 { color: var(--text); letter-spacing: 0.05em; font-size: clamp(1.3rem, 4vw, 1.9rem); }
.admin-page-header p  { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4,1fr); } }

.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); letter-spacing: 0.05em; line-height: 1; }
.stat-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 4px; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px;
  color: var(--text); font-size: 0.82rem; outline: none;
  min-height: 42px; -webkit-appearance: none;
}
.filter-bar select { flex: 1; min-width: 120px; }
.filter-bar input  { flex: 2; min-width: 0; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 14px; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 540px; }
.admin-table th { padding: 10px 13px; text-align: left; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 10px 13px; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(153,69,255,0.03); }
.admin-answer-text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.8rem; }
.admin-action-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.tx-input-row { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.tx-input-row input { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; color: var(--text); font-size: 0.78rem; width: 150px; outline: none; min-height: 36px; }
.tx-input-row input:focus { border-color: var(--accent); }
.expand-row { cursor: pointer; color: var(--text-muted); font-size: 0.76rem; margin-top: 3px; display: inline-block; }
.expand-row:hover { color: var(--accent); }
.sub-answer-full { white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.settings-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .settings-grid { grid-template-columns: 1fr 1fr; } }

.settings-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.settings-section h3 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.05em; margin-bottom: 14px; color: var(--text); padding-bottom: 10px; border-bottom: 1px solid var(--border); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.toggle-row label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.toggle { position: relative; width: 42px; height: 23px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(19px); }

/* ============================================================
   LOADING
   ============================================================ */
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; margin: 0 auto; }
.loading-block { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
