:root {
  --espresso: #2E1A0E;
  --espresso-2: #4A2712;
  --cream: #F6F1E7;
  --cream-2: #FFFFFF;
  --card: #EFE7D7;
  --card-2: #E4DAC5;
  --gold: #E7C77A;
  --gold-soft: #F3E4B8;
  --ink: #2B2620;
  --muted: #7A6E5E;
  --line: #DCD2BC;
  --ok: #7C8F68;
  --warn: #C77B54;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.is-hidden { display: none !important; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--gold); }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--espresso);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: var(--serif); color: var(--cream); text-decoration: none;
  font-size: 20px; letter-spacing: 0.04em;
}
.tabs { display: flex; gap: 6px; }
.tabs__btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: rgba(246,241,231,0.72);
  background: transparent; border: 1px solid transparent;
  padding: 9px 16px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s ease;
}
.tabs__btn:hover { color: var(--cream); border-color: rgba(255,255,255,0.18); }
.tabs__btn.is-active { background: var(--cream); color: var(--espresso); }

/* ---- layout ---- */
.view { max-width: 1080px; margin: 0 auto; padding: 0 24px 100px; }
.hero-strip {
  padding: 64px 0 36px; max-width: 720px;
}
.hero-strip--compact { padding: 48px 0 28px; }
.hero-strip__lead { color: var(--muted); font-size: 17px; max-width: 620px; }
.panel { margin-bottom: 28px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

/* ---- cards & buttons ---- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card--wide { padding: 28px; overflow-x: auto; }
.card--login { max-width: 460px; }

.btn {
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  padding: 13px 26px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--espresso); color: var(--cream); }
.btn--primary:hover { opacity: .92; }
.btn--ghost-light { background: transparent; color: var(--cream); border: 1px solid rgba(246,241,231,0.4); }
.btn--ghost-light:hover { background: rgba(246,241,231,0.1); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ---- login ---- */
.login-form { display: flex; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.login-form input {
  flex: 1; min-width: 200px;
  font-family: var(--sans); font-size: 15px;
  padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream-2); color: var(--ink);
}
.login-form input:focus { outline: 2px solid var(--ok); outline-offset: 1px; }
.hint { color: var(--warn); font-size: 13px; min-height: 18px; }

/* ---- dashboard ---- */
.status-hero {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--espresso-2) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.status-hero h2 { color: var(--cream); margin-bottom: 6px; }
.status-hero__detail { color: rgba(246,241,231,0.78); max-width: 480px; }

.price { font-family: var(--serif); font-size: 34px; margin: 4px 0 18px; }

.method-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.method-item { background: var(--cream-2); border-radius: var(--radius-md); padding: 14px 18px; }
.method-item__top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.method-item__desc { color: var(--muted); font-size: 14px; }

.material-list { display: flex; flex-direction: column; gap: 10px; }
.material-section { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.material-section:first-child { margin-top: 4px; }
.material-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream-2); border-radius: var(--radius-md); padding: 12px 16px;
}
.material-item.is-locked { opacity: .55; }
.material-item__title { font-weight: 500; }
.material-item__desc { color: var(--muted); font-size: 13px; }
.material-item__link { font-size: 13px; color: var(--ok); text-decoration: none; font-weight: 600; white-space: nowrap; }
.material-item__lock { font-size: 13px; color: var(--warn); white-space: nowrap; }

/* ---- phone / bot simulator ---- */
.phone {
  max-width: 420px; margin: 0 auto;
  background: var(--espresso);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(43,22,13,0.35);
}
.phone__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; color: var(--cream);
}
.phone__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--espresso);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 14px;
}
.phone__title { font-weight: 600; font-size: 14px; }
.phone__subtitle { font-size: 12px; color: var(--ok); }
.phone__body {
  background: var(--cream);
  height: 460px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; white-space: pre-wrap;
}
.bubble--bot { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 4px; }
.bubble--user { align-self: flex-end; background: var(--espresso); color: var(--cream); border-bottom-right-radius: 4px; }
.phone__buttons {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 16px 12px; background: var(--cream);
}
.phone__buttons:empty { display: none; }
.chat-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  background: var(--cream-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; text-align: center;
}
.chat-btn:hover { border-color: var(--ok); color: var(--ok); }
.phone__input {
  display: flex; gap: 8px; padding: 12px; background: var(--espresso); border-radius: 0 0 24px 24px;
}
.phone__input input {
  flex: 1; border: none; border-radius: var(--radius-sm);
  padding: 11px 16px; font-family: var(--sans); font-size: 14px; background: var(--cream-2);
}
.phone__input button {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--gold); color: var(--espresso); font-size: 15px; cursor: pointer;
}

/* ---- admin table ---- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
}
.badge--new { background: var(--card-2); color: var(--muted); }
.badge--waitlist { background: var(--gold-soft); color: #7a5b12; }
.badge--invoiced { background: #F0DFC9; color: var(--warn); }
.badge--active { background: #E1E9D8; color: var(--ok); }
.badge--expired { background: #eee; color: #999; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
