:root {
  --bg: #f4f1eb;
  --bg-2: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f7f4ef;
  --surface-muted: #f1ede5;
  --panel: rgba(255, 255, 255, 0.96);
  --text: #24313a;
  --muted: #667784;
  --line: rgba(36, 49, 58, 0.12);
  --line-strong: rgba(36, 49, 58, 0.18);
  --accent: #7a8f84;
  --accent-deep: #60766c;
  --accent-soft: rgba(122, 143, 132, 0.12);
  --danger: #ba5d5d;
  --success: #4f7a65;
  --shadow: 0 16px 36px rgba(36, 49, 58, 0.06);
  --shadow-soft: 0 10px 22px rgba(36, 49, 58, 0.045);
  --radius: 20px;
  --radius-sm: 14px;
  --input-bg: #fff;
  --page-max: 1160px;
  --vendor-rgb: 122, 143, 132;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--page-max), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); }
.section-pad { padding: 42px 0 64px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}
.nav nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--surface-muted); color: var(--text); }
.hero {
  display: grid;
  gap: 30px;
  align-items: center;
  padding: 58px 0 40px;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.hero-copy p,
.hero-note,
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.hero-copy p { max-width: 52ch; font-size: 1.04rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 143, 132, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--accent-deep); }
.button.small { min-height: 38px; padding: 0 14px; border-radius: 12px; box-shadow: none; }
.button.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.button.ghost:hover { background: var(--surface-soft); }
.button.danger { background: var(--danger); }
.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h1, .card h2, .card h3 { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.form-grid { display: grid; gap: 16px; }
.helper-text { color: var(--muted); font-size: 0.93rem; margin-top: -4px; }
label { display: grid; gap: 8px; font-size: 0.94rem; font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(122, 143, 132, 0.5);
  box-shadow: 0 0 0 4px rgba(122, 143, 132, 0.12);
}
input[type="color"] { min-height: 52px; padding: 8px; cursor: pointer; }
textarea { resize: vertical; }
.slug-row { display: flex; align-items: center; gap: 10px; }
.slug-row span { white-space: nowrap; color: var(--muted); }
.flash {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.flash.error { background: rgba(186, 93, 93, 0.08); border-color: rgba(186, 93, 93, 0.2); }
.flash.success { background: rgba(79, 122, 101, 0.08); border-color: rgba(79, 122, 101, 0.2); }
.dashboard-grid, .admin-grid, .feature-grid, .stats-grid, .detail-grid { display: grid; gap: 22px; }
.card-head, .action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.action-row { justify-content: flex-start; }
.preview-card { position: sticky; top: 92px; height: fit-content; }
.preview-mobile { max-width: 420px; margin: 0 auto; }
.mobile-shell { width: min(100%, 560px); margin: 0 auto; padding: 28px 16px 56px; }
.center { text-align: center; }
.profile-shell, .profile-page-mock { display: grid; gap: 16px; }
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.vendor-hero-shell,
.preview-hero-shell,
.mock-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(var(--vendor-rgb), 0.16), rgba(var(--vendor-rgb), 0.08)),
    linear-gradient(180deg, #f7f4ef, #efe9df);
  border: 1px solid rgba(var(--vendor-rgb), 0.18);
  box-shadow: var(--shadow);
}
.hero-glow {
  position: absolute;
  inset: -70px -20px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--vendor-rgb), 0.22), rgba(var(--vendor-rgb), 0) 72%);
  pointer-events: none;
}
.hero-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 124px;
  background:
    linear-gradient(135deg, rgba(var(--vendor-rgb), 0.34), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}
.hero-content,
.preview-hero-content,
.mock-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 34px;
}
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 4px solid rgba(255,255,255,0.92);
  box-shadow: 0 12px 24px rgba(36, 49, 58, 0.1);
}
.avatar.small { width: 84px; height: 84px; }
.profile-title,
.preview-mobile h3,
.mock-hero-content h3,
.profile-shell h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.profile-subtitle,
.mock-hero-content p,
.preview-mobile p,
.bio {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.profile-content-card,
.preview-content-card,
.mock-content-card,
.feature-card,
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(36, 49, 58, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.link-stack,
.mock-links,
.preview-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.big-link,
.preview-pill,
.mock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid rgba(36, 49, 58, 0.1);
  border-radius: 16px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.profile-view .big-link:hover,
.mock-link:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.preview-pill { min-height: 46px; font-size: 0.95rem; }
.feature-grid { margin-top: 4px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat-card strong { display: block; font-size: 1.6rem; margin-bottom: 6px; }
.detail-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kicker {
  margin: 0 0 8px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(36, 49, 58, 0.08);
  text-align: left;
  vertical-align: top;
}
.data-table th { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.status-pill.on { background: rgba(79, 122, 101, 0.12); color: var(--success); }
.status-pill.off { background: rgba(186, 93, 93, 0.12); color: var(--danger); }
.checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.checkbox-row input { width: auto; }
.admin-two-col { display: grid; gap: 24px; }
.compact-form { max-width: 360px; }
.reserved-list { display: grid; gap: 10px; }
.reserved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(36, 49, 58, 0.08);
}
.swatch-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.swatch-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(36, 49, 58, 0.1);
  box-shadow: var(--shadow-soft);
}
.not-found-card { margin-top: 42px; }
.footer-shell {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 30px;
}
.footer-copy { color: var(--muted); font-size: 0.94rem; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.site-footer .nav-link { background: var(--surface); border: 1px solid rgba(36, 49, 58, 0.08); }
.site-footer .nav-link:hover { background: var(--surface-soft); }
.section-title { margin-bottom: 6px; }
.home-preview-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr); align-items: start; }
  .admin-two-col, .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.3rem); }
  .card { padding: 22px; }
  .vendor-hero-shell,
  .preview-hero-shell,
  .mock-hero-shell { padding: 20px; }
  .site-footer, .nav { align-items: flex-start; }
}


