/* App-UI fidelity layer for the static marketing pages.
   Every surface below reproduces the Swadesic app's own layout, type scale,
   controls and tokens (Roboto, 26/72 avatars, hairline separators, 41% store
   images, black primary actions, green supporter price). Marketing frames
   stay outside these classes; inside them the app sets the rules. */

.app-screen,
.app-sheet,
.app-float,
.app-product-card,
.app-broadcast,
.app-demo-note,
.app-caption {
  --app-black: #000000;
  --app-ink: #222222;
  --app-white: #ffffff;
  --app-muted: #666666;
  --app-faint: #565656;
  --app-line: #f0f0f0;
  --app-border: #d9d9d9;
  --app-tint: #f2f2f2;
  --app-tint-soft: #f5f5f5;
  --app-green: #0d7040;
  --app-green-soft: rgba(13, 112, 64, 0.14);
  --app-red: #d70000;
  --app-orange: #ff9901;
  --app-blue: #0078e9;
  --app-star: #222222;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--app-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-screen *,
.app-sheet *,
.app-float *,
.app-broadcast * {
  box-sizing: border-box;
}

/* ==========================================================================
   Phone shell + app screen
   ========================================================================== */

.phone.app-phone {
  width: min(100%, 390px);
  padding: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 40px;
  background: var(--white);
  box-shadow: 14px 14px 0 var(--line-strong);
  transform: rotate(1.2deg);
}

.sell-phone.app-phone {
  transform: rotate(-1.2deg);
}

.app-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: none;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 31px;
  background: var(--app-white);
  line-height: 1.4;
}

.phone-screen.app-screen {
  background: var(--app-white);
}

.phone-screen.app-screen::after {
  content: none;
  display: none;
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 24px;
  padding: 5px 16px 0;
  color: var(--app-black);
}

.app-status-time {
  padding-left: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.app-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.app-signal i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: var(--app-black);
}

.app-signal i:nth-child(1) { height: 3px; }
.app-signal i:nth-child(2) { height: 5px; }
.app-signal i:nth-child(3) { height: 7px; }
.app-signal i:nth-child(4) { height: 8px; }

.app-wifi {
  width: 10px;
  height: 8px;
  border: 1.4px solid var(--app-black);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 0 0 8px 0;
  transform: rotate(-45deg) translate(-1px, -1px);
}

.app-battery {
  position: relative;
  width: 16px;
  height: 8px;
  padding: 1px;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-radius: 2px;
}

.app-battery::after {
  content: '';
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(0, 0, 0, 0.75);
}

.app-battery::before {
  content: '';
  display: block;
  width: 80%;
  height: 100%;
  border-radius: 1px;
  background: var(--app-black);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 50px;
  padding: 0 14px;
  background: var(--app-white);
}

.app-wordmark {
  display: block;
  width: auto;
  height: 26px;
}

.app-header-action {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
}

.app-header-action img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.app-brand img {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.app-brand strong {
  color: var(--app-black);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.app-brand-sub {
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-home-tabs {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 6px;
  padding: 0 10px 4px;
  background: var(--app-white);
}

.app-home-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 4px 12px;
  border: 0;
  background: none;
  color: var(--app-muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-home-tab.active {
  color: var(--app-black);
  font-weight: 700;
}

/* ==========================================================================
   Feed post (PostCard)
   ========================================================================== */

.app-feed {
  flex: 1;
  min-height: 0;
  padding-bottom: 66px;
  overflow: hidden;
  background: var(--app-white);
}

.app-post {
  position: relative;
  background: var(--app-white);
  border-bottom: 1px solid var(--app-line);
}

.app-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 4px;
}

.app-post-identity {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.app-avatar-wrap {
  position: relative;
  flex: none;
}

.app-avatar {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-tint);
}

.app-title {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.app-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-verified {
  display: inline-flex;
  flex: none;
  width: 13px;
  height: 13px;
}

.app-verified svg {
  display: block;
  width: 13px;
  height: 13px;
}

.app-post-time {
  flex: none;
  color: var(--app-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.app-post-more {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  object-fit: contain;
}

.app-post-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--app-tint);
}

.app-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-post-media--square {
  aspect-ratio: 1 / 1;
}

.app-post-text {
  margin: 0;
  padding: 8px 10px 6px;
  color: var(--app-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.2px;
}

.app-inline-product {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 1px;
}

.app-post-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 10px;
}

.app-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-tint-soft) 55%, transparent);
  color: var(--app-black);
}

.app-action img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.app-action span {
  color: var(--app-black);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}

.app-action--end {
  margin-left: auto;
}

/* ==========================================================================
   Bottom navigation (buyer + seller, seven slots)
   ========================================================================== */

.app-bottom-nav {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  align-items: stretch;
  height: 60px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.app-nav-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--app-black);
  font-family: inherit;
  cursor: pointer;
}

