﻿/* Dormy app.js dynamic markup — legacy component styles (redesign compat layer) */
/* --- legacy lines 2868-3600 --- */
.listing-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--violet) 22%, var(--glass-border));
}
.listing-card.is-entering {
  opacity: 0;
  transform: translateY(18px);
}
.listing-card.is-entered {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--cascade-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .listing-card.is-entering,
  .listing-card.is-entered {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.listing-card.is-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: all 300ms ease-in-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.listing-card.is-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.listing-card--featured {
  border-color: rgba(109, 93, 246, 0.25);
}
.listing-card--featured:hover {
  box-shadow: 0 4px 16px rgba(109, 93, 246, 0.1);
}

.listing-card--boosted {
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.12);
  background: linear-gradient(to bottom, var(--glass-bg) 0%, rgba(250, 245, 255, 0.2) 100%);
  transform: scale(1.01);
}
.listing-card--boosted:hover,
.listing-card--boosted:focus-visible {
  box-shadow: 0 16px 36px rgba(147, 51, 234, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px) scale(1.01);
}
.listing-card--boosted:active {
  transform: scale(0.99);
}
.listing-vip-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: linear-gradient(to right, #9333ea, #4f46e5);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  animation: vipBadgePulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vipBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
.roommate-card-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.roommate-card-avatar-wrap .listing-vip-badge {
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.55rem;
  padding: 0.2rem 0.45rem;
  letter-spacing: 0.06em;
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e8edf4 45%, #f8fafc 100%);
  background-size: 200% 200%;
}
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 90%
  );
  background-size: 200% 100%;
  animation: cardMediaShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}
.card-media img,
.card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--motion-ease), opacity 0.45s var(--motion-ease);
}
@keyframes cardMediaShimmer {
  0% { background-position: 200% 0; opacity: 0.35; }
  50% { background-position: -200% 0; opacity: 0.65; }
  100% { background-position: 200% 0; opacity: 0.35; }
}
.card-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
}
.listing-card:hover .card-img--primary {
  transform: scale(1.06);
}
.listing-card:hover .card-img--hover {
  opacity: 1;
  transform: scale(1);
}
.listing-card:not(:has(.card-img--hover)):hover .card-img,
.listing-card:not(:has(.card-img--hover)):hover .card-media > img {
  transform: scale(1.06);
}
.card-featured-badge,
.card-new-badge {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-featured-badge {
  left: 0.75rem;
  background: rgba(109, 93, 246, 0.88);
  color: #fff;
  box-shadow: 0 6px 16px rgba(109, 93, 246, 0.35);
}
.card-new-badge {
  right: 0.75rem;
  background: rgba(20, 184, 166, 0.9);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
  animation: dormyShimmer 2s ease infinite;
}
.card-media:has(.card-owned-badge) .card-new-badge {
  right: auto;
  left: calc(50% + 0.5rem);
}
.card-price,
.price-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.card-owned-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(109, 93, 246, 0.35);
}
.listing-card--owned {
  border-color: #c7d2fe;
  box-shadow: 0 12px 32px rgba(109, 93, 246, 0.1);
}
.card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 92%, transparent);
}
.card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-host-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  min-width: 0;
}
.card-host-line .trust-rating-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  font-size: inherit;
  font-weight: 700;
  color: var(--text-muted);
}
.card-desc,
.description-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc--pref {
  -webkit-line-clamp: 1;
  font-weight: 600;
}
.card-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}
.card-chip--uni {
  color: var(--violet);
  border-color: rgba(109, 93, 246, 0.22);
  background: rgba(237, 233, 254, 0.55);
}
.card-chip--metro {
  color: var(--violet);
  border-color: rgba(109, 93, 246, 0.28);
  background: rgba(237, 233, 254, 0.65);
}
.card-chip--city {
  color: var(--text-muted);
  border-color: var(--line);
  background: var(--surface-muted);
}
.card-chip--district {
  color: var(--text-muted);
  border-color: var(--line);
  background: var(--surface-muted);
}
.card-chip-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1;
}
.card-media--avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-raised) 100%);
}
.card-img--avatar {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.15);
}
.card-info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card-desc-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card-tags,
.tags-wrapper,
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.card-location-row.badge-container {
  margin-top: 0;
}

.tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid rgba(199, 210, 254, 0.45);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-market-actions {
  margin-top: 0.65rem;
}

.listing-card--removing {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.1);
}
.tag.uni-tag {
  background: #eef2ff;
  color: #5b21b6;
  border-color: rgba(167, 139, 250, 0.45);
}
.tag.green {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(110, 231, 183, 0.45);
}
.tag.green:hover {
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.1);
}

.roommate-card-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, transparent 100%);
}
.roommate-card-head .avatar {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.6);
}
.roommate-new-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.empty-state {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(226, 232, 240, 0.75);
  color: #64748b;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-footer {
  border-top: 1px solid #f1f5f9;
  background: #fff;
  padding-bottom: var(--safe-bottom);
}
.footer-actions {
  gap: 1.5rem;
}

/* Modals */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.modal-root.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}
.modal-root:not(.hidden):not(.is-open) {
  pointer-events: none !important;
}
.modal-root.is-open {
  pointer-events: auto;
}
.modal-root:not(.hidden) .modal-backdrop {
  opacity: 1;
}
@media (min-width: 768px) {
  .modal-root:not(.hidden) .auth-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#loginModal:not(.hidden),
#signupModal:not(.hidden) {
  z-index: 10001;
}

#reportModal:not(.hidden) {
  z-index: 10060;
}

#detailModal:not(.hidden) {
  z-index: 210;
}

#chatModal:not(.hidden) {
  z-index: 205;
}

/* ── Native mobile chat — Telegram-style dock above tab bar (MB-02) ── */
body.mobile-chat-open #chatModal:not(.hidden) {
  z-index: 135;
}

body.mobile-chat-open #chatModal.chat-native-screen {
  position: fixed;
  inset: 0 auto auto 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(3.35rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  background: #fafafa;
}

body.mobile-chat-open #chatModal .chat-native-backdrop {
  display: none !important;
}

