﻿/* ==========================================
   GLOBAL PREMIUM SCROLLBAR RESET (EVERYWHERE)
   ========================================== */

/* WebKit â€” Chrome, Safari, Edge, Opera */
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

*::-webkit-scrollbar-track {
  background: transparent !important;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3) !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  transition: background-color 0.2s ease-in-out !important;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(147, 51, 234, 0.6) !important;
}

*::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Firefox â€” root + all scrollable surfaces */
html,
body {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

.dark *::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.22) !important;
}

.dark *::-webkit-scrollbar-thumb:hover {
  background-color: rgba(167, 139, 250, 0.55) !important;
}

.dark,
.dark * {
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

:root {
  --violet: #6c47ff;
  --violet-soft: #eee9ff;
  --teal: #14b8a6;
  --ink: #0f0e17;
  --line: #e8e4f5;
  --mist: #eee9ff;
  --radius: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --site-header-bar-height: 3.5rem;
  --site-header-offset: calc(var(--site-header-bar-height) + var(--safe-top));
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c47ff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  --motion-duration: 300ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-card-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(108, 71, 255, 0.12);
  --glass-blur: 12px;
  --glass-shadow: 0 8px 32px rgba(15, 14, 23, 0.06);
  --glass-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --landing-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --surface: #ffffff;
  --surface-raised: #faf9ff;
  --surface-muted: #eee9ff;
  --text-muted: #5c5670;
  --text-subtle: #8b849e;
  --body-bg: #ffffff;
  --field-bg: #ffffff;
  --field-bg-compact: rgba(255, 255, 255, 0.92);
  --field-bg-disabled: rgba(238, 233, 255, 0.6);
  --input-bg: #ffffff;
  --font-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --font-label: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --font-heading: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  --space-unit: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color 200ms ease, color 200ms ease;
}

/* Cross-browser mobile tap & touch behavior */
button,
a,
select,
label,
.tag,
.lifestyle-badge,
.quick-chip,
.tab-btn,
.drawer-link,
.listing-card,
.thread-btn,
.search-btn,
.chat-btn,
.chat-send,
.auth-submit,
.profile-trigger,
.profile-dropdown-item,
.settings-avatar-change,
.avatar-pick-btn,
.avatar-upload-btn,
.auth-back,
.menu-btn,
.icon-btn,
.sheet-close,
.modal-backdrop,
.btn-promote,
.promote-toast-close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.site-body {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--body-bg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overscroll-behavior-y: none;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

.page-reveal-root {
  isolation: isolate;
}

#mainAppLayout {
  padding-top: var(--site-header-offset);
  min-height: calc(100dvh - var(--site-header-offset));
  pointer-events: auto;
}

.listing-feed-pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.listing-section-head {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* â”€â”€â”€ Premium ambient background system â”€â”€â”€ */
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #f8fafc;
  transition: background-color 200ms ease;
}

.site-bg-grid {
  position: absolute;
  inset: 0;
  background-color: #f8fafc;
  background-image:
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(to right, #e2e8f0 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}

.site-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
}
.site-bg-glow--violet {
  width: min(52rem, 85vw);
  height: min(52rem, 85vw);
  top: -18rem;
  right: -16rem;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.55) 0%,
    rgba(109, 93, 246, 0.32) 38%,
    rgba(109, 93, 246, 0.08) 62%,
    transparent 78%
  );
  opacity: 0.3;
}
.site-bg-glow--teal {
  width: min(48rem, 80vw);
  height: min(48rem, 80vw);
  bottom: -20rem;
  left: -18rem;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.45) 0%,
    rgba(20, 184, 166, 0.28) 40%,
    rgba(16, 185, 129, 0.1) 65%,
    transparent 80%
  );
  opacity: 0.3;
}

/* â”€â”€â”€ Shared premium surface & decorative accents â”€â”€â”€ */
.premium-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.premium-card:hover {
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
}

.hero-dot-matrix,
.section-dot-matrix {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.55em;
  color: rgba(148, 163, 184, 0.45);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero-dot-matrix {
  top: -0.35rem;
  left: 0.15rem;
}
.section-dot-matrix {
  top: -0.5rem;
  left: 0;
}
.section-dot-matrix--listings {
  top: -0.65rem;
  left: -0.15rem;
}
.section-dot-matrix--utilities {
  top: -0.55rem;
  left: 0.1rem;
}

.hero-ring-accent,
.section-ring-accent,
.how-step-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(203, 213, 225, 0.55);
  pointer-events: none;
}
.hero-ring-accent {
  width: 7.5rem;
  height: 7.5rem;
  top: -2.25rem;
  right: 8%;
  opacity: 0.55;
}
.section-ring-accent {
  width: 5.5rem;
  height: 5.5rem;
  opacity: 0.45;
}
.section-ring-accent--left {
  top: 1.5rem;
  left: -2.5rem;
}
.section-ring-accent--listings {
  top: 0.25rem;
  right: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-style: solid;
  border-color: rgba(109, 93, 246, 0.12);
}
.how-step-ring {
  width: 3.25rem;
  height: 3.25rem;
  top: 1rem;
  right: 1rem;
  opacity: 0.35;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  max-width: 42rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease, background 300ms ease;
  cursor: default;
}
.hero-pill:hover {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}
.hero-pill--ghost {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.65);
  letter-spacing: 0.06em;
}
.hero-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-pill-dot--violet { background: var(--violet); box-shadow: 0 0 0 2px rgba(109, 93, 246, 0.18); }
.hero-pill-dot--teal { background: var(--teal); box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18); }
.hero-pill-dot--amber { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18); }

.section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.section-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6366f1;
  background: rgba(238, 242, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.55);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.section-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.12);
}
.section-pill--teal {
  color: #0d9488;
  background: rgba(236, 253, 245, 0.9);
  border-color: rgba(153, 246, 228, 0.55);
}
.section-pill--teal:hover {
  box-shadow: 0 4px 10px rgba(20, 184, 166, 0.12);
}

.section-head--motion,
.utilities-head {
  position: relative;
}
.section-eyebrow--center {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-glow {
    filter: blur(120px);
  }
  .hero-deco-shape {
    animation: none !important;
  }
  .card-media::before {
    animation: none !important;
  }
}

/* â”€â”€â”€ Global interactive hover motion (300ms unified) â”€â”€â”€ */
.motion-hover,
button:not(.modal-backdrop):not(:disabled),
a.nav-link,
a.drawer-link,
a.brand-lockup,
.listing-card,
.tab-btn,
.nav-cta,
.search-btn,
.auth-submit,
.auth-link,
.nav-auth-register,
.chat-send,
.filter-toggle-btn,
.filter-field select,
.filter-field input,
.auth-field input,
.auth-field select,
.auth-switch-link,
.quick-chip,
.lifestyle-badge,
.profile-trigger,
.menu-btn,
.icon-btn:not(.modal-backdrop),
.sheet-close,
.drawer-link,
.utility-card {
  transition: all 300ms ease-in-out;
}

.brand-lockup--motion:hover {
  transform: scale(1.05);
}
.motion-magnetic {
  transition: transform 300ms ease-in-out, color 300ms ease-in-out, box-shadow 300ms ease-in-out, border-color 300ms ease-in-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.motion-magnetic:hover,
.motion-magnetic:focus-visible {
  transform: scale(1.05) translateZ(0);
}
.nav-cta.motion-magnetic:hover {
  transform: scale(1.05) translateY(-2px);
}
.brand-lockup--motion:hover .logo-mark--bounce {
  animation: dormyLogoBounce 0.6s var(--motion-spring);
}

.nav-link--animated:hover,
.nav-link--animated:focus-visible {
  color: var(--violet);
  transform: scale(1.05);
}

.nav-cta:hover,
.search-btn:hover,
.auth-submit:hover,
.chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.38);
}
.search-btn:hover {
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.35);
}
.auth-submit:hover {
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.32);
}

.tab-btn:hover:not(.is-active) {
  color: var(--violet);
  transform: scale(1.05);
}

.filter-field:focus-within,
.auth-field:focus-within {
  transform: none;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus,
.filter-field select:focus,
.filter-field input:focus,
.chat-input-bar input:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.38);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input,
.auth-field select,
.auth-field textarea,
.filter-field input,
.filter-field select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* â”€â”€â”€ Premium glassmorphism surfaces â”€â”€â”€ */
.glass-modal,
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.glass-header {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 300ms ease-in-out;
}
.main-navigation-header {
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.site-header {
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: var(--site-header-bar-height);
  padding: 0.45rem 0.85rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.nav-primary-links {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  overflow: visible;
}

.nav-actions > .lang-dropdown,
.nav-actions > .theme-toggle-btn,
.nav-actions > .nav-auth-cluster,
.nav-actions > .nav-profile-inbox-btn,
.nav-actions > .profile-menu {
  flex-shrink: 0;
}

.nav-actions-cluster {
  flex-shrink: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(109, 93, 246, 0.18));
}

.brand-name { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.03em; }
.brand-dot { color: var(--violet); }

.nav-link {
  position: relative;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}
.nav-link--animated::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-duration) var(--motion-ease);
}
.nav-link--animated:hover::after,
.nav-link--animated:focus-visible::after {
  transform: scaleX(1);
}
.nav-link:hover { color: var(--ink); transform: translateY(-1px); }

.auth-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.auth-link:hover,
.auth-link:focus-visible {
  color: var(--violet);
  transform: scale(1.05);
}

/* Navbar auth toggle â€” guest cluster hidden after login */
.nav-auth-guest {
  display: none;
}
@media (min-width: 640px) {
  .nav-auth-cluster.is-visible {
    display: inline-flex;
  }
}
.nav-auth-cluster {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(109, 93, 246, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
  width: auto;
  max-width: none;
}
.nav-auth-login {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-auth-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  min-width: 7.5rem;
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #6d5df6 0%, #7c6cf7 48%, #14b8a6 100%);
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.34);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
  transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.nav-auth-cluster.is-visible {
  pointer-events: auto;
}
.nav-auth-register-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.92;
}
.nav-auth-register span {
  flex-shrink: 0;
  overflow: visible;
  text-overflow: clip;
}
.nav-auth-register:hover,
.nav-auth-register:focus-visible {
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.42);
  transform: translateY(-1px) scale(1.03);
}
.nav-auth-user {
  display: none !important;
}
@media (min-width: 640px) {
  .nav-auth-user.is-visible {
    display: block !important;
    overflow: visible;
  }
}

.nav-admin-inbox-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 246, 0.35);
  background: rgba(109, 93, 246, 0.08);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  white-space: nowrap;
}
.nav-admin-inbox-btn.is-visible {
  display: inline-flex;
}
.nav-admin-inbox-btn:hover {
  background: rgba(109, 93, 246, 0.14);
  border-color: rgba(109, 93, 246, 0.5);
  transform: scale(1.03);
}
.nav-admin-inbox-text {
  display: none;
}
@media (min-width: 900px) {
  .nav-admin-inbox-text { display: inline; }
}
.nav-admin-badge {
  min-width: 1.15rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.nav-admin-badge.is-visible {
  display: inline-block;
}
.nav-admin-badge.hidden { display: none; }

.nav-user-inbox-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  white-space: nowrap;
  position: relative;
}
.nav-user-inbox-btn.is-visible {
  display: inline-flex;
}
.nav-user-inbox-btn:hover {
  border-color: #c7d2fe;
  background: rgba(109, 93, 246, 0.06);
  transform: scale(1.03);
}
.nav-user-inbox-text {
  display: none;
}
@media (min-width: 900px) {
  .nav-user-inbox-text { display: inline; }
}
.nav-user-inbox-badge {
  min-width: 1.15rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.nav-user-inbox-badge.is-visible {
  display: inline-block;
}
.nav-user-inbox-badge.hidden { display: none; }

.nav-profile-inbox-btn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (min-width: 640px) {
  .nav-profile-inbox-btn.is-visible {
    display: inline-flex;
  }
}
.nav-profile-inbox-btn:hover,
.nav-profile-inbox-btn:focus-visible {
  background: #f8fafc;
  border-color: #c7d2fe;
  color: var(--violet);
  outline: none;
}
.nav-inbox-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--violet);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(109, 93, 246, 0.35);
}
.nav-inbox-dot.is-visible { display: block; }
.nav-inbox-dot.hidden { display: none; }

.nav-balance-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.08);
  border: 1px solid rgba(109, 93, 246, 0.14);
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-balance-badge.hidden { display: none; }

.profile-dropdown-item--admin.is-admin-visible {
  display: flex;
}
.profile-dropdown-item--admin:not(.is-admin-visible) {
  display: none;
}
.drawer-admin-inbox.is-admin-visible {
  display: block;
}
.drawer-admin-inbox:not(.is-admin-visible) {
  display: none;
}
.auth-field-note--admin {
  color: var(--violet);
  margin-top: 0.25rem;
}
.auth-field-note--admin strong {
  color: #5b4de0;
  font-weight: 800;
}

.nav-cta {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #2dd4bf);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.28);
  transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.nav-cta:hover {
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.38);
  transform: translateY(-2px);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-drawer-backdrop {
  display: none;
}
.mobile-drawer-panel {
  overflow: hidden;
  box-shadow: none;
  transform: translateY(1rem);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateY(0);
}
.mobile-drawer-body {
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer-footer {
  box-shadow: none;
}
.dark .mobile-drawer-footer {
  box-shadow: none;
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.drawer-link--nav:active {
  transform: scale(0.985);
}
.drawer-link-icon {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}
.drawer-auth-stack {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.drawer-link--cta {
  text-align: center;
  justify-content: center;
  background: rgba(109, 93, 246, 0.08);
  border-color: rgba(109, 93, 246, 0.18);
}
.drawer-link--register {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  color: #fff;
  background: linear-gradient(135deg, #6d5df6 0%, #7c6cf7 52%, #14b8a6 100%);
  border: 0;
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.28);
  text-align: center;
  font-size: 0.9375rem;
}
.drawer-link--register:hover,
.drawer-link--register:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(109, 93, 246, 0.36);
}
.drawer-link--login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  color: #64748b;
  background: #fff;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  text-align: center;
  font-size: 0.9375rem;
}
.drawer-link--login:hover,
.drawer-link--login:focus-visible {
  color: var(--violet);
  border-color: rgba(109, 93, 246, 0.35);
  background: rgba(109, 93, 246, 0.06);
}
.drawer-favorites-btn {
  justify-content: flex-start;
}

.hero-panel { padding: 1.5rem 0 0; }
.hero-panel--minimal {
  position: relative;
  padding: clamp(0.75rem, 1.75vw, 1.35rem) 0 0.35rem;
  overflow: visible;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: visible;
}
.hero-header-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}
.hero-deco {
  position: absolute;
  inset: -1.5rem -1rem auto -1rem;
  height: 18rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.hero-deco-shape {
  position: absolute;
  color: rgba(226, 232, 240, 0.4);
}
.hero-deco-dots {
  top: 0.5rem;
  right: 4%;
  opacity: 0.85;
  animation: heroDecoFloat 18s ease-in-out infinite;
}
.hero-deco-ring {
  top: -1.5rem;
  left: -2.5rem;
  opacity: 0.7;
  animation: heroDecoFloat 22s ease-in-out infinite reverse;
}
.hero-deco-arc {
  top: 3.5rem;
  right: 18%;
  opacity: 0.65;
  animation: heroDecoFloat 16s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-deco-cross {
  top: 5.5rem;
  left: 38%;
  opacity: 0.5;
  animation: heroDecoFloat 20s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes heroDecoFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(4px, -6px) rotate(1.5deg); }
  66% { transform: translate(-3px, 4px) rotate(-1deg); }
}
@media (max-width: 639px) {
  .hero-deco {
    height: 14rem;
  }
  .hero-deco-ring {
    width: 88px;
    height: 88px;
    left: -1.5rem;
    top: -0.5rem;
  }
  .hero-deco-dots {
    width: 56px;
    height: 56px;
    right: 0;
  }
  .hero-deco-arc,
  .hero-deco-cross {
    display: none;
  }
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.hero-eyebrow--live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: dormyLivePulse 1.8s ease infinite;
}
.hero-title-wrap {
  position: relative;
  margin-top: 0.5rem;
  max-width: 100%;
  min-width: 0;
}
.hero-title-glow {
  position: absolute;
  left: -4%;
  right: -4%;
  top: -0.5rem;
  bottom: -0.75rem;
  background:
    radial-gradient(ellipse 65% 60% at 30% 50%, rgba(109, 93, 246, 0.22), transparent 68%),
    radial-gradient(ellipse 50% 45% at 75% 45%, rgba(20, 184, 166, 0.14), transparent 65%);
  filter: blur(28px);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}
.hero-title {
  position: relative;
  z-index: 1;
  margin-top: 0;
  font-size: clamp(1.85rem, 4.8vw + 0.5rem, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 100%;
  text-wrap: balance;
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 38rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.6;
  color: #64748b;
  font-weight: 500;
}

.search-card--minimal {
  position: relative;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

/* â”€â”€â”€ Airbnb-style search capsule â”€â”€â”€ */
.search-capsule-wrap {
  position: relative;
  margin-top: 0;
  width: 100%;
  overflow: visible;
  z-index: 20;
}
.search-capsule-wrap.is-dropdown-active {
  z-index: 9998 !important;
}
.search-capsule {
  position: relative;
  z-index: 20;
  width: 100%;
  overflow: visible;
}

/* â”€â”€â”€ Filter dropdown z-index stack â”€â”€â”€ */
.filter-capsule-container,
.harada-panel-wrapper {
  position: relative !important;
  z-index: 40 !important;
  overflow: visible !important;
}

.filter-bar-wrapper,
.main-navigation-header,
.site-header.glass-header {
  overflow: visible !important;
}

#heroSection {
  position: relative;
  overflow: visible;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  padding-bottom: 0.75rem;
}

#heroSection:has(.search-capsule-wrap.is-dropdown-active),
#heroSection:has(#locationFilterDropdown:not([hidden])) {
  z-index: 100;
}

.search-capsule-micro {
  display: block;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.search-capsule-value {
  display: block;
  min-width: 0;
}
.filter-capsule-field {
  position: relative;
  overflow: visible;
  min-width: 0;
  z-index: 41;
}

/* Hero filter capsule â€” div-based custom dropdowns (no native select) */
.harada-panel-wrapper select,
.search-capsule-segment--campus select,
#locationFilterDropdown select,
.filter-capsule-field select {
  display: none !important;
  pointer-events: none !important;
}

.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;
  overscroll-behavior: contain;
  border-radius: 1rem;

  /* Fully opaque â€” nothing from beneath bleeds through */
  background-color: #ffffff !important;
  background-clip: padding-box !important;

  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.10),
    0 8px 10px -6px rgba(0, 0, 0, 0.10) !important;
  padding: 0.35rem 0;

  /* NOTE: will-change and contain:layout paint are intentionally removed.
     Both properties create new stacking contexts / paint layers that trap
     z-index and cause the very bleed they were meant to prevent. */
}

.capsule-dropdown-menu:not(.hidden):not([hidden]),
.custom-dropdown-menu:not(.hidden):not([hidden]),
.custom-dropdown-list-container:not(.hidden):not([hidden]) {
  display: block;
}

.capsule-dropdown-menu.hidden,
.capsule-dropdown-menu[hidden],
.custom-dropdown-menu.hidden,
.custom-dropdown-menu[hidden],
.custom-dropdown-list-container.hidden,
.custom-dropdown-list-container[hidden] {
  display: none !important;
}

.dark #cityFilterMenu,
.dark #districtFilterMenu,
.dark #universityFilterMenu,
.dark #cityDropdownMenu,
.dark #campusDropdownMenu,
.dark #regionDropdownMenu,
.dark .capsule-dropdown-menu,
.dark .custom-dropdown-menu,
.dark .custom-dropdown-list-container {
  background-color: #0f172a !important; /* solid slate-900 */
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.40),
    0 8px 10px -6px rgba(0, 0, 0, 0.30) !important;
}

.capsule-dropdown-menu.scrollbar-none,
.custom-dropdown-menu.scrollbar-none,
.custom-dropdown-list-container.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.capsule-dropdown-menu.scrollbar-none::-webkit-scrollbar,
.custom-dropdown-menu.scrollbar-none::-webkit-scrollbar,
.custom-dropdown-list-container.scrollbar-none::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.capsule-dropdown-menu .dropdown-item,
.custom-dropdown-menu .dropdown-item,
.custom-dropdown-list-container .dropdown-item {
  border-radius: 0.5rem;
  margin: 0 0.35rem;
}

.capsule-dropdown-menu .dropdown-item:first-child,
.custom-dropdown-menu .dropdown-item:first-child,
.custom-dropdown-list-container .dropdown-item:first-child {
  margin-top: 0.15rem;
}

.capsule-dropdown-menu .dropdown-item:last-child,
.custom-dropdown-menu .dropdown-item:last-child,
.custom-dropdown-list-container .dropdown-item:last-child {
  margin-bottom: 0.15rem;
}

.dropdown-item.is-selected {
  background: rgba(237, 233, 254, 0.85);
  color: #6d28d9;
  font-weight: 600;
}

/* Background panel stability while filter dropdown overlays are active */
.main-feed-panel,
.card,
#mainAppLayout,
.how-it-works,
.listing-feed-pipeline,
.how-step,
.premium-card {
  position: relative;
  transform: translateZ(0);
}

.dark .dropdown-item.is-selected {
  background: rgba(88, 28, 135, 0.22);
  color: #c4b5fd;
}

.search-capsule-segment-wrap {
  min-width: 0;
  overflow: visible;
}

.harada-panel-wrapper {
  position: relative;
  overflow: visible;
}

.harada-panel-dropdown {
  overflow: visible;
  z-index: 45;
}

#heroSection:has(.search-capsule-wrap.is-dropdown-active) .search-capsule-dropdown,
#heroSection:has(#locationFilterDropdown:not([hidden])) .search-capsule-dropdown {
  z-index: 9997;
}

.harada-city-field {
  position: relative;
  overflow: visible;
  margin-bottom: 1.25rem;
}

.harada-city-root,
.harada-district-root {
  position: relative;
  overflow: visible;
  /* z-index intentionally omitted: a value here creates a stacking context
     that traps the child menu and lets the sibling root paint over it. */
}

/* When a menu is open, promote that root above siblings */
.harada-city-root:has(#cityFilterMenu:not(.hidden):not([hidden])),
.harada-district-root:has(#districtFilterMenu:not(.hidden):not([hidden])) {
  z-index: 50;
}

#heroUniversityFilterRoot {
  position: relative;
  overflow: visible;
}
#heroUniversityFilterRoot:has(#universityFilterMenu:not(.hidden):not([hidden])) {
  z-index: 50;
}

#locationFilterSection.is-location-open {
  z-index: 55;
}
.search-capsule-segment--campus {
  overflow: visible;
}
.search-capsule-segment.is-open,
#locationFilterTrigger.is-open {
  background: rgba(248, 250, 252, 0.95);
}
.dark .search-capsule-segment.is-open,
.dark #locationFilterTrigger.is-open {
  background: rgba(30, 41, 59, 0.75);
}
.search-capsule-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  overflow: visible;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.search-capsule-dropdown[hidden] {
  display: none !important;
}
.search-capsule-dropdown-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  overflow: visible;
  position: relative;
}
.custom-dropdown-root {
  position: relative;
  overflow: visible;
}

.custom-dropdown-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.custom-dropdown-trigger:disabled:hover {
  border-color: rgba(226, 232, 240, 0.8);
}
.dark .custom-dropdown-trigger:disabled:hover {
  border-color: rgb(30 41 59);
}
.custom-dropdown-trigger.is-open .custom-dropdown-chevron {
  transform: rotate(180deg);
}
.search-capsule-dropdown-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.custom-dropdown-chevron {
  transition: transform 0.2s ease;
}
.custom-dropdown-item.is-selected {
  background: rgba(237, 233, 254, 0.85);
  color: #6d28d9;
  font-weight: 700;
}
.dark .custom-dropdown-item.is-selected {
  background: rgba(88, 28, 135, 0.22);
  color: #c4b5fd;
}

/* Registration — city dropdown (V+ capsule parity inside auth modal) */
.reg-city-field,
.reg-city-root {
  position: relative;
  overflow: visible;
}

.reg-city-root:has(#regCityDropdownMenu:not(.hidden):not([hidden])) {
  z-index: 120;
}

#signupModal .reg-city-toggle {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dark #signupModal .reg-city-toggle {
  background: rgba(15, 23, 42, 0.82);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#signupModal .reg-city-toggle:hover:not(.is-disabled):not([aria-disabled="true"]) {
  border-color: rgba(109, 93, 246, 0.55);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.12),
    0 8px 20px -8px rgba(109, 93, 246, 0.35);
}

.dark #signupModal .reg-city-toggle:hover:not(.is-disabled):not([aria-disabled="true"]) {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.18),
    0 8px 22px -8px rgba(109, 93, 246, 0.45);
}

#signupModal .reg-city-toggle.is-open,
#signupModal .reg-city-toggle[aria-expanded="true"] {
  border-color: rgba(109, 93, 246, 0.65);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.16),
    0 10px 24px -10px rgba(109, 93, 246, 0.4);
}

#signupModal #regCityDropdownMenu.reg-city-menu {
  z-index: 10050 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#signupModal .vplus-dropdown-trigger {
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border-color: rgba(226, 232, 240, 0.85);
}

.dark #signupModal .vplus-dropdown-trigger {
  border-color: rgba(51, 65, 85, 0.85);
}

.creative-hub-form-panel .vplus-dropdown-trigger {
  min-height: 2.75rem;
}

/* ─── V+ premium custom dropdowns (glass + neon hover) ─── */
.vplus-dropdown-root {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.vplus-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.dark .vplus-dropdown-trigger {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vplus-dropdown-label.is-placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.vplus-dropdown-trigger:hover:not(:disabled) {
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.1),
    0 10px 24px -12px rgba(109, 93, 246, 0.35);
}

.vplus-dropdown-trigger.is-open,
.vplus-dropdown-root.is-open .vplus-dropdown-trigger {
  border-color: rgba(109, 93, 246, 0.55);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.14),
    0 12px 28px -12px rgba(109, 93, 246, 0.42);
}

.vplus-dropdown-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.vplus-dropdown-trigger.is-open .vplus-dropdown-chevron,
.vplus-dropdown-root.is-open .vplus-dropdown-chevron {
  transform: rotate(180deg);
}

.vplus-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.dark .vplus-dropdown-menu {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.vplus-dropdown-menu.hidden,
.vplus-dropdown-menu[hidden] {
  display: none !important;
}

.vplus-dropdown-item {
  border-radius: 0.55rem;
  margin: 0.1rem 0;
}

.vplus-dropdown-item:hover,
.vplus-dropdown-item:focus-visible {
  background: rgba(109, 93, 246, 0.12) !important;
  color: #6d28d9 !important;
  box-shadow:
    inset 0 0 0 1px rgba(147, 51, 234, 0.22),
    0 0 14px rgba(147, 51, 234, 0.18);
}

.dark .vplus-dropdown-item:hover,
.dark .vplus-dropdown-item:focus-visible {
  background: rgba(88, 28, 135, 0.24) !important;
  color: #c4b5fd !important;
  box-shadow:
    inset 0 0 0 1px rgba(167, 139, 250, 0.28),
    0 0 16px rgba(109, 93, 246, 0.22);
}

.vplus-dropdown-item.is-selected {
  background: rgba(237, 233, 254, 0.9) !important;
  color: #6d28d9 !important;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(109, 93, 246, 0.2);
}

.dark .vplus-dropdown-item.is-selected {
  background: rgba(88, 28, 135, 0.28) !important;
  color: #c4b5fd !important;
}

.filter-panel-controls-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  overflow: visible;
}

.filter-metro-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 0.15rem;
  border-top: 1px solid transparent;
  pointer-events: none;
  transition:
    max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.32s ease,
    margin-top 0.32s ease,
    padding-top 0.32s ease,
    padding-bottom 0.32s ease,
    border-color 0.32s ease;
}
.filter-metro-row.is-visible {
  max-height: 10rem;
  opacity: 1;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  padding-bottom: 0.3rem;
  border-top-color: rgba(226, 232, 240, 0.65);
  pointer-events: auto;
}
.dark .filter-metro-row.is-visible {
  border-top-color: rgba(51, 65, 85, 0.65);
}
.filter-metro-row.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  pointer-events: none;
}

/* ─── Country selector pills inside harada location panel ──────────── */
.harada-country-field {
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  margin-bottom: 1rem;
}
.harada-country-field .search-capsule-dropdown-label {
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.dark .harada-country-field {
  border-bottom-color: rgba(51, 65, 85, 0.65);
}

.harada-country-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
  position: relative;
  z-index: 2;
}

.harada-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(203, 213, 225, 0.75);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #64748b;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.12s ease;
  user-select: none;
  pointer-events: auto;
}
.harada-country-pill:active {
  transform: scale(0.97);
}
.harada-country-pill:hover {
  border-color: rgba(109, 93, 246, 0.45);
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.6);
}
.harada-country-pill.is-active {
  border-color: rgba(109, 93, 246, 0.7);
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.12), rgba(147, 51, 234, 0.08));
  color: #6d28d9;
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.dark .harada-country-pill {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.75);
  color: #94a3b8;
}
.dark .harada-country-pill:hover {
  border-color: rgba(109, 93, 246, 0.5);
  color: #c4b5fd;
  background: rgba(88, 28, 135, 0.2);
}
.dark .harada-country-pill.is-active {
  border-color: rgba(109, 93, 246, 0.65);
  background: rgba(88, 28, 135, 0.25);
  color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.15);
}

/* ─── Filter Reset Button (premium glass) ─────────────────────────── */
.filter-reset-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  margin: 0.5rem auto 0;
  padding: 0 clamp(0.25rem, 2vw, 1rem);
  pointer-events: auto;
}