.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-soft);
}
.account-chip:hover { background: var(--surface); }
.account-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-muted);
  border: 1px solid rgba(36, 49, 58, 0.08);
}
.account-chip-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}
.account-chip-copy strong {
  font-size: 0.92rem;
  color: var(--text);
}
.account-chip-copy span {
  font-size: 0.8rem;
  color: var(--muted);
}
.vendor-home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
}
.hero-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 720px;
}
.hero-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(36, 49, 58, 0.08);
  border-radius: 16px;
}
.hero-point strong {
  font-size: 0.96rem;
}
.hero-point span {
  color: var(--muted);
  line-height: 1.6;
}
.homepage-mock .mock-links.stacked {
  display: grid;
  gap: 10px;
}
.homepage-mock .mock-link {
  width: 100%;
  justify-content: flex-start;
}
.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .vendor-home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-chip-copy span { display: none; }
  .account-chip { padding-right: 10px; }
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.account-chip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.95);
}
.account-chip-copy {
  display: grid;
  line-height: 1.1;
}
.account-chip-copy strong { font-size: .92rem; }
.account-chip-copy span { font-size: .78rem; color: var(--muted); }
.two-col-hero { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px); }
.homepage-preview-shell { display: grid; gap: 10px; }
.preview-frame-label {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}
.homepage-real-preview { max-width: 460px; }
.preview-shell { gap: 14px; }
.preview-shell .vendor-hero-shell { border-radius: 24px; padding: 22px; }
.preview-shell .profile-content-card { padding: 18px; }
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(36, 49, 58, 0.08);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.muted-link { color: var(--muted); cursor: default; }
.badge-admin-form { display: grid; gap: 10px; min-width: 230px; }
.badge-admin-list { display: grid; gap: 8px; }
.badge-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}
.swatch-row {
  display: grid;
  grid-template-columns: 80px 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0 38px;
  flex-wrap: wrap;
}
.footer-copy, .footer-links { color: var(--muted); }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-points { display: grid; gap: 14px; margin-top: 24px; }
.hero-point {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.hero-point strong { display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .two-col-hero, .dashboard-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(36, 49, 58, 0.08);
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow-soft);
}
.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: .9rem;
}
.trust-badge-mini {
  min-height: 30px;
  min-width: 30px;
  padding: 0 8px;
  justify-content: center;
  gap: 0;
}
.trust-badge-mini .trust-badge-icon { width: 16px; height: 16px; }
.trust-badge-verified_vendor { background: #eef6ff; border-color: #d5e6fb; color: #24598a; }
.trust-badge-fast_shipper { background: #eef8f2; border-color: #d4e8db; color: #2d6d4d; }
.trust-badge-trusted_seller { background: #fff7ea; border-color: #f2dfb4; color: #946b00; }
.trust-badge-live_sale_pro { background: #f5efff; border-color: #dfd2ff; color: #6944b7; }
.badge-manager {
  width: min(280px, 100%);
}
.badge-manager summary {
  list-style: none;
  cursor: pointer;
}
.badge-manager summary::-webkit-details-marker { display: none; }
.badge-manager-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.badge-mini-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.badge-manage-link {
  background: var(--surface);
  border: 1px solid var(--line);
}
.badge-admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(36, 49, 58, 0.08);
}
.badge-admin-list {
  display: grid;
  gap: 8px;
}
.badge-option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(36, 49, 58, 0.06);
}
.badge-option-card input { width: auto; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .badge-manager { width: 100%; }
  .badge-manager-summary { align-items: flex-start; flex-direction: column; }
}


/* Mobile polish patch */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-actions .nav-link,
.nav-actions .button.small {
  min-height: 44px;
}
.preview-card { align-self: start; }

@media (max-width: 900px) {
  .preview-mobile, .homepage-real-preview {
    max-width: 100%;
  }
  .preview-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--page-max), calc(100% - 20px)); }
  .section-pad { padding: 24px 0 42px; }
  .nav {
    padding: 14px 0;
    gap: 12px;
    align-items: center;
  }
  .brand {
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .nav-actions {
    width: 100%;
  }
  .nav-actions-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .nav-actions-guest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .nav-actions .nav-link,
  .nav-actions .button.small,
  .nav-actions .account-chip {
    width: 100%;
  }
  .nav-actions-auth .nav-link {
    width: auto;
    min-width: 92px;
  }
  .account-chip {
    min-width: 0;
    padding: 7px 10px 7px 7px;
    gap: 10px;
  }
  .account-chip-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
  .account-chip-copy {
    min-width: 0;
  }
  .account-chip-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-chip-copy span {
    display: block;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .actions .button,
  .actions .nav-link,
  .action-row .button,
  .action-row .nav-link {
    width: 100%;
  }
  .action-row form {
    flex: 1 1 100%;
  }
  .card,
  .profile-content-card {
    padding: 18px;
    border-radius: 18px;
  }
  .mobile-shell {
    padding: 18px 12px 40px;
  }
  .vendor-hero-shell,
  .preview-hero-shell,
  .mock-hero-shell,
  .preview-shell .vendor-hero-shell {
    padding: 18px;
    border-radius: 22px;
  }
  .profile-title,
  .profile-shell h1,
  .preview-mobile h3 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }
  .profile-subtitle,
  .preview-mobile p {
    font-size: 0.98rem;
  }
  .big-link,
  .preview-pill,
  .mock-link {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.98rem;
  }
  .slug-row,
  .swatch-row {
    grid-template-columns: 1fr;
  }
  .slug-row {
    align-items: stretch;
  }
  .slug-row span {
    white-space: normal;
  }
  .swatch-row {
    display: grid;
    gap: 10px;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(36, 49, 58, 0.08);
  }
  .data-table td {
    border: 0;
    padding: 8px 0;
  }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .site-footer {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0 28px;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 34px 0 26px; }
  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.02;
  }
  .hero-copy p {
    font-size: 0.98rem;
  }
  .nav-actions-auth {
    grid-template-columns: 1fr;
  }
  .nav-actions-auth .nav-link {
    width: 100%;
    min-width: 0;
  }
  .nav-actions-guest {
    grid-template-columns: 1fr;
  }
  .badge-row {
    gap: 8px;
  }
  .trust-badge {
    width: 100%;
    justify-content: center;
  }
}

