/* Yves Klein: International Klein Blue as the ground, his gold and rose as the accents. */
:root {
  --ikb: #002FA7;
  --bg: #001F73;
  --panel: #002A96;
  --panel-2: #0538B5;
  --line: #1E4BC2;
  --text: #F4F6FF;
  --muted: #A9B8EA;
  --gold: #D4AF37;
  --gold-ink: #1A1400;
  --rose: #F2A3C4;
  --rose-ink: #3A0A22;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ikb); }
body {
  margin: 0;
  background: var(--ikb);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--text); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: .06em; text-decoration: none; color: var(--gold); }
.top nav { display: flex; gap: 14px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.inline { display: inline; }
.badge {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
  background: var(--rose); color: var(--rose-ink); font-size: 12px; font-weight: 700; vertical-align: middle;
}

.btn, button {
  background: var(--gold); color: var(--gold-ink); border: 0; border-radius: var(--radius);
  padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-block;
}
.btn.secondary, button.secondary { background: var(--panel-2); color: var(--text); }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { color: var(--text); }

h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: var(--rose); }
.ok { color: var(--gold); }

form.stack { display: grid; gap: 14px; max-width: 460px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: inherit;
}
input::placeholder, textarea::placeholder { color: #6F86D6; }
textarea { min-height: 90px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 400; cursor: pointer;
  background: var(--panel);
}
.choices label:has(:checked) { border-color: var(--gold); color: var(--gold); }
.choices input { margin: 0; accent-color: var(--gold); }
.field-error { color: var(--rose); font-size: 14px; }

/* filter bar */
.filters {
  display: grid; gap: 12px; padding: 14px; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters .row > div { min-width: 120px; }
.filters .age { display: flex; gap: 8px; align-items: center; }
.filters .age input { width: 80px; }

/* member grid */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.card {
  display: block; text-decoration: none; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card:hover { border-color: var(--gold); }
.card .pic { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 40px; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .meta { padding: 8px 10px; font-size: 14px; }
.card .name { font-weight: 700; }
.card .tags { color: var(--muted); font-size: 13px; }

/* profile page */
.profile { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .profile { grid-template-columns: 360px 1fr; } }
.profile .photo { aspect-ratio: 1; background: var(--bg); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.profile .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; margin: 2px 4px 2px 0; }
.tag.accent { background: var(--gold); color: var(--gold-ink); }

/* profile photo manager */
.photos { padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.photos.drop { border-color: var(--gold); background: var(--panel); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 2px solid transparent; }
.thumb.main { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.thumb-actions form { margin: 0; }
.thumb-actions button { padding: 4px 9px; font-size: 14px; }
.thumb.add { border: 2px dashed var(--line); display: grid; }
.thumb.add label { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; cursor: pointer; margin: 0; color: var(--muted); font-weight: 600; }
.thumb.add .plus { font-size: 40px; line-height: 1; color: var(--gold); }
.thumb.add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.strip a { flex: none; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.strip a:hover { border-color: var(--gold); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* reviews */
.stars { color: var(--gold); letter-spacing: 1px; }
.reviews { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.review-form { display: grid; gap: 10px; max-width: 460px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.review-form textarea { min-height: 60px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-pick label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; margin: 0; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--gold); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.review-list .avatar { width: 40px; height: 40px; }
.review-list .comment { margin-top: 4px; white-space: pre-line; }
.review-list .hidden-review { opacity: .55; border-style: dashed; }

/* block / report / delete, and the moderation queue */
.safety { margin-top: 20px; }
.safety summary { cursor: pointer; }
.report { padding: 14px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.report-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.report-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.report-photos .thumb { width: 100px; height: 100px; }
.report-actions { display: flex; gap: 8px; }

/* inbox */
.convos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.convo {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.convo.unread { border-color: var(--rose); }
.convo .body { min-width: 0; }
.convo .who { font-weight: 700; display: block; }
.convo .last { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.convo.unread .last { color: var(--text); }
.convo .when { font-size: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); overflow: hidden; display: inline-block; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 1-to-1 chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 400px; max-width: 760px; margin: -16px auto 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.chat-head .back { font-size: 28px; line-height: 1; text-decoration: none; color: var(--muted); padding: 0 6px; }
.chat-head .who { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; line-height: 1.2; }
.chat-head .avatar { width: 40px; height: 40px; }
.chat-head .wa { padding: 6px 12px; font-size: 14px; background: #25D366; color: #06301a; }
.bubbles { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--ikb); }
.day { align-self: center; font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 999px; margin: 8px 0; }
.bubble { max-width: 78%; padding: 7px 10px 5px; border-radius: 14px; position: relative; word-wrap: break-word; white-space: pre-line; }
.bubble.theirs { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--gold); color: var(--gold-ink); border-bottom-right-radius: 4px; }
.bubble .stamp { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble .ticks { margin-left: 4px; }
.bubble.mine .ticks.read { color: var(--ikb); opacity: 1; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.composer textarea { min-height: 42px; max-height: 160px; border-radius: 21px; padding: 10px 14px; resize: none; }
.composer button { width: 44px; height: 42px; padding: 0; border-radius: 50%; font-size: 18px; flex: none; }
