:root {
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffaf4;
  --text: #24160d;
  --muted: #755844;
  --accent: #a64d19;
  --accent-dark: #803711;
  --border: rgba(72, 47, 28, 0.14);
  --success: #2f6d4b;
  --warning: #9a5f18;
  --shadow: 0 26px 60px rgba(57, 34, 15, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 145, 95, 0.28), transparent 26rem),
    radial-gradient(circle at right center, rgba(160, 75, 26, 0.14), transparent 24rem),
    linear-gradient(180deg, #fcf7f1 0%, #f1e7da 100%);
}

.shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.topbar,
.auth-grid,
.stats-grid,
.two-column {
  display: grid;
  gap: 1.25rem;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - 7rem);
}

.dashboard {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.auth-card,
.pitch-card,
.panel,
.stat-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.pitch-card {
  background:
    linear-gradient(145deg, rgba(160, 75, 26, 0.14), rgba(255, 255, 255, 0.76)),
    var(--surface-strong);
  align-content: center;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.35rem;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(65, 44, 28, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

button {
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(65, 44, 28, 0.18);
  color: var(--text);
}

.user-chip,
code,
.pill {
  font-family: Consolas, "Courier New", monospace;
}

.user-chip {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(160, 75, 26, 0.1);
}

.feature-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.message {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.message.success {
  color: var(--success);
  background: rgba(47, 109, 75, 0.12);
}

.message.error {
  color: #8a2634;
  background: rgba(138, 38, 52, 0.12);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.pill-ok {
  color: var(--success);
  background: rgba(47, 109, 75, 0.12);
}

.pill-warning {
  color: var(--warning);
  background: rgba(154, 95, 24, 0.14);
}

.pill-muted {
  color: var(--muted);
  background: rgba(113, 90, 70, 0.12);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-line input {
  width: auto;
}

.code-block {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 18px;
  background: #1b1713;
  color: #f9efe0;
}

@media (max-width: 920px) {
  .auth-grid,
  .stats-grid,
  .two-column,
  .topbar {
    grid-template-columns: 1fr;
  }
}
