:root {
  --cream: #fcedd8;
  --yellow: #ffd464;
  --coral: #ff5e5e;
  --pink: #e23c64;
  --maroon: #b0183d;
  --ink: #401622;
  --muted: #8d6871;
  --surface: #fffaf4;
  --white: #ffffff;
  --green: #2e9b72;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Manrope", sans-serif;
  --utility: "IBM Plex Mono", monospace;
  --line: rgba(176, 24, 61, 0.12);
  --shadow: 0 18px 45px rgba(91, 18, 39, 0.14);
  --soft-shadow: 0 8px 24px rgba(91, 18, 39, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 212, 100, 0.85), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(226, 60, 100, 0.48), transparent 34%),
    linear-gradient(135deg, #fff8ed 0%, #ffd7bd 45%, #ff8f86 100%);
  font-family: var(--body);
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.prototype-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 430px;
  align-items: center;
  justify-content: center;
  gap: 64px;
  min-height: 100vh;
  padding: 40px;
}

.prototype-notes {
  max-width: 370px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-notes h1 {
  margin: 18px 0 8px;
  font: 800 48px/0.95 var(--display);
  letter-spacing: -0.045em;
}

.prototype-notes > p {
  max-width: 340px;
  margin: 0;
  color: #653744;
  line-height: 1.65;
}

.palette {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}

.palette span {
  width: 46px;
  height: 46px;
  background: var(--swatch);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.flow-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.flow-card strong {
  margin-bottom: 4px;
  font-family: var(--display);
}

.flow-card button {
  padding: 11px 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(176, 24, 61, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.flow-card button:hover {
  color: var(--maroon);
  background: var(--white);
  transform: translateX(4px);
}

.prototype-notes .hint {
  margin-top: 16px;
  font-size: 12px;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  padding: 10px;
  overflow: hidden;
  background: #1e0a10;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 49px;
  box-shadow:
    0 35px 85px rgba(68, 8, 25, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-speaker {
  position: absolute;
  z-index: 30;
  top: 18px;
  left: 50%;
  width: 112px;
  height: 27px;
  background: #1e0a10;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border-radius: 39px;
}

.screen {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 48px 20px 96px;
  animation: screen-in 0.28s ease;
  scrollbar-width: none;
}

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

@keyframes screen-in {
  from {
    opacity: 0.78;
    transform: translateY(8px);
  }
}

.screen.flush {
  padding-inline: 0;
  padding-top: 0;
}

.screen.gradient {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 212, 100, 0.85), transparent 28%),
    linear-gradient(150deg, var(--coral), var(--pink) 58%, var(--maroon));
}

.statusbar {
  position: absolute;
  z-index: 20;
  top: 16px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.statusbar.light {
  color: var(--white);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons i {
  display: block;
  width: 14px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.status-icons i::after {
  display: block;
  width: 70%;
  height: 100%;
  background: currentColor;
  content: "";
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 18px;
}

.topbar h2 {
  margin: 0;
  font: 700 18px/1.25 var(--display);
}

.topbar-title {
  flex: 1;
  text-align: center;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(91, 18, 39, 0.05);
  cursor: pointer;
}

.icon-btn.transparent {
  color: inherit;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 750 20px/1 var(--display);
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(226, 60, 100, 0.28);
  background: url(logo.png) center / 160% no-repeat;
  flex-shrink: 0;
}

.hero-brand {
  display: grid;
  align-content: center;
  min-height: 470px;
  text-align: center;
}

.hero-brand .brand-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 27px;
  box-shadow: 0 18px 35px rgba(100, 10, 36, 0.3);
}

.hero-brand h1 {
  margin: 0 0 12px;
  font: 800 38px/0.95 var(--display);
  letter-spacing: -0.055em;
}

.hero-brand p {
  max-width: 290px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.onboarding-card {
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.96);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.onboarding-card h2 {
  margin: 0 0 8px;
  font: 750 23px/1.15 var(--display);
}

.onboarding-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--pink));
  border: 0;
  border-radius: 16px;
  box-shadow: 0 9px 20px rgba(226, 60, 100, 0.24);
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.full {
  width: 100%;
}

.btn.secondary {
  color: var(--maroon);
  background: var(--cream);
  box-shadow: none;
}

.btn.outline {
  color: var(--pink);
  background: transparent;
  border: 1.5px solid var(--pink);
  box-shadow: none;
}

.btn.dark {
  background: var(--maroon);
}

.btn.small {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stack {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row.between {
  justify-content: space-between;
}

.grow {
  flex: 1;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.input-shell {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
}

.field textarea {
  min-height: 100px;
  padding-block: 13px;
  resize: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 94, 94, 0.11);
}

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

.section-title h3 {
  margin: 0;
  font: 700 17px/1.2 var(--display);
}

.section-title button {
  padding: 0;
  color: var(--pink);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.home-header {
  margin: -48px -20px 0;
  padding: 52px 20px 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 212, 100, 0.9), transparent 34%),
    linear-gradient(145deg, var(--coral), var(--pink));
  border-radius: 0 0 30px 30px;
}

.home-header .brand {
  color: var(--white);
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.location strong {
  color: var(--white);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--white);
  border-radius: 17px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.searchbar span {
  flex: 1;
  font-size: 13px;
}

.filter-btn {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--maroon);
  border: 0;
  border-radius: 11px;
  place-items: center;
  cursor: pointer;
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 124px;
  min-height: 154px;
  margin-top: 18px;
  padding: 20px;
  overflow: hidden;
  background: #ffe093;
  border: 1px solid rgba(176, 24, 61, 0.12);
  border-radius: 22px;
}

.promo-card h2 {
  z-index: 1;
  margin: 0 0 7px;
  font: 800 20px/1.08 var(--display);
  letter-spacing: -0.025em;
}

.promo-card p {
  z-index: 1;
  margin: 0;
  color: #76501c;
  font-size: 12px;
  line-height: 1.4;
}

.promo-copy {
  z-index: 3;
  align-self: center;
}

.radius-ticket {
  position: relative;
  z-index: 2;
  display: grid;
  width: 114px;
  height: 114px;
  align-self: center;
  justify-self: end;
  color: var(--white);
  background: var(--pink);
  border: 2px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  place-items: center;
  box-shadow:
    0 0 0 9px rgba(226, 60, 100, 0.13),
    0 10px 25px rgba(176, 24, 61, 0.2);
}

.radius-ticket::before,
.radius-ticket::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
}

.radius-ticket::before {
  width: 78px;
  height: 78px;
}

.radius-ticket::after {
  width: 42px;
  height: 42px;
}

.radius-ticket-copy {
  z-index: 2;
  display: grid;
  text-align: center;
}

.radius-ticket strong {
  font: 800 23px/1 var(--display);
}

.radius-ticket small {
  margin-top: 4px;
  font: 600 8px/1.2 var(--utility);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radius-ticket .radar-dot {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 27px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 212, 100, 0.25);
}

.local-stamp {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 7px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  font: 600 8px/1 var(--utility);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.category-icon {
  display: grid;
  width: 54px;
  height: 54px;
  color: var(--maroon);
  background: var(--cream);
  border-radius: 17px;
  place-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(91, 18, 39, 0.05);
  cursor: pointer;
}

.product-image {
  position: relative;
  display: grid;
  height: 138px;
  overflow: hidden;
  color: rgba(64, 22, 34, 0.78);
  background: var(--image-bg, linear-gradient(145deg, #ffd8c4, #ff9c97));
  place-items: center;
}

.product-image > svg {
  width: 74px;
  height: 74px;
  opacity: 0.8;
  stroke-width: 1.3;
}

.distance-chip,
.condition-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font: 600 8px/1 var(--utility);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.distance-chip {
  bottom: 8px;
  left: 8px;
}

.condition-chip {
  top: 8px;
  left: 8px;
  color: var(--maroon);
}

.heart-btn {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.product-info {
  padding: 11px;
}

.product-info h4 {
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: var(--maroon);
  font: 600 14px/1.2 var(--utility);
  letter-spacing: -0.04em;
}

.seller-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--maroon);
  background: linear-gradient(145deg, var(--yellow), var(--coral));
  border: 3px solid var(--white);
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(91, 18, 39, 0.12);
}

.avatar.sm {
  width: 25px;
  height: 25px;
  border-width: 2px;
  font-size: 9px;
}

.bottom-nav {
  flex-shrink: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 72px;
  margin: 0 10px 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: 0 -8px 24px rgba(91, 18, 39, 0.08);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 0;
  color: #aa8d94;
  background: transparent;
  border: 0;
  font-size: 9px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--pink);
  font-weight: 700;
}

.nav-sell {
  position: relative;
  top: -23px;
}

.nav-sell span:first-child {
  display: grid;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--pink));
  border: 5px solid var(--surface);
  border-radius: 18px;
  box-shadow: 0 9px 18px rgba(226, 60, 100, 0.28);
  place-items: center;
}

.filter-sheet {
  position: absolute;
  z-index: 40;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 24px 20px 22px;
  background: var(--white);
  border-radius: 28px 28px 38px 38px;
  box-shadow: 0 -18px 50px rgba(64, 22, 34, 0.22);
  animation: sheet-up 0.25s ease;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: -10px auto 20px;
  background: #e7d9da;
  border-radius: 999px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

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

.range {
  width: 100%;
  accent-color: var(--pink);
}

.map {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(32deg, transparent 48%, rgba(255,255,255,.85) 49%, rgba(255,255,255,.85) 53%, transparent 54%),
    linear-gradient(138deg, transparent 40%, rgba(255,255,255,.8) 41%, rgba(255,255,255,.8) 45%, transparent 46%),
    linear-gradient(18deg, #d6edcf, #e8f2d9 54%, #c7e2d1);
  border: 1px solid rgba(46, 155, 114, 0.16);
  border-radius: 20px;
}

.map::before,
.map::after {
  position: absolute;
  background: rgba(116, 190, 220, 0.45);
  content: "";
}

.map::before {
  top: 12%;
  left: 28%;
  width: 18px;
  height: 100%;
  transform: rotate(24deg);
}

.map::after {
  top: 43%;
  left: -10%;
  width: 120%;
  height: 12px;
  transform: rotate(-8deg);
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--pink);
  border: 4px solid var(--white);
  border-radius: 50% 50% 50% 10%;
  box-shadow: var(--soft-shadow);
  place-items: center;
  transform: rotate(-45deg);
}

.map-pin svg {
  width: 17px;
  transform: rotate(45deg);
}

.map-pin.main {
  top: 52px;
  left: 156px;
}

.map-pin.secondary {
  top: 105px;
  left: 72px;
  width: 30px;
  height: 30px;
  background: var(--coral);
}

.radius-ring {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 106px;
  width: 140px;
  height: 140px;
  background: rgba(226, 60, 100, 0.12);
  border: 2px solid rgba(226, 60, 100, 0.34);
  border-radius: 50%;
}

.map-label {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

.product-hero {
  position: relative;
  display: grid;
  min-height: 355px;
  color: rgba(64, 22, 34, 0.75);
  background: linear-gradient(145deg, #ffd8c4, #ff9c97);
  place-items: center;
}

.product-hero > svg {
  width: 180px;
  height: 180px;
  stroke-width: 1;
}

.product-hero .top-actions {
  position: absolute;
  z-index: 3;
  top: 50px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
}

.image-dots {
  position: absolute;
  bottom: 18px;
  display: flex;
  gap: 5px;
}

.image-dots i {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.image-dots i.active {
  width: 18px;
  background: var(--white);
  border-radius: 999px;
}

.detail-body {
  position: relative;
  z-index: 4;
  margin-top: -18px;
  padding: 24px 20px 116px;
  background: var(--surface);
  border-radius: 25px 25px 0 0;
}

.detail-body h1 {
  margin: 8px 0;
  font: 750 23px/1.15 var(--display);
}

.meta {
  color: var(--muted);
  font-size: 11px;
}

.seller-card,
.info-card,
.order-card,
.wallet-card {
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(91, 18, 39, 0.04);
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 19px 0;
}

.seller-card h4,
.order-card h4 {
  margin: 0 0 3px;
}

.rating {
  color: #e4a700;
  font-size: 11px;
}

.detail-text {
  color: #68444d;
  font-size: 13px;
  line-height: 1.6;
}

.sticky-action {
  flex-shrink: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  margin: 0 10px 10px;
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: 0 -8px 24px rgba(91, 18, 39, 0.08);
  backdrop-filter: blur(16px);
}

.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-bottom: 14px;
}

.chat-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 15px;
}

.thumb {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  color: var(--maroon);
  background: linear-gradient(145deg, #ffd8c4, #ff9c97);
  border-radius: 13px;
  place-items: center;
}

.quick-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-actions .chip {
  flex: 0 0 auto;
  color: var(--maroon);
  background: var(--cream);
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 8px 0;
  overflow-y: auto;
}

.message {
  max-width: 77%;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.message.them {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px 15px 15px 15px;
}

.message.me {
  align-self: flex-end;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--pink));
  border-radius: 15px 5px 15px 15px;
}

.message small {
  display: block;
  margin-top: 4px;
  text-align: right;
  opacity: 0.67;
  font-size: 8px;
}

.chat-input {
  display: grid;
  grid-template-columns: 40px 1fr 42px;
  gap: 8px;
  padding-top: 10px;
}

.chat-input input {
  min-width: 0;
  padding: 0 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.stepper {
  display: flex;
  align-items: center;
  margin: 4px 0 24px;
}

.step {
  position: relative;
  display: grid;
  flex: 1;
  gap: 6px;
  justify-items: center;
  color: #b99da4;
  font-size: 8px;
}

.step:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 12px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: #ebdddf;
  content: "";
}

.step-dot {
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  background: #f0e5e6;
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.step.active {
  color: var(--pink);
  font-weight: 700;
}

.step.active .step-dot,
.step.done .step-dot {
  color: var(--white);
  background: var(--pink);
}

.step.done:not(:last-child)::after {
  background: var(--pink);
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
}

.option-card.selected {
  background: #fff7f4;
  border-color: var(--coral);
}

.option-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.radio {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #dac8cc;
  border-radius: 50%;
  place-items: center;
}

.selected .radio {
  border-color: var(--pink);
}

.selected .radio::after {
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  content: "";
}

.summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--cream);
  border-radius: 18px;
  font-size: 12px;
}

.summary > div {
  display: flex;
  justify-content: space-between;
}

.summary .total {
  padding-top: 10px;
  border-top: 1px dashed rgba(176, 24, 61, 0.22);
  color: var(--maroon);
  font-weight: 800;
}

.payment-qr {
  display: grid;
  justify-items: center;
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.qr {
  display: grid;
  grid-template-columns: repeat(7, 10px);
  gap: 3px;
  padding: 13px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.qr i {
  width: 10px;
  height: 10px;
  background: var(--ink);
  opacity: var(--o, 1);
}

.success-mark {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 28px auto 22px;
  color: var(--white);
  background: linear-gradient(145deg, var(--coral), var(--pink));
  border: 9px solid rgba(255, 94, 94, 0.15);
  border-radius: 50%;
  box-shadow: 0 16px 35px rgba(226, 60, 100, 0.2);
  place-items: center;
}

.center {
  text-align: center;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  min-height: 72px;
}

.timeline-item::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: #eadde0;
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  color: #b99da4;
  background: #f0e5e6;
  border-radius: 50%;
  place-items: center;
}

.timeline-item.done .timeline-dot {
  color: var(--white);
  background: var(--pink);
}

.timeline-item h4 {
  margin: 2px 0 3px;
  font-size: 12px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.star {
  padding: 0;
  color: #e2d4b0;
  background: transparent;
  border: 0;
  font-size: 34px;
  cursor: pointer;
}

.star.active {
  color: #f1b900;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.upload-slot {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  color: var(--muted);
  background: var(--white);
  border: 1.5px dashed #d7bdc3;
  border-radius: 16px;
  place-items: center;
  cursor: pointer;
}

.upload-slot.filled {
  color: var(--maroon);
  background: linear-gradient(145deg, #ffd8c4, #ff9c97);
  border-style: solid;
}

.upload-slot small {
  position: absolute;
  bottom: 7px;
  font-size: 8px;
}

.commission-card {
  padding: 17px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--maroon));
  border-radius: 19px;
}

.commission-card small {
  color: rgba(255, 255, 255, 0.72);
}

.commission-card strong {
  display: block;
  margin-top: 5px;
  font: 700 21px/1.2 var(--utility);
}

.dashboard-hero {
  margin: -48px -20px 20px;
  padding: 54px 20px 23px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 212, 100, 0.85), transparent 27%),
    linear-gradient(145deg, var(--pink), var(--maroon));
  border-radius: 0 0 30px 30px;
}

.dashboard-hero h1 {
  margin: 18px 0 4px;
  font: 750 25px/1.1 var(--display);
}

.dashboard-hero p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 12px;
}

.dashboard-hero .icon-btn {
  color: var(--maroon);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.stat {
  padding: 12px 8px;
  text-align: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font: 700 16px/1.2 var(--utility);
}

.stat span {
  color: rgba(255,255,255,.7);
  font-size: 8px;
}

.chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 130px;
  padding: 17px 14px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.bar-wrap {
  display: grid;
  gap: 5px;
  justify-items: center;
  height: 100%;
  align-content: end;
  color: var(--muted);
  font-size: 8px;
}

.bar {
  display: block;
  width: 20px;
  height: var(--h);
  background: linear-gradient(to top, var(--pink), var(--coral));
  border-radius: 7px 7px 3px 3px;
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--maroon);
  background: var(--cream);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.wallet-balance {
  position: relative;
  min-height: 180px;
  padding: 22px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--coral), var(--pink) 55%, var(--maroon));
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.wallet-balance::before {
  position: absolute;
  top: -80px;
  right: -55px;
  width: 190px;
  height: 190px;
  background: rgba(255, 212, 100, 0.35);
  border-radius: 50%;
  content: "";
}

.wallet-balance h2 {
  margin: 10px 0 3px;
  font: 700 28px/1.2 var(--utility);
}

.wallet-balance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.wallet-actions {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  gap: 10px;
}

.wallet-actions button {
  flex: 1;
  min-height: 40px;
  color: var(--maroon);
  background: rgba(255,255,255,.9);
  border: 0;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.transaction {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.transaction:last-child {
  border-bottom: 0;
}

.transaction-icon {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--pink);
  background: var(--cream);
  border-radius: 13px;
  place-items: center;
}

.transaction strong {
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
}

.transaction strong.out {
  color: var(--pink);
}

.modal-backdrop {
  position: absolute;
  z-index: 35;
  inset: 10px;
  display: grid;
  padding: 20px;
  background: rgba(40, 9, 18, 0.48);
  border-radius: 39px;
  place-items: center;
  backdrop-filter: blur(4px);
}

.modal {
  width: 100%;
  padding: 22px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

.modal h3 {
  margin: 0 0 8px;
  font: 700 18px/1.3 var(--display);
}

.modal p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: absolute;
  z-index: 60;
  right: 28px;
  bottom: 90px;
  left: 28px;
  padding: 12px 14px;
  color: var(--white);
  text-align: center;
  background: var(--ink);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.spacer-8 { height: 8px; }
.spacer-12 { height: 12px; }
.spacer-18 { height: 18px; }
.muted { color: var(--muted); }
.tiny { font-size: 10px; }
.text-button {
  padding: 0;
  color: var(--pink);
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .prototype-shell {
    display: block;
    padding: 18px 0;
  }

  .prototype-notes {
    width: min(390px, calc(100% - 36px));
    margin: 0 auto 25px;
  }

  .prototype-notes h1 {
    font-size: 38px;
  }

  .flow-card,
  .prototype-notes .hint {
    display: none;
  }
}

@media (max-width: 430px) {
  body {
    background: var(--surface);
  }

  .prototype-shell {
    padding: 0;
  }

  .prototype-notes {
    display: none;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .phone-speaker {
    display: none;
  }

  .app,
  .modal-backdrop {
    border-radius: 0;
  }

  .bottom-nav,
  .sticky-action {
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
  }
}

.login-header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.login-header .brand-mark {
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 18px;
}

.login-header h1 {
  margin: 0 0 8px;
  font: 750 24px/1.15 var(--display);
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #f5ebec;
  border-radius: 14px;
  margin-bottom: 24px;
}

.login-tab {
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.login-tab.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(91, 18, 39, 0.1);
}

.login-form {
  display: grid;
  gap: 14px;
}

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