@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #14171f;
  --muted: #5f6675;
  --line: #e3e6ec;
  --brand: #ff5a1f;
  --brand-ink: #ffffff;
  --brand-soft: #fff0e9;
  --ok: #138a4b;
  --ok-soft: #e6f6ed;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --card: #181b23;
    --text: #eef0f4;
    --muted: #9aa1b0;
    --line: #2a2f3b;
    --brand-soft: #3a1d10;
    --ok-soft: #10301f;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Prompt', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
header.top { background: #12141a; color: #fff; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.logo { font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: .3px; }
.logo span { color: var(--brand); }
header.top nav a { color: #c9cdd6; margin-left: 16px; font-size: .95rem; }
header.top nav a:hover { color: #fff; }
@media (max-width: 560px) {
  header.top .wrap { flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
  header.top nav { width: 100%; display: flex; gap: 16px; }
  header.top nav a { margin-left: 0; font-size: .88rem; }
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 80px; }
h1 { font-size: 1.7rem; margin: 0 0 6px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.events { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event-card { padding: 0; overflow: hidden; display: block; color: inherit; transition: transform .15s; }
.event-card:hover { transform: translateY(-2px); }
.event-card .cover { aspect-ratio: 16/10; background: #2a2f3b center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #7d8494; }
.event-card .body { padding: 14px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.ok { background: var(--ok); }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); width: 100%; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 10px 0 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; }
.hero { background: linear-gradient(120deg, #12141a 0%, #2b1a12 100%); color: #fff; border-radius: 18px; padding: 28px 24px; margin-bottom: 24px; }
.hero h1 { font-size: 1.9rem; }
.hero p { color: #d3d6de; margin: 6px 0 0; }
.search-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 720px) { .search-box { grid-template-columns: 1fr; } .hero h1 { font-size: 1.5rem; } }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; background: var(--card); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop img.selfie { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 10px; }
.photos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ph { position: relative; border-radius: 10px; overflow: hidden; background: #222; aspect-ratio: 3/2; cursor: pointer; border: 3px solid transparent; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.sel { border-color: var(--brand); }
.ph .tick { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.45); border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ph.sel .tick { background: var(--brand); border-color: var(--brand); }
.ph .zoom { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .78rem; }
.ph .score { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: .75rem; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 20; }
.cartbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.price { font-size: 1.35rem; font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: #fff4e0; color: var(--warn); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: var(--card); }
.tier b { display: block; font-size: 1.3rem; color: var(--brand); }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat .n { font-size: 1.6rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: .9rem; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.notice { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.hidden { display: none !important; }
.status { font-size: .92rem; color: var(--muted); margin-top: 8px; min-height: 1.4em; }
.code { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 16px 100px; }
