:root {
  --bg: #fff8f0;
  --panel: #ffffff;
  --brand: #6b4423;
  --brand-dark: #4e3018;
  --gold: #c9a227;
  --red: #c0392b;
  --text: #2b2118;
  --muted: #8a7a6d;
  --border: #ebdfc9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  background: var(--brand);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

header .brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.badge-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff8f0;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--brand);
  font-weight: 800;
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--brand-dark);
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(107, 68, 35, 0.06);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brand-dark);
}

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

button#enable-push {
  padding: 13px 26px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

button#enable-push:hover:not(:disabled) { background: var(--brand-dark); }
button#enable-push:disabled { opacity: 0.65; cursor: not-allowed; }

.privacy-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.help-details {
  margin-top: 18px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.help-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
}

.help-details summary::-webkit-details-marker { display: none; }
.help-details summary::before { content: '▸ '; }
.help-details[open] summary::before { content: '▾ '; }

.help-content {
  margin-top: 12px;
}

.help-content > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.help-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-visual { flex-shrink: 0; }

.step-text {
  font-size: 13px;
  color: var(--text);
}

.mock-addressbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #444;
}

.mock-icon {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
  padding: 2px;
}

.mock-dropdown {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  min-width: 170px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.mock-toggle {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.mock-toggle.off { background: #fde2e1; color: var(--red); }
.mock-toggle.on { background: #e3f3df; color: #2e7d32; }

.mock-refresh {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.products {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.product {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
}

.product .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fdf1de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.product .name {
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--text);
}

.product .price {
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
}

.back-link a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.back-link a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
}