.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 20px;
  min-height: 2.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow, 0 4px 16px rgba(15, 23, 42, 0.08));
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-reset-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.85;
}

.filter-reset-btn:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.filter-reset-btn:active {
  transform: scale(0.98);
}

.filter-reset-btn.hidden {
  display: none !important;
}

.dark .filter-reset-btn {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark .filter-reset-btn:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.filter-metro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
  margin-bottom: 0.1rem;
}
.dark .filter-metro-label {
  color: #94a3b8;
}

.filter-metro-icon {
  width: 1rem;
  height: 1rem;
  color: #7c3aed;
}

.filter-metro-root {
  width: 100%;
  min-width: 0;
}

.auth-field--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.auth-field--checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #7c3aed;
}

.hub-metro-fields {
  display: grid;
  gap: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  margin-top: 0;
  transition: all 0.3s ease;
}

.hub-metro-fields:not(.hidden) {
  max-height: 24rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-top: 0.25rem;
}

.hub-metro-fields.hidden {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin-top: 0;
}

.post-location-cascade {
  margin-bottom: 0;
}

.price-range-input {
  min-width: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.price-range-input::-webkit-outer-spin-button,
.price-range-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-select-wrap--capsule {
  position: relative;
  display: block;
  min-width: 0;
}
.filter-select-wrap--capsule select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.95);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}
.filter-select-wrap--inline select {
  min-height: 1.35rem;
  padding: 0.05rem 1.25rem 0.05rem 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.filter-select-wrap--capsule .filter-chevron {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.filter-select-wrap--inline .filter-chevron {
  right: 0;
}
.search-capsule-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.search-capsule-actions {
  min-width: 0;
}
.filter-toggle-btn--icon {
  border: 0;
  background: transparent;
  font: inherit;
}
.filter-toggle-btn--icon.is-active {
  color: #7c3aed;
  background: rgba(109, 93, 246, 0.1);
}
.filter-toggle-icon {
  flex-shrink: 0;
}
.search-capsule-submit {
  border: 0;
  font: inherit;
  min-width: 2.75rem;
  min-height: 2.75rem;
}
@media (min-width: 768px) {
  .search-capsule-submit {
    min-width: auto;
    min-height: auto;
  }
}
.filter-panel-body--capsule {
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}
.filter-panel-body--capsule .filter-advanced-chips {
  margin-top: 0;
  padding-top: 0.15rem;
}
.filter-panel-body--capsule.is-open .filter-advanced-chips {
  margin-top: 0.35rem;
}

/* â”€â”€â”€ Filter panel inner â”€â”€â”€ */
.filter-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.filter-panel-body > .filter-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.filter-panel-body.is-open > .filter-panel-inner {
  overflow: visible;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in {
  animation: fade-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in {
    animation: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 767px) {
  .search-capsule-dropdown,
  .harada-panel-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    margin: 0;
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    border: 1px solid rgba(226, 232, 240, 0.95);
  }
  .search-capsule-segment-wrap:has(#locationFilterDropdown:not([hidden])),
  .harada-panel-wrapper:has(#locationFilterDropdown:not([hidden])) {
    background: rgba(248, 250, 252, 0.65);
    border-radius: 1rem;
  }
}
.dark .search-capsule-dropdown {
  background: #161b26;
  border-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dark .filter-select-wrap--capsule select {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.85);
  color: #f8fafc;
}
.dark .filter-toggle-btn--icon.is-active {
  background: rgba(109, 93, 246, 0.18);
  color: #c4b5fd;
}
.search-card--minimal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(109, 93, 246, 0.03) 0%,
    transparent 42%,
    rgba(20, 184, 166, 0.025) 100%
  );
  pointer-events: none;
}
.search-card--minimal > * {
  position: relative;
  z-index: 1;
}
.search-card--minimal .search-card-head--compact {
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.search-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .search-bar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}
@media (min-width: 1024px) {
  .search-bar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.55rem;
    align-items: stretch;
  }
}
.search-row-primary {
  gap: 1.5rem;
}

.hero-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.15rem;
  max-width: 44rem;
}
.quick-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.quick-chip--glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.quick-chip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), #d946ef, var(--teal));
  box-shadow: 0 0 10px rgba(109, 93, 246, 0.45);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.quick-chip:hover::after,
.quick-chip:focus-within::after {
  width: 72%;
}
.quick-chip:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 6px 20px rgba(109, 93, 246, 0.12),
    0 0 0 1px rgba(139, 92, 246, 0.08);
  transform: translateY(-2px) scale(1.03);
  color: #1e293b;
}
.quick-chip:has(input:checked)::after {
  width: 72%;
}
.quick-chip:has(input:checked) {
  border-color: rgba(109, 93, 246, 0.55);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.92), rgba(237, 233, 254, 0.88));
  color: #4338ca;
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.12),
    0 8px 22px rgba(109, 93, 246, 0.14);
}
.quick-chip:active {
  transform: scale(0.98);
}
.quick-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.quick-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-chip-text {
  padding-right: 0.1rem;
  white-space: nowrap;
}
.quick-chip:has(input:checked) .quick-chip-icon {
  background: linear-gradient(145deg, #6d5df6, #5b4cf0);
  border-color: #6d5df6;
  box-shadow: 0 2px 8px rgba(109, 93, 246, 0.35);
}
.quick-chip:has(input:focus-visible) {
  outline: 2px solid #6d5df6;
  outline-offset: 2px;
}
@media (max-width: 639px) {
  .hero-quick-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 100%;
  }
  .quick-chip {
    justify-content: flex-start;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
    min-height: 2.75rem;
  }
  .quick-chip-text {
    white-space: normal;
    text-align: left;
    font-size: 0.78rem;
  }
  .quick-chip--wide {
    grid-column: 1 / -1;
  }
}
@media (min-width: 640px) {
  .quick-chip--wide .quick-chip-text {
    white-space: nowrap;
  }
}

.search-card {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 0.25rem);
  transition: all 300ms ease-in-out;
}
.search-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}
.filter-toggle-btn:hover {
  background: var(--surface-raised);
  color: var(--violet);
}
.filter-toggle-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform var(--motion-duration) var(--motion-ease);
}
.filter-toggle-btn[aria-expanded="false"] .filter-toggle-chevron {
  transform: rotate(-90deg);
}
.filter-panel-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--motion-duration) var(--motion-ease), opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  transform-origin: top center;
}
.filter-panel-body > * {
  overflow: hidden;
  min-height: 0;
}

.filter-panel-body:not(.is-open) {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.filter-advanced-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}
.filter-panel-body.is-open .filter-advanced-chips {
  margin-top: 1rem;
}
.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.filter-chip:hover {
  border-color: rgba(203, 213, 225, 0.9);
  background: var(--surface-raised);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}
.filter-chip:has(input:checked) {
  border-color: rgba(109, 93, 246, 0.35);
  background: rgba(109, 93, 246, 0.1);
  color: var(--violet);
}
.filter-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.search-card-label {
  margin-bottom: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.filter-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--field-bg);
  border: 1px solid var(--line);
  min-width: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.search-card--minimal .filter-field--compact {
  gap: 0.25rem;
  padding: 0.45rem 0.65rem 0.5rem;
  border-radius: 0.65rem;
  background: var(--field-bg-compact);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.search-card--minimal .filter-field--compact.is-disabled {
  background: var(--field-bg-disabled);
  border-color: var(--line);
}
.search-card--minimal .filter-field--compact .filter-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  line-height: 1;
}
.search-card--minimal .filter-field--compact select {
  min-height: 2rem;
  padding: 0.15rem 1.5rem 0.15rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
.search-card--minimal .filter-field--compact .filter-chevron {
  right: 0;
  width: 1rem;
  height: 1rem;
}
.filter-field.is-disabled {
  background: var(--field-bg-disabled);
  border-color: var(--line);
}
.filter-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  transition: color 0.25s ease, opacity 0.25s ease;
}
.filter-field.is-disabled .filter-label {
  color: var(--text-muted);
  opacity: 0.75;
}
.filter-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
  transition: opacity 0.25s ease;
}
.filter-field.is-disabled .filter-select-wrap {
  opacity: 0.4;
}
.filter-chevron {
  position: absolute;
  top: 50%;
  right: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  transition: background-image 0.25s ease;
}
.filter-field.is-disabled .filter-chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.filter-field select,
.filter-field input {
  width: 100%;
  min-height: 2.75rem;
  padding-right: 1.75rem;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: color 0.25s ease;
}
.filter-field select:disabled,
.filter-field.is-disabled select {
  color: var(--text-muted);
  cursor: not-allowed;
}
.filter-field select option {
  color: var(--ink);
  background: var(--input-bg);
}

.search-btn {
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  border: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  cursor: pointer;
  transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.search-btn--compact {
  width: 100%;
  min-height: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .search-bar-grid .search-btn--compact {
    grid-column: 1 / -1;
    min-height: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .search-bar-grid .search-btn--compact {
    min-width: 5.5rem;
    padding-inline: 1.25rem;
  }
}
.search-btn:hover {
  box-shadow: 0 10px 28px rgba(109, 93, 246, 0.35);
  transform: translateY(-2px);
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.section-title {
  margin-top: 0.25rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* â”€â”€â”€ NecÉ™ Ä°ÅŸlÉ™yir? â”€â”€â”€ */
.how-it-works {
  position: relative;
  z-index: 0;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  overflow: hidden;
}
.how-it-works-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.how-it-works-head {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.how-it-works-head .section-eyebrow {
  margin-bottom: 0.35rem;
}
.how-it-works-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.how-it-works-grid {
  width: 100%;
  min-width: 0;
}
.how-step {
  min-width: 0;
  max-width: 100%;
}
.how-step.premium-card {
  padding: 1.65rem 1.5rem 1.5rem;
}
.how-step-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  color: #6d5df6;
  background: rgba(109, 93, 246, 0.1);
  border: 1px solid rgba(109, 93, 246, 0.15);
}
.how-step-title {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.how-step-desc {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.625;
  color: #64748b;
}
@media (min-width: 768px) {
  .how-it-works-grid {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  .how-step + .how-step {
    padding-left: 0.5rem;
  }
}
@media (max-width: 767px) {
  .how-it-works-grid {
    gap: 1.25rem;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
  .how-step:not(:last-child) {
    margin-bottom: 0;
  }
  .hero-ring-accent {
    width: 5rem;
    height: 5rem;
    right: 0;
    top: -1.5rem;
  }
  .hero-pills {
    gap: 0.4rem;
  }
  .hero-pill {
    font-size: 0.72rem;
    padding: 0.32rem 0.7rem;
  }
}

.tab-switch {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.6);
  gap: 0.15rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.tab-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(1.02);
}
.tab-btn:active { transform: scale(0.97); }

.listing-grid--motion {
  transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}
.listing-grid.is-updating {
  opacity: 0.55;
  transform: scale(0.985);
}

.listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.listing-grid-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: visible;
  clear: both;
  scroll-margin-top: calc(5rem + var(--safe-top));
}
.listing-grid-wrap > .listing-grid + .listing-grid:not(.hidden) {
  margin-top: 1.25rem;
}

/* ─── Ev / Ev yoldaşı rejim keçidi ─── */
.feed-mode-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--field-bg) 78%, transparent);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
}
@media (min-width: 768px) {
  .feed-mode-switcher {
    max-width: 22rem;
  }
}
.feed-mode-switcher.hidden {
  display: none;
}
.feed-mode-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}
.feed-mode-tab:hover {
  color: var(--ink);
}
.feed-mode-tab.is-active {
  background: color-mix(in srgb, var(--input-bg) 92%, transparent);
  color: var(--violet);
  font-weight: 800;
  box-shadow:
    0 4px 14px rgba(109, 93, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.listings-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.utilities-section {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.5rem, 5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 6rem);
}

.listing-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
  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: 60;
  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;
}
/* Auth backdrop visible once modal is shown */
.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: 70;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 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: 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;
  z-index: 1;
  pointer-events: auto;
  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 {
  max-height: none;
  opacity: 1;
  overflow: visible;
  margin-top: 0;
  display: none;
}
.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;
}
.card-price .price-azn-equiv {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.1rem;
  font-weight: 700;
}
.detail-price .price-azn-equiv {
  font-size: 0.72em;
  font-weight: 700;
}

.auth-form, .post-form { margin-top: 1.25rem; display: grid; gap: 0.85rem; }
.auth-form.signup-wizard {
  gap: 0;
  margin-top: 1rem;
}
.post-form-hint {
  margin: -0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}
.auth-field { display: grid; gap: 0.35rem; }
.auth-field span, .auth-field.span-block {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.auth-field input,
.auth-field select,
.auth-field textarea {
  min-height: 2.85rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  background-color: var(--input-bg);
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field textarea {
  min-height: 5rem;
  padding: 0.65rem 0.85rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}
.auth-field select {
  padding-right: 2.25rem;
  cursor: pointer;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
}
.auth-field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-field select option {
  color: var(--ink);
  background: var(--input-bg);
}
.auth-submit {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  min-height: 3rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.auth-back {
  margin-top: 0.5rem;
  background: none;
  border: 0;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
}

.otp-row { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.otp-digit {
  width: 3rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}

.lifestyle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.lifestyle-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.lifestyle-badge.is-selected {
  background: rgba(109, 93, 246, 0.12);
  border-color: var(--violet);
  color: var(--violet);
}
.lifestyle-badge:active { transform: scale(0.96); }

.uni-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.uni-picker-chip {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.uni-picker-chip.is-selected {
  background: rgba(109, 93, 246, 0.12);
  border-color: var(--violet);
  color: var(--violet);
}
.uni-picker-chip:active { transform: scale(0.96); }
.uni-picker-chip.is-filtered-out { display: none; }
.uni-picker-code {
  font-weight: 600;
  opacity: 0.75;
}

.uni-search-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem 0.55rem 2.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.65rem center;
  background-size: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.uni-search-input:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.38);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.1);
}
.uni-search-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--field-bg-disabled);
}
.filter-field--stacked .filter-select-wrap {
  margin-top: 0.35rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}
.lang-switcher--drawer {
  width: 100%;
  max-width: 100%;
}
.lang-switcher-btn {
  min-width: 2.1rem;
  padding: 0.38rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.lang-switcher-btn:hover {
  color: var(--violet);
}
.lang-switcher-btn.is-active {
  background: linear-gradient(135deg, #6d5df6, #8b7cf8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 93, 246, 0.35);
}
.lang-switcher-btn:active { transform: scale(0.96); }

/* â”€â”€â”€ Compact language dropdown (desktop navbar) â”€â”€â”€ */
.lang-dropdown {
  position: relative;
  z-index: 46;
}
.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lang-dropdown-trigger:hover,
.lang-dropdown-trigger:focus-visible {
  background: #f8fafc;
  border-color: rgba(109, 93, 246, 0.28);
  color: var(--violet);
  outline: none;
}
.lang-dropdown-label {
  line-height: 1;
}
.lang-dropdown-chevron {
  width: 0.85rem;
  height: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.lang-dropdown.is-open .lang-dropdown-chevron {
  transform: rotate(180deg);
}
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  z-index: 50;
}
.lang-dropdown-menu[hidden] {
  display: none;
}
.lang-dropdown-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-dropdown-option:hover,
.lang-dropdown-option:focus-visible {
  background: #f8fafc;
  color: var(--violet);
  outline: none;
}
.lang-dropdown-option.is-active {
  background: rgba(109, 93, 246, 0.08);
  color: var(--violet);
}

@media (max-width: 1023px) {
  .site-header .lang-switcher:not(.lang-switcher--drawer) {
    display: none;
  }
}

.housemates-acc {
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.housemates-acc summary { font-weight: 800; cursor: pointer; }

.chat-shell {
  position: relative;
  width: min(100%, 22rem);
  max-width: 22rem;
  height: min(500px, calc(100dvh - 7.5rem));
  max-height: 550px;
  margin: 0;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0.75rem) scale(0.96);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    box-shadow 0.28s ease;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}
@media (min-width: 768px) {
  .chat-shell {
    width: min(100%, 44rem);
    max-width: 44rem;
  }
}
.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;
}
.chat-threads {
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 9.5rem;
  flex-shrink: 0;
  min-height: 0;
}
@media (min-width: 768px) {
  .chat-threads {
    max-height: none;
    height: 100%;
    width: 33.333333%;
    min-width: 200px;
    flex-shrink: 0;
  }
}

.chat-thread-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: transparent;
  cursor: default;
  transition: background 0.2s ease;
}
.chat-thread-item:hover,
.chat-thread-item:focus-visible {
  background: rgba(248, 250, 252, 0.95);
}
.chat-thread-item.is-active {
  background: linear-gradient(90deg, rgba(237, 233, 254, 0.65), rgba(255, 255, 255, 0.4));
  box-shadow: inset 3px 0 0 #7c3aed;
}
.chat-thread-avatar {
  position: relative;
  flex-shrink: 0;
  display: block;
}
.chat-thread-avatar-ring {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease;
}
.chat-thread-avatar.is-online .chat-thread-avatar-ring {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #10b981;
}
.dark .chat-thread-avatar.is-online .chat-thread-avatar-ring {
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 4px #10b981;
}
.chat-thread-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.chat-thread-avatar-letter {
  font-size: 1rem;
  font-weight: 800;
  color: var(--violet);
}
.chat-thread-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.15s ease;
}
.chat-thread-body:focus-visible {
  outline: 2px solid rgba(109, 93, 246, 0.45);
  outline-offset: 2px;
}
.chat-thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}
.chat-thread-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.chat-thread-time {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
}
.chat-thread-preview {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.chat-thread-row--preview {
  align-items: center;
}
.chat-unread-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}
.chat-role-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  line-height: 1.35;
}
.chat-role-badge--host {
  background: #fff1f2;
  color: #e11d48;
}
.chat-role-badge--roommate {
  background: #faf5ff;
  color: #9333ea;
}
.chat-role-badge--seller {
  background: #eff6ff;
  color: #2563eb;
}
.chat-role-badge--default {
  background: #f8fafc;
  color: #64748b;
}
.dark .chat-role-badge--host {
  background: rgba(136, 19, 55, 0.3);
  color: #fb7185;
}
.dark .chat-role-badge--roommate {
  background: rgba(88, 28, 135, 0.3);
  color: #c084fc;
}
.dark .chat-role-badge--seller {
  background: rgba(30, 58, 138, 0.3);
  color: #60a5fa;
}
.dark .chat-role-badge--default {
  background: rgba(51, 65, 85, 0.45);
  color: #94a3b8;
}

.thread-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.thread-btn.is-active { background: #eef2ff; color: var(--violet); }

.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #fff;
}
.chat-peer-head {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.chat-peer-head-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.chat-peer-head-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.chat-peer-head-avatar.is-online {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #10b981;
}
.dark .chat-peer-head-avatar.is-online {
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 3px #10b981;
}
.chat-peer-head-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-peer-head-avatar-letter {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--violet);
}
.chat-peer-head-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.chat-peer-head-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-peer-head-status {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
}
.chat-peer-head-status.is-live {
  color: #10b981;
}

.chat-peer-profile-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 0.65rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.chat-peer-profile-trigger:hover,
.chat-peer-profile-trigger:focus-visible {
  background: rgba(109, 93, 246, 0.08);
  outline: none;
}
.chat-peer-profile-trigger:active {
  transform: scale(0.99);
}

.chat-thread-avatar-trigger {
  flex-shrink: 0;
  display: inline-flex;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.chat-thread-avatar-trigger:hover,
.chat-thread-avatar-trigger:focus-visible {
  transform: scale(1.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.18);
}
.chat-thread-avatar-trigger:active {
  transform: scale(0.97);
}

/* ─── 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);
}
.chat-input-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.75rem;
  max-height: 5rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1e293b;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.chat-input-field::placeholder {
  color: #94a3b8;
}
.chat-input-field:focus {
  outline: none;
}
.dark .chat-input-field {
  color: #f1f5f9;
}
.chat-send-btn {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #9333ea;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.chat-send-btn:hover,
.chat-send-btn:focus-visible {
  background: #7e22ce;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35);
}
.chat-send-btn:active {
  transform: scale(0.94);
}
.chat-send {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send--purple {
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.28);
}
.chat-send--purple:hover {
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.36);
}

/* â”€â”€â”€ ÃœzÉ™n elan yerlÉ™ÅŸdir FAB â”€â”€â”€ */
.post-ad-fab {
  position: fixed;
  right: 1.5rem;
  bottom: calc(6rem + var(--safe-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #9333ea, #4f46e5);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease, padding 0.3s ease, gap 0.3s ease;
  overflow: hidden;
}
.post-ad-fab:hover,
.post-ad-fab:focus-visible {
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
  transform: translateY(-2px);
  padding-left: 1.15rem;
  padding-right: 1.25rem;
  gap: 0.5rem;
}
.post-ad-fab-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.post-ad-fab-label {
  max-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease-in-out, opacity 0.25s ease;
}
.post-ad-fab:hover .post-ad-fab-label,
.post-ad-fab:focus-visible .post-ad-fab-label {
  max-width: 12rem;
  opacity: 1;
}
@media (max-width: 768px) {
  .post-ad-fab {
    right: 0.9rem;
    bottom: calc(5.5rem + var(--safe-bottom, 0px));
    padding: 0.9rem;
  }
  .post-ad-fab:hover,
  .post-ad-fab:focus-visible {
    padding-left: 1rem;
    padding-right: 1.1rem;
  }
}
body.creative-hub-open .post-ad-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
}

/* â”€â”€â”€ ÃœzÉ™n Ã§at FAB â”€â”€â”€ */
.chat-fab {
  position: fixed;
  right: 1.15rem;
  bottom: calc(1.15rem + var(--safe-bottom, 0px));
  z-index: 115;
  width: 3.6rem;
  height: 3.6rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px rgba(109, 93, 246, 0.42);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.chat-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 42px rgba(109, 93, 246, 0.5);
}
.chat-fab.is-active {
  transform: scale(0.94);
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.32);
}
.chat-fab-icon {
  font-size: 1.45rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.chat-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(109, 93, 246, 0.35);
  animation: chatFabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.chat-fab.is-active .chat-fab-pulse {
  animation: none;
  opacity: 0;
}
@keyframes chatFabPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 768px) {
  .chat-fab {
    right: 0.9rem;
    bottom: calc(0.9rem + var(--safe-bottom, 0px));
    width: 3.35rem;
    height: 3.35rem;
  }
}

.toast {
  position: fixed;
  bottom: calc(1.25rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  max-width: calc(100vw - 2rem - var(--safe-left) - var(--safe-right));
}
.toast.hidden { display: none; }
body:has(#signupModal.is-open) #toast,
body:has(#loginModal.is-open) #toast {
  z-index: 10050;
}
.toast--error {
  background: #fff;
  color: #991b1b;
  border: 2px solid #ef4444;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.18);
  font-weight: 700;
  line-height: 1.45;
  padding: 0.9rem 1.15rem;
  max-width: min(34rem, calc(100vw - 2rem - var(--safe-left) - var(--safe-right)));
}
.toast--success {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.16);
  font-weight: 700;
  line-height: 1.45;
  padding: 0.9rem 1.15rem;
  max-width: min(34rem, calc(100vw - 2rem - var(--safe-left) - var(--safe-right)));
}
.dark .toast--success {
  background: rgba(15, 23, 42, 0.82);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

/* â”€â”€â”€ Authenticated user profile & settings â”€â”€â”€ */
.profile-menu {
  position: relative;
  z-index: 60;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  max-width: min(72vw, 280px);
  min-width: 0;
  touch-action: manipulation;
}
.profile-trigger--compact {
  gap: 0.45rem;
  padding: 0.3rem 0.45rem 0.3rem 0.3rem;
  max-width: 9.75rem;
  min-width: 0;
}
.profile-trigger--compact .profile-name,
.site-nav .profile-name {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.profile-trigger:hover { background: #f8fafc; border-color: #cbd5e1; }

.profile-trigger-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.profile-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  min-width: 0;
}

.profile-chevron {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.profile-menu.is-open .profile-chevron { transform: rotate(180deg); }

.verified-student-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #2563eb;
  flex-shrink: 0;
}
.verified-student-badge svg { width: 100%; height: 100%; }

.profile-verified-status {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
}
.profile-verified-status.is-visible,
.profile-verified-status:not(.hidden) {
  display: inline-flex;
}
.dark .profile-verified-status {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.user-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #ecfdf5);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.user-avatar--xs { width: 2rem; height: 2rem; font-size: 1rem; }
.user-avatar--sm { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
.user-avatar--md { width: 2.75rem; height: 2.75rem; font-size: 1.35rem; }
.user-avatar--lg { width: 6.5rem; height: 6.5rem; font-size: 2.75rem; }

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.user-avatar-emoji {
  line-height: 1;
  user-select: none;
}
.user-avatar-img:not(.hidden) + .user-avatar-emoji { display: none; }

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 14rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.08),
    0 8px 10px -6px rgba(15, 23, 42, 0.06);
  z-index: 50;
  pointer-events: auto;
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.profile-dropdown[hidden] {
  display: none !important;
}
.profile-menu.is-open .profile-dropdown:not([hidden]) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.profile-dropdown-summary {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0.35rem 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.06), rgba(20, 184, 166, 0.05));
  border: 1px solid rgba(109, 93, 246, 0.12);
}
.profile-dropdown-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.profile-dropdown-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
  white-space: nowrap;
}
.profile-dropdown-balance {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.profile-dropdown-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.profile-dropdown-trust.hidden { display: none; }
.profile-dropdown-trust-score {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.profile-dropdown-trust-score.trust-score--low { color: #64748b; }
.profile-dropdown-trust-score.trust-score--mid { color: #d97706; }
.profile-dropdown-trust-score.trust-score--high { color: #059669; }
.profile-dropdown-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
}
.profile-dropdown-verified svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.profile-dropdown-verified.hidden { display: none; }

/* Luxury blue "Admin Verified Student" badge in profile dropdown */
.nav-verified-student-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.08));
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
  margin-top: 0.2rem;
}
.dark .nav-verified-student-badge {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.35);
}
.nav-verified-student-badge svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.nav-verified-student-badge.hidden { display: none; }

.profile-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
}
.profile-dropdown-item:hover { background: #f8fafc; }
.profile-dropdown-item:active { transform: scale(0.98); }
.profile-dropdown-item--danger { color: #dc2626; }
.profile-dropdown-item--danger:hover { background: #fef2f2; }

.nav-utility-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
  touch-action: manipulation;
}
.avatar-pick-btn:hover { border-color: var(--violet); background: #eef2ff; }
.avatar-pick-btn.is-selected {
  border-color: var(--violet);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.15);
}
.avatar-pick-btn:active { transform: scale(0.95); }

.avatar-upload-btn {
  margin-top: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.my-listings-panel {
  max-width: 42rem;
}

.my-listings-head {
  padding-right: 2rem;
}

.my-listings-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.my-listings-rule-capsules {
  margin-top: 0.75rem;
}

.my-listings-content {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  max-height: min(58dvh, 28rem);
  overflow-y: auto;
  padding-right: 0.2rem;
}

.my-listings-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  margin-top: 1rem;
  background: rgba(248, 250, 252, 0.5);
}

.my-listing-item {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.6);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.my-listing-item:first-child {
  margin-top: 0.75rem;
}

.my-listing-item-body {
  display: flex;
  flex-direction: column;
}

.my-listing-item-top {
  display: flex;
  flex-direction: column;
}

.my-listing-item-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
}

.my-listing-item-price {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}

.my-listing-item-meta,
.my-listing-item-time {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.my-listing-item-time time {
  font: inherit;
  color: inherit;
}

.my-listing-item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.my-listing-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.my-listing-item-actions--solo {
  justify-content: flex-start;
}

.my-listing-actions-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.my-listing-actions-right {
  flex: 1;
  min-width: 0;
  display: flex;
}

.my-listing-lifecycle-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.my-listing-lifecycle-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.my-listing-lifecycle-toggle.is-active {
  border-color: #e2e8f0;
  background: #fff;
  color: #334155;
}

.my-listing-lifecycle-toggle.is-active:hover {
  background: #f8fafc;
}

.my-listing-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: rgba(255, 241, 242, 0.5);
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.my-listing-delete-btn:hover,
.my-listing-delete-btn:focus-visible {
  background: rgba(255, 241, 242, 0.85);
  border-color: #fecdd3;
  outline: none;
}

.my-listing-boost-btn {
  flex: 1;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: none !important;
  background: linear-gradient(to right, #9333ea, #4f46e5) !important;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.my-listing-boost-btn:hover,
.my-listing-boost-btn:focus-visible {
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4) !important;
  transform: scale(1.02);
  outline: none;
  background: linear-gradient(to right, #9333ea, #4f46e5) !important;
  color: #fff !important;
}

.my-listing-boost-btn:active {
  transform: scale(0.99);
}

@media (max-width: 520px) {
  .my-listing-item {
    padding: 1.25rem;
  }

  .my-listing-item-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .my-listing-actions-left {
    width: 100%;
    justify-content: space-between;
  }

  .my-listing-actions-right {
    width: 100%;
  }
}

/* â”€â”€â”€ Premium Ã¶nÉ™ Ã§Ä±xarma (coming soon) â”€â”€â”€ */
.btn-promote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #7c6df7 0%, #6d5df6 35%, #4f46e5 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(109, 93, 246, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: visible;
}
.btn-promote-label {
  position: relative;
  z-index: 1;
}
.btn-promote-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%) translateY(4px);
  z-index: 20;
  width: max-content;
  max-width: min(16rem, 72vw);
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.btn-promote-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.94);
}
.btn-promote:hover .btn-promote-tooltip,
.btn-promote:focus-visible .btn-promote-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.btn-promote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn-promote:hover::after,
.btn-promote:focus-visible::after {
  transform: translateX(120%);
}
.btn-promote:hover,
.btn-promote:focus-visible {
  transform: scale(1.05);
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow:
    0 12px 30px rgba(109, 93, 246, 0.48),
    0 0 0 3px rgba(251, 191, 36, 0.18);
  outline: none;
}
.btn-promote:active {
  transform: scale(0.98);
}
.btn-promote--card {
  margin-top: 0.75rem;
}
.btn-promote--detail {
  margin-top: 0.75rem;
}
.btn-promote--dashboard {
  margin-top: 0.75rem;
}
.vip-promotion-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}
.vip-promotion-tooltip {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: #64748b;
}
.dark .vip-promotion-tooltip {
  color: #94a3b8;
}
.btn-promote--inline {
  width: auto;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.promote-feature-banner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 93, 246, 0.22);
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}
@media (min-width: 480px) {
  .promote-feature-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}
