/* Public storefront — clean white commerce theme */
:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --card: #ffffff;
  --text: #121212;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --primary: #0371ff;
  --primary-hover: #0259cc;
  --primary-soft: #e8f1ff;
  --primary-rgb: 3, 113, 255;
  --header-bg: #ffffff;
  --header-text: #121212;
  --footer-bg: #f6f6f7;
  --radius: 8px;
  --radius-lg: 12px;
  --font: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1200px;
  --pad: 1.5rem;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body.public-body {
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
code, pre {
  font-family: var(--mono);
  word-break: break-word;
  overflow-wrap: anywhere;
}
a { color: inherit; }

/* Shared content width — header / main / footer align */
.site-shell {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  color: var(--header-text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-logo {
  height: 42px;
  width: auto;
  max-width: min(240px, 55vw);
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo {
    height: 34px;
    max-width: min(180px, 48vw);
  }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}
.site-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:not(.btn):hover {
  background: var(--surface);
  color: var(--primary);
}

/* Account dropdown */
.user-menu {
  position: relative;
  margin-left: 0.35rem;
}
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.user-menu-toggle:hover,
.user-menu.is-open .user-menu-toggle {
  background: var(--surface);
  border-color: var(--border-strong);
}
.user-menu-bal {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.user-menu-name {
  color: var(--text);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-caret {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform .15s ease;
}
.user-menu.is-open .user-menu-caret { transform: rotate(180deg); }
.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 200px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  z-index: 60;
}
.user-menu-panel[hidden] { display: none !important; }
.user-menu-panel a {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.75rem !important;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.user-menu-panel a i {
  width: 1rem;
  text-align: center;
  color: var(--muted);
}
.user-menu-panel a:hover {
  background: var(--surface);
}
.user-menu-panel .user-menu-logout {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.75rem !important;
  color: #b42318;
}
.user-menu-panel .user-menu-logout i { color: #b42318; }

.site-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.85rem;
}
.site-footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
}
.site-footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Page chrome ─────────────────────────────────────────── */
.page-shell { }
.page-head { margin-bottom: 1.5rem; }
.page-eyebrow,
.hero-eyebrow,
.info-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-head h1,
.page-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

/* ── Hero / catalog (flat commerce) ──────────────────────── */
.hero {
  margin: 0 0 2.25rem;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 14ch;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.15rem;
}
.catalog-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.catalog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color .15s ease;
}
.service-card:hover { border-color: var(--border-strong); }
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.service-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.service-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.service-card .cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.28rem 0.55rem;
}
.service-card .desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
  min-height: 2.7em;
}
.service-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ── Order / account panels ──────────────────────────────── */
.panel,
.auth-card,
.legal-page {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.panel { max-width: 920px; margin: 0 auto; }
.auth-shell {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.auth-card h1,
.panel h1,
.legal-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.auth-lead,
.panel-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.order-panel { max-width: 680px; }
.order-panel .order-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.order-panel .order-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: contain;
  padding: 0.4rem;
}
.order-panel h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}
.order-panel .order-desc {
  margin: 0;
  color: var(--muted);
}
.order-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
}
.order-chip strong { font-weight: 700; }
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.stat-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.stat-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.stat-card a {
  color: var(--primary);
  text-decoration: none;
}
.stat-card a:hover { text-decoration: underline; }
.api-box {
  margin-top: 0.25rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.api-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.api-box ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.api-key-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.api-key-line code {
  flex: 1;
  min-width: 12rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
}

/* ── Buttons (solid, flat, not pills) ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1.2rem;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-danger-soft {
  background: #fff;
  color: #b42318;
  border-color: #fecdca;
}
.btn-danger-soft:hover { background: #fef3f2; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted, #6b6b6b);
  cursor: pointer;
  padding: 0;
}
.password-toggle:hover {
  color: var(--text);
  background: #f3f3f3;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.form-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}
.form-hint a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.form-hint a:hover { text-decoration: underline; }

/* ── Tables / badges / flash ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table tbody tr:hover { background: var(--surface); }
.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem !important;
}
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.empty-state i {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: block;
}
.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.badge-pending { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.badge-processing { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.badge-success {
  background: var(--primary-soft);
  border-color: rgba(var(--primary-rgb), 0.28);
  color: var(--primary-hover);
}
.badge-reject { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.flash {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
}
.flash-success {
  background: var(--primary-soft);
  border-color: rgba(var(--primary-rgb), 0.28);
  color: var(--primary-hover);
}
.flash-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.cred-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.order-reply {
  white-space: pre-wrap;
  font-size: 0.82rem;
  word-break: break-word;
}

/* ── Legal / info / updates ──────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-meta { margin: 0; color: var(--muted); font-size: 0.88rem; }
.legal-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}
.legal-content h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.legal-content p { margin: 0 0 0.85rem; }
.legal-content ul { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--primary); }

.info-page { max-width: 820px; }
.info-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.info-summary-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.info-summary-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-summary-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}
.info-summary-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.info-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.info-callout > i {
  margin-top: 0.15rem;
  color: var(--text);
}
.info-callout strong { display: block; margin-bottom: 0.2rem; font-size: 0.92rem; }
.info-callout p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: #444; }
.info-callout a { color: var(--primary); }
.info-callout--foot { margin-top: 1.75rem; }

.updates-intro { margin-bottom: 0.5rem; }
.updates-timeline { list-style: none; margin: 0; padding: 0; }
.updates-item {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
}
.updates-item:last-child { padding-bottom: 0; }
.updates-rail { position: relative; width: 0.7rem; margin-left: 0.2rem; }
.updates-rail::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text);
  z-index: 1;
}
.updates-item:not(:last-child) .updates-rail::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: -1.15rem;
  left: 0.4rem;
  width: 1px;
  background: var(--border);
}
.updates-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.updates-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
}
.updates-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.updates-badge--latest {
  background: var(--primary-soft);
  border-color: #bbf7d0;
  color: #166534;
}
.updates-version {
  font-size: 0.82rem;
  font-weight: 700;
}
.updates-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.updates-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.updates-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.55;
}
.updates-list li { margin-bottom: 0.3rem; }
.updates-list li:last-child { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-nav a:not(.btn) { padding: 0.45rem 0.5rem; font-size: 0.88rem; }
}

@media (max-width: 860px) {
  :root { --pad: 1rem; }
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .header-bar { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn),
  .site-nav .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .site-nav .btn { justify-content: center; width: 100%; }
  .user-menu {
    width: 100%;
    margin-left: 0;
  }
  .user-menu-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }
  .user-menu-panel {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 0.35rem;
  }
  .user-menu-name { max-width: none; }
  .site-main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }
  .hero { padding: 1.5rem 0 1.35rem; }
  .service-grid { grid-template-columns: 1fr; }
  .auth-card, .panel, .legal-page { padding: 1.2rem; }
  .order-panel .order-head { flex-direction: column; align-items: flex-start; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .account-grid { grid-template-columns: 1fr; }
  .order-actions .btn,
  .service-card-foot .btn,
  .order-panel form .btn { width: 100%; }
  .order-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .info-summary { grid-template-columns: 1fr; }
  .updates-date { margin-left: 0; width: 100%; }
}

@media (max-width: 720px) {
  .stacked-table {
    font-size: 0.78rem;
    min-width: 640px;
  }
}

/* ── Storefront catalog ──────────────────────────────────── */
.store-catalog { margin: 0.25rem 0 3rem; }
.store-catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.store-catalog-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.store-catalog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.store-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-item:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-md);
}
.store-item-media {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}
.store-item-media img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.store-item-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.store-item-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.store-item-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
}
.store-price {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.store-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

@media (max-width: 900px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-item-foot .btn { width: auto; }
}