body.mobile-chat-open #chatModal .chat-shell {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  transform: none !important;
  opacity: 1 !important;
  background: #fafafa;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.mobile-chat-open #chatModal .chat-widget-container,
body.mobile-chat-open #chatModal .chat-layout,
body.mobile-chat-open #chatModal .chat-threads-panel,
body.mobile-chat-open #chatModal .chat-feed-panel,
body.mobile-chat-open #chatModal .chat-main {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.mobile-chat-open #chatModal .chat-layout {
  position: relative;
}

body.mobile-chat-open #chatModal .chat-threads-panel,
body.mobile-chat-open #chatModal .chat-feed-panel {
  position: absolute;
  inset: 0;
  background: #fafafa;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.mobile-chat-open #chatModal .chat-feed-panel {
  transform: translateX(100%);
  z-index: 2;
}

body.mobile-chat-open #chatModal .chat-layout.feed-open .chat-threads-panel {
  transform: translateX(-100%);
}

body.mobile-chat-open #chatModal .chat-layout.feed-open .chat-feed-panel {
  transform: translateX(0);
}

body.mobile-chat-open #chatModal .chat-native-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: calc(0.35rem + var(--safe-top)) 0.85rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

body.mobile-chat-open #chatModal .chat-native-title {
  margin: 0;
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0c0c0f;
}

body.mobile-chat-open #chatModal .chat-native-compose-btn,
body.mobile-chat-open #chatModal .chat-native-close-btn,
body.mobile-chat-open #chatModal .chat-feed-back-btn,
body.mobile-chat-open #chatModal .chat-feed-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body.mobile-chat-open #chatModal .chat-native-compose-btn:active,
body.mobile-chat-open #chatModal .chat-feed-back-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

body.mobile-chat-open #chatModal .chat-threads {
  flex: 1;
  max-height: none;
  height: auto;
  width: 100%;
  border: none;
  background: #fafafa;
  backdrop-filter: none;
}

body.mobile-chat-open #chatModal .chat-thread-item {
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
}

body.mobile-chat-open #chatModal .chat-thread-item.is-active {
  background: rgba(108, 71, 255, 0.06);
  box-shadow: inset 3px 0 0 #6c47ff;
}

body.mobile-chat-open #chatModal .chat-thread-avatar-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
}

body.mobile-chat-open #chatModal .chat-thread-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

body.mobile-chat-open #chatModal .chat-thread-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0c0c0f;
}

body.mobile-chat-open #chatModal .chat-thread-time {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
}

body.mobile-chat-open #chatModal .chat-thread-preview {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
}

body.mobile-chat-open #chatModal .chat-thread-row--preview {
  margin-top: 0.15rem;
}

body.mobile-chat-open #chatModal .chat-feed-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3.25rem;
  padding: calc(0.35rem + var(--safe-top)) 0.65rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

body.mobile-chat-open #chatModal .chat-peer-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.mobile-chat-open #chatModal .chat-peer-head-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0c0c0f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-chat-open #chatModal .chat-peer-head-status {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

body.mobile-chat-open #chatModal .chat-peer-head-status.is-live {
  color: #059669;
}

body.mobile-chat-open #chatModal .chat-thread-avatar--sm .chat-thread-avatar-ring {
  width: 2.25rem;
  height: 2.25rem;
}

body.mobile-chat-open #chatModal .chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  background: #fafafa;
}

body.mobile-chat-open #chatModal .chat-compose {
  flex-shrink: 0;
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.mobile-chat-open #chatModal .chat-input-bar {
  padding: 0.5rem 0.75rem 0.65rem;
}

body.mobile-chat-open #chatModal .chat-threads-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

body.mobile-chat-open #chatModal .chat-threads-empty.hidden {
  display: none;
}

body.mobile-chat-open #chatModal .chat-threads-empty-text {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

body.mobile-chat-open #chatModal .chat-threads-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: #6c47ff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

body.mobile-chat-open .chat-fab {
  display: none;
}

.dark body.mobile-chat-open #chatModal.chat-native-screen,
.dark body.mobile-chat-open #chatModal .chat-shell,
.dark body.mobile-chat-open #chatModal .chat-threads-panel,
.dark body.mobile-chat-open #chatModal .chat-feed-panel,
.dark body.mobile-chat-open #chatModal .chat-native-header,
.dark body.mobile-chat-open #chatModal .chat-feed-header,
.dark body.mobile-chat-open #chatModal .chat-threads,
.dark body.mobile-chat-open #chatModal .chat-feed,
.dark body.mobile-chat-open #chatModal .chat-compose {
  background: #0f1117;
}

.dark body.mobile-chat-open #chatModal .chat-native-title,
.dark body.mobile-chat-open #chatModal .chat-thread-name,
.dark body.mobile-chat-open #chatModal .chat-peer-head-name {
  color: #f8fafc;
}

.dark body.mobile-chat-open #chatModal .chat-native-header,
.dark body.mobile-chat-open #chatModal .chat-feed-header,
.dark body.mobile-chat-open #chatModal .chat-compose {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark body.mobile-chat-open #chatModal .chat-thread-item {
  border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  #chatModal.modal-root--chat-floating {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-root.is-open .modal-backdrop { opacity: 1; }

