/* ShopEasy — per-screen styles */

/* ---------- Login ---------- */
.login-hero { text-align: center; padding: 12vh 0 var(--sp-6); }
.login-hero .logo-mark { font-size: 56px; }
.login-hero h1 { margin-top: var(--sp-3); }

/* ---------- Home ---------- */
.home-greeting { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.home-greeting .who h1 { margin: 0; font-size: 21px; }
.home-greeting .who .faint { margin: 0; }
.avatar-btn {
  width: var(--tap-min); height: var(--tap-min); border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass-strong);
  font-size: 20px; cursor: pointer; overflow: hidden;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.kpi-tile { padding: var(--sp-4); margin: 0; cursor: pointer; }
.kpi-tile .kpi-label { font-size: var(--fs-small); color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi-tile .kpi-value { font-size: var(--fs-big-number); font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.kpi-tile .kpi-trend { font-size: 13px; color: var(--text-dim); }

.donext-card { border-color: var(--accent); }

/* Store-health chip: worst-of light + label, links to #/health */
.health-chip { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.health-chip .light { pointer-events: none; }

/* ---------- Sell / products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.product-card { margin: 0; padding: 0; overflow: hidden; cursor: pointer; }
.product-card .p-photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--glass-strong); }
.product-card .p-photo-empty { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 40px; background: var(--glass-strong); }
.product-card .p-body { padding: var(--sp-3); }
.product-card .p-name { font-weight: 700; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .p-price { font-weight: 800; margin: 2px 0; font-variant-numeric: tabular-nums; }
.product-card .p-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.role-tag { font-size: 13px; }

/* Photo strip in Sell wizard */
.viewfinder-wrap { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 3 / 4; position: relative; margin-bottom: var(--sp-3); border: 1px solid var(--glass-border); }
.viewfinder-wrap video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--text-dim); text-align: center; padding: var(--sp-4); }
.photo-strip { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-2); }
.photo-strip .shot { position: relative; flex: none; }
.photo-strip img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--glass-border); }
.photo-strip .shot-del {
  position: absolute; top: -6px; right: -6px; width: 26px; height: 26px;
  border-radius: 50%; border: none; background: var(--red); color: #2a0505; font-weight: 800; cursor: pointer;
}

.price-keep { background: var(--green-bg); color: var(--green); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-weight: 700; margin-top: var(--sp-2); }

.option-values { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.option-values .val-chip { min-height: 40px; }

/* ---------- Orders ---------- */
.order-group-title { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-base); font-weight: 700; }
.order-group-title.amber { color: var(--amber); }
.order-group-title .count { color: var(--text-dim); font-weight: 600; }
.order-card .o-top { display: flex; justify-content: space-between; font-weight: 700; }
.order-card .o-sub { color: var(--text-dim); font-size: var(--fs-small); margin: 2px 0 var(--sp-2); }
.order-card .btn { margin: var(--sp-2) 0 0; }

.pack-item {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; text-align: start;
  padding: var(--sp-3); margin-bottom: var(--gap-tap);
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); cursor: pointer;
}
.pack-item .check { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--text-faint); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pack-item.checked { border-color: var(--green); }
.pack-item.checked .check { background: var(--green); border-color: var(--green); color: #04170e; }

.address-block {
  white-space: pre-line; background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: var(--sp-4); font-size: 18px; line-height: 1.6; margin-bottom: var(--sp-3);
}
.address-huge { font-size: 28px; font-weight: 700; line-height: 1.5; }

/* ---------- Money ---------- */
.money-summary .row { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-2) 0; }
.money-summary .row + .row,
.money-summary p + .row { border-top: 1px solid var(--glass-border); }
.money-summary .amount { font-size: var(--fs-big-number); font-weight: 800; font-variant-numeric: tabular-nums; }
.money-profit-green .amount { color: var(--green); }
.money-profit-red .amount { color: var(--red); }
.payout-card .amount { font-size: var(--fs-big-number); font-weight: 800; }

.period-picker { margin-bottom: var(--sp-3); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.video-card { margin: 0; padding: 0; overflow: hidden; }
.video-card .v-thumb {
  position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 240px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-strong); overflow: hidden;
}
.video-card .v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .v-thumb-emoji { font-size: 44px; }
.v-chip { position: absolute; top: 8px; left: 8px; }
.video-card .v-body { padding: var(--sp-3); }
.video-card .v-name { font-weight: 700; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-metrics { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* Make-a-video wizard: product picker */
.pick-card.selected { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Making-it screen */
.video-making { text-align: center; padding-top: 8vh; }
.video-making .empty-icon { font-size: 56px; margin-bottom: var(--sp-3); }
.video-making .btn { margin-top: var(--sp-5); }
.progress-track {
  height: 12px; border-radius: var(--radius-pill); overflow: hidden;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  margin: var(--sp-4) auto 0; max-width: 320px;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); transition: width 0.6s ease; }
.progress-pct { font-size: var(--fs-big-number); font-weight: 800; font-variant-numeric: tabular-nums; margin: var(--sp-2) 0 var(--sp-4); }

/* Ready screen */
.video-player-wrap {
  position: relative; margin: 0 auto var(--sp-3); width: min(100%, 56vh * 9 / 16);
  aspect-ratio: 9 / 16; max-height: 56vh;
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--glass-border);
}
.video-player-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.caption-input { min-height: 72px; }
.hashtags { color: var(--accent); font-size: var(--fs-small); font-weight: 600; margin-top: var(--sp-2); }
.tip-card ol { padding-inline-start: 22px; margin: 0; }
.tip-card li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--glass-border); }
.tip-card li:last-child { border-bottom: none; }

/* ---------- Profile ---------- */
.profile-row { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap-min); }
.lang-row { display: flex; gap: var(--sp-2); }
.lang-row .chip { flex: 1; justify-content: center; display: flex; align-items: center; }

/* ---------- Setup wizard done ---------- */
.setup-done { text-align: center; padding-top: 8vh; }
.setup-done .empty-icon { font-size: 56px; }
.setup-checklist { text-align: start; margin: var(--sp-4) auto; max-width: 320px; }
.setup-checklist li { list-style: none; padding: var(--sp-1) 0; }
.setup-checklist { padding-inline-start: 0; }
