:root {
  --bg: #ffffff;
  --card: #1a1d24;
  --text: #3a352e;
  --muted: #8a8175;
  --border: #e6dfce;
  --accent: #3b82f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.card {
  width: min(360px, 90vw);
  padding: 40px 32px;
  background: linear-gradient(135deg, #fffdf7 0%, #f3ead7 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(120, 110, 85, 0.18);
}

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 20px;
}

.state.hidden {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  margin-top: 20px;
}

.btn-secondary:hover {
  background: var(--border);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--border);
}

.welcome {
  font-size: 18px;
  margin: 0 0 4px;
}

.welcome span {
  font-weight: 700;
}

.email {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* ---------- Dashboard ---------- */
.dashboard {
  width: min(720px, 92vw);
  margin: 28px auto 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard.hidden {
  display: none;
}

.panel {
  background: linear-gradient(135deg, #fffdf7 0%, #f3ead7 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(120, 110, 85, 0.12);
  text-align: left;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.steps code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.code-wrap {
  position: relative;
}

.code-wrap pre {
  margin: 0;
  background: #1a1d24;
  color: #e8eaed;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.note,
.pricing {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.pricing {
  margin: 0 0 16px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  font-weight: 600;
  font-size: 15px;
}

.row-sub {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.on {
  background: #d8f5e1;
  color: #1c7a43;
}

.badge.off {
  background: #eee6d2;
  color: #8a7b52;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
}

.mini-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
}

.mini-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mini-btn.danger {
  color: #c0392b;
  border-color: #e6c4be;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.project {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.project .row {
  border: none;
  background: transparent;
  padding: 6px 8px;
}

.files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 8px 6px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.file-name {
  font-weight: 600;
  font-size: 13px;
}
