:root {
  --bg: #f7f4ef;
  --surface: #fffdfa;
  --surface-2: #f1ece4;
  --text: #1f1a16;
  --muted: #6d655e;
  --border: #e6ddd2;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #f59e0b;
  --danger: #b91c1c;
  --success: #2f6f3e;
  --shadow: 0 10px 30px rgba(31, 26, 22, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #fbf7f0 0%, #f7f4ef 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.app-shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.88);
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(230, 221, 210, 0.7);
}

.topbar-row,
.meta-row,
.card-footer,
.seller-row,
.shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand,
.identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  font-size: 18px;
}

.brand-subtitle,
.small-text,
.product-store {
  font-size: 12px;
}

.brand-subtitle {
  color: var(--muted);
  font-weight: 600;
}

.pill-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content {
  padding: 18px 16px 32px;
  display: grid;
  gap: 18px;
}

.hero {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 35%), linear-gradient(160deg, #0f766e 0%, #155e75 100%);
  color: white;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.86);
  line-height: 1.5;
  font-size: var(--text-sm);
}

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

.btn-primary,
.btn-secondary {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: white;
  color: var(--primary-strong);
}

.btn-secondary {
  background: rgba(255,255,255,.14);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}

.btn-primary-solid {
  background: var(--primary);
  color: white;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.section-title h2 {
  margin: 0;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.section-title a {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 600;
}

.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.cards,
.dashboard-grid,
.mini-form {
  display: grid;
}

.cards { gap: 14px; }
.dashboard-grid,
.mini-form { gap: 12px; }

.product-card,
.shop-card,
.seller-card,
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fde68a, #fdba74 45%, #fca5a5);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.product-tag {
  background: rgba(255,255,255,.88);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.card-body,
.seller-card,
.shop-card,
.dashboard-card {
  padding: 16px;
}

.card-body {
  display: grid;
  gap: 10px;
}

.muted { color: var(--muted); }

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.tiny-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8f7;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.stat {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 4px 0 2px;
}

.mock-phone-section {
  background: var(--surface-2);
  border: 1px dashed #d9cfc0;
  border-radius: 24px;
  padding: 14px;
}

.screen-label {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
}

.input {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.upload-zone {
  border: 1.5px dashed #b7d4d0;
  background: #f4fbfa;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  color: var(--primary-strong);
  font-weight: 700;
}

.btn-add {
  background: #0f766e;
  color: white;
}

@media (min-width: 900px) {
  .app-shell {
    max-width: 1200px;
    padding: 0 0 40px;
    background: transparent;
  }

  .content {
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
    align-items: start;
  }

  .content > .full {
    grid-column: 1 / -1;
  }

  .cards.two-col,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    padding-inline: 24px;
  }
}