.promote-feature-banner-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  color: #4338ca;
}
.promote-feature-banner--boost {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.65));
  border-color: rgba(245, 158, 11, 0.24);
}
.promote-feature-banner--boost .promote-feature-banner-text {
  color: #92400e;
}
.dark .promote-feature-banner--boost {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.2);
}
.dark .promote-feature-banner--boost .promote-feature-banner-text {
  color: #fcd34d;
}

/* â”€â”€â”€ Boost / VIP qiymÉ™t modalÄ± â”€â”€â”€ */
.boost-pricing-panel {
  width: min(100%, 56rem);
  max-height: min(92vh, 44rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.25rem 1.5rem;
}
.boost-pricing-head {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}
.boost-pricing-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d5df6;
}
.boost-pricing-grid {
  margin-bottom: 1rem;
}
.boost-pricing-cell {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-height: 100%;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
.boost-pricing-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow:
    0 16px 36px rgba(109, 93, 246, 0.14),
    0 0 0 1px rgba(168, 85, 247, 0.08);
}
.boost-pricing-cell--trend {
  border-color: rgba(109, 93, 246, 0.22) !important;
  background: linear-gradient(180deg, rgba(109, 93, 246, 0.06) 0%, rgba(248, 250, 252, 1) 42%) !important;
}
.dark .boost-pricing-cell--trend {
  background: linear-gradient(180deg, rgba(109, 93, 246, 0.14) 0%, rgba(30, 41, 59, 0.5) 48%) !important;
}
.boost-pricing-trend-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #7c6df7, #6d5df6);
  box-shadow: 0 4px 12px rgba(109, 93, 246, 0.35);
}
.boost-pricing-icon {
  margin: 0.15rem 0 0;
  font-size: 1.65rem;
  line-height: 1;
}
.boost-pricing-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.boost-pricing-duration {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.dark .boost-pricing-duration {
  color: #94a3b8;
}
.boost-pricing-price {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.boost-pricing-price span {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.boost-pricing-desc {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
  color: #64748b;
  min-height: 2.8rem;
}
.dark .boost-pricing-desc {
  color: #94a3b8;
}
.boost-pricing-select {
  margin-top: auto;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.dark .boost-pricing-select {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.75);
}
.boost-pricing-select:hover,
.boost-pricing-select:focus-visible {
  border-color: rgba(109, 93, 246, 0.35);
  background: rgba(109, 93, 246, 0.06);
  transform: translateY(-1px);
}
.boost-pricing-select--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7c6df7 0%, #6d5df6 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.32);
}
.boost-pricing-select--primary:hover,
.boost-pricing-select--primary:focus-visible {
  background: linear-gradient(135deg, #6d5df6 0%, #5b4de6 100%);
  color: #fff;
  border-color: transparent;
}
.boost-pricing-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.boost-wallet-hint {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #92400e;
  text-align: center;
}
.boost-preview-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  vertical-align: middle;
}
.boost-coming-soon-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.boost-coming-soon-notice.hidden {
  display: none;
}
.boost-coming-soon-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.boost-coming-soon-title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #92400e;
}
.boost-coming-soon-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #b45309;
}
.boost-pricing-cell--preview-selected {
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}
.dark .boost-wallet-hint {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}
.dark .boost-preview-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}
.dark .boost-coming-soon-notice {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.24);
}
.dark .boost-coming-soon-title {
  color: #fcd34d;
}
.dark .boost-coming-soon-text {
  color: #fde68a;
}

/* â”€â”€â”€ Boost trigger dÃ¼ymÉ™si (listing kartlarÄ±) â€” amber premium, pul kisÉ™sindÉ™n fÉ™rqli â”€â”€â”€ */
.btn-boost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 2.15rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.88));
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.2s ease,
    box-shadow 0.22s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.dark .btn-boost {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(245, 158, 11, 0.12));
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}
.btn-boost:hover,
.btn-boost:focus-visible {
  background: linear-gradient(135deg, rgba(254, 243, 199, 1), rgba(253, 230, 138, 0.95));
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}
.dark .btn-boost:hover,
.dark .btn-boost:focus-visible {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.5), rgba(245, 158, 11, 0.18));
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}
.btn-boost--card {
  flex: 1 1 12rem;
}
.btn-boost--detail {
  width: 100%;
  min-height: 2.65rem;
  font-size: 0.82rem;
}
.btn-boost--dashboard {
  flex: 1 1 12rem;
}
.card-owned-actions .btn-boost {
  flex: 1 1 12rem;
  min-width: 0;
}

.listing-card--super-dormy {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 8px 28px rgba(109, 93, 246, 0.14);
}
.listing-card--super-dormy:hover {
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.2),
    0 12px 32px rgba(109, 93, 246, 0.18);
}
.card-boost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #5b21b6;
  background: rgba(237, 233, 254, 0.95);
  border: 1px solid rgba(167, 139, 250, 0.45);
}
.dark .card-boost-badge {
  color: #ddd6fe;
  background: rgba(76, 29, 149, 0.45);
  border-color: rgba(139, 92, 246, 0.35);
}
.card-boost-badge--super {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d5df6);
  border-color: transparent;
}
.dark .card-boost-badge--super {
  color: #fff;
}

.dark .listing-card--boosted {
  border-color: rgba(192, 132, 252, 0.4);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98) 0%, rgba(88, 28, 135, 0.1) 100%);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.18);
}
.dark .listing-card--boosted:hover,
.dark .listing-card--boosted:focus-visible {
  box-shadow: 0 16px 36px rgba(147, 51, 234, 0.28);
  border-color: rgba(192, 132, 252, 0.5);
}
.dark .listing-delete-btn {
  background: rgba(136, 19, 55, 0.2);
  color: #fb7185;
}
.dark .listing-delete-btn:hover,
.dark .listing-delete-btn:focus-visible {
  background: rgba(136, 19, 55, 0.4);
  color: #fda4af;
}

.promote-toast {
  position: fixed;
  top: calc(0.85rem + var(--safe-top));
  left: 50%;
  z-index: 90;
  width: min(calc(100vw - 1.5rem - var(--safe-left) - var(--safe-right)), 22rem);
  padding: 1rem 1rem 1.1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(109, 93, 246, 0.28);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateX(-50%) translateY(calc(-120% - var(--safe-top)));
  opacity: 0;
  pointer-events: none;
  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);
}
.reservation-send-btn {
  margin-top: 0.15rem;
}

.chat-reservation-wrap {
  display: flex;
  width: 100%;
  max-width: 92%;
}
.chat-reservation-wrap.sent {
  align-self: flex-end;
  justify-content: flex-end;
}
.chat-reservation-wrap.received {
  align-self: flex-start;
  justify-content: flex-start;
}
.chat-reservation-card {
  width: 100%;
  max-width: 20rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chat-reservation-header {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.55rem;
}
.chat-reservation-body {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.chat-reservation-body strong {
  font-weight: 800;
  color: var(--ink);
}
.chat-reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.chat-reservation-btn {
  flex: 1 1 auto;
  min-width: 7rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.chat-reservation-btn--accept {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.chat-reservation-btn--accept:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.32);
}
.chat-reservation-btn--decline {
  background: var(--field-bg);
  border-color: var(--line);
  color: var(--text-muted);
}
.chat-reservation-btn--decline:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.chat-reservation-status {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}
.chat-reservation-card.is-accepted .chat-reservation-status {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
}
.chat-reservation-card.is-declined .chat-reservation-status {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-muted);
}

/* â”€â”€â”€ Kommunal xÉ™rc bÃ¶lÃ¼cÃ¼ â”€â”€â”€ */
.utility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.utility-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.utility-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  opacity: 0.45;
}
.utility-card:hover {
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.utility-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.utility-card-icon {
  font-size: 1.65rem;
  line-height: 1;
}
.utility-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.utility-card-sub {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}
.bill-splitter-form {
  display: grid;
  gap: 0.75rem;
}

/* â”€â”€â”€ KirayÉ™ kalkulyatoru â”€â”€â”€ */
.rent-calculator {
  display: grid;
  gap: 1rem;
}
.rent-calc-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.rent-calc-expenses {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
  background: rgba(248, 250, 252, 0.55);
}
.rent-calc-section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.rent-calc-section-desc {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  color: #94a3b8;
}
.rent-calc-expense-grid {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 480px) {
  .rent-calc-expense-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rent-calc-field--compact {
  min-width: 0;
}
.rent-calc-input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.rent-calc-input:focus {
  border-color: rgba(109, 93, 246, 0.28);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(109, 93, 246, 0.1);
}
.rent-calc-add-btn {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.rent-calc-add-btn:hover {
  color: #5b4de0;
  opacity: 0.9;
}
.rent-calc-extra.hidden {
  display: none;
}
.rent-calc-result {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(109, 93, 246, 0.05);
  border: 1px solid rgba(109, 93, 246, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rent-calc-result.is-visible {
  animation: billResultPop 0.35s ease;
}
.rent-calc-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.rent-calc-result-row--share {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(109, 93, 246, 0.1);
}
.rent-calc-result-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.rent-calc-result-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.rent-calc-result-value--accent {
  font-size: 1.2rem;
  color: var(--violet);
}

/* â”€â”€â”€ Utilities layout: kalkulyator + icma divarÄ± â”€â”€â”€ */
.utilities-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.utilities-main {
  min-width: 0;
}
.utilities-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
@media (min-width: 1024px) {
  .utilities-layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
    gap: 1.25rem;
  }
  .utilities-sidebar {
    position: sticky;
    top: 5.75rem;
    max-height: calc(100dvh - 7.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .campus-wall-panel {
    position: static;
    top: auto;
    max-height: none;
  }
}

/* --- Default dashboard (pre-search hero view) --- */
.default-dashboard-view {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem 0 0.35rem;
}

.default-dashboard-view.hidden {
  display: none !important;
}

.default-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.default-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.default-dashboard-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(109, 93, 246, 0.1);
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.05), rgba(79, 70, 229, 0.05));
  isolation: isolate;
}

.default-dashboard-glow {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.1);
  filter: blur(48px);
  pointer-events: none;
}

.default-dashboard-eyebrow {
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.85);
}

.dark .default-dashboard-eyebrow {
  color: #c4b5fd;
  background: rgba(88, 28, 135, 0.28);
}

.default-dashboard-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.dark .default-dashboard-title {
  color: #f8fafc;
}

.default-dashboard-copy {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #64748b;
}

.dark .default-dashboard-copy {
  color: #94a3b8;
}

.default-dashboard-tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.85rem;
}

.default-dashboard-tip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.dark .default-dashboard-tip {
  border-color: rgba(51, 65, 85, 0.85);
  background: rgba(15, 23, 42, 0.92);
}

.default-dashboard-tip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.dark .default-dashboard-tip-label {
  color: #cbd5e1;
}

.default-dashboard-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.default-dashboard-tip-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.default-dashboard-tip-icon--violet {
  background: rgba(237, 233, 254, 0.85);
  color: #7c3aed;
}

.default-dashboard-tip-icon--amber {
  background: rgba(254, 243, 199, 0.85);
  color: #d97706;
}

.dark .default-dashboard-tip-icon--violet {
  background: rgba(88, 28, 135, 0.22);
  color: #c4b5fd;
}

.dark .default-dashboard-tip-icon--amber {
  background: rgba(120, 53, 15, 0.25);
  color: #fbbf24;
}

.default-dashboard-preview {
  display: none;
}

.default-dashboard-sidebar {
  display: flex;
  min-width: 0;
  position: static;
  top: auto;
  align-self: start;
}

.default-dashboard-density {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dark .default-dashboard-density {
  border-color: rgba(51, 65, 85, 0.85);
  background: rgba(15, 23, 42, 0.98);
}

.default-dashboard-density-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

#heroSection:has(#defaultDashboardView:not(.hidden)) {
  padding-bottom: 0.35rem;
}

#heroSection:has(#defaultDashboardView:not(.hidden)) + .how-it-works {
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .default-dashboard-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .default-dashboard-grid {
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
    gap: 0.85rem;
    align-items: start;
  }

  .default-dashboard-hero {
    padding: 1.25rem 1.35rem;
  }
}

/* â”€â”€â”€ Kampus CanlÄ±lÄ±q Paneli (user-facing density dashboard) â”€â”€â”€ */
.campus-live-density-panel {
  transform: none;
  backface-visibility: visible;
}

.campus-live-density-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.campus-density-row {
  min-width: 0;
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 0.15rem 0.1rem;
  transition: background-color 180ms ease;
}

.campus-density-row:hover {
  background: rgba(248, 250, 252, 0.85);
}

.dark .campus-density-row:hover {
  background: rgba(30, 41, 59, 0.45);
}

.campus-density-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.18);
}

.campus-density-row.is-active {
  background: rgba(237, 233, 254, 0.55);
}

.dark .campus-density-row.is-active {
  background: rgba(88, 28, 135, 0.18);
}

.campus-density-track {
  position: relative;
  overflow: hidden;
}

.campus-density-bar {
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .campus-density-bar {
    animation: campusDensityBarGrow 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes campusDensityBarGrow {
  from {
    transform: scaleX(0);
    opacity: 0.55;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.campus-live-density-badge {
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .campus-density-bar {
    animation: none;
  }
  .campus-live-density-pulse {
    animation: none !important;
  }
}

/* â”€â”€â”€ Kampus aktivliyi (Universitet elan statistikasÄ±) â”€â”€â”€ */
.campus-activity-hub {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.campus-activity-hint {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: #94a3b8;
}
.campus-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.campus-stat-row:hover {
  background: #f8fafc;
}
.campus-stat-row:focus-visible {
  outline: none;
  border-color: rgba(109, 93, 246, 0.35);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.12);
}
.campus-stat-row.is-active {
  background: rgba(109, 93, 246, 0.06);
  border-color: rgba(109, 93, 246, 0.22);
}
.campus-stat-label {
  min-width: 0;
}
.campus-stat-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  border: 1px solid transparent;
  overflow-wrap: break-word;
  word-break: break-word;
}
.campus-stat-badge--violet {
  background: rgba(109, 93, 246, 0.1);
  color: #5b4de0;
  border-color: rgba(109, 93, 246, 0.2);
}
.campus-stat-badge--teal {
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.22);
}
.campus-stat-badge--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.22);
}
.campus-stat-badge--indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.22);
}
.campus-stat-badge--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.24);
}
.campus-stat-badge--rose {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
  border-color: rgba(244, 63, 94, 0.22);
}
.campus-stat-track {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  min-width: 0;
}
.campus-stat-bar {
  display: block;
  height: 100%;
  min-width: 0.35rem;
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.campus-stat-bar--violet {
  background: linear-gradient(90deg, rgba(109, 93, 246, 0.35), rgba(109, 93, 246, 0.75));
}
.campus-stat-bar--teal {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.35), rgba(20, 184, 166, 0.72));
}
.campus-stat-bar--blue {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.75));
}
.campus-stat-bar--indigo {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(99, 102, 241, 0.75));
}
.campus-stat-bar--amber {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.75));
}
.campus-stat-bar--rose {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.35), rgba(244, 63, 94, 0.75));
}
.campus-stat-count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 520px) {
  .campus-stat-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .campus-stat-count {
    text-align: left;
  }
}

/* â”€â”€â”€ Kampus icma divarÄ± â”€â”€â”€ */
.campus-wall-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.campus-wall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.campus-wall-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.campus-wall-sub {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: #94a3b8;
}
.campus-wall-live {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}
.campus-wall-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8rem;
  max-height: min(42vh, 16rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}
.campus-wall-drop {
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(241, 245, 249, 0.9);
  background: rgba(255, 255, 255, 0.55);
  animation: campusDropIn 0.35s ease;
}
@keyframes campusDropIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.campus-wall-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.campus-wall-drop-author {
  font-size: 0.72rem;
  font-weight: 800;
  color: #5b4de0;
}
.campus-wall-verified-icon {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.2rem;
  vertical-align: -0.1em;
  color: #0ea5e9;
  flex-shrink: 0;
}
.campus-wall-drop-time {
  font-size: 0.65rem;
  font-weight: 600;
  color: #cbd5e1;
}
.campus-wall-drop-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
  color: #475569;
  word-break: break-word;
}
.campus-wall-empty {
  margin: auto 0;
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: #94a3b8;
}
.campus-wall-compose {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.45);
}
.campus-wall-compose.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.campus-wall-compose-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.campus-wall-input {
  width: 100%;
  resize: none;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.campus-wall-input:focus {
  outline: none;
  border-color: rgba(109, 93, 246, 0.3);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.08);
}
.campus-wall-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.campus-wall-char {
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
}
.campus-wall-char.is-limit {
  color: #f59e0b;
}
.campus-wall-submit {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: var(--violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.campus-wall-submit:hover { opacity: 0.92; }
.campus-wall-submit:active { transform: scale(0.97); }
.campus-wall-note {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}
.campus-wall-note.hidden { display: none; }
.campus-wall-inline-link {
  border: 0;
  background: none;
  padding: 0;
  color: #5b4de0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
@media (max-width: 1023px) {
  .campus-wall-panel {
    order: -1;
  }
  .campus-wall-feed {
    max-height: 14rem;
  }
}

/* â”€â”€â”€ TÉ™lÉ™bÉ™ bazarÄ± â”€â”€â”€ */
.tab-switch--scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-switch--scroll::-webkit-scrollbar { display: none; }
.tab-switch--scroll .tab-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}
.marketplace-intro {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
}
.marketplace-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.marketplace-scroll .listing-card--market {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  touch-action: manipulation;
}
.marketplace-card {
  position: relative;
  flex: 0 0 min(78vw, 220px);
  scroll-snap-align: start;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  touch-action: manipulation;
  cursor: pointer;
}
.marketplace-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.marketplace-card:active { transform: scale(0.98); }
.marketplace-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 4/3;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cardMediaShimmer 2.6s ease-in-out infinite;
  pointer-events: none;
}
.marketplace-thumb {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9 0%, #e8edf4 45%, #f8fafc 100%);
  display: block;
}
.marketplace-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.marketplace-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.marketplace-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--violet);
}
.marketplace-chat-btn {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  touch-action: manipulation;
}
.marketplace-chat-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--violet);
}
.marketplace-chat-btn:active { transform: scale(0.97); }

@media (max-width: 639px) {
  .nav-auth-user.is-visible { display: none !important; }
}

@media (min-width: 640px) {
  #drawerUserActions .drawer-user-card { display: none; }
}

/* â•â•â• DORMY MOTION SYSTEM â•â•â• */
@keyframes dormyCardCascade {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes dormyLogoBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-6px) rotate(-4deg); }
  55% { transform: translateY(2px) rotate(2deg); }
  75% { transform: translateY(-3px) rotate(-1deg); }
}
@keyframes dormyFadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dormyPulseGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(109, 93, 246, 0.12), 0 0 0 0 rgba(109, 93, 246, 0.2); }
  50% { box-shadow: 0 16px 40px rgba(109, 93, 246, 0.22), 0 0 0 6px rgba(109, 93, 246, 0.08); }
}
@keyframes dormyLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
@keyframes dormyShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; transform: scale(1.03); }
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.motion-btn,
.motion-interactive {
  transition: all 300ms ease-in-out;
}
.motion-btn:active,
.motion-interactive:active {
  transform: scale(0.95);
}

.hero-panel--motion {
  animation: none;
}
.section-head--motion {
  animation: none;
}
.search-card--motion {
  animation: none;
}

/* â”€â”€â”€ Landing page cascade entrance â”€â”€â”€ */
.landing-cascade {
  opacity: 0;
  transform: translateY(28px);
}
.landing-cascade.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s var(--landing-ease),
    transform 0.7s var(--landing-ease);
  transition-delay: var(--landing-delay, 0ms);
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes heroTextShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.filter-field,
.quick-chip,
.auth-field input,
.auth-field select,
.auth-submit,
.drawer-link,
.lifestyle-badge,
.utility-card,
.marketplace-card {
  transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .landing-cascade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .premium-reveal,
  .reveal-animate,
  .reveal-animate.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .reveal-animate.is-revealed {
    opacity: 1;
    transform: none;
  }
  .hero-title-glow {
    animation: none;
  }
  .listing-card.is-reveal,
  .listing-card.is-cascade {
    opacity: 1;
    transform: none;
    animation: none;
  }
  [data-parallax] {
    transform: none !important;
  }
}

/* â”€â”€â”€ Mobile zoom prevention (16px inputs) â”€â”€â”€ */
@media (max-width: 768px) {
  input,
  textarea,
  select,
  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .filter-field input,
  .filter-field select,
  .chat-input-bar textarea,
  .chat-input-bar input,
  .otp-digit,
  .hub-form input,
  .hub-form select,
  .hub-form textarea,
  .support-form input,
  .support-form textarea,
  .wallet-panel input,
  .wallet-panel select {
    font-size: 16px !important;
  }
}

/* â”€â”€â”€ Mobile coarse-pointer polish â”€â”€â”€ */
@media (hover: none) and (pointer: coarse) {
  .filter-field select,
  .filter-field input,
  .auth-field input,
  .auth-field select,
  .chat-input-bar input,
  .otp-digit {
    min-height: 3rem;
    font-size: 16px;
  }
  .search-card--minimal .filter-field--compact select {
    min-height: 2.35rem;
  }
  .search-bar-grid .search-btn--compact {
    min-height: 2.75rem;
  }

  .chat-icebreaker-chip {
    min-height: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .chat-icebreakers {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .listing-card:hover,
  .listing-card:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  }

  .quick-chip:hover {
    transform: none;
  }

  main {
    padding-bottom: calc(4rem + var(--safe-bottom));
  }
}

/* â•â•â• Elan Yarat Hub â€” vahid iÅŸÄ±q rejimi â•â•â• */
.creative-hub {
  --hub-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--hub-ease), visibility 0.4s;
}
.creative-hub.is-open {
  opacity: 1;
  visibility: visible;
}
body.creative-hub-open {
  overflow: hidden;
}

.creative-hub-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(109, 93, 246, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(45, 212, 191, 0.1), transparent 55%),
    linear-gradient(165deg, #f8f7ff 0%, #eef4ff 45%, #f5f3ff 100%);
}

.creative-hub-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
  padding: calc(1.25rem + var(--safe-top)) 1.25rem calc(2rem + var(--safe-bottom));
}
@media (min-width: 768px) {
  .creative-hub-inner { padding: calc(2rem + var(--safe-top)) 2.5rem calc(2.5rem + var(--safe-bottom)); }
}

.creative-hub-close {
  position: static;
  flex-shrink: 0;
}

.creative-hub-topbar {
  position: fixed;
  top: calc(0.85rem + var(--safe-top));
  right: calc(0.85rem + var(--safe-right));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher--hub {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.creative-hub-categories {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.38s var(--hub-ease), transform 0.38s var(--hub-ease);
}
.creative-hub.is-form-phase .creative-hub-categories {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.creative-hub-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.creative-hub-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.creative-hub-title {
  margin-top: 0.5rem;
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.hub-gradient-text {
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.creative-hub-sub {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
}

.creative-hub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .creative-hub-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.hub-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  text-align: left;
  cursor: pointer;
  background: var(--field-bg);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.35s var(--hub-ease),
    box-shadow 0.35s var(--hub-ease),
    border-color 0.35s var(--hub-ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hub-category-card:hover,
.hub-category-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: #c7d2fe;
  box-shadow: 0 22px 48px rgba(109, 93, 246, 0.14);
}
.hub-category-card:active {
  transform: scale(0.98);
}
.hub-category-icon {
  font-size: 1.65rem;
  line-height: 1;
}
.hub-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.1);
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hub-category-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.hub-category-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

/* â”€â”€â”€ Elan yerlÉ™ÅŸdirmÉ™: mÉ™slÉ™hÉ™t & FAQ â”€â”€â”€ */
.creation-guide-zone {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
}
.creation-guide-col {
  background: var(--field-bg);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.creation-guide-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.creation-guide-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.creation-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.creation-guide-item {
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.creation-guide-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.creation-guide-item-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.creation-guide-item-text {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}
.creation-guide-faq {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.creation-guide-faq-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.creation-guide-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.creation-guide-faq-q {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.creation-guide-faq-q::after {
  content: " â€”";
  font-weight: 500;
  color: var(--text-subtle);
}
.creation-guide-faq-a {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}
@media (max-width: 1023px) {
  .creation-guide-zone {
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .creation-guide-zone .landing-cascade {
    opacity: 1;
    transform: none;
  }
}

.creative-hub-form-panel {
  position: absolute;
  inset: calc(0.5rem + var(--safe-top)) 1rem calc(1rem + var(--safe-bottom));
  z-index: 4;
  max-width: 40rem;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.42s var(--hub-ease),
    transform 0.42s var(--hub-ease),
    visibility 0.42s;
}
@media (min-width: 768px) {
  .creative-hub-form-panel {
    inset: calc(1.5rem + var(--safe-top)) 2rem calc(1.5rem + var(--safe-bottom));
    padding: 1.75rem 1.5rem 2rem;
  }
}
.creative-hub.is-form-phase .creative-hub-form-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.creative-hub-form-head {
  margin-bottom: 0.25rem;
}

.creative-hub-form-body {
  min-width: 0;
  width: 100%;
}

.hub-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--field-bg);
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s var(--hub-ease);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.hub-back-btn:hover {
  border-color: rgba(109, 93, 246, 0.35);
  background: var(--surface-raised);
  transform: translateX(-3px);
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.12);
}
.hub-back-btn:active {
  transform: translateX(-1px) scale(0.98);
}

.creative-hub-form-title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.creative-hub-form-sub {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

.creative-hub-form-panel .hub-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
  min-width: 0;
  width: 100%;
  overflow: visible;
}
.creative-hub-form-panel .hub-form[hidden] {
  display: none;
}

.creative-hub-form-panel .hub-form-cascade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .creative-hub-form-panel .hub-form-cascade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .creative-hub-form-panel .hub-form-cascade--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.creative-hub-form-panel .hub-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .creative-hub-form-panel .hub-form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creative-hub-form-panel .hub-form-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.creative-hub-form-panel .hub-form-section {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field-bg) 88%, transparent);
  min-width: 0;
  width: 100%;
}
.creative-hub-form-panel .hub-form-section-title,
.creative-hub-form-panel .hub-form-section .span-block {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.creative-hub-form-panel .post-form-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}

.creative-hub-form-panel .hub-form-uni-body {
  display: grid;
  gap: 0.65rem;
  transition: all 0.3s ease;
}

.creative-hub-form-panel .hub-form .auth-field,
.creative-hub-form-panel .hub-form .filter-field,
.creative-hub-form-panel .hub-form .filter-field--stacked {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.creative-hub-form-panel .hub-form .filter-field,
.creative-hub-form-panel .hub-form .filter-field--stacked {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.creative-hub-form-panel .hub-form .auth-field > span:first-child,
.creative-hub-form-panel .hub-form .filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  line-height: 1.3;
}

.creative-hub-form-panel .hub-form .auth-field input:not([type="file"]):not([type="checkbox"]),
.creative-hub-form-panel .hub-form .auth-field textarea,
.creative-hub-form-panel .hub-form .auth-field select,
.creative-hub-form-panel .hub-form .form-group input:not([type="file"]):not([type="checkbox"]),
.creative-hub-form-panel .hub-form .form-group select,
.creative-hub-form-panel .hub-form .form-group textarea,
.creative-hub-form-panel .hub-form .uni-search-input,
.creative-hub-form-panel .hub-form .housemate-row input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}
.creative-hub-form-panel .hub-form .auth-field textarea {
  min-height: 5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  resize: vertical;
  line-height: 1.45;
}
.creative-hub-form-panel .hub-form .auth-field select,
.creative-hub-form-panel .hub-form .form-group select {
  cursor: pointer;
}

.creative-hub-form-panel .hub-form .filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--input-bg) 68%, transparent);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow-inset);
  transition: all 0.3s ease;
}
.creative-hub-form-panel .hub-form .filter-field:focus-within .filter-select-wrap,
.creative-hub-form-panel .hub-form .filter-field--stacked:focus-within .filter-select-wrap {
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.1),
    0 0 12px rgba(109, 93, 246, 0.08),
    var(--glass-shadow-inset);
}
.creative-hub-form-panel .hub-form .filter-field.is-disabled .filter-select-wrap {
  background: var(--field-bg-disabled);
  border-color: var(--line);
}
.creative-hub-form-panel .hub-form .filter-field.is-disabled .filter-select-wrap {
  opacity: 0.72;
}
.creative-hub-form-panel .hub-form .filter-field select {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1.75rem 0 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: color 0.3s ease;
}
.creative-hub-form-panel .hub-form .filter-field select:disabled,
.creative-hub-form-panel .hub-form .filter-field.is-disabled select {
  color: var(--text-muted);
  cursor: not-allowed;
}
.creative-hub-form-panel .hub-form .filter-chevron {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  pointer-events: none;
  flex-shrink: 0;
}
.creative-hub-form-panel .hub-form .filter-field--stacked .filter-select-wrap {
  margin-top: 0;
}

