:root {
  --bg: #f7f5f0;
  --panel: #fffcf7;
  --ink: #111;
  --muted: #6b6560;
  --gold: #b5995e;
  --gold-deep: #8f7340;
  --line: rgba(17, 17, 17, 0.12);
  --danger: #b42318;
  --ok: #16a34a;
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(181,153,94,.14), transparent 55%),
    linear-gradient(180deg, #faf8f4, #efebe3);
}
.wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 60px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(17,17,17,.07);
  margin-bottom: 14px;
}
h1,h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
}
.muted { color: var(--muted); }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: .9rem; }
input, textarea, select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 0;
  background: #111; color: #faf8f4; font-weight: 600; cursor: pointer; font: inherit;
  text-decoration: none;
}
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--gold);
}
.btn.sm { padding: 7px 12px; font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--danger); min-height: 1.2em; margin: 8px 0; }
.okmsg { color: var(--ok); min-height: 1.2em; margin: 8px 0; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--gold); font-size: .8rem; color: var(--gold-deep);
}
.badge.ok { border-color: var(--ok); color: var(--ok); }

.status-track {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}
.status-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  text-transform: capitalize;
}
.status-step .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
}
.status-step.is-on .dot,
.status-step.is-active .dot {
  border-color: var(--gold-deep);
  background: var(--gold);
}
.status-step.is-active .lab { color: var(--ink); font-weight: 600; }
.status-line {
  width: 28px; height: 2px; background: var(--line); margin: 0 6px;
}
.status-step.is-on + .status-line,
.status-step.is-active + .status-line { background: rgba(181,153,94,.55); }
.top {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center; margin-bottom: 18px; flex-wrap: wrap;
}
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
a { color: var(--gold-deep); }
.list { margin: 0; padding-left: 1.1em; color: var(--muted); }
.list li { margin-bottom: 8px; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.or {
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem;
}
.or::before, .or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.google-btn {
  background: #fff !important;
  color: #1f1f1f !important;
  border: 1px solid #dadce0 !important;
  font-weight: 600;
}
.google-btn:disabled { opacity: .55; cursor: not-allowed; }
.wa-card { border-color: rgba(34, 197, 94, .35); }
.wa-btn {
  background: #16a34a !important;
  color: #fff !important;
  margin-top: 6px;
}
.linkish {
  background: none; border: 0; color: var(--gold-deep); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.switch { margin-top: 14px; font-size: .9rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,252,247,.85);
}
.back-link:hover { border-color: var(--gold); color: var(--gold-deep); }
.back-link svg { width: 16px; height: 16px; }

.brand-mark {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(17,17,17,.12);
  background: #fffcf7;
}
.brand-mark.lg {
  height: 72px;
  width: 72px;
  object-fit: cover;
}
.brand-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-block .title { font-family: var(--font-serif); font-size: 1.45rem; margin: 0; }
.brand-block .sub { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

.auth-hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  margin-bottom: 8px;
}
.auth-hero .brand-mark.lg { height: 88px; width: 88px; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.tab.active {
  background: #111;
  color: #faf8f4;
  border-color: #111;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.stat .n {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}
.stat .l { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.req-item {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.req-item:last-child { border-bottom: 0; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .brand-mark.lg { height: 64px; width: 64px; }
  .auth-hero .brand-mark.lg { height: 76px; width: 76px; }
}