/* Header/mobile CTA cleanup */
.brand {
  display: inline-block;
  max-width: min(56vw, 320px);
  line-height: 1.15;
  text-wrap: balance;
}
.icon-button {
  gap: 10px;
}
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.button-icon svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 720px) {
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    max-width: min(52vw, 220px);
    font-size: 0.92rem;
  }
  .nav-actions {
    width: auto;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 8px;
  }
  .nav-actions-guest,
  .nav-actions-auth {
    display: flex;
    align-items: center;
    grid-template-columns: none;
  }
  .nav-actions .nav-link,
  .nav-actions .button.small,
  .nav-actions .account-chip,
  .nav-actions-auth .nav-link {
    width: auto;
    min-width: 0;
  }
  .nav-actions-guest .icon-button {
    justify-content: center;
    min-width: 44px;
    width: 44px;
    padding: 0;
    border-radius: 14px;
  }
  .nav-actions-guest .button-text {
    display: none;
  }
}
@media (max-width: 480px) {
  .brand {
    max-width: min(50vw, 180px);
    font-size: 0.88rem;
  }
  .nav-actions-guest,
  .nav-actions-auth {
    display: flex;
  }
  .nav-actions-guest .icon-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

/* Dashboard help modal */
.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.help-trigger:hover,
.help-trigger:focus-visible {
  border-color: rgba(15, 23, 42, 0.32);
  transform: translateY(-1px);
}
.modal-open {
  overflow: hidden;
}
.modal-overlay[hidden] {
  display: none !important;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
}
.help-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: min(80vh, 720px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  padding: 24px 20px 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}
.help-modal h2 {
  margin: 0 32px 16px 0;
  font-size: 1.1rem;
}
.help-modal-copy p {
  margin: 0 0 10px;
  line-height: 1.55;
  word-break: break-word;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 640px) {
  .help-trigger {
    width: 28px;
    height: 28px;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .help-modal {
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 14px 14px;
    padding: 20px 16px 16px;
  }
}


/* Dashboard upgrades */

.dashboard-shell {
  display: grid;
  gap: 22px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
}
.lang-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle-btn.is-active {
  background: var(--text);
  color: #fff;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}
.analytics-band { margin-bottom: 0; width: 100%; }
.analytics-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,239,0.96));
}
.compact-head { align-items: flex-start; }
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.metric-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.metric-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.metric-card strong {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
}
.analytics-cheer {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}
.analytics-cheer.is-hot { background: rgba(79, 122, 101, 0.14); color: #2e5d47; }
.analytics-cheer.is-warm { background: rgba(122, 143, 132, 0.14); color: #496053; }
.analytics-cheer.is-fresh { background: rgba(36,49,58,0.06); color: var(--text); }
.inline-feedback {
  font-size: 0.88rem;
  color: var(--muted);
}
.inline-feedback.is-valid { color: var(--success); }
.inline-feedback.is-invalid { color: var(--danger); }
@media (max-width: 980px) {
  .dashboard-main-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }
  .analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-tools {
    gap: 8px;
  }
  .lang-toggle-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.86rem;
  }
}
