/* RealOrNothing — purple and black */
:root {
  --purple: #7b2fbe;
  --purple-light: #a55eea;
  --purple-dark: #4a1470;
  --black: #12081c;
  --surface: #1e1030;
  --surface2: #2a1844;
  --text: #f5eefc;
  --muted: #c9b3e0;
  --green: #4ade80;
  --red: #f87171;
  --gold: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: var(--purple-dark);
  border-bottom: 2px solid var(--purple);
}
.brand { font-size: 1.4rem; font-weight: 800; cursor: pointer; color: #fff; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav button {
  background: transparent; color: var(--text); border: 1px solid var(--purple-light);
  border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 0.9rem;
}
nav button:hover, nav button.active { background: var(--purple); }
main { flex: 1; max-width: 640px; width: 100%; margin: 0 auto; padding: 18px 14px 40px; }
footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 16px; border-top: 1px solid var(--surface2); }
.fine { font-size: 0.75rem; }
h1 { font-size: 1.8rem; margin: 0.3em 0; }
h2 { font-size: 1.3rem; margin: 0.5em 0; }
p { line-height: 1.5; }
a { color: var(--purple-light); }
.card {
  background: var(--surface); border: 1px solid var(--purple);
  border-radius: 14px; padding: 16px; margin: 12px 0;
}
.card img.photo { width: 100%; border-radius: 10px; display: block; }
.badge {
  display: inline-block; background: var(--green); color: #052e12;
  font-size: 0.75rem; font-weight: 700; border-radius: 12px; padding: 2px 8px; margin-left: 6px;
}
.badge.free { background: var(--gold); color: #451a03; }
.badge.plus { background: var(--purple-light); color: #fff; }
button, .btn {
  background: var(--purple); color: #fff; border: none; border-radius: 24px;
  padding: 10px 20px; font-size: 1rem; cursor: pointer; margin: 4px 4px 4px 0;
}
button:hover { background: var(--purple-light); }
button.secondary { background: var(--surface2); border: 1px solid var(--purple-light); }
button.danger { background: #7f1d1d; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
input, textarea, select {
  width: 100%; padding: 10px; margin: 6px 0 12px; border-radius: 8px;
  border: 1px solid var(--purple); background: var(--surface2); color: var(--text); font-size: 1rem;
}
label { font-weight: 600; font-size: 0.9rem; }
.error { background: #450a0a; border: 1px solid var(--red); color: #fecaca; padding: 10px; border-radius: 8px; margin: 10px 0; }
.ok { background: #052e16; border: 1px solid var(--green); color: #bbf7d0; padding: 10px; border-radius: 8px; margin: 10px 0; }
.muted { color: var(--muted); font-size: 0.9rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.big-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.match-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--surface2); cursor: pointer; }
.match-row:hover { background: var(--surface2); }
.chat-box { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--surface2); }
.msg.mine { align-self: flex-end; background: var(--purple); }
.msg .time { font-size: 0.7rem; color: var(--muted); display: block; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { margin: 0; }
.hero { text-align: center; padding: 30px 10px; }
.hero h1 { font-size: 2.2rem; }
.perks { text-align: left; max-width: 420px; margin: 0 auto; }
.perks li { margin: 6px 0; }
.price { font-size: 2rem; font-weight: 800; color: var(--gold); }
.loading { text-align: center; color: var(--muted); padding: 40px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.thumbs img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.thumbs .thumb { position: relative; }
.thumbs button { position: absolute; top: 2px; right: 2px; padding: 2px 7px; font-size: 0.75rem; border-radius: 10px; }
