:root {
  --bg-top: #6f4b2d;
  --bg-bottom: #22344a;
  --panel: rgba(30, 39, 61, 0.82);
  --line: rgba(255, 255, 255, 0.15);
  --text: #f8f3ea;
  --muted: #e3d4bc;
  --shadow: 0 20px 50px rgba(2, 6, 25, 0.35);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 216, 140, 0.22), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body { min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }

body {
  overflow-x: hidden;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.28) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 36%, rgba(255,255,255,0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 72%, rgba(255,255,255,0.16) 0 1px, transparent 1px);
  background-size: 220px 220px;
  opacity: 0.3;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px 0 26px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.primary-button,
.secondary-button,
.ghost-button,
.chip,
.inline-toggle {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.chip:hover,
.inline-toggle:hover { transform: translateY(-1px); }

.primary-button {
  background: linear-gradient(135deg, #ffd76a, #ff9f67);
  color: #2f174e;
  font-weight: 800;
  border-radius: 18px;
  padding: 14px 22px;
  box-shadow: 0 12px 24px rgba(255, 176, 95, 0.3);
}

.primary-button.compact { padding: 12px 18px; }

.secondary-button,
.ghost-button,
.chip,
.inline-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
}

.ghost-button { padding: 10px 16px; }

.danger-button {
  background: linear-gradient(135deg, rgba(255, 122, 122, 0.24), rgba(255, 88, 88, 0.38));
  border-color: rgba(255, 120, 120, 0.48);
  color: #fff2f2;
  box-shadow: 0 10px 22px rgba(170, 34, 34, 0.18);
}

.chip.is-active,
.inline-toggle.is-active {
  background: rgba(110, 240, 218, 0.18);
  border-color: rgba(110, 240, 218, 0.5);
  color: #d8fff8;
}

.eyebrow,
.lead,
.auth-note,
.input-help,
.summary-card span,
.record-strip span { color: var(--muted); }

.auth-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}

.auth-note-button {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-align: left;
  line-height: 1.45;
  font-weight: 800;
  box-shadow: none;
}

.auth-note-button:hover,
.auth-note-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
}

p { margin: 0; }

@media (max-width: 900px) {
  .app {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
  }
}
