@font-face { font-family: Cairo; src: url(/static/fonts/cairo-700.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Cairo; src: url(/static/fonts/cairo-900.ttf); font-weight: 900; font-display: swap; }
@font-face { font-family: Amiri; src: url(/static/fonts/amiri-700.ttf); font-weight: 700; font-display: swap; }
:root { --bg:#0e0c07; --panel:#1a160d; --field:#26200f; --line:rgba(255,255,255,.12); --gold:#d4af37; --gold2:#f7e08f; --muted:#b9b09a; --ok:#5fbf7a; --bad:#e06c5f; --red:#c62828; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: #fff; font: 700 16px/1.55 Cairo, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--gold2); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; }
.card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 900; color: var(--gold2); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.btn { display: block; width: 100%; margin-top: 12px; background: var(--gold); color: #1a1405; border: 0; border-radius: 14px; padding: 13px; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; }
.btn.ghost { background: var(--field); color: #fff; border: 1px solid var(--line); }
.btn.red { background: var(--red); color: #fff; }
.btn.small { display: inline-block; width: auto; margin: 0; padding: 7px 12px; font-size: 14px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
label { display: block; color: var(--muted); font-size: 14px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; background: var(--field); color: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); }
textarea { min-height: 70px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--field); border: 1px solid var(--line); color: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 900; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .ic { font-size: 22px; line-height: 1.3; }
.item p { margin: 0; flex: 1; } .item small { display: block; color: var(--muted); font-size: 13px; }
#toast { position: fixed; left: 16px; right: 16px; bottom: 20px; max-width: 600px; margin: 0 auto; background: #2b2412; border: 1px solid var(--gold); color: #fff; border-radius: 14px; padding: 12px 14px; text-align: center; opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .25s, transform .25s; z-index: 20; }
#toast.on { opacity: 1; transform: none; } #toast.bad { border-color: var(--bad); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0 10px; }
footer b { color: var(--gold); font-family: Georgia, serif; font-style: italic; }
