:root {
  --bg: #07090c;
  --panel: #101318;
  --panel-2: #171b20;
  --card: #1d2024;
  --card-2: #24282d;
  --line: #2c3035;
  --text: #f6f7f8;
  --muted: #92989f;
  --green: #38b54a;
  --green-dark: #0f3420;
  --green-soft: #173f26;
  --red: #ed292d;
  --navy: #132746;
  --amber: #f1b943;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 16%, rgba(56,181,74,.08), transparent 26%),
    radial-gradient(circle at 16% 82%, rgba(237,41,45,.07), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button { color: inherit; }

.studio {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(420px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 36px 0;
}
.brief-panel { max-width: 430px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 12px 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.intro { margin: 0 0 26px; color: #a6abb1; font-size: 16px; line-height: 1.65; }
.phase-card { border: 1px solid var(--line); background: rgba(23,27,32,.78); border-radius: 20px; padding: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.phase-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.phase-badge { display: inline-flex; padding: 6px 9px; border-radius: 7px; font-size: 11px; letter-spacing: .1em; }
.phase-badge.seller { color: #bdf5c6; background: #173f26; }
.phase-badge.buyer { color: #ffd2d3; background: #45191b; }
.phase-card h2 { margin: 16px 0 7px; font-size: 24px; letter-spacing: -.02em; }
.phase-card p { margin: 0; color: #9ba1a8; line-height: 1.5; min-height: 48px; }
.timeline { display: flex; gap: 6px; margin-top: 22px; }
.timeline button { flex: 1; height: 5px; padding: 0; border: 0; border-radius: 5px; background: #2c3035; transition: background .25s ease, transform .15s ease; cursor: pointer; }
.timeline button:hover { transform: scaleY(1.6); background: #3a4046; }
.timeline button.active { background: var(--green); box-shadow: 0 0 14px rgba(56,181,74,.5); }
.timeline button.done { background: #206c2d; }
.hint { color: #747a82; font-size: 12px; line-height: 1.5; }
code { color: #b6bbc0; }

.phone-stage { display: grid; justify-items: center; align-items: center; }
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border: 9px solid #25282d;
  border-radius: 54px;
  background: #0d0f11;
  box-shadow: 0 42px 100px rgba(0,0,0,.62), inset 0 0 0 1px #4b4f55;
}
.phone-island { position: absolute; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%); width: 116px; height: 30px; border-radius: 18px; background: #000; }
.status-bar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 52px; padding: 17px 24px 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 760; background: #151719; }
.status-icons { letter-spacing: -.04em; }
.app { position: absolute; inset: 52px 0 0; overflow: hidden; background: #111315; }
.app button, .app input, .app textarea, .app .select, .app .menu-row { pointer-events: auto; cursor: pointer; }
.screen { height: 100%; display: flex; flex-direction: column; animation: screenIn .25s ease both; }
@keyframes screenIn { from { opacity: .35; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.screen-head { flex: 0 0 auto; min-height: 82px; padding: 14px 18px 12px; border-bottom: 1px solid #292c30; background: #17191b; display: flex; align-items: center; gap: 12px; }
.back { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #292c30; font-size: 24px; cursor: pointer; }
.head-copy { min-width: 0; }
.head-title { font-size: 20px; font-weight: 820; letter-spacing: -.02em; }
.head-sub { margin-top: 3px; color: #8d939a; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.head-logo { margin-left: auto; width: 86px; max-height: 38px; object-fit: contain; }
.content { flex: 1; overflow: hidden; padding: 16px; }
.scrollable { overflow-y: auto; scrollbar-width: none; }
.scrollable::-webkit-scrollbar { display: none; }
.section-kicker { margin: 2px 0 10px; color: #8b9299; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.list { display: grid; gap: 9px; }
.menu-row { width: 100%; min-height: 66px; padding: 12px 13px; display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid #2d3135; border-radius: 14px; background: var(--card); cursor: pointer; }
.menu-row:hover { background: #25292e; }
.menu-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; color: #6ee67d; background: #173822; font-size: 19px; }
.menu-row > span:not(.menu-icon):not(.chev) { flex: 1; min-width: 0; }
.menu-main { display: block; font-size: 14px; font-weight: 760; line-height: 1.25; }
.menu-sub { display: block; margin-top: 3px; color: #8f959b; font-size: 11px; line-height: 1.3; }
.chev { margin-left: auto; color: #8a9096; font-size: 20px; }
.nav { flex: 0 0 78px; padding: 6px 2px 12px; border-top: 1px solid #2A2A2A; background: #1C1C1C; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; }
.nav-item { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 4px; color: #9AA0A6; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; line-height: 1; }
.nav-icon svg { width: 24px; height: 24px; display: block; }
.nav-item.active { color: #fff; }
.sell-nav { width: 58px; height: 58px; margin-top: -10px; border-radius: 50%; display: grid; place-items: center; background: #E53935; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px; box-shadow: 0 3px 4px rgba(0,0,0,.28); }
.badge { position: absolute; top: -2px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 12px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: #EF4444; font-size: 10px; font-weight: 700; line-height: 1; }

.hero-stat { padding: 16px; border: 1px solid #23562d; border-radius: 16px; background: linear-gradient(135deg,#173f26,#12331e); }
.welcome { color: #b5b9bd; font-size: 12px; }
.verified { display: inline-flex; margin-left: 6px; padding: 3px 7px; border-radius: 8px; color: #d1ffd7; background: #2d8e3b; font-size: 9px; font-weight: 800; }
.revenue { margin: 9px 0 2px; font-size: 31px; font-weight: 850; letter-spacing: -.04em; }
.stat-foot { display: flex; justify-content: space-between; color: #79d986; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.metric { padding: 14px; border: 1px solid #2c3034; border-radius: 15px; background: #202328; }
.metric strong { display: block; margin: 10px 0 4px; font-size: 24px; }
.metric span { color: #92989e; font-size: 10px; }
.metric-icon { color: #63db73; font-size: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; margin: 0 0 7px; color: #a7acb1; font-size: 12px; font-weight: 680; }
.input, .textarea, .select { width: 100%; min-height: 46px; border: 1px solid #33373d; border-radius: 12px; background: #1d2024; color: white; padding: 12px 13px; outline: none; }
.textarea { min-height: 76px; resize: none; line-height: 1.4; }
.photo-drop { height: 120px; border: 1px dashed #465048; border-radius: 14px; background: #171b19; display: grid; place-items: center; text-align: center; color: #a4aba5; font-size: 12px; }
.photo-drop strong { display: block; color: #70d67e; margin-bottom: 5px; }
.cta { width: 100%; min-height: 49px; border: 0; border-radius: 14px; background: var(--green); color: #071109; font-weight: 850; cursor: pointer; }
.cta.secondary-green { color: #8ff09b; border: 1px solid #347d3f; background: transparent; }

.product-photo { height: 222px; margin: -16px -16px 0; position: relative; overflow: hidden; background: #e9ede7; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-chip { position: absolute; bottom: 12px; left: 15px; padding: 7px 10px; border-radius: 9px; background: var(--green); color: white; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.product-card { position: relative; margin: -4px -4px 0; padding: 18px; border-radius: 18px 18px 0 0; background: #202326; }
.product-title { font-size: 24px; line-height: 1.08; font-weight: 850; letter-spacing: -.03em; }
.price { margin-top: 12px; color: var(--green); font-size: 29px; font-weight: 900; }
.stock { color: #58cc68; font-size: 12px; font-weight: 800; }
.body-copy { color: #a9aeb3; font-size: 13px; line-height: 1.52; }
.buy-bar { display: grid; grid-template-columns: 1fr .8fr; gap: 10px; padding: 10px 16px 12px; border-top: 1px solid #2c3034; background: #17191b; }
.buy-bar button { min-height: 50px; border-radius: 15px; font-weight: 850; cursor: pointer; }
.buy { border: 0; color: #061108; background: var(--green); }
.offer { border: 1px solid #34813f; color: white; background: transparent; }

.order-card { padding: 14px; border: 1px solid #30343a; border-radius: 15px; background: #1c1f23; margin-bottom: 10px; }
.order-card.green { border-color: #235f33; background: #122b1b; }
.order-card h3 { margin: 0 0 8px; font-size: 15px; }
.order-card p { margin: 0; color: #a3a8ad; font-size: 12px; line-height: 1.45; }
.money-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #30343a; color: #acb1b6; font-size: 12px; }
.money-row strong { color: white; }
.money-row.total { font-size: 14px; border: 0; }
.escrow-status { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; color: #baf5c2; background: #153a22; font-size: 12px; font-weight: 750; }
.secure { display: flex; justify-content: center; gap: 7px; margin-top: 12px; color: #777f86; font-size: 10px; }

.message-thread { display: grid; gap: 10px; padding-bottom: 12px; }
.bubble { max-width: 82%; padding: 11px 13px; border-radius: 15px; font-size: 13px; line-height: 1.4; }
.bubble.them { justify-self: start; background: #25292d; border-bottom-left-radius: 4px; }
.bubble.me { justify-self: end; background: #226f30; border-bottom-right-radius: 4px; }
.bubble time { display: block; margin-top: 4px; opacity: .62; font-size: 9px; text-align: right; }
.composer { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid #292d31; background: #151719; }
.composer input { flex: 1; min-width: 0; border: 1px solid #32363b; border-radius: 20px; background: #22252a; color: white; padding: 10px 13px; }
.send { width: 42px; border: 0; border-radius: 50%; background: var(--green); color: #071009; font-weight: 900; cursor: pointer; }

.action-card { padding: 16px; border: 1px solid #215b3f; border-radius: 16px; background: #09271a; }
.action-status { display: inline-flex; padding: 5px 9px; border-radius: 10px; color: #8ef0b9; background: #0c4a31; font-size: 11px; font-weight: 850; }
.pickup-code { margin: 14px 0; display: flex; justify-content: space-between; align-items: center; padding: 13px; border: 1px solid #408e68; border-radius: 12px; font-weight: 900; letter-spacing: .18em; }
.pickup-code span { color: #84e7af; font-size: 10px; letter-spacing: .07em; }
.action-links { display: flex; flex-wrap: wrap; gap: 14px; color: #55d98c; font-size: 11px; font-weight: 800; }
.modal-layer { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.72); }
.modal { width: 100%; padding: 22px; border-radius: 22px; color: #151719; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal h3 { margin: 0 0 8px; font-size: 20px; }
.modal p { margin: 0 0 16px; color: #60666d; font-size: 13px; line-height: 1.45; }
.modal .input { color: #17191b; background: #f3f4f5; border-color: #d8dadd; font-size: 24px; letter-spacing: .24em; font-weight: 800; text-align: center; }
.modal .cta { margin-top: 12px; }
.success-mark { width: 74px; height: 74px; margin: 24px auto 18px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 38px; box-shadow: 0 0 0 12px rgba(56,181,74,.12); }
.success-copy { text-align: center; padding: 0 24px; }
.success-copy h2 { margin: 0 0 8px; font-size: 25px; }
.success-copy p { margin: 0; color: #9aa0a6; font-size: 13px; line-height: 1.5; }
.brand-end { margin-top: auto; padding: 22px; text-align: center; background: var(--navy); }
.brand-end img { width: 175px; }
.brand-end p { margin: 8px 0 0; font-size: 11px; }
.toast { position: absolute; z-index: 45; left: 18px; right: 18px; bottom: 86px; padding: 13px 15px; border: 1px solid #2d7540; border-radius: 13px; color: #d8ffdd; background: #14351e; box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 12px; font-weight: 720; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.tap-pulse { position: absolute; z-index: 60; left: 50%; bottom: 118px; width: 48px; height: 48px; margin-left: -24px; border: 3px solid rgba(255,255,255,.86); border-radius: 50%; background: rgba(255,255,255,.12); animation: tapPulse .7s ease-out both; pointer-events: none; }
.tap-pulse::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: rgba(255,255,255,.78); }
@keyframes tapPulse { 0% { opacity: 0; transform: scale(.45); } 28% { opacity: 1; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.35); } }
.push-banner { position: absolute; z-index: 80; top: 48px; left: 12px; right: 12px; min-height: 92px; padding: 12px; display: flex; gap: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 19px; background: rgba(38,40,44,.94); box-shadow: 0 14px 35px rgba(0,0,0,.48); backdrop-filter: blur(18px); animation: pushIn .4s cubic-bezier(.2,.8,.2,1) both; }
.push-banner.leaving { animation: pushOut .38s ease-in both; }
.push-icon { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--red); font-family: Georgia, serif; font-size: 22px; font-weight: 800; }
.push-copy { min-width: 0; }
.push-app { margin-bottom: 4px; color: #d9dcdf; font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.push-app span { float: right; margin-left: 14px; color: #90969d; font-weight: 500; letter-spacing: 0; }
.push-copy strong { display: block; font-size: 13px; line-height: 1.25; }
.push-copy p { margin: 3px 0 0; color: #c1c5ca; font-size: 11px; line-height: 1.35; }
@keyframes pushIn { from { opacity: 0; transform: translateY(-115%); } to { opacity: 1; transform: none; } }
@keyframes pushOut { to { opacity: 0; transform: translateY(-115%); } }
.stage-caption { margin-top: 18px; color: #858b92; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); }

body.capture { background: #000; overflow: hidden; }
body.capture .studio { width: 100%; display: grid; grid-template-columns: 1fr; padding: 0; }
body.capture .brief-panel, body.capture .stage-caption { display: none; }
body.capture .phone-stage { min-height: 100vh; }
body.capture .phone { border: 0; border-radius: 0; width: min(100vw, 474px); height: 100vh; box-shadow: none; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; justify-items: center; padding: 26px 0 50px; }
  .brief-panel { max-width: 560px; }
  .phone-stage { grid-row: 1; }
}
@media (max-width: 460px) {
  .studio { width: 100%; padding-top: 0; }
  .phone { width: 100vw; height: 100svh; border: 0; border-radius: 0; }
  .phone-stage { width: 100%; }
  .stage-caption { display: none; }
  .brief-panel { padding: 24px 18px 0; }
}
