:root {
  --bg: #090909;
  --panel: #171717;
  --panel2: #202124;
  --line: rgba(255,255,255,.09);
  --text: #f8fafc;
  --muted: #969ba6;
  --brand: #6366f1;
  --pink: #ec4899;
  --green: #10b981;
  --amber: #f59e0b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(99,102,241,.25), transparent 32%), var(--bg);
}
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.app {
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.hello { color: var(--muted); margin: 0 0 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1; margin-bottom: 6px; }
h2 { font-size: 22px; margin-bottom: 10px; }
.credits {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid rgba(99,102,241,.45);
  border-radius: 18px;
  background: rgba(99,102,241,.14);
  text-align: center;
}
.credits strong { display: block; font-size: 22px; }
.credits span { color: #c7d2fe; font-size: 12px; }
.hero, .card, .sheet, .empty {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.26);
}
.hero { padding: 20px; margin-bottom: 16px; }
.hero p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.quick {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
}
.quick b { display: block; font-size: 18px; }
.quick span { opacity: .82; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { padding: 16px; color: white; text-align: left; }
.card small, .muted { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(99,102,241,.16);
  color: #a5b4fc;
  margin-bottom: 12px;
  font-weight: 800;
}
.section { margin-top: 20px; }
.steps { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.steps li { display: flex; gap: 12px; color: var(--muted); }
.steps b {
  flex: 0 0 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: white;
}
.tabs {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 22px), 500px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(20,20,20,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 20;
}
.tabs button,
.tabs a {
  padding: 9px 4px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  display: grid;
  gap: 2px;
  place-items: center;
  text-decoration: none;
}
.tabs button b,
.tabs a b { font-size: 21px; line-height: 1; }
.tabs button.active,
.tabs a.active { background: rgba(99,102,241,.18); color: white; }
.searchbar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.promo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(236,72,153,.38), transparent 20%),
    linear-gradient(135deg, #111827 0%, #312e81 48%, #be185d 100%);
}
.promo:after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 150px;
  height: 210px;
  border-radius: 80px 80px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.08));
  transform: rotate(10deg);
}
.promo small {
  color: #fce7f3;
  letter-spacing: .08em;
  font-weight: 800;
}
.pill-button {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: white;
  color: #be185d;
  font-weight: 800;
}
.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.category-strip button,
.category-strip a {
  min-height: 74px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.18), transparent 35%),
    var(--panel);
  border: 1px solid var(--line);
  color: white;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title h2 { margin-bottom: 0; }
.section-title span { color: var(--amber); font-weight: 800; }
.section-title button {
  background: transparent;
  color: #f472b6;
  font-weight: 800;
}
.deal-row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
}
.deal-card {
  min-width: 132px;
  border-radius: 18px;
  background: white;
  color: #1f2937;
  text-align: left;
  padding: 10px;
}
.deal-card span {
  display: block;
  color: #6b7280;
  font-size: 12px;
}
.deal-card strong {
  display: block;
  margin-top: 6px;
  color: #db2777;
}
.product-art {
  height: 86px;
  border-radius: 14px;
  margin-bottom: 9px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35) 0 20%, transparent 20% 80%, rgba(255,255,255,.35) 80%),
    linear-gradient(135deg, #f9a8d4, #6366f1);
}
.product-art.starter { background: linear-gradient(135deg, #fef3c7, #f59e0b); }
.product-art.seller { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.product-art.pro { background: linear-gradient(135deg, #bfdbfe, #2563eb); }
.product-art.agency { background: linear-gradient(135deg, #bbf7d0, #059669); }
.discover-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
}
.discover-card p { color: var(--muted); margin-bottom: 0; }
.sparkle-model {
  height: 150px;
  border-radius: 999px 999px 34px 34px;
  background: linear-gradient(180deg, var(--a), var(--b));
  position: relative;
}
.sparkle-model:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.55);
}
.toolbar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.chip {
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}
.chip.active { background: var(--brand); color: white; }
.primary, .secondary, .danger {
  width: 100%;
  min-height: 52px;
  border-radius: 17px;
  color: white;
  margin-top: 12px;
}
.primary { background: linear-gradient(135deg, var(--brand), #7c3aed); }
.secondary { background: var(--panel2); border: 1px solid var(--line); }
.danger { background: rgba(239,68,68,.16); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.primary:disabled { opacity: .45; }
.upload {
  border: 1px dashed rgba(99,102,241,.5);
  background: rgba(99,102,241,.08);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
}
.preview, .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111;
  border-radius: 18px;
}
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item { position: relative; overflow: hidden; }
.item img { border-radius: 18px 18px 8px 8px; }
.item footer { padding: 10px 2px 0; }
.x {
  position: absolute; right: 9px; top: 9px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: white;
}
.field { display: grid; gap: 7px; margin: 12px 0; }
.field label { color: var(--muted); font-size: 13px; }
.field input, .field select {
  width: 100%;
  background: var(--panel2);
  color: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.model {
  min-height: 168px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
}
.model:before {
  content: "";
  position: absolute; inset: 12px 24px 56px;
  border-radius: 999px 999px 35px 35px;
  background: linear-gradient(180deg, var(--a), var(--b));
  opacity: .95;
}
.model b, .model small { position: relative; z-index: 1; }
.model.active { outline: 2px solid var(--brand); }
.violet { --a:#a78bfa; --b:#4c1d95; }
.rose { --a:#f9a8d4; --b:#9d174d; }
.blue { --a:#93c5fd; --b:#1d4ed8; }
.green { --a:#86efac; --b:#047857; }
.amber { --a:#fde68a; --b:#b45309; }
.cyan { --a:#67e8f9; --b:#0e7490; }
.packages { display: grid; gap: 12px; }
.package { position: relative; }
.package.featured { border-color: rgba(236,72,153,.65); }
.price { font-size: 28px; font-weight: 800; }
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  width: min(calc(100% - 28px), 420px);
  background: #111827; color: white; border-radius: 16px;
  padding: 14px; text-align: center; z-index: 40;
}
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.68);
  display: grid; align-items: end; padding: 16px; z-index: 30;
}
.sheet { padding: 18px; width: min(100%, 500px); margin: 0 auto; }
.camera-modal { align-items: center; }
.camera-sheet { display: grid; gap: 14px; }
.camera-video {
  width: 100%;
  max-height: 62vh;
  border-radius: 20px;
  background: #050505;
  object-fit: cover;
}
.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hidden { display: none !important; }
@media (min-width: 760px) {
  .app { padding-top: 30px; }
  .grid, .items { grid-template-columns: repeat(3, 1fr); }
}
