:root {
  --navy-900: #050b1f;
  --navy-800: #0a1633;
  --navy-700: #0f2150;
  --blue: #1e6fff;
  --blue-600: #1557d6;
  --cyan: #22c3ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fc;
  --white: #ffffff;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --green: #15803d;
  --amber: #b45309;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 22, 51, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  background: radial-gradient(120% 90% at 85% 0%, #17398f 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  z-index: -1;
}
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { border-radius: 10px; }
.brand small { font-weight: 500; opacity: .75; }

.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.page.narrow { max-width: 420px; padding-top: 40px; }
.page.wide { max-width: 1040px; }

.hero { color: #fff; padding: 18px 4px 28px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -0.02em; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(34, 195, 255, .15); color: var(--cyan); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.05rem; color: rgba(255,255,255,.85); margin: 0; max-width: 560px; }
.lead.dark { color: var(--text); margin: 0 auto 1rem; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; }
.card.center { text-align: center; padding: 40px 24px; }
@media (min-width: 640px) { .card { padding: 32px; } }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.hint { margin: -4px 0 8px; font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.req { color: var(--red); }

input[type=text], input[type=password], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,111,255,.15); }

.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; color: var(--ink); transition: all .15s;
}
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(30,111,255,.2); }
.choice-scam input:checked + span { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.choice-genuine input:checked + span { border-color: var(--green); background: #f0fdf4; color: var(--green); }
.choice-unsure input:checked + span { border-color: var(--amber); background: #fffbeb; color: var(--amber); }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop {
  display: flex !important; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px; border: 2px dashed #c7d2fe; border-radius: 12px; background: #f8faff;
  font-weight: 400 !important; color: var(--muted) !important;
}
.drop:hover { border-color: var(--blue); }
.drop strong { color: var(--blue); }
.drop svg { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-input:focus-visible + .previews, .file-input:focus-visible ~ .drop { outline: 3px solid var(--blue); }
.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.previews figure { margin: 0; width: 88px; }
.previews img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.previews figcaption { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-error { color: var(--red); font-size: .9rem; margin-top: 8px; }

.notice { background: #eff6ff; border-left: 4px solid var(--blue); border-radius: 8px; padding: 12px 14px; font-size: .92rem; margin: 4px 0 20px; color: var(--navy-700); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin-bottom: 22px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }

.btn {
  display: inline-block; width: 100%; padding: 14px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; font: inherit; font-weight: 700;
  text-align: center; text-decoration: none; box-shadow: 0 6px 18px rgba(30,111,255,.35); transition: transform .1s, box-shadow .15s;
}
.btn:hover { box-shadow: 0 8px 22px rgba(30,111,255,.45); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: wait; }
.card.center .btn { width: auto; margin-top: 8px; }
.btn-sm { width: auto; padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #fecaca; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: var(--red-bg); }
.inline { margin: 0; }

.alert { background: var(--red-bg); border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

.tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; display: grid; place-items: center; }
.tick svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 32px; }

/* ---------- admin ---------- */
.admin::before { height: 200px; }
.h2 { font-size: 1.5rem; }
.h3 { font-size: 1.05rem; margin-top: 24px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin .page > .admin-head .h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 12px; padding: 14px; text-decoration: none; box-shadow: var(--shadow); border: 2px solid transparent; }
.stat b { display: block; font-size: 1.5rem; color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.active { border-color: var(--blue); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.list { display: grid; gap: 10px; }
.row { display: block; background: #fff; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(10,22,51,.06); border: 1px solid var(--line); }
.row:hover { border-color: var(--blue); }
.row-top { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; flex-wrap: wrap; }
.row-msg { margin: 8px 0; color: var(--ink); word-break: break-word; }
.row-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-scam { background: var(--red-bg); color: var(--red); }
.tag-genuine { background: #f0fdf4; color: var(--green); }
.tag-unsure { background: #fffbeb; color: var(--amber); }
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 18px; color: var(--muted); }
.back { display: inline-block; color: #fff; text-decoration: none; margin-bottom: 14px; opacity: .85; }
.details { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .details { grid-template-columns: repeat(3, 1fr); } }
.details div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.details dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.details dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.msg { white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 10px; padding: 14px; font: inherit; color: var(--ink); margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
