:root {
  --bg: #eff6ff;
  --bg-2: #e0f2fe;
  --ink: #0f172a;
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --card: #ffffff;
  --border: #bfdbfe;
  --muted: #475569;
  --ok: #16a34a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(14, 165, 233, 0.2), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.18), transparent 40%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

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

h1,
h2,
h3 {
  margin: 8px 0 10px;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.tab-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  background: #e0f2fe;
  color: #0c4a6e;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.08);
}

.hero {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.paywall-note {
  border-color: #fdba74;
  background: #fff7ed;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 3px 8px;
}

a.button,
.primary-btn {
  margin-top: 10px;
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.ghost-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: #0c4a6e;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.locked {
  opacity: 0.55;
}

.tab-btn.locked::after {
  content: ' Locked';
  color: #b45309;
  font-size: 12px;
  margin-left: 4px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.inline-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.inline-check input {
  margin-top: 2px;
}

.pay-actions {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.full-width {
  grid-column: 1 / -1;
}

.autocomplete-wrap {
  position: relative;
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
}

.suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
}

.suggestions button:hover {
  background: #f0f9ff;
}

.record-box {
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  padding: 10px;
}

#introPreview {
  width: 100%;
  border-radius: 10px;
  background: #0f172a;
  min-height: 180px;
}

.record-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#recordTimer {
  font-weight: 700;
  color: #0c4a6e;
}

.tiny-note {
  font-size: 13px;
  color: var(--muted);
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.report-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e0f2fe;
  color: #0c4a6e;
}

.report-meta,
.report-body {
  margin: 8px 0 0;
  color: var(--muted);
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.spotlight {
  color: #854d0e;
  font-weight: 700;
}

.platform-card {
  min-height: 120px;
}

.under-construction {
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 10px,
    #fff7ed 10px,
    #fff7ed 20px
  );
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}
