/* Bazarçı platforması — açılış, qurucu və panel üçün ortaq üslub.
   Konsept: "konstruktor" — bloklar, qiymət etiketi sarısı, ultramarin. */
:root {
  --ink: #15132B; --ink-2: #4A4866; --line: #DCDCE8; --mist: #EEEEF6; --paper: #FFFFFF; --bg: #F4F4F9;
  --brand: #4B3BFF; --brand-deep: #2A1FB8; --brand-soft: #E7E5FF; --tag: #FFD84D; --tag-ink: #2B2200;
  --ok: #10915F; --err: #D3263A;
  --fd: "Geologica", "Onest", system-ui, sans-serif; --f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-s: 10px;
  --shadow: 0 1px 0 rgba(21,19,43,.04), 0 18px 40px -24px rgba(21,19,43,.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDEDF7; --ink-2: #A9A8C4; --line: #2C2B44; --mist: #1D1C30; --paper: #151427; --bg: #0E0D1C;
    --brand: #7D72FF; --brand-deep: #5A4DFF; --brand-soft: #24215A; --tag: #FFD84D; --tag-ink: #2B2200;
    --ok: #3DD598; --err: #FF6B7D; --shadow: 0 18px 40px -24px rgba(0,0,0,.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EDEDF7; --ink-2: #A9A8C4; --line: #2C2B44; --mist: #1D1C30; --paper: #151427; --bg: #0E0D1C;
  --brand: #7D72FF; --brand-deep: #5A4DFF; --brand-soft: #24215A; --tag: #FFD84D; --tag-ink: #2B2200;
  --ok: #3DD598; --err: #FF6B7D; --shadow: 0 18px 40px -24px rgba(0,0,0,.8); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.08; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none; background: var(--brand); color: #fff; min-height: 46px; white-space: nowrap; }
.btn:hover { background: var(--brand-deep); }
.btn-tag { background: var(--tag); color: var(--tag-ink); }
.btn-tag:hover { background: #F5C928; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--mist); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* -------- ümumi sahələr -------- */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 13px; font-weight: 650; color: var(--ink); }
.field small { color: var(--ink-2); font-size: 12.5px; }
.inp { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r-s); padding: 11px 13px; outline: 0; min-width: 0; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea.inp { resize: vertical; min-height: 92px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "✓"; font-weight: 800; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { accent-color: var(--brand); width: 18px; height: 18px; }
