/* ═══════════════════════════════════════════════════════════════
   BetaTesters.org — Main Stylesheet
   Design language: sharp indigo/slate SaaS with electric-lime accent
   Font: Plus Jakarta Sans (single family, multiple weights)
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --indigo-950: #0f0f23;
  --indigo-900: #13132e;
  --indigo-800: #1a1a45;
  --indigo-700: #252568;
  --indigo-600: #3535a0;
  --indigo-400: #6b6bde;
  --indigo-200: #b8b8f5;
  --indigo-100: #e8e8ff;

  --lime:       #b8ff00;
  --lime-dark:  #8acc00;

  --slate-900:  #0d0d1a;
  --slate-800:  #1c1c35;
  --slate-600:  #3a3a5c;
  --slate-400:  #8888aa;
  --slate-200:  #c8c8e0;
  --slate-100:  #f0f0f8;
  --white:      #ffffff;

  --red-500:    #ef4444;
  --green-500:  #22c55e;
  --amber-400:  #fbbf24;

  /* Semantic */
  --bg:         var(--indigo-950);
  --surface:    var(--indigo-900);
  --surface-2:  var(--indigo-800);
  --border:     var(--indigo-700);
  --text:       #e0e0f5;
  --text-muted: var(--slate-400);
  --accent:     var(--lime);
  --accent-dark: var(--lime-dark);
  --brand:      var(--indigo-400);

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-lift: 0 8px 32px rgba(0,0,0,.5);

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--indigo-200); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,35,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--white);
  letter-spacing: -.02em; flex-shrink: 0;
}
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--indigo-950);
  border-radius: 8px; font-weight: 900; font-size: 1.1rem;
}
.logo-dot { color: var(--accent); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--slate-200); font-size: .9rem; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); transition: color var(--transition); }
.nav-link:hover { color: var(--white); }
.nav-link--admin { color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--border); background: var(--surface); }
.nav-mobile a { display: block; padding: 14px 20px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: flex; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
  letter-spacing: -.01em;
}
.btn--primary {
  background: var(--accent); color: var(--indigo-950);
}
.btn--primary:hover { background: var(--accent-dark); color: var(--indigo-950); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184,255,0,.3); }
.btn--indigo {
  background: var(--indigo-600); color: var(--white);
}
.btn--indigo:hover { background: var(--indigo-700); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--white); }
.btn--sm { padding: 7px 16px; font-size: .875rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--slate-200); }
.form-label span { color: var(--text-muted); font-weight: 400; }
.form-control {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: 12px 16px; font-family: var(--font); font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107,107,222,.2); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: .8rem; color: var(--text-muted); }
.form-error { color: var(--red-500); font-size: .875rem; }

/* ── Alert ───────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; font-weight: 500; }
.alert--error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert--success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card-body { padding: 24px; }

/* ── Page wrapper ────────────────────────────────────────────── */
.page-wrap {
  flex: 1; max-width: 480px; margin: 0 auto; width: 100%;
  padding: 40px 20px 80px;
}
.page-wrap--wide {
  max-width: 1080px;
}
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--white); margin-bottom: 4px; }
.page-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 32px; }

/* ── Stars ───────────────────────────────────────────────────── */
.star-picker { display: flex; gap: 8px; }
.star-picker input[type=radio] { display: none; }
.star-picker label {
  font-size: 2.2rem; cursor: pointer; color: var(--slate-600); transition: color var(--transition), transform var(--transition);
  user-select: none;
}
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label { /* overridden by JS */ }
.star-active { color: var(--amber-400) !important; }
.star-picker label:hover { transform: scale(1.15); }

