/* SweetLime TT — shared design system */
:root {
  --bg: #120b18;
  --bg-2: #180f22;
  --panel: #1d1428;
  --panel-2: #261a36;
  --border: #372a4a;
  --text: #f6eefb;
  --muted: #9d8bb0;
  --pink: #ff4d8d;
  --coral: #ff7a59;
  --purple: #a371f7;
  --green: #3fb950;
  --red: #f85149;
  --radius: 14px;
  --grad: linear-gradient(135deg, var(--coral), var(--pink));
  --shadow: 0 10px 34px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(900px 500px at 50% -120px, rgba(255,77,141,.10), transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; flex: 1; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18,11,24,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; height: 58px;
}
.brand {
  font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center; font-size: .9rem;
  box-shadow: 0 0 14px rgba(255,77,141,.4);
}
.brand small { font-weight: 600; color: var(--muted); font-size: .68rem; display: block; line-height: 1; margin-top: 2px; }
.topbar .spacer { flex: 1; }

.back-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 7px 12px; font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.back-btn:active { background: var(--panel); }

.topbar, .tabbar { transition: transform .28s ease; }
body.scrolled-down .topbar { transform: translateY(-110%); }
body.scrolled-down .tabbar { transform: translateY(110%); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: sticky; bottom: 0; z-index: 40;
  background: rgba(18,11,24,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.tabbar-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; justify-content: space-around;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  text-decoration: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .64rem; font-weight: 700; padding: 4px 14px; border-radius: 10px;
}
.tabbar a .ico { font-size: 1.25rem; }
.tabbar a.active { color: var(--pink); background: rgba(255,77,141,.1); }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.card h2 {
  font-size: .82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: 12px;
}

.hero { text-align: center; padding: 28px 0 18px; }
.hero h1 {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin-top: 8px; font-size: .92rem; line-height: 1.6; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.field input[type=text] {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 1.1rem; font-weight: 600;
  padding: 13px 14px; outline: none; font-family: inherit;
}
.field input[type=text]:focus { border-color: var(--pink); }

/* ---------- Interest chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px;
  padding: 9px 14px; font-size: .85rem; font-weight: 600;
  cursor: pointer; user-select: none; transition: all .15s;
  font-family: inherit;
}
.chip.on {
  border-color: var(--pink); color: #fff;
  background: rgba(255,77,141,.16);
  box-shadow: 0 0 12px rgba(255,77,141,.35);
}
.chip.small { padding: 6px 11px; font-size: .76rem; }
.chip.locked { cursor: default; opacity: .85; }
.cat-head {
  width: 100%; margin: 6px 0 -2px;
  font-size: .74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
#see-more { margin-top: 6px; }
.sug-chip { border-style: dashed; }
.chip.top3 {
  border-color: #ffd54a;
  box-shadow: 0 0 16px rgba(255,213,74,.55), 0 0 30px rgba(255,77,141,.25);
}
.suggest-row { display: flex; gap: 8px; margin-top: 10px; }
.suggest-row input {
  flex: 1; min-width: 0;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px;
  padding: 12px 14px; font-size: .85rem; font-family: inherit;
}
.suggest-row .btn { width: auto; padding: 12px 16px; font-size: .82rem; }
.intent-pill {
  display: inline-block; margin: 6px 0 2px;
  background: rgba(255,213,74,.14); border: 1px solid rgba(255,213,74,.5);
  color: #ffd54a; border-radius: 999px;
  padding: 4px 12px; font-size: .76rem; font-weight: 700;
}
.m-actions { display: flex; gap: 16px; margin-top: 6px; }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--muted); font-size: .78rem; font-weight: 700;
  cursor: pointer; text-decoration: underline;
  font-family: inherit;
}
.link-btn.danger { color: var(--red); }

/* ---------- Verification badges (never color alone — always have text) ---------- */
.vb {
  display: inline-flex; align-items: center;
  font-size: .56rem; font-weight: 900; letter-spacing: .04em;
  border-radius: 999px; padding: 2px 7px; margin-left: 6px;
  vertical-align: middle; line-height: 1.2;
}
.vb.silver { color: #b9c0cc; background: linear-gradient(135deg, #c8cfd9, #9aa3b0); border: 1px solid rgba(185,192,204,.6); }
.vb.gold { color: #3a2c00; background: linear-gradient(135deg, #ffd54a, #ffb300); border: 1px solid rgba(255,213,74,.8); }
.vpill {
  display: inline-flex; align-items: center; width: fit-content;
  font-size: .68rem; font-weight: 800; border-radius: 999px;
  padding: 3px 10px; margin-top: 5px;
}
.vpill.silver { color: #cfd6e0; border: 1px solid rgba(185,192,204,.55); background: rgba(185,192,204,.12); }
.vpill.gold { color: #ffd54a; border: 1px solid rgba(255,213,74,.6); background: rgba(255,213,74,.12); }
.vpill { color: var(--muted); border: 1px solid var(--border); background: var(--panel-2); }

/* ---------- Step / verification UI ---------- */
.progress-track {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
}
.progress-fill { height: 100%; background: var(--grad); transition: width .3s ease; }
.step-card {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); padding: 12px 14px; margin-top: 10px;
}
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: .85rem;
  background: var(--panel-2); border: 1px solid var(--border);
}
.step-title { font-weight: 800; font-size: .88rem; }
.step-desc { color: var(--muted); font-size: .74rem; }
.step-status {
  margin-left: auto; white-space: nowrap;
  font-size: .66rem; font-weight: 800; border-radius: 999px;
  padding: 3px 9px; border: 1px solid var(--border);
  color: var(--muted); background: var(--panel-2);
}
.step-status.approved { color: var(--green); border-color: rgba(63,185,80,.6); background: rgba(63,185,80,.12); }
.step-status.pending { color: #ffb054; border-color: rgba(255,176,84,.6); background: rgba(255,176,84,.12); }
.step-status.failed, .step-status.requires-resubmission { color: var(--red); border-color: rgba(255,77,92,.6); background: rgba(255,77,92,.12); }

/* ---------- Benefit modal / lists ---------- */
.gold-benefits { max-width: 420px; }
.benefit-list { list-style: none; margin: 6px 0; padding: 0; font-size: .86rem; }
.benefit-list li { padding: 4px 0; }
.privacy-note {
  background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.4);
  color: var(--green); border-radius: 10px;
  padding: 9px 12px; font-size: .76rem; font-weight: 700;
}

/* ---------- Bio / about / counters ---------- */
.card-bio {
  font-size: .78rem; color: var(--muted); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.about-sec {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-2); padding: 10px 12px; margin: 8px 0;
}
.about-title { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.about-sec p { margin: 0; font-size: .84rem; line-height: 1.55; }

/* ---------- Contact sharing ---------- */
.share-box {
  border: 1px dashed var(--border); border-radius: 12px;
  padding: 10px 12px; margin: 8px 0; font-size: .8rem;
}
.share-box.shared { border-style: solid; border-color: rgba(63,185,80,.5); background: rgba(63,185,80,.06); }
.share-title { font-weight: 800; margin-bottom: 6px; color: var(--green); }
.contact-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .82rem; }
.contact-row span { color: var(--muted); }
.share-hint { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.share-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; margin-top: 8px; font-size: .85rem; cursor: pointer;
}
.share-row input { accent-color: var(--pink); }
.share-row.demo { border-style: dashed; opacity: .85; }

.notice.ok { border-color: rgba(63,185,80,.6); background: rgba(63,185,80,.12); color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--grad); color: #fff; border: none;
  border-radius: 12px; padding: 14px 22px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  width: 100%; font-family: inherit;
  transition: transform .1s, filter .15s;
  box-shadow: 0 6px 20px rgba(255,77,141,.35);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--panel-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Swipe deck ---------- */
.deck {
  position: relative;
  height: min(58vh, 480px);
  margin: 14px 0 10px;
}
.stack-card {
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  touch-action: none; user-select: none;
  transition: transform .25s ease;
  will-change: transform;
}
.stack-card:nth-child(2) { z-index: 2; transform: scale(.94) translateY(14px); }
.stack-card:nth-child(3) { z-index: 3; transform: scale(.88) translateY(26px); opacity: .92; }
.stack-card.top { z-index: 9; cursor: grab; transition: none; }
.stack-card .avatar {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(80px, 22vw, 130px);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.stack-card .stamp {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px; border-radius: 10px;
  font-weight: 900; font-size: 1.2rem; letter-spacing: .06em;
  transform: rotate(-12deg);
  border: 3px solid; opacity: 0;
}
.stack-card .stamp.like { color: var(--green); border-color: var(--green); }
.stack-card .stamp.nope { color: var(--red); border-color: var(--red); }
.stack-card .stamp.show { opacity: 1; }
.stack-card .info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.stack-card .info .who { font-size: 1.3rem; font-weight: 800; }
.stack-card .info .who .age { color: var(--muted); font-weight: 600; margin-left: 6px; }
.stack-card .info .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.stack-card .info .tags span {
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 600;
}
.stack-card .tap-hint {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.4); border-radius: 8px;
  padding: 5px 9px; font-size: .72rem; color: #fff;
}
.deck-empty {
  border: 2px dashed var(--border); border-radius: 18px;
  height: 100%; display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--muted);
}
.deck-empty .big { font-size: 3rem; display: block; margin-bottom: 10px; }

.swipe-actions { display: flex; justify-content: center; gap: 18px; padding: 8px 0 4px; }
.action-btn {
  width: 62px; height: 62px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 1.6rem;
  display: grid; place-items: center;
  transition: transform .1s;
  background: var(--panel-2); border: 1px solid var(--border);
}
.action-btn:active { transform: scale(.92); }
.action-btn.nope { color: var(--red); }
.action-btn.like { color: var(--green); background: rgba(63,185,80,.1); border-color: rgba(63,185,80,.4); }
.counter { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 6px; }

/* ---------- Profile modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,6,14,.7); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.overlay .sheet {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px; max-width: 420px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.sheet .big-avatar {
  font-size: 5rem; text-align: center; padding: 18px 0 6px;
}
.sheet .who { font-size: 1.4rem; font-weight: 800; text-align: center; }
.sheet .bio { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 10px 0 12px; text-align: center; }
.match-splash .big-avatar { font-size: 5.5rem; }
.match-splash h3 {
  font-size: 1.6rem; font-weight: 900; text-align: center;
  background: linear-gradient(90deg, var(--coral), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0 4px;
}
.match-splash .sub { color: var(--muted); text-align: center; font-size: .85rem; margin-bottom: 14px; }

/* ---------- Hangout ideas ---------- */
.idea {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.idea .emo { font-size: 1.5rem; }
.idea .t { font-weight: 700; font-size: .9rem; }
.idea .d { color: var(--muted); font-size: .8rem; margin-top: 2px; line-height: 1.5; }
.idea .match-chip { margin-left: auto; flex-shrink: 0; }

/* ---------- Match cards ---------- */
.match-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.match-card .m-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.7rem;
  border: 2px solid var(--border);
}
.match-card .m-info { flex: 1; min-width: 0; }
.match-card .m-info .who { font-weight: 800; font-size: .95rem; }
.match-card .m-info .shared { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.match-card .m-info .shared b { color: var(--pink); }

.notice {
  border: 1px solid rgba(255,122,89,.35); background: rgba(255,122,89,.08);
  color: var(--coral); border-radius: 12px; padding: 11px 14px;
  font-size: .8rem; margin-bottom: 14px; line-height: 1.6;
}

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-state .big { font-size: 3.4rem; display: block; margin-bottom: 12px; }

footer { text-align: center; color: var(--muted); font-size: .72rem; padding: 14px; }

@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.pop { animation: popIn .28s ease both; }
/* ---------- Verification badge ---------- */
.vb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffd76e 40%, #ff9d3c);
  color: #4a2f00; font-weight: 900; font-size: .66rem;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 0 10px rgba(255,190,80,.8), 0 0 2px rgba(255,190,80,.9);
  margin-left: 6px; vertical-align: middle; flex-shrink: 0;
}
.vpill {
  display: inline-block; margin: 8px 0 2px;
  background: linear-gradient(135deg, rgba(255,215,110,.18), rgba(255,157,60,.18));
  border: 1px solid rgba(255,190,80,.6);
  color: #ffd76e; border-radius: 999px;
  padding: 3px 10px; font-size: .68rem; font-weight: 800;
}
.verified-note {
  background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.35);
  color: var(--green); border-radius: 10px; padding: 8px 12px;
  font-size: .75rem; font-weight: 700; text-align: center; margin-top: 4px;
}
.verified-note.warn {
  background: rgba(248,81,73,.08); border-color: rgba(248,81,73,.35);
  color: var(--red);
}

/* ---------- Chat ---------- */
.chat-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px; margin-bottom: 10px; cursor: pointer;
  position: relative; transition: border-color .15s;
}
.chat-row:hover { border-color: var(--pink); }
.chat-row .preview {
  color: var(--muted); font-size: .8rem; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.unread-dot {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px rgba(255,77,141,.7);
}
.thread-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px 14px 0 0; padding: 12px; margin-top: 4px;
}
.thread-header .back-btn { width: auto; padding: 8px 12px; font-size: .85rem; }
.thread-header .m-avatar { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 50%; display: grid; place-items: center; }
.chat-msgs {
  background: var(--panel); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 14px 14px; padding: 14px; min-height: 260px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; max-height: 52vh;
}
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 14px;
  font-size: .88rem; line-height: 1.5; word-wrap: break-word;
}
.bubble.me {
  align-self: flex-end; background: var(--grad); color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.them {
  align-self: flex-start; background: var(--panel-2);
  border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.bubble .chat-time { font-size: .62rem; opacity: .65; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .92rem;
  padding: 12px 14px; outline: none; font-family: inherit;
}
.chat-input input:focus { border-color: var(--pink); }

/* ---------- Custom idea add ---------- */
.idea-add { display: flex; gap: 8px; margin-top: 10px; }
.idea-add input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .85rem;
  padding: 10px 12px; outline: none; font-family: inherit;
}
.idea-add input:focus { border-color: var(--pink); }
.idea-add .btn { width: auto; padding: 10px 16px; font-size: .8rem; }

/* ---------- Events ---------- */
.event-card .event-title { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-meta { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.event-note {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; font-size: .82rem;
  margin-top: 10px; line-height: 1.5;
}
.event-summary { font-size: .8rem; color: var(--muted); margin-top: 12px; font-weight: 700; }
.attendees { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.attendee {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 10px 5px 5px; font-size: .72rem;
}
.attendee .m-avatar { width: 26px; height: 26px; font-size: .9rem; border-radius: 50%; display: grid; place-items: center; }
.rsvp { font-weight: 800; font-size: .72rem; padding: 3px 8px; border-radius: 999px; }
.rsvp.yes { color: var(--green); background: rgba(63,185,80,.12); }
.rsvp.no { color: var(--red); background: rgba(248,81,73,.1); }
.rsvp.maybe { color: var(--coral); background: rgba(255,122,89,.12); }
.rsvp.pending { color: var(--muted); background: rgba(157,139,176,.1); }
.rsvp.live { color: var(--green); background: rgba(63,185,80,.12); animation: pulse 1.4s infinite; }
.event-card .cancel-btn { margin-top: 4px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 5-tab bar ---------- */
.tabbar a { padding: 4px 8px; font-size: .6rem; }


/* ---------- Sign-in ---------- */
.pbtn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 16px; margin-bottom: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-weight: 700; font-size: .92rem; cursor: pointer;
  font-family: inherit; transition: border-color .15s, transform .1s;
}
.pbtn:hover { border-color: var(--pink); }
.pbtn:active { transform: scale(.99); }
.pbtn:disabled { cursor: default; }
.pbtn-logo {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: .72rem;
  flex-shrink: 0;
}

/* ---------- Profile sheet extras ---------- */
.loc-line {
  text-align: center; color: var(--muted); font-size: .82rem;
  font-weight: 700; margin-top: 6px;
}
.shared-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  justify-content: center; color: var(--muted); font-size: .76rem;
  margin: 12px 0 4px;
}
.matched-line {
  text-align: center; color: var(--muted); font-size: .76rem;
  margin-bottom: 14px;
}
.info-btn {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 9px; font-size: .9rem;
  cursor: pointer; flex-shrink: 0; margin-right: 22px;
}
.attendee { cursor: pointer; transition: border-color .15s; }
.attendee:hover { border-color: var(--pink); }
.match-card { cursor: pointer; }
.match-card:hover { border-color: var(--pink); }

/* ---------- Completed owner profile ---------- */
[hidden] { display: none !important; }
.profile-owner-head { text-align: center; margin-top: 18px; }
.profile-photo-wrap { width: 132px; height: 132px; margin: 0 auto 14px; position: relative; }
.profile-photo, .photo-preview {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; overflow: hidden;
  background: var(--grad); background-size: cover; background-position: center;
  border: 3px solid rgba(255,255,255,.18); box-shadow: 0 0 28px rgba(255,77,141,.25);
  color: #fff; font-size: 2.2rem; font-weight: 900;
}
.profile-photo.large { width: 150px; height: 150px; margin-bottom: 14px; }
.photo-edit {
  position: absolute; right: -2px; bottom: 4px; width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid var(--bg); background: var(--grad);
  color: #fff; cursor: pointer; font-size: 1rem;
}
.profile-owner-name { font-size: 1.65rem; font-weight: 900; }
.profile-meta { color: var(--muted); margin: 5px 0 8px; font-size: .86rem; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.profile-section p { color: var(--text); font-size: .93rem; line-height: 1.65; white-space: pre-wrap; }
.profile-empty { color: var(--muted) !important; margin-bottom: 8px; }
.profile-muted { color: var(--muted) !important; font-size: .75rem !important; line-height: 1.5; margin-top: 9px; }
.match-only { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--purple); margin-left: 5px; }
.completion-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.completion-row h2 { margin: 0; }
.completion-row strong { color: var(--pink); }
.owner-toast { position: fixed; z-index: 100; left: 50%; bottom: 88px; transform: translateX(-50%); width: min(92%, 420px); box-shadow: var(--shadow); }

.editor-sheet { max-width: 520px; max-height: min(90vh, 800px); overflow-y: auto; text-align: left; }
.editor-sheet h3 { text-align: center; margin-bottom: 14px; }
.editor-sheet textarea, .editor-sheet input[type=text], .editor-sheet input[type=number] {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: .92rem; font-family: inherit; resize: vertical;
}
.editor-sheet textarea:focus, .editor-sheet input:focus { outline: none; border-color: var(--pink); }
.edit-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }
.char-count { text-align: right; color: var(--muted); font-size: .72rem; margin-top: 4px; }
.interest-edit-row { margin-bottom: 14px; }
.sticky-actions { position: sticky; bottom: -1px; background: var(--panel); padding-top: 12px; border-top: 1px solid var(--border); }
.photo-preview { border-radius: 18px; width: 210px; height: 210px; margin-bottom: 14px; }
.file-btn { display: block; text-align: center; position: relative; overflow: hidden; margin-bottom: 14px; }
.file-btn input { position: absolute; opacity: 0; pointer-events: none; }
.danger-outline { color: var(--red); border-color: rgba(248,81,73,.5); }
.public-preview { text-align: center; }
.preview-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 900; margin-bottom: 14px; }
.preview-intents, .preview-tags { justify-content: center; margin: 10px 0; }
.public-preview .bio { margin: 15px 0; line-height: 1.6; }
.starter-box { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.starter-box b { color: var(--pink); font-size: .78rem; }
.starter-box p { color: var(--muted); font-size: .76rem; line-height: 1.45; margin-top: 7px; }

@media (max-width: 380px) {
  .profile-actions, .edit-grid { grid-template-columns: 1fr; }
  .editor-sheet .btn-row { flex-wrap: wrap; }
}