.app-nav-item.active {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
}

.app-nav-icon {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.app-nav-avatar {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
}

.app-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--app-black);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav-item.active .app-nav-label {
  font-weight: 700;
}

/* ==========================================================================
   Marketing app sheets (post/product/store/places previews)
   ========================================================================== */

.app-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.08);
  border-radius: 24px;
  background: var(--app-white);
  box-shadow: 0 24px 60px rgba(21, 20, 15, 0.1);
  line-height: 1.4;
}

.app-sheet .app-post {
  border-bottom: 0;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.app-figure-caption {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Product card (feed, product page, supporter price)
   ========================================================================== */

.app-product-card {
  background: var(--app-white);
}

.app-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--app-tint);
}

.app-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-product-info {
  padding: 8px 10px 6px;
}

.app-brand-line {
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--app-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-product-name-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.app-product-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--app-black);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.app-detail-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--app-black);
}

.app-rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--app-faint);
  font-size: 11.5px;
  font-weight: 400;
}

.app-rating-row img {
  width: 12px;
  height: 12px;
}

.app-variant-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  color: var(--app-black);
  font-size: 12.5px;
}

.app-variant-key {
  color: var(--app-muted);
}

.app-variant-value {
  font-weight: 500;
}

.app-variant-chev {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--app-black);
}

.app-price-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--app-line);
}

.app-supporter-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--app-green);
  color: var(--app-white);
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  white-space: nowrap;
}

.app-supporter-tag > span {
  display: block;
  transform: skewX(12deg);
}

.app-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 6px;
}

.app-price {
  color: var(--app-green);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.app-mrp {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.app-off {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--app-green-soft);
  color: var(--app-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.app-ladder {
  margin: 8px 0 0;
  color: var(--app-black);
  font-size: 12.5px;
  line-height: 1.35;
}

.app-ladder b {
  font-weight: 700;
}

.app-price-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.09);
}

.app-benefits {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.app-benefit {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.app-benefit + .app-benefit {
  padding-left: 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.09);
}

.app-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--app-green-soft);
  color: var(--app-green);
}

.app-benefit-icon svg {
  width: 14px;
  height: 14px;
}

.app-benefit-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-benefit-title {
  color: var(--app-black);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.app-benefit-sub {
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.25;
}

.app-app-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0 2px;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.3;
}

.app-app-note svg {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--app-green);
}

.app-proof-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 0;
}

.app-proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: var(--app-tint-soft);
  color: var(--app-faint);
  font-size: 11px;
  font-weight: 500;
}

.app-proof-chip img {
  display: block;
  width: 17px;
  height: 17px;
}

/* The narrower product card in the community column. */
.app-product-card--compact .app-post-head {
  padding-top: 8px;
}

.app-product-card--compact .app-product-media {
  aspect-ratio: 4 / 5;
}

/* ==========================================================================
   Store results (search / direct section)
   ========================================================================== */

.app-store-list {
  padding: 3px 0;
}

.app-store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--app-line);
}

.app-store-row:last-child {
  border-bottom: 0;
}

.app-store-avatar-row {
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-tint);
}

.app-store-info {
  flex: 1;
  min-width: 0;
}

