:root {
  color-scheme: dark;
  --bg: #08080a;
  --surface: rgba(29, 29, 31, 0.72);
  --surface-strong: #1d1d1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #a7a7ad;
  --blue: #4b8eff;
  --green: #54d88a;
  --red: #ff7a70;
  --radius: 28px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #20232b 0, var(--bg) 44%), #08080a;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .22;
  pointer-events: none;
}
.orb-one { top: -120px; right: 10%; background: var(--blue); }
.orb-two { bottom: -160px; left: -80px; background: #ffffff; }

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 430px;
  gap: 28px;
  padding: 42px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  right: -120px;
  top: 90px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 42px;
  transform: rotate(18deg);
}
.hero-card h1 { max-width: 760px; margin: 100px 0 22px; font-size: clamp(42px, 7vw, 86px); line-height: .95; letter-spacing: -.06em; }
.hero-card p { max-width: 560px; color: var(--muted); font-size: 20px; line-height: 1.55; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand-row.vertical { align-items: flex-start; flex-direction: column; }
.brand-mark { font-weight: 800; font-size: 34px; letter-spacing: -.07em; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-family: Geist, monospace; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.eyebrow { color: var(--blue); font-family: Geist, monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.hero-grid article, .stat-card, .idea-card, .review-item {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.hero-grid b { display: block; color: var(--blue); margin-bottom: 20px; font-family: Geist, monospace; }
.hero-grid span { color: var(--muted); }

.auth-card { align-self: center; border-radius: var(--radius); padding: 26px; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.tab, .nav-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.tab { text-align: center; }
.tab.active, .nav-btn.active { background: rgba(255,255,255,.1); color: var(--text); }

.form-stack, .panel-form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.42);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(75,142,255,.16); }

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 56px;
  padding: 0 16px;
  border-radius: 22px;
  border-color: rgba(75,142,255,.34);
  background:
    radial-gradient(circle at 20% 50%, rgba(75,142,255,.26), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(0,0,0,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(75,142,255,.09);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b8eff, #9fc7ff 55%, rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  border: 5px solid #101014;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(75,142,255,.55), 0 10px 30px rgba(75,142,255,.52);
}

input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b8eff, #9fc7ff 55%, rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.18);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid #101014;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(75,142,255,.55), 0 10px 30px rgba(75,142,255,.52);
}

.btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  transition: transform .25s, opacity .25s, background .25s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.1); }
.btn.primary { background: var(--text); color: #08080a; border-color: var(--text); font-weight: 700; }
.btn.secondary { background: rgba(75,142,255,.14); border-color: rgba(75,142,255,.38); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255,122,112,.14); border-color: rgba(255,122,112,.4); }
.btn.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: var(--text);
  font-weight: 700;
}
.btn.google span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #111;
  font-family: Geist, Inter, sans-serif;
  font-weight: 800;
}
.full { width: 100%; }
.message { min-height: 20px; color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; padding: 22px; }
.sidebar { position: sticky; top: 22px; height: calc(100vh - 44px); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.nav-list { display: flex; flex-direction: column; gap: 8px; margin: 42px 0 auto; }
.content { min-width: 0; }
.topbar { border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.topbar h2, h3 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.03em; }

.page { display: none; }
.page.active { display: block; }
.welcome-card { border-radius: 34px; padding: clamp(28px, 5vw, 58px); }
.welcome-card h1 { margin: 10px 0; font-size: clamp(42px, 6vw, 82px); letter-spacing: -.06em; line-height: .98; }
.welcome-card p { max-width: 720px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.stat-card b { display: block; margin-top: 14px; font-size: 34px; }
.stat-card span { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ideas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.idea-card { text-align: left; color: inherit; transition: transform .25s, border-color .25s; }
.idea-card:hover { transform: scale(1.015); border-color: rgba(255,255,255,.26); }
.idea-card h4 { margin: 0 0 10px; font-size: 21px; }
.idea-card p { color: var(--muted); line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-family: Geist, monospace; font-size: 11px; text-transform: uppercase; }
.pill.added { color: var(--green); border-color: rgba(84,216,138,.4); }
.pill.declined { color: var(--red); border-color: rgba(255,122,112,.4); }

.panel-form, .admin-panel { border-radius: var(--radius); padding: 28px; }
.apply-landing {
  min-height: 520px;
  border-radius: 34px;
  padding: clamp(30px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.apply-landing:after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 90px;
  transform: rotate(18deg);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(75,142,255,.14), rgba(255,255,255,.04));
}
.apply-landing h1 { max-width: 760px; margin: 12px 0; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.06em; }
.apply-landing p { max-width: 560px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.btn.big { width: max-content; padding: 18px 26px; font-size: 18px; position: relative; z-index: 1; }
.two-cols, .admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
output { color: var(--text); font-weight: 700; }

.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.review-item h4 { margin: 0 0 8px; }
.review-item p { margin: 8px 0; color: var(--muted); line-height: 1.45; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.modal {
  width: min(520px, calc(100vw - 30px));
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--text);
  padding: 24px;
}
.modal::backdrop { background: rgba(0,0,0,.64); backdrop-filter: blur(8px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; }

.drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  border-radius: 30px;
  padding: 28px;
  transform: translateX(calc(100% + 30px));
  transition: transform .32s ease;
  z-index: 10;
  overflow: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 18px; }
.drawer img { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin: 14px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #f5f5f7; color: #08080a; border-radius: 999px; padding: 12px 18px; font-weight: 700; z-index: 30; }

@media (max-width: 900px) {
  .auth-shell, .app-shell, .two-cols, .admin-grid, .stats-grid, .hero-grid { grid-template-columns: 1fr; }
  .auth-shell, .app-shell { padding: 14px; }
  .sidebar { position: static; height: auto; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .btn.big { width: 100%; }
}