:root {
  --bg: #fff4eb;
  --bg-soft: #ffe8da;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-soft: rgba(255, 246, 240, 0.92);
  --line: rgba(166, 111, 79, 0.16);
  --text: #2e1f16;
  --muted: #715f55;
  --accent: #ff6b5e;
  --accent-2: #ff9c50;
  --warm: #f59e0b;
  --danger: #d94c68;
  --shadow: 0 24px 70px rgba(150, 91, 49, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 101, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 208, 102, 0.26), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255, 182, 193, 0.24), transparent 28%),
    linear-gradient(160deg, #fffdf9 0%, #fff5ee 46%, #ffe8da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(166, 111, 79, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 111, 79, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  right: -80px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(12px);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
  color: #b34d2e;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a43e2d;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.session-chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.session-chip {
  background: rgba(255, 240, 232, 0.92);
  border: 1px solid rgba(166, 111, 79, 0.12);
  white-space: nowrap;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(166, 111, 79, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #7a3b2b;
  box-shadow: 0 12px 28px rgba(179, 95, 59, 0.08);
}

.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.quick-link-icon svg {
  width: 24px;
  height: 24px;
}

.hero-grid,
.grid-2,
.product-grid,
.metrics-grid {
  display: grid;
  gap: 20px;
}

.hero-grid,
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.cart-drawer,
.status-card,
.product-card,
.metric-card,
.cart-row,
.verification-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 240, 0.88));
  box-shadow: var(--shadow);
}

.hero-copy h1,
.panel h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2,
h3,
p {
  margin-top: 0;
}

p,
.muted,
small {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 94, 0.12);
  color: #b34d2e;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.action-row,
.section-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.section-header {
  margin: 28px 0 16px;
}

.stack,
.card-list,
.field,
.capture-copy,
.video-shell,
.page-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-list {
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field span {
  color: #dbe7fb;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(166, 111, 79, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 107, 94, 0.26);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fffaf6;
  font-weight: 700;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: #74493b;
  border-color: rgba(166, 111, 79, 0.12);
}

.button.ghost {
  background: rgba(245, 158, 11, 0.14);
  color: #9f5d10;
  border-color: rgba(245, 158, 11, 0.18);
}

.button.danger {
  background: rgba(217, 76, 104, 0.12);
  color: #a73952;
  border-color: rgba(217, 76, 104, 0.18);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(166, 111, 79, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #8b4a36;
  cursor: pointer;
}

.metric-card strong {
  font-size: 1.3rem;
}

.feedback {
  min-height: 24px;
  color: #2b8c55;
}

.feedback.is-error {
  color: #b23d56;
}

.feedback.is-warning {
  color: #b86b11;
}

.capture-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.video-shell video,
.verification-media,
.product-card img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  background: #f8e8df;
}

.capture-prompt,
.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.capture-prompt,
.badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #9f5d10;
}

.badge.approved {
  background: rgba(34, 197, 94, 0.14);
  color: #2b8c55;
}

.badge.placed,
.badge.sent_to_seller,
.badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #9f5d10;
}

.badge.processing {
  background: rgba(56, 189, 248, 0.14);
  color: #166b89;
}

.badge.shipped {
  background: rgba(14, 165, 164, 0.14);
  color: #0f766e;
}

.badge.delivered {
  background: rgba(34, 197, 94, 0.14);
  color: #2b8c55;
}

.badge.rejected {
  background: rgba(217, 76, 104, 0.12);
  color: #a73952;
}

.product-card,
.verification-card,
.cart-row {
  display: grid;
  gap: 16px;
}

.cart-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.product-card img {
  aspect-ratio: 4 / 5;
}

.product-meta,
.order-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-controls,
.verification-actions,
.verification-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-docs a {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 240, 232, 0.9);
  border: 1px solid rgba(166, 111, 79, 0.12);
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(166, 111, 79, 0.24);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.catalog-toolbar,
.toolbar-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-input {
  margin: 0;
}

.toolbar-stat {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 240, 232, 0.92);
  border: 1px solid rgba(166, 111, 79, 0.12);
  color: #8b4a36;
}

.helper-copy {
  margin: -4px 0 0;
  color: #8b4a36;
}

.cart-drawer {
  margin-bottom: 24px;
  padding: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .capture-box,
  .form-grid,
  .metrics-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .hero-actions,
  .action-row,
  .section-header,
  .catalog-toolbar,
  .toolbar-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .panel h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }
}