.creative-hub-form-panel .hub-form .uni-search-input {
  margin-top: 0;
}

.creative-hub-form-panel .hub-form .uni-picker-grid {
  margin-top: 0;
  transition: all 0.3s ease;
}

.creative-hub-form-panel .hub-form-acc {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field-bg) 88%, transparent);
  color: var(--text-muted);
  min-width: 0;
  width: 100%;
}
.creative-hub-form-panel .hub-form-acc summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
  list-style-position: outside;
}
.creative-hub-form-panel .hub-link-btn {
  margin-top: 0.5rem;
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.35rem 0;
  min-height: 2.75rem;
}
.creative-hub-form-panel .hub-link-btn:active {
  transform: scale(0.98);
}

.creative-hub-form-panel .hub-form .auth-field--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.15rem 0;
}
.creative-hub-form-panel .hub-form .auth-field--checkbox span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.creative-hub-form-panel .hub-form .auth-field--checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  padding: 0;
  accent-color: var(--violet);
  flex-shrink: 0;
}

.creative-hub-form-panel .hub-form .housemate-row input {
  padding: 0 0.75rem;
  font-size: 0.95rem;
}
.creative-hub-form-panel .hub-form .housemate-row .hm-age {
  text-align: center;
}

.creative-hub-form-panel .hub-form .auth-submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s var(--motion-ease), box-shadow 0.2s var(--motion-ease);
  box-shadow: 0 8px 24px rgba(109, 93, 246, 0.28);
}
.creative-hub-form-panel .hub-form .auth-submit:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(109, 93, 246, 0.22);
}

.creative-hub-form-panel .hub-form .lifestyle-grid {
  margin-top: 0.15rem;
}

.hub-form {
  margin-top: 1.15rem;
}
.hub-form[hidden] {
  display: none;
}
.hub-form-section {
  display: grid;
  gap: 0.75rem;
}
.hub-form-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}
.hub-form-acc {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--text-muted);
}
.hub-form-acc summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.hub-link-btn {
  margin-top: 0.5rem;
  border: 0;
  background: none;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.housemate-row input {
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.housemate-row .hm-age {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .creative-hub-categories,
  .creative-hub-form-panel,
  .hub-category-card,
  .hub-metro-fields,
  .creative-hub-form-panel .hub-form-uni-body {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hub-category-card:hover { transform: none; }
  .creative-hub-form-panel {
    padding: 1.5rem 1.25rem calc(1.5rem + var(--safe-bottom));
  }
  .creative-hub-form-panel .hub-form .auth-field input:not([type="file"]):not([type="checkbox"]),
  .creative-hub-form-panel .hub-form .auth-field select,
  .creative-hub-form-panel .hub-form .auth-field textarea,
  .creative-hub-form-panel .hub-form .filter-select-wrap,
  .creative-hub-form-panel .hub-form .uni-search-input,
  .creative-hub-form-panel .hub-form .vplus-dropdown-trigger,
  .creative-hub-form-panel .hub-form .auth-submit,
  .creative-hub-form-panel .hub-form .lifestyle-badge {
    min-height: 3rem;
    font-size: 16px;
  }
  .creative-hub-form-panel .hub-form-cascade,
  .creative-hub-form-panel .hub-form-row {
    grid-template-columns: 1fr;
  }
}

/* â•â•â• DÉ™stÉ™k ModalÄ± & Admin GÉ™lÉ™nlÉ™r Qutusu â•â•â• */
.footer-support-link {
  border: 0;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.footer-support-link:hover { color: var(--violet); }

.footer-link,
.auth-legal-link {
  border: 0;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s ease;
}
.footer-link:hover,
.auth-legal-link:hover { color: var(--violet); }

.auth-legal-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
}

.legal-modal-backdrop {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  max-height: calc(88dvh - var(--safe-top));
  margin: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.28s var(--landing-ease), opacity 0.28s ease;
  overflow: hidden;
}
.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;
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1.5px dashed var(--line);
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.support-upload-zone:hover,
.support-upload-zone:focus-visible {
  border-color: rgba(109, 93, 246, 0.35);
  background: rgba(109, 93, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.08);
  outline: none;
}
.support-upload-zone.is-dragover {
  border-color: var(--violet);
  background: rgba(109, 93, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
}
.support-upload-zone.is-uploading {
  pointer-events: none;
  opacity: 0.72;
  position: relative;
}
.support-upload-zone.is-uploading::after {
  content: "";
  position: absolute;
  inset: auto 50% 0.85rem auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: -0.55rem;
  border: 2px solid rgba(109, 93, 246, 0.25);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: dormy-upload-spin 0.75s linear infinite;
}
@keyframes dormy-upload-spin {
  to { transform: rotate(360deg); }
}
.support-upload-placeholder {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}
.support-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.1);
  color: var(--violet);
}
.support-upload-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.support-upload-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.support-upload-text strong { color: var(--violet); }
.support-upload-hint {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
}
.support-upload-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}
.support-upload-preview.hidden,
.support-upload-placeholder.hidden { display: none; }
.support-preview-thumb {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.support-preview-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.support-preview-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-remove-image {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ef4444;
  cursor: pointer;
  text-align: left;
}

.auth-submit.is-loading {
  pointer-events: none;
  position: relative;
}
.auth-submit.is-loading .support-submit-label {
  opacity: 0;
}
.auth-submit.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: supportSpin 0.65s linear infinite;
}
@keyframes supportSpin {
  to { transform: rotate(360deg); }
}

.profile-dropdown-item--admin {
  color: var(--violet);
  font-weight: 800;
}

/* â”€â”€â”€ Admin OTP modal â”€â”€â”€ */
.admin-otp-panel {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-radius: 1.25rem;
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.28s var(--landing-ease), opacity 0.28s ease;
}
.modal-root.is-open .admin-otp-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.admin-otp-panel--shake {
  animation: adminOtpShake 0.45s ease;
}
.admin-otp-panel--success .admin-otp-digit {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.08);
  color: #0f766e;
}
@keyframes adminOtpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.admin-otp-status {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(109, 93, 246, 0.07);
  border: 1px solid rgba(109, 93, 246, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: #5b4de0;
  text-align: center;
}
.admin-otp-row {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.admin-otp-digit {
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.admin-otp-digit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-otp-error {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  color: #dc2626;
  text-align: center;
}
.admin-otp-error.hidden { display: none; }
#adminOtpVerifyBtn {
  width: 100%;
  margin-top: 1rem;
}
#adminOtpVerifyBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-inbox-panel {
  position: relative;
  width: 100%;
  max-width: 56rem;
  max-height: calc(92dvh - var(--safe-top));
  overflow: hidden;
  margin: auto;
  padding: 1.35rem;
  padding-bottom: calc(1.35rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .admin-inbox-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .admin-inbox-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .admin-inbox-panel { transform: translateY(0); }

.admin-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.admin-inbox-count {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.12);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-shrink: 0;
}
.admin-panel-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.admin-panel-tab:hover {
  border-color: rgba(109, 93, 246, 0.25);
  color: #5b4de0;
}
.admin-panel-tab.is-active {
  background: rgba(109, 93, 246, 0.1);
  border-color: rgba(109, 93, 246, 0.28);
  color: #5b4de0;
}
.admin-pending-count {
  min-width: 1.15rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.admin-pending-count.hidden { display: none; }

.admin-panel-view {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  margin-top: 0.85rem;
}
.admin-panel-view.is-active {
  display: flex;
  flex-direction: column;
}
.admin-panel-view[hidden] { display: none !important; }

.admin-pending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.1rem 0.75rem;
  max-height: min(62vh, 36rem);
}
.admin-pending-card {
  display: grid;
  gap: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
  background: #fff;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.admin-pending-card-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.admin-pending-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .admin-pending-body {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.admin-pending-listing-col {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.admin-pending-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.admin-pending-fact {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
}
.admin-pending-fact dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-pending-fact dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.admin-pending-fact--category dd {
  margin-top: 0.15rem;
}

.admin-listing-category-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 11rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  padding-right: 1.75rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-listing-category-select:hover {
  border-color: #cbd5e1;
}

.admin-listing-category-select:focus {
  border-color: rgba(147, 51, 234, 0.45);
}

.admin-live-category {
  min-width: 11.5rem;
  vertical-align: middle;
}

.admin-live-category .admin-listing-category-select {
  min-width: 10.5rem;
}

.admin-pending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-pending-tag {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid rgba(199, 210, 254, 0.45);
}
.admin-pending-desc-full {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.65;
  color: #64748b;
}
.admin-pending-gallery {
  display: grid;
  gap: 0.55rem;
}
.admin-meta-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-pending-gallery-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.admin-pending-thumb {
  position: relative;
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 4.15rem;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #f8fafc;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.admin-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-pending-thumb-zoom {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.admin-pending-thumb:hover,
.admin-pending-thumb:focus-visible {
  border-color: rgba(109, 93, 246, 0.35);
  box-shadow: 0 6px 16px rgba(109, 93, 246, 0.12);
  transform: translateY(-1px);
}
.admin-pending-thumb:hover .admin-pending-thumb-zoom,
.admin-pending-thumb:focus-visible .admin-pending-thumb-zoom {
  opacity: 1;
}
.admin-pending-no-images {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  font-style: italic;
}
.admin-user-insights {
  padding: 1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.55);
  min-width: 0;
}
.admin-user-insights-title {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.admin-insights-section + .admin-insights-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
}
.admin-insights-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
}
.admin-insights-row {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.admin-insights-row dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}
.admin-insights-row dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  word-break: break-word;
}
.admin-stat-approved { color: #0f766e !important; }
.admin-stat-rejected { color: #dc2626 !important; }
.admin-verification-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.admin-verify-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.admin-verify-badge--email {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.85);
  border: 1px solid rgba(147, 197, 253, 0.55);
}
.admin-verify-badge--phone {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.55);
}
.admin-verify-badge--neutral {
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.75);
}
.admin-pending-type {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.08);
  color: #6d5df6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-pending-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}
.admin-pending-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.admin-pending-desc {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-pending-approve,
.admin-pending-reject {
  flex: 1;
  min-width: 6.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.admin-pending-approve {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.22);
  color: #0f766e;
}
.admin-pending-approve:hover {
  background: rgba(20, 184, 166, 0.16);
}
.admin-pending-reject {
  background: #fff;
  border-color: #fecaca;
  color: #dc2626;
}
.admin-pending-reject:hover {
  background: #fef2f2;
}
.admin-pending-empty {
  margin: 1.5rem 0 0;
}
.admin-pending-empty.hidden { display: none; }

/* â”€â”€ Pending moderation: inline edit & rejection â”€â”€ */
.admin-panel-view--review {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, transparent 100%);
  border-radius: 0.85rem;
  padding: 0.15rem 0 0;
}
.admin-pending-card--editing {
  border-color: rgba(109, 93, 246, 0.35);
  box-shadow: 0 0 0 1px rgba(109, 93, 246, 0.12), 0 12px 32px rgba(109, 93, 246, 0.08);
}
.admin-pending-card--rejecting {
  border-color: rgba(239, 68, 68, 0.28);
}
.admin-pending-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-pending-input:focus {
  outline: none;
  border-color: rgba(109, 93, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.12);
}
.admin-pending-input--title {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.35rem;
}
.admin-pending-input--price {
  max-width: 8rem;
}
.admin-pending-input--desc {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.55;
  font-weight: 500;
}
.admin-pending-edit,
.admin-pending-save,
.admin-pending-cancel-edit {
  flex: 0 1 auto;
  min-width: 6.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.admin-pending-edit {
  background: rgba(109, 93, 246, 0.08);
  border-color: rgba(109, 93, 246, 0.22);
  color: #5b4ae0;
}
.admin-pending-edit:hover {
  background: rgba(109, 93, 246, 0.14);
}
.admin-pending-save {
  background: rgba(109, 93, 246, 0.12);
  border-color: rgba(109, 93, 246, 0.28);
  color: #4338ca;
}
.admin-pending-save:hover {
  background: rgba(109, 93, 246, 0.18);
}
.admin-pending-cancel-edit {
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
}
.admin-pending-cancel-edit:hover {
  background: #f8fafc;
}
.admin-pending-approve:disabled,
.admin-pending-reject:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-reject-panel {
  display: grid;
  gap: 0.55rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 0.15rem;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
}
.admin-reject-panel.is-open {
  max-height: 22rem;
  opacity: 1;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: rgba(254, 242, 242, 0.65);
  border: 1px solid rgba(254, 202, 202, 0.85);
}
.admin-reject-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
}
.admin-reject-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.admin-reject-quick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.admin-reject-quick-badge:hover,
.admin-reject-quick-badge:focus-visible {
  background: #f8fafc;
  border-color: #fecaca;
  color: #b91c1c;
  outline: none;
}
.admin-reject-quick-badge.is-active,
.admin-reject-quick-badge--other.is-active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}
.admin-reject-custom {
  display: grid;
  gap: 0.45rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
}
.admin-reject-custom.is-open {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.45rem;
}
.admin-reject-custom.hidden {
  display: none;
}
.admin-reject-custom-input {
  font-size: 0.8rem;
  font-weight: 600;
}
.admin-reject-custom-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-reject-textarea {
  resize: vertical;
  min-height: 4.5rem;
  font-weight: 500;
  line-height: 1.5;
}
.admin-reject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.admin-reject-cancel {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease;
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
}
.admin-reject-cancel:hover {
  background: #f8fafc;
}
.admin-reject-confirm {
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease;
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.admin-reject-confirm:hover {
  background: #b91c1c;
}

/* â”€â”€ CanlÄ± elanlar â€” analitik cÉ™dvÉ™l â”€â”€ */
.admin-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
}
.admin-live-count.hidden { display: none; }
.admin-panel-view--live {
  padding-top: 0.15rem;
}
.admin-live-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-live-table {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.admin-live-table-inner {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-live-table-inner thead {
  background: rgba(248, 250, 252, 0.95);
}
.admin-live-table-inner th {
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.admin-live-table-inner td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.admin-live-row:last-child td {
  border-bottom: none;
}
.admin-live-row:hover td {
  background: rgba(248, 250, 252, 0.85);
}
.admin-live-id code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}
.admin-live-type-tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.1);
  color: #5b4ae0;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}
.admin-live-title {
  font-weight: 700;
  color: #0f172a;
  min-width: 10rem;
}
.admin-live-price {
  font-weight: 800;
  color: #0f766e;
  white-space: nowrap;
}
.admin-live-actions {
  text-align: right;
  white-space: nowrap;
}
.admin-live-delete-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.admin-live-delete-btn:hover {
  background: #b91c1c;
}
.admin-live-delete-btn:active {
  transform: scale(0.97);
}
.admin-live-empty {
  margin: 1.5rem 0 0;
}
.admin-live-empty.hidden { display: none; }
.admin-live-delete-submit {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}
.notif-type-badge--removed {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.dark .admin-panel-view--review {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, transparent 100%);
}
.dark .admin-pending-input {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
}
.dark .admin-pending-input::placeholder {
  color: #64748b;
}
.dark .admin-pending-input:focus {
  border-color: rgba(109, 93, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.18);
}
.dark .admin-pending-edit {
  background: rgba(109, 93, 246, 0.16);
  border-color: rgba(109, 93, 246, 0.35);
  color: #c4b5fd;
}
.dark .admin-pending-save {
  background: rgba(109, 93, 246, 0.22);
  color: #ddd6fe;
}
.dark .admin-pending-cancel-edit {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.85);
  color: #94a3b8;
}
.dark .admin-reject-panel.is-open {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.28);
}
.dark .admin-reject-label {
  color: #fca5a5;
}
.dark .admin-reject-quick-badge {
  background: #131b2e;
  border-color: rgba(51, 65, 85, 0.85);
  color: #cbd5e1;
}
.dark .admin-reject-quick-badge:hover,
.dark .admin-reject-quick-badge:focus-visible {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.dark .admin-reject-quick-badge.is-active,
.dark .admin-reject-quick-badge--other.is-active {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}
.dark .admin-reject-cancel {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.85);
  color: #94a3b8;
}
.dark .admin-live-table {
  background: rgba(15, 23, 42, 0.55);
}
.dark .admin-live-table-inner thead {
  background: rgba(15, 23, 42, 0.85);
}
.dark .admin-live-table-inner th {
  color: #94a3b8;
  border-bottom-color: rgba(51, 65, 85, 0.85);
}
.dark .admin-live-table-inner td {
  color: #cbd5e1;
  border-bottom-color: rgba(51, 65, 85, 0.55);
}
.dark .admin-live-row:hover td {
  background: rgba(30, 41, 59, 0.65);
}
.dark .admin-live-id code {
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
}
.dark .admin-live-title {
  color: #f1f5f9;
}
.dark .admin-live-price {
  color: #5eead4;
}
.dark .admin-live-count {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
}