.app-store-handle-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--app-black);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-display {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--app-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-meta .app-star {
  color: var(--app-black);
  font-weight: 500;
}

.app-support-btn {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.app-support-btn img {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Places (chips, sub-tabs, grid) — not a map
   ========================================================================== */

.app-places {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--app-white);
  scrollbar-width: none;
}

.app-places::-webkit-scrollbar {
  display: none;
}

/* Seller orders mock */
.app-order-list,
.app-order-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--app-white);
  scrollbar-width: none;
}

.app-order-list::-webkit-scrollbar,
.app-order-detail::-webkit-scrollbar {
  display: none;
}

.app-order-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--app-line);
  color: var(--app-black);
}

.app-order-topbar strong {
  font-size: 15px;
  font-weight: 600;
}

.app-order-back,
.app-order-more {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.app-order-chips {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.app-order-chip {
  flex: none;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.app-order-chip.active {
  background: var(--app-black);
  color: var(--app-white);
}

.app-seller-order-card {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-white);
  color: var(--app-black);
  text-align: left;
  cursor: pointer;
}

.app-seller-order-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-order-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f2dc;
  color: #3d6b20;
  font-size: 12px;
  font-weight: 700;
}

.app-order-avatar--blue {
  background: #e3f0fb;
  color: #1b6091;
}

.app-order-customer {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-order-customer strong {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--app-black);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-number {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-muted);
  font-size: 10px;
}

.app-order-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}

.app-order-amount strong {
  color: var(--app-black);
  font-size: 14px;
  font-weight: 700;
}

.app-order-amount small {
  color: var(--app-muted);
  font-size: 9px;
  white-space: nowrap;
}

.app-seller-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 10px;
}

.app-order-paid {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--app-green-soft);
  color: var(--app-green);
  font-weight: 600;
}

.app-order-empty-note {
  padding: 8px 16px 20px;
  color: var(--app-muted);
  font-size: 10px;
  text-align: center;
}

.app-order-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line);
}

.app-order-detail-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
}

.app-order-detail-actions button {
  flex: 1;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-black);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.app-order-status-card {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-white);
}

.app-order-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-black);
}

.app-order-status-head strong {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.app-order-status-head span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-muted);
  font-size: 10px;
}

.app-order-nudge {
  margin: 8px 0 10px;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.4;
}

.app-order-nudge em {
  display: block;
  margin-top: 2px;
  color: var(--app-orange);
  font-style: normal;
  font-weight: 600;
}

.app-order-product {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--app-line);
}

.app-order-product img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.app-order-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--app-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.app-order-product-info small {
  color: var(--app-muted);
}

.app-order-product-info strong {
  color: var(--app-black);
  font-size: 12px;
  font-weight: 600;
}

.app-order-cta-row {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--app-line);
}

.app-order-confirm,
.app-order-cancel {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.app-order-confirm {
  border: 0;
  background: var(--app-black);
  color: var(--app-white);
}

.app-order-cancel {
  border: 1px solid var(--app-black);
  background: none;
  color: var(--app-black);
}

.app-order-sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.35);
}

.app-order-sheet {
  width: 100%;
  max-height: 82%;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  background: var(--app-white);
}

.app-order-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line);
  color: var(--app-black);
  font-size: 14px;
}

.app-order-sheet-head button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  font-size: 16px;
  cursor: pointer;
}

.app-order-sheet-block {
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line);
}

.app-order-sheet-block h4 {
  margin: 0 0 8px;
  color: var(--app-black);
  font-size: 12px;
  font-weight: 600;
}

.app-order-sheet-block p {
  margin: 0 0 6px;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.45;
}

.app-order-copy {
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-black);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.app-order-price-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  color: var(--app-muted);
  font-size: 11px;
}

.app-order-price-row strong {
  color: var(--app-black);
}

.app-order-price-row--total {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--app-line);
  font-weight: 600;
}

.app-order-note {
  padding: 12px 14px;
  color: var(--app-muted);
  font-size: 10px;
  line-height: 1.4;
}

.app-home-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--app-white);
  scrollbar-width: none;
}

.app-home-feed::-webkit-scrollbar {
  display: none;
}

.app-visited-rail {
  display: flex;
  gap: 14px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.app-visited-rail::-webkit-scrollbar {
  display: none;
}

.app-visited-store {
  display: flex;
  flex: 0 0 82px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scroll-snap-align: start;
}

.app-visited-store img {
  width: 82px;
  height: 82px;
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-tint);
}

