:root {
    --bg: #0d1117;
    --panel: #1a2230;
    --line: #2c3644;
    --ink: #eef3f8;
    --ink2: #8b98a7;
    --accent: #ffb02e;
    --accent2: #ff9d1b;
    --error: #ff7a7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: radial-gradient(120% 90% at 50% 0%, #1b2431 0%, var(--bg) 60%);
    color: var(--ink);
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}
.shell { max-width: 420px; margin: 0 auto; padding: 20px 18px 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.top { text-align: center; margin-bottom: 14px; }
.brand { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
.dealer { color: var(--ink2); font-size: 13px; margin-top: 2px; }

.progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.dot { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background 0.3s ease; }
.dot.is-on { background: var(--accent); }

.pane { animation: rise 0.4s ease both; }
.pane[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1 { font-size: 24px; line-height: 1.25; margin: 6px 0 16px; }
h1 .thin { color: var(--ink2); font-weight: 400; font-size: 18px; }
.sub { color: var(--ink2); font-size: 14px; margin: 0 0 14px; }
.note { color: var(--ink2); font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.label { color: var(--ink2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
input[type="text"], input[type="tel"], textarea {
    width: 100%;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    color: var(--ink); font-size: 16px; padding: 12px;
    font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--ink2); }
.check input { margin-top: 3px; min-width: 20px; min-height: 20px; accent-color: var(--accent); }
.check a { color: var(--accent); }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.photo {
    appearance: none; cursor: pointer;
    background: var(--panel); border: 1px dashed #3a4757; border-radius: 14px;
    color: var(--accent); min-height: 92px; padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background-size: cover; background-position: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.photo:hover { transform: translateY(-2px); }
.photo .plus { font-size: 24px; }
.photo .slotname { color: var(--ink2); font-size: 11px; }
.photo.is-set { border: 1px solid var(--accent); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.photo.is-set .slotname { color: #fff; background: rgba(0,0,0,0.55); border-radius: 6px; padding: 2px 6px; }

.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 16px; }
.summary div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.summary dt { color: var(--ink2); font-size: 12px; margin: 0; }
.summary dd { margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }

.cta {
    appearance: none; border: 0; cursor: pointer; display: block; width: 100%;
    background: linear-gradient(135deg, #ffc95c, var(--accent2));
    color: #1c1305; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none;
    padding: 14px 22px; border-radius: 999px; min-height: 48px;
    box-shadow: 0 8px 22px rgba(255, 157, 27, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 6px;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 157, 27, 0.42); }
.cta:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.back {
    appearance: none; border: 0; background: none; cursor: pointer; display: block; width: 100%;
    color: var(--ink2); font-size: 14px; text-decoration: underline; padding: 12px; min-height: 44px; margin-top: 4px;
}
.error { color: var(--error); font-size: 13px; margin: 8px 0; }

.badge {
    width: 72px; height: 72px; border-radius: 50%; margin: 10px auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: var(--bg);
    background: radial-gradient(circle at 35% 30%, #ffd97a, var(--accent) 60%, #e8920a);
    box-shadow: 0 0 30px rgba(255, 176, 46, 0.5);
    animation: pop 0.5s ease both;
}
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

.foot { text-align: center; margin-top: 28px; font-size: 13px; color: var(--ink2); }
.foot a { color: var(--ink2); }

.privacy-hint {
    font-size: 13px;
    color: #9aa4b5;
    line-height: 1.6;
    margin: 14px 0 4px;
}
.privacy-hint a { color: #f5a623; text-decoration: none; }
.privacy-hint a:hover { text-decoration: underline; }

.turnstile { margin: 4px 0 14px; min-height: 0; }
.turnstile:empty { display: none; }

/* ---- extended seller form ---- */
select {
    width: 100%; appearance: none; -webkit-appearance: none;
    background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238b98a7' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 14px center;
    border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
    font-size: 16px; padding: 12px 36px 12px 12px; font-family: inherit; min-height: 48px;
}
select:disabled { opacity: 0.5; }
select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="email"] {
    width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    color: var(--ink); font-size: 16px; padding: 12px; font-family: inherit;
}
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.stepinfo { text-align: center; color: var(--ink2); font-size: 12px; margin: -8px 0 12px; }
.chips { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span {
    display: block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--panel); color: var(--ink2); font-size: 14px; transition: all 0.15s ease;
}
.chip input:checked + span { background: rgba(255, 176, 46, 0.16); border-color: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.photos { grid-template-columns: repeat(2, 1fr); }
.photo { min-height: 118px; position: relative; overflow: hidden; }
.photo svg { width: 64px; height: 40px; stroke: var(--ink2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo .slotname { font-size: 13px; color: var(--ink); font-weight: 600; }
.photo .hint { font-size: 11px; color: var(--ink2); padding: 0 6px; text-align: center; }
.photo .req { color: var(--accent); }
.photo.is-set .hint, .photo.is-set svg { display: none; }
.photo .clear {
    position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: #fff; border: 0; font-size: 16px; line-height: 28px; cursor: pointer; padding: 0;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.thumbs div { aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.check input[type="checkbox"] { flex: none; }
textarea { resize: vertical; }
[hidden] { display: none !important; }
.photo .pick { appearance: none; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; width: 100%; height: 100%; min-height: 118px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: absolute; inset: 0; }
.photo.is-set .pick { align-items: flex-start; justify-content: flex-end; padding: 10px; }
.photo.is-set .pick .slotname { background: rgba(0,0,0,0.6); color: #fff; border-radius: 6px; padding: 3px 8px; }
.photo .pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.sub.small { font-size: 12px; margin: -4px 0 14px; color: var(--ink2); }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.seg button { appearance: none; background: var(--panel); color: var(--ink); border: 1px solid #3a4757; border-radius: 12px; padding: 12px 8px; min-height: 48px; font: inherit; font-size: 14px; cursor: pointer; }
.seg button.is-on { border-color: var(--accent); background: rgba(255,176,46,0.14); color: #fff; font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.draftnote a { color: var(--accent); }
.row2:has(.seg) { grid-template-columns: 1fr; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.seg { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
