:root {
  --bg: #07060F;
  --panel: #12101F;
  --panel-2: #1B1830;
  --line: #5A4F86;
  --text: #F6F4FF;
  --muted: #DAD5EA;
  --pink: #FF2E7E;
  --orange: #FF9A1F;
  --violet: #B69CFF;
  --gold: #FFC27A;
  --danger: #FF6FA3;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Chakra Petch', system-ui, sans-serif; font-size: 17px; line-height: 1.5; }
a { color: inherit; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
h1, h2, h3, .display { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; line-height: 0.95; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(56px, 8vw, 120px); }
h2 { font-size: clamp(40px, 5vw, 66px); }
h3 { font-size: 30px; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cut { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.section { padding: 56px 0; }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--panel-2); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 26px; }
.logo { width: 44px; height: 44px; display: grid; place-items: center; background: var(--pink); color: var(--bg); font-size: 22px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; font-weight: 600; color: var(--muted); }
.nav a { text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; background: var(--pink); color: var(--bg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn:hover { color: var(--bg); filter: brightness(1.15); }
.btn.dark { background: var(--panel-2); color: var(--text); }
.btn.dark:hover { color: var(--text); }
.btn.orange { background: var(--orange); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.hero { padding: 48px 0 40px; }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 640px; margin-top: 18px; }
.accent { color: var(--pink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 6px 12px; background: var(--panel-2); font-size: 15px; font-weight: 600; }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 30px; }
.choice { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 140px; padding: 20px; text-decoration: none; color: var(--bg); }
.choice:hover { color: var(--bg); transform: translateY(-4px); }
.choice .display { font-size: 50px; }
.choice.pink { background: var(--pink); }
.choice.orange { background: var(--orange); }
.choice.violet { background: var(--violet); }
@media (prefers-reduced-motion: no-preference) { .choice { transition: transform .18s ease; } }

.panel { background: var(--panel); padding: 24px; }
.panel.alt { background: var(--panel-2); }
.band { background: var(--violet); color: var(--bg); }
.band .muted { color: var(--bg); }

form.stack { gap: 14px; }
label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.hint { color: var(--muted); font-size: 14px; font-weight: 500; }
input[type=text], input[type=email], input[type=url], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); font: inherit; border-radius: 0;
}
textarea { min-height: 110px; resize: vertical; }
input[type=file] { color: var(--muted); font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pink); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .check { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }

.notice { padding: 14px 16px; font-weight: 600; }
.notice.ok { background: var(--violet); color: var(--bg); }
.notice.error { background: var(--danger); color: var(--bg); }
.notice.warn { background: var(--orange); color: var(--bg); }
.code { display: inline-block; padding: 14px 20px; background: var(--bg); color: var(--orange); font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 46px; letter-spacing: 0.06em; user-select: all; }

.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 720px; }
th { color: var(--gold); padding: 10px 8px; font-weight: 700; }
td { padding: 10px 8px; border-top: 1px solid #37305C; vertical-align: top; }
.status { font-weight: 700; }
.status.unused, .status.pending { color: var(--orange); }
.status.used, .status.approved { color: var(--violet); }
.status.expired, .status.revoked, .status.rejected { color: var(--danger); }
.inline { display: inline; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.stat { padding: 18px; }
.stat .display { font-size: 52px; }
.stat.pink { background: var(--pink); color: var(--bg); }
.stat.orange { background: var(--orange); color: var(--bg); }
.stat.violet { background: var(--violet); color: var(--bg); }
.stat.dark { background: var(--panel-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--panel-2); }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.gallery figcaption { padding: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 15px; }
.badge { display: inline-block; padding: 5px 12px; font-size: 14px; font-weight: 700; background: var(--violet); color: var(--bg); }
.badge.orange { background: var(--orange); }

details { background: var(--panel); padding: 16px 18px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; color: var(--muted); }

.legal h2 { font-size: 40px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); max-width: 820px; }
.legal ul { padding-left: 22px; }

.foot { border-top: 1px solid var(--panel-2); padding: 26px 0; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.narrow { max-width: 620px; }
@media (max-width: 640px) { .panel { padding: 18px; } .code { font-size: 34px; } }
.gallery > p { grid-column: 1 / -1; }

/* ---------- marketplace ---------- */
.spread { justify-content: space-between; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.block { display: block; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; background: var(--panel-2); text-decoration: none; font-weight: 700; }
.chip.small { min-height: 40px; padding: 0 12px; font-size: 15px; font-weight: 600; }
.chip.on { background: var(--pink); color: var(--bg); }
.chip.on .muted { color: var(--bg); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--panel-2); padding-bottom: 10px; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; text-decoration: none; font-weight: 700; color: var(--muted); background: var(--panel); }
.tabs a[aria-current="page"] { background: var(--violet); color: var(--bg); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--pink); color: var(--bg); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--panel); text-decoration: none; }
.card:hover { color: var(--text); outline: 2px solid var(--pink); }
.card img, .card .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel-2); }
.card .noimg { display: grid; place-items: center; font-size: 64px; color: var(--line); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card-title { font-size: 20px; }
.price { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 28px; color: var(--orange); }
.price .small { font-family: 'Chakra Petch', sans-serif; font-weight: 500; font-size: 14px; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.service { background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service h3 { font-size: 30px; }

.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.planbox { cursor: pointer; }
.planbox:has(input:checked) { outline: 3px solid var(--pink); }
table.sum { min-width: 0; }
table.sum td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
table.sum tr.total td { color: var(--orange); font-size: 20px; }
table.compact { min-width: 560px; }

.chat { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; padding: 14px; background: var(--panel); }
.msg { max-width: min(640px, 88%); padding: 12px 14px; background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; }
.msg.mine { align-self: flex-end; background: #2A2150; }
.msg.system { align-self: center; background: none; color: var(--gold); font-size: 15px; text-align: center; }
.thumb { max-width: 260px; max-height: 260px; display: block; }
.offer { background: var(--bg); border: 1px solid var(--orange); padding: 14px; gap: 8px; }
.newmsg { font-weight: 700; }
.convo { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; background: var(--panel); text-decoration: none; }
.convo.unread { border-left: 4px solid var(--pink); }
.convo.unread strong::after { content: ' · new'; color: var(--pink); }

.status.s-awaiting_payment, .status.s-awaiting_balance { color: var(--orange); }
.status.s-in_progress, .status.s-final_in_progress, .status.s-sketch_review, .status.s-delivered { color: var(--violet); }
.status.s-completed, .status.confirmed { color: #7CF2B0; }
.status.s-cancelled, .status.s-late { color: var(--danger); }
.pinktag { background: var(--pink); color: var(--bg); }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.files { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.code.small { font-size: 22px; padding: 4px 10px; }
input[type=radio] { width: 20px; height: 20px; accent-color: var(--pink); }
input[type=text]:not([class]) { min-width: 0; }
@media (max-width: 700px) { .chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .chips.scroll .chip { flex: none; } }