.app-visited-store strong {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 82px;
  color: var(--app-black);
  font-size: 11px;
  font-weight: 500;
}

.app-visited-handle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-visited-store strong img {
  flex: none;
  width: 10px;
  height: 10px;
}

.app-categories {
  display: flex;
  gap: 12px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-categories::-webkit-scrollbar {
  display: none;
}

.app-category {
  display: flex;
  flex: 0 0 84px;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.app-category img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
}

.app-category span {
  color: var(--app-black);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.app-search-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  background: var(--app-white);
}

.app-search-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 14px;
  border-bottom: 1px solid var(--app-line);
}

.app-search-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-muted);
  font-size: 11px;
}

.app-recommended-store {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--app-tint);
}

.app-recommended-store img {
  width: 56px;
  height: 56px;
  border-radius: 41%;
  object-fit: cover;
}

.app-recommended-store-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--app-muted);
  font-size: 11px;
}

.app-recommended-store-copy strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--app-black);
  font-size: 12px;
  font-weight: 600;
}

.app-recommended-store-copy small {
  color: var(--app-muted);
  font-size: 10px;
}

.app-recommended-store button {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--app-black);
  color: var(--app-white);
  font-size: 18px;
  cursor: pointer;
}

.app-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  overflow: hidden;
}

.app-add-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.app-place-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 6px 12px 6px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--app-black);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.app-place-chip svg {
  width: 18px;
  height: 18px;
}

.app-place-chip.active {
  box-shadow: inset 0 0 0 1px var(--app-black);
}

.app-subtabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--app-border);
}

.app-subtab {
  flex: 1;
  padding: 7px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--app-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.app-subtab.active {
  border-bottom-color: var(--app-black);
  font-weight: 600;
}

.app-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.app-mini-card {
  --pc-a: hsl(var(--pc-h, 0) calc(var(--pc-s, 0%) * 0.55) 97%);
  --pc-b: hsl(var(--pc-h, 0) calc(var(--pc-s, 0%) * 0.7) 90%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--pc-a), var(--pc-b));
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  text-align: left;
}

.app-mini-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--app-tint);
}

.app-mini-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-mini-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 9px 10px 10px;
}

.app-mini-brand {
  margin-bottom: 2px;
  overflow: hidden;
  color: var(--app-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mini-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--app-black);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.app-mini-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--app-faint);
  font-size: 10.5px;
}

.app-mini-stars {
  display: flex;
  gap: 0;
}

.app-mini-stars img {
  width: 10px;
  height: 10px;
}

.app-mini-rating strong {
  display: inline-flex;
  align-items: center;
  color: var(--app-black);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.app-mini-rating img {
  width: 11px;
  height: 11px;
}

.app-mini-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.app-mini-price strong {
  color: var(--app-black);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-mini-price s {
  color: var(--app-muted);
  font-size: 11px;
}

.app-mini-price em {
  color: var(--app-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.app-mini-best {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.app-mini-best .app-supporter-tag {
  padding: 2px 7px;
  font-size: 9px;
}

.app-mini-best strong {
  color: var(--app-green);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   Seller home (SellerHomeTab + StoreHomeSections)
   ========================================================================== */

.app-seller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 52px;
  padding: 0 15px;
}

.app-seller-store {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-tint);
}

.app-seller-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-seller-brand img {
  display: block;
  width: 21px;
  height: 21px;
}

.app-seller-brand strong {
  color: var(--app-black);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.app-seller-accounts {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--app-black);
}

.app-seller-accounts svg {
  width: 24px;
  height: 24px;
}

.app-seller-body {
  flex: 1;
  min-height: 0;
  padding: 0 15px;
  overflow: hidden;
}

.app-share-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0.5px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-tint);
}

.app-share-icon {
  width: 40px;
  height: 40px;
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-shade, #f0f0f0);
}

.app-share-info {
  flex: 1;
  min-width: 0;
}

.app-share-name {
  display: block;
  overflow: hidden;
  color: var(--app-black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-share-url {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-share-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--app-black);
  color: var(--app-white);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}

.app-share-pill svg {
  width: 12px;
  height: 12px;
}

.app-share-pill img {
  filter: invert(1);
}

.app-sec-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px 8px;
}

.app-sec-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app-red);
}