.dark .admin-listing-category-select {
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.85);
  background-color: rgba(30, 41, 59, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.dark .admin-listing-category-select:hover {
  border-color: rgba(100, 116, 139, 0.85);
}

.dark .admin-pending-reject {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.dark .admin-pending-reject:hover {
  background: rgba(127, 29, 29, 0.25);
}

.admin-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(12, 18, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-image-lightbox.hidden { display: none; }
.admin-image-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  max-width: min(94vw, 64rem);
}
.admin-image-lightbox-img {
  max-width: min(94vw, 64rem);
  max-height: 78vh;
  border-radius: 0.85rem;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  object-fit: contain;
  background: #0c1222;
}
.admin-image-lightbox-caption {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.admin-image-lightbox-close {
  position: fixed;
  top: calc(1rem + var(--safe-top));
  right: calc(1rem + var(--safe-right));
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.admin-image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.my-listing-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.my-listing-lifecycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  width: fit-content;
}

.my-listing-lifecycle-badge--active {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.my-listing-lifecycle-badge--warn {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
@media (max-width: 767px) {
  .admin-inbox-layout {
    grid-template-columns: 1fr;
  }
  .admin-inbox-layout.is-detail-open .admin-inbox-list-wrap {
    display: none;
  }
  .admin-inbox-back { display: inline-flex !important; }
}

.admin-inbox-list-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.admin-inbox-list-label {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.admin-inbox-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
  display: grid;
  gap: 0.5rem;
  min-height: 0;
  max-height: min(52vh, 28rem);
}
.admin-inbox-empty {
  margin: 0;
  padding: 1.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}
.admin-inbox-empty.hidden { display: none; }

.admin-ticket-card {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.45s ease;
}
.admin-ticket-card:hover,
.admin-ticket-card:focus-visible {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.1);
  outline: none;
}
.admin-ticket-card.is-active {
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.14);
  background: rgba(109, 93, 246, 0.04);
}
.admin-ticket-card.is-entering {
  opacity: 0;
  transform: translateY(10px);
}
.admin-ticket-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-ticket-card-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.admin-ticket-card-user {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}
.admin-ticket-card-time {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}
.ticket-status-badge {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticket-status-badge--new {
  background: rgba(109, 93, 246, 0.14);
  color: #5b4de0;
}
.ticket-status-badge--reviewing {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
.ticket-status-badge--resolved {
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}
.dark .ticket-status-badge--reviewing {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

/* ── Ticket type badges (verification / report) ─────────────────── */
.ticket-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.ticket-type-badge--verify {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.ticket-type-badge--report {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.dark .ticket-type-badge--verify {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.3);
}
.dark .ticket-type-badge--report {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-ticket-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.admin-ticket-reason-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.24);
}
.admin-ticket-card-listing {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ticket-report-meta {
  margin: 0.85rem 0;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.04);
}
.admin-ticket-report-meta-label {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc2626;
}
.admin-ticket-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.55rem 0.85rem;
}
.admin-ticket-report-meta-grid dt {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-ticket-report-meta-grid dd {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
}
.admin-ticket-open-listing {
  margin-top: 0.65rem;
}
.dark .admin-ticket-reason-badge {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.dark .admin-ticket-card-listing { color: #94a3b8; }
.dark .admin-ticket-report-meta {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}
.dark .admin-ticket-report-meta-label { color: #fca5a5; }
.dark .admin-ticket-report-meta-grid dd { color: #f1f5f9; }

.admin-reports-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-reports-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-reports-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}
.admin-reports-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
}
.admin-reports-pending-count {
  flex-shrink: 0;
  min-width: 1.5rem;
  text-align: center;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.admin-reports-list {
  display: grid;
  gap: 0.65rem;
  max-height: 16rem;
  overflow: auto;
}
.admin-report-violation-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.32s ease, transform 0.32s ease;
}
.admin-report-violation-card--pending {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 10px 24px rgba(245, 158, 11, 0.08);
}
.admin-report-violation-card.is-entering {
  opacity: 0;
  transform: translateY(8px);
}
.admin-report-violation-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.card-owned-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.admin-report-violation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-report-violation-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.admin-report-violation-status {
  flex-shrink: 0;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.admin-report-violation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}
.admin-report-violation-reason {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.admin-report-violation-foot {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-subtle);
}
.admin-report-violation-foot code {
  font-size: 0.62rem;
}
.admin-report-violation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.admin-report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.admin-report-action:active { transform: scale(0.97); }
.admin-report-action--resolve {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}
.admin-report-action--resolve:hover {
  background: rgba(34, 197, 94, 0.18);
}
.admin-report-action--dismiss {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: #475569;
}
.admin-report-action--dismiss:hover {
  background: rgba(148, 163, 184, 0.18);
}
.admin-reports-empty {
  padding: 1rem 0.5rem;
}
.admin-reports-empty.hidden { display: none; }
.dark .admin-reports-section {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .admin-report-violation-card {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .admin-report-violation-card--pending {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.14), 0 10px 24px rgba(0, 0, 0, 0.18);
}
.dark .admin-report-violation-status {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}
.dark .admin-report-action--resolve {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}
.dark .admin-report-action--dismiss {
  background: rgba(51, 65, 85, 0.55);
  border-color: rgba(71, 85, 105, 0.65);
  color: #cbd5e1;
}

/* ── Admin verification action buttons ─────────────────────────── */
.admin-verify-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.admin-verify-btn {
  flex: 1;
  min-width: 9rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
}
.admin-verify-btn:active { transform: scale(0.97); }
.admin-verify-btn--approve {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.admin-verify-btn--approve:hover { opacity: 0.9; }
.admin-verify-btn--reject {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-verify-btn--reject:hover {
  background: rgba(239, 68, 68, 0.14);
}
.dark .admin-verify-btn--approve {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}
.dark .admin-verify-btn--reject {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.admin-inbox-detail-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.admin-inbox-back {
  margin: 0.75rem 0.75rem 0;
  align-self: flex-start;
}
.admin-inbox-detail {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  min-height: 0;
  max-height: min(52vh, 28rem);
}
.admin-inbox-placeholder {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-inbox-placeholder span { font-size: 2rem; }

.admin-ticket-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.admin-ticket-detail-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.admin-ticket-detail-meta {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.admin-ticket-detail-body {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}
.admin-ticket-screenshot-wrap {
  margin-top: 1rem;
}
.admin-ticket-screenshot-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-ticket-screenshot {
  width: 100%;
  max-width: 18rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.admin-ticket-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 32px rgba(109, 93, 246, 0.14);
}
.admin-ticket-reply-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}
.admin-ticket-existing-reply {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
}
.admin-ticket-existing-reply-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}
.admin-ticket-existing-reply-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #134e4a;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(12, 18, 34, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.support-lightbox.hidden { display: none; }
.support-lightbox-img {
  max-width: min(92vw, 56rem);
  max-height: 86vh;
  border-radius: 0.85rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.support-lightbox-close {
  position: fixed;
  top: calc(1rem + var(--safe-top));
  right: calc(1rem + var(--safe-right));
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .admin-ticket-card.is-entering {
    opacity: 1;
    transform: none;
  }
  .auth-submit.is-loading::after { animation: none; }
}

@media (hover: none) and (pointer: coarse) {
  .support-form .auth-field input,
  .support-form .auth-field textarea,
  .admin-ticket-reply-block textarea {
    min-height: 3rem;
    font-size: 16px;
  }
}

/* â•â•â• Ä°stifadÉ™Ã§i BildiriÅŸlÉ™r Qutusu â•â•â• */
.user-inbox-panel {
  position: relative;
  width: 100%;
  max-width: 52rem;
  max-height: calc(92dvh - var(--safe-top));
  overflow: hidden;
  margin: auto;
  padding: 1.35rem;
  padding-bottom: calc(1.35rem + var(--safe-bottom));
  border-radius: 1.25rem 1.25rem 0 0;
  transform: translateY(100%);
  transition: all 300ms ease-in-out;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .user-inbox-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .user-inbox-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .user-inbox-panel { transform: translateY(0); }

.user-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding-right: 3rem;
  min-width: 0;
}
.user-panel-tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.user-panel-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.user-panel-tab:hover {
  color: var(--ink);
}
.user-panel-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.user-applications-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.16);
  color: #5b4de0;
  font-size: 0.62rem;
  font-weight: 800;
}
.user-applications-count.hidden { display: none; }

.user-panel-view {
  display: none;
  flex: 1;
  min-height: 0;
  margin-top: 0.85rem;
}
.user-panel-view.is-active {
  display: flex;
  flex-direction: column;
}
.user-applications-panel {
  overflow: hidden;
}
.user-applications-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-raised, rgba(255, 255, 255, 0.72));
}
.user-applications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.user-applications-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
}
.user-applications-table th {
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--line);
}
.user-applications-table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  color: var(--ink);
}
.user-application-row:last-child td { border-bottom: none; }
.user-application-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}
.user-application-reason {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}
.user-application-kind {
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.user-application-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}
.application-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.application-status-badge--pending {
  background: rgba(109, 93, 246, 0.12);
  color: #5b4de0;
  border: 1px solid rgba(109, 93, 246, 0.22);
}
.application-status-badge--reviewing {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.application-status-badge--resolved {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.24);
}
.user-applications-empty {
  padding: 2rem 1rem;
}
.user-applications-table-wrap.hidden { display: none; }

.user-inbox-count {
  flex-shrink: 0;
  align-self: flex-start;
  min-width: max-content;
  max-width: none;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.25;
}

.user-inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
@media (max-width: 767px) {
  .user-inbox-layout { grid-template-columns: 1fr; }
  .user-inbox-layout.is-detail-open .user-inbox-list-wrap { display: none; }
  .user-inbox-back { display: inline-flex !important; }
}

.user-inbox-list-wrap,
.user-inbox-detail-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.user-inbox-list-label {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid var(--line);
}
.user-inbox-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
  display: grid;
  gap: 0.5rem;
  min-height: 0;
  max-height: min(52vh, 28rem);
}
.user-inbox-empty {
  margin: 0;
  padding: 1.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}
.user-inbox-empty.hidden { display: none; }

.user-notif-card {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.45s ease, transform 0.45s ease;
}
.user-notif-card--activity {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.user-notif-accent {
  width: 3px;
  flex-shrink: 0;
  border-radius: 0.8rem 0 0 0.8rem;
}
.user-notif-accent--balance { background: linear-gradient(180deg, #8b5cf6, #6d5df6); }
.user-notif-accent--profile { background: #64748b; }
.user-notif-accent--security { background: #475569; }
.user-notif-accent--approved { background: linear-gradient(180deg, #14b8a6, #0d9488); }
.user-notif-accent--rejected { background: linear-gradient(180deg, #f87171, #dc2626); }
.user-notif-accent--removed { background: #94a3b8; }
.user-notif-accent--message { background: #3b82f6; }
.user-notif-accent--like { background: #ec4899; }
.user-notif-accent--system { background: #cbd5e1; }
.user-notif-card-inner {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
}
.user-notif-card-message {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}
.user-notif-card:hover,
.user-notif-card:focus-visible {
  border-color: #e2e8f0;
  box-shadow: none;
  outline: none;
}
.user-notif-card--activity:hover,
.user-notif-card--activity:focus-visible {
  border-color: #e2e8f0;
}
.user-notif-card:not(.user-notif-card--activity):hover,
.user-notif-card:not(.user-notif-card--activity):focus-visible {
  background: #f8fafc;
}
.user-notif-card.is-active {
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(109, 93, 246, 0.04);
}
.user-notif-card.is-unread {
  border-color: rgba(109, 93, 246, 0.25);
}
.user-notif-card.is-entering {
  opacity: 0;
  transform: translateY(10px);
}
.user-notif-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.user-notif-card-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.user-notif-card-sub {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}
.user-notif-card-time {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}
.notif-type-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.notif-type-badge--message {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
.notif-type-badge--like {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}
.notif-type-badge--approved {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.notif-type-badge--rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.notif-type-badge--limit {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.notif-type-badge--balance {
  background: rgba(109, 93, 246, 0.12);
  color: #6d5df6;
}
.notif-type-badge--profile {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}
.notif-type-badge--security {
  background: rgba(71, 85, 105, 0.14);
  color: #334155;
}
.notif-type-badge--system {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.user-inbox-back { margin: 0.75rem 0.75rem 0; align-self: flex-start; }
.user-inbox-unified-empty {
  flex: 1;
  min-height: min(40vh, 16rem);
  padding: 2.5rem 1.5rem;
}
.user-inbox-unified-empty-text {
  max-width: 20rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.user-inbox-detail {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  min-height: 0;
  max-height: min(52vh, 28rem);
}
.user-inbox-placeholder {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}
.user-inbox-placeholder span { font-size: 2rem; }

.user-notif-detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}
.user-notif-detail-meta {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.user-notif-detail-body {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
}
.user-notif-detail-listing {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}
.user-notif-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.user-notif-detail-actions .top-up-balance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
  line-height: 1.25;
  border: 0;
  white-space: nowrap;
}

.listing-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #be185d;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  max-width: 100%;
}
.listing-like-label {
  white-space: nowrap;
}
.listing-like-btn:hover {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.45);
  transform: scale(1.03);
}
.listing-like-btn.is-liked {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.5);
  color: #db2777;
}
.listing-like-btn:active { transform: scale(0.97); }

/* â•â•â• SeÃ§ilmiÅŸlÉ™r (Favorites) â•â•â• */
.nav-favorites-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.nav-favorites-btn:hover {
  color: var(--violet);
  background: rgba(109, 93, 246, 0.08);
  transform: scale(1.03);
}
.nav-favorites-icon {
  color: #a78bfa;
  flex-shrink: 0;
}
.nav-favorites-badge {
  min-width: 1.15rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5df6, #8b7cf8);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(109, 93, 246, 0.45);
  animation: fav-badge-glow 2.4s ease-in-out infinite;
}
.nav-favorites-badge.hidden { display: none; }
.drawer-favorites-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes fav-badge-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(109, 93, 246, 0.35); }
  50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 18px rgba(109, 93, 246, 0.65); }
}

.card-fav-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.listing-card .card-media .card-fav-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  width: 2.15rem;
  height: 2.15rem;
}
.card-fav-btn:hover {
  transform: scale(1.1);
  color: var(--violet);
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.2);
}
.card-fav-btn.is-active {
  color: var(--violet);
  background: rgba(238, 242, 255, 0.96);
}
.card-fav-btn.is-pop {
  animation: fav-heart-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-fav-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, transform 0.2s ease;
}
.card-fav-btn.is-active .card-fav-icon {
  fill: currentColor;
  stroke: currentColor;
}

@keyframes fav-heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.marketplace-card .card-fav-btn {
  top: 0.45rem;
  right: 0.45rem;
}

.favorites-panel {
  position: relative;
  width: 100%;
  max-width: 52rem;
  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) {
  .favorites-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .favorites-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .favorites-panel { transform: translateY(0); }
.favorites-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.favorites-count-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(109, 93, 246, 0.12);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
}
.favorites-count-pill.hidden { display: none; }
.favorites-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed rgba(109, 93, 246, 0.28);
  background: linear-gradient(165deg, rgba(238, 242, 255, 0.65), rgba(255, 255, 255, 0.9));
}
.favorites-empty.hidden { display: none; }
.favorites-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 6px 14px rgba(109, 93, 246, 0.25));
}
.favorites-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.5rem;
}
.favorites-empty-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 28rem;
  margin: 0 auto;
}
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 1.25rem;
}

.favorites-grid .listing-card {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .nav-favorites-badge { animation: none; }
  .card-fav-btn.is-pop { animation: none; }
  .listing-card--removing { transition-duration: 0.01ms; }
}

@media (prefers-reduced-motion: reduce) {
  .user-notif-card.is-entering {
    opacity: 1;
    transform: none;
  }
}

/* â•â•â• TÉ™lÉ™bÉ™ Pul KisÉ™si â•â•â• */
.wallet-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: all 300ms ease-in-out;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .wallet-panel {
    border-radius: 1.25rem;
    transform: scale(0.96);
    opacity: 0;
  }
  .modal-root.is-open .wallet-panel {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-root.is-open .wallet-panel { transform: translateY(0); }

.wallet-balance-card {
  margin-top: 1.15rem;
  padding: 1.35rem 1.15rem;
  border-radius: 1.1rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(109, 93, 246, 0.16), transparent 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.9));
  border: 1px solid rgba(109, 93, 246, 0.2);
  box-shadow: 0 16px 40px rgba(109, 93, 246, 0.1);
}
.wallet-balance-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
.wallet-balance-amount {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 8vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.wallet-topup-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.9);
  display: grid;
  gap: 0.85rem;
}
.wallet-topup-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.wallet-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wallet-quick-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 246, 0.28);
  background: #fff;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
.wallet-quick-chip:hover {
  background: rgba(109, 93, 246, 0.08);
  border-color: rgba(109, 93, 246, 0.45);
  transform: scale(1.04);
}
.wallet-quick-chip.is-selected {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}
.wallet-quick-chip.is-bounce {
  animation: walletChipBounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes walletChipBounce {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

.wallet-deposit-btn {
  margin-top: 0.35rem;
  min-height: 0;
  border: 0;
}
.wallet-deposit-btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.wallet-deposit-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: supportSpin 0.65s linear infinite;
}

.wallet-history {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.wallet-history-title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
}
.wallet-tx-list {
  display: grid;
  gap: 0.5rem;
  max-height: min(40vh, 16rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wallet-tx-empty {
  margin: 0;
}
.wallet-tx-empty.hidden { display: none; }

.wallet-tx-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.wallet-tx-row.is-entering {
  opacity: 0;
  transform: translateY(8px);
}
.wallet-tx-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  flex-shrink: 0;
}
.wallet-tx-icon--in {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}
.wallet-tx-icon--out {
  background: rgba(109, 93, 246, 0.12);
  color: #5b4de0;
}
.wallet-tx-body { min-width: 0; }
.wallet-tx-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-tx-time {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}
.wallet-tx-amount {
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}
.wallet-tx-amount--in { color: #059669; }
.wallet-tx-amount--out { color: #5b4de0; }

@media (hover: none) and (pointer: coarse) {
  .wallet-panel .auth-field input {
    min-height: 3rem;
    font-size: 16px;
  }
}

@supports (-webkit-touch-callout: none) {
  .mobile-drawer-panel,
  .detail-sheet,
  .auth-panel,
  .chat-shell,
  .settings-panel,
  .user-inbox-panel,
  .wallet-panel,
  .creative-hub-inner,
  .delete-confirm-panel {
    max-height: -webkit-fill-available;
  }
  .listing-limit-panel {
    max-height: -webkit-fill-available;
  }
}

/* â”€â”€â”€ GÃ¼vÉ™n puanÄ± & rÉ™ylÉ™r â”€â”€â”€ */
.profile-name-row,
.drawer-user-name-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}
.profile-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(109, 93, 246, 0.1));
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  color: #a16207;
  white-space: nowrap;
}
.profile-trust-pill.hidden { display: none; }
.settings-trust-badge {
  margin: 0 0 0.75rem;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
}

.trust-rating-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trust-score {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-weight: 800;
  color: #a16207;
}
.trust-score--low { color: #dc2626; }
.trust-score--mid { color: #d97706; }
.trust-score--high { color: #a16207; }

.trust-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  vertical-align: middle;
}
.trust-stars--sm .trust-star { font-size: 0.72rem; }
.trust-stars--md .trust-star { font-size: 0.95rem; }
.trust-stars--lg .trust-star { font-size: 1.15rem; }

.trust-star {
  padding: 0;
  border: none;
  background: none;
  line-height: 1;
  cursor: default;
  transition: color 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trust-star--filled { color: #facc15; text-shadow: 0 1px 4px rgba(250, 204, 21, 0.45); }
.trust-star--empty { color: #cbd5e1; }
.trust-stars--interactive .trust-star {
  cursor: pointer;
}
.trust-stars--interactive .trust-star:hover,
.trust-stars--interactive .trust-star.is-hovered {
  transform: scale(1.15);
}
.trust-stars--interactive .trust-star.is-selected {
  animation: starFillPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starFillPop {
  0% { transform: scale(0.85); color: #cbd5e1; }
  55% { transform: scale(1.25); color: #fde047; }
  100% { transform: scale(1); color: #facc15; }
}

.card-host-line {
  margin: 0;
  font-size: 0.82rem;
}

.listing-posted-time {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.01em;
}
.listing-posted-time time {
  font: inherit;
  color: inherit;
}
.roommate-card-head .listing-posted-time {
  margin-top: 0.15rem;
}
.my-listing-item-time.listing-posted-time {
  margin: 0.25rem 0 0;
}
.dark .listing-posted-time {
  color: #64748b;
}

.reviews-section {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.reviews-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.reviews-feed {
  display: grid;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.review-row {
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.review-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.review-row-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #334155;
}
.review-row-time {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.review-row-comment {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}
.reviews-empty {
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.rating-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.rating-form-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}
.rating-form-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}
.rating-form-stars {
  margin-bottom: 0.65rem;
}
.rating-form textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rating-form textarea:focus {
  outline: none;
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.12);
}
.rating-form-submit {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rating-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.32);
}
.rating-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* â”€â”€â”€ Elan silmÉ™ â”€â”€â”€ */
.card-owned-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.card-owned-actions .vip-promotion-block {
  flex: 1 1 12rem;
  min-width: 0;
}
.listing-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: #fff1f2;
  color: #e11d48;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.listing-delete-btn:hover,
.listing-delete-btn:focus-visible {
  background: #ffe4e6;
  color: #be123c;
  transform: translateY(-1px);
}
.listing-delete-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.listing-delete-text {
  font-size: 0.875rem;
  white-space: nowrap;
}

.listing-card--deleting,
.marketplace-card--deleting {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .listing-card--deleting,
  .marketplace-card--deleting {
    transition: opacity 0.15s ease;
    transform: none;
  }
}

.delete-confirm-panel {
  position: relative;
  width: min(100%, 24rem);
  margin: auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
  transform: translateY(1.5rem);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#deleteListingModal {
  align-items: center;
  padding: 1.25rem;
}
.modal-root.is-open .delete-confirm-panel { transform: translateY(0); }
.delete-confirm-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.delete-confirm-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #1e293b;
}
.delete-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: #64748b;
}
.delete-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.delete-confirm-cancel,
.delete-confirm-submit {
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.delete-confirm-cancel {
  border: 1px solid var(--line);
  background: #fff;
  color: #64748b;
}
.delete-confirm-cancel:hover { background: #f8fafc; }
.delete-confirm-submit {
  border: none;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}
.delete-confirm-submit:hover { transform: translateY(-1px); }

.marketplace-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.marketplace-seller-trust {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
}

/* â”€â”€â”€ Legal Hub (modal) â”€â”€â”€ */
.legal-section {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.legal-section--modal {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.legal-section-head { margin-bottom: 1.35rem; }
.legal-section-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.legal-section-sub {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}
.legal-section-meta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}
.legal-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}
.legal-tab {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
}
.legal-tab:hover {
  border-color: rgba(109, 93, 246, 0.3);
  color: #5b4de0;
}
.legal-tab.is-active {
  background: var(--violet);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}
.legal-scroll {
  min-height: 0;
  flex: 1;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.legal-panel {
  display: none;
  animation: legalPanelFade 0.35s ease;
}
.legal-panel.is-active { display: block; }
.legal-panel[hidden] { display: none !important; }
.legal-panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #334155;
}
.legal-subsection-title {
  margin: 1.25rem 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #475569;
}
.legal-subsection-title:first-of-type { margin-top: 0.5rem; }
.legal-panel p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 500;
  color: #475569;
}
.legal-list {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
}
.legal-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 500;
  color: #475569;
}
.legal-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  color: #475569 !important;
}
@media (min-width: 768px) {
  .legal-scroll { max-height: min(58vh, 32rem); }
}

@keyframes legalPanelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ Pulsuz elan limiti upsell â”€â”€â”€ */
.listing-limit-panel {
  position: relative;
  width: min(100%, 26rem);
  margin: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.35rem;
  text-align: center;
  overflow: hidden;
  transform: translateY(1.25rem) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease;
}
#listingLimitModal {
  align-items: center;
  padding: 1.25rem;
}
.modal-root.is-open .listing-limit-panel {
  transform: translateY(0) scale(1);
}
.listing-limit-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 12rem;
  background: radial-gradient(ellipse at center, rgba(109, 93, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.listing-limit-icon {
  position: relative;
  font-size: 2.35rem;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 6px 14px rgba(109, 93, 246, 0.2));
}
.listing-limit-title {
  position: relative;
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e293b;
}
.listing-limit-desc {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  color: #64748b;
}
.listing-limit-desc strong { color: #5b4de0; }
.listing-limit-balance {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(238, 242, 255, 0.85);
  border: 1px solid rgba(109, 93, 246, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}
.listing-limit-balance strong { color: #dc2626; }
.listing-limit-actions {
  position: relative;
  display: grid;
  gap: 0.55rem;
}
.listing-limit-wallet-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(109, 93, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.listing-limit-wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(109, 93, 246, 0.36);
}
.listing-limit-dismiss {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.listing-limit-dismiss:hover { background: #f8fafc; }

/* â”€â”€â”€ Theme toggle â”€â”€â”€ */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: all 300ms ease-in-out;
  transform-origin: center;
}
.theme-toggle-btn:hover {
  border-color: rgba(109, 93, 246, 0.35);
  box-shadow: 0 4px 14px rgba(109, 93, 246, 0.12);
}
.theme-toggle-btn:active .theme-toggle-icon {
  transform: rotate(20deg) scale(0.9);
}
.theme-toggle-btn--drawer {
  width: auto;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  gap: 0.5rem;
  justify-content: flex-start;
}
.theme-toggle-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.theme-toggle-icon {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}
html:not(.dark) .theme-toggle-icon--moon { display: inline-flex; }
html.dark .theme-toggle-icon--sun { display: inline-flex; }

/* â”€â”€â”€ Dark mode (class on <html>) â”€â”€â”€ */
.dark {
  color-scheme: dark;
  --ink: #f4f2ff;
  --line: rgba(255, 255, 255, 0.1);
  --mist: #0f0e17;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-card-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a89bfa' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  --surface: #1a1828;
  --surface-raised: #221f33;
  --surface-muted: #0f0e17;
  --text-muted: #b8b2cc;
  --text-subtle: #8b849e;
  --body-bg: #0f0e17;
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-bg-compact: rgba(255, 255, 255, 0.06);
  --field-bg-disabled: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(255, 255, 255, 0.05);
}

.dark .site-bg,
.dark .site-bg-grid {
  background-color: var(--body-bg);
}
.dark .site-bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  opacity: 0.28;
}
.dark .site-bg-glow--violet { opacity: 0.18; }
.dark .site-bg-glow--teal { opacity: 0.14; }

.dark .glass-header {
  background: rgba(11, 15, 25, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.dark .glass-modal,
.dark .premium-card,
.dark .search-card--minimal,
.dark .detail-sheet,
.dark .auth-panel,
.dark .post-panel,
.dark .settings-panel,
.dark .chat-shell,
.dark .mobile-drawer-panel,
.dark .favorites-panel,
.dark .wallet-panel,
.dark .support-panel,
.dark .admin-inbox-panel,
.dark .boost-pricing-panel {
  background: rgba(22, 27, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark .search-card--minimal::before {
  background: linear-gradient(
    135deg,
    rgba(109, 93, 246, 0.08) 0%,
    transparent 42%,
    rgba(20, 184, 166, 0.05) 100%
  );
}
.dark .premium-card:hover {
  border-color: rgba(100, 116, 139, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dark .nav-link { color: var(--text-muted); }
.dark .nav-link:hover { color: var(--ink); }
.dark .auth-link {
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .nav-auth-cluster {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(51, 65, 85, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.dark .nav-auth-login {
  background: transparent;
  border-color: transparent;
}
.dark .drawer-auth-stack {
  border-top-color: transparent;
}
.dark .drawer-link--cta {
  background: rgba(109, 93, 246, 0.14);
  border-color: rgba(109, 93, 246, 0.28);
  color: #c4b5fd;
}
.dark .drawer-link--login {
  color: #94a3b8;
  border-color: rgba(51, 65, 85, 0.75);
  background: rgba(15, 23, 42, 0.55);
}
.dark .drawer-link--login:hover,
.dark .drawer-link--login:focus-visible {
  color: #c4b5fd;
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(109, 93, 246, 0.12);
}
.dark .lang-switcher {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .lang-switcher-btn { color: var(--text-muted); }
.dark .lang-dropdown-trigger {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.dark .lang-dropdown-trigger:hover,
.dark .lang-dropdown-trigger:focus-visible {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(109, 93, 246, 0.35);
  color: #c4b5fd;
}
.dark .lang-dropdown-menu {
  background: #161b26;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.dark .lang-dropdown-option {
  color: #cbd5e1;
}
.dark .lang-dropdown-option:hover,
.dark .lang-dropdown-option:focus-visible {
  background: rgba(30, 41, 59, 0.65);
  color: #c4b5fd;
}
.dark .lang-dropdown-option.is-active {
  background: rgba(109, 93, 246, 0.16);
  color: #c4b5fd;
}
.dark .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .theme-toggle-label { color: var(--ink); }

/* â”€â”€â”€ Dark: hero filters â”€â”€â”€ */
.dark .filter-field,
.dark .search-card--minimal .filter-field--compact {
  background: var(--field-bg-compact);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: none;
}
.dark .filter-field.is-disabled,
.dark .search-card--minimal .filter-field--compact.is-disabled {
  background: var(--field-bg-disabled);
  border-color: rgba(51, 65, 85, 0.5);
}
.dark .filter-field select,
.dark .filter-field input,
.dark .filter-label,
.dark .search-card--minimal .filter-field--compact .filter-label {
  color: var(--ink);
}
.dark .filter-field.is-disabled .filter-label,
.dark .search-card--minimal .filter-field--compact.is-disabled .filter-label {
  color: #64748b;
}
.dark .filter-field.is-disabled select,
.dark .filter-field select:disabled {
  color: #64748b;
}
.dark .filter-field select option,
.dark .auth-field select option {
  background: #1e293b;
  color: #f1f5f9;
}
.dark .filter-chip {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
  color: #cbd5e1;
}
.dark .filter-chip:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(100, 116, 139, 0.55);
}
.dark .filter-chip:has(input:checked) {
  background: rgba(109, 93, 246, 0.18);
  border-color: rgba(109, 93, 246, 0.45);
  color: #c4b5fd;
}
.dark .filter-toggle-btn {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .filter-toggle-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #c4b5fd;
}
.dark .filter-toggle-btn--icon {
  border: 0;
  background: transparent;
}
.dark .filter-toggle-btn--icon:hover {
  background: rgba(30, 41, 59, 0.85);
}
.dark .filter-chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.dark .filter-field.is-disabled .filter-chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.dark .hub-form .filter-field {
  background: var(--field-bg-compact);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: none;
}
.dark .hub-form .filter-field.is-disabled {
  background: var(--field-bg-disabled);
}
.dark .creation-guide-tag {
  background: rgba(51, 65, 85, 0.45);
  color: var(--text-subtle);
}

.dark .tab-btn { color: var(--text-muted); }
.dark .tab-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.dark .tabs-bar {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .hero-sub,
.dark .how-step-desc,
.dark .section-eyebrow,
.dark .post-form-hint,
.dark .auth-sub {
  color: #cbd5e1 !important;
}
.dark .hero-pill {
  color: #cbd5e1 !important;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: none;
}
.dark .hero-pill:hover {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(100, 116, 139, 0.55);
}
.dark .hero-pill--ghost {
  color: var(--text-subtle) !important;
  background: rgba(15, 23, 42, 0.55);
}
.dark .hero-title,
.dark .how-step-title,
.dark .auth-title,
.dark .brand-name,
.dark h1,
.dark h2,
.dark h3,
.dark .section-title {
  color: #f8fafc;
}
.dark .text-slate-900,
.dark .text-slate-800,
.dark .text-brand-ink {
  color: #f8fafc !important;
}
.dark .text-slate-600 {
  color: #cbd5e1 !important;
}
.dark .text-slate-500 {
  color: #94a3b8 !important;
}
.dark .text-slate-400 {
  color: #64748b !important;
}
.dark .hero-gradient-text {
  background: linear-gradient(135deg, #a78bfa, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
}

.dark .profile-dropdown,
.dark .drawer-link,
.dark .mobile-drawer-panel {
  background: var(--surface);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .profile-dropdown-item:hover,
.dark .drawer-link:hover {
  background: rgba(51, 65, 85, 0.45);
}
.dark .drawer-user-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .auth-field input,
.dark .auth-field select,
.dark .auth-field textarea,
.dark .uni-search-input,
.dark .hub-form input:not([type="file"]),
.dark .hub-form select,
.dark .hub-form textarea,
.dark .housemate-row input {
  background: var(--input-bg);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
}
.dark .auth-field input:focus,
.dark .auth-field select:focus,
.dark .auth-field textarea:focus,
.dark .filter-field input:focus,
.dark .filter-field select:focus,
.dark .uni-search-input:focus,
.dark .hub-form input:focus,
.dark .hub-form select:focus,
.dark .hub-form textarea:focus {
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.12);
}
.dark .auth-field span,
.dark .filter-label,
.dark .hub-form-section-title {
  color: var(--text-subtle);
}

/* â”€â”€â”€ Dark: Elan Yarat hub â”€â”€â”€ */
.dark .creative-hub-backdrop {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(109, 93, 246, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(45, 212, 191, 0.07), transparent 55%),
    linear-gradient(165deg, #0b0f19 0%, #161b26 48%, #0b0f19 100%);
}
.dark .creative-hub-title,
.dark .creative-hub-form-title,
.dark .hub-category-title {
  color: var(--ink);
}
.dark .creative-hub-sub,
.dark .creative-hub-form-sub,
.dark .hub-category-sub {
  color: var(--text-muted);
}
.dark .creative-hub-form-panel.glass-modal,
.dark .creative-hub-form-panel {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.72);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.dark .hub-category-card {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.dark .hub-category-card:hover,
.dark .hub-category-card:focus-visible {
  border-color: rgba(109, 93, 246, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}
.dark .hub-category-badge {
  background: rgba(109, 93, 246, 0.16);
  color: #c4b5fd;
}
.dark .hub-back-btn {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(51, 65, 85, 0.65);
  color: #c4b5fd;
  box-shadow: none;
}
.dark .hub-back-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(109, 93, 246, 0.35);
}
.dark .hub-form-section {
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(15, 23, 42, 0.35);
}
.dark .creative-hub-form-panel .hub-form-section {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(51, 65, 85, 0.55);
}
.dark .creative-hub-form-panel .hub-form .auth-field input:not([type="file"]):not([type="checkbox"]),
.dark .creative-hub-form-panel .hub-form .auth-field textarea,
.dark .creative-hub-form-panel .hub-form .auth-field select,
.dark .creative-hub-form-panel .hub-form .uni-search-input,
.dark .creative-hub-form-panel .hub-form .housemate-row input,
.dark .creative-hub-form-panel .hub-form .filter-select-wrap {
  background: color-mix(in srgb, var(--input-bg) 78%, transparent);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark .creative-hub-form-panel .hub-form .auth-field input:focus,
.dark .creative-hub-form-panel .hub-form .auth-field textarea:focus,
.dark .creative-hub-form-panel .hub-form .auth-field select:focus,
.dark .creative-hub-form-panel .hub-form .uni-search-input:focus,
.dark .creative-hub-form-panel .hub-form .housemate-row input:focus,
.dark .creative-hub-form-panel .hub-form .filter-field:focus-within .filter-select-wrap,
.dark .creative-hub-form-panel .hub-form .filter-field--stacked:focus-within .filter-select-wrap {
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.12),
    0 0 12px rgba(147, 51, 234, 0.12);
}
.dark .creative-hub-form-panel .hub-form .auth-field input:disabled,
.dark .creative-hub-form-panel .hub-form .auth-field select:disabled,
.dark .creative-hub-form-panel .hub-form .uni-search-input:disabled {
  background: var(--field-bg-disabled);
  color: var(--text-muted);
}
.dark .creative-hub-form-panel .hub-form .auth-field--checkbox span {
  color: var(--ink);
}
.dark .creative-hub-form-panel .hub-form-acc {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .hub-form-acc {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .hub-form-acc summary {
  color: var(--ink);
}
.dark .hub-link-btn { color: #c4b5fd; }
.dark .creation-guide-zone {
  border-top-color: rgba(51, 65, 85, 0.65);
}
.dark .creation-guide-col {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .creation-guide-title,
.dark .creation-guide-item-label,
.dark .creation-guide-faq-q {
  color: var(--ink);
}
.dark .creation-guide-item-text,
.dark .creation-guide-faq-a {
  color: var(--text-muted);
}
.dark .creation-guide-item,
.dark .creation-guide-faq-item {
  border-color: rgba(51, 65, 85, 0.55);
}
.dark .support-upload-zone {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .support-upload-zone:hover,
.dark .support-upload-zone:focus-visible,
.dark .support-upload-zone.is-dragover {
  background: rgba(109, 93, 246, 0.08);
  border-color: rgba(109, 93, 246, 0.35);
}
.dark .support-upload-text { color: #cbd5e1; }
.dark .support-upload-hint,
.dark .support-preview-name { color: var(--text-subtle); }
.dark .support-remove-image { color: #c4b5fd; }
.dark .support-upload-icon {
  background: rgba(109, 93, 246, 0.16);
  color: #c4b5fd;
}

.dark .toast,
.dark .promote-toast,
.dark .listing-limit-panel {
  background: var(--surface);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
}
.dark .listing-limit-dismiss {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-muted);
}
.dark .listing-limit-dismiss:hover { background: rgba(51, 65, 85, 0.45); }

.dark .utilities-section {
  border-top-color: rgba(51, 65, 85, 0.65);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, transparent 6rem);
}
.dark .site-footer {
  border-top-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .legal-panel-title,
.dark .legal-subsection-title { color: #cbd5e1; }
.dark .legal-section-meta,
.dark .legal-note { color: var(--text-muted); }

.dark .reservation-trigger-btn {
  background: rgba(109, 93, 246, 0.1);
  border-color: rgba(109, 93, 246, 0.28);
  color: #c4b5fd;
}
.dark .reservation-picker-panel {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .chat-reservation-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
.dark .chat-reservation-body,
.dark .chat-reservation-body strong {
  color: var(--ink);
}
.dark .chat-reservation-btn--decline {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .chat-reservation-card.is-accepted .chat-reservation-status {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}
.dark .chat-reservation-card.is-declined .chat-reservation-status {
  background: rgba(51, 65, 85, 0.35);
  border-color: rgba(51, 65, 85, 0.55);
  color: var(--text-muted);
}

.dark .chat-main {
  background: rgba(15, 23, 42, 0.72);
}
.dark .chat-threads {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .chat-thread-item {
  border-bottom-color: rgba(51, 65, 85, 0.55);
}
.dark .chat-thread-item:hover,
.dark .chat-thread-item:focus-visible {
  background: rgba(30, 41, 59, 0.55);
}
.dark .chat-thread-item.is-active {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.28), rgba(15, 23, 42, 0.45));
  box-shadow: inset 3px 0 0 #a78bfa;
}
.dark .chat-thread-name {
  color: #f1f5f9;
}
.dark .chat-peer-head {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .chat-feed {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 100%);
}
.dark .chat-compose {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(51, 65, 85, 0.65);
}
.dark .thread-btn { color: var(--text-muted); }
.dark .thread-btn.is-active {
  background: rgba(109, 93, 246, 0.18);
  color: #c4b5fd;
}

.dark .support-upload-zone,
.dark .lifestyle-badge,
.dark .uni-picker-chip {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
  color: #cbd5e1;
}
.dark .lifestyle-badge.is-selected,
.dark .uni-picker-chip.is-selected {
  background: rgba(109, 93, 246, 0.18);
  border-color: rgba(109, 93, 246, 0.45);
  color: #c4b5fd;
}

.dark .menu-btn span {
  background: var(--ink);
}
.dark .icon-btn {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .leaflet-container { background: #1e293b; }
.dark #map,
.dark .listing-detail-map,
.dark .listing-card-map,
.dark .form-map-picker {
  border-color: rgba(51, 65, 85, 0.65);
  background: #131b2e;
}
.dark .leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #94a3b8 !important;
}

/* â”€â”€â”€ Dark mode: profile, utilities, modals â”€â”€â”€ */
.dark .profile-trigger {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .profile-trigger:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(100, 116, 139, 0.55);
}
.dark .profile-name,
.dark .profile-dropdown-item {
  color: var(--ink);
}
.dark .profile-chevron { color: var(--text-subtle); }
.dark .profile-dropdown {
  background: var(--surface-raised);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.dark .profile-dropdown-summary {
  background: rgba(109, 93, 246, 0.1);
  border-color: rgba(109, 93, 246, 0.22);
}
.dark .profile-dropdown-balance {
  color: #f8fafc;
}
.dark .profile-dropdown-trust {
  background: transparent;
  border: 0;
  color: inherit;
}
.dark .profile-dropdown-trust-score {
  color: #f8fafc;
}
.dark .profile-dropdown-trust-score.trust-score--mid { color: #fcd34d; }
.dark .profile-dropdown-trust-score.trust-score--high { color: #6ee7b7; }
.dark .profile-dropdown-verified {
  color: #93c5fd;
}
.dark .profile-dropdown-item--danger { color: #f87171; }
.dark .profile-dropdown-item--danger:hover { background: rgba(127, 29, 29, 0.25); }
.dark .nav-profile-inbox-btn {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .nav-profile-inbox-btn:hover,
.dark .nav-profile-inbox-btn:focus-visible {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(109, 93, 246, 0.35);
  color: #c4b5fd;
}
.dark .nav-inbox-dot { border-color: var(--surface-raised); }
.dark .nav-balance-badge {
  background: rgba(109, 93, 246, 0.15);
  border-color: rgba(109, 93, 246, 0.28);
  color: #cbd5e1;
}
.dark .user-avatar {
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.25), rgba(20, 184, 166, 0.18));
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .utility-card,
.dark .campus-wall-panel {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(51, 65, 85, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}
.dark .utility-card-sub,
.dark .utility-card-title,
.dark .rent-calc-section-title,
.dark .rent-calc-result-value {
  color: var(--ink);
}
.dark .rent-calc-label,
.dark .rent-calc-section-desc,
.dark .rent-calc-result-label,
.dark .shared-expense-label {
  color: var(--text-subtle);
}
.dark .rent-calc-expenses {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .rent-calc-input,
.dark .shared-expense-field input,
.dark .expense-roommate-field input {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
}
.dark .rent-calc-input:focus,
.dark .shared-expense-field input:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.12);
}
.dark .rent-calc-result {
  background: rgba(109, 93, 246, 0.12);
  border-color: rgba(109, 93, 246, 0.22);
}
.dark .rent-calc-result-row--share {
  border-top-color: rgba(109, 93, 246, 0.18);
}
.dark .rent-calc-result-value--accent { color: #c4b5fd; }
.dark .rent-calc-add-btn { color: #c4b5fd; }
.dark .shared-expense-add-btn {
  background: rgba(109, 93, 246, 0.12);
  border-color: rgba(109, 93, 246, 0.28);
  color: #c4b5fd;
}
.dark .campus-stat-row:hover {
  background: rgba(30, 41, 59, 0.5);
}
.dark .campus-stat-row.is-active {
  background: rgba(109, 93, 246, 0.12);
  border-color: rgba(109, 93, 246, 0.28);
}
.dark .campus-stat-track {
  background: rgba(255, 255, 255, 0.06);
}
.dark .campus-stat-count,
.dark .campus-activity-hint {
  color: #94a3b8;
}
.dark .campus-stat-badge--violet {
  background: rgba(76, 29, 149, 0.35);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.3);
}
.dark .campus-stat-badge--teal {
  background: rgba(6, 78, 59, 0.35);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.3);
}
.dark .campus-stat-badge--blue {
  background: rgba(30, 58, 138, 0.35);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}
.dark .campus-stat-badge--indigo {
  background: rgba(49, 46, 129, 0.35);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}
.dark .campus-stat-badge--amber {
  background: rgba(120, 53, 15, 0.35);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}
.dark .campus-stat-badge--rose {
  background: rgba(136, 19, 55, 0.35);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}
.dark .expense-item-row {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .expense-item-row-amount { color: #cbd5e1; }
.dark .expense-item-remove {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-subtle);
}
.dark .expense-breakdown {
  background: rgba(109, 93, 246, 0.1);
  border-color: rgba(109, 93, 246, 0.2);
}
.dark .expense-item-empty { color: var(--text-subtle); }

.dark .campus-wall-drop {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .campus-wall-drop-text,
.dark .campus-wall-title { color: var(--ink); }
.dark .campus-wall-sub,
.dark .campus-wall-drop-time,
.dark .campus-wall-empty,
.dark .campus-wall-char,
.dark .campus-wall-note {
  color: var(--text-subtle);
}
.dark .campus-wall-live {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
  color: #5eead4;
}
.dark .campus-wall-compose {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .campus-wall-input {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
}

.dark .settings-section {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .settings-section-title,
.dark .settings-hint { color: var(--text-subtle); }
.dark .settings-avatar-change {
  background: rgba(109, 93, 246, 0.12);
  color: #c4b5fd;
}
.dark .settings-avatar-change:hover { background: rgba(109, 93, 246, 0.2); }
.dark .avatar-picker {
  background: var(--surface-raised);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .avatar-pick-btn,
.dark .avatar-upload-btn {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .wallet-balance-card {
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.18), rgba(20, 184, 166, 0.1));
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .wallet-balance-label { color: var(--text-subtle); }
.dark .wallet-balance-amount { color: var(--ink); }
.dark .wallet-topup-panel {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .wallet-tx-row {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .wallet-tx-label { color: var(--ink); }
.dark .wallet-tx-time { color: var(--text-subtle); }

.dark .legal-modal-panel,
.dark .legal-section--modal {
  background: var(--surface-raised);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .legal-tab {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .legal-tab.is-active {
  background: var(--surface);
  color: var(--ink);
}
.dark .legal-section-title,
.dark .legal-section-sub { color: var(--ink); }

.dark .my-listing-item {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(51, 65, 85, 0.8);
}

.dark .my-listing-item-title {
  color: #f1f5f9;
}

.dark .my-listing-item-price {
  color: #cbd5e1;
}

.dark .my-listing-item-meta,
.dark .my-listing-item-time {
  color: #64748b;
}

.dark .my-listings-empty {
  color: var(--text-subtle);
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(51, 65, 85, 0.5);
}

.dark .my-listing-lifecycle-badge--active {
  background: rgba(120, 53, 15, 0.2);
  color: #fbbf24;
  border-color: rgba(120, 53, 15, 0.3);
}

.dark .my-listing-lifecycle-badge--warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.24);
}

.dark .my-listing-lifecycle-toggle {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.dark .my-listing-lifecycle-toggle:hover,
.dark .my-listing-lifecycle-toggle.is-active:hover {
  background: #1e293b;
  border-color: #475569;
}

.dark .my-listing-lifecycle-toggle.is-active {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.dark .my-listing-delete-btn {
  background: rgba(127, 29, 29, 0.15);
  color: #fb7185;
}

.dark .my-listing-delete-btn:hover,
.dark .my-listing-delete-btn:focus-visible {
  background: rgba(127, 29, 29, 0.25);
  border-color: rgba(251, 113, 133, 0.25);
}

.dark .my-listing-boost-btn.btn-boost {
  background: linear-gradient(to right, #9333ea, #4f46e5) !important;
  color: #fff !important;
  border: none !important;
}

.dark .my-listing-boost-btn.btn-boost:hover,
.dark .my-listing-boost-btn.btn-boost:focus-visible {
  background: linear-gradient(to right, #9333ea, #4f46e5) !important;
  color: #fff !important;
}

.dark .favorites-card,
.dark .promote-feature-banner {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .favorites-card-meta,
.dark .promote-feature-banner-text {
  color: var(--text-muted);
}

.dark .user-inbox-panel,
.dark .admin-inbox-panel,
.dark .support-panel {
  background: var(--surface-raised);
  color: var(--ink);
}
.dark .user-notif-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .user-notif-card-title { color: var(--ink); }
.dark .user-notif-card-message,
.dark .user-notif-card-sub { color: var(--text-muted); }
.dark .user-notif-card-time { color: #64748b; }
.dark .user-notif-card.is-active {
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(109, 93, 246, 0.1);
}
.dark .settings-toggle-row {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .settings-toggle-row:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(71, 85, 105, 0.75);
}
.dark .settings-toggle-copy strong { color: var(--ink); }
.dark .settings-toggle-copy small { color: var(--text-muted); }
.dark .user-inbox-item,
.dark .admin-ticket-card,
.dark .support-ticket-row {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .user-inbox-item-title,
.dark .admin-ticket-title { color: var(--ink); }
.dark .user-inbox-item-meta,
.dark .admin-ticket-meta { color: var(--text-subtle); }

.dark .footer-link { color: var(--text-muted); }
.dark .footer-link:hover { color: #c4b5fd; }
.dark .sheet-close {
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .hub-category-sub { color: var(--text-muted); }

.dark .card-body,
.dark .card-title,
.dark .card-price,
.dark .marketplace-card-title {
  color: var(--ink);
}
.dark .card-chip {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--text-muted);
}
.dark .card-chip--uni,
.dark .card-chip--metro {
  color: #c4b5fd;
  border-color: rgba(109, 93, 246, 0.35);
  background: rgba(88, 28, 135, 0.22);
}
.dark .card-meta,
.dark .card-host,
.dark .card-tag {
  color: var(--text-muted);
}
.dark .card-tags .card-tag {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
  color: #cbd5e1;
}

.dark .modal-backdrop {
  background: rgba(11, 15, 25, 0.78);
}
.dark .detail-sheet,
.dark .detail-hero-wrap {
  background: var(--surface-raised);
}
.dark .detail-profile-name,
.dark .detail-profile-budget,
.dark .detail-profile-bio,
.dark .detail-profile-preferred {
  color: var(--ink);
}
.dark .detail-profile-budget,
.dark .detail-profile-preferred {
  color: var(--text-muted);
}
.dark .detail-profile-bio {
  color: var(--text-muted);
}
.dark .detail-profile-actions {
  border-top-color: rgba(255, 255, 255, 0.06);
}
.dark .detail-actions {
  border-top-color: rgba(255, 255, 255, 0.06);
}
.dark .detail-actions-premium {
  border-top-color: rgba(255, 255, 255, 0.08);
}
.dark .detail-actions .listing-delete-btn {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.dark .detail-actions .listing-delete-btn:hover,
.dark .detail-actions .listing-delete-btn:focus-visible {
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca;
}
.dark .detail-title--premium {
  color: #f1f5f9;
}
.dark .detail-price--premium {
  color: #a78bfa;
}
.dark .detail-profile-budget.detail-price--premium {
  color: #94a3b8;
}
.dark .detail-description,
.dark .detail-profile-bio {
  color: #94a3b8;
}
.dark .detail-meta-line {
  color: #94a3b8;
}
.dark .detail-floating-like {
  background: rgba(30, 41, 59, 0.82);
  color: #94a3b8;
}
.dark .detail-floating-like:hover,
.dark .detail-floating-like:focus-visible {
  color: #fb7185;
  background: rgba(30, 41, 59, 0.95);
}
.dark .detail-floating-like.is-liked {
  color: #fb7185;
}
.dark .detail-gallery-thumb.is-active {
  box-shadow: 0 0 0 2px #a78bfa;
}
.dark .location-badge--minimal {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}
.dark .location-badge--minimal .detail-loc-icon {
  color: #94a3b8;
}
.dark .detail-btn--secondary,
.dark .detail-actions .detail-btn--secondary.reservation-trigger-btn {
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
.dark .detail-btn--secondary:hover,
.dark .detail-btn--secondary:focus-visible,
.dark .detail-actions .detail-btn--secondary.reservation-trigger-btn:hover,
.dark .detail-actions .detail-btn--secondary.reservation-trigger-btn:focus-visible {
  background: rgba(88, 28, 135, 0.2);
  border-color: rgba(167, 139, 250, 0.35);
}
.dark .capacity-slot {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .capacity-slot--vacant {
  background: rgba(109, 93, 246, 0.12);
  border-color: rgba(109, 93, 246, 0.28);
}

.dark .profile-trust-pill,
.dark .settings-trust-badge {
  background: rgba(109, 93, 246, 0.15);
  color: #c4b5fd;
}
.dark .nav-favorites-btn { color: var(--text-muted); }
.dark .nav-favorites-btn:hover { color: var(--ink); }
.dark .text-red-600 { color: #f87171 !important; }
.dark .drawer-link.text-red-600 { color: #f87171 !important; }

/* â”€â”€â”€ Premium dark: split panels, notifications, action buttons â”€â”€â”€ */
.dark .user-inbox-panel,
.dark .admin-inbox-panel {
  background: #161b26;
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .user-inbox-list-wrap,
.dark .admin-inbox-list-wrap,
.dark .split-panel-list-wrap {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .user-inbox-detail-wrap,
.dark .admin-inbox-detail-wrap,
.dark .split-panel-detail {
  background: #0b0f19;
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .user-inbox-list-label,
.dark .admin-inbox-list-label,
.dark .split-panel-list-label {
  color: #64748b;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.dark .user-notif-card {
  background: rgba(22, 27, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .user-notif-card-title,
.dark .user-notif-detail-title {
  color: #f8fafc;
}
.dark .user-notif-card-message,
.dark .user-notif-card-sub,
.dark .user-notif-detail-body {
  color: #cbd5e1;
}
.dark .user-notif-card-time,
.dark .user-notif-detail-meta {
  color: #64748b;
}
.dark .user-notif-card:not(.user-notif-card--activity):hover,
.dark .user-notif-card:not(.user-notif-card--activity):focus-visible {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .user-notif-card--activity:hover,
.dark .user-notif-card--activity:focus-visible {
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .user-notif-detail-listing {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.dark .user-inbox-placeholder,
.dark .user-inbox-empty,
.dark .user-inbox-unified-empty {
  color: #64748b;
}
.dark .user-inbox-unified-empty-text {
  color: #cbd5e1;
}
.dark .notif-type-badge--message {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}
.dark .notif-type-badge--like {
  background: rgba(236, 72, 153, 0.16);
  color: #f9a8d4;
}
.dark .notif-type-badge--approved {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
.dark .notif-type-badge--rejected {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.dark .notif-type-badge--limit {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}
.dark .notif-type-badge--balance {
  background: rgba(109, 93, 246, 0.2);
  color: #c4b5fd;
}
.dark .notif-type-badge--profile,
.dark .notif-type-badge--security,
.dark .notif-type-badge--system,
.dark .notif-type-badge--removed {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}
.dark .tag,
.dark .tag.uni-tag {
  background: rgba(76, 29, 149, 0.4);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}
.dark .tag.green {
  background: rgba(6, 78, 59, 0.4);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.dark .uni-picker-chip {
  background: rgba(76, 29, 149, 0.4);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.3);
}
.dark .uni-picker-chip .uni-picker-code {
  color: #a78bfa;
}
.dark .uni-picker-chip.is-selected {
  background: rgba(109, 93, 246, 0.28);
  border-color: rgba(167, 139, 250, 0.45);
  color: #ddd6fe;
}
.dark .wallet-quick-chip {
  background: rgba(76, 29, 149, 0.4);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}
.dark .wallet-quick-chip:hover {
  background: rgba(109, 93, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.4);
}
.dark .wallet-quick-chip.is-selected {
  background: rgba(109, 93, 246, 0.28);
  border-color: rgba(167, 139, 250, 0.45);
  color: #ddd6fe;
}
.btn-action-violet,
.top-up-balance-btn,
.wallet-deposit-btn,
.auth-submit {
  color: #ffffff !important;
}
.dark .top-up-balance-btn,
.dark .wallet-deposit-btn,
.dark .btn-action-violet {
  background-color: #7c3aed !important;
}
.dark .top-up-balance-btn:hover,
.dark .wallet-deposit-btn:hover,
.dark .btn-action-violet:hover {
  background-color: #6d28d9 !important;
}
.dark .wallet-history-title {
  color: #f8fafc;
}
.dark .wallet-topup-label {
  color: #cbd5e1;
}
.dark .campus-wall-note {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
}

/* â”€â”€â”€ Force page-reveal entrance (hardware-accelerated) â”€â”€â”€ */
@keyframes premiumFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.reveal-animate {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reveal-animate.is-visible {
  animation: premiumFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.reveal-animate.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.delay-100 { animation-delay: 100ms !important; }
.delay-200 { animation-delay: 200ms !important; }

/* â•â•â• Layout guardrails â€” anti-truncation, empty states, split panels â•â•â• */

.ui-badge,
.nav-admin-badge,
.nav-user-inbox-badge,
.nav-favorites-badge,
.profile-dropdown-badge,
.admin-pending-count,
.admin-live-count,
.admin-inbox-count,
.favorites-count-pill,
.notif-type-badge,
.ticket-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: max-content;
  flex-shrink: 0;
}
.user-inbox-count.ui-badge {
  max-width: none;
  min-width: max-content;
}

.panel-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.panel-head-copy .auth-title,
.panel-head-copy .auth-sub,
.panel-head-copy .section-title {
  overflow-wrap: break-word;
  word-break: break-word;
}
.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  min-height: min(36vh, 14rem);
}
.panel-empty-state.hidden { display: none; }
.panel-empty-state-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.panel-empty-state-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 22rem;
}
.panel-empty-state-text {
  margin: 0;
  max-width: 24rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle, #94a3b8);
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
}
.panel-empty-state--hint {
  min-height: min(28vh, 10rem);
  padding: 2rem 1rem;
}
.panel-empty-state--hint .panel-empty-state-text {
  font-size: 0.88rem;
}

.split-panel-layout.is-empty-state {
  grid-template-columns: 1fr;
}
.split-panel-layout.is-empty-state .split-panel-detail {
  display: none;
}
.split-panel-layout.is-empty-state .split-panel-list-label {
  display: none;
}
.split-panel-layout.is-empty-state .split-panel-list {
  display: none;
}
.split-panel-layout.is-empty-state .split-panel-list-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(40vh, 16rem);
}
.split-panel-layout.is-empty-state .panel-empty-state:not(.hidden) {
  display: flex;
  flex: 1;
}

/* User inbox: single unified empty â€” hide activity column, expand detail pane */
.user-inbox-layout.is-empty-state {
  grid-template-columns: 1fr;
}
.user-inbox-layout.is-empty-state .user-inbox-list-wrap,
.user-inbox-layout.is-empty-state .split-panel-list-wrap {
  display: none !important;
}
.user-inbox-layout.is-empty-state .user-inbox-detail-wrap,
.user-inbox-layout.is-empty-state .split-panel-detail {
  display: flex !important;
  flex-direction: column;
  min-height: min(42vh, 18rem);
  border: 1px solid var(--line);
}
.user-inbox-layout.is-empty-state .user-inbox-back {
  display: none !important;
}
.user-inbox-layout.is-empty-state .user-inbox-detail {
  display: none !important;
}
.user-inbox-layout.is-empty-state .user-inbox-unified-empty:not(.hidden) {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.empty-state {
  overflow-wrap: break-word;
  word-break: break-word;
}

.dark .panel-empty-state-title {
  color: var(--ink);
}
.dark .panel-empty-state-text {
  color: var(--text-muted);
}

/* â”€â”€â”€ Co-Living Hub (Qrup) â”€â”€â”€ */
.nav-cta-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface-raised, #fff), var(--surface-raised, #fff)) padding-box,
    linear-gradient(135deg, #14b8a6, #6d5df6, #f59e0b) border-box;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta-group:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.24);
}
@media (max-width: 1023px) {
  .nav-cta-group {
    display: none;
  }
}

.listing-control-bar {
  position: sticky;
  top: calc(4.25rem + var(--safe-top));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0 0.65rem;
  margin: 0 0 0.15rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.listing-control-bar--unified {
  min-height: 2.75rem;
}
.feed-segment {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 calc(100% - 1.25rem), transparent);
}
.feed-segment::-webkit-scrollbar {
  display: none;
}
.feed-segment-btn {
  flex-shrink: 0;
  padding: 0.48rem 0.62rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.feed-segment-btn:hover:not(.is-active) {
  color: #334155;
}
.feed-segment-btn.is-active {
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 0 var(--violet);
}
.feed-segment-btn:active {
  transform: scale(0.98);
}
@media (min-width: 768px) {
  .listing-control-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.5rem 0 0.75rem;
  }
  .feed-segment {
    gap: 0.2rem;
    mask-image: none;
  }
  .feed-segment-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
  }
  .hub-dynamic-action-btn {
    width: auto;
  }
}
@media (max-width: 767px) {
  .listing-control-bar {
    top: calc(3.85rem + var(--safe-top));
  }
  .hub-dynamic-action-btn {
    width: 100%;
  }
}
.hub-dynamic-action-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 246, 0.35);
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.12), rgba(20, 184, 166, 0.08));
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hub-dynamic-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.18);
  border-color: rgba(109, 93, 246, 0.5);
}
.hub-dynamic-action-btn--group {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(109, 93, 246, 0.1));
}

.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: 55;
  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;
}

.dark .nav-cta-group {
  background:
    linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)) padding-box,
    linear-gradient(135deg, #14b8a6, #6d5df6, #f59e0b) border-box;
  color: #f8fafc;
}
.dark .feed-segment-btn {
  color: #94a3b8;
}
.dark .feed-segment-btn:hover:not(.is-active) {
  color: #cbd5e1;
}
.dark .feed-segment-btn.is-active {
  color: #f8fafc;
  box-shadow: inset 0 -2px 0 0 #a78bfa;
}
.dark .listing-control-bar {
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dark .feed-mode-switcher {
  background: color-mix(in srgb, var(--field-bg) 88%, transparent);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), var(--glass-shadow-inset);
}
.dark .feed-mode-tab {
  color: var(--text-subtle);
}
.dark .feed-mode-tab:hover {
  color: var(--text-muted);
}
.dark .feed-mode-tab.is-active {
  background: color-mix(in srgb, var(--input-bg) 95%, transparent);
  color: #c4b5fd;
  box-shadow:
    0 4px 16px rgba(109, 93, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ─── Admin superpowers & promo ─── */
.admin-panel-view--superpowers {
  display: grid;
  gap: 1.25rem;
  padding: 0.25rem 0 0.5rem;
}
.admin-superpowers-section {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.65);
}
.admin-superpowers-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.admin-superpowers-sub {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}
.admin-auto-approve-section {
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.06), rgba(248, 250, 252, 0.9));
  border-color: rgba(108, 71, 255, 0.18);
}
.admin-auto-approve-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.admin-auto-approve-copy .admin-superpowers-sub {
  margin-bottom: 0;
}
.admin-auto-approve-status {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.admin-auto-approve-status.is-on {
  color: var(--violet);
}
.admin-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.admin-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.admin-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 2.75rem;
  height: 1.5rem;
  padding: 0.125rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}
.admin-toggle-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}
.admin-toggle-input:checked + .admin-toggle-track {
  background: var(--violet);
}
.admin-toggle-input:checked + .admin-toggle-track .admin-toggle-thumb {
  transform: translateX(1.25rem);
}
.admin-toggle-input:focus-visible + .admin-toggle-track {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.dark .admin-auto-approve-section {
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.12), rgba(22, 27, 38, 0.9));
  border-color: rgba(108, 71, 255, 0.28);
}
.dark .admin-toggle-track {
  background: rgba(255, 255, 255, 0.15);
}
.admin-promo-form,
.admin-ban-form,
.admin-broadcast-form {
  display: grid;
  gap: 0.65rem;
}
.admin-promo-list,
.admin-ban-list,
.admin-broadcast-history {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.admin-promo-row,
.admin-ban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.admin-promo-code {
  font-weight: 800;
  color: #7c3aed;
}

.admin-broadcast-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.admin-broadcast-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}
.admin-broadcast-meta {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}

.admin-pending-suspicious-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.15rem 0 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 800;
}
.admin-pending-card--suspicious {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.06);
}

.global-broadcast-banner {
  margin: 0 0 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 93, 246, 0.22);
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.1), rgba(59, 130, 246, 0.08));
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.08);
}
.global-broadcast-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
}
.global-broadcast-icon {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1.2;
}
.global-broadcast-message {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  color: #312e81;
}
.global-broadcast-dismiss {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4338ca;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.global-broadcast-dismiss:hover {
  background: #fff;
  transform: scale(1.04);
}
.admin-promo-meta {
  font-size: 0.72rem;
  color: #64748b;
}
.admin-superpowers-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.admin-ban-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-ban-btn--ban {
  background: #fff1f2;
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.25);
}
.admin-ban-btn--ban:hover {
  background: #ffe4e6;
}
.admin-ban-btn--unban {
  background: #ecfdf5;
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
.admin-ban-btn--block {
  width: 100%;
}
.admin-pending-actions .admin-ban-btn {
  margin-left: auto;
}
.wallet-boost-credits-wrap {
  margin: 0.85rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.85), rgba(219, 234, 254, 0.65));
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.wallet-boost-credits-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wallet-boost-credits-value {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #5b21b6;
}
.wallet-promo-form {
  margin-bottom: 0.85rem;
}
.wallet-promo-row {
  display: flex;
  gap: 0.45rem;
}
.wallet-promo-row input {
  flex: 1;
  min-width: 0;
}
.wallet-promo-apply-btn {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  background: #7c3aed;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.wallet-promo-apply-btn:hover {
  background: #6d28d9;
}
.dark .admin-superpowers-section {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .admin-promo-row,
.dark .admin-ban-row,
.dark .admin-broadcast-row {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .admin-broadcast-text {
  color: #e2e8f0;
}
.dark .global-broadcast-banner {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(37, 99, 235, 0.12));
  box-shadow: none;
}
.dark .global-broadcast-message {
  color: #c7d2fe;
}
.dark .global-broadcast-dismiss {
  background: rgba(15, 23, 42, 0.72);
  color: #c7d2fe;
}
.dark .admin-pending-suspicious-badge {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}
.dark .wallet-boost-credits-wrap {
  background: rgba(88, 28, 135, 0.22);
  border-color: rgba(139, 92, 246, 0.35);
}
.dark .hub-dynamic-action-btn {
  color: #f8fafc;
  border-color: rgba(109, 93, 246, 0.45);
}
.dark .detail-gallery-hero {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.dark .detail-gallery-cell--empty {
  border-color: rgba(71, 85, 105, 0.55);
  color: #64748b;
}
.dark .group-cell {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .group-cell-title {
  color: #f8fafc;
}
.dark .group-cell-desc {
  color: #94a3b8;
}
.dark .group-cell-budget {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.65);
  color: #e2e8f0;
}
.dark .group-cell-uni {
  background: rgba(109, 93, 246, 0.18);
  color: #c4b5fd;
}
.dark .group-detail-chat,
.dark .group-detail-member {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .group-detail-chat-msg {
  color: #94a3b8;
}
.dark .group-avatar {
  border-color: rgba(15, 23, 42, 0.95);
  background: linear-gradient(145deg, #1e293b, #334155);
}

@media (prefers-reduced-motion: reduce) {
  .group-cell:hover {
    transform: none;
  }
  .group-avatar--open {
    animation: none;
  }
}

/* Main application shell — no welcome overlay */
body.site-body {
  min-height: 100dvh;
}

#loginModal:not(.hidden),
#signupModal:not(.hidden) {
  z-index: 10001;
}

/* ── Roommate gender filter chip group ────────────────────────────── */
.filter-gender-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.3rem 0;
  margin-top: 0.35rem;
}
.filter-gender-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.filter-chip--gender { border-radius: 999px; }
.filter-chip--gender:has(input:checked) {
  background: rgba(109, 93, 246, 0.12);
  border-color: var(--violet);
  color: var(--violet);
}

/* ── Metro line on listing cards ───────────────────────────────────── */
.card-metro-line {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

/* ── 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;
  }
}

@media (max-width: 639px) {
  .modal-root.is-open#reportModal .report-modal-panel,
  #reportModal.is-open .report-modal-panel {
    transform: translateY(0);
  }
}

.report-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.report-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.report-modal-badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

.report-modal-head-copy {
  min-width: 0;
}

.report-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.report-modal-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.report-modal-listing {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 93, 246, 0.18);
  background: rgba(109, 93, 246, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.report-modal-listing.hidden {
  display: none;
}

.report-listing-type {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.report-listing-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.report-listing-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.report-form {
  display: grid;
  gap: 1rem;
}

.report-reason-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.report-reason-legend {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.report-reason-list {
  display: grid;
  gap: 0.45rem;
}

.report-reason-option {
  display: block;
  cursor: pointer;
}

.report-reason-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-reason-option-copy {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: var(--field-bg-compact);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.report-reason-option-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.report-reason-option:hover .report-reason-option-copy {
  border-color: rgba(109, 93, 246, 0.28);
}

.report-reason-option input:checked + .report-reason-option-copy {
  border-color: rgba(109, 93, 246, 0.45);
  background: rgba(237, 233, 254, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.1);
}

.report-reason-option input:focus-visible + .report-reason-option-copy {
  outline: 2px solid rgba(109, 93, 246, 0.45);
  outline-offset: 2px;
}

.report-note-field {
  display: grid;
  gap: 0.4rem;
}

.report-note-label {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.report-note-optional {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.report-note-field textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: var(--field-bg-compact);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.report-note-counter {
  justify-self: end;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.report-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.55rem;
}

.report-cancel-btn,
.report-submit-btn {
  min-height: 2.75rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.report-cancel-btn {
  border: 1px solid var(--line);
  background: var(--field-bg-compact);
  color: var(--text-muted);
}

.report-cancel-btn:hover {
  color: var(--ink);
  border-color: rgba(109, 93, 246, 0.25);
}

.report-submit-btn {
  border: 1px solid rgba(109, 93, 246, 0.35);
  background: linear-gradient(135deg, var(--violet), #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 93, 246, 0.24);
}

.report-submit-btn:hover {
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.32);
}

.report-submit-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.report-submit-btn--solo {
  width: 100%;
  margin-top: 0.25rem;
}

.report-success-panel {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: auto;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  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);
}

.report-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #16a34a;
}

.report-success-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.report-success-title {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.report-success-sub {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── AI SMM preview modal ── */
.smm-preview-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(92vh, 44rem);
  margin: auto;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: calc(var(--radius) + 0.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--glass-bg) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) 92%, transparent);
  backdrop-filter: blur(calc(var(--glass-blur) + 8px));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 8px));
  box-shadow:
    var(--glass-shadow),
    0 28px 64px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.smm-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-right: 1.75rem;
}

.smm-preview-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.18), rgba(236, 72, 153, 0.14));
  border: 1px solid rgba(109, 93, 246, 0.22);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.smm-preview-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}

.smm-preview-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.smm-preview-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-subtle);
}

.smm-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.smm-preview-meta[hidden] {
  display: none !important;
}

.smm-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--field-bg) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.smm-preview-sections {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 0.65rem;
  padding-right: 0.15rem;
}

.smm-script-block {
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: var(--glass-shadow-inset);
}

.smm-script-block--full {
  background: color-mix(in srgb, var(--field-bg) 72%, transparent);
}

.smm-script-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.smm-script-block-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.smm-script-block-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  white-space: pre-wrap;
}

.smm-script-pre {
  margin: 0;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.smm-script-pre--caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.smm-copy-btn {
  flex-shrink: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-subtle);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

.smm-copy-btn:hover {
  border-color: rgba(109, 93, 246, 0.45);
  color: var(--violet);
}

.smm-copy-btn.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
  color: #16a34a;
  background: rgba(34, 197, 94, 0.08);
}

.smm-copy-btn--primary {
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.14), rgba(236, 72, 153, 0.1));
  border-color: rgba(109, 93, 246, 0.35);
  color: var(--violet);
}

.smm-preview-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.smm-preview-close-btn {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.95rem;
  border: none;
  background: linear-gradient(135deg, #6d5df6, #9333ea);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.28);
}

.dark .smm-preview-panel {
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.dark .smm-script-block {
  background: rgba(22, 27, 38, 0.72);
}

@media (min-width: 640px) {
  .smm-preview-panel {
    padding: 1.5rem 1.35rem 1.25rem;
  }
}

/* ── Supabase listing search loading ── */
.listing-grid-wrap--loading {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

/* ── Admin student verification queue ── */
.admin-verification-count {
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.admin-verification-head-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.admin-verification-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-verification-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.admin-verification-refresh {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--violet);
  cursor: pointer;
}

.admin-verification-list {
  display: grid;
  gap: 0.75rem;
}

.admin-verification-card {
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 94%, transparent);
  backdrop-filter: blur(calc(var(--glass-blur) + 2px));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 2px));
  box-shadow: var(--glass-shadow);
}

.admin-verification-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.admin-verification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.admin-verification-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-verification-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.admin-verification-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.admin-verification-doc {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--field-bg) 80%, transparent);
  color: var(--violet);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-verification-doc-img {
  width: 100%;
  max-height: 12rem;
  object-fit: contain;
  border-radius: 0.65rem;
  background: #fff;
}

.admin-verification-bio {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.admin-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-verification-btn {
  flex: 1;
  min-width: 7rem;
  min-height: 2.5rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-verification-btn--approve {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.admin-verification-btn--reject {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  color: #dc2626;
}

.dark .admin-verification-card {
  background: rgba(22, 27, 38, 0.82);
}

.dark .admin-verification-doc-img {
  background: rgba(15, 23, 42, 0.6);
}

.dark .report-modal-listing {
  background: rgba(88, 28, 135, 0.14);
  border-color: rgba(109, 93, 246, 0.28);
}

.dark .report-reason-option-copy {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(51, 65, 85, 0.65);
}

.dark .report-reason-option input:checked + .report-reason-option-copy {
  background: rgba(88, 28, 135, 0.22);
  border-color: rgba(167, 139, 250, 0.45);
}

.dark .report-note-field textarea,
.dark .report-cancel-btn {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(51, 65, 85, 0.65);
  color: var(--ink);
}

.dark .report-modal-badge {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

.my-listings-grid.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 1rem;
  padding-top: 0.5rem;
}
.my-listings-grid .listing-card {
  height: auto;
}

.dark .user-panel-tabs {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .user-panel-tab.is-active {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.dark .user-applications-count {
  background: rgba(109, 93, 246, 0.22);
  color: #c4b5fd;
}
.dark .user-applications-table-wrap {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(51, 65, 85, 0.65);
}
.dark .user-applications-table thead {
  background: rgba(15, 23, 42, 0.92);
}
.dark .user-applications-table td {
  border-bottom-color: rgba(51, 65, 85, 0.55);
}
.dark .application-status-badge--pending {
  background: rgba(109, 93, 246, 0.18);
  color: #c4b5fd;
  border-color: rgba(109, 93, 246, 0.32);
}
.dark .application-status-badge--reviewing {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.32);
}
.dark .application-status-badge--resolved {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
}

/* ── 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; }
  .user-applications-table th,
  .user-applications-table td { padding: 0.55rem 0.45rem; }
  .user-applications-table th:nth-child(2),
  .user-applications-table td:nth-child(2) { display: none; }
}

/* ── Listing card structural safety — see canonical block at end of file ── */

/* ═══════════════════════════════════════════════════════════════════════
   Hub location bars — unified glass controls (post + seek forms)
   ═══════════════════════════════════════════════════════════════════════ */

.creative-hub-form-panel .hub-loc-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--field-bg) 70%, transparent);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.creative-hub-form-panel .hub-loc-bar:has(.vplus-dropdown-root.is-open, .vplus-dropdown.is-open),
.creative-hub-form-panel .hub-form-row:has(.vplus-dropdown-root.is-open, .vplus-dropdown.is-open) {
  z-index: 600;
}

.creative-hub-form-panel .hub-loc-field {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.creative-hub-form-panel .hub-loc-field:has(.vplus-dropdown-root.is-open, .vplus-dropdown.is-open) {
  z-index: 2;
}

@media (min-width: 640px) {
  .creative-hub-form-panel .hub-loc-bar.hub-form-cascade,
  .creative-hub-form-panel .hub-loc-bar.hub-form-cascade--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.creative-hub-form-panel .hub-form-select-group .hub-loc-field.form-group,
.creative-hub-form-panel .hub-form-select-group .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
}

.creative-hub-form-panel .hub-loc-field.form-group.is-disabled,
.creative-hub-form-panel .hub-form-select-group .form-group.is-disabled {
  opacity: 0.68;
}

.creative-hub-form-panel .hub-loc-label,
.creative-hub-form-panel .hub-form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  line-height: 1.3;
}

.creative-hub-form-panel .hub-loc-control,
.creative-hub-form-panel .hub-form .hub-loc-control,
.creative-hub-form-panel .form-group input[type="text"],
.creative-hub-form-panel .form-group input[type="number"],
.creative-hub-form-panel .form-group input[type="search"],
.creative-hub-form-panel .form-group select,
.creative-hub-form-panel .form-group textarea,
.creative-hub-form-panel .hub-form .uni-search-input,
.creative-hub-form-panel .hub-form .housemate-row input,
.creative-hub-form-panel .vplus-dropdown .vplus-dropdown-trigger,
.creative-hub-form-panel .vplus-dropdown-root .vplus-dropdown-trigger {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--input-bg) 78%, transparent);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow-inset);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.creative-hub-form-panel .hub-form select.form-control,
.creative-hub-form-panel .hub-form select.hub-form-select,
.creative-hub-form-panel .form-group select {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: color-mix(in srgb, var(--input-bg) 78%, transparent);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.creative-hub-form-panel .hub-form .uni-search-input {
  padding-left: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.8rem center;
  background-size: 1rem;
}

.creative-hub-form-panel .hub-loc-control:focus,
.creative-hub-form-panel .form-group input:focus,
.creative-hub-form-panel .form-group select:focus,
.creative-hub-form-panel .form-group textarea:focus,
.creative-hub-form-panel .hub-form .uni-search-input:focus,
.creative-hub-form-panel .hub-form .housemate-row input:focus,
.creative-hub-form-panel .vplus-dropdown-trigger:focus,
.creative-hub-form-panel .vplus-dropdown-trigger.is-open,
.creative-hub-form-panel .vplus-dropdown-root.is-open .vplus-dropdown-trigger,
.creative-hub-form-panel .vplus-dropdown-root:focus-within .vplus-dropdown-trigger {
  border-color: rgba(109, 93, 246, 0.45);
  box-shadow:
    0 0 0 3px rgba(109, 93, 246, 0.12),
    0 0 14px rgba(109, 93, 246, 0.1),
    var(--glass-shadow-inset);
}

.creative-hub-form-panel .form-group input::placeholder,
.creative-hub-form-panel .form-group textarea::placeholder,
.creative-hub-form-panel .hub-form .uni-search-input::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.creative-hub-form-panel .hub-loc-control:disabled,
.creative-hub-form-panel .form-group select:disabled,
.creative-hub-form-panel .form-group.is-disabled select,
.creative-hub-form-panel .form-group input:disabled,
.creative-hub-form-panel .form-group textarea:disabled,
.creative-hub-form-panel .hub-form .uni-search-input:disabled,
.creative-hub-form-panel .vplus-dropdown-trigger:disabled,
.creative-hub-form-panel .vplus-dropdown.disabled .vplus-dropdown-trigger,
.creative-hub-form-panel .post-city-group.is-disabled .vplus-dropdown-trigger {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-muted);
  box-shadow: none;
}

.creative-hub-form-panel .vplus-dropdown,
.creative-hub-form-panel .vplus-dropdown-root {
  position: relative;
  width: 100%;
  min-width: 0;
}

.creative-hub-form-panel .vplus-dropdown .vplus-dropdown-trigger,
.creative-hub-form-panel .vplus-dropdown-root .vplus-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
  cursor: pointer;
}

.creative-hub-form-panel .vplus-selected-text,
.creative-hub-form-panel .vplus-dropdown-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-hub-form-panel .vplus-selected-text.is-placeholder,
.creative-hub-form-panel .vplus-dropdown-label.is-placeholder {
  color: var(--text-subtle);
  font-weight: 600;
}

.creative-hub-form-panel .vplus-arrow,
.creative-hub-form-panel .vplus-dropdown-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform 0.22s ease, color 0.22s ease;
}

.creative-hub-form-panel .vplus-dropdown-trigger:hover:not([aria-disabled="true"]),
.creative-hub-form-panel .vplus-dropdown:not(.disabled) .vplus-dropdown-trigger:hover {
  border-color: rgba(109, 93, 246, 0.4);
}

.creative-hub-form-panel .vplus-dropdown-trigger.is-open .vplus-arrow,
.creative-hub-form-panel .vplus-dropdown.is-open .vplus-arrow,
.creative-hub-form-panel .vplus-dropdown-root.is-open .vplus-arrow,
.creative-hub-form-panel .vplus-dropdown-root.is-open .vplus-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--violet);
}

.creative-hub-form-panel .post-city-group.is-disabled .vplus-dropdown-trigger {
  pointer-events: none;
}

.creative-hub-form-panel .vplus-dropdown .vplus-dropdown-menu,
.creative-hub-form-panel .vplus-dropdown-root .vplus-dropdown-menu,
.creative-hub-form-panel #countryDropdownMenu,
.creative-hub-form-panel #cityItemsContainer {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background-color: var(--surface);
  background: var(--surface);
  isolation: isolate;
  backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.creative-hub-form-panel .vplus-dropdown-menu .dropdown-item {
  margin: 0.1rem 0;
}

.creative-hub-form-panel .vplus-dropdown-menu.hidden,
.creative-hub-form-panel .vplus-dropdown-menu[hidden] {
  display: none !important;
}

.creative-hub-form-panel .vplus-dropdown-item {
  border-radius: 0.65rem;
  margin: 0.1rem 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.creative-hub-form-panel .vplus-dropdown-item:hover,
.creative-hub-form-panel .vplus-dropdown-item:focus-visible {
  background: rgba(109, 93, 246, 0.12);
  color: var(--violet);
}

.creative-hub-form-panel .vplus-dropdown-item.is-selected {
  background: rgba(109, 93, 246, 0.16);
  color: var(--violet);
  font-weight: 700;
}

.creative-hub-form-panel select option,
.creative-hub-form-panel .dropdown-menu-list {
  background-color: var(--surface);
  color: var(--ink);
}

.dark .creative-hub-form-panel .hub-loc-bar {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.dark .creative-hub-form-panel .vplus-dropdown .vplus-dropdown-menu,
.dark .creative-hub-form-panel .vplus-dropdown-root .vplus-dropdown-menu,
.dark .creative-hub-form-panel #countryDropdownMenu,
.dark .creative-hub-form-panel #cityItemsContainer {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.dark .creative-hub-form-panel .vplus-dropdown-item:hover,
.dark .creative-hub-form-panel .vplus-dropdown-item:focus-visible {
  background: rgba(109, 93, 246, 0.22);
  color: #ddd6fe;
}

.dark .creative-hub-form-panel .vplus-dropdown-item.is-selected {
  background: rgba(109, 93, 246, 0.2);
  color: #c4b5fd;
}

@media (max-width: 639px) {
  .creative-hub-form-panel .hub-form-row--3 {
    grid-template-columns: 1fr;
  }
  .creative-hub-form-panel .hub-loc-field--metro {
    grid-column: 1 / -1;
  }
}

.creative-hub-form-panel .hub-form .hub-form-field,
.creative-hub-form-panel .hub-form .auth-field.hub-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.creative-hub-form-panel .hub-form .auth-field input,
.creative-hub-form-panel .hub-form .auth-field textarea,
.creative-hub-form-panel .hub-form .auth-field select,
.creative-hub-form-panel .hub-form .hub-form-field .hub-loc-control {
  width: 100%;
  min-width: 0;
}

.creative-hub-form-panel .hub-loc-control--textarea {
  min-height: 5.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  resize: vertical;
  line-height: 1.45;
}

.creative-hub-form-panel .vplus-dropdown-item {
  border-radius: 0.65rem;
  margin: 0.1rem 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.creative-hub-form-panel .vplus-dropdown-item:hover,
.creative-hub-form-panel .vplus-dropdown-item:focus-visible {
  background: rgba(109, 93, 246, 0.12);
  color: var(--violet);
}

.creative-hub-form-panel .vplus-dropdown-item.is-selected {
  background: rgba(109, 93, 246, 0.16);
  color: var(--violet);
  font-weight: 700;
}

.creative-hub-form-panel.glass-modal {
  background: color-mix(in srgb, var(--glass-bg) 94%, transparent);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px));
  border: 1px solid color-mix(in srgb, var(--glass-border) 90%, transparent);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════
   Listing cards — canonical structural parity (room + roommate + market)
   ═══════════════════════════════════════════════════════════════════════ */
.listing-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  isolation: isolate !important;
  will-change: auto !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

.listing-card .card-media {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  min-height: 0;
}

.listing-card .card-body,
.listing-card .info-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

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

.listing-card .badge-container,
.listing-card .tags-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0;
}

.listing-card .card-tags.badge-container:empty,
.listing-card .badge-container:empty,
.listing-card .card-trait-badges:empty {
  display: none !important;
}

.listing-card .title,
.listing-card .card-title,
.listing-card .description,
.listing-card .description-text,
.listing-card .card-desc {
  white-space: normal !important;
  word-break: break-word !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  max-width: 100%;
}

.listing-card .card-host-line,
.listing-card .listing-posted-time {
  margin: 0 !important;
  max-width: 100%;
}

.listing-card .price-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card .card-footer-actions,
.listing-card .card-actions,
.listing-card .card-owned-actions {
  position: relative !important;
  z-index: 4 !important;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.listing-card .card-media .card-fav-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  flex-shrink: 0;
}

.listing-card .card-report-btn,
.listing-card .marketplace-chat-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.dark .listing-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.dark .listing-card:hover,
.dark .listing-card:focus-visible {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  border-color: rgba(109, 93, 246, 0.28);
}

/* ── Signup gender pills (glass auth form) ─────────────────────────── */
.auth-field--gender {
  gap: 0.55rem;
}

.auth-field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.auth-required-mark {
  color: #8b5cf6;
  font-weight: 900;
  line-height: 1;
}

.auth-gender-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.auth-gender-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 5.5rem;
  padding: 1rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: center;
  width: 100%;
  min-width: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.auth-gender-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-gender-pill-face {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(109, 93, 246, 0.14), rgba(20, 184, 166, 0.1));
  color: #6d5df6;
  border: 1px solid rgba(109, 93, 246, 0.18);
}

.auth-gender-pill-face--female {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.12), rgba(109, 93, 246, 0.1));
  color: #db2777;
  border-color: rgba(219, 39, 119, 0.18);
}

.auth-gender-pill-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.auth-gender-pill-label {
  display: block;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
}

.auth-gender-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 93, 246, 0.35);
  box-shadow: 0 8px 22px rgba(109, 93, 246, 0.12);
}

.auth-gender-pill:has(input:checked) {
  border-color: rgba(109, 93, 246, 0.55);
  background: linear-gradient(160deg, rgba(109, 93, 246, 0.12), rgba(255, 255, 255, 0.92));
  box-shadow:
    0 10px 26px rgba(109, 93, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-gender-pill:has(input:checked) .auth-gender-pill-label {
  color: #5b4ae0;
}

.auth-field--gender.is-invalid .auth-gender-group {
  outline: 2px solid rgba(239, 68, 68, 0.45);
  outline-offset: 3px;
  border-radius: 1rem;
}

.auth-gender-error {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
}

.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);
}

.dark .auth-gender-pill {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark .auth-gender-pill-label {
  color: #e2e8f0;
}

.dark .auth-gender-pill:has(input:checked) {
  background: linear-gradient(160deg, rgba(109, 93, 246, 0.22), rgba(15, 23, 42, 0.92));
}

.dark .auth-gender-pill:has(input:checked) .auth-gender-pill-label {
  color: #c4b5fd;
}

/* ═══════════════════════════════════════════════════════════════════════
   Auth nav — guaranteed click targets (above hero/filter stacking)
   ═══════════════════════════════════════════════════════════════════════ */

.main-navigation-header,
.site-header.glass-header {
  z-index: 120 !important;
  pointer-events: auto !important;
}

.nav-actions,
#navGuestAuth,
#navLoginBtn,
#navRegisterBtn,
.drawer-link--register,
.drawer-link--login,
.auth-switch-link[data-open-signup],
.auth-switch-link[data-open-login] {
  position: relative;
  z-index: 121;
  pointer-events: auto !important;
}

#heroSection:has(.search-capsule-wrap.is-dropdown-active),
#heroSection:has(#locationFilterDropdown:not([hidden])) {
  z-index: 30;
}

#signupModal .auth-panel,
#loginModal .auth-panel {
  pointer-events: auto;
}

@media (min-width: 768px) {
  :root {
    --site-header-bar-height: 3.75rem;
  }

  .site-nav {
    padding: 0.5rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-actions {
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  #heroSection {
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
  }

  .hero-panel--minimal {
    padding-top: clamp(1rem, 2vw, 1.5rem);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile layout system (<768px) — header, hero, filters, listings, FABs
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  :root {
    --site-header-bar-height: 3.25rem;
  }

  .site-nav {
    padding: 0.4rem 0.65rem;
    gap: 0.45rem;
  }

  /* ── Header compaction ── */
  .site-nav-spacer {
    display: none;
  }

  .brand-lockup {
    gap: 0.45rem;
    min-width: 0;
  }

  .logo-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-auth-register {
    min-width: 0;
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }

  .menu-btn {
    width: 2.25rem;
    height: 2.25rem;
    gap: 4px;
    border-radius: 0.65rem;
    flex-shrink: 0;
  }

  .menu-btn span {
    width: 0.95rem;
  }

  .profile-menu #profileMenuBtn,
  .profile-menu .profile-trigger--compact {
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.2rem;
    max-width: none;
    border-radius: 0.65rem;
  }

  .profile-trigger--compact .profile-name,
  .profile-trigger--compact .profile-chevron {
    display: none;
  }

  /* ── Hero typography & spacing ── */
  .hero-panel--minimal {
    padding-top: 0.85rem;
  }

  .hero-header-wrap {
    margin-bottom: 1.35rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    line-height: 1.14;
  }

  .hero-sub {
    margin-top: 0.9rem;
    font-size: clamp(0.875rem, 3.8vw, 0.95rem);
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-cta-row {
    margin-top: 1rem;
    margin-bottom: 0.85rem;
    gap: 0.65rem;
  }

  .hero-cta {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    padding-inline: 0.85rem;
  }

  .hero-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 1rem;
    max-width: 100%;
  }

  .hero-pill {
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
    text-align: center;
  }

  .hero-pill--ghost {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
  }

  /* ── Search capsule stack ── */
  .search-capsule-wrap {
    margin-top: 0.15rem;
  }

  .search-capsule {
    border-radius: 1.15rem !important;
    gap: 0.35rem !important;
  }

  .search-capsule-segment,
  .search-capsule-segment--campus {
    border-radius: 0.85rem !important;
  }

  .search-capsule-divider {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .search-capsule-actions {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0.15rem 0.1rem;
  }

  .search-capsule-submit {
    min-width: 2.85rem;
    min-height: 2.85rem;
    flex-shrink: 0;
  }

  .search-capsule-dropdown,
  .harada-panel-dropdown {
    max-height: min(72vh, 30rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .harada-country-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
    margin-right: -0.25rem;
    padding-right: 0.25rem;
  }

  .harada-country-pills::-webkit-scrollbar {
    display: none;
  }

  .harada-country-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.38rem 0.75rem;
  }

  .capsule-dropdown-toggle {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  /* ── Filter panel chips ── */
  .filter-advanced-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.85rem;
  }

  .filter-chip {
    justify-content: center;
    padding: 0.48rem 0.55rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .filter-gender-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .filter-gender-label {
    margin-bottom: 0.1rem;
  }

  .filter-gender-group .filter-chip--gender {
    justify-content: center;
  }

  .filter-metro-row.is-visible {
    max-height: 12rem;
  }

  .filter-reset-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }

  /* ── Default dashboard ── */
  .default-dashboard-view {
    padding-top: 0.5rem;
  }

  .default-dashboard-hero {
    padding: 0.95rem 1rem;
    border-radius: 1.15rem;
  }

  .default-dashboard-title {
    font-size: 1.02rem;
  }

  .default-dashboard-copy {
    font-size: 0.68rem;
  }

  .default-dashboard-density {
    padding: 0.85rem 0.95rem;
  }

  .default-dashboard-density-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.45rem;
  }

  .default-dashboard-tips {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .default-dashboard-tip {
    padding: 0.65rem 0.75rem;
  }

  /* ── Feed mode tabs ── */
  .feed-mode-switcher {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .feed-mode-switcher::-webkit-scrollbar {
    display: none;
  }

  .feed-mode-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.48rem 0.8rem;
  }

  /* ── Section spacing ── */
  .how-it-works-grid {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    gap: 1rem;
  }

  .how-step-title {
    font-size: 1rem;
  }

  .how-step-desc {
    font-size: 0.85rem;
  }

  .listings-section {
    padding-bottom: 5.5rem;
  }

  .section-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .utilities-section .section-title {
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  }

  /* ── FAB stack (avoid overlap) ── */
  .post-ad-fab {
    right: 0.75rem;
    bottom: calc(5.15rem + var(--safe-bottom, 0px));
    padding: 0.8rem;
  }

  .chat-fab {
    right: 0.75rem;
    bottom: calc(4.75rem + var(--safe-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    z-index: 115;
  }

  .chat-fab-icon {
    font-size: 1.35rem;
    line-height: 1;
  }

  /* ── Width containment & component scale ── */
  .page-reveal-root,
  .listing-feed-pipeline,
  .filter-panel-body,
  .filter-reset-wrap,
  .hero-panel--minimal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-deco {
    height: 9.5rem;
    overflow: hidden;
    inset: -0.5rem -0.35rem auto -0.35rem;
  }

  .feed-mode-switcher {
    max-width: 100%;
    margin-bottom: 1.25rem;
  }

  .utility-card {
    padding: 1rem;
  }

  .hub-category-icon {
    font-size: 1.35rem;
  }

  .hub-category-card {
    padding: 1rem 0.95rem;
  }

  .creative-hub-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .creative-hub-head {
    margin-bottom: 1.25rem;
    padding-inline: 0.25rem;
  }

  .campus-wall-compose-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .campus-wall-submit {
    width: 100%;
  }

  .filter-metro-row.is-visible {
    flex-direction: column;
    align-items: stretch;
  }

  .default-dashboard-tip-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .default-dashboard-tip-icon svg {
    width: 0.8rem;
    height: 0.8rem;
  }

  .post-ad-fab-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .panel-empty-state-icon {
    font-size: 1.5rem;
  }

  .rent-calc-expense-grid {
    grid-template-columns: 1fr;
  }

  .creation-guide-zone {
    margin-top: 2rem;
  }

  .filter-advanced-chips.filter-advanced-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .feed-segment-btn {
    padding: 0.42rem 0.5rem;
    font-size: 0.74rem;
  }

  .filter-advanced-chips {
    grid-template-columns: 1fr;
  }

  .hero-pills {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile drawer — hyper-minimal (iOS / Material 3) ─── */
.mobile-drawer--minimal .lang-switcher--segmented {
  display: flex;
  width: 100%;
  padding: 0;
  gap: 0;
  margin-bottom: 0.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.35rem 0.6rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
  position: relative;
}

.mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn:hover {
  color: #64748b;
}

.mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn.is-active {
  background: transparent;
  box-shadow: none;
  color: #0f172a;
}

.mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1.35rem;
  height: 2px;
  border-radius: 1px;
  background: #6d5df6;
}

.mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn:active {
  transform: none;
  opacity: 0.65;
}

.drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  margin-bottom: 0.35rem;
}

.drawer-theme-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.ios-switch {
  position: relative;
  flex-shrink: 0;
  width: 51px;
  height: 31px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ios-switch:focus-visible {
  outline: 2px solid rgba(109, 93, 246, 0.45);
  outline-offset: 3px;
  border-radius: 999px;
}

.ios-switch-track {
  display: block;
  width: 51px;
  height: 31px;
  border-radius: 31px;
  background: #e2e8f0;
  transition: background 0.22s ease;
  position: relative;
}

.ios-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-switch[aria-pressed="true"] .ios-switch-track {
  background: #6d5df6;
}

.ios-switch[aria-pressed="true"] .ios-switch-thumb {
  transform: translateX(20px);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.15rem 0 0;
}

.drawer-nav-sublist {
  display: flex;
  flex-direction: column;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1.05rem 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav-sublist .drawer-nav-item:last-child {
  border-bottom: none;
}

.drawer-nav-list > .drawer-nav-item:last-of-type {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.drawer-nav-item:active {
  opacity: 0.55;
}

.drawer-nav-item--danger {
  color: #dc2626;
}

.drawer-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #6d5df6;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.drawer-user-card--minimal {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.1rem 0 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  box-shadow: none;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-btn:active {
  opacity: 0.82;
}

.drawer-btn--primary,
.drawer-btn--solid {
  background: #6d5df6;
  color: #fff;
}

.drawer-btn--ghost {
  background: transparent;
  color: #6d5df6;
  border: 1px solid rgba(109, 93, 246, 0.38);
}

.drawer-auth-stack {
  display: grid;
  gap: 0.5rem;
}

.dark .mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn {
  color: #64748b;
}

.dark .mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn:hover {
  color: #94a3b8;
}

.dark .mobile-drawer--minimal .lang-switcher--segmented .lang-switcher-btn.is-active {
  color: #f8fafc;
}

.dark .drawer-theme-label {
  color: #f1f5f9;
}

.dark .ios-switch-track {
  background: #334155;
}

.dark .ios-switch[aria-pressed="true"] .ios-switch-track {
  background: #7c6ef7;
}

.dark .drawer-nav-item {
  color: #f1f5f9;
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

.dark .drawer-nav-list > .drawer-nav-item:last-of-type {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

.dark .drawer-user-card--minimal {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.dark .drawer-nav-item--danger {
  color: #f87171;
}

.dark .drawer-btn--primary,
.dark .drawer-btn--solid {
  background: #7c6ef7;
  color: #fff;
}

.dark .drawer-btn--ghost {
  color: #a89bfa;
  border-color: rgba(168, 155, 250, 0.35);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════
   DORMY REDESIGN v2 — visual identity, layout, micro-interactions
   ═══════════════════════════════════════════════════════════════════════ */

h1, h2, h3, .section-title, .hero-title, .auth-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}
label span, .search-capsule-micro, .auth-field > span:first-child {
  font-weight: 600;
  font-size: var(--font-label);
}

/* Focus rings */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* Press + ripple */
.btn-press,
.auth-submit,
.hero-cta,
.drawer-btn,
.search-capsule-submit,
.hub-dynamic-action-btn,
.filter-chip,
.bottom-tab {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.btn-press:active,
.auth-submit:active,
.hero-cta:active,
.drawer-btn:active,
.search-capsule-submit:active,
.hub-dynamic-action-btn:active,
.filter-chip:active,
.bottom-tab:active {
  transform: scale(0.97);
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: btnRipple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes btnRipple {
  to { transform: scale(4); opacity: 0; }
}

/* Glass header */
.glass-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.dark .glass-header {
  background: rgba(15, 14, 23, 0.72);
}

/* Hero mesh */
.hero-section-mesh {
  position: relative;
}
.hero-section-mesh::before {
  content: "";
  position: absolute;
  inset: 0 -1rem auto;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(108, 71, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(238, 233, 255, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(108, 71, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.dark .hero-section-mesh::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(108, 71, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(108, 71, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(238, 233, 255, 0.04), transparent 60%);
}
.hero-title {
  font-size: var(--font-heading);
  line-height: 1.1;
  text-wrap: balance;
}
.hero-gradient-text {
  background: linear-gradient(135deg, #6c47ff 0%, #9b7dff 50%, #6c47ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  border: 1px solid rgba(108, 71, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet);
}
.dark .hero-live-pill {
  background: rgba(108, 71, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  color: #c4b5fd;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.hero-live-count {
  margin-left: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-input);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.hero-cta--primary {
  background: var(--violet);
  color: #fff;
}
.hero-cta--ghost {
  background: transparent;
  color: var(--violet);
  border: 1px solid rgba(108, 71, 255, 0.35);
}

/* Instant search */
.instant-search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem;
  min-height: 48px;
  border-radius: var(--radius-input);
  background: var(--surface);
  border: 1px solid var(--line);
}
.instant-search-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-subtle);
  flex-shrink: 0;
}
.instant-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
}
.instant-search-input:focus { outline: none; }

/* Quick filter chips */
.filter-quick-chips-wrap {
  overflow: hidden;
}
.filter-quick-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-quick-chips::-webkit-scrollbar { display: none; }
.filter-quick-chip {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filter-quick-chip.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* Budget dual range */
.budget-range-wrap { padding: 0.25rem 0.15rem 0; }
.budget-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.budget-range-track {
  position: relative;
  height: 28px;
}
.budget-range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: var(--violet);
  pointer-events: none;
}
.budget-range-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.budget-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.budget-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--violet);
  box-shadow: 0 2px 8px rgba(108, 71, 255, 0.35);
  pointer-events: auto;
  cursor: grab;
}
.budget-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--violet);
  pointer-events: auto;
  cursor: grab;
}

/* Listing cards v2 */
.listing-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}
html:not(.dark) .listing-card {
  background: #fff;
  border-color: var(--line);
}
.listing-card .card-media {
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.listing-card .card-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: calc(var(--space-unit) * 1.5);
}
.listing-card:hover,
.listing-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108, 71, 255, 0.12);
}
.card-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 14, 23, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.listing-card:hover .card-media-overlay,
.listing-card:focus-within .card-media-overlay {
  opacity: 1;
}
.card-overlay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--violet);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.listing-card:hover .card-media-overlay .card-overlay-btn,
.listing-card:focus-within .card-media-overlay .card-overlay-btn {
  pointer-events: auto;
}
.card-overlay-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.card-overlay-btn.is-saved { color: #ef4444; }
.price-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-input);
  background: rgba(15, 14, 23, 0.82);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}
.card-new-badge {
  left: 0.75rem;
  right: auto;
  background: var(--violet) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  border: 1px solid rgba(108, 71, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.dark .tag {
  background: rgba(108, 71, 255, 0.15);
  color: #e9e4ff;
}
.tag-icon { font-style: normal; line-height: 1; }
.host-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  vertical-align: middle;
}
.host-verified-badge svg {
  width: 0.65rem;
  height: 0.65rem;
}
.card-fav-btn.is-pop {
  animation: favPop 0.34s var(--motion-spring);
}
@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Skeleton loaders */
.listing-card--skeleton {
  pointer-events: none;
  border-color: var(--line);
}
.skeleton-pulse {
  background: linear-gradient(90deg, var(--line) 25%, var(--violet-soft) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease infinite;
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.skeleton-body { padding: 1rem; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.skeleton-line--short { width: 55%; }

/* Toast bottom-right + progress */
.toast {
  left: auto;
  right: calc(1rem + var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom));
  transform: translateX(110%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: min(20rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem 0.65rem;
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  font-weight: 600;
  transition: transform 0.32s var(--motion-ease), opacity 0.32s ease;
}
.toast:not(.hidden) {
  transform: translateX(0);
}
.toast-progress {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.toast-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--violet);
  transform-origin: left;
}
.toast--error {
  border-left: 4px solid #ef4444;
  color: #991b1b;
}
.toast--success {
  border-left: 4px solid #22c55e;
}

/* Modals centered — desktop; auth uses bottom-sheet on mobile (UI-02) */
@media (min-width: 768px) {
  .modal-root.is-open,
  .modal-root:not(.hidden) {
    align-items: center;
    padding: 1rem;
  }

  .auth-panel,
  .glass-modal:not(.detail-sheet):not(.settings-panel):not(.user-inbox-panel) {
    max-width: 560px;
    width: 100%;
    border-radius: var(--radius);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.28s var(--motion-ease), opacity 0.28s ease;
  }

  .modal-root.is-open .auth-panel,
  .modal-root:not(.hidden) .auth-panel,
  .modal-root.is-open .glass-modal:not(.detail-sheet) {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  #loginModal.modal-root,
  #signupModal.modal-root {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  #loginModal .auth-panel,
  #signupModal .auth-panel {
    max-width: none;
    width: 100%;
    max-height: min(92dvh, 780px);
    margin: 0;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #loginModal.is-open .auth-panel,
  #signupModal.is-open .auth-panel {
    transform: translateY(0);
  }

  #loginModal:not(.is-open):not(.hidden) .auth-panel,
  #signupModal:not(.is-open):not(.hidden) .auth-panel {
    transform: translateY(100%);
  }

  #loginModal .auth-panel--premium,
  #signupModal .auth-panel--premium {
    padding-top: 0.65rem;
  }

  #loginModal .auth-panel--premium::before,
  #signupModal .auth-panel--premium::before {
    content: "";
    display: block;
    width: 2.25rem;
    height: 0.25rem;
    margin: 0.15rem auto 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
  }

  #loginModal .sheet-close,
  #signupModal .sheet-close {
    top: calc(0.65rem + var(--safe-top));
  }

  .dark #loginModal .auth-panel--premium::before,
  .dark #signupModal .auth-panel--premium::before {
    background: rgba(255, 255, 255, 0.18);
  }
}

.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Filter panel slide from top */
.filter-panel-body.is-open {
  animation: filterSlideDown 0.32s var(--motion-ease);
}
@keyframes filterSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signup wizard */
.signup-step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}
.signup-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, transform 0.2s;
}
.signup-step-dot.is-active {
  background: var(--violet);
  transform: scale(1.2);
}
.signup-step-panel {
  display: none;
  animation: signupSlideIn 0.28s var(--motion-ease);
}
.signup-step-panel.is-active { display: flex; flex-direction: column; gap: 1rem; }
@keyframes signupSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.signup-step-fields {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.signup-step-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.signup-wizard .auth-field--signup {
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.signup-wizard .auth-field--signup > span:first-child,
.signup-wizard .auth-field--signup .auth-field-label-row {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.signup-wizard .auth-field--signup input {
  width: 100%;
  min-height: 2.85rem;
}

.signup-wizard .auth-field--signup .auth-field-note {
  margin-top: 0.15rem;
}

@media (max-width: 639px) {
  .signup-step-fields-row {
    grid-template-columns: 1fr;
  }
}

.signup-wizard-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
  width: 100%;
}
.signup-wizard-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 700;
  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;
}

/* Empty state */
.panel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 2);
  gap: 0.75rem;
}
.empty-state-illustration {
  width: 10rem;
  height: auto;
  color: var(--violet);
  opacity: 0.85;
}
.empty-state-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.empty-state-cta {
  margin-top: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-input);
  border: none;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Error card */
.error-state-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-input);
  background: rgba(239, 68, 68, 0.06);
}
.error-state-retry {
  margin-top: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-input);
  border: 1px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
}

/* Button spinner */
.btn-with-spinner.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn-with-spinner.is-loading .btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: -0.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bottom tab bar */
.bottom-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0.35rem 0.5rem calc(0.35rem + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--line);
}
.dark .bottom-tab-bar {
  background: rgba(15, 14, 23, 0.92);
}
.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  max-width: 4.5rem;
  padding: 0.35rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
}
.bottom-tab svg {
  width: 1.35rem;
  height: 1.35rem;
}
.bottom-tab.is-active { color: var(--violet); }
.bottom-tab--accent svg {
  padding: 0.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  margin-top: -0.65rem;
  box-shadow: 0 4px 16px rgba(108, 71, 255, 0.4);
}

/* Scroll reveal */
.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; }
}

/* ─── Auth locked + mobile chat redesign ─── */
.auth-locked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.auth-locked-card-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-input);
  border: none;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-root--chat-floating.is-open .chat-shell,
  .modal-root--chat-floating:not(.hidden) .chat-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }
  .chat-top { display: none; }
  .chat-widget-container { height: 100%; }
  .chat-layout {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .chat-threads-panel,
  .chat-feed-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .chat-feed-panel {
    transform: translateX(100%);
    z-index: 2;
  }
  .chat-layout.feed-open .chat-threads-panel { transform: translateX(-100%); }
  .chat-layout.feed-open .chat-feed-panel { transform: translateX(0); }
  .chat-mobile-threads-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 56px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
  }
  .chat-mobile-threads-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
  }
  .chat-compose-btn {
    position: absolute;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .chat-threads {
    flex: 1;
    overflow-y: auto;
    border: none;
    width: 100%;
  }
  .chat-thread-item {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: transform 0.15s ease;
  }
  .chat-thread-item::after {
    content: "Sil";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    transform: translateX(100%);
    z-index: -1;
  }
  .chat-threads-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
  }
  .chat-feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 56px;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--body-bg);
  }
  .chat-feed-back-btn,
  .chat-feed-menu-btn {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  .chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
  }
  .chat-feed-sentinel {
    height: 1px;
    width: 100%;
  }
  .chat-compose {
    position: sticky;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--body-bg);
  }
  .chat-input-bar {
    padding: 0.5rem 0.75rem;
  }
  .chat-input-pill {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 24px;
    background: var(--surface-muted);
    border: none;
  }
  .chat-input-field {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    border: none;
    background: transparent;
    resize: none;
    font: inherit;
  }
  .chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--violet);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .chat-send-btn.is-disabled,
  .chat-send-btn:disabled {
    background: #cbd5e1;
    opacity: 0.7;
  }
  .bubble {
    max-width: 78%;
    padding: 0.55rem 0.75rem;
    border-radius: 18px;
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  .bubble--sent {
    margin-left: auto;
    background: var(--violet);
    color: #fff;
    border-bottom-right-radius: 6px;
  }
  .bubble--received {
    background: var(--surface-muted);
    color: var(--ink);
    border-bottom-left-radius: 6px;
  }
  .bubble-meta {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 10px;
    opacity: 0.6;
  }
  .chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
  }
  .chat-bubble-row--sent { justify-content: flex-end; }
  .chat-bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .chat-bubble-avatar--spacer {
    visibility: hidden;
  }
  .chat-date-separator {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
  }
  .chat-date-separator span {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
  }
}

/* ── Admin full-screen workspace (enterprise dashboard override) ─────── */
body.admin-workspace-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 767px) {
  body.admin-workspace-open #bottomTabBar,
  body.admin-workspace-open .bottom-tab-bar.bottom-tab-bar--suppressed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.admin-workspace-open .chat-fab,
  body.admin-workspace-open .chat-fab.chat-fab--admin-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.admin-workspace {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f4f5f7;
  color: #111827;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  isolation: isolate;
}

.admin-workspace.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-workspace.hidden:not(.is-open) {
  display: none;
}

.admin-workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

.admin-workspace-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem 1rem;
  border-bottom: 1px solid #eef0f3;
}

.admin-workspace-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: #111827;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.admin-workspace-brand-copy {
  display: grid;
  gap: 0.1rem;
}

.admin-workspace-brand-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-workspace-brand-copy span {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
}

.admin-workspace-nav {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.admin-workspace-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-workspace-nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.admin-workspace-nav-item.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.admin-workspace-nav-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
}

.admin-workspace-nav-badge.hidden {
  display: none;
}

.admin-workspace-exit {
  margin-top: auto;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.admin-workspace-exit:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.admin-workspace-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-workspace-topbar {
  flex-shrink: 0;
  padding: 1.35rem 1.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.admin-workspace-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.admin-workspace-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #6b7280;
  font-weight: 500;
}

.admin-workspace-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.75rem 1.75rem;
}

.admin-workspace-body .admin-panel-view {
  display: none;
}

.admin-workspace-body .admin-panel-view.is-active {
  display: block;
}

.admin-workspace-body .admin-panel-view[hidden] {
  display: none !important;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-section-head--row {
  align-items: center;
}

.admin-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.admin-section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.admin-section-count {
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.65rem;
  text-align: center;
}

.admin-reports-section,
.admin-tickets-section {
  margin-bottom: 2rem;
}

.admin-reports-grid,
.admin-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.admin-empty-tile {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1.5rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.85rem;
  background: #ffffff;
  text-align: center;
}

.admin-empty-tile.hidden {
  display: none;
}

.admin-empty-tile-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.admin-empty-tile-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
}

.admin-empty-tile-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.admin-feed-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
  min-width: 0;
  box-shadow: none;
}

.admin-feed-card--pending {
  border-color: #fed7aa;
  background: #fffbf7;
}

.admin-feed-card.is-entering {
  animation: adminFeedEnter 0.28s ease;
}

.admin-feed-card.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes adminFeedEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-feed-card-head-main {
  display: grid;
  gap: 0.45rem;
}

.admin-feed-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-status-badge--resolved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.admin-status-badge--reviewing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-status-badge--new,
.admin-status-badge--pending {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.admin-feed-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-feed-type-badge--report {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-feed-type-badge--support {
  background: #eef2ff;
  color: #4338ca;
}

.admin-feed-card-name,
.admin-feed-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.admin-feed-card-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.45;
}

.admin-feed-card-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #6b7280;
}

.admin-feed-card-body {
  display: grid;
  gap: 0.35rem;
}

.admin-feed-card-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.admin-feed-card-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #374151;
  white-space: pre-wrap;
}

.admin-feed-card-reply {
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.admin-feed-card-reply-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.admin-feed-card-reply-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #111827;
}

.admin-feed-card-reply-form,
.admin-feed-card-field {
  display: grid;
  gap: 0.45rem;
}

.admin-feed-card-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
}

.admin-feed-card-field textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 0.84rem;
  resize: vertical;
}

.admin-feed-card-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.admin-feed-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-feed-card-report-meta {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #f9fafb;
  border: 1px solid #eef0f3;
}

.admin-feed-card-report-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.admin-feed-card-report-row strong {
  color: #111827;
  font-weight: 700;
  text-align: right;
}

.admin-feed-card-media {
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.admin-feed-card-screenshot {
  display: block;
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  cursor: zoom-in;
}

.admin-workspace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-workspace-btn--sm {
  padding: 0.48rem 0.75rem;
  font-size: 0.76rem;
}

.admin-workspace-btn--primary {
  background: #111827;
  color: #ffffff;
}

.admin-workspace-btn--primary:hover {
  background: #1f2937;
}

.admin-workspace-btn--ghost {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.admin-workspace-btn--ghost:hover {
  background: #f9fafb;
}

.admin-workspace .admin-pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  max-height: none;
  padding: 0;
}

.admin-workspace .admin-superpowers-section {
  max-width: 42rem;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: none;
}

.admin-workspace .admin-live-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: none;
}

.admin-workspace .admin-verification-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.dark .admin-workspace {
  background: #0f1117;
  color: #f3f4f6;
}

.dark .admin-workspace-sidebar,
.dark .admin-workspace-topbar,
.dark .admin-workspace .admin-feed-card,
.dark .admin-workspace .admin-empty-tile,
.dark .admin-workspace .admin-superpowers-section,
.dark .admin-workspace .admin-live-table-wrap {
  background: #151821;
  border-color: #2a3140;
}

.dark .admin-workspace-brand,
.dark .admin-workspace-topbar {
  border-color: #2a3140;
}

.dark .admin-workspace-title,
.dark .admin-workspace .admin-feed-card-name,
.dark .admin-workspace .admin-feed-card-title,
.dark .admin-workspace .admin-empty-tile-title,
.dark .admin-workspace .admin-feed-card-reply-text {
  color: #f3f4f6;
}

.dark .admin-workspace-subtitle,
.dark .admin-workspace .admin-section-sub,
.dark .admin-workspace .admin-feed-card-meta,
.dark .admin-workspace .admin-empty-tile-text,
.dark .admin-workspace .admin-feed-card-text {
  color: #9ca3af;
}

.dark .admin-workspace-nav-item {
  color: #9ca3af;
}

.dark .admin-workspace-nav-item:hover {
  background: #1c2230;
  color: #f3f4f6;
}

.dark .admin-workspace-nav-item.is-active {
  background: #1e1b4b;
  border-color: #4338ca;
  color: #c7d2fe;
}

.dark .admin-workspace .admin-feed-card-reply,
.dark .admin-workspace .admin-feed-card-report-meta {
  background: #1c2230;
  border-color: #2a3140;
}

.dark .admin-workspace .admin-feed-card-field textarea {
  background: #0f1117;
  border-color: #2a3140;
  color: #f3f4f6;
}

@media (max-width: 900px) {
  .admin-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    height: 100svh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .admin-workspace-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .admin-workspace-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .admin-workspace-brand {
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .admin-workspace-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    width: 100%;
    padding-bottom: 0.15rem;
  }

  .admin-workspace-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-workspace-exit {
    width: auto;
    margin-top: 0;
  }

  .admin-workspace-topbar {
    padding: 1rem 1rem 0.85rem;
  }

  .admin-workspace-body {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-reports-grid,
  .admin-tickets-grid,
  .admin-workspace .admin-pending-grid,
  .admin-workspace .admin-verification-list {
    grid-template-columns: 1fr;
  }
}

/* ── Profile sheet — iOS-style bottom sheet (mobile) / compact drawer (desktop) ── */
.profile-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 195;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.profile-sheet-root.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}

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

.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;
}

.profile-sheet-root:not(.hidden) {
  visibility: visible;
}

.profile-sheet-root.is-open {
  pointer-events: auto;
}

.profile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 15, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s var(--motion-ease);
}

.profile-sheet-root.is-open .profile-sheet-backdrop {
  opacity: 1;
}

body.profile-panel-open {
  overflow: hidden;
}

.profile-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(82dvh, 680px);
  margin-bottom: calc(3.35rem + var(--safe-bottom));
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow:
    0 -8px 40px rgba(15, 14, 23, 0.12),
    0 -1px 0 rgba(255, 255, 255, 0.8) inset;
  transform: translateY(calc(100% + 1rem));
  opacity: 1;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.profile-sheet-root.is-open .profile-panel {
  transform: translateY(0);
}

.profile-panel-handle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0 0.15rem;
}

.profile-panel-handle-bar {
  display: block;
  width: 2.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.profile-panel-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.profile-panel-close:hover,
.profile-panel-close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  color: #334155;
  outline: none;
}

.profile-panel-close:active {
  transform: scale(0.94);
}

.profile-panel-head {
  flex-shrink: 0;
  position: relative;
  padding: 0.35rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.profile-panel-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.profile-panel-guest {
  padding-top: 0.35rem;
  padding-right: 2.25rem;
}

.profile-panel-guest-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-panel-btn {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-input);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-panel-btn--solid {
  border: none;
  background: var(--violet);
  color: #fff;
}

.profile-panel-btn--solid:active {
  transform: scale(0.98);
}

.profile-panel-btn--ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.profile-panel-lang {
  margin-top: 1rem;
}

.profile-panel-logged-in {
  padding-top: 0.15rem;
  padding-right: 2.25rem;
}

.profile-panel-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-panel-user-copy {
  min-width: 0;
  flex: 1;
}

.profile-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.profile-stat {
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.profile-stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.profile-stat-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.profile-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.profile-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1rem 0.65rem;
}

.profile-panel-section--listings {
  margin-bottom: 0.85rem;
}

.profile-panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.profile-panel-section-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.profile-listings-preview {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.profile-listings-preview::-webkit-scrollbar {
  display: none;
}

.profile-listings-preview:not(:has(.profile-listing-row)) {
  display: block;
  overflow: visible;
}

.profile-listing-row {
  flex: 0 0 min(78%, 15.5rem);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.25rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.875rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.profile-listing-row:hover,
.profile-listing-row:focus-visible {
  border-color: rgba(108, 71, 255, 0.22);
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.08);
  outline: none;
}

.profile-listing-row:active {
  transform: scale(0.98);
}

.profile-listing-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(108, 71, 255, 0.08);
  font-size: 1rem;
  line-height: 1;
}

.profile-listing-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.profile-listing-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-listing-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet);
}

.profile-listing-status {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #b45309;
}

.profile-listing-chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #cbd5e1;
}

.profile-listings-empty {
  margin: 0;
  padding: 1rem 0.85rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.profile-listings-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.55rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: var(--radius-input);
  background: rgba(108, 71, 255, 0.1);
  color: var(--violet);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.profile-listings-cta:active {
  transform: scale(0.98);
}

.profile-panel-actions {
  display: flex;
  flex-direction: column;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-panel-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-panel-action:last-child {
  border-bottom: none;
}

.profile-panel-action::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid #cbd5e1;
  border-right: 1.5px solid #cbd5e1;
  transform: rotate(45deg);
}

.profile-panel-action > span:first-child {
  flex: 1;
}

.profile-panel-action:hover,
.profile-panel-action:focus-visible {
  background: rgba(0, 0, 0, 0.025);
  outline: none;
}

.profile-panel-action:active {
  background: rgba(0, 0, 0, 0.04);
}

.profile-panel-action--admin:not(.hidden) {
  color: var(--violet);
}

.profile-panel-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, #f4f4f5 100%);
}

.profile-widgets-mount {
  margin-bottom: 0.55rem;
}

.profile-utility-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.profile-widget {
  display: contents;
}

.profile-widget-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.profile-widget-toggle[aria-expanded="true"] {
  border-color: rgba(108, 71, 255, 0.28);
  background: rgba(108, 71, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.08);
}

.profile-widget-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.profile-widget-toggle-label {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  padding-right: 1rem;
}

.profile-widget-chevron {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  color: #94a3b8;
  transition: transform 0.22s ease;
}

.profile-widget-toggle[aria-expanded="true"] .profile-widget-chevron {
  transform: rotate(180deg);
  color: var(--violet);
}

.profile-widget-body {
  grid-column: 1 / -1;
  padding: 0.65rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: profileWidgetReveal 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-widget-body.hidden {
  display: none;
}

@keyframes profileWidgetReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-panel .rent-calculator--compact {
  gap: 0.55rem;
}

.profile-panel .rent-calculator--compact .rent-calc-label {
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
}

.profile-panel .rent-calculator--compact .rent-calc-input {
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 0.55rem;
}

.profile-panel .rent-calc-expense-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.profile-panel .rent-calc-result {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
}

.profile-panel .campus-activity-hub--compact {
  gap: 0.35rem;
  max-height: 9rem;
  overflow-y: auto;
}

.profile-panel .campus-stat-row {
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
}

.profile-panel .campus-stat-badge {
  font-size: 0.625rem;
  padding: 0.15rem 0.4rem;
}

.profile-panel .campus-activity-hint--compact {
  margin: 0.45rem 0 0;
  font-size: 0.6875rem;
}

.profile-panel-logout,
[data-logout] {
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.profile-panel-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: var(--radius-input);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.profile-panel-logout:disabled,
[data-logout]:disabled {
  cursor: wait;
  opacity: 0.72;
}

.profile-panel-logout.is-loading,
[data-logout].is-loading {
  pointer-events: none;
}

.profile-panel-logout:active {
  transform: scale(0.98);
  background: rgba(239, 68, 68, 0.12);
}

.profile-panel-lang.lang-switcher--segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
}

.profile-panel-lang .lang-switcher-btn {
  min-height: 2rem;
  padding: 0.35rem 0.25rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-panel-lang .lang-switcher-btn.is-active {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .profile-sheet-root {
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(4.25rem + var(--safe-top)) 1rem 1rem;
  }

  .profile-panel {
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(calc(100dvh - 5.5rem), 640px);
    margin-bottom: 0;
    border-radius: var(--radius);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
      0 20px 50px rgba(15, 14, 23, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.85) inset;
    transform: translateY(-0.5rem) scale(0.97);
    opacity: 0;
    transition:
      transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.28s ease;
  }

  .profile-sheet-root.is-open .profile-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .profile-panel-handle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-panel,
  .profile-sheet-backdrop,
  .profile-widget-body {
    animation: none;
    transition-duration: 0.01ms;
  }
}

.dark .profile-panel {
  background: #14141a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.dark .profile-panel-handle-bar {
  background: rgba(255, 255, 255, 0.18);
}

.dark .profile-panel-head,
.dark .profile-panel-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .profile-panel-footer {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.95) 0%, #0f0f14 100%);
}

.dark .profile-panel-close {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.dark .profile-stat,
.dark .profile-listing-row,
.dark .profile-panel-actions,
.dark .profile-widget-toggle,
.dark .profile-widget-body,
.dark .profile-listings-empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .profile-panel-action {
  border-color: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.dark .profile-panel-action:hover,
.dark .profile-panel-action:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.dark .profile-panel-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.dark .profile-panel-lang.lang-switcher--segmented {
  background: rgba(255, 255, 255, 0.05);
}

.dark .profile-panel-lang .lang-switcher-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.dark .profile-panel .campus-stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ── Chat native screen — shared shell + desktop floating panel ── */
.chat-native-screen:not(.is-open):not(:has(.is-open)) {
  pointer-events: none;
}

.chat-native-screen .chat-widget-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-native-screen .chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-native-screen .chat-threads-panel,
.chat-native-screen .chat-feed-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-native-header {
  display: none;
}

.chat-native-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.22);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chat-native-screen.is-open .chat-native-backdrop {
  opacity: 1;
}

.chat-thread-avatar-trigger {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}

.chat-thread-avatar-trigger:focus-visible {
  outline: 2px solid rgba(108, 71, 255, 0.45);
  outline-offset: 2px;
}

.chat-thread-avatar--sm .chat-thread-avatar-ring {
  width: 2.25rem;
  height: 2.25rem;
}

.chat-feed-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chat-peer-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 0.75rem;
}

.chat-peer-profile-trigger:hover,
.chat-peer-profile-trigger:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

.chat-peer-head-copy {
  min-width: 0;
  flex: 1;
}

.chat-peer-head-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.chat-peer-head-status.is-live {
  color: #059669;
}

@media (min-width: 769px) {
  .chat-native-screen.modal-root {
    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;
  }

  .chat-native-screen .chat-native-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
  }

  .chat-native-title {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .chat-native-compose-btn,
  .chat-native-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
  }

  .chat-native-close-btn {
    display: inline-flex !important;
  }

  .chat-native-screen .chat-layout {
    flex-direction: row;
  }

  .chat-native-screen .chat-threads-panel {
    width: 33.333333%;
    min-width: 200px;
    border-right: 1px solid var(--line);
  }

  .chat-native-screen .chat-feed-panel {
    flex: 1;
  }

  .chat-native-screen .chat-layout.feed-open .chat-threads-panel,
  .chat-native-screen .chat-layout.feed-open .chat-feed-panel {
    transform: none;
  }
}

/* ── Auth phone row — iOS flat inline country + number (UI-01) ── */
.auth-field--phone {
  gap: 0.45rem;
}

.auth-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.auth-phone-country {
  position: relative;
  flex-shrink: 0;
}

.auth-phone-country-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-select.auth-phone-country-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 5.25rem;
  height: 3rem;
  padding: 0 0.65rem;
  border: 1px solid #e5e5ea;
  border-radius: 0.75rem;
  background: #f2f2f7;
  color: #0c0c0f;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-phone-country-trigger:hover {
  background: #ebebf0;
}

.auth-phone-country-trigger:focus-visible {
  outline: none;
  border-color: rgba(108, 71, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
}

.auth-phone-country.is-open .auth-phone-country-trigger {
  border-color: rgba(108, 71, 255, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.1);
}

.auth-phone-country-label {
  line-height: 1;
}

.auth-phone-country-chevron {
  width: 0.85rem;
  height: 0.85rem;
  color: #8e8e93;
  transition: transform 0.22s ease, color 0.2s ease;
}

.auth-phone-country.is-open .auth-phone-country-chevron {
  transform: rotate(180deg);
  color: #6c47ff;
}

.auth-phone-country-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 10050;
  min-width: 9.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow:
    0 12px 32px rgba(15, 14, 23, 0.12),
    0 2px 8px rgba(15, 14, 23, 0.06);
  animation: authPhoneMenuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-phone-country-menu[hidden] {
  display: none;
}

@keyframes authPhoneMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-phone-country-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: #0c0c0f;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-phone-country-option:hover,
.auth-phone-country-option:focus-visible {
  background: #f2f2f7;
  outline: none;
}

.auth-phone-country-option.is-selected,
.auth-phone-country-option[aria-selected="true"] {
  background: rgba(108, 71, 255, 0.08);
  color: #6c47ff;
}

.auth-phone-country-flag {
  font-size: 1rem;
  line-height: 1;
}

.auth-phone-row .auth-input.auth-phone-input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.85rem;
  border: 1px solid #e5e5ea;
  border-radius: 0.75rem;
  background: #f2f2f7;
  color: #0c0c0f;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-phone-row .auth-phone-input::placeholder {
  color: #aeaeb2;
  font-weight: 500;
  opacity: 1;
}

.auth-phone-row .auth-phone-input:hover {
  background: #ebebf0;
}

.auth-phone-row .auth-phone-input:focus {
  border-color: rgba(108, 71, 255, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
}

.auth-field--phone .auth-field-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8e8e93;
  line-height: 1.4;
}

.dark .auth-select.auth-phone-country-trigger,
.dark .auth-phone-row .auth-input.auth-phone-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
}

.dark .auth-phone-country-trigger:hover,
.dark .auth-phone-row .auth-phone-input:hover {
  background: rgba(255, 255, 255, 0.09);
}

.dark .auth-phone-country.is-open .auth-phone-country-trigger,
.dark .auth-phone-row .auth-phone-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.18);
}

.dark .auth-phone-row .auth-phone-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dark .auth-phone-country-menu {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.dark .auth-phone-country-option {
  color: #f5f5f7;
}

.dark .auth-phone-country-option:hover,
.dark .auth-phone-country-option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.dark .auth-phone-country-option.is-selected,
.dark .auth-phone-country-option[aria-selected="true"] {
  background: rgba(108, 71, 255, 0.18);
  color: #c4b5fd;
}

@media (prefers-reduced-motion: reduce) {
  .auth-phone-country-menu {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Listing feed layout — grid flow, auto-height cards, clickable actions
   ═══════════════════════════════════════════════════════════════════════ */
.listing-grid-wrap > .listing-grid {
  position: relative;
  z-index: 0;
}

.listing-grid > .listing-card,
.favorites-grid > .listing-card,
.my-listings-grid > .listing-card,
.public-profile-listings-grid > .listing-card {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
}

.listing-card.is-entering,
.listing-card.is-entered,
.listing-card.is-reveal,
.listing-card.scroll-reveal {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
}

.listing-card .card-media .card-fav-btn,
.listing-card .card-report-btn,
.listing-card .marketplace-chat-btn,
.listing-card .listing-delete-btn,
.listing-card .btn-boost,
.listing-card .card-overlay-btn {
  z-index: 6;
  pointer-events: auto;
}

.listing-card .card-media .card-fav-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

.listing-card .price-tag,
.listing-card .card-price {
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
  .card-media-overlay {
    display: none;
  }
}

/* Login modal — keep panel and submit above backdrop, always clickable */
#loginModal .auth-panel,
#loginModal .auth-form,
#loginModal #btn-login-next {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

#loginModal .login-reveal-section.is-revealed {
  position: relative;
  z-index: 1;
}
