.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--pv2-header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 251, 243, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 10px 24px rgba(14, 30, 28, 0.11);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pv2-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.94rem;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 28%, #d8fbf8, var(--pv2-brand));
  box-shadow: 0 0 0 5px rgba(15, 76, 75, 0.18), 0 8px 18px rgba(15, 76, 75, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pv2-ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(15, 76, 75, 0.11);
  color: var(--pv2-brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-actions-guest,
.nav-actions-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-chip {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--pv2-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--pv2-ink-soft);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

body.is-auth .nav-actions-guest {
  display: none;
}

body:not(.is-auth) .nav-actions-auth {
  display: none;
}

body:not(.is-auth) #nav-logout {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #f4fbfb;
  background: linear-gradient(140deg, var(--pv2-brand) 0%, var(--pv2-brand-strong) 72%, #052322 100%);
  box-shadow: 0 16px 34px rgba(15, 76, 75, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 24px 44px rgba(15, 76, 75, 0.33);
}

.btn-outline {
  color: var(--pv2-ink-soft);
  border-color: var(--pv2-line-strong);
  background: rgba(255, 255, 255, 0.83);
}

.btn-ghost {
  color: var(--pv2-ink-muted);
  border-color: var(--pv2-line);
  background: rgba(255, 255, 255, 0.58);
}

.btn-danger {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, #d45e5e 0%, #bd4141 100%);
}

.card {
  border-radius: var(--pv2-radius-md);
  border: 1px solid var(--pv2-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--pv2-shadow-sm);
}

.pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(16, 35, 34, 0.12);
  background: rgba(16, 35, 34, 0.06);
  color: var(--pv2-ink-muted);
}

.metric {
  border-radius: 14px;
  border: 1px solid rgba(16, 35, 34, 0.1);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.metric strong {
  font-size: 1.1rem;
}

.metric span {
  color: var(--pv2-ink-muted);
  font-size: 0.82rem;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pv2-ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 34, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--pv2-ink);
  min-height: 44px;
  padding: 11px 12px;
  font-family: var(--pv2-font-body);
  font-size: 0.95rem;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-prefix {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 34, 0.2);
  background: rgba(16, 35, 34, 0.06);
  color: var(--pv2-ink-muted);
  font-size: 0.84rem;
}

.input-action {
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 34, 0.24);
  background: #fff;
  color: var(--pv2-ink-soft);
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.notice {
  min-height: 20px;
  color: var(--pv2-ink-muted);
  font-size: 0.86rem;
}

.notice.error {
  color: var(--pv2-danger);
}

.notice.success {
  color: var(--pv2-success);
}

.legal-copy {
  margin-top: 14px;
}

.legal-inline {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.legal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-link-list a {
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 34, 0.14);
  background: rgba(255, 255, 255, 0.85);
  padding: 7px 11px;
  color: var(--pv2-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.legal-link-list a:hover,
.footer-links a:hover {
  color: var(--pv2-brand);
}

.seller-summary {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 35, 34, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--pv2-ink-muted);
  font-size: 0.84rem;
}

.seller-summary.is-ready {
  border-color: rgba(30, 149, 95, 0.18);
  background: rgba(240, 249, 246, 0.86);
}

.seller-summary-inline {
  margin-top: 16px;
  margin-bottom: 4px;
}

.drawer-toggle {
  display: none;
  border-radius: 10px;
  border: 1px solid rgba(16, 35, 34, 0.14);
  background: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-toggle span,
.drawer-toggle::before,
.drawer-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--pv2-ink-soft);
  position: absolute;
}

.drawer-toggle span {
  position: relative;
}

.drawer-toggle::before {
  transform: translateY(-6px);
}

.drawer-toggle::after {
  transform: translateY(6px);
}

.drawer {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 19, 0.5);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: fixed;
  right: 12px;
  top: calc(var(--pv2-header-height) + 8px);
  width: min(88vw, 330px);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 35, 34, 0.14);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--pv2-shadow-md);
  display: grid;
  gap: 12px;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 34, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--pv2-ink-soft);
  font-weight: 700;
}

.drawer-actions {
  display: grid;
  gap: 8px;
}

body.is-auth .drawer-actions-guest {
  display: none;
}

body:not(.is-auth) .drawer-actions-auth {
  display: none;
}

body.drawer-open .drawer {
  display: block;
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 42;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(16, 35, 34, 0.12);
  box-shadow: var(--pv2-shadow-md);
  padding: 8px;
  backdrop-filter: blur(10px);
}

.footer {
  padding: 52px 0;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--pv2-ink-muted);
}

.footer-tag {
  margin-bottom: 2px;
}