.app-sec-title {
  color: var(--app-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.app-sec-spacer {
  flex: 1;
}

.app-sec-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(215, 0, 0, 0.12);
  color: var(--app-red);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.app-sec-chevron {
  width: 16px;
  height: 16px;
  color: var(--app-muted);
}

.app-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px;
}

.app-status-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 78px;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--app-tint);
}

.app-status-box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-status-foot {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  margin-top: auto;
}

.app-status-label {
  flex: 1;
  color: var(--app-black);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.app-status-count {
  color: var(--app-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.app-status-count.hot {
  color: var(--app-red);
}

.app-sec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--app-line);
}

.app-sec-row .app-sec-dot {
  background: var(--app-blue);
}

.app-sec-row .app-sec-title {
  font-size: 14px;
  font-weight: 600;
}

.app-sec-row .app-sec-chip {
  background: rgba(0, 0, 0, 0.05);
  color: var(--app-faint);
}

.app-sec-row .app-sec-chevron {
  transform: rotate(-90deg);
}

.app-recent {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--app-tint);
}

.app-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--app-black);
  font-size: 12px;
  font-weight: 600;
}

.app-recent-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--app-green-soft);
  color: var(--app-green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-recent-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.app-recent-thumb {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.app-recent-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.app-recent-copy strong {
  overflow: hidden;
  color: var(--app-black);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-recent-copy span {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-recent .app-sec-chevron {
  flex: none;
  color: var(--app-muted);
}

.app-seller-products {
  margin-top: 4px;
}

.app-seller-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid var(--app-line);
}

.app-seller-product:first-child {
  border-top: 0;
}

.app-seller-thumb {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.app-seller-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.app-seller-product-copy strong {
  overflow: hidden;
  color: var(--app-black);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-seller-product-copy span {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-seller-product .app-sec-chevron {
  flex: none;
  color: var(--app-muted);
}

/* ==========================================================================
   Store page (StoreHeader + tab strip)
   ========================================================================== */

.app-store-topbar {
  display: flex;
  align-items: center;
  flex: none;
  gap: 4px;
  height: 44px;
  padding: 0 8px;
  background: var(--app-white);
}

.app-store-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--app-black);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-store-back svg {
  width: 20px;
  height: 20px;
}

.app-store-tabs {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 12px;
  overflow: hidden;
}

.app-store-tab {
  flex: none;
  padding: 9px 2px 8px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.app-store-tab.active {
  color: var(--app-black);
  font-weight: 700;
}

.app-store-cover {
  position: relative;
  flex: none;
  height: 132px;
  overflow: hidden;
  background: var(--app-tint);
}

.app-store-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-store-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -26px;
  padding: 0 16px;
}

.app-store-avatar {
  display: block;
  flex: none;
  position: relative;
  z-index: 10;
  width: 72px;
  height: 72px;
  border: 3px solid var(--app-white);
  border-radius: 41%;
  object-fit: cover;
  background: var(--app-tint);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.app-store-id {
  flex: 1;
  min-width: 0;
  padding-top: 30px;
}

.app-store-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.app-store-name {
  margin: 0;
  overflow: hidden;
  color: var(--app-black);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-handle {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0 16px;
  color: var(--app-black);
  font-size: 13px;
  line-height: 1.4;
}

.app-store-stats strong {
  font-weight: 600;
}

.app-store-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  padding: 0 16px;
  color: var(--app-black);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.app-store-category {
  margin: 4px 0 0;
  padding: 0 16px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-store-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.app-store-btn img {
  width: 18px;
  height: 18px;
}

.app-store-btn--primary {
  background: var(--app-black);
  color: var(--app-white);
}

.app-store-btn--primary img {
  filter: invert(1);
}

.app-store-btn--secondary {
  background: var(--app-tint);
  color: var(--app-black);
}

.app-store-icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--app-tint);
}

.app-store-icon-btn img {
  width: 19px;
  height: 19px;
}

.app-store-body {
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.app-store-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px 0;
}

.app-store-subhead strong {
  color: var(--app-black);
  font-size: 14px;
  font-weight: 600;
}

.app-store-subhead span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================================
   Cart (CartStoreCard + summary + checkout action)
   ========================================================================== */

.app-float {
  width: 286px;
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.08);
  border-radius: 18px;
  background: var(--app-white);
  box-shadow: 0 20px 50px rgba(21, 20, 15, 0.18);
}

.app-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 10px;
  border-bottom: 1px solid var(--app-line);
}

.app-cart-title {
  color: var(--app-black);
  font-size: 15px;
  font-weight: 600;
}

.app-cart-count {
  color: var(--app-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.app-cart-store {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px 8px;
}

.app-cart-avatar {
  width: 36px;
  height: 36px;
  border-radius: 41%;
  object-fit: cover;
}

.app-cart-store-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: var(--app-black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.app-cart-store-sub {
  display: block;
  color: var(--app-muted);
  font-size: 10.5px;
  font-weight: 400;
}

.app-cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 15px 10px;
}

.app-cart-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--app-tint);
}

.app-cart-line-copy {
  flex: 1;
  min-width: 0;
}

.app-cart-line-name {
  display: block;
  overflow: hidden;
  color: var(--app-black);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-cart-line-meta {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 10.5px;
}

.app-cart-line-price {
  color: var(--app-black);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.app-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid var(--app-line);
  font-size: 12px;
  color: var(--app-muted);
}

.app-cart-summary strong {
  color: var(--app-black);
  font-size: 16px;
  font-weight: 700;
}

.app-cart-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 30px);
  height: 42px;
  margin: 0 15px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--app-black);
  color: var(--app-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.app-cart-cta:disabled {
  opacity: 0.45;
  cursor: default;
}

.app-cart-summary--soft {
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
}

.app-cart-summary--soft strong {
  font-size: 12px;
}

.app-cart-summary--total {
  border-top: 1px solid var(--app-black);
}

.app-cart-back {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--app-tint);
  color: var(--app-black);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.app-cart-empty {
  padding: 18px 15px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-pay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 15px 16px;
}

.app-pay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 12px;
}

.app-pay-total strong {
  color: var(--app-black);
  font-size: 18px;
}

.app-pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: none;
  color: var(--app-black);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.app-pay-method.active {
  border-color: var(--app-black);
  background: rgba(0, 0, 0, 0.03);
}

.app-pay-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--app-tint);
  font-size: 14px;
  font-weight: 700;
}

.app-pay-glyph svg {
  width: 20px;
  height: 20px;
}

.app-pay-method > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.app-pay-method strong {
  font-size: 12px;
  font-weight: 600;
}

.app-pay-method small {
  color: var(--app-muted);
  font-size: 10px;
}

.app-pay-radio {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--app-border);
  border-radius: 50%;
}

