/* Layout and colours follow the original snog.com (2013) */
:root {
  --wine: #4e232c;        /* page background */
  --wine-mid: #6c2c3a;    /* background glow, outer */
  --wine-glow: #8b3747;   /* background glow, centre */
  --panel: #823442;       /* feed panel */
  --line: #a64c53;        /* dividers between answers */
  --shadow: #34171d;      /* panel shadows, name strips */
  --green: #afc536;       /* snogged, links, highlights */
  --green-dark: #95a928;
  --text: #bbbbbb;
  --muted: #999999;
  --avoid: #b35d5d;
  --bubble: #232323;      /* intro speech bubble */
}

* { box-sizing: border-box; }
html { background: var(--wine); scroll-padding-top: 70px; }
body {
  margin: 0;
  padding-top: 50px;
  background: radial-gradient(ellipse 55% 60% at 50% 28%, var(--wine-glow), var(--wine-mid) 45%, var(--wine) 100%) no-repeat fixed var(--wine);
  color: var(--text);
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3 { color: #fff; margin: 0 0 .5em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.green { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; margin: 0; }

/* Header: black gradient bar */
#hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 98; height: 50px;
  background: linear-gradient(#393939, #1a1a1a 50%, #010101);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hd-inner { display: flex; align-items: center; justify-content: space-between; height: 50px; }
#hd .logo img { display: block; height: 32px; width: auto; }
.account_links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.account_links a, .link-btn { color: #ddd; }
.account_links a:hover, .link-btn:hover { color: #fff; text-decoration: none; }
.account_links strong { color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Intro speech bubble */
#bd { flex: 1; padding-bottom: 48px; }
.intro {
  position: relative; max-width: 829px; margin: 34px auto 46px; padding: 26px 58px 30px;
  background: var(--bubble); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.intro::after {
  content: ""; position: absolute; left: 64%; bottom: -21px; width: 120px; height: 22px;
  background: var(--bubble); clip-path: polygon(0 0, 78% 0, 100% 100%);
}
.intro h1 { font: 700 32px/1.15 "Myriad Pro", "Segoe UI", Arial, sans-serif; margin: 0 0 6px; letter-spacing: -.01em; }
.intro p { margin: 0; color: #fff; font: 400 19px/1.35 "Myriad Pro", "Segoe UI", Arial, sans-serif; }

/* Two equal columns: feed left, sign-up right */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Live feed panel */
.signup_feed { background: var(--panel); border-radius: 6px; box-shadow: 0 0 15px var(--shadow); overflow: hidden; }
.answer_counter {
  margin: 0; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(#212121, #373737); color: #fff; font-size: 16px; text-shadow: 0 1px 0 #000;
}
.answer_counter span { font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.livenow { list-style: none; margin: 0; padding: 0 24px; }

/* One answer: [picture @actor]  icon + word  [picture @target]
   Original colours: snogged green, married white, avoided dusty red */
.is-snog  { --act: var(--green); }
.is-marry { --act: #fff; }
.is-avoid { --act: var(--avoid); }

.answer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 2px solid var(--line);
}
.answer:last-child { border-bottom: 0; }
.answer .tile:first-child { justify-self: start; }
.answer .tile:last-child { justify-self: end; }
.answer-mid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.action-icon { color: var(--act); display: block; }
.action-icon svg { display: block; width: 36px; height: 36px; }
.is-snog .action-icon svg { width: 44px; }
.answer .action { color: var(--act); font-size: 17px; font-weight: 700; margin: 2px 0 0; }
.postmeta { color: var(--muted); font-size: 12px; }

.tile { width: 100%; max-width: 130px; border-radius: 4px; overflow: hidden; background: var(--shadow); box-shadow: 0 0 8px rgba(0, 0, 0, .3); }
.tile-photo { height: 100px; }
.tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-initial {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: #fff; font-size: 2.6rem; font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--h) 55% 55%), hsl(calc(var(--h) + 30) 50% 40%));
}
.tile-initial.topic { background: var(--wine); }
.tile-name {
  padding: 5px; color: #fff; font-weight: 700; font-size: 12px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.verified { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.15em; flex: none; }
.empty { text-align: center; padding: 40px 24px; }
.empty strong { color: #fff; }

/* Sign-up form: labels on the left, rounded white inputs */
.signup_col h2 { font: 700 22px "Myriad Pro", "Segoe UI", Arial, sans-serif; margin: 4px 0 18px; padding-left: 115px; }
.field { display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding-bottom: 14px; }
.field > label { color: #fff; font-size: 16px; text-align: right; margin-top: 7px; }
.required { color: #d8000c; }
.control { min-width: 0; }
.form input:not([type="checkbox"]), .form select, .at-input {
  width: 100%; max-width: 290px; height: 36px; border: 2px solid transparent; border-radius: 6px;
  background: #fff; color: #222; font: 16px Arial, Helvetica, sans-serif; padding: 0 10px;
}
.form input:focus, .form select:focus, .at-input:focus-within { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(175, 197, 54, .3); }
.date_select { display: flex; gap: 6px; max-width: 290px; }
.date_select select { padding: 0 4px; font-size: 14px; }
.date_select select:nth-child(1) { flex: 0 0 64px; }
.date_select select:nth-child(2) { flex: 1; }
.date_select select:nth-child(3) { flex: 0 0 76px; }
.at-input { display: flex; align-items: center; padding: 0 0 0 10px; color: #888; font-size: 14px; }
.at-input input { flex: 1; min-width: 0; height: 100%; border: 0 !important; box-shadow: none !important; padding: 0 10px 0 2px !important; }
.tip { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.field.agree { display: block; padding-left: 115px; }
.check { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 13px; }
.check input { accent-color: var(--green); width: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; }
.submit { padding-left: 115px; }

.btn_signup {
  display: block; width: 270px; max-width: 100%; height: 40px; cursor: pointer;
  border: 1px solid #7a8f1f; border-radius: 6px;
  background: linear-gradient(#cfe35e, #afc536 50%, #93aa26);
  color: #1e2600; font: 18px "Myriad Pro", "Segoe UI", Arial, sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 4px rgba(0, 0, 0, .3);
}
.btn_signup:hover { background: linear-gradient(#d9ec6c, #bbd040 50%, #9db42c); }
.btn_signup:active { background: linear-gradient(#93aa26, #afc536); }
.submit .tip { margin-top: 10px; }

.auth[data-tab="join"] .pane-login,
.auth[data-tab="login"] .pane-join { display: none; }

.notice { border-radius: 6px; padding: 10px 14px; font-size: 13px; margin: 0 0 16px 115px; max-width: 290px; }
.notice.error { background: #ffbaba; color: #d8000c; }
.notice.ok { background: #effca2; color: #4b5a0e; }
.notice div + div { margin-top: 4px; }

/* Logged in: Snog / Marry / Avoid */
.snog-buttons { display: flex; gap: 8px; padding-left: 115px; max-width: 405px; }
.snog-buttons > * { flex: 1; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
  border: 2px solid var(--line); border-radius: 6px; background: rgba(52, 23, 29, .4); cursor: pointer;
  font: 700 13px Arial, Helvetica, sans-serif; color: #fff; transition: border-color .15s, background .15s;
}
.choice svg { width: 26px; height: 26px; color: var(--act); }
.choice:hover { border-color: var(--act); background: rgba(52, 23, 29, .7); }

/* Footer: black bar */
#ft_nav { background: #000; color: var(--text); }
.ft-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 65px; padding-top: 12px; padding-bottom: 12px; }
#ft .links { margin: 0; font-size: 13px; }
.brand { font: 800 24px Arial, Helvetica, sans-serif; color: #fff; }
.brand span { color: var(--green); }

/* Round profile pictures (coloured initial when there's no picture) */
.avatar { border-radius: 50%; flex: none; object-fit: cover; }
.avatar.initial {
  display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .8em;
  background: linear-gradient(135deg, hsl(var(--h) 55% 55%), hsl(calc(var(--h) + 30) 50% 40%));
}

/* Logged-in header: nav, icons, account menu */
.hd-inner { gap: 24px; }
.main-nav { display: flex; gap: 22px; margin-right: auto; font-size: 13px; font-weight: 700; }
.main-nav a, .main-nav span { color: #ddd; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; text-decoration: none; }
.main-nav a.active { box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 2px; }
.soon { opacity: .45; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; color: #ddd; }
.icon-btn svg { width: 18px; height: 18px; }
.me-menu { position: relative; }
.me-menu summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  color: #fff; font-weight: 700; font-size: 13px;
}
.me-menu summary::-webkit-details-marker { display: none; }
.caret { border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.me-menu-list {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 180px; padding: 6px 0;
  background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.me-menu-list a, .me-menu-list button, .me-menu-list span {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 18px; text-align: left;
  color: #333; font: 14px Arial, Helvetica, sans-serif; background: none; border: 0; cursor: pointer;
}
.me-menu-list svg { width: 16px; height: 16px; flex: none; }
.me-menu-list a:hover, .me-menu-list button:hover { background: #f2f2f2; color: #000; text-decoration: none; }
.me-menu-list .soon { cursor: default; }
.me-menu-list hr { border: 0; border-top: 1px solid #e5e5e5; margin: 6px 0; }
.me-menu-list form { margin: 0; }

/* Feed dashboard */
.dash { max-width: 940px; padding-top: 30px; }
.box { background: var(--panel); border-radius: 6px; box-shadow: 0 0 15px var(--shadow); padding: 22px 22px 18px; margin-bottom: 18px; color: #fff; }
.box h2 { font: 400 20px Arial, Helvetica, sans-serif; margin: 0 0 10px; }
.box p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; }
.box p:last-child { margin-bottom: 0; }
.box a { color: #fff; }
.dash-cols { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.notice.wide { max-width: none; margin: 0 0 18px; }

.box.light { background: #fff; color: #222; text-align: center; }
.box.light h2 { color: #222; }
.segmented { display: inline-flex; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.segmented a { display: grid; place-items: center; width: 52px; height: 42px; background: var(--line); color: #fff; }
.segmented a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
.segmented a:hover { background: var(--panel); text-decoration: none; }
.segmented a.active { background: var(--wine); }
.segmented svg { width: 20px; height: 20px; }
.top-list { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #eee; }
.rank { width: 16px; color: #999; font-weight: 700; text-align: center; }
.top-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.top-score { background: var(--green); color: var(--shadow); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.top-empty { color: #777; margin: 14px 0 0 !important; }

.invite { display: flex; margin-top: 14px; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.invite input { flex: 1; min-width: 0; border: 0; padding: 10px; font: 13px Arial, Helvetica, sans-serif; color: #222; background: #fff; }
.invite input:focus { outline: none; }
.copy { border: 0; background: var(--green); color: var(--shadow); font: 700 13px Arial, Helvetica, sans-serif; padding: 0 14px; cursor: pointer; }
.copy:hover { background: #bbd040; }

/* Members: search box */
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; align-items: center; }
.search-box select {
  width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 4px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 13px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); cursor: pointer;
}
.search-box select:focus { outline: 2px solid var(--green); }
.search-box option { background: #fff; color: #222; }
.age-range { display: flex; align-items: center; gap: 10px; }
.age-range span { color: #fff; font-size: 13px; }
.search-checks { grid-column: span 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.search-checks label { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; cursor: pointer; }
.search-checks input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.search-btn {
  margin-left: auto; height: 34px; padding: 0 16px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--green); color: var(--shadow); font: 700 13px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
}
.search-btn:hover { background: #bbd040; }
.results-count { color: var(--text); font-size: 12px; margin: 0 0 10px; }
.empty-box { text-align: center; }

/* Members: cards */
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member-card { background: var(--shadow); border-radius: 6px; overflow: hidden; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.member-photo { position: relative; height: 150px; }
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-photo .tile-initial { font-size: 3.4rem; }
.member-badge {
  position: absolute; top: 6px; right: 6px; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: var(--green); font-size: 10px; font-weight: 700;
}
.member-name { padding: 12px 8px 14px; text-align: center; font-size: 20px; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; font-size: 13px; }

/* Profile links on tiles, cards and lists */
a.tile, .member-card > a { display: block; color: inherit; text-decoration: none; }
a.tile:hover, .member-card > a:hover { text-decoration: none; filter: brightness(1.08); }
.top-list a.top-name { color: #222; }

/* Profile: cover + header card */
.profile-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 0 15px var(--shadow); margin-bottom: 18px; color: #222; }
.cover {
  position: relative; height: 190px;
  background: linear-gradient(135deg, #7a2e33, var(--wine)) center / cover no-repeat;
}
.shuffle { position: absolute; top: 14px; right: 16px; color: var(--green); }
.shuffle svg { width: 20px; height: 20px; display: block; }
.shuffle:hover { color: #fff; }
.cover-actions { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 4px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 0; border-radius: 3px;
  font: 700 11px Arial, Helvetica, sans-serif; cursor: pointer; color: #fff; background: #555;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
}
.pill svg { width: 13px; height: 13px; }
.pill-green { background: #8cc63f; }
.pill-green:hover { background: #9bd24e; }
.pill-dark { background: var(--shadow); }
.pill-red { background: #d8000c; }
.pill.soon { opacity: .55; cursor: default; }

.profile-head { display: flex; gap: 22px; padding: 0 28px 6px; }
.profile-avatar { flex: none; margin-top: -48px; position: relative; z-index: 1; }
.profile-avatar .avatar { width: 120px; height: 120px; font-size: 3rem; border-radius: 0; }
.profile-id { padding-top: 14px; min-width: 0; }
.profile-id h1 { color: #000; font-size: 20px; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Staff badge: black "snog.me" tag in the corner of the About box */
.about { position: relative; }
/* Matches the original snog.me staff label (Bootstrap .label: .2em .6em .3em padding, .25em corners) */
.staff-badge {
  position: absolute; top: 18px; right: 16px; padding: .2em .6em .3em; border-radius: .25em;
  background: #000; color: #fff; font: 700 11px/1 Arial, Helvetica, sans-serif; white-space: nowrap;
}
.staff-badge i { color: #92c702; font-style: italic; }
.staff-badge + h2 { padding-right: 70px; }
.profile-id .handle, .profile-id .details { color: #777; font-size: 12px; }
.headline { color: #555; font-size: 13px; margin: 8px 0 0; }

.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 10px 0 16px; text-align: center; }
.profile-stats > * { display: flex; flex-direction: column; align-items: center; padding: 4px 0 6px; margin: 0 12px; border: 2px solid transparent; border-radius: 4px; color: #444; }
.profile-stats strong { color: var(--green-dark); font-size: 16px; }
.profile-stats span { font-size: 16px; }
.profile-stats a { color: #444; }
.profile-stats a:hover { text-decoration: none; background: #f5f5f5; }
.profile-stats a.active { border-color: #222; }

/* Profile: photos tab */
.profile-photos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.profile-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.profile-photos a:hover img { filter: brightness(1.08); }
.profile-photos p { margin: 0; font-size: 13px; text-align: left; }
.profile-photos p a { color: var(--panel); font-weight: 700; }
.profile-photos .profile-photos-manage { margin-top: 12px; }

/* Profile: About + answers */
.profile-cols { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.box.light.about { text-align: left; }
.box.light.about h2 { color: var(--panel); font-size: 17px; }
.about p { font-size: 12px; }
.muted { color: #777; }
.socials { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.socials li, .socials a { display: flex; align-items: center; gap: 8px; color: #222; font-size: 12px; }
.socials svg { width: 16px; height: 16px; flex: none; }

.answers-box { padding: 22px; }
.answers-box .is-avoid, .signup_feed .is-avoid { --act: #f0a3a3; } /* the original dusty red is too dark to read on these panels */
.answer-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 14px 6px; text-align: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.answer-stats strong { font-size: 17px; color: var(--act); }
.answer-stats small { font-size: 10px; opacity: .8; }
.answer-stats span { display: block; font-size: 11px; margin-top: 2px; }
/* Pick snog / marry / avoid, then the message box and Send appear */
.answer-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 16px 0 8px; }
.answer-buttons label { cursor: pointer; }
.answer-buttons input { position: absolute; opacity: 0; pointer-events: none; }
.answer-buttons label > span {
  height: 50px; border-radius: 4px; display: grid; place-items: center;
  background: #8cc63f; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); transition: background .15s, transform .1s;
}
.answer-buttons label:hover > span { background: #9bd24e; }
.answer-buttons input:checked + span { background: #6b9e1f; transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25); }
.answer-buttons input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.answer-buttons svg { width: 24px; height: 24px; }
.answer-buttons .is-snog svg { width: 30px; }
.answer-compose { display: none; margin-bottom: 8px; }
.answer-form:has(input[type="radio"]:checked) .answer-compose { display: block; }
.answer-compose textarea {
  display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; resize: vertical;
  background: rgba(52, 23, 29, .55); color: #fff; font: 13px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.answer-compose textarea::placeholder { color: rgba(255, 255, 255, .45); }
.answer-compose textarea:focus { outline: 2px solid var(--green); }
.answer-send {
  display: block; margin: 8px 0 0 auto; height: 32px; padding: 0 14px; border: 0; border-radius: 3px; cursor: pointer;
  background: #8cc63f; color: #fff; font: 13px Arial, Helvetica, sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.answer-send:hover { background: #9bd24e; }
.history-msg { margin: 4px 0 0 !important; color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.history { list-style: none; margin: 10px 0 0; padding: 0; }
.history li { display: flex; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.history a { color: #fff; font-weight: 700; }
.history .verb { color: var(--act); font-weight: 700; }
.history time { display: block; font-size: 11px; color: var(--text); }
.history-empty { text-align: center; color: var(--text); margin: 18px 0 4px !important; }

a.pill:hover { text-decoration: none; }

/* Social wall: broadcast box + filters on the left, cards on the right */
.social-page { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; align-content: start; max-width: 940px; padding-top: 30px; }
.social-side .box { padding: 18px; margin-bottom: 12px; border-bottom: 3px solid var(--line); }
.platform-pick { display: flex; justify-content: space-between; margin-bottom: 12px; }
.platform-pick label { cursor: pointer; }
.platform-pick input { position: absolute; opacity: 0; pointer-events: none; }
.platform-pick label > span {
  display: grid; place-items: center; width: 32px; height: 28px; border-radius: 4px;
  background: rgba(255, 255, 255, .18); color: #fff; transition: background .15s;
}
.platform-pick label:hover > span { background: rgba(255, 255, 255, .3); }
.platform-pick .social-icon { width: 15px; height: 15px; }
.platform-pick input:focus-visible + span { outline: 2px solid var(--green); }
.pick-snapchat input:checked + span { background: #fffc00; color: #000; }
.pick-tiktok input:checked + span { background: #000; color: #fff; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.pick-instagram input:checked + span { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.pick-twitter input:checked + span { background: #000; }
.bc-label { display: block; color: #fff; font-weight: 700; font-size: 13px; }
.bc-tip { margin: 2px 0 8px !important; font-size: 9px !important; font-weight: 700; color: #fff; }
.broadcast input[name="handle"], .social-filter select {
  width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 3px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 12px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.broadcast input[name="handle"]::placeholder { color: rgba(255, 255, 255, .45); }
.broadcast input[name="handle"]:focus, .social-filter select:focus { outline: 2px solid var(--green); }
.social-filter option { background: #fff; color: #222; }
.bc-btn {
  display: block; width: 100%; height: 32px; margin-top: 10px; border: 0; border-radius: 3px; cursor: pointer;
  background: #3b5ea8; color: #fff; font: 12px Arial, Helvetica, sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.bc-btn:hover { background: #4a6fbc; }
.broadcast .notice { margin: 12px 0 0; font-size: 12px; }
.social-filter { display: grid; gap: 10px; }
.social-filter .age-range span { font-size: 12px; }
.social-filter .search-btn { width: 100%; margin: 4px 0 0; }

.mine h2 { font-size: 13px !important; font-weight: 700 !important; margin-bottom: 8px !important; }
.mine ul { list-style: none; margin: 0; padding: 0; }
.mine li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mine li:first-child { border-top: 0; }
.mine li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mine .social-icon { width: 14px; height: 14px; flex: none; }
.mine form { margin: 0; }
.remove { border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; padding: 0 4px; }
.remove:hover { opacity: 1; }

.social-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-content: start; }
.social-wall .empty-box { grid-column: 1 / -1; }
.social-card {
  position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  color: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.sc-twitter   { background: #222; }
.sc-tiktok    { background: linear-gradient(135deg, #00f2ea 0%, #000 50%, #ff0050 100%); }
.sc-instagram { background: linear-gradient(225deg, #405de6 0%, #c13584 35%, #fd1d1d 65%, #fcaf45 85%, #ffdc80 100%); }
.sc-snapchat  { background: #fffc00; color: #000; }
.sc-avatar { margin-bottom: 8px; }
.sc-avatar .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.sc-handle { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: 700; font-size: 14px; max-width: 90%; overflow-wrap: anywhere; }
.sc-handle .social-icon { width: 14px; height: 14px; flex: none; }
.sc-meta { font-size: 10px; opacity: .9; }
.sc-remove { position: absolute; top: 6px; right: 6px; margin: 0; }
.sc-remove button {
  width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 15px; line-height: 1;
}
.sc-remove button:hover { background: #d8000c; }

@media (max-width: 760px) {
  .social-page { grid-template-columns: 1fr; }
  .social-wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Edit profile: sidebar + form */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; align-content: start; max-width: 1140px; padding-top: 16px; }
.acct-nav { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 0 15px var(--shadow); }
.acct-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #eee;
  color: #888; font-weight: 700; font-size: 13px;
}
.acct-nav a:first-child { border-top: 0; }
.acct-nav a:hover { color: #333; background: #f7f7f7; text-decoration: none; }
.acct-nav a.active { background: var(--panel); color: #fff; }
.acct-nav svg { width: 15px; height: 15px; flex: none; }
.acct-nav .acct-view { justify-content: flex-end; color: var(--green-dark); font-weight: 400; font-size: 12px; }

.acct-form { padding: 26px 26px 22px; }
.acct-form h1 { display: flex; align-items: center; gap: 8px; font: 400 20px Arial, Helvetica, sans-serif; margin: 0 0 14px; }
.acct-form h1 svg { width: 20px; height: 20px; }
.acct-form label { display: block; color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.acct-form input, .acct-form textarea, .acct-form select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 4px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 400 13px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.acct-form textarea { resize: vertical; line-height: 1.5; margin: -8px 0 14px; }
.acct-form select { height: 38px; cursor: pointer; }
.acct-form option { background: #fff; color: #222; }
.acct-form input::placeholder, .acct-form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.acct-form input:focus, .acct-form textarea:focus, .acct-form select:focus { outline: 2px solid var(--green); }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.acct-grid.three { grid-template-columns: 1fr 2fr 1fr; gap: 0 14px; }
.acct-help { color: var(--text); }
.info { color: var(--text); cursor: help; font-weight: 400; }
.prefixed { display: flex; margin-top: 6px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.prefixed > span { display: flex; align-items: center; padding: 0 10px; background: rgba(0, 0, 0, .3); color: var(--text); font-weight: 400; font-size: 12px; white-space: nowrap; }
.prefixed input { margin: 0; border-radius: 0; box-shadow: none; padding-left: 2px; }
.prefixed > input:first-child { padding-left: 12px; }
.acct-save {
  display: block; width: 100%; height: 40px; margin-top: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: #8cc63f; color: #fff; font: 400 14px Arial, Helvetica, sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.acct-save:hover { background: #9bd24e; }

/* Settings */
.settings-form label, .settings-form .acct-help { max-width: 400px; }
.settings-save {
  height: 38px; padding: 0 14px; margin-top: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: #8cc63f; color: #fff; font: 14px Arial, Helvetica, sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.settings-save:hover { background: #9bd24e; }
.settings-save.danger { background: #d8000c; }
.settings-save.danger:hover { background: #ec1b27; }
.blocked-list { list-style: none; margin: 0; padding: 0; }
.blocked-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.blocked-list a { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; flex: 1; min-width: 0; }
.blocked-list .muted { color: var(--text); }
.unblock { border: 0; border-radius: 3px; padding: 5px 10px; background: var(--shadow); color: #fff; font: 700 12px Arial, Helvetica, sans-serif; cursor: pointer; }
.unblock:hover { background: #000; }

/* Photos */
.photos-box { padding: 26px; }
.photos-box h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin: 0 0 12px; }
.photos-box h2 svg { width: 18px; height: 18px; flex: none; }
.photos-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 20px; }
.current-pfp img { display: block; width: 260px; max-width: 100%; height: auto; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.current-pfp p { color: var(--text); }
.upload-form { margin-bottom: 22px; }
.file-pick { position: relative; display: flex; border-radius: 3px; overflow: hidden; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { flex: 1; min-width: 0; padding: 8px 10px; background: rgba(52, 23, 29, .55); color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browse { padding: 8px 12px; background: #d8000c; color: #fff; font-size: 12px; }
.file-pick:focus-within { outline: 2px solid var(--green); }
.upload-btn {
  display: block; width: 100%; height: 32px; margin-top: 8px; border: 0; border-radius: 3px; cursor: pointer;
  background: #8cc63f; color: #fff; font: 12px Arial, Helvetica, sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.upload-btn:hover { background: #9bd24e; }
.requirements { margin: 0 0 14px; padding-left: 30px; font-size: 12px; line-height: 1.6; }
.examples { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.my-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.my-photos li { background: var(--shadow); border-radius: 4px; overflow: hidden; }
.my-photos li.is-pfp { box-shadow: 0 0 0 3px var(--green); }
.my-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-actions { display: flex; gap: 6px; padding: 8px; align-items: center; }
.photo-actions form { margin: 0; }
.photo-actions form:first-child { flex: 1; }
.photo-actions button { border: 0; border-radius: 3px; padding: 5px 8px; background: #8cc63f; color: #fff; font: 700 11px Arial, Helvetica, sans-serif; cursor: pointer; }
.photo-actions button.danger { background: #d8000c; }
.pfp-tag { flex: 1; color: var(--green); font-size: 11px; font-weight: 700; }

/* Interests list */
.green-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 18px; border: 0; border-radius: 3px;
  background: #8cc63f; color: #fff; font: 13px Arial, Helvetica, sans-serif; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.green-btn:hover { background: #9bd24e; text-decoration: none; }
.interests-head { display: flex; align-items: center; gap: 24px; margin-bottom: 10px; }
.interests-head h1 { font: 400 18px Arial, Helvetica, sans-serif; margin: 0 0 6px; }
.interests-head p { font-size: 12px; margin: 0; }
.interests-head .green-btn { margin-left: auto; min-width: 124px; }
/* Suggest an interest: hidden until the button (#suggest) is clicked, or after a mistake */
.suggest-box { display: none; margin-bottom: 10px; scroll-margin-top: 70px; }
.suggest-box:target, .suggest-box.open { display: block; }
.suggest-box h2 { font: 400 16px Arial, Helvetica, sans-serif; margin: 0 0 4px; }
.suggest-box h3 { font: 700 12px Arial, Helvetica, sans-serif; margin: 18px 0 6px; }
.suggest-box .acct-help { font-size: 12px; margin: 0 0 12px; }
.suggest-box .notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.suggest-form { display: grid; grid-template-columns: 1fr 2fr; gap: 12px 22px; align-items: end; }
.suggest-form label { display: block; font-size: 12px; font-weight: 700; }
.suggest-form .optional { font-weight: 400; opacity: .7; }
.suggest-form input {
  display: block; width: 100%; height: 32px; margin-top: 5px; padding: 0 10px; border: 0; border-radius: 3px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 12px Arial, Helvetica, sans-serif; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.suggest-form input::placeholder { color: rgba(255, 255, 255, .45); }
.suggest-form input:focus { outline: 2px solid var(--green); }
.suggest-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 12px; }
.suggest-actions a { color: inherit; opacity: .75; }
.my-suggestions { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.my-suggestions li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.my-suggestions .status { font-weight: 700; }
.my-suggestions .status.pending { opacity: .7; }
.my-suggestions .status.approved { color: var(--green); }
.my-suggestions .status.rejected { color: #ffbaba; }
@media (max-width: 640px) { .suggest-form { grid-template-columns: 1fr; } }
.interest-search { display: flex; gap: 24px; margin-bottom: 18px; }
.interest-search input {
  flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 0; border-radius: 3px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 12px Arial, Helvetica, sans-serif; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.interest-search input::placeholder { color: rgba(255, 255, 255, .45); }
.interest-search input:focus { outline: 2px solid var(--green); }
.interest-search .green-btn { min-width: 124px; }
.interest-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; }
.interest-grid a {
  display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 4px; color: #fff;
  background: rgba(52, 23, 29, .45); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); transition: background .15s;
}
.interest-grid a:hover { background: rgba(52, 23, 29, .8); text-decoration: none; }
.interest-pic { flex: none; width: 44px; height: 44px; border-radius: 3px; overflow: hidden; }
.interest-pic img, .interest-pic .interest-initial { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; }
.interest-initial { background: linear-gradient(135deg, var(--panel), var(--shadow)); color: #fff; font-weight: 700; font-size: 1.2em; }
.interest-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interests-empty { margin: 0; }
.interests-empty a { color: var(--green); }
.pagination { display: flex; justify-content: center; margin-top: 20px; border-radius: 3px; overflow: hidden; width: fit-content; margin-left: auto; margin-right: auto; }
.pagination a { padding: 6px 11px; background: #fff; color: var(--panel); font-size: 12px; font-weight: 700; border-left: 1px solid #e5e5e5; }
.pagination a:first-child { border-left: 0; }
.pagination a:hover { background: #f2f2f2; text-decoration: none; }
.pagination a.active { background: var(--panel); color: #fff; }
.credit { font-size: 11px; color: var(--text); text-align: center; margin: 14px 0 0; }
.credit a { color: var(--text); text-decoration: underline; }

/* One interest */
.interest-header {
  display: flex; align-items: center; gap: 22px; padding: 22px 28px; margin-bottom: 18px;
  background: #fff; color: #222; border-radius: 6px; box-shadow: 0 0 15px var(--shadow);
}
.interest-header-pic { flex: none; width: 110px; height: 110px; border-radius: 4px; overflow: hidden; }
.interest-header-pic img, .interest-header-pic .interest-initial { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; font-size: 3rem; }
.interest-header-id { min-width: 0; }
.interest-header-id h1 { color: #333; font: 400 22px Arial, Helvetica, sans-serif; margin: 0 0 4px; }
.interest-header-id p { color: #666; margin: 0 0 10px; font-size: 15px; }
.interest-stats { margin: 0 0 0 auto; display: grid; gap: 14px; text-align: center; }
.interest-stats div { display: flex; flex-direction: column-reverse; }
.interest-stats dt { color: #555; font-size: 16px; }
.interest-stats dd { margin: 0; color: var(--green-dark); font-weight: 700; font-size: 16px; }
.interest-page .about a { color: var(--panel); font-weight: 700; }
.load-more {
  display: block; margin-top: 14px; padding: 8px; border-radius: 3px; text-align: center;
  background: #8cc63f; color: #fff; font-size: 12px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.load-more:hover { background: #9bd24e; text-decoration: none; }

@media (max-width: 860px) {
  .interest-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .interests-head { flex-direction: column; align-items: stretch; }
  .interests-head .green-btn { margin-left: 0; }
  .interest-search { gap: 10px; }
  .interest-search .green-btn { min-width: 0; }
  .interest-header { flex-wrap: wrap; padding: 16px; }
  .interest-header-pic { width: 80px; height: 80px; }
  .interest-stats { margin: 0; grid-auto-flow: column; width: 100%; }
}

/* Snog CP */
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; }
.cp-list li:first-child { border-top: 0; }
.cp-list a { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.cp-list li > span:last-child { flex: none; color: var(--text); }
.cp-log code { background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 3px; font-size: 11px; }
.cp-form-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.cp-current-pic { width: 120px; height: 120px; border-radius: 4px; overflow: hidden; }
.cp-current-pic img, .cp-current-pic .interest-initial { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; font-size: 3rem; }
.acct-form .cp-file { padding: 7px; }
.cp-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.cp-form-actions a { color: var(--text); }
.cp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cp-table th { text-align: left; color: var(--text); font-weight: 400; padding: 0 8px 6px; }
.cp-table td { padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, .12); vertical-align: middle; }
.cp-table a { color: #fff; font-weight: 700; }
.cp-table .muted { color: var(--text); }
.cp-thumb { width: 44px; }
.cp-thumb img, .cp-thumb .interest-initial, .cp-thumb .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; object-fit: cover; }
.cp-email { color: var(--text); overflow-wrap: anywhere; }
.cp-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cp-actions form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
/* In tables the cell stays a normal cell (so row lines line up); its buttons sit inline */
.cp-table td.cp-actions { display: table-cell; text-align: right; }
.cp-table td.cp-actions > * { display: inline-flex; vertical-align: middle; margin: 2px 0 2px 6px; }
.cp-btn {
  display: inline-block; border: 0; border-radius: 3px; padding: 5px 9px; cursor: pointer; white-space: nowrap;
  background: var(--shadow); color: #fff; font: 700 11px Arial, Helvetica, sans-serif;
}
.cp-btn:hover { background: #000; text-decoration: none; }
.cp-btn.danger { background: #d8000c; }
.cp-btn.danger:hover { background: #ec1b27; }
.inline-badge { position: static; display: inline-block; margin-left: 4px; vertical-align: 1px; }
.cp-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.cp-tabs a { padding: 6px 12px; border-radius: 3px; color: var(--text); font-weight: 700; font-size: 12px; }
.cp-tabs a.active { background: var(--shadow); color: #fff; }
.cp-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cp-photos.covers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cp-photos li { background: var(--shadow); border-radius: 4px; overflow: hidden; }
.cp-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cp-photos.covers img { aspect-ratio: 4; }
.cp-photos li > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px; font-size: 12px; }
.cp-photos li > div a { color: #fff; font-weight: 700; }
.cp-photos form { margin: 0 0 0 auto; }
.cp-messages { list-style: none; margin: 0; padding: 0; }
.cp-messages li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.cp-messages li:first-child { border-top: 0; }
.cp-messages li > div { flex: 1; min-width: 0; }
.cp-messages a { color: #fff; font-weight: 700; }
.cp-messages .verb { color: var(--act); font-weight: 700; }
.cp-messages .is-avoid { --act: #f0a3a3; }
.cp-messages p { margin: 4px 0 0; overflow-wrap: anywhere; }
.cp-messages .cp-actions { flex: none; }

@media (max-width: 860px) {
  .cp-two, .cp-form-grid { grid-template-columns: 1fr; }
  .cp-table thead { display: none; }
  .cp-table tr { display: grid; grid-template-columns: 44px 1fr; border-top: 1px solid rgba(255, 255, 255, .12); padding: 6px 0; }
  .cp-table td { border: 0; padding: 3px 8px; }
  .cp-table td:not(.cp-thumb) { grid-column: 2; }
  .cp-actions { justify-content: flex-start; }
  .cp-table td.cp-actions { text-align: left; }
  .cp-table td.cp-actions > * { margin: 2px 6px 2px 0; }
  .cp-messages li { flex-direction: column; }
}

/* Profile cover page */
.cover-preview {
  position: relative; height: 190px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, #7a2e33, var(--wine)) center / cover no-repeat;
  display: grid; place-items: center; box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.cover-preview > span { color: rgba(255, 255, 255, .75); font-size: 13px; padding: 0 20px; text-align: center; }
.cover-preview-id {
  position: absolute; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 10px;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.cover-preview-id .avatar { border-radius: 0; }
.cover-note { font-size: 12px; color: var(--text); margin: 8px 0 22px; }
.cover-note a { color: #fff; text-decoration: underline; }
.cover-top { margin-bottom: 0; }
.remove-cover {
  border: 0; border-radius: 3px; padding: 7px 12px; cursor: pointer;
  background: var(--shadow); color: #fff; font: 700 12px Arial, Helvetica, sans-serif;
}
.remove-cover:hover { background: #d8000c; }

@media (max-width: 860px) {
  .photos-top { grid-template-columns: 1fr; gap: 24px; }
  .cover-preview { height: 150px; }
}

@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; gap: 16px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-grid.three { grid-template-columns: 1fr 2fr 1fr; }
}

@media (max-width: 860px) {
  .profile-cols { grid-template-columns: 1fr; }
  .profile-head { padding: 0 16px 6px; gap: 14px; }
  .profile-avatar .avatar { width: 90px; height: 90px; font-size: 2.2rem; }
  .profile-avatar { margin-top: -36px; }
  .cover { height: 150px; }
  .profile-stats strong, .profile-stats span { font-size: 14px; }
  .profile-stats > * { margin: 0 4px; }
  .answer-buttons { gap: 10px; }
}

@media (max-width: 860px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-checks { grid-column: 1 / -1; }
  .search-btn { flex-basis: 100%; margin-left: 0; }
  .member-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .member-name { font-size: 16px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .account_links { margin-left: auto; }
  .dash-cols { grid-template-columns: 1fr; }
}

/* Phones: stack, sign-up first, labels above inputs */
@media (max-width: 800px) {
  .intro { margin: 20px 0 34px; padding: 20px 22px 24px; }
  .intro h1 { font-size: 24px; }
  .intro p { font-size: 16px; }
  .columns { grid-template-columns: 1fr; gap: 28px; }
  .signup_col { order: -1; }
  .field { grid-template-columns: 1fr; gap: 4px; }
  .field > label { text-align: left; margin: 0; }
  .field.agree, .submit, .snog-buttons, .signup_col h2 { padding-left: 0; }
  .notice { margin-left: 0; }
  .form input:not([type="checkbox"]), .form select, .at-input, .date_select, .notice { max-width: none; }
  .btn_signup { width: 100%; }
  .livenow { padding: 0 12px; }
}
@media (max-width: 420px) {
  .tile-photo { height: 80px; }
  .action-icon svg { width: 28px; height: 28px; }
  .is-snog .action-icon svg { width: 34px; }
}

/* Footer: snog's social accounts (set in Snog CP → Site Settings) */
.ft-social { display: flex; gap: 14px; }
.ft-social a { color: var(--text); }
.ft-social a:hover { color: #fff; }
.ft-social .social-icon { width: 20px; height: 20px; display: block; }

/* Homepage when sign-ups are switched off */
.closed-note h2 { font: 700 20px Arial, Helvetica, sans-serif; margin: 0 0 8px; }
.closed-note p { color: var(--text); margin: 0; }

/* Maintenance Mode holding page */
body.maintenance { display: grid; place-items: center; min-height: 100vh; padding: 20px 16px; }
.maintenance-box { width: 100%; max-width: 440px; text-align: center; background: var(--panel); border-radius: 6px; box-shadow: 0 0 15px var(--shadow); padding: 34px 28px; }
.maintenance-box img { height: 44px; width: auto; }
.maintenance-box h1 { font: 700 24px Arial, Helvetica, sans-serif; margin: 18px 0 6px; }
.maintenance-box p { color: var(--text); margin: 0 0 18px; }
.staff-login summary { cursor: pointer; color: var(--text); font-size: 12px; }
.staff-login form { display: grid; gap: 8px; margin-top: 12px; }
.staff-login input { height: 36px; padding: 0 10px; border: 0; border-radius: 6px; font: 14px Arial, Helvetica, sans-serif; }
.staff-login .btn_signup { width: 100%; }
.maintenance .link-btn { color: var(--text); }

/* Report a member (profile): opens from the red ⚠ pill, same look as Suggest an interest */
.report-box { margin-bottom: 14px; }
.suggest-form select {
  display: block; width: 100%; height: 32px; margin-top: 5px; padding: 0 8px; border: 0; border-radius: 3px;
  background: rgba(52, 23, 29, .55); color: #fff; font: 12px Arial, Helvetica, sans-serif; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.suggest-form select option { background: #4E232C; }
.suggest-form select:focus { outline: 2px solid var(--green); }
.report-btn { background: #d8000c; }
.report-btn:hover { background: #f0202c; }

/* Featured members strip (Members page), picked by staff in Snog CP */
.featured-box { margin-bottom: 14px; }
.featured-box h2 { display: flex; align-items: center; gap: 6px; font: 400 16px Arial, Helvetica, sans-serif; margin: 0 0 12px; }
.featured-box h2 svg { width: 16px; height: 16px; color: var(--green); }
.featured-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.featured-list a { display: block; color: inherit; font-size: 11px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-list .avatar { display: grid; place-items: center; width: 100% !important; height: auto !important; aspect-ratio: 1; margin-bottom: 5px; border-radius: 3px; font-size: 22px; }
@media (max-width: 860px) { .featured-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Header: bell and envelope with unread counts */
.icon-btn { position: relative; padding: 4px; border-radius: 4px; }
.icon-btn:hover, .icon-btn.active { color: #fff; background: rgba(255, 255, 255, .08); }
.icon-count {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #e8364f; color: #fff; font: 700 10px/17px Arial, Helvetica, sans-serif; text-align: center; box-shadow: 0 0 0 2px #1b1b1b;
}

/* Forgot password / reset */
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-box h1 { font: 400 22px Arial, Helvetica, sans-serif; margin: 0 0 8px; }
.auth-box .settings-save { margin-bottom: 12px; }

/* Notifications */
.notif-box h1 { font: 400 22px Arial, Helvetica, sans-serif; margin: 0 0 12px; }
.notif-empty { margin: 0; color: var(--text); }
.notif-list { list-style: none; margin: 0 -22px -18px; padding: 0; }
.notif-list li { border-top: 1px solid var(--line); }
.notif-list a { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: #fff; text-decoration: none; }
.notif-list a:hover { background: rgba(0, 0, 0, .12); }
.notif-list li.new a { background: rgba(175, 197, 54, .12); box-shadow: inset 3px 0 0 var(--green); }
.notif-list .avatar { flex: none; border-radius: 50%; }
.notif-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--shadow); font-size: 18px; }
.notif-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.notif-list time { flex: none; color: var(--text); font-size: 12px; }

/* Messages: conversation list + chat */
.msg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-layout .box { margin: 0; padding: 0; overflow: hidden; }
.msg-list h1 { margin: 0; padding: 16px 18px; font: 400 20px Arial, Helvetica, sans-serif; border-bottom: 1px solid var(--line); }
.msg-list ul { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.msg-list li + li { border-top: 1px solid rgba(166, 76, 83, .5); }
.msg-list a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #fff; text-decoration: none; }
.msg-list a:hover { background: rgba(0, 0, 0, .12); }
.msg-list a.current { background: var(--shadow); }
.msg-list .avatar { flex: none; border-radius: 50%; }
.msg-list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-list-text strong { font-size: 13px; }
.msg-list-text strong .verified { width: 13px; height: 13px; vertical-align: -2px; }
.msg-list-text span { color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-list a.unread .msg-list-text span { color: #fff; font-weight: 700; }
.msg-list-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg-list-meta time { color: var(--text); font-size: 11px; }
.msg-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #1b1b1b; font: 700 10px/18px Arial, Helvetica, sans-serif; text-align: center; }
.msg-empty { margin: 0; padding: 16px 18px; color: var(--text); font-size: 13px; }

.msg-thread { display: flex; flex-direction: column; min-height: 560px; }
.msg-pick { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text); text-align: center; }
.msg-pick svg { width: 48px; height: 48px; opacity: .5; }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .1); }
.msg-back { display: none; color: #fff; font-size: 26px; line-height: 1; text-decoration: none; padding: 0 6px 0 0; }
.msg-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.msg-who:hover { text-decoration: none; }
.msg-who .avatar { border-radius: 50%; }
.msg-who span { display: flex; flex-direction: column; line-height: 1.25; }
.msg-who small { color: var(--text); font-size: 12px; }
.msg-menu { position: relative; }
.msg-menu summary { list-style: none; padding: 4px 8px; border-radius: 4px; color: #fff; cursor: pointer; letter-spacing: 1px; }
.msg-menu summary::-webkit-details-marker { display: none; }
.msg-menu summary:hover { background: rgba(255, 255, 255, .1); }
.msg-menu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 190px; padding: 6px 0; border-radius: 6px; background: #232323; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.msg-menu > div a, .msg-menu > div button { display: block; width: 100%; padding: 8px 14px; border: 0; background: none; color: #ddd; font: 13px Arial, Helvetica, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.msg-menu > div a:hover, .msg-menu > div button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.msg-menu form { margin: 0; }
.msg-menu button { color: #ff9aa5 !important; }

.msg-messages { flex: 1; list-style: none; margin: 0; padding: 16px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; flex-direction: column; max-width: 75%; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--shadow); color: #fff; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.mine .msg-bubble { border-radius: 16px 16px 4px 16px; background: var(--green); color: #1b1b1b; }
.msg time { margin: 2px 6px 0; color: var(--text); font-size: 10px; }
.msg-note { align-self: center; margin: 4px 0 10px; color: var(--text); font-size: 12px; text-align: center; }
.msg-seen { margin: 0 16px 6px; color: var(--text); font-size: 11px; text-align: right; min-height: 1em; }
.msg-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .1); }
.msg-compose textarea {
  flex: 1; min-height: 38px; max-height: 160px; padding: 9px 12px; border: 0; border-radius: 19px; resize: none;
  background: rgba(52, 23, 29, .6); color: #fff; font: 14px/1.4 Arial, Helvetica, sans-serif; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.msg-compose textarea::placeholder { color: rgba(255, 255, 255, .45); }
.msg-compose textarea:focus { outline: 2px solid var(--green); }
.msg-compose .green-btn { height: 38px; border-radius: 19px; }
.msg-compose .green-btn:disabled { opacity: .6; }
.msg-error { margin: 0 16px; color: #ffbaba; font-size: 12px; }
.msg-error:empty { display: none; }
.msg-closed { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; text-align: center; }

/* Settings → Messages and the report form */
.radio-row { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-bottom: 10px !important; cursor: pointer; }
.radio-row input { width: auto !important; margin: 0; accent-color: var(--green); }
.report-evidence { display: flex !important; align-items: center; gap: 8px; grid-column: 1 / -1; font-weight: 400 !important; }
.report-evidence input { width: auto !important; height: auto !important; margin: 0 !important; display: inline !important; box-shadow: none !important; }

@media (max-width: 760px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-layout:not(.has-thread) .msg-thread { display: none; }
  .msg-back { display: block; }
  .msg-thread { min-height: calc(100vh - 200px); }
  .msg-messages { max-height: none; }
}

/* Terms of Use and Privacy Policy */
.legal { padding: 26px 30px 24px; max-width: 760px; }
.legal h1 { font: 400 24px Arial, Helvetica, sans-serif; margin: 0 0 4px; }
.legal-updated { color: rgba(255, 255, 255, .6); font-size: 12px !important; }
.legal h2 { font: 700 15px Arial, Helvetica, sans-serif; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); scroll-margin-top: 70px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.55; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); }
.agree .check span { text-align: left; }
.agree .check a { color: var(--green); }
@media (max-width: 560px) { .legal { padding: 20px 18px; } }

/* Live Feed: Everyone / Following tabs, sitting on top of the feed panel */
.feed-tabs { display: flex; gap: 4px; }
.feed-tabs a { padding: 9px 20px 8px; border-radius: 6px 6px 0 0; background: rgba(130, 52, 66, .45); color: #ddd; font-size: 13px; font-weight: 700; }
.feed-tabs a:hover { color: #fff; text-decoration: none; background: rgba(130, 52, 66, .75); }
.feed-tabs a.active { background: var(--panel); color: #fff; box-shadow: inset 0 3px 0 var(--green); }
.feed-tabs + .signup_feed { border-top-left-radius: 0; }
.feed-tabs + .signup_feed .livenow { padding-top: 4px; }
.feed-empty .empty p + p { margin-top: 14px; }
.feed-empty .pill { display: inline-flex; color: #fff; }