.detail-sheet {
  position: relative;
  width: 100%;
  max-width: min(100vw, 42rem);
  max-height: min(90dvh, 90vh);
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}
@media (min-width: 768px) {
  .modal-root { align-items: center; padding: 1.5rem; }
  .detail-sheet {
    max-width: 42rem;
    max-height: 90vh;
    border-radius: 1.25rem;
    transform: translateY(24px);
    opacity: 0;
  }
  .modal-root.is-open .detail-sheet {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-root.is-open .detail-sheet { transform: translateY(0); }

.sheet-handle {
  width: 2.5rem;
  height: 4px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
}
@media (min-width: 768px) { .sheet-handle { display: none; } }

.sheet-close, .icon-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding: 1rem 1rem calc(1.5rem + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet-body--detail {
  padding: 1rem 1.1rem calc(1.25rem + var(--safe-bottom));
}

.detail-modal-root .sheet-close {
  top: 1rem;
  right: 1rem;
  z-index: 12;
}
.detail-modal-root .detail-gallery-hero-wrap .detail-floating-like,
.detail-modal-root .detail-profile-media-wrap .detail-floating-like {
  top: 1.5rem;
  right: 1.5rem;
}
@media (min-width: 1024px) {
  .detail-modal-root .detail-gallery-hero-wrap .detail-floating-like,
  .detail-modal-root .detail-profile-media-wrap .detail-floating-like {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* â”€â”€â”€ Listing detail modal â€” overflow-safe layout â”€â”€â”€ */
.detail-modal-root {
  max-width: 100vw;
  overflow-x: hidden !important;
}
.detail-modal-root .detail-sheet {
  max-width: min(100vw, 42rem);
  overflow-x: hidden !important;
}
.detail-modal-root .detail-sheet:has(.detail-split-grid) {
  max-width: min(100vw, 56rem);
}
@media (min-width: 768px) {
  .detail-modal-root .detail-sheet:has(.detail-split-grid) {
    max-width: 56rem;
  }
}
.detail-split-grid {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.detail-split-col {
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-cell {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-hero-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.detail-floating-like {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  color: #64748b;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.detail-floating-like:hover,
.detail-floating-like:focus-visible {
  transform: scale(1.1);
  color: #f43f5e;
  background: rgba(255, 255, 255, 0.92);
}
.detail-floating-like.is-liked {
  color: #f43f5e;
}
.detail-floating-like-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.detail-floating-like.is-liked .detail-floating-like-icon {
  fill: #f43f5e;
}
.detail-gallery-thumbs {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-gallery-thumbs[data-thumb-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-gallery-thumbs[data-thumb-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-gallery-thumb {
  aspect-ratio: 1;
  padding: 0.125rem;
  border: 0;
  border-radius: 0.75rem;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.detail-gallery-thumb:hover {
  opacity: 0.8;
}
.detail-gallery-thumb.is-active {
  box-shadow: 0 0 0 2px #9333ea;
}
.detail-gallery-thumb:not(.is-active) {
  box-shadow: none;
}
.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}
.detail-gallery-cell--empty {
  display: grid;
  place-items: center;
  min-height: 8rem;
  color: var(--ink-muted, #94a3b8);
  font-size: 0.875rem;
}

.detail-modal-root .sheet-close {
  top: 1rem;
  right: 1rem;
  z-index: 12;
}
.detail-modal-root .detail-gallery-hero-wrap .detail-floating-like,
.detail-modal-root .detail-profile-media-wrap .detail-floating-like {
  top: 1.5rem;
  right: 1.5rem;
}
@media (min-width: 1024px) {
  .detail-modal-root .detail-gallery-hero-wrap .detail-floating-like,
  .detail-modal-root .detail-profile-media-wrap .detail-floating-like {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* â”€â”€â”€ Listing detail modal â€” overflow-safe layout â”€â”€â”€ */
.detail-modal-root {
  max-width: 100vw;
  overflow-x: hidden !important;
}
.detail-modal-root .detail-sheet {
  max-width: min(100vw, 42rem);
  overflow-x: hidden !important;
}
.detail-modal-root .detail-sheet:has(.detail-split-grid) {
  max-width: min(100vw, 56rem);
}
@media (min-width: 768px) {
  .detail-modal-root .detail-sheet:has(.detail-split-grid) {
    max-width: 56rem;
  }
}
.detail-split-grid {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.detail-split-col {
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-cell {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-hero-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.detail-gallery-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 11.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.detail-floating-like {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  color: #64748b;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.detail-floating-like:hover,
.detail-floating-like:focus-visible {
  transform: scale(1.1);
  color: #f43f5e;
  background: rgba(255, 255, 255, 0.92);
}
.detail-floating-like.is-liked {
  color: #f43f5e;
}
.detail-floating-like-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.detail-floating-like.is-liked .detail-floating-like-icon {
  fill: #f43f5e;
}
.detail-gallery-thumbs {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-gallery-thumbs[data-thumb-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-gallery-thumbs[data-thumb-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-gallery-thumb {
  aspect-ratio: 1;
  padding: 0.125rem;
  border: 0;
  border-radius: 0.75rem;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.detail-gallery-thumb:hover {
  opacity: 0.8;
}
.detail-gallery-thumb.is-active {
  box-shadow: 0 0 0 2px #9333ea;
}
.detail-gallery-thumb:not(.is-active) {
  box-shadow: none;
}
.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}
.detail-gallery-cell--empty {
  display: grid;
  place-items: center;
  min-height: 11.5rem;
  border-radius: 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .detail-gallery-hero {
    height: 13rem;
  }
}
.detail-profile-media-wrap {
  margin-bottom: 0.75rem;
}
.detail-profile-media-wrap .detail-profile-image {
  width: 100%;
  height: 14rem;
  margin-bottom: 0;
}
.detail-shell,
.detail-content-body,
.detail-profile-shell {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.detail-content-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.detail-title,
.detail-host-line,
.detail-profile-name {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detail-host-line .trust-rating-badge {
  flex-wrap: wrap;
  max-width: 100%;
}
.detail-tags,
.detail-profile-tags,
.detail-content-body .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 0;
}
.detail-tags .tag,
.detail-profile-tags .tag {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detail-title--premium {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
}
.detail-host-line {
  margin: 0.35rem 0 0;
}
.detail-price--premium {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #7c3aed;
  line-height: 1.25;
}
.detail-profile-budget.detail-price--premium {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
}
.detail-meta-line {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.detail-description {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}
.detail-tags {
  margin-top: 0.65rem;
}
.detail-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.detail-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  width: 100%;
}
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
  white-space: nowrap;
  box-sizing: border-box;
}
.detail-btn-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.detail-btn--primary {
  border: 0;
  background: #9333ea;
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.detail-btn--primary:hover,
.detail-btn--primary:focus-visible {
  background: #7e22ce;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.12);
}
.detail-btn--secondary {
  border: 1px solid #e9d5ff;
  background: transparent;
  color: #9333ea;
}
.detail-btn--secondary:hover,
.detail-btn--secondary:focus-visible {
  background: #faf5ff;
}
.detail-actions .detail-btn--primary.chat-btn {
  min-height: 3rem;
  height: 3rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #9333ea;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.detail-actions .detail-btn--primary.chat-btn:hover,
.detail-actions .detail-btn--primary.chat-btn:focus-visible {
  background: #7e22ce;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.12);
}
.detail-actions .detail-btn--secondary.reservation-trigger-btn {
  min-height: 3rem;
  height: 3rem;
  margin-top: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e9d5ff;
  background: transparent;
  color: #9333ea;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
}
.detail-actions .detail-btn--secondary.reservation-trigger-btn:hover,
.detail-actions .detail-btn--secondary.reservation-trigger-btn:focus-visible {
  background: #faf5ff;
  border-color: #ddd6fe;
  box-shadow: none;
}

.detail-actions-meta {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.detail-actions-meta .listing-delete-btn {
  width: auto;
  min-height: 2.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(254, 242, 242, 0.85);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
}
.detail-actions-premium {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.detail-actions-premium .vip-promotion-block {
  width: 100%;
  margin-top: 0;
}
.detail-actions-premium .btn-boost--detail,
.detail-actions-premium .btn-promote--detail {
  margin-top: 0;
  width: 100%;
}
.detail-actions-premium .vip-promotion-tooltip {
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}
@media (max-width: 480px) {
  .detail-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .detail-btn span {
    font-size: 0.8125rem;
  }
}

/* â”€â”€â”€ Roommate profile detail (two-column modal) â”€â”€â”€ */
.detail-profile-shell {
  display: grid;
  gap: 0;
}
.detail-profile-grid {
  align-items: start;
}
.detail-profile-col--media {
  display: grid;
  gap: 0;
  align-content: start;
}
.detail-profile-col--info {
  display: grid;
  gap: 0;
  align-content: start;
  min-width: 0;
}
.detail-profile-image {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
}
.detail-profile-tags {
  margin-top: 0.65rem;
}
.detail-profile-name {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.detail-profile-bio {
  margin: 0.65rem 0 0;
  color: #475569;
}
.detail-profile-col--info .listing-location-section {
  margin-top: 0.85rem;
}
.detail-profile-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}
.detail-profile-shell .detail-actions {
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .detail-profile-grid {
    gap: 1.5rem;
  }
  .detail-profile-image {
    margin-bottom: 1rem;
  }
  .detail-profile-col--info .listing-location-section {
    margin-top: 0.85rem;
  }
  .detail-sheet:has(.detail-profile-shell) {
    max-width: 52rem;
  }
}

.detail-hero {
  width: 100%;
  max-width: 100%;
  height: 14rem;
  max-height: 14rem;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

/* â”€â”€â”€ Listing map & location â”€â”€â”€ */
.listing-location-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listing-location-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--ink, #0f172a);
}

.listing-location-title .detail-loc-icon {
  width: 1rem;
  height: 1rem;
  color: #64748b;
  flex-shrink: 0;
}

.listing-address-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.location-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
  max-width: 100%;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.12), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(109, 93, 246, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.location-badge--minimal {
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

.location-badge--minimal .detail-loc-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #64748b;
}

.post-location-section {
  margin-top: 0.25rem;
}

.capacity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
.capacity-slot {
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}
.capacity-slot.host {
  border-color: #c7d2fe;
  background: #eef2ff;
}
.capacity-slot.vacant {
  border: 2px dashed #34d399;
  background: #ecfdf5;
  cursor: pointer;
  position: relative;
}
.capacity-slot.vacant::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
}

.chat-btn {
  margin-top: 1rem;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
}
.chat-btn:active { transform: scale(0.97); }

.auth-panel, .post-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100dvh - var(--safe-top));
  overflow: visible;
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
}
.auth-panel .auth-form,
.auth-panel .signup-wizard {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.auth-panel .auth-phone-country,
.auth-panel #regUniFieldWrap {
  overflow: visible;
}
@media (min-width: 640px) {
  .auth-panel, .post-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .auth-panel,
  .modal-root.is-open .post-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.post-panel { max-width: 36rem; }

.auth-panel--premium {
  padding: 2rem 1.75rem;
}
@media (min-width: 640px) {
  .auth-panel--premium {
    padding: 2.25rem 2rem;
  }
}

.auth-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { margin-top: 0.25rem; color: #64748b; font-weight: 600; font-size: 0.9rem; }
.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}
.auth-switch-link {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 0.25rem;
  font-size: inherit;
  font-weight: 800;
  color: var(--violet);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-field-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.4;
}
.auth-required-mark {
  color: #dc2626;
  font-weight: 800;
}
.auth-field--register-uni {
  display: grid;
  gap: 0.35rem;
}
.filter-select-wrap--premium select {
  min-height: 2.75rem;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(109, 93, 246, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-select-wrap--premium select:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.38);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.1);
}
.dark .filter-select-wrap--premium select {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(109, 93, 246, 0.35);
  color: var(--ink);
}
.dark .filter-select-wrap--premium select:focus {
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.12);
}

/* Login step-by-step slide-up reveal */
.login-reveal-section {
  display: none;
  margin-top: 0;
  overflow: visible;
}
.login-reveal-section.is-revealed {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.login-otp-block {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.15rem;
}
.auth-otp-hint {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

/* TRY â†’ AZN price equivalent */
.price-try-wrap {
  display: inline;
}
.price-azn-equiv {
  font-size: 0.82em;
  font-weight: 600;
  color: #94a3b8;
}

/* --- legacy lines 14321-14710 --- */
.group-cell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 640px) {
  .group-cell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .group-cell-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.group-cell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.group-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(109, 93, 246, 0.35);
}
.group-cell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.group-cell-uni {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.1);
  color: #6d5df6;
  font-size: 0.68rem;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-cell-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
}
.group-cell-status.is-open {
  color: #059669;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.group-cell-status.is-full {
  color: #d97706;
}
.group-cell-hook {
  min-width: 0;
}
.group-cell-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.group-cell-desc {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #64748b;
  overflow-wrap: anywhere;
}
.group-cell-budget {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
}
.group-cell-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.group-cell-loc-pill {
  display: inline-flex;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 0.65rem;
  font-weight: 800;
}
.group-cell-avatars {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-top: 0.15rem;
}
.group-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-left: -0.45rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.group-cell-avatars .group-avatar:first-child {
  margin-left: 0;
}
.group-avatar--open {
  border-style: dashed;
  border-color: rgba(109, 93, 246, 0.55);
  background: rgba(109, 93, 246, 0.08);
  color: #6d5df6;
  font-size: 0.85rem;
  font-weight: 900;
  animation: groupSlotPulse 2s ease-in-out infinite;
}
@keyframes groupSlotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 93, 246, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(109, 93, 246, 0); }
}

.group-create-panel {
  width: min(calc(100vw - 1.5rem), 28rem);
}

/* Apple-like form controls â€” group create modal */
.form-control--apple {
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-control--apple:focus,
.form-control--apple:focus-visible {
  outline: none;
  border-color: rgba(147, 51, 234, 0.38);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.1);
}
.form-control--select {
  cursor: pointer;
}
.group-create-form .form-control--apple {
  min-height: 2.85rem;
}
.group-create-form textarea.form-control--apple {
  min-height: 5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  resize: vertical;
}
.group-uni-select-wrap {
  position: relative;
}
.group-uni-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.group-create-form .group-uni-select-wrap select {
  padding-right: 2.35rem;
  font-weight: 600;
  background-image: none;
}
.group-create-form .form-control--apple:focus,
.group-create-form .form-control--apple:focus-visible {
  outline: none;
  border-color: rgba(147, 51, 234, 0.38);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.1);
}
.group-create-form .group-uni-select-wrap select:invalid {
  color: #94a3b8;
}
.group-create-submit {
  background: linear-gradient(135deg, #14b8a6, #6d5df6);
}
.dark .form-control--apple {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(51, 65, 85, 0.72);
  color: var(--ink);
}
.dark .group-create-form .form-control--apple:focus,
.dark .group-create-form .form-control--apple:focus-visible {
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.12);
}
.dark .group-uni-select-wrap::after {
  border-color: #64748b;
}

.group-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  max-width: 100vw;
  overflow: hidden;
}
.group-drawer-root.is-open {
  pointer-events: auto;
}
.group-drawer-root:not(.hidden):not(.is-open) {
  pointer-events: none !important;
}
.group-drawer-root.hidden {
  display: none;
}
.group-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.group-drawer-root.is-open .group-drawer-backdrop {
  opacity: 1;
}
.group-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 26rem);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1.25rem 0 0 1.25rem;
}
.group-drawer-root.is-open .group-drawer-panel {
  transform: translateX(0);
}
.group-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 1.25rem calc(1.5rem + var(--safe-bottom));
}
.group-detail-title {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.group-detail-meta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.group-detail-chat {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.8);
}
.group-detail-chat-msg {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  overflow-wrap: anywhere;
}
.group-detail-chat-msg strong {
  color: var(--ink);
}
.group-detail-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.group-detail-member {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
}
.group-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #6d5df6, #14b8a6);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(109, 93, 246, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.group-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(109, 93, 246, 0.34);
}
.group-join-btn:disabled,
.group-join-btn.group-join-btn--locked {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #e2e8f0;
  color: #64748b;
}
.group-join-btn.group-join-btn--waiting {
  background: #e2e8f0;
  color: #475569;
}
.group-join-btn.group-join-btn--pending {
  background: #f1f5f9;
  color: #64748b;
}
.group-cell-pending-pill {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}
.dark .group-join-btn:disabled,
.dark .group-join-btn.group-join-btn--locked,
.dark .group-join-btn.group-join-btn--waiting,
.dark .group-join-btn.group-join-btn--pending {
  background: rgba(51, 65, 85, 0.85);
  color: #cbd5e1;
}
.dark .group-cell-pending-pill {
  background: rgba(51, 65, 85, 0.75);
  color: #cbd5e1;
}

/* --- legacy lines 15108-15350 --- */
/* ── Gender tag on listing cards ───────────────────────────────────── */
.card-gender-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin: 0;
}
.card-gender-tag--m {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.card-gender-tag--f {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.25);
}
.dark .card-gender-tag--m { color: #93c5fd; background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); }
.dark .card-gender-tag--f { color: #f9a8d4; background: rgba(236,72,153,.15); border-color: rgba(236,72,153,.3); }

/* ── Lifestyle chips on listing cards ──────────────────────────────── */
.card-lifestyle-chips,
.badge-container .card-lifestyle-chip {
  display: inline-flex;
}
.card-lifestyle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.card-lifestyle-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.08);
  border: 1px solid rgba(109, 93, 246, 0.22);
  color: var(--violet);
  white-space: nowrap;
}
.dark .card-lifestyle-chip {
  background: rgba(139,92,246,.15);
  border-color: rgba(139,92,246,.35);
  color: #c4b5fd;
}

/* ── Verified student badge (cards + profile) ──────────────────────── */
.card-verified-student-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.55rem 0.18rem 0.35rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.card-verified-student-badge svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; }
.dark .card-verified-student-badge { color: #93c5fd; background: rgba(37,99,235,.15); border-color: rgba(37,99,235,.3); }

/* ── Report button on listing cards ────────────────────────────────── */
.card-footer-actions {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.card-report-btn {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  min-width: 5.5rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 246, 0.18);
  background: var(--field-bg-compact);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
  transition:
    transform 0.22s var(--motion-ease),
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.card-report-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #d97706;
  flex-shrink: 0;
}

.card-report-btn-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

.card-report-btn-label {
  line-height: 1;
}

.card-report-btn:hover,
.card-report-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.42);
  color: var(--ink);
  background: rgba(255, 251, 235, 0.92);
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.1),
    var(--glass-shadow),
    var(--glass-shadow-inset);
}

.card-report-btn:active {
  transform: scale(0.97);
}

.card-report-btn--inline {
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 8px 14px;
}

.card-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
  flex-wrap: wrap;
}

.card-actions .marketplace-chat-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--field-bg-compact);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow-inset);
  border-color: color-mix(in srgb, var(--violet) 18%, var(--line));
}

.card-actions .card-report-btn--inline {
  align-self: stretch;
}

.listing-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark .card-report-btn {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.dark .card-report-btn-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.dark .card-report-btn:hover,
.dark .card-report-btn:focus-visible {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(251, 191, 36, 0.38);
  color: var(--ink);
}

.dark .card-footer-actions {
  border-top-color: rgba(51, 65, 85, 0.65);
}

/* ── Report modal ───────────────────────────────────────────────────── */
#reportModal .report-modal-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: calc(92dvh - var(--safe-top));
  overflow-y: auto;
  margin: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: transform 0.32s var(--motion-ease), opacity 0.32s ease;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  box-shadow: var(--glass-shadow), 0 24px 60px rgba(15, 23, 42, 0.14);
}

@media (min-width: 640px) {
  #reportModal .report-modal-panel {
    border-radius: var(--radius);
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open#reportModal .report-modal-panel,
  #reportModal.is-open .report-modal-panel {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- legacy lines 16805-16843 --- */
.auth-form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.92));
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.12);
  position: sticky;
  top: 0;
  z-index: 4;
}
.auth-form-error.hidden {
  display: none;
}
.auth-form-error::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.auth-field.is-invalid > input,
.auth-field.is-invalid > select,
.auth-field.is-invalid > textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.dark .auth-form-error {
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.92), rgba(127, 29, 29, 0.78));
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* --- legacy lines 18141-18220 --- */
.signup-step-panel {
  display: none;
  animation: signupSlideIn 0.28s var(--motion-ease);
}
.signup-step-panel.is-active { display: block; }
@keyframes signupSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.signup-wizard-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.signup-wizard-btn {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.signup-wizard-btn--next {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* Floating labels */
.auth-field--float {
  position: relative;
  padding-top: 0.5rem;
}
.auth-field--float > span:first-child {
  position: absolute;
  left: 0.85rem;
  top: 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-subtle);
  pointer-events: none;
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}
.auth-field--float input:focus + span,
.auth-field--float input:not(:placeholder-shown) + span,
.auth-field--float.is-filled > span:first-child {
  transform: translateY(-1.35rem);
  font-size: 0.6875rem;
  color: var(--violet);
}
.auth-field-validation {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.auth-field-validation.is-valid { color: #16a34a; }
.auth-field-validation.is-invalid { color: #dc2626; }

/* Upload zone */
.student-doc-upload-zone {
  border: 2px dashed rgba(108, 71, 255, 0.35);
  border-radius: var(--radius);
  background: var(--violet-soft);
  transition: border-color 0.2s, background 0.2s;
}
.student-doc-upload-zone.is-dragover {
  border-color: var(--violet);
  background: rgba(108, 71, 255, 0.12);
}
.student-doc-preview {
  max-width: 100%;
  max-height: 120px;
  border-radius: var(--radius-input);
  margin-top: 0.5rem;
  object-fit: cover;
}


/* --- legacy lines 18342-18375 --- */
.listing-card.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s var(--motion-ease);
  transition-delay: var(--scroll-reveal-delay, 0ms);
}
.listing-card.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide FAB post on mobile when tab bar has post */
@media (max-width: 767px) {
  #postAdFab { display: none; }
  .chat-fab {
    right: auto;
    left: 1rem;
    bottom: calc(4.75rem + var(--safe-bottom));
    z-index: 115;
    pointer-events: auto;
  }
  .bottom-tab-bar {
    z-index: 110;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .listing-card.scroll-reveal {
    opacity: 1;
    transform: none;
  }
  .hero-live-dot { animation: none; }
}


/* --- legacy lines 5021-5400 --- */
/* ─── Public profile panel (chat inspect) ─── */
.public-profile-root {
  position: fixed;
  inset: 0;
  z-index: 12050;
  pointer-events: none;
}
.public-profile-root.is-open {
  pointer-events: auto;
}
.public-profile-root:not(.hidden):not(.is-open) {
  pointer-events: none !important;
}
.public-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s var(--motion-ease);
}
.public-profile-root.is-open .public-profile-backdrop {
  opacity: 1;
}
.public-profile-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 28rem);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(104%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
  border-radius: 1.25rem 0 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    -12px 0 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.public-profile-root.is-open .public-profile-sheet {
  transform: translateX(0);
}
.public-profile-close {
  position: absolute;
  top: calc(0.85rem + var(--safe-top));
  right: calc(0.85rem + var(--safe-right));
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.public-profile-close:hover,
.public-profile-close:focus-visible {
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(109, 93, 246, 0.14);
  outline: none;
}
.public-profile-close:active {
  transform: scale(0.94);
}
.public-profile-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: calc(1.35rem + var(--safe-top)) 1.25rem 1.15rem;
  padding-right: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(109, 93, 246, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.03);
}
.public-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.35), rgba(20, 184, 166, 0.25));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(109, 93, 246, 0.28);
}
.public-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.public-profile-avatar-letter {
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
}
.public-profile-head-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.public-profile-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.public-profile-verify-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.public-profile-verify-badge--verified {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}
.public-profile-verify-badge--pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}
.public-profile-verify-badge--unverified {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}
.public-profile-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1rem calc(1.25rem + var(--safe-bottom));
}
.public-profile-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.public-profile-listings-grid.listing-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .public-profile-listings-grid.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.public-profile-empty,
.public-profile-error {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}
.public-profile-error {
  color: #fca5a5;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.22);
}
.public-profile-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}
.public-profile-loading.hidden {
  display: none;
}
.public-profile-loading-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--violet);
  animation: publicProfileSpin 0.75s linear infinite;
}
@keyframes publicProfileSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 639px) {
  .public-profile-sheet {
    width: 100vw;
    border-radius: 0;
  }
  .public-profile-listings-grid.listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-profile-sheet,
  .public-profile-backdrop,
  .public-profile-loading-spinner {
    transition: none;
    animation: none;
  }
}