.app-pay-method.active .app-pay-radio {
  border: 4px solid var(--app-black);
}

.app-pay-body .app-cart-cta {
  width: 100%;
  margin: 4px 0 0;
}

.app-pay-note {
  margin: 0;
  color: var(--app-muted);
  font-size: 10px;
  line-height: 1.4;
}

.app-order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px 16px;
  text-align: center;
}

.app-order-check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--app-green-soft);
  color: var(--app-green);
  font-size: 20px;
  font-weight: 700;
}

.app-order-success > strong {
  color: var(--app-black);
  font-size: 15px;
}

.app-order-success > p {
  margin: 0 0 6px;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.4;
}

.app-order-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--app-tint);
  font-size: 10.5px;
  text-align: left;
}

.app-order-file span {
  color: var(--app-muted);
}

.app-order-file strong {
  color: var(--app-black);
  overflow-wrap: anywhere;
}

.app-order-success .app-cart-cta {
  width: 100%;
  margin: 6px 0 0;
}

.app-order-reset {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--app-muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

/* ==========================================================================
   Community: supporter product + broadcast
   ========================================================================== */

.app-community {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.app-community .app-product-card {
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(21, 20, 15, 0.1);
}

.app-community .app-list-product {
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.08);
  border-radius: 20px;
  background: var(--app-white);
  box-shadow: 0 18px 44px rgba(21, 20, 15, 0.1);
}

.app-community .app-list-product.active {
  outline: none;
}

.app-reward-sheet {
  width: min(100%, 430px);
  margin-left: auto;
}

.app-broadcast {
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.1);
  border-radius: 20px;
  background: var(--app-white);
  box-shadow: 0 18px 44px rgba(21, 20, 15, 0.08);
}

