/* ============================================================
   Unilink — campus connections for MUverse
   ============================================================ */

/* Ensure the HTML `hidden` attribute always wins over display:flex/grid rules */
[hidden] { display: none !important; }

/* ── Body ── */
.mx-body {
  background: #050505;
  color: #fafafa;
  min-height: 100vh;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ── Header ── */
.mx-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem;
  background: rgba(5,5,5,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mx-header-left {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.mx-back {
  font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}
.mx-back:hover { color: #fff; }
.mx-mod-link { color: rgba(230,28,28,.85); }
.mx-mod-link:hover { color: #e61c1c; }

.mx-header-brand {
  display: flex; align-items: center; gap: .45rem;
}
.mx-logo-dot { color: #e61c1c; font-size: 1.1rem; }
.mx-logo-text {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; letter-spacing: -.02em;
}

/* ── Auth gate ── */
.mx-gate {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px);
}
.mx-gate-inner {
  text-align: center; max-width: 340px; padding: 2rem;
}
.mx-gate-icon { font-size: 3rem; display: block; margin-bottom: 1rem; color: #e61c1c; }
.mx-gate-title {
  font-family: var(--font-display); font-size: 1.75rem;
  font-weight: 700; margin: 0 0 .75rem;
}
.mx-gate-sub { color: rgba(255,255,255,.5); font-size: .9375rem; margin: 0 0 1.75rem; }

/* ── App shell ── */
.mx-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}
@media (max-width: 720px) {
  .mx-app { grid-template-columns: 1fr; }
  .mx-sidebar { display: none; }
}

/* ── Sidebar ── */
.mx-sidebar {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,.07);
  background: #0a0a0a;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.mx-sidebar-profile {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem; background: #111;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
}
.mx-my-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red, #e61c1c); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.mx-my-name { font-weight: 700; font-size: .9375rem; margin: 0; }
.mx-my-detail { font-size: .78rem; color: rgba(255,255,255,.4); margin: 0; }

.mx-sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.mx-nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-radius: 10px;
  background: none; color: rgba(255,255,255,.5);
  font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.mx-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.mx-nav-active { background: rgba(230,28,28,.15) !important; color: #e61c1c !important; }
.mx-nav-icon { font-size: 1rem; }
.mx-nav-badge {
  margin-left: auto; background: #e61c1c; color: #fff;
  font-size: .7rem; font-weight: 700; border-radius: 999px;
  padding: .1rem .45rem; min-width: 20px; text-align: center;
}

.mx-sidebar-filters { display: flex; flex-direction: column; gap: .6rem; }
.mx-filter-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin: 0;
}
.mx-filter-row {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.mx-select {
  background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: .45rem .65rem;
  color: #fff; font-size: .85rem; font-family: inherit;
  outline: none; cursor: pointer;
}
.mx-select:focus { border-color: #e61c1c; }

/* ── Main area ── */
.mx-main {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
}
.mx-main-hidden { display: none !important; }

/* ── Profile stack ── */
.profile-stack {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* ── Profile card (Hinge style) ── */
.profile-card {
  background: #111; border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; overflow: hidden;
  transition: transform .2s;
}
.profile-card:hover { transform: translateY(-2px); }

/* Photo / avatar block */
.pcard-photo {
  position: relative; height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pcard-photo-bg {
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: .85;
}
.pcard-photo-initial {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 7rem;
  font-weight: 700; color: rgba(255,255,255,.8);
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  user-select: none;
}
.pcard-photo-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.5rem 1.4rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.pcard-name {
  font-family: var(--font-display); font-size: 1.65rem;
  font-weight: 700; margin: 0 0 .3rem;
}
.pcard-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.pcard-badge {
  padding: .2rem .65rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.pcard-badge-age { background: rgba(230,28,28,.25); border-color: rgba(230,28,28,.4); color: #f87171; }

/* Prompt block */
.pcard-prompt {
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.07);
  cursor: pointer; transition: background .15s;
  position: relative;
}
.pcard-prompt:hover { background: rgba(255,255,255,.03); }
.pcard-prompt:hover .prompt-like-hint { opacity: 1; }
.prompt-question {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 .4rem;
}
.prompt-answer {
  font-size: 1rem; font-weight: 500; margin: 0; line-height: 1.5;
}
.prompt-like-hint {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  opacity: 0; transition: opacity .15s;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(230,28,28,.2); border: 1px solid rgba(230,28,28,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #e61c1c;
}

/* Interests block */
.pcard-interests {
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.pcard-interests-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin: 0 0 .6rem;
}
.pcard-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pcard-tag {
  padding: .3rem .8rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; font-size: .8rem; color: rgba(255,255,255,.7);
}

/* Action bar */
.pcard-actions {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.07);
  background: #0d0d0d;
}
.pcard-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.pcard-btn:hover { transform: scale(1.1); }
.pcard-skip { background: #1c1c1c; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.pcard-skip:hover { border-color: rgba(255,255,255,.3); }
.pcard-rose {
  background: rgba(230,28,28,.15); border: 1px solid rgba(230,28,28,.3); color: #e61c1c;
  width: 44px; height: 44px; font-size: 1.1rem;
}
.pcard-like {
  background: #e61c1c; color: #fff;
  box-shadow: 0 0 20px rgba(230,28,28,.45);
}
.pcard-like:hover { box-shadow: 0 0 32px rgba(230,28,28,.7); }

/* Already liked state */
.profile-card.already-liked .pcard-like { background: #555; box-shadow: none; cursor: default; }

/* ── No more card ── */
.no-more-card {
  text-align: center; padding: 4rem 2rem;
}
.no-more-icon { font-size: 3rem; display: block; margin-bottom: 1rem; color: #e61c1c; }
.no-more-card h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; margin: 0 0 .5rem;
}
.no-more-card p { color: rgba(255,255,255,.5); margin: 0 0 1.5rem; }

/* ── Likes / Matches list ── */
.mx-tab-header { width: 100%; max-width: 520px; margin-bottom: 1.5rem; }
.mx-tab-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0 0 .3rem;
}
.mx-tab-sub { color: rgba(255,255,255,.45); font-size: .9rem; margin: 0; }

.mx-list { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: .75rem; }
.mx-empty { color: rgba(255,255,255,.35); font-size: .9375rem; margin: 0; }

.mx-list-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  background: #111; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
}
.mx-list-av {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.mx-list-av img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mx-list-info { flex: 1; min-width: 0; }
.mx-list-name { font-weight: 700; font-size: .9375rem; margin: 0 0 .2rem; }
.mx-list-detail { font-size: .8rem; color: rgba(255,255,255,.4); margin: 0; }
.mx-list-comment {
  font-size: .82rem; color: rgba(255,255,255,.55); margin: .3rem 0 0;
  font-style: italic;
}
.mx-list-badge {
  font-size: .75rem; font-weight: 700; color: #e61c1c;
  background: rgba(230,28,28,.15); border: 1px solid rgba(230,28,28,.3);
  padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
}
.mx-match-badge { color: #fff; background: #e61c1c; border-color: #e61c1c; }

/* ── Match overlay ── */
.match-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.match-box {
  background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 3rem 2.5rem;
  text-align: center; max-width: 360px; width: 90%;
  position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(230,28,28,.3);
}
.match-sparks {
  position: absolute; inset: 0; pointer-events: none;
}
.match-sparks span {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: #e61c1c;
  animation: spark 1.6s ease-out infinite;
}
.match-sparks span:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.match-sparks span:nth-child(2) { top: 20%; right: 12%; animation-delay: .3s; }
.match-sparks span:nth-child(3) { bottom: 15%; left: 20%; animation-delay: .6s; }
.match-sparks span:nth-child(4) { bottom: 25%; right: 18%; animation-delay: .9s; }
.match-sparks span:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.2s; }
@keyframes spark {
  0%   { transform: scale(0); opacity: 1; }
  50%  { transform: scale(1.5); opacity: .8; }
  100% { transform: scale(0); opacity: 0; }
}

.match-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: #e61c1c; margin: 0 0 1.5rem;
}
.match-avatars {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; margin-bottom: 1.25rem;
}
.match-av {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
}
.match-av-you { background: #222; border: 2px solid rgba(255,255,255,.2); }
.match-av-them { background: #e61c1c; }
.match-heart { font-size: 1.5rem; color: #e61c1c; animation: heartBeat .8s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.match-name {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; margin: 0 0 .4rem;
}
.match-sub { color: rgba(255,255,255,.5); font-size: .9rem; margin: 0 0 1.75rem; }
.match-actions { display: flex; flex-direction: column; gap: .65rem; }

/* ── Like prompt overlay ── */
.like-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.like-box {
  background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 2rem;
  max-width: 380px; width: 90%; position: relative;
  box-shadow: 0 0 40px rgba(230,28,28,.2);
}
.like-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; color: rgba(255,255,255,.4);
  font-size: .9rem; padding: .3rem .5rem; border-radius: 50%;
  transition: color .15s;
}
.like-close:hover { color: #fff; }
.like-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #e61c1c; margin: 0 0 .65rem;
}
.like-prompt-text {
  font-size: 1rem; font-weight: 600; margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; line-height: 1.5;
}
.like-textarea {
  width: 100%; background: #0d0d0d; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff; font-family: inherit; font-size: .9rem;
  padding: .75rem 1rem; resize: none; outline: none; line-height: 1.5;
  transition: border-color .2s;
}
.like-textarea:focus { border-color: #e61c1c; }
.like-textarea::placeholder { color: rgba(255,255,255,.3); }
.like-char {
  text-align: right; font-size: .75rem;
  color: rgba(255,255,255,.3); margin: .35rem 0 1rem;
}

/* ── Verification shell ── */
.mx-verify-flow {
  min-height: calc(100vh - 60px);
  display: flex; align-items: stretch; justify-content: center;
}

/* ════════════════════════════════════════════════════
   Onboarding — Hinge-style two-column layout
════════════════════════════════════════════════════ */
.ob-wrap {
  display: flex; width: 100%; max-width: 960px; margin: 0 auto;
}
@media (max-width: 680px) { .ob-wrap { flex-direction: column; } }

/* Left sidebar */
.ob-sidebar {
  width: 260px; flex-shrink: 0;
  background: #0a0a0a; border-right: 1px solid rgba(255,255,255,.07);
  padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}
@media (max-width: 680px) {
  .ob-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 1.25rem 1.25rem .75rem; flex-direction: row; align-items: center; gap: 1.5rem; }
}
.ob-brand { display: flex; align-items: center; gap: .5rem; }
.ob-brand-dot { color: #e61c1c; font-size: 1.2rem; }
.ob-brand-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

/* Steps list */
.ob-steps { display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 680px) { .ob-steps { flex-direction: row; gap: .75rem; } }
.ob-step {
  display: flex; align-items: flex-start; gap: .75rem;
  opacity: .35; transition: opacity .2s;
}
.ob-step.ob-step-active { opacity: 1; }
.ob-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.ob-step-active .ob-step-num { background: #e61c1c; border-color: #e61c1c; color: #fff; }
.ob-step-label { font-size: .875rem; font-weight: 600; margin: 0; }
.ob-step-sub { font-size: .72rem; color: rgba(255,255,255,.4); margin: .1rem 0 0; }
@media (max-width: 680px) { .ob-step-sub { display: none; } }

/* Right content area */
.ob-content { flex: 1; overflow: hidden; }
.ob-panel {
  padding: 2.5rem 2rem; animation: obFadeIn .25s ease;
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; gap: 1.75rem;
}
@media (max-width: 680px) { .ob-panel { padding: 1.5rem 1.25rem; min-height: auto; } }
.ob-panel-hidden { display: none !important; }
@keyframes obFadeIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.ob-panel-head { display: flex; flex-direction: column; gap: .4rem; }
.ob-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #e61c1c; margin: 0;
}
.ob-title {
  font-family: var(--font-display); font-size: 1.85rem;
  font-weight: 700; margin: 0; letter-spacing: -.02em;
}
.ob-desc { color: rgba(255,255,255,.5); font-size: .9rem; margin: 0; line-height: 1.55; }
.ob-muted { font-size: .8rem; color: rgba(255,255,255,.3); margin: 0; }
.ob-muted a { color: rgba(230,28,28,.7); }

/* Locked profile grid */
.ob-locked-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .ob-locked-grid { grid-template-columns: 1fr; } }
.ob-locked-field {
  position: relative;
  background: #111; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: .85rem 1rem 1rem;
}
.ob-field-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  display: block; margin-bottom: .35rem;
}
.ob-field-val {
  font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.ob-lock-badge {
  position: absolute; top: .6rem; right: .75rem;
  font-size: .65rem; color: rgba(255,255,255,.25);
}

/* Hobby chips */
.ob-hobby-suggestions {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.ob-hobby-chip {
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: .85rem;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.ob-hobby-chip:hover { background: rgba(230,28,28,.15); border-color: rgba(230,28,28,.35); color: #fff; }
.ob-chip-selected { background: rgba(230,28,28,.2) !important; border-color: #e61c1c !important; color: #fff !important; }

.ob-hobby-input-row { display: flex; gap: .65rem; align-items: center; }
.ob-text-input {
  flex: 1; background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .6rem .85rem; color: #fff;
  font-family: inherit; font-size: .9rem; outline: none;
}
.ob-text-input:focus { border-color: #e61c1c; }
.ob-text-input::placeholder { color: rgba(255,255,255,.3); }

.ob-hobby-selected { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 28px; }
.ob-selected-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: #e61c1c; color: #fff; font-size: .8rem; font-weight: 600;
}
.ob-tag-remove {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: .9rem; line-height: 1; cursor: pointer; padding: 0;
}
.ob-tag-remove:hover { color: #fff; }
.ob-hint-sm { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.ob-error { font-size: .85rem; color: #f87171; margin: 0; }

/* Photo upload slots */
.ob-photo-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.ob-photo-slot {
  flex: 1; min-width: 120px; max-width: 180px; cursor: pointer;
}
.ob-photo-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 220px; border-radius: 16px;
  border: 2px dashed rgba(255,255,255,.18); background: #0d0d0d;
  transition: border-color .15s; overflow: hidden;
  background-size: cover; background-position: center;
}
.ob-photo-slot:hover .ob-photo-preview { border-color: rgba(230,28,28,.5); }
.ob-photo-plus { font-size: 2rem; color: rgba(255,255,255,.25); line-height: 1; }
.ob-photo-label { font-size: .72rem; color: rgba(255,255,255,.3); margin-top: .4rem; }
.ob-photo-optional .ob-photo-preview { border-style: dotted; }

/* Panel footer */
.ob-panel-footer {
  display: flex; gap: 1rem; align-items: center; margin-top: auto;
}

/* ── Status cards (pending / rejected) ── */
.ob-status-card {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 3rem 1.5rem;
  gap: 1rem;
}
.ob-status-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.ob-status-pending { background: rgba(234,179,8,.15); border: 1px solid rgba(234,179,8,.3); color: #fbbf24; }
.ob-status-rejected { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.ob-status-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0; }
.ob-status-desc { color: rgba(255,255,255,.45); font-size: .9rem; margin: 0; line-height: 1.6; max-width: 380px; }

/* ── Profile card hero photo ── */
.pcard-hero-img {
  width: 100%; height: 320px; object-fit: cover; display: block;
}
/* Extra photos strip (2nd and 3rd) */
.pcard-photo-strip {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pcard-photo-strip img {
  flex: 1; height: 160px; object-fit: cover; display: block;
  border-right: 1px solid rgba(255,255,255,.06);
}
.pcard-photo-strip img:last-child { border-right: none; }

/* ── (Kept for compatibility) ── */
.pcard-gallery { display: flex; flex-direction: column; }
.pcard-gallery img { width: 100%; height: 280px; object-fit: cover; display: block; }

/* ── Chat drawer ── */
.mx-chat {
  position: fixed; inset: 0; z-index: 180;
  pointer-events: none;
}
.mx-chat:not([hidden]) { pointer-events: auto; }
.mx-chat-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s;
}
.mx-chat:not([hidden]) .mx-chat-backdrop { opacity: 1; }
.mx-chat-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 400px;
  background: #0a0a0a; border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -12px 0 48px rgba(0,0,0,.5);
}
.mx-chat:not([hidden]) .mx-chat-panel { transform: translateX(0); }
.mx-chat-head {
  padding: 1rem 1rem 1rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.mx-chat-close {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.1rem; cursor: pointer; padding: .35rem;
}
.mx-chat-close:hover { color: #fff; }
.mx-chat-title { font-weight: 700; margin: 0; font-size: 1rem; }
.mx-chat-quota { font-size: .75rem; color: rgba(255,255,255,.4); margin: .2rem 0 0; }
.mx-chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.mx-msg {
  max-width: 88%; padding: .65rem .85rem; border-radius: 14px;
  font-size: .9rem; line-height: 1.45;
}
.mx-msg-me {
  align-self: flex-end;
  background: #e61c1c; color: #fff;
}
.mx-msg-them {
  align-self: flex-start;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.08);
}
.mx-msg-time {
  font-size: .65rem; opacity: .6; margin-top: .25rem;
}
.mx-chat-form {
  display: flex; gap: .5rem; padding: .75rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mx-chat-input {
  flex: 1; background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .6rem .85rem; color: #fff;
  font-family: inherit; font-size: .9rem; outline: none;
}
.mx-chat-input:focus { border-color: #e61c1c; }
.mx-list-item.mx-clickable { cursor: pointer; transition: background .15s; }
.mx-list-item.mx-clickable:hover { background: #151515; }