/* ── Project Cards ───────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--indigo-400); }
.project-logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--indigo-800); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; overflow: hidden; flex-shrink: 0;
}
.project-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-name { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.project-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.reward-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(184,255,0,.1); color: var(--accent);
  border: 1px solid rgba(184,255,0,.25);
  border-radius: 99px; padding: 4px 12px;
  font-size: .8rem; font-weight: 700;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: radial-gradient(ellipse 900px 500px at 50% 0%, rgba(53,53,160,.4) 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,255,0,.08); color: var(--accent);
  border: 1px solid rgba(184,255,0,.2);
  border-radius: 99px; padding: 6px 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 480px;
  margin: 0 auto 36px; line-height: 1.65;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.04em; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 64px 20px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--white); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); max-width: 520px; font-size: 1rem; line-height: 1.65; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Benefits grid ───────────────────────────────────────────── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 40px;
}
.benefit-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.benefit-icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit-title { font-weight: 700; color: var(--white); margin-bottom: 6px; font-size: .95rem; }
.benefit-text { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

/* ── How it works ────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; max-width: 560px; }
.step { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 0;
  width: 2px; background: var(--border);
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--indigo-800); border: 2px solid var(--indigo-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: var(--accent); position: relative; z-index: 1;
}
.step-text h3 { font-weight: 700; color: var(--white); margin-bottom: 4px; font-size: 1rem; }
.step-text p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--white);
  background: var(--surface);
  user-select: none;
}
.faq-q .faq-arrow { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 16px 20px; background: var(--surface-2); color: var(--text-muted); font-size: .9rem; line-height: 1.65; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 20px 80px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 32px; font-weight: 800; font-size: 1.2rem; color: var(--white); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.auth-title { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; text-align: center; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: -8px; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: .85rem; position: relative; }
.auth-footer { text-align: center; color: var(--text-muted); font-size: .9rem; }
.auth-footer a { color: var(--brand); font-weight: 600; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-header { padding: 32px 20px 0; max-width: 1080px; margin: 0 auto; }
.dash-welcome { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.dash-sub { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }
.dash-section { padding: 32px 20px 60px; max-width: 1080px; margin: 0 auto; }
.dash-section-title { font-size: 1rem; font-weight: 700; color: var(--slate-200); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }

/* ── Feedback form ───────────────────────────────────────────── */
.feedback-wrap { max-width: 600px; margin: 0 auto; padding: 40px 20px 80px; }
.project-context { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 32px; }
.project-context-name { font-weight: 700; color: var(--white); }
.project-context-desc { font-size: .875rem; color: var(--text-muted); }
.feedback-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.feedback-question { font-weight: 700; color: var(--white); margin-bottom: 8px; font-size: .95rem; }
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer; transition: border-color var(--transition);
}
.upload-area:hover { border-color: var(--brand); }
.upload-area-icon { font-size: 1.5rem; margin-bottom: 8px; color: var(--text-muted); }
.upload-area-text { font-size: .875rem; color: var(--text-muted); }
.upload-area input[type=file] { position: absolute; opacity: 0; pointer-events: none; }

/* ── Thank you page ──────────────────────────────────────────── */
.thankyou-wrap { max-width: 520px; margin: 80px auto; padding: 0 20px; text-align: center; }
.thankyou-icon { font-size: 4rem; margin-bottom: 24px; }
.thankyou-title { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.04em; margin-bottom: 12px; }
.thankyou-sub { color: var(--text-muted); margin-bottom: 36px; line-height: 1.65; }
.reward-reveal {
  background: linear-gradient(135deg, rgba(184,255,0,.08) 0%, rgba(107,107,222,.08) 100%);
  border: 1px solid rgba(184,255,0,.25);
  border-radius: var(--radius-xl); padding: 32px; margin-bottom: 32px;
}
.reward-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.reward-value { font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 80px; }
.admin-title { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; margin-bottom: 8px; }
.admin-nav { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: .875rem; font-weight: 600; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: var(--surface-2); color: var(--white); border-color: var(--indigo-400); }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--surface-2); color: var(--slate-200); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.badge--green { background: rgba(34,197,94,.15); color: #86efac; }
.badge--amber { background: rgba(251,191,36,.15); color: #fde68a; }
.badge--slate { background: rgba(136,136,170,.15); color: var(--slate-200); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.04em; }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 40px 20px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); }
.footer-tagline { color: var(--text-muted); font-size: .875rem; font-weight: 400; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.inline-link { color: var(--brand); font-weight: 600; }
.inline-link:hover { color: var(--indigo-200); }
.stars-display { color: var(--amber-400); font-size: 1.1rem; letter-spacing: 1px; }

@media (max-width: 640px) {
  .hero { padding: 60px 20px 40px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 20px; }
  .auth-card { padding: 24px 20px; }
  .feedback-card { padding: 20px; }
}