.app-broadcast-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--app-line);
}

.app-broadcast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--app-black);
  color: var(--app-white);
}

.app-broadcast-icon svg {
  width: 15px;
  height: 15px;
}

.app-broadcast-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-broadcast-title {
  color: var(--app-black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.app-broadcast-sub {
  margin-top: 1px;
  color: var(--app-muted);
  font-size: 10.5px;
}

.app-broadcast-body {
  padding: 16px 15px;
  color: var(--app-black);
  font-size: 14px;
  line-height: 1.5;
}

.app-broadcast-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 10.5px;
}

.app-broadcast-foot strong {
  color: var(--app-black);
  font-size: 11.5px;
  font-weight: 600;
}

/* ==========================================================================
   Layout + disclosure around the app surfaces
   ========================================================================== */

.app-demo-note {
  display: block;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-transform: uppercase;
}

.app-demo-note--right {
  text-align: right;
}

.hero-visual .app-demo-note {
  margin-top: 20px;
  text-align: right;
}

.sell-hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 300px);
  justify-content: end;
  align-items: end;
  column-gap: 12px;
  position: relative;
}

/* Scale the whole mock as one unit so every inner element — type, tiles,
   icons, spacing and the phone chrome — shrinks by the same factor. */
.sell-hero-visual .phone.app-phone {
  width: 390px;
  max-width: none;
  margin: 0;
  zoom: 0.769;
}

.sell-hero-visual .app-mock-hint {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  text-align: center;
}

.app-mock-hint-kicker {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-mock-hint-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
}

.app-mock-hint-title em {
  color: var(--green);
  font-style: italic;
}

.app-mock-hint-sub {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.sell-hero-visual .app-demo-note {
  grid-column: 1 / -1;
  margin-top: 14px;
  text-align: center;
}

.sell-hero-visual .app-screen {
  height: 100vh;
  max-height: none;
}

/* On desktop the cart sits in its own lane to the right of the phone. */
.sell-hero-visual .app-float {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 390px;
  max-width: none;
  margin: 0;
  zoom: 0.769;
}

/* EXPERIMENT (desktop only): centered title with a viewport-scaled mock below.
   Remove this block to return to the two-column hero. */
@media (min-width: 901px) {
  .sell-hero {
    padding: 40px 28px 72px;
  }

  .sell-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1180px;
    gap: 32px;
  }

  .sell-hero-copy {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
  }

  .sell-hero-copy .sell-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .sell-hero-actions,
  .trust-line {
    justify-content: center;
  }

  .sell-hero-visual {
    justify-content: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px) minmax(0, 400px);
    width: 100%;
    margin: 0 auto;
  }

  .sell-hero-visual .app-mock-hint {
    grid-column: 1;
    align-self: center;
    align-items: flex-start;
    max-width: 280px;
    margin: 0;
    text-align: left;
  }

  /* Scale the whole phone as one unit. The screen fills the viewport and the
     width follows the same factor, so the 390:760 aspect ratio is preserved. */
  .sell-hero-visual .phone.app-phone {
    width: calc((100vh / 0.769 - 21px) * 0.513);
  }

  .sell-hero-visual .app-screen {
    height: calc(100vh / 0.769 - 21px);
  }

  .sell-hero-visual .app-float {
    width: 390px;
    zoom: 1;
    transform: translateY(-110px);
  }
}

/* Below ~1060px there is no room for the side hint, so drop it and center the
   scaled phone and cart instead. The phone keeps the same aspect ratio. */
