/* Minimal centered header with account shortcut */
.topbar-minimal{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:68px;padding:8px 14px;}
.topbar-minimal .topbar-side{width:42px;height:42px;}
.brand-centered{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:min(245px,62vw);height:58px;margin:0;}
.header-logo{display:block;width:100%;height:100%;object-fit:contain;}
.header-profile-button{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:2px solid rgba(255,255,255,.72);background:#2b222b;box-shadow:0 4px 12px rgba(0,0,0,.22);transition:transform .15s ease,border-color .15s ease;}
.header-profile-button:hover{transform:translateY(-50%) scale(1.04);border-color:var(--peach);}
.header-profile-photo{width:100%;height:100%;object-fit:cover;display:block;}
.header-profile-guest svg{width:24px;height:24px;fill:none;stroke:#fff8fb;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:650px){.topbar-minimal{min-height:60px;padding:7px 12px;}.brand-centered{width:min(225px,70vw);height:52px;}.header-profile-button{right:12px;width:38px;height:38px;}.header-profile-guest svg{width:22px;height:22px;}}


#reportUserModal:target{display:flex}
a.profile-menu-item{display:block;text-decoration:none}
a.modal-close{display:grid;place-items:center;text-decoration:none}

  #typing-indicator::after{content:"";animation:tdots 1.2s steps(4) infinite}
  @keyframes tdots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}
  
  
  .attach-btn{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#19151b;font-size:1.25rem;cursor:pointer}
.attach-btn:active{transform:scale(.94)}
.attach-preview{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:12px;background:#19151b}
.attach-preview[hidden]{display:none}
.attach-preview img{width:40px;height:40px;object-fit:cover;border-radius:8px;flex:0 0 auto}
.attach-preview span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;color:var(--muted)}
.attach-preview button{border:0;background:none;color:#ff9aac;font-size:1.3rem;line-height:1;cursor:pointer;padding:4px}
.upload-hint{font-size:.7rem;margin-top:6px}


.chat-lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.92);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.chat-lightbox.open{opacity:1;visibility:visible}
.chat-lightbox img{max-width:92vw;max-height:86vh;border-radius:12px;object-fit:contain;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox-close{position:absolute;top:14px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.5);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.bubble img{cursor:zoom-in}

.chat-head-user{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}

.list-card-user{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:inherit}

.profile-like-btn.liked{opacity:.85}

.profile-photo-actions .profile-like-btn.liked{background:var(--panel2);color:var(--muted);border-color:var(--line);}

.recent-btn{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);font-size:1.25rem;cursor:pointer}
.recent-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:18px}
.recent-modal[hidden]{display:none}
.recent-modal-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;max-width:430px;width:100%;max-height:72vh;display:flex;flex-direction:column;overflow:hidden}
.recent-modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);font-weight:700}
.recent-modal-close{background:none;border:0;color:var(--muted);font-size:1.5rem;cursor:pointer;line-height:1}
.recent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px;overflow-y:auto}
.recent-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;cursor:pointer}
.recent-grid img:active{transform:scale(.95)}
.recent-empty{padding:24px;text-align:center}

.match-page{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 20px;gap:12px}
.match-photos{display:flex;align-items:center;justify-content:center}
.match-photos img{width:110px;height:110px;border-radius:50%;object-fit:cover;border:4px solid var(--panel2);box-shadow:0 8px 24px rgba(0,0,0,.4)}
.match-photos img:first-child{margin-right:-24px}
.match-heart{font-size:2.4rem;z-index:1;margin:0 -6px;color:var(--magenta);filter:drop-shadow(0 2px 8px rgba(163,2,98,.8))}
.match-title{font-size:2.8rem;font-weight:900;margin:6px 0 0;background:linear-gradient(135deg,var(--orange),var(--magenta));-webkit-background-clip:text;background-clip:text;color:transparent}
.match-sub{color:var(--muted);font-size:1.05rem;margin:0}
.match-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;justify-content:center}


.burst-heart{position:fixed;bottom:-50px;z-index:90;pointer-events:none;line-height:1;animation-name:heart-rise;animation-timing-function:linear;animation-fill-mode:forwards}
@keyframes heart-rise{
  0%{transform:translate(0,0) rotate(0deg);opacity:0}
  10%{opacity:.95}
  100%{transform:translate(var(--drift,0px),-115vh) rotate(var(--spin,0deg));opacity:0}
}

#push-prompt{position:fixed;left:12px;right:12px;bottom:14px;z-index:120;display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--panel2);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 34px rgba(0,0,0,.5);font-size:14px;line-height:1.35}
#push-prompt span{flex:1;min-width:0}
#push-prompt button{flex:0 0 auto;border:0;border-radius:12px;padding:9px 16px;font-weight:800;font-size:14px;color:#fff;background:linear-gradient(135deg,var(--orange),var(--magenta));cursor:pointer}
#push-prompt button[data-act="no"]{background:transparent;color:var(--muted);padding:9px 6px;font-weight:400}

.msg-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.msg-reactions:empty{display:none}
.bubble.mine .msg-reactions{justify-content:flex-end}
.rxn-pill{border:1px solid var(--line);background:var(--panel2);border-radius:999px;padding:2px 8px;font-size:13px;line-height:1.4;cursor:pointer;color:inherit}
.rxn-pill.mine{border-color:var(--magenta);background:rgba(163,2,98,.18)}
.rxn-picker{position:fixed;z-index:130;display:flex;gap:2px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:6px 8px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.rxn-picker button{background:transparent;border:0;font-size:24px;padding:4px 6px;cursor:pointer;border-radius:12px}
.rxn-picker button:active{transform:scale(1.25)}

.rxn-picker[hidden]{display:none}

.ad-fixedbar{position:fixed;left:0;right:0;bottom:70px;z-index:80;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;background:rgba(35,29,37,.94);border-top:1px solid var(--line)}
.ad-fixedbar[hidden]{display:none}
body:has(.ad-fixedbar){padding-bottom:150px}
.ad-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}