* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Gold brand palette, from the Elevented logo */
  --accent: #b8952a;
  --accent-dark: #96781c;
  --accent-soft: #f5edd6;
  --accent-text: #7a5f10;   /* gold that reads as text on light backgrounds */
  --link: #8a6d11;
  --bg: #faf9f7;
  --card: #ffffff;
  --input-bg: #ffffff;
  --btn2-hover: #f3f1ec;
  --text: #211f1c;
  --muted: #6f6a62;
  --border: #e6e2da;
  --danger: #b3261e;
  --danger-soft: #fbeae9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(30, 25, 15, 0.08);
}

/* Black-and-gold theme for buyer-facing pages and the login screen */
body.theme-dark {
  --accent: #d9b74a;
  --accent-dark: #c9a227;
  --accent-soft: rgba(217, 183, 74, 0.14);
  --accent-text: #e3c05c;
  --link: #e3c05c;
  --bg: #000000; /* pure black so the logo artwork blends seamlessly */
  --card: #161510;
  --input-bg: #1c1a13;
  --btn2-hover: #24211a;
  --text: #f4f1e9;
  --muted: #a49d8f;
  --border: #2e2b22;
  --danger: #e06a62;
  --danger-soft: rgba(224, 106, 98, 0.14);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
button { font: inherit; }

input[type="text"], input[type="number"], input[type="password"],
input[type="date"], input[type="tel"], input[type="email"], input[type="search"],
textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--accent);
  color: #171204;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--btn2-hover); }
.btn-danger { background: var(--card); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-small { font-size: 14px; padding: 7px 12px; }
.linklike {
  background: none;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  text-decoration: underline;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); }
.error-box {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.pre-line { white-space: pre-line; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---- Buyer claim page (mobile-first, 375px) ---- */

.claim-wrap { max-width: 430px; margin: 0 auto; padding: 20px 16px 48px; }
.claim-brand { display: flex; justify-content: center; margin: 6px 0 20px; }
.brand-logo { width: 150px; height: auto; }
.claim-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.claim-title { font-size: 24px; line-height: 1.25; font-weight: 700; margin-bottom: 6px; }
.claim-price { font-size: 22px; color: var(--accent-text); font-weight: 700; }
.claim-meta { margin: 12px 0 16px; }
.claim-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 16px;
}
.claim-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
  white-space: pre-line; /* line breaks show exactly as typed */
}

.stepper { display: flex; align-items: stretch; gap: 10px; }
.stepper button {
  width: 56px;
  min-height: 56px;
  font-size: 26px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
}

.claim-submit { width: 100%; min-height: 56px; font-size: 18px; margin-top: 4px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #171204;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 18px;
}
.success-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.success-text { font-size: 16px; }
.state-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