@media (min-width: 901px) and (max-width: 1059px) {
  .sell-hero-visual {
    grid-template-columns: minmax(0, 420px) minmax(0, 400px);
    justify-content: center;
  }

  .sell-hero-visual .app-mock-hint {
    display: none;
  }
}

.sell-store-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 0;
}

.sell-store-visual .app-phone {
  width: 390px;
  max-width: none;
  margin: 0 auto;
  zoom: 0.769;
}

.sell-store-visual .app-screen {
  height: 100vh;
  max-height: none;
}

.distribution-visual .app-phone {
  width: 390px;
  max-width: none;
  margin: 0 auto;
  zoom: 0.769;
}

.distribution-visual .app-screen {
  height: 100vh;
  max-height: none;
}

.community-visual {
  display: block;
}

.community-visual .app-community {
  align-items: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .phone.app-phone {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual .app-demo-note,
  .sell-hero-visual .app-demo-note {
    text-align: center;
  }

  .app-gallery,
  .app-community {
    grid-template-columns: 1fr;
  }

  .app-community {
    max-width: 340px;
  }

  .sell-store-visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .distribution-visual {
    width: 100%;
    min-width: 0;
  }

  .sell-hero-visual {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
    row-gap: 12px;
  }

  /* Mobile is width-bound: pick the smaller of the width- and height-limited
     sizes so the whole phone scales without losing its 390:760 ratio. */
  .sell-hero-visual .phone.app-phone {
    width: min(calc((100vw - 32px) / 0.769), calc(100vh / 1.949 / 0.769));
  }

  .sell-hero-visual .app-screen {
    height: calc(min((100vw - 32px) / 0.769, 100vh / 1.949 / 0.769) * 1.949);
  }

  .sell-hero-visual .app-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 390px;
    max-width: none;
    margin: 12px 0 0;
    justify-self: center;
    zoom: 0.769;
  }

  .distribution-visual .app-phone {
    width: 390px;
  }
}

@media (max-width: 620px) {
  .phone.app-phone {
    width: min(100%, 366px);
    padding: 8px;
    border-radius: 34px;
    box-shadow: 9px 9px 0 var(--line-strong);
  }

  /* Keep the scaled hero mock's own dimensions inside the small-screen
     breakpoint so zoom still scales the entire phone as one unit. */
  .sell-hero-visual .phone.app-phone {
    width: min(calc((100vw - 32px) / 0.769), calc(100vh / 1.949 / 0.769));
    padding: 9px;
    border-radius: 40px;
    box-shadow: 14px 14px 0 var(--line-strong);
    zoom: 0.769;
  }

  .sell-hero-visual .app-screen {
    height: calc(min((100vw - 32px) / 0.769, 100vh / 1.949 / 0.769) * 1.949);
  }

  .app-screen {
    height: 100vh;
    border-radius: 27px;
  }

  .app-sheet {
    border-radius: 20px;
  }

  .app-store-cover {
    height: 132px;
  }

  .distribution-visual .app-screen {
    height: 100vh;
  }

  .app-mini-grid {
    gap: 7px;
    padding: 8px;
  }

  .app-mini-info {
    padding: 8px;
  }

  .app-mini-name {
    font-size: 12.5px;
  }

  .app-mini-price strong {
    font-size: 14px;
  }

  .app-cart-head,
  .app-cart-store,
  .app-cart-line,
  .app-cart-summary {
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-cart-cta {
    margin-right: 13px;
    margin-left: 13px;
  }
}

@media (max-width: 380px) {
  .phone.app-phone {
    width: 100%;
  }

  .app-store-row {
    gap: 10px;
    padding: 11px 12px;
  }

  .app-store-avatar-row {
    width: 44px;
    height: 44px;
  }

  .app-support-btn {
    gap: 0;
    padding: 6px 8px;
  }

  .app-support-btn img {
    display: none;
  }

  .app-status {
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-header {
    padding: 0 12px;
  }

  .app-home-tab {
    font-size: 13.5px;
  }

  .app-store-tabs {
    gap: 9px;
  }

  .app-store-tab {
    font-size: 12px;
  }

  .app-store-actions {
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-store-btn {
    font-size: 12px;
  }

}
