/* Sinful — "after dark" theme: classic three-column community layout,
   twisted with wine/rose-gold glow, glass cards and story-ring avatars. */
:root {
  --bg: #0a0708; --bg2: #120d10; --card: #161015; --card2: #1d151b; --line: #2a1f26; --line2: #3a2a34;
  --text: #f1e6ec; --muted: #9c8893; --dim: #6f5f68;
  --accent: #d81b60; --accent2: #ff5c8d; --wine: #7a0f35; --rose: #e9b9a4; --gold: #f2c066;
  --ok: #3ccf8e; --danger: #ff4d5e; --blue: #5cc8ff;
  --r: 14px; --top: 56px;
  --grad: linear-gradient(135deg, #ff5c8d 0%, #d81b60 45%, #7a0f35 100%);
  --ring: conic-gradient(from 210deg, #f2c066, #ff5c8d, #d81b60, #8e24aa, #f2c066);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 500px at 85% -10%, rgba(216,27,96,.13), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(122,15,53,.18), transparent 60%); }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; font-weight: 600; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 15px; }
.serif { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: .2px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.center { text-align: center; padding: 40px 16px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; } .nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top bar ---------- */
#nav { position: sticky; top: 0; z-index: 30; height: var(--top); background: rgba(8,5,7,.88); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar { height: 100%; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: Fraunces, serif; font-style: italic; font-size: 22px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255,92,141,.5)); }
.qs { position: relative; width: 250px; }
.qs input { padding-left: 34px; background: rgba(255,255,255,.05); border-color: transparent; height: 36px; }
.qs input:focus { background: var(--card); }
.qs .ico { position: absolute; left: 11px; top: 9px; color: var(--muted); pointer-events: none; }
.topnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.topnav a { color: #cdbcc5; padding: 7px 9px; border-radius: 9px; white-space: nowrap; font-weight: 500; font-size: 14.5px; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.topnav a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent2); border-radius: 0; }
.icons { display: flex; align-items: center; gap: 4px; }
.ibtn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #d9c7d0; background: none; border: 0; padding: 0; cursor: pointer; }
.ibtn:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.ibtn svg { width: 20px; height: 20px; }
.ibtn .badge { position: absolute; top: 3px; right: 2px; margin: 0; }
.badge { background: var(--accent); color: #fff; font-size: 10.5px; line-height: 16px; min-width: 16px; text-align: center; border-radius: 99px; padding: 0 5px; margin-left: 4px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.dd { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; z-index: 40; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.dd a, .dd button.item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--text); background: none; border: 0; font-size: 14px; text-align: left; }
.dd a:hover, .dd button.item:hover { background: var(--card2); text-decoration: none; }
.dd .sep { height: 1px; background: var(--line); margin: 5px 0; }
.dd h4 { margin: 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); }
.dd.wide { width: 380px; max-height: 70vh; overflow-y: auto; }
.rel { position: relative; }

/* ---------- layout ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 22px 16px 100px; }
.l3 { display: grid; grid-template-columns: 200px minmax(0, 760px) 250px; gap: 28px; justify-content: center; align-items: start; }
.l2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.l2r { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: calc(var(--top) + 22px); }
@media (max-width: 1180px) { .l3 { grid-template-columns: 190px minmax(0, 1fr); } .l3 > .right { display: none; } }
@media (max-width: 860px) { .l3, .l2, .l2r { grid-template-columns: 1fr; } .l3 > .left { position: static; } .side { position: static; } .qs { width: 160px; } .topnav { display: none; } .mnav { display: flex !important; } }
@media (max-width: 520px) { .qs { display: none; } }

.subnav a { display: block; color: var(--muted); padding: 9px 14px; border-radius: 10px; font-size: 16px; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: #fff; background: linear-gradient(90deg, rgba(216,27,96,.22), rgba(216,27,96,0)); box-shadow: inset 3px 0 0 var(--accent2); }
.subnav .sub a { font-size: 14.5px; padding: 7px 14px 7px 30px; }
.subnav .sub a.on { background: none; box-shadow: none; color: #fff; }
.subnav .sub { margin: 4px 0 14px; }
.subnav .plus { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line2); border-radius: 5px; margin-left: 8px; font-size: 14px; color: var(--muted); }
.mnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(8,5,7,.95); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.mnav a { color: var(--muted); font-size: 11px; display: grid; justify-items: center; gap: 2px; }
.mnav a.on { color: var(--accent2); }
.mnav svg { width: 22px; height: 22px; }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, rgba(29,21,27,.92), rgba(22,16,21,.92)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.flat { background: var(--card); }
.sectionhead { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0 12px; margin: 22px 0 14px; }
.sectionhead h1, .sectionhead h2 { margin: 0; font-family: Fraunces, serif; font-weight: 500; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- controls ---------- */
button, .btn { font: inherit; border: 1px solid var(--line2); background: var(--card2); color: var(--text); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 18px rgba(216,27,96,.25); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.1); }
button.follow { background: var(--wine); border-color: #a3184b; color: #fff; padding: 5px 12px; font-size: 13px; font-weight: 600; }
button.follow.on { background: transparent; color: var(--muted); border-color: var(--line2); }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; }
button.ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; }
button.danger, .danger { color: var(--danger); }
button.on { color: var(--accent2); border-color: var(--accent); }
button.sm, .btn.sm { padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216,27,96,.15); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; }

/* ---------- avatars & badges ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); display: grid; place-items: center; font-weight: 700; color: #fff; }
.avatar.xl { width: 148px; height: 148px; font-size: 56px; } .avatar.lg { width: 96px; height: 96px; font-size: 38px; }
.avatar.md { width: 56px; height: 56px; font-size: 22px; } .avatar.sm { width: 30px; height: 30px; font-size: 12px; } .avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.ring { padding: 2.5px; border-radius: 50%; background: var(--ring); display: inline-grid; flex: none; }
.ring > .avatar { box-shadow: 0 0 0 2.5px var(--bg); }
.ring.off { background: var(--line2); }
.vbadge { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); color: #001523; font-size: 9px; font-weight: 900; margin-left: 4px; vertical-align: 1px; }
.pbadge { color: var(--gold); font-size: 13px; margin-left: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-left: 6px; box-shadow: 0 0 8px var(--ok); }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(216,27,96,.1); color: #f6b7cd; border: 1px solid rgba(216,27,96,.28); margin: 0 4px 5px 0; }
a.tag:hover { text-decoration: none; border-color: var(--accent2); }
.tag.pick { cursor: pointer; } .tag.pick.sel { background: var(--grad); color: #fff; border-color: transparent; }
.role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; background: rgba(242,192,102,.13); color: var(--gold); font-weight: 600; }
.uname { color: var(--text); font-weight: 600; }
.uname:hover { color: var(--accent2); text-decoration: none; }

/* ---------- composer ---------- */
.composer { display: flex; gap: 12px; align-items: center; }
.composer .box { flex: 1; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; height: 48px; padding: 0 6px 0 16px; cursor: text; }
.composer .box:hover { border-color: #55394a; }
.composer .ph { flex: 1; color: var(--muted); font-size: 16px; }
.composer .acts { display: flex; }
.composer .acts button { background: none; border: 0; color: #cdbcc5; padding: 6px 10px; font-size: 13.5px; border-left: 1px solid var(--line2); border-radius: 0; }
.composer .acts button:first-child { border-left: 0; }
.composer .acts button:hover { color: var(--accent2); }
@media (max-width: 600px) { .composer .acts span { display: none; } }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 8px 0; }
.previews > * { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; background: #000; }

/* ---------- feed card ---------- */
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fcard > header { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.fcard .who { flex: 1; min-width: 0; line-height: 1.3; }
.fcard .who .with { color: var(--muted); font-weight: 400; }
.fcard .text { padding: 2px 16px 10px; white-space: pre-wrap; word-wrap: break-word; }
.fcard .wtitle { padding: 4px 16px 0; font-family: Fraunces, serif; font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.fcard .wbody { padding: 0 16px 10px; white-space: pre-wrap; color: #ddcbd4; }
.fcard .wbody.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--rose); padding: 0 16px; }
.fcard footer { display: flex; gap: 4px; align-items: center; padding: 6px 10px 10px; }
.fcard footer button { background: none; border: 0; color: var(--muted); padding: 6px 10px; }
.fcard footer button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.fcard footer button.on { color: var(--accent2); }
.fcard .comments { border-top: 1px solid var(--line); padding: 12px 14px; background: rgba(0,0,0,.15); }
.comment { display: flex; gap: 9px; margin-bottom: 10px; font-size: 14px; }
.comment .bubble { background: var(--card2); border-radius: 12px; padding: 6px 11px; display: inline-block; max-width: 100%; }

.carousel { position: relative; background: #050304; display: grid; place-items: center; }
.carousel .slide { display: none; width: 100%; max-height: 760px; object-fit: contain; }
.carousel .slide.on { display: block; }
.carousel img.slide { cursor: zoom-in; }
.carousel .count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.65); font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.carousel .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); justify-content: center; padding: 0; color: #fff; font-size: 18px; opacity: 0; transition: opacity .15s; }
.carousel:hover .nav { opacity: 1; }
.carousel .prev { left: 10px; } .carousel .next { right: 10px; }
.carousel .dots { position: absolute; bottom: 10px; display: flex; gap: 5px; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); } .carousel .dots i.on { background: #fff; }

/* ---------- right column ---------- */
.promo { position: relative; overflow: hidden; border-radius: var(--r); padding: 18px; background: radial-gradient(circle at 80% 0%, rgba(242,192,102,.35), transparent 55%), var(--grad); color: #fff; }
.promo h3 { font-family: Fraunces, serif; font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.promo .btn { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.3); color: #fff; margin-top: 10px; }
.mini h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin: 0 0 10px; }
.mini .it { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.datechip { width: 44px; flex: none; text-align: center; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); line-height: 1.1; padding: 5px 0; }
.datechip b { display: block; font-size: 18px; color: var(--accent2); } .datechip span { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.datechip.lg { width: 64px; padding: 8px 0; } .datechip.lg b { font-size: 26px; }

/* ---------- user cards / explore ---------- */
.ucard { padding: 0; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.ucard:hover { transform: translateY(-3px); border-color: #55394a; }
.ucard .cover { aspect-ratio: 1; background: linear-gradient(135deg, #3b1230, #170d14); display: grid; place-items: center; overflow: hidden; }
.ucard .cover img { width: 100%; height: 100%; object-fit: cover; }
.ucard .cover .avatar { width: 96px; height: 96px; font-size: 38px; }
.ucard .body { padding: 12px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; grid-auto-flow: dense; }
.mosaic .m { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--card); border-radius: 4px; }
.mosaic .m.big { grid-column: span 2; grid-row: span 2; }
.mosaic .m img, .mosaic .m video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mosaic .m:hover img { transform: scale(1.04); }
.mosaic .m .ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(10,7,8,.55); opacity: 0; transition: opacity .2s; font-weight: 600; }
.mosaic .m:hover .ov { opacity: 1; }
.mosaic .m .vi { position: absolute; top: 8px; right: 8px; }

/* ---------- profile ---------- */
.phero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.phero .banner { height: 150px; background: radial-gradient(600px 200px at 20% 0%, rgba(255,92,141,.35), transparent), radial-gradient(500px 200px at 90% 100%, rgba(242,192,102,.18), transparent), linear-gradient(120deg, #2a0b1b, #12080e); }
.phero .inner { display: flex; gap: 22px; padding: 0 22px 20px; align-items: flex-end; margin-top: -60px; flex-wrap: wrap; }
.phero h1 { font-family: Fraunces, serif; font-weight: 500; font-size: 32px; margin: 0; }
.counts { display: flex; gap: 18px; margin: 8px 0; }
.counts a, .counts span { color: var(--muted); font-size: 14px; cursor: pointer; } .counts b { color: var(--text); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 10px 14px; white-space: nowrap; }
.tabs button.on, .tabs a.on { color: var(--text); border-color: var(--accent2); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.photos .ph { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg2); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph .meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ---------- groups / events / places ---------- */
.gcard { display: flex; gap: 14px; align-items: flex-start; }
.gicon { width: 54px; height: 54px; border-radius: 14px; flex: none; display: grid; place-items: center; font-family: Fraunces, serif; font-size: 24px; color: #fff; }
.ecard { display: flex; gap: 14px; align-items: flex-start; }
.place { position: relative; min-height: 120px; border-radius: var(--r); overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border: 1px solid var(--line); }
.place:hover { text-decoration: none; border-color: var(--accent); }
.place h3 { font-family: Fraunces, serif; font-size: 22px; font-weight: 500; margin: 0; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- swipe ---------- */
.swipe { max-width: 400px; margin: 0 auto; }
.swipe .scard { position: relative; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #4a1838, #190d15); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.swipe .scard img { width: 100%; height: 100%; object-fit: cover; }
.swipe .scard .ini { width: 100%; height: 100%; display: grid; place-items: center; font-size: 120px; font-weight: 700; color: rgba(255,255,255,.85); }
.swipe .scard .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.swipe .bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.swipe .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); } .swipe .bars i.on { background: #fff; }
.swipe .tap { position: absolute; top: 0; bottom: 40%; width: 50%; z-index: 1; cursor: pointer; } .swipe .tap.r { right: 0; }
.swipe .btns { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.swipe .btns button { width: 64px; height: 64px; border-radius: 50%; justify-content: center; font-size: 26px; }
.swipe .btns .like { background: var(--grad); border: 0; }

/* ---------- messages ---------- */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 140px); min-height: 420px; padding: 0; overflow: hidden; }
.chat .list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text); align-items: center; }
.conv:hover, .conv.on { background: var(--card2); text-decoration: none; }
.chat .thread { display: flex; flex-direction: column; min-height: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--card2); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--grad); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg time { display: block; font-size: 10px; opacity: .6; margin-top: 2px; }
.chat form, .minichat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .chat { grid-template-columns: 1fr; } .chat.has-thread .list { display: none; } .chat:not(.has-thread) .thread { display: none; } }
.heads { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.heads .head { cursor: pointer; position: relative; transition: transform .15s; } .heads .head:hover { transform: scale(1.08); }
.heads .head .badge { position: absolute; top: -2px; right: -4px; }
.heads .fab { width: 50px; height: 50px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); display: grid; place-items: center; color: #fff; padding: 0; justify-content: center; }
.minichat { position: fixed; right: 84px; bottom: 18px; width: 330px; height: 440px; z-index: 26; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.minichat header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card2); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .heads { bottom: 74px; } .minichat { right: 8px; left: 8px; width: auto; bottom: 74px; } }

/* ---------- misc ---------- */
.banner2 { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner2.warn { background: rgba(242,192,102,.08); border-color: rgba(242,192,102,.3); color: #f6d690; }
.banner2.info { background: rgba(216,27,96,.08); border-color: rgba(216,27,96,.3); }
.stat { text-align: center; } .stat b { display: block; font-size: 28px; font-family: Fraunces, serif; font-weight: 500; color: var(--accent2); }
.modal { position: fixed; inset: 0; background: rgba(5,3,4,.8); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--card); border: 1px solid var(--line2); border-radius: 20px; max-width: 580px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal .box.wide { max-width: 960px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.auth { max-width: 420px; margin: 20px auto; }
.hero { text-align: center; margin: 30px 0 26px; }
.hero h1 { font-family: Fraunces, serif; font-style: italic; font-weight: 500; font-size: 56px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
video { border-radius: 0; background: #000; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.tablewrap { overflow-x: auto; }
.plan { flex: 1; min-width: 240px; } .plan ul { padding-left: 18px; } .plan li { margin-bottom: 4px; }
.plan.premium { border-color: var(--gold); box-shadow: 0 0 40px rgba(242,192,102,.1); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }

/* ===== round 3: left menu, promos, speed dates, stories, visits, tasks, ads, plans ===== */
.l3 > .left { max-height: calc(100vh - var(--top) - 34px); overflow-y: auto; scrollbar-width: thin; }
.lmenu { display: flex; flex-direction: column; gap: 4px; }
.lme { display: flex; gap: 10px; align-items: center; color: var(--text); padding: 4px 4px 14px; }
.lme:hover { text-decoration: none; }
.lme .avatar.lg { width: 58px; height: 58px; font-size: 22px; }
.lme b { font-size: 15px; }
.mpill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: var(--grad); color: #fff; margin-top: 3px; letter-spacing: .2px; }
.mpill.gold { background: linear-gradient(135deg, #f7d58b, #c48a2c); color: #2a1600; }
.mpill.free { background: var(--card2); color: var(--muted); border: 1px solid var(--line2); }
.mtop { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.mtop a, .msec summary { display: flex; gap: 11px; align-items: center; color: #d9c7d0; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.mtop a:hover, .msec summary:hover { background: rgba(255,255,255,.05); text-decoration: none; color: #fff; }
.mtop a.on { background: var(--card2); color: #fff; box-shadow: inset 3px 0 0 var(--accent2); }
.mtop svg, .msec summary svg { color: var(--muted); flex: none; }
.cnt { background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 5px; }
.msec summary { list-style: none; font-size: 11.5px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.msec summary::-webkit-details-marker { display: none; }
.msec summary > svg:last-child { transition: transform .2s; opacity: .6; }
.msec[open] summary > svg:last-child { transform: rotate(180deg); }
.msub { display: flex; flex-direction: column; padding: 0 0 8px 40px; }
.msub a { color: var(--muted); font-size: 14px; padding: 5px 0; }
.msub a:hover, .msub a.on { color: #fff; text-decoration: none; }
.hot { background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; letter-spacing: .5px; }
.social { display: flex; gap: 8px; padding: 18px 10px 6px; }
.sicon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.copy { padding: 6px 12px 20px; }
.menu-page { max-width: 520px; margin: 0 auto; }

/* promo carousel */
.promos { position: relative; border-radius: 18px; overflow: hidden; height: 220px; margin-bottom: 22px; border: 1px solid var(--line2); }
.pslide { position: absolute; inset: 0; display: flex; align-items: center; padding: 26px 30px; color: #fff; opacity: 0; transition: opacity .6s; pointer-events: none; }
.pslide.on { opacity: 1; pointer-events: auto; }
.pslide:hover { text-decoration: none; }
.th-wine { background: radial-gradient(circle at 85% 30%, rgba(255,92,141,.45), transparent 50%), linear-gradient(120deg, #12060b 0%, #3d0a20 55%, #7a0f35 100%); }
.th-gold { background: radial-gradient(circle at 85% 40%, rgba(242,192,102,.35), transparent 50%), linear-gradient(120deg, #0f0a05 0%, #2e1d0a 60%, #5a3a10 100%); }
.th-night { background: radial-gradient(circle at 80% 40%, rgba(142,36,170,.45), transparent 55%), linear-gradient(120deg, #07050d 0%, #1b0f2e 60%, #3a0f4a 100%); }
.ptxt { flex: 1; min-width: 0; z-index: 1; }
.kick { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.ptitle { font-family: Fraunces, serif; font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.5px; text-transform: uppercase; background: linear-gradient(90deg, #fff, #ffc2d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psub { font-size: 16px; margin-top: 10px; color: #f3dbe4; max-width: 420px; }
.pcta { display: inline-block; margin-top: 16px; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); font-weight: 600; font-size: 14px; backdrop-filter: blur(6px); }
.part { width: 170px; height: 170px; flex: none; filter: drop-shadow(0 0 30px rgba(255,92,141,.35)); }
.part svg { width: 100%; height: 100%; }
.pnav { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; padding: 0; justify-content: center; background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.25); color: #fff; font-size: 20px; z-index: 2; }
.pdots { position: absolute; left: 30px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.pdots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); } .pdots i.on { background: #fff; }
@media (max-width: 600px) { .promos { height: 190px; } .ptitle { font-size: 30px; } .part { width: 90px; height: 90px; } .pslide { padding: 20px; } .psub { font-size: 14px; } }

/* speed dates strip & grid */
.strip-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; color: var(--muted); font-size: 15px; }
.strip-head a { color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.strip-head a:hover { color: var(--accent2); text-decoration: none; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.dcard { flex: 0 0 124px; display: flex; flex-direction: column; align-items: stretch; padding: 0 0 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; overflow: hidden; gap: 2px; cursor: pointer; color: var(--text); font: inherit; }
.dcard:hover { border-color: #5a3a4b; transform: translateY(-2px); }
.dimg { position: relative; padding: 12px 12px 0; margin-bottom: 8px; }
.dimg img, .dimg .ini { width: 100%; max-width: 124px; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; margin: 0 auto; display: grid; place-items: center; font-size: 42px; font-weight: 700; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px rgba(216,27,96,.5); }
.dimg .dot { position: absolute; right: 22%; bottom: 4px; }
.dname { font-weight: 600; font-size: 13.5px; background: var(--card2); margin: 0 8px; border-radius: 8px; padding: 2px 6px; }
.dtype { font-size: 12.5px; color: var(--muted); }
.ages { color: var(--accent2); font-weight: 600; }
.dmeta { font-size: 11.5px; color: var(--dim); padding: 0 8px; display: flex; gap: 4px; justify-content: center; align-items: center; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.dgrid .dcard { flex: none; }

/* chips */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; scrollbar-width: none; align-items: center; }
.chip { white-space: nowrap; padding: 6px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.chip:hover { color: var(--text); text-decoration: none; }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.vsep { width: 1px; height: 20px; background: var(--line2); flex: none; margin: 0 4px; }

/* stories */
.stories { margin: 14px 0 18px; }
.story { position: relative; flex: 0 0 118px; height: 210px; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); cursor: pointer; }
.story .sbg { position: absolute; inset: 0; }
.story .sbg img, .story .sbg video, .story .sbg .ini { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 46px; font-weight: 700; transition: transform .3s; }
.story:hover .sbg img { transform: scale(1.05); }
.story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.8)); }
.story .sav { position: absolute; top: 8px; left: 8px; z-index: 1; }
.story .slabel { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.seen { opacity: .55; }
.story.featured { border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(242,192,102,.25); }
.story.featured .slabel { text-align: center; background: var(--gold); color: #2a1600; left: 0; right: 0; bottom: 0; padding: 4px; }
.story.create { background: var(--card); }
.story.create .sbg { bottom: 56px; }
.story.create::after { display: none; }
.story.create .splus { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 4px var(--card); z-index: 1; }
.story.create .slabel { color: var(--text); text-align: center; bottom: 12px; }
.sviewer { position: relative; width: min(420px, 100vw); height: min(760px, 92vh); background: #000; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; margin: auto; }
.sbars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sbars i { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.sbars i.done b { width: 100%; } .sbars b { display: block; height: 100%; width: 0; background: #fff; }
.sbars b.run { animation: sbar linear forwards; }
@keyframes sbar { to { width: 100%; } }
.shead { position: absolute; top: 18px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; z-index: 3; color: #fff; }
.shead a { color: #fff; } .shead .ghost { color: #fff; }
.smedia { flex: 1; position: relative; display: grid; place-items: center; }
.smedia img, .smedia video { width: 100%; height: 100%; object-fit: contain; }
.smedia .tap { position: absolute; top: 0; bottom: 0; width: 35%; cursor: pointer; z-index: 2; } .smedia .tap.l { left: 0; } .smedia .tap.r { right: 0; }
.scap { position: absolute; bottom: 70px; left: 0; right: 0; text-align: center; padding: 10px 16px; color: #fff; font-size: 16px; text-shadow: 0 1px 8px #000; z-index: 3; }
.sreply { display: flex; gap: 8px; padding: 10px; background: #000; z-index: 3; }
.sreply input { border-radius: 99px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
#modal:has(.sviewer) { background: rgba(0,0,0,.92); }

/* visits / friends rows */
.vrow { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: 0; }
a.vrow:hover { background: rgba(255,255,255,.03); text-decoration: none; }
.vrow.locked { filter: saturate(.4); }
.avatar.blur { background: linear-gradient(135deg, #5a2140, #20101a); filter: blur(3px); }
.vrow .bar { width: 50%; height: 10px; border-radius: 5px; background: var(--line2); filter: blur(2px); margin-bottom: 6px; }
.newdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); flex: none; }
.frq { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; }
.frq:hover { background: rgba(255,255,255,.04); }
button.friendbtn.friends { border-color: var(--ok); color: var(--ok); }
button.friendbtn.received { background: var(--wine); color: #fff; border-color: #a3184b; }
button.friendbtn.sent { color: var(--muted); }

/* tasks */
.progress { height: 10px; border-radius: 99px; background: var(--card2); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s; }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task:hover { background: rgba(255,255,255,.03); text-decoration: none; }
.task .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: none; }
.task.done { color: var(--muted); } .task.done .grow { text-decoration: line-through; }
.task.done .chk { background: var(--ok); border-color: var(--ok); color: #002313; }

/* travel */
.trip { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trip:last-child { border-bottom: 0; }

/* right column: tips, sponsored, footer */
.tips h4, .ads h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin: 0 0 10px; }
.tips b { display: block; margin-bottom: 6px; }
.tips .tart { width: 110px; height: 110px; margin: 6px auto 8px; filter: drop-shadow(0 0 18px rgba(242,192,102,.3)); }
.tips .tart svg { width: 100%; height: 100%; }
.tips .small { color: var(--muted); margin-bottom: 8px; }
.ads h4 { margin: 0; }
.ads .ad { display: block; position: relative; border-radius: 12px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); color: #fff; }
.ads .ad img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ads .ad .adt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.ads .ad:hover { text-decoration: none; border-color: var(--accent); }
.flinks { font-size: 12px; color: var(--dim); line-height: 1.9; padding: 0 4px; }
.flinks a { color: var(--muted); }

/* header extras */
.ibtn.lang { width: auto; padding: 0 6px; gap: 3px; grid-auto-flow: column; }
.ibtn.lang .lc { font-size: 10px; font-weight: 700; letter-spacing: .5px; }

/* premium plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto 10px; }
.plan { position: relative; display: flex; flex-direction: column; } .plan ul { flex: 1; }
.plan .price { font-family: Fraunces, serif; font-size: 30px; margin: -4px 0 6px; }
.plan.current { box-shadow: 0 0 0 2px var(--accent2); }
.plan.lifetime { border-color: var(--gold); background: radial-gradient(circle at 80% 0%, rgba(242,192,102,.14), transparent 55%), var(--card); }
.ribbon { position: absolute; top: 14px; right: -2px; background: var(--danger); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 6px 0 0 6px; }

@media (max-width: 860px) {
  .l3 > .left { display: none; }
  .mnav a svg { width: 22px; height: 22px; }
}
.hscroll, .chips, .l3 > .left { scrollbar-color: var(--line2) transparent; }
.hscroll::-webkit-scrollbar { height: 6px; } .hscroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; } .hscroll::-webkit-scrollbar-track { background: transparent; }
.credits { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 12px; }
.credits a { color: var(--muted); }

/* ---------- mobile ---------- */
.l3 > *, .l2 > *, .l2r > * { min-width: 0; }
body { overflow-x: clip; }
@media (max-width: 860px) {
  .l3, .l2, .l2r { grid-template-columns: minmax(0, 1fr); }
  .hide-m { display: none !important; }
  .dd.wide { width: min(380px, calc(100vw - 16px)); }
  .dd.pop { position: fixed; top: calc(var(--top) + 4px); left: 8px !important; right: 8px !important; width: auto; max-height: calc(100vh - var(--top) - 90px); overflow-y: auto; }
}
@media (max-width: 520px) {
  main { padding: 14px 10px 96px; }
  .topbar { gap: 6px; padding: 0 10px; }
  .logo { font-size: 19px; } .logo svg { width: 26px; height: 26px; }
  .icons { gap: 0; margin-left: auto; }
  .ibtn { width: 34px; height: 34px; }
  .card { padding: 14px; }
  .kv { grid-template-columns: 96px 1fr; }
  h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .photos { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  input, select, textarea { font-size: 16px; } /* stop iOS zoom on focus */
}
@media (max-width: 860px) {
  .heads { display: none; }
  .minichat { top: calc(var(--top) + 6px); height: auto; }
}
@media (max-width: 520px) {
  .composer { gap: 8px; }
  .composer .box { padding: 0 2px 0 12px; }
  .composer .ph { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .composer .acts button { padding: 6px 8px; }
  .avatar.xl { width: 104px; height: 104px; font-size: 40px; }
  .pnav { display: none; }
  .part { width: 72px; height: 72px; }
}
@media (max-width: 520px) {
  .row > .field.grow { flex: 1 1 100%; }
}

/* ---------- member map ---------- */
.mappage { max-width: 1100px; margin: 0 auto; }
.mapbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mapbar .chips { margin: 0; }
.mapbox { position: relative; height: min(68vh, 640px); min-height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #0d0a0c; }
#map { position: absolute; inset: 0; background: #0d0a0c; }
.maploc { position: absolute; z-index: 500; right: 10px; top: 10px; background: rgba(20,12,17,.92); }
.mapnote:empty { display: none; }
.mapnote { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(20,12,17,.94); border: 1px solid var(--line2); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.mapfoot { display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.mpin { border-radius: 50%; padding: 2px; background: var(--line2); box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.mpin.g-f { background: #ff5c8d; } .mpin.g-m { background: #6ea8ff; } .mpin.g-c { background: linear-gradient(135deg, #ff5c8d, #6ea8ff); } .mpin.g-o { background: #b48cff; }
.mpin .avatar { width: 36px; height: 36px; font-size: 15px; border: 2px solid #0d0a0c; }
.mpin i { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #0d0a0c; }
.mme { display: grid; justify-items: center; }
.mme .avatar { width: 42px; height: 42px; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255,92,141,.55), 0 6px 18px rgba(0,0,0,.6); }
.mme b { margin-top: 2px; font-size: 10px; background: #fff; color: #111; padding: 0 6px; border-radius: 99px; line-height: 15px; }
.mclu { display: grid; place-items: center; border-radius: 50%; background: rgba(216,27,96,.35); }
.mclu span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.mapbox .leaflet-popup-content-wrapper, .mapbox .leaflet-popup-tip { background: var(--card); color: var(--text); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.mapbox .leaflet-popup-content { margin: 12px; }
.mapbox .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.mapbox .leaflet-container { font: inherit; }
.mapbox .leaflet-control-attribution { background: rgba(13,10,12,.75) !important; color: var(--dim) !important; }
.mapbox .leaflet-control-attribution a { color: var(--muted) !important; }
.mapbox .leaflet-bar a { background: var(--card); color: var(--text); border-color: var(--line2); }
.mapbox .leaflet-bar a:hover { background: var(--card2); }
.mpop { display: flex; gap: 12px; color: var(--text) !important; align-items: flex-start; }
.mpop:hover { text-decoration: none; }
.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.nrow { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.nrow:hover { border-color: var(--line2); text-decoration: none; }
.nrow .dist { color: var(--accent2); white-space: nowrap; }
@media (max-width: 520px) {
  .mapbox { height: 58vh; min-height: 300px; border-radius: 12px; }
  .maploc span { display: none; }
  .mapbar #mcount { width: 100%; }
}
.darktiles { filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.92) saturate(.22); }

/* points */
.ptchip { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: rgba(247,213,139,.12); color: #f7d58b; border: 1px solid rgba(247,213,139,.3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cnt.soft { background: var(--card2); color: var(--muted); }
.pthero { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.ptbig { font: 500 44px/1.05 Fraunces, serif; color: #f7d58b; font-variant-numeric: tabular-nums; }
.ptmid { font: 500 24px/1.2 Fraunces, serif; font-variant-numeric: tabular-nums; }
.ptgrp { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.ptrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.ptrow:last-child { border-bottom: 0; }
.ptrow > b { font-variant-numeric: tabular-nums; color: #8ef0c2; white-space: nowrap; }
.ptrow > b.neg { color: #ffb3bb; }
.lbrow:hover { text-decoration: none; background: rgba(255,255,255,.02); }
.lbrow.me { background: rgba(216,27,96,.08); }
.lbrow > b { color: var(--text); }
.lbrow .rk { width: 26px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.ptcount { color: inherit; } .ptcount b { color: #f7d58b; }
@media (max-width: 520px) { .pthero { gap: 18px; } .ptbig { font-size: 36px; } .ptrow { padding: 10px 12px; } }

/* membership & invites */
.plansub { margin: -2px 0 10px; }
.planstate { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 8px; border: 1px dashed var(--line2); border-radius: 10px; }
.planstate.on { color: var(--text); border: 1px solid var(--accent2); background: rgba(216,27,96,.08); font-weight: 600; }
.planstate.wait { color: #f6d48d; border-color: rgba(242,192,102,.4); }
.invcode { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; background: var(--card2); padding: 2px 8px; border-radius: 6px; }
.ist { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(242,192,102,.14); color: #f6d48d; margin-left: 6px; }
.ist.ok { background: rgba(60,207,142,.14); color: #8ef0c2; } .ist.off { background: var(--card2); color: var(--dim); }
.invrow { flex-wrap: wrap; }

/* loading states */
.loader { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 90px 16px; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 92, 141, .18); border-top-color: #ff5c8d; animation: spin .75s linear infinite; display: inline-block; flex: none; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; margin-right: 8px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; vertical-align: -3px; }
button.busy { opacity: .85; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.5s; } }