.chat-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.chat-bubble-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 75%;
}
.chat-bubble-row--sent {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-bubble-row--received {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-bubble-time {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 0.15rem;
}
.bubble {
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.bubble--sent,
.bubble.sent {
  align-self: flex-end;
  background: linear-gradient(to right, #9333ea, #4f46e5);
  color: #fff;
  border-radius: 1rem;
  border-top-right-radius: 0.2rem;
}
.bubble--received,
.bubble.received {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 1rem;
  border-top-left-radius: 0.2rem;
}
.dark .bubble--received,
.dark .bubble.received {
  background: #1e293b;
  color: #e2e8f0;
}
.chat-compose {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.chat-icebreakers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.55rem 1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.chat-icebreaker-chip {
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, color 0.15s ease;
}
.dark .chat-icebreaker-chip {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
.chat-icebreaker-chip:hover,
.chat-icebreaker-chip:focus-visible {
  background: #faf5ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}
.dark .chat-icebreaker-chip:hover,
.dark .chat-icebreaker-chip:focus-visible {
  background: rgba(88, 28, 135, 0.25);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
.chat-icebreaker-chip:active {
  transform: scale(0.97);
}
.chat-input-bar {
  flex-shrink: 0;
  padding: 0 1rem 1rem;
  background: transparent;
  border: 0;
}
.chat-input-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.45rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.75);
}
.dark .chat-input-pill {
  background: rgba(30, 41, 59, 0.8);
  border-color: #334155;
}
.chat-attach-btn {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.chat-attach-btn:hover,
.chat-attach-btn:focus-visible {
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
}

#reportModal:not(.hidden) {
  z-index: 10060;
}

.capsule-dropdown-toggle {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.capsule-dropdown-toggle.is-open .capsule-dropdown-chevron,
.capsule-dropdown-toggle[aria-expanded="true"] .capsule-dropdown-chevron {
  transform: rotate(180deg);
}

.capsule-dropdown-toggle.is-disabled,
.capsule-dropdown-toggle[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Unified floating list panel — all hero filter menus */
#cityFilterMenu,
#districtFilterMenu,
#universityFilterMenu,
#cityDropdownMenu,
#campusDropdownMenu,
#regionDropdownMenu,
.capsule-dropdown-menu,
.custom-dropdown-menu,
.custom-dropdown-list-container {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  margin-top: 4px !important;
  max-height: 15rem;
  overflow-y: auto;
}

.modal-root--chat-floating {
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: calc(1.5rem + var(--safe-right));
  padding-bottom: calc(5.25rem + var(--safe-bottom));
  padding-left: 1.5rem;
}
@media (min-width: 768px) {
  .modal-root--chat-floating {
    padding-right: calc(2.5rem + var(--safe-right));
    padding-bottom: calc(2.5rem + var(--safe-bottom));
  }
}
.modal-root--chat-floating .modal-backdrop {
  background: rgba(12, 18, 34, 0.22);
}
.modal-root.is-open .chat-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
}
.chat-top-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.chat-top-sub {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.chat-realtime-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.chat-realtime-status[hidden] {
  display: none !important;
}

.chat-realtime-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 2px color-mix(in srgb, #94a3b8 25%, transparent);
  flex-shrink: 0;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.chat-realtime-status--connecting .chat-realtime-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
  animation: chat-realtime-pulse 1.2s ease-in-out infinite;
}

.chat-realtime-status--live .chat-realtime-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}

.chat-realtime-status--error .chat-realtime-status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.28);
}

.chat-realtime-status--disabled .chat-realtime-status-dot {
  background: #94a3b8;
  opacity: 0.65;
}

@keyframes chat-realtime-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.dark .chat-realtime-status {
  background: rgba(22, 27, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.chat-top-close {
  flex-shrink: 0;
}
.chat-widget-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 500px;
  min-height: 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .chat-layout {
    flex-direction: row;
  }
}
.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.chat-user-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-user-list::-webkit-scrollbar {
  display: none;
}

/* --- legacy lines 5940-6100 --- */
.profile-dropdown-badge {
  display: none;
  min-width: 1.25rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.profile-dropdown-badge.is-visible,
.profile-dropdown-badge:not(.hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.settings-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: calc(92dvh - var(--safe-top));
  overflow-y: auto;
  margin: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .settings-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .settings-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .settings-panel { transform: translateY(0); }

.settings-form { margin-top: 1rem; display: grid; gap: 1.25rem; }
.settings-section {
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #fafbfc;
}
.settings-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.settings-hint {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.settings-toggle-list {
  display: grid;
  gap: 0.55rem;
}
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.settings-toggle-row:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.settings-toggle-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.settings-toggle-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.settings-toggle-copy small {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}
.settings-toggle-input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--violet);
  cursor: pointer;
}

.settings-avatar-block { display: grid; gap: 0.85rem; }
.settings-avatar-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.settings-avatar-change {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--violet);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  touch-action: manipulation;
}
.settings-avatar-change:hover { background: #eef2ff; }

.avatar-picker {
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px dashed #c7d2fe;
  background: #fff;
}
.avatar-picker-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.avatar-pick-btn {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  border: 2px solid var(--line);
  background: #f8fafc;
  font-size: 1.65rem;

/* --- legacy lines 6910-7050 --- */
  transition:
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.32s ease;
}
.promote-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.promote-toast.hidden {
  display: block;
  visibility: hidden;
}
.promote-toast.hidden:not(.is-visible) {
  transform: translateX(-50%) translateY(calc(-120% - var(--safe-top)));
  opacity: 0;
}
.promote-toast:not(.hidden) {
  visibility: visible;
}
.promote-toast-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.promote-toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}
.promote-toast-title {
  margin: 0;
  padding-right: 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.promote-toast-text {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
  color: #64748b;
}

.capacity-slot-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.capacity-slot .user-avatar--xs {
  border-width: 1px;
  box-shadow: none;
}

/* â”€â”€â”€ GÃ¶rÃ¼ÅŸ tÉ™yini (detail + Ã§at) â”€â”€â”€ */
.reservation-trigger-btn {
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.15rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(109, 93, 246, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.08), rgba(20, 184, 166, 0.06));
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  touch-action: manipulation;
}
.reservation-trigger-btn:hover {
  border-color: rgba(109, 93, 246, 0.38);
  box-shadow: 0 8px 22px rgba(109, 93, 246, 0.12);
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.12), rgba(20, 184, 166, 0.08));
}

.reservation-picker-panel {
  position: relative;
  width: min(100%, 24rem);
  margin: auto;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}
.modal-root.is-open .reservation-picker-panel {
  transform: translateY(0);
  opacity: 1;
}
.reservation-picker-head {
  margin-bottom: 1rem;
  padding-right: 2rem;
}
.reservation-picker-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reservation-picker-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}
.reservation-picker-form {
  display: grid;
  gap: 0.85rem;
}
.reservation-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.reservation-time-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.reservation-time-chip:hover {
  border-color: rgba(109, 93, 246, 0.35);
  color: var(--violet);
}
.reservation-time-chip.is-active {
  border-color: var(--violet);
  background: rgba(109, 93, 246, 0.1);
  color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.1);
}

/* --- legacy lines 9180-9250 --- */
.modal-root.is-open .legal-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
@media (max-width: 639px) {
  .legal-modal-panel {
    max-height: calc(92dvh - var(--safe-top));
    border-radius: 1.25rem 1.25rem 0 0;
    align-self: flex-end;
    transform: translateY(100%);
    opacity: 1;
  }
  .modal-root.is-open .legal-modal-panel {
    transform: translateY(0);
  }
}

.user-inbox-placeholder-icon {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.support-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: calc(92dvh - var(--safe-top));
  overflow-y: auto;
  margin: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .support-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .support-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .support-panel { transform: translateY(0); }

.support-form {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.9rem;
}
.support-form .auth-field textarea {
  min-height: 6.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  background-color: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.support-upload-zone {
  position: relative;

/* --- legacy lines 16118-16175 --- */
/* ── Student document upload zone (signup) ─────────────────────────── */
.student-doc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.student-doc-label-icon { width: 1rem; height: 1rem; color: var(--violet); flex-shrink: 0; }
.student-doc-upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 6rem;
  border: 2px dashed var(--line);
  border-radius: 1rem;
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  padding: 1.25rem;
  text-align: center;
}
.student-doc-upload-zone:hover,
.student-doc-upload-zone:focus-visible {
  border-color: var(--violet);
  background: rgba(109, 93, 246, 0.04);
  outline: none;
}
.student-doc-upload-zone.student-doc-upload--done {
  border-style: solid;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.04);
}
.dark .student-doc-upload-zone { border-color: rgba(71,85,105,.7); }
.dark .student-doc-upload-zone:hover,
.dark .student-doc-upload-zone:focus-visible { border-color: #8b5cf6; background: rgba(139,92,246,.06); }
.student-doc-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; pointer-events: none; }
.student-doc-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(109, 93, 246, 0.1);
  color: var(--violet);
  margin-bottom: 0.25rem;
}
.student-doc-upload-icon svg { width: 1.25rem; height: 1.25rem; }
.student-doc-upload-text { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.student-doc-upload-hint { font-size: 0.68rem; color: var(--ink-muted); }
.student-doc-status { font-size: 0.72rem; font-weight: 700; color: #22c55e; margin-top: 0.35rem; }

/* ── Responsive adjustments ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .filter-metro-row.is-visible { padding-top: 0.75rem; margin-top: 0.75rem; }
  .filter-gender-group { gap: 0.25rem; }
  .card-report-btn {
    min-height: 1.85rem;
    padding: 0.28rem 0.65rem;
  }
  .card-report-btn-label {
    font-size: 0.625rem;
  }
  .card-verified-student-badge { font-size: 0.6rem; padding: 0.14rem 0.45rem; }
}

/* ── Redesign harmonization (app.js markup + legacy glass → geometric) ── */
.listing-card {
  background: var(--surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: none !important;
}
.listing-card:hover,
.listing-card:focus-visible {
  border-color: var(--violet) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}
.group-cell {
  background: var(--surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl) !important;
}
.group-cell:hover {
  border-color: var(--violet) !important;
  box-shadow: var(--shadow-md) !important;
}
.tag.green {
  border-color: rgba(26, 155, 107, 0.35);
  color: var(--success);
  background: rgba(26, 155, 107, 0.08);
}
.tag.uni-tag {
  border-color: var(--violet-mid);
  color: var(--violet);
  background: var(--violet-dim);
}
.card-title,
.card-title.title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.detail-floating-like {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
#signupModal:not(.hidden),
#loginModal:not(.hidden) {
  z-index: 10001;
}
.public-profile-root:not(.hidden):not(.is-open),
.group-drawer-root:not(.hidden):not(.is-open) {
  pointer-events: none !important;
}
.public-profile-root.is-open,
.group-drawer-root.is-open {
  pointer-events: auto;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--scroll-reveal-delay, 0ms);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; }
}

/* ─── Redesign harmonization: flat cards, no glass bloat ─── */
.listing-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-xl, 16px) !important;
  box-shadow: var(--shadow-sm) !important;
  will-change: auto !important;
}
.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--violet) !important;
}
.listing-card--boosted {
  background: var(--surface) !important;
  border-color: rgba(108, 71, 255, 0.35) !important;
  box-shadow: var(--shadow-md) !important;
  transform: none !important;
}
.listing-card--boosted:hover,
.listing-card--boosted:focus-visible {
  transform: translateY(-2px) !important;
}
.listing-card.is-reveal,
.listing-card.is-entering,
.listing-card.scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Profile sheet — aligned below auth modals (10001) but above tab bar (110) */
.profile-sheet-root {
  z-index: 195;
}
.profile-sheet-root.hidden {
  display: none !important;
  pointer-events: none !important;
}
.profile-sheet-root:not(.is-open) {
  pointer-events: none !important;
}

.profile-sheet-root:not(.hidden):not(.is-open) .profile-sheet-backdrop,
.profile-sheet-root:not(.hidden):not(.is-open) .profile-panel {
  pointer-events: none !important;
}
