/* =========================================================
   RADARMEET - COMPLETE STYLES.CSS
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Final cascade for the mobile/tablet Radar composition. This intentionally
   comes after the legacy responsive rules so widths through 1050px get one
   consistent map-first treatment. */
@media (max-width: 1050px) {
  body {
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    background: #050914 !important;
  }

  .app {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
  }

  .app .main {
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
  }

  .app .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 6000 !important;
    width: min(330px, calc(100vw - 38px)) !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px) !important;
    border-right: 1px solid rgba(80, 108, 165, 0.62) !important;
    border-bottom: 0 !important;
    transform: translateX(-106%) !important;
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.48);
  }

  .app .sidebar.mobile-menu-open {
    transform: translateX(0) !important;
  }

  .app .logo {
    min-height: 64px !important;
    height: 64px !important;
    padding: 9px 3px !important;
  }

  .app .mobile-nav-toggle {
    display: none !important;
  }

  .app .sidebar-user-tools {
    display: flex !important;
    margin: 5px 0 10px;
  }

  .app .nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
    padding: 4px 0 10px;
    overflow: visible !important;
  }

  .app .nav-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .app .sidebar-search {
    width: 100% !important;
    min-width: 0 !important;
    margin: 7px 0 0;
  }

  .app .sidebar-bottom {
    display: block !important;
    margin: 8px 0 0;
    padding: 12px 0 10px;
  }

  .app .sidebar .help-support-nav {
    width: 100%;
    margin: 4px 0 0;
  }

  .app .sidebar.mobile-menu-open .mobile-logout-item {
    display: flex !important;
    margin-top: 9px;
    padding-top: 12px;
    border-top: 1px solid rgba(89, 111, 155, 0.4);
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 64px !important;
    padding: 11px 14px 8px !important;
  }

  .app #pageTitle {
    font-size: clamp(22px, 4vw, 30px) !important;
    line-height: 1.05;
  }

  .app .radar-view {
    position: relative !important;
    min-height: 0 !important;
    display: flex !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute !important;
    top: 8px;
    right: 10px;
    left: 10px;
    z-index: 1100;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: auto !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    position: relative;
    z-index: 1;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px !important;
    border-radius: 12px !important;
    pointer-events: auto;
  }

  .app .travel-mode-header,
  .app .travel-mode-header>div {
    width: 100%;
    min-width: 0;
  }

  .app .travel-mode-eyebrow,
  .app .travel-mode-controls {
    display: none !important;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {
    display: block !important;
    margin-bottom: 12px;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app .travel-mode-card.mobile-explore-open .travel-city-search-wrap,
  .app .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app .travel-mode-card.mobile-explore-open .travel-mode-button {
    width: 100% !important;
    min-width: 0;
  }

  .app .travel-mode-card.mobile-explore-open .mobile-radar-quick-button {
    display: none !important;
  }

  .app .radar-filter-box {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }

  .app .radar-filter-grid {
    display: none !important;
  }

  .app .radar-filter-grid.is-expanded {
    position: fixed !important;
    top: 50%;
    right: 14px;
    left: 14px;
    z-index: 7000;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-height: min(560px, calc(100dvh - 120px));
    margin: 0 !important;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(80, 142, 225, 0.72);
    border-radius: 16px;
    background:
      radial-gradient(circle at 90% 0%, rgba(186, 28, 220, 0.16), transparent 12rem),
      linear-gradient(145deg, #111c33, #080f20);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(60, 99, 229, 0.16);
    transform: translateY(-50%);
  }

  .app .radar-filter-grid .logout-button {
    display: none !important;
  }

  .app .mobile-radar-filter-apply,
  .app .mobile-radar-popup-close {
    width: 100%;
    min-height: 42px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .app .mobile-radar-filter-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(100deg, #ff315b, #c21bf0);
    color: #ffffff;
  }

  .app .mobile-radar-popup-close {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 137, 182, 0.68);
    background: #111c31;
    color: #dce7fa;
  }

  .app .travel-mode-card.mobile-explore-open {
    position: fixed !important;
    top: 50%;
    right: 14px !important;
    left: 14px !important;
    z-index: 7000;
    width: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(224, 69, 182, 0.72) !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 49, 91, 0.2), transparent 12rem),
      linear-gradient(145deg, #211536, #0d1429) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(224, 50, 183, 0.2);
    transform: translateY(-50%);
  }

  .app .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    display: flex;
    margin-top: 10px;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(460px, calc(100dvh - 148px), 780px) !important;
    min-height: 460px !important;
    max-height: none !important;
    border-radius: 15px !important;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute !important;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1150;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .radar-slider-toggle,
  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    width: 100%;
    min-height: 40px;
    pointer-events: auto;
  }

  .app .radar-slider-panels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    pointer-events: auto;
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .app .city-chat-view.open {
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 2500;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #050914;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 12px 10px;
    border: 0;
    border-radius: 0;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app .city-chat-view.open .city-chat-compose {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .app:has(.city-chat-view.open) .topbar {
    visibility: hidden;
  }

  .app .mobile-bottom-nav {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5000;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 68px;
  }
}

@media (max-width: 520px) {

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 58px !important;
    padding: 9px 12px 6px !important;
  }

  .app #pageTitle {
    font-size: 22px !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 7px;
    right: 8px;
    left: 8px;
    gap: 6px !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    height: clamp(460px, calc(100dvh - 132px), 760px) !important;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   RADAR REFERENCE FINAL OVERRIDES
   Keep the verified reference geometry last so older visual
   upgrade rules cannot silently change the Radar composition.
   ========================================================= */

.mobile-radar-brand-header {
  display: none;
}

@media (min-width: 1051px) {
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 80px !important;
    padding: 12px 21px 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.55fr) !important;
    gap: 12px !important;
    padding: 5px 13px !important;
    align-items: stretch !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    min-height: 70px !important;
    padding: 7px 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-controls {
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) #travelCitySearch,
  .app:has(.radar-view:not(.hidden)) .travel-mode-button {
    height: 23px !important;
    min-height: 23px !important;
    font-size: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    margin: 0 !important;
    font-size: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    gap: 2px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group label {
    font-size: 7px !important;
  }

  .app:has(.radar-view:not(.hidden)) #activityFilter,
  .app:has(.radar-view:not(.hidden)) .age-filter-row input,
  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    height: 23px !important;
    min-height: 23px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) #activityFilter {
    width: 116px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row {
    gap: 4px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    width: 32px !important;
    padding: 0 4px !important;
  }

  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    margin: 0 !important;
    padding: 0 7px !important;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 12px !important;
    padding: 0 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    height: 278px !important;
    min-height: 278px !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    min-height: 278px !important;
  }

  .app:has(.radar-view:not(.hidden)) .chat-panel {
    height: 356px !important;
    min-height: 356px !important;
    margin-top: -80px !important;
  }
}

@media (max-width: 1050px) {
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: stretch;
  }

  .app:has(.radar-view:not(.hidden)) .topbar::after,
  .app:has(.radar-view:not(.hidden)) .topbar>.radar-heading-copy::after,
  .app:has(.radar-view:not(.hidden)) .topbar>.mobile-radar-brand-header::after {
    content: none !important;
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-heading-copy {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-mark {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 88, 151, 0.86);
    border-radius: 9px;
    background: linear-gradient(135deg, #ff315b, #eb18c9 56%, #7b2cff);
    box-shadow:
      0 0 15px rgba(255, 49, 91, 0.36),
      0 0 22px rgba(181, 22, 255, 0.16);
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    overflow: hidden;
    color: #f6f7ff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy sup {
    color: #aebbd0;
    font-size: 7px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy small {
    margin-top: 3px;
    color: #8998ad;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid rgba(47, 184, 132, 0.72);
    border-radius: 7px;
    background: rgba(16, 48, 41, 0.72);
    color: #78e5b6;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #31e5a8;
    box-shadow: 0 0 7px #31e5a8;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
    padding-top: 54px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: grid !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(109, 137, 183, 0.84) !important;
    border-radius: 50% !important;
    background: rgba(15, 27, 49, 0.94) !important;
    color: #dce8fb !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close:hover,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close:hover {
    border-color: #ff5b98 !important;
    background: #291936 !important;
    color: #ffffff !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-bottom-nav-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    color: #93a4be;
    font-size: 0;
    line-height: 1;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: #ff4f9f;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-radar::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-radar::after {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-chat::before {
    position: absolute;
    top: 2px;
    left: 1px;
    width: 17px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 5px;
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-chat::after {
    position: absolute;
    bottom: 2px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skewY(-32deg);
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-messages::before {
    position: absolute;
    top: 3px;
    left: 1px;
    width: 17px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-messages::after {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 11px;
    height: 5px;
    border-top: 2px solid currentColor;
    transform: skewY(-28deg);
    content: "";
  }

  .app:has(.radar-view:not(.hidden)) .mobile-icon-menu::before {
    position: absolute;
    top: 4px;
    left: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
    content: "";
  }
}

@media (max-width: 420px) {
  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    font-size: 13px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 8px;
  }
}

@media (max-width: 1050px) {
  .app .mobile-bottom-nav-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    color: #93a4be;
    font-size: 0;
    line-height: 1;
  }

  .app .mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: #ff4f9f;
  }

  .app .mobile-icon-radar::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .app .mobile-icon-radar::after {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .app .mobile-icon-chat::before {
    position: absolute;
    top: 2px;
    left: 1px;
    width: 17px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 5px;
    content: "";
  }

  .app .mobile-icon-chat::after {
    position: absolute;
    bottom: 2px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skewY(-32deg);
    content: "";
  }

  .app .mobile-icon-messages::before {
    position: absolute;
    top: 3px;
    left: 1px;
    width: 17px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
  }

  .app .mobile-icon-messages::after {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 11px;
    height: 5px;
    border-top: 2px solid currentColor;
    transform: skewY(-28deg);
    content: "";
  }

  .app .mobile-icon-menu::before {
    position: absolute;
    top: 4px;
    left: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
    content: "";
  }
}

/* =========================================================
   FINAL RADAR REFERENCE CASCADE
   This block is intentionally last.
   ========================================================= */

@media (min-width: 1051px) {
  html body .app:has(.radar-view:not(.hidden)) .chat-panel {
    height: 356px !important;
    min-height: 356px !important;
    margin-top: -80px !important;
  }
}

/* Desktop: compact controls above the map, tall map/chat work area, and
   sidebar logout beneath the Premium card. */
@media (min-width: 1051px) {

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,
  .app:has(.radar-view:not(.hidden)) .mobile-radar-popup-close,
  .app:has(.radar-view:not(.hidden)) .mobile-radar-filter-apply {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 80px !important;
    padding: 12px 21px 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.55fr) !important;
    gap: 12px !important;
    padding: 5px 13px !important;
    align-items: stretch !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    min-height: 70px !important;
    padding: 7px 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-eyebrow {
    font-size: 8px !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-controls {
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) #travelCitySearch,
  .app:has(.radar-view:not(.hidden)) .travel-mode-button {
    height: 23px !important;
    min-height: 23px !important;
    font-size: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-box {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    margin: 0 !important;
    font-size: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    gap: 2px !important;
    min-width: 0;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group label {
    font-size: 7px !important;
  }

  .app:has(.radar-view:not(.hidden)) #activityFilter,
  .app:has(.radar-view:not(.hidden)) .age-filter-row input,
  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    height: 23px !important;
    min-height: 23px !important;
    color: #f7f9ff !important;
    background: #101a31 !important;
    border: 1px solid #3d5780 !important;
    border-radius: 5px !important;
    font-size: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) #activityFilter {
    width: 116px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row {
    gap: 4px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    width: 32px !important;
    padding: 0 4px !important;
    background: #171c40 !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row span {
    color: #8492ac !important;
    font-size: 8px !important;
  }

  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    margin: 0 !important;
    padding: 0 7px !important;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 12px !important;
    padding: 0 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    height: 278px !important;
    min-height: 278px !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    min-height: 278px !important;
  }

  .app:has(.radar-view:not(.hidden)) .chat-panel {
    position: relative !important;
    z-index: 3;
    height: 356px !important;
    min-height: 356px !important;
    margin-top: -80px !important;
  }

  .app:has(.radar-view:not(.hidden)) .sidebar-logout-button {
    display: flex !important;
    align-items: center;
    width: calc(100% - 22px) !important;
    min-height: 34px !important;
    margin: 0 11px 12px !important;
    padding: 0 9px !important;
    border: 1px solid rgba(227, 64, 116, 0.82) !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #321426, #4a172d) !important;
    color: #ff789d !important;
    font-size: 10px !important;
    font-weight: 800;
  }

  .app:has(.radar-view:not(.hidden)) .sidebar-logout-button:hover {
    background: linear-gradient(135deg, #49182f, #681b39) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
  }
}

/* Phone/tablet: map-first Radar with bottom-map actions and temporary
   overlays. The existing desktop card remains hidden until opened. */
@media (max-width: 1050px) {
  .app .radar-view:not(.hidden) {
    position: relative !important;
    display: block !important;
    min-height: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: auto !important;
    right: 12px !important;
    bottom: 62px !important;
    left: 12px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    pointer-events: auto;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    padding: 4px !important;
    border-radius: 11px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 96, 157, 0.82);
    border-radius: 8px;
    background: linear-gradient(105deg, #ff315b, #d31ee5);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 !important;
    border: 1px solid rgba(69, 154, 255, 0.78);
    border-radius: 8px;
    background: linear-gradient(105deg, #102c50, #12204c) !important;
    color: #ffffff !important;
    font-size: 11px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {
    position: fixed !important;
    top: 50% !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 7000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px !important;
    max-height: min(570px, calc(100dvh - 112px));
    margin: 0 !important;
    padding: 18px !important;
    overflow-y: auto;
    border: 1px solid rgba(83, 143, 229, 0.78) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(190, 33, 224, 0.2), transparent 13rem),
      linear-gradient(145deg, #111d37, #080f20) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 28px rgba(66, 112, 231, 0.2);
    transform: translateY(-50%);
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded::before {
    display: block;
    color: #ff5b98;
    content: "RADAR FILTERS";
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .radar-filter-group,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .reset-filter-btn,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .mobile-radar-filter-apply,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .mobile-radar-popup-close {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid select,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid input {
    width: 100% !important;
    min-height: 44px !important;
    color: #f7f9ff !important;
    background: #111c33 !important;
    border: 1px solid #40567c !important;
    border-radius: 8px !important;
    font-size: 15px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .age-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .age-filter-row input {
    width: 100% !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .age-filter-row span {
    align-self: center;
    color: #9aa9c3;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid .logout-button {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-filter-apply,
  .app:has(.radar-view:not(.hidden)) .mobile-radar-popup-close {
    min-height: 44px !important;
    border-radius: 9px !important;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-filter-apply {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: linear-gradient(100deg, #ff315b, #c21bf0) !important;
    color: #ffffff !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-popup-close {
    display: none !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #53698f !important;
    background: #111c31 !important;
    color: #e1e9f8 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    display: flex !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
    position: fixed !important;
    top: 50% !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 7000 !important;
    width: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(224, 69, 182, 0.78) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 49, 91, 0.22), transparent 13rem),
      linear-gradient(145deg, #211536, #0d1429) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 30px rgba(224, 50, 183, 0.22);
    transform: translateY(-50%);
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-quick-button {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {
    display: block !important;
    margin-bottom: 12px;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    width: 100%;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-button {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    font-size: 14px !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(430px, calc(100dvh - 152px), 680px) !important;
    min-height: 430px !important;
    border-radius: 15px !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute !important;
    right: 10px !important;
    bottom: 8px !important;
    left: 10px !important;
    z-index: 1100 !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid rgba(82, 108, 155, 0.78) !important;
    border-radius: 10px !important;
    background: rgba(8, 17, 33, 0.95) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    pointer-events: auto;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    pointer-events: auto;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-height: 112px !important;
    padding: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 5000 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    min-height: 68px !important;
  }

  .app .sidebar.mobile-menu-open .sidebar-logout-button {
    display: flex !important;
    margin-top: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(89, 111, 155, 0.4) !important;
  }
}

@media (max-width: 520px) {
  .app:has(.radar-view:not(.hidden)) .map-card {
    height: clamp(390px, calc(100dvh - 148px), 610px) !important;
    min-height: 390px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    right: 8px !important;
    bottom: 58px !important;
    left: 8px !important;
    gap: 6px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,
  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    min-height: 40px !important;
    font-size: 10px !important;
  }
}

/* =========================================================
   DESKTOP RADAR REFINEMENT
   Reference-only changes for widths above the compact layout.
   ========================================================= */
@media (min-width: 1051px) {
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    gap: 12px !important;
    padding: 8px 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    min-height: 0 !important;
    padding: 8px 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-controls {
    gap: 5px;
    margin-top: 5px;
  }

  .app:has(.radar-view:not(.hidden)) #travelCitySearch,
  .app:has(.radar-view:not(.hidden)) .travel-mode-button {
    height: 23px !important;
    min-height: 23px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    font-size: 10px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    gap: 6px;
    margin-top: 5px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    gap: 2px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group label {
    font-size: 7px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group select,
  .app:has(.radar-view:not(.hidden)) .age-filter-row input,
  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    height: 23px;
    min-height: 23px;
    font-size: 9px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group select {
    width: 116px;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    width: 32px;
  }

  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    padding: 0 7px;
  }

  /* Lift City Chat to sit beside the compact control row, as in the
     reference, without changing the map or slider layout below it. */
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    position: relative;
    z-index: 3;
    margin-top: -86px;
  }

  .app:has(.radar-view:not(.hidden)) .sidebar-logout-button {
    display: flex !important;
    align-items: center;
    width: calc(100% - 22px);
    min-height: 34px;
    margin: 0 11px 12px;
    padding: 0 9px;
    border: 1px solid rgba(227, 64, 116, 0.82);
    border-radius: 7px;
    background: linear-gradient(135deg, #321426, #4a172d);
    color: #ff789d;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }

  .app:has(.radar-view:not(.hidden)) .sidebar-logout-button:hover {
    background: linear-gradient(135deg, #49182f, #681b39);
    color: #ffffff;
    transform: translateY(-1px);
  }
}

/* =========================================================
   RADARMEET MOBILE / TABLET RADAR LAYOUT
   Map-first composition for widths through 1050px.
   Desktop remains governed by the rules above.
   ========================================================= */

@media (max-width: 1050px) {
  body {
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    background: #050914;
  }

  .app {
    display: block !important;
    min-width: 0 !important;
    width: 100%;
    padding-bottom: 0 !important;
  }

  .app .main {
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
  }

  /* The four-item bottom bar owns compact navigation. The old sidebar is a
     real menu drawer, so its options remain available without stealing map
     area. */
  .app .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 6000 !important;
    width: min(330px, calc(100vw - 38px)) !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px) !important;
    border-right: 1px solid rgba(80, 108, 165, 0.62) !important;
    border-bottom: 0 !important;
    transform: translateX(-106%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.48);
  }

  .app .sidebar.mobile-menu-open {
    transform: translateX(0);
  }

  .app .sidebar::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.44);
    content: "";
    pointer-events: none;
  }

  .app .logo {
    min-height: 64px !important;
    height: 64px !important;
    padding: 9px 3px !important;
  }

  .app .mobile-nav-toggle {
    display: none !important;
  }

  .app .sidebar-user-tools {
    display: flex !important;
    margin: 5px 0 10px;
  }

  .app .nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
    padding: 4px 0 10px;
    overflow: visible;
  }

  .app .nav-item {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .app .sidebar-search {
    width: 100%;
    min-width: 0;
    margin: 7px 0 0;
  }

  .app .sidebar-bottom {
    display: block !important;
    margin: 8px 0 0;
    padding: 12px 0 10px;
  }

  .app .sidebar .help-support-nav {
    width: 100%;
    margin: 4px 0 0;
  }

  .app .sidebar.mobile-menu-open .mobile-logout-item {
    display: flex !important;
    margin-top: 9px;
    padding-top: 12px;
    border-top: 1px solid rgba(89, 111, 155, 0.4);
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 64px !important;
    padding: 11px 14px 8px !important;
  }

  .app #pageTitle {
    font-size: clamp(22px, 4vw, 30px) !important;
    line-height: 1.05;
  }

  .app .radar-view {
    position: relative;
    min-height: 0 !important;
    display: flex !important;
  }

  /* Compact trigger buttons sit on top of the map instead of reserving a
     permanent row above it. */
  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute;
    top: 8px;
    right: 10px;
    left: 10px;
    z-index: 1100;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: auto;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px !important;
    border-radius: 12px !important;
    pointer-events: auto;
  }

  .app .travel-mode-header,
  .app .travel-mode-header>div {
    width: 100%;
    min-width: 0;
  }

  .app .travel-mode-eyebrow,
  .app .travel-mode-controls {
    display: none !important;
  }

  .app .mobile-radar-quick-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid rgba(255, 96, 157, 0.8);
    border-radius: 9px;
    background: linear-gradient(105deg, #ff315b, #d31ee5);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
  }

  .app .mobile-radar-quick-button span:first-child {
    font-size: 17px;
    line-height: 1;
  }

  .app .radar-filter-box {
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .app .radar-filter-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid rgba(69, 154, 255, 0.76);
    border-radius: 9px;
    background: linear-gradient(105deg, #102c50, #12204c);
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.2px;
    cursor: pointer;
  }

  .app .radar-filter-toggle-icon {
    display: inline-block;
    margin-left: 5px;
    color: #63d8ff;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .app .radar-filter-title[aria-expanded="true"] .radar-filter-toggle-icon {
    transform: rotate(180deg);
  }

  .app .radar-filter-grid {
    display: none !important;
  }

  .app .radar-filter-grid.is-expanded {
    position: fixed;
    top: 50%;
    right: 14px;
    left: 14px;
    z-index: 7000;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-height: min(560px, calc(100dvh - 120px));
    margin: 0 !important;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(80, 142, 225, 0.72);
    border-radius: 16px;
    background:
      radial-gradient(circle at 90% 0%, rgba(186, 28, 220, 0.16), transparent 12rem),
      linear-gradient(145deg, #111c33, #080f20);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(60, 99, 229, 0.16);
    transform: translateY(-50%);
  }

  .app .radar-filter-grid.is-expanded::before {
    display: block;
    margin-bottom: -2px;
    color: #ff5b98;
    content: "RADAR FILTERS";
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
  }

  .app .radar-filter-grid .radar-filter-group,
  .app .radar-filter-grid .reset-filter-btn,
  .app .radar-filter-grid .mobile-radar-filter-apply,
  .app .radar-filter-grid .mobile-radar-popup-close {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .app .radar-filter-grid .radar-filter-group select,
  .app .radar-filter-grid .age-filter-row,
  .app .radar-filter-grid .age-filter-row input {
    width: 100%;
    min-width: 0;
  }

  .app .radar-filter-grid .age-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .app .radar-filter-grid .logout-button {
    display: none !important;
  }

  .app .mobile-radar-filter-apply,
  .app .mobile-radar-popup-close {
    min-height: 42px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .app .mobile-radar-filter-apply {
    border: 0;
    background: linear-gradient(100deg, #ff315b, #c21bf0);
    color: #ffffff;
  }

  .app .mobile-radar-popup-close {
    border: 1px solid rgba(111, 137, 182, 0.68);
    background: #111c31;
    color: #dce7fa;
  }

  .app .mobile-radar-quick-button,
  .app .mobile-radar-popup-close,
  .app .mobile-radar-filter-apply {
    display: flex;
  }

  .app .mobile-radar-popup-close {
    display: none;
  }

  .app .travel-mode-card.mobile-explore-open {
    position: fixed !important;
    top: 50%;
    right: 14px !important;
    left: 14px !important;
    z-index: 7000;
    width: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(224, 69, 182, 0.72) !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 49, 91, 0.2), transparent 12rem),
      linear-gradient(145deg, #211536, #0d1429) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(224, 50, 183, 0.2);
    transform: translateY(-50%);
  }

  .app .travel-mode-card.mobile-explore-open .mobile-radar-quick-button {
    display: none;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {
    display: block !important;
    margin-bottom: 12px;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app .travel-mode-card.mobile-explore-open .travel-city-search-wrap,
  .app .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app .travel-mode-card.mobile-explore-open .travel-mode-button {
    width: 100% !important;
    min-width: 0;
  }

  .app .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app .travel-mode-card.mobile-explore-open .travel-mode-button {
    min-height: 46px !important;
    height: 46px !important;
    font-size: 14px !important;
  }

  .app .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(460px, calc(100dvh - 148px), 780px) !important;
    min-height: 460px !important;
    max-height: none !important;
    border-radius: 15px !important;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app .leaflet-top.leaflet-left:has(.radar-locate-button) {
    top: 58px;
    right: 10px;
    left: auto;
  }

  .app .radar-locate-button {
    width: auto !important;
    min-width: 42px;
    height: 38px !important;
    padding: 0 9px !important;
    gap: 5px;
    border-radius: 10px !important;
    font-size: 10px !important;
  }

  .app .radar-locate-label {
    display: inline;
    font-size: 10px;
  }

  .app .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) {
    top: 102px;
    right: 10px;
    bottom: auto;
  }

  .app .radar-map-visibility-button {
    width: 38px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }

  /* Sliders stay available but occupy no map space until pulled up. */
  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1150;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .radar-slider-toggle,
  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    grid-template-columns: 24px auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid rgba(82, 108, 155, 0.72);
    border-radius: 11px;
    background: rgba(8, 17, 33, 0.94);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    pointer-events: auto;
  }

  .app .radar-slider-panels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    pointer-events: auto;
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .app .radar-slider-row input[type="range"],
  .app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"] {
    width: 100% !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .app .city-chat-view.open {
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 2500;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #050914;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 12px 10px;
    border: 0;
    border-radius: 0;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app .city-chat-view.open .city-chat-compose {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .app:has(.city-chat-view.open) .topbar {
    visibility: hidden;
  }

  .app .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5000;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    min-height: 68px;
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(82, 108, 155, 0.5);
    background: rgba(7, 13, 25, 0.98);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
  }

  .app .mobile-bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8090a9;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
  }

  .app .mobile-bottom-nav-item.active {
    background: rgba(255, 49, 91, 0.13);
    color: #ffffff;
  }

  .app .mobile-bottom-nav-item.active::before {
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    height: 2px;
    border-radius: 999px;
    background: #ff4f86;
    content: "";
  }
}

@media (max-width: 520px) {

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 58px !important;
    padding: 9px 12px 6px !important;
  }

  .app .live-label {
    font-size: 8px;
  }

  .app #pageTitle {
    font-size: 22px !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 7px;
    right: 8px;
    left: 8px;
    gap: 6px !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    height: clamp(460px, calc(100dvh - 132px), 760px) !important;
  }

  .app .mobile-radar-quick-button,
  .app .radar-filter-title {
    min-height: 38px;
    font-size: 10px;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    grid-template-columns: minmax(0, 1fr);
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #07090d;
  color: #ffffff;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
     APP SHELL
     ========================================================= */

.app {
  min-height: 100vh;
  display: flex;
  background: #07090d;
}

/* =========================================================
     SIDEBAR
     ========================================================= */

.sidebar {
  width: 245px;
  min-width: 245px;
  min-height: 100vh;
  background: #0d1016;
  border-right: 1px solid #20242c;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-bottom: 1px solid #20242c;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 21px;
  color: white;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  box-shadow:
    0 0 20px rgba(255, 49, 91, 0.35);
}

.logo-name {
  font-size: 18px;
  font-weight: 900;
}

.brand-trademark {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.45em;
  font-weight: 800;
  line-height: 1;
  vertical-align: super;
  letter-spacing: 0;
}

.auth-brand-footer,
.sidebar-brand-footer {
  color: #687181;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

.auth-brand-footer {
  margin-top: 8px;
}

.sidebar-brand-footer {
  margin-top: 10px;
}

.logo-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #7f8794;
}

.nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #9ba3af;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.nav-item:hover {
  color: white;
  background: #151922;
  transform: translateX(2px);
}

.nav-item.active {
  color: white;
  background:
    linear-gradient(90deg,
      rgba(255, 49, 91, 0.20),
      rgba(181, 22, 255, 0.08));
  border-color: rgba(255, 49, 91, 0.35);
}

.message-nav-badge {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 20px;
  background: #ff315b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid #20242c;
}

.help-support-nav {
  flex-shrink: 0;
  margin: 0 18px 12px;
  width: calc(100% - 36px);
  box-sizing: border-box;
}

.help-support-nav span {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.plan-label {
  color: #ff315b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.plan-text {
  margin-top: 6px;
  color: #8c94a0;
  font-size: 12px;
  line-height: 1.5;
}

.premium-btn {
  width: 100%;
  margin-top: 13px;
  padding: 11px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  color: white;
  font-weight: 900;
}

/* =========================================================
     MAIN AREA
     ========================================================= */

.main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* =========================================================
     TOP BAR / ACTIVITY HERO
     ========================================================= */

.topbar {
  position: relative;
  min-height: 185px;
  padding: 20px 22px 24px;

  background:
    linear-gradient(90deg,
      rgba(7, 9, 13, 0.06) 0%,
      rgba(7, 9, 13, 0.00) 35%,
      rgba(7, 9, 13, 0.00) 65%,
      rgba(7, 9, 13, 0.03) 100%),

    linear-gradient(0deg,
      rgba(7, 9, 13, 0.10) 0%,
      rgba(7, 9, 13, 0.00) 60%,
      rgba(7, 9, 13, 0.00) 100%),

    url("./radarmeet-activity-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-bottom: 1px solid #20242c;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  overflow: hidden;

  box-shadow:
    inset 0 -35px 35px rgba(7, 9, 13, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.07) 100%);
  pointer-events: none;
}

.topbar>* {
  position: relative;
  z-index: 1;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e1e6ee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31e6b6;
  box-shadow:
    0 0 10px rgba(49, 230, 182, 0.8);
}

#pageTitle {
  font-size: 27px;
  font-weight: 900;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.45);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  height: 40px;
  min-width: 210px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: white;
}

.search-box input::placeholder {
  color: #858d98;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 9, 13, 0.72);
  color: white;
}

.user-chip {
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 9, 13, 0.72);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  font-weight: 900;
}

/* =========================================================
     RADAR VIEW
     ========================================================= */

.radar-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

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

.radar-controls {
  padding: 16px 22px;
  background: #0c0f14;
  border-bottom: 1px solid #20242c;
}

.control-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #d7dbe2;
  font-size: 13px;
  font-weight: 800;
}

#distanceValue {
  color: #ff5575;
  font-weight: 900;
}

#radarDistance {
  width: 100%;
  accent-color: #ff315b;
}

.distance-labels {
  display: flex;
  justify-content: space-between;
  color: #686f7a;
  font-size: 10px;
  margin-top: 5px;
}

/* =========================================================
     MAIN RADAR CONTENT
     ========================================================= */

.content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 330px;
  gap: 14px;
  padding: 14px;
}

.map-card {
  position: relative;
  min-height: 570px;
  border: 1px solid #20242c;
  border-radius: 15px;
  overflow: hidden;
  background: #10141a;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 570px;
  z-index: 1;
}

#map .radarmeet-dark-basemap img.leaflet-tile {
  filter: grayscale(1) invert(0.9) sepia(0.14) hue-rotate(185deg) saturate(1.2) brightness(0.6) contrast(1.08);
}

.map-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(7, 9, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.map-status.is-error {
  border-color: rgba(255, 126, 145, 0.62);
  color: #ffd9df;
}

.map-status.is-success {
  border-color: rgba(49, 230, 182, 0.42);
}

.location-retry-button {
  display: block;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.location-retry-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.location-retry-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* =========================================================
     MAP POPUPS
     ========================================================= */

.leaflet-popup-content-wrapper {
  background: #10141a;
  color: white;
  border-radius: 13px;
  border: 1px solid #2a303a;
}

.leaflet-popup-tip {
  background: #10141a;
}

.leaflet-popup-content {
  margin: 13px;
}

.person-popup {
  min-width: 190px;
  text-align: center;
}

.popup-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid #ff315b;
}

.person-popup h3 {
  margin-bottom: 3px;
}

.person-popup p {
  color: #a0a8b3;
  font-size: 12px;
  margin-bottom: 8px;
}

.popup-profile-btn,
.popup-message-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px;
  margin-top: 6px;
  font-weight: 800;
}

.popup-profile-btn {
  background: #202630;
  color: white;
}

.popup-message-btn {
  background: #ff315b;
  color: white;
}

/* =========================================================
     PROFILE PANEL
     ========================================================= */

.profile-panel {
  width: 330px;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 15px;
  overflow: hidden;
  display: none;
}

.profile-panel.open {
  display: block;
}

.profile-panel-inner {
  padding: 20px;
  position: relative;
}

#profileClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #2a303a;
  background: #171b22;
  color: white;
}

.profile-photo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 20px auto 13px;
}

#panelPhoto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff315b;
}

#panel-online-dot {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  right: 5px;
  bottom: 7px;
  background: #31e6b6;
  border: 3px solid #0d1016;
}

#panelName {
  text-align: center;
  font-size: 21px;
  font-weight: 900;
}

#panel-online-text,
#panelDistance {
  text-align: center;
  color: #8f98a5;
  font-size: 12px;
  margin-top: 4px;
}

#panelBio {
  margin-top: 18px;
  color: #c2c7cf;
  line-height: 1.55;
  font-size: 13px;
}

#panelActivity {
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  background: #151922;
  color: #ff6684;
  font-weight: 800;
}

#panelInterests {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#panelInterests span {
  padding: 6px 9px;
  border-radius: 20px;
  background: #1b2029;
  color: #b7bec8;
  font-size: 11px;
}

#panelMessageButton {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  color: white;
  font-weight: 900;
}

/* =========================================================
     SMALL CHAT PANEL
     ========================================================= */

.chat-panel {
  height: 570px;
  min-height: 570px;

  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 15px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.chat-header {
  flex: 0 0 auto;

  padding: 15px;
  border-bottom: 1px solid #20242c;

  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #20242c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31e6b6;
}

.online-count {
  margin-left: auto;
  color: #31e6b6;
  font-size: 11px;
}

.meetup-details-panel {
  position: relative;
  flex: 0 0 auto;
  margin: 12px 14px 0;
  padding: 12px;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #2b3039;
  border-radius: 10px;
  background: #151922;
  color: #c5cad1;
}

.chat-panel.meetup-details-open .chat-header,
.chat-panel.meetup-details-open .chat-body,
.chat-panel.meetup-details-open .chat-input {
  display: none;
}

.chat-panel.meetup-details-open .meetup-details-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 15px;
  border: 0;
  border-radius: 0;
}

.meetup-details-back {
  display: block;
  margin: 0 34px 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff8ca5;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.meetup-details-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d8dce4;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.meetup-details-close:hover,
.meetup-details-close:focus-visible {
  border-color: rgba(255, 140, 165, 0.8);
  background: rgba(255, 49, 91, 0.18);
  color: #ffffff;
}

.meetup-host-row {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.meetup-host-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.meetup-host-photo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
}

.meetup-host-profile-button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.meetup-host-profile-button:hover .meetup-host-content,
.meetup-host-profile-button:focus-visible .meetup-host-content {
  color: #ff8ca5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meetup-group-popup-heading {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 13px;
}

.meetup-group-popup-intro {
  margin-bottom: 8px;
  color: #8f98a7;
  font-size: 10px;
}

.meetup-group-popup-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 7px;
  padding: 8px 9px;
  border: 1px solid #323947;
  border-radius: 7px;
  background: #151922;
  color: #c5cad1;
  text-align: left;
  cursor: pointer;
}

.meetup-group-popup-item:hover,
.meetup-group-popup-item:focus-visible {
  border-color: #ff557b;
  background: #202332;
}

.meetup-group-popup-title {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.25;
}

.meetup-group-popup-meta {
  color: #aeb6c2;
  font-size: 10px;
  line-height: 1.25;
}

.activity-place-popup-count {
  margin-top: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.activity-place-popup-meetups {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}

.activity-place-popup-meetup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid #323947;
  border-radius: 7px;
  background: #151922;
}

.activity-place-popup-meetup-title {
  overflow: hidden;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-place-popup-meetup-meta {
  color: #aeb6c2;
  font-size: 10px;
  line-height: 1.25;
}

.activity-place-popup-view-button {
  align-self: flex-start;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid #5a4f92;
  border-radius: 6px;
  background: rgba(151, 135, 255, 0.12);
  color: #c5c9ff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.activity-place-popup-view-button:hover,
.activity-place-popup-view-button:focus-visible {
  border-color: #ff557b;
  background: #202332;
  color: #ffffff;
}

.meetup-details-heading {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#meetupDetailsContent h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.meetup-detail-row {
  margin-top: 5px;
  color: #c5cad1;
  font-size: 12px;
  line-height: 1.35;
}

.meetup-detail-description {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid #2b3039;
  color: #c5cad1;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.meetup-details-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 5px 0 8px;
  border-bottom: 1px solid #2b3039;
  background: #151922;
}

.meetup-details-actions .meetup-detail-row {
  margin-top: 0;
}

.meetup-details-actions .meetup-detail-row+.meetup-detail-row {
  margin-top: 8px;
}

.meetup-details-actions button {
  width: 100%;
}

.meetup-create-another-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 49, 91, 0.75);
  border-radius: 8px;
  background: rgba(255, 49, 91, 0.16);
  color: #ff8ca5;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.meetup-manage-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.meetup-edit-button {
  border: 1px solid rgba(151, 135, 255, 0.45);
  background: rgba(151, 135, 255, 0.12);
  color: #c0b6ff;
}

.meetup-delete-button {
  border: 1px solid rgba(255, 91, 112, 0.65);
  background: rgba(255, 91, 112, 0.12);
  color: #ff9baa;
}

.meetup-details-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.chat-body {
  flex: 1 1 auto;
  min-height: 0;

  padding: 14px;

  overflow-y: auto;
  overflow-x: hidden;
}

.chat-message {
  display: flex;
  gap: 9px;
  margin-bottom: 13px;
}

.chat-message p {
  margin-top: 3px;
  color: #c5cad1;
  font-size: 12px;
  line-height: 1.35;
}

.city-chat-empty-state {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  color: #8f99a8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.chat-avatar-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-input {
  flex: 0 0 auto;

  width: auto;
  margin: 0 14px 14px;
  padding: 10px;

  display: flex;
  align-items: center;
  gap: 8px;

  border-radius: 9px;
  border: 1px solid #2b3039;

  background: #151922;
}

.chat-input input {
  flex: 1;
  min-width: 0;

  border: none;
  outline: none;

  background: transparent;
  color: white;
}

.chat-input button {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 7px;

  background: #ff315b;
  color: white;

  cursor: pointer;
}

/* =========================================================
     CITY CHAT PAGE
     ========================================================= */

.city-chat-view {
  display: none;
  flex: 1;
  padding: 20px;
  background: #090c11;
}

.city-chat-view.open {
  display: block;
}

.city-chat-page {
  max-width: 950px;
  margin: 0 auto;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 16px;
  overflow: hidden;
}

.city-chat-page-header {
  padding: 20px;
  border-bottom: 1px solid #20242c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-chat-eyebrow {
  color: #ff315b;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 900;
}

.city-online-pill {
  padding: 7px 11px;
  border-radius: 20px;
  background: rgba(49, 230, 182, 0.10);
  color: #31e6b6;
  font-size: 11px;
  font-weight: 800;
}

.city-chat-messages {
  height: 470px;
  overflow-y: auto;
  padding: 18px;
}

.city-full-message {
  display: flex;
  gap: 11px;
  margin-bottom: 18px;
}

.city-full-avatar,
.city-you-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  font-weight: 900;
}

.city-message-content {
  flex: 1;
}

.city-message-top {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 5px;
}

.city-message-top span {
  color: #6f7782;
  font-size: 10px;
}

.city-message-content p {
  color: #c5cad1;
  font-size: 13px;
  line-height: 1.4;
}

.city-chat-compose {
  padding: 15px;
  border-top: 1px solid #20242c;
  display: flex;
  gap: 10px;
}

#cityChatInput {
  flex: 1;
  padding: 12px;
  border: 1px solid #2a303a;
  border-radius: 10px;
  background: #151922;
  color: white;
  outline: none;
}

.city-chat-send,
#cityChatSend {
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  background: #ff315b;
  color: white;
  font-weight: 900;
}

/* =========================================================
     PRIVATE MESSAGES
     ========================================================= */

.messages-view {
  display: none;
  flex: 1;
  min-height: 600px;
  padding: 20px;
  gap: 14px;
  background: #090c11;
}

.messages-view.open {
  display: flex;
}

.conversation-panel {
  width: 310px;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 15px;
  overflow: hidden;
}

.conversation-heading {
  padding: 18px;
  border-bottom: 1px solid #20242c;
}

.conversation-eyebrow {
  color: #ff315b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.conversation-list {
  overflow-y: auto;
}

.conversation-item {
  padding: 13px;
  border-bottom: 1px solid #1b2028;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
  background: #151922;
}

.conversation-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.thread-panel {
  flex: 1;
  min-width: 0;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thread-header {
  padding: 14px 17px;
  border-bottom: 1px solid #20242c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thread-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

#threadPhoto {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

#threadName {
  font-weight: 900;
}

.thread-online,
#thread-online {
  color: #31e6b6;
  font-size: 11px;
}

.thread-actions {
  display: flex;
  gap: 7px;
}

.thread-actions button {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a303a;
  background: #171b22;
  color: #c6cbd2;
}

#deleteConversationButton,
#blockUserButton {
  color: #ff6684;
}

.thread-messages {
  flex: 1;
  min-height: 390px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px;
}

.message-row {
  display: flex;
  margin-bottom: 11px;
}

.message-row.sent {
  justify-content: flex-end;
}

.message-row.received {
  justify-content: flex-start;
}

.thread-bubble {
  max-width: 72%;
  padding: 10px 13px;
  border-radius: 13px;
  background: #1a2029;
  color: #e4e7eb;
  line-height: 1.45;
}

.message-row.sent .thread-bubble {
  background: linear-gradient(135deg,
      #ff315b,
      #d51f70);
  color: white;
}

.message-bubble-time {
  margin-top: 4px;
  opacity: 0.65;
  font-size: 9px;
}

.thread-compose {
  padding: 14px;
  border-top: 1px solid #20242c;
  display: flex;
  gap: 9px;
}

#threadInput {
  flex: 1;
  padding: 11px;
  border: 1px solid #2a303a;
  border-radius: 9px;
  background: #151922;
  color: white;
  outline: none;
}

#threadSendButton {
  border: none;
  border-radius: 9px;
  padding: 0 18px;
  background: #ff315b;
  color: white;
  font-weight: 900;
}

/* =========================================================
     EDIT PROFILE
     IMPORTANT: THIS IS THE PAGE THAT WAS BROKEN
     ========================================================= */

.edit-profile-view {
  display: none;
  flex: 1;
  width: 100%;
  padding: 22px;
  background: #090c11;
  overflow-y: auto;
}

.edit-profile-view.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.edit-profile-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 17px;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.25);
}

.edit-profile-header {
  padding: 22px 24px;
  border-bottom: 1px solid #20242c;
  background:
    linear-gradient(90deg,
      rgba(255, 49, 91, 0.08),
      transparent);
}

.edit-profile-header h2 {
  margin-top: 5px;
  font-size: 23px;
}

.edit-profile-header p {
  margin-top: 7px;
  color: #8e96a2;
  font-size: 13px;
  line-height: 1.5;
}

.edit-profile-eyebrow {
  color: #ff315b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.edit-profile-content {
  padding: 25px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}

.edit-photo-section {
  text-align: center;
}

.edit-photo-preview {
  width: 135px;
  height: 135px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  border: 4px solid #20242c;
  box-shadow:
    0 0 0 2px #ff315b,
    0 8px 30px rgba(255, 49, 91, 0.25);
  font-size: 42px;
  font-weight: 900;
}

.edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#editPhotoInput {
  display: none;
}

.edit-photo-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 9px;
  background: #1b2029;
  border: 1px solid #2b313b;
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.edit-photo-button:hover {
  border-color: #ff315b;
}

.photo-help {
  margin-top: 8px;
  color: #686f7a;
  font-size: 10px;
  line-height: 1.4;
}

.edit-profile-form {
  min-width: 0;
}

.edit-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 13px;
}

.edit-field {
  margin-bottom: 17px;
}

.edit-field label {
  display: block;
  margin-bottom: 7px;
  color: #b9c0c9;
  font-size: 11px;
  font-weight: 800;
}

.interest-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.interest-label-row label {
  margin-bottom: 0;
}

.reset-interests-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid #3a404c;
  border-radius: 999px;
  background: #171c24;
  color: #b9c0c9;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.reset-interests-btn:hover {
  border-color: #ff315b;
  background: rgba(255, 49, 91, 0.14);
  color: #ff718d;
  transform: translateY(-1px);
}

.edit-field input,
.edit-field textarea,
.edit-field select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid #2a303a;
  background: #151922;
  color: white;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.edit-field textarea {
  min-height: 105px;
  resize: vertical;
}

.edit-field input:focus,
.edit-field textarea:focus,
.edit-field select:focus {
  border-color: #ff315b;
  box-shadow:
    0 0 0 3px rgba(255, 49, 91, 0.10);
}

.small-field {
  min-width: 0;
}

.bio-counter {
  margin-top: 5px;
  text-align: right;
  color: #6d7580;
  font-size: 10px;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-option {
  position: relative;
  cursor: pointer;
}

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

.interest-option span {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 20px;
  background: #171c24;
  border: 1px solid #2a303a;
  color: #aeb5bf;
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.interest-option input:checked+span {
  background: rgba(255, 49, 91, 0.14);
  border-color: #ff315b;
  color: #ff718d;
}

.save-profile-btn {
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,
      #ff315b,
      #b516ff);
  color: white;
  font-weight: 900;
  box-shadow:
    0 8px 22px rgba(255, 49, 91, 0.20);
}

.save-profile-btn:hover {
  filter: brightness(1.08);
}

.profile-saved-message {
  display: none;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(49, 230, 182, 0.10);
  color: #31e6b6;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.profile-saved-message.show {
  display: block;
}

/* =========================================================
     BLOCKED USERS
     ========================================================= */

.blocked-view {
  display: none;
  flex: 1;
  padding: 22px;
  background: #090c11;
}

.blocked-view.open {
  display: block;
}

.blocked-card {
  max-width: 850px;
  margin: 0 auto;
  background: #0d1016;
  border: 1px solid #20242c;
  border-radius: 16px;
  overflow: hidden;
}

.blocked-heading {
  padding: 22px;
  border-bottom: 1px solid #20242c;
}

.blocked-eyebrow {
  color: #ff315b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.blocked-heading h2 {
  margin-top: 5px;
}

.blocked-heading p {
  margin-top: 7px;
  color: #8f97a3;
  font-size: 12px;
}

.blocked-list {
  padding: 15px;
}

.blocked-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px solid #20242c;
}

.blocked-user-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.blocked-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.blocked-user-name {
  font-weight: 900;
}

.blocked-user-status {
  margin-top: 3px;
  color: #777f8a;
  font-size: 10px;
}

.unblock-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #333a45;
  background: #171b22;
  color: white;
  font-weight: 800;
}

/* =========================================================
     QUICK MESSAGE MODAL
     ========================================================= */

.message-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.message-overlay.open,
.confirm-overlay.open {
  display: flex;
}

.message-modal,
.confirm-modal {
  width: min(440px, 100%);
  background: #10141a;
  border: 1px solid #2a303a;
  border-radius: 16px;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.5);
}

.message-modal {
  padding: 20px;
  position: relative;
}

#messageClose {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid #303641;
  background: #171b22;
  color: white;
}

.message-user {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

#messagePhoto {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.message-label {
  color: #777f8a;
  font-size: 10px;
}

#messageName {
  font-weight: 900;
}

.message-online {
  color: #31e6b6;
  font-size: 10px;
  margin-top: 3px;
}

#messageText {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #2a303a;
  border-radius: 9px;
  background: #151922;
  color: white;
  outline: none;
  resize: vertical;
}

#sendMessageButton {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: #ff315b;
  color: white;
  font-weight: 900;
}

#messageStatus {
  margin-top: 8px;
  text-align: center;
  color: #31e6b6;
  font-size: 11px;
}

/* =========================================================
     CONFIRM MODAL
     ========================================================= */

.confirm-modal {
  padding: 22px;
  text-align: center;
}

#confirmIcon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 49, 91, 0.12);
  color: #ff315b;
  font-size: 22px;
}

#confirmTitle {
  font-size: 20px;
}

#confirmText {
  margin-top: 8px;
  color: #969eaa;
  font-size: 12px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

#confirmCancel,
#confirmDanger {
  flex: 1;
  padding: 11px;
  border-radius: 9px;
  font-weight: 900;
}

#confirmCancel {
  border: 1px solid #303641;
  background: #171b22;
  color: white;
}

#confirmDanger {
  border: none;
  background: #ff315b;
  color: white;
}

/* =========================================================
     SCROLLBARS
     ========================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0e13;
}

::-webkit-scrollbar-thumb {
  background: #303641;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444c58;
}

/* =========================================================
     RESPONSIVE
     ========================================================= */

@media (max-width: 1050px) {

  .content {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    width: 100%;
  }

  .messages-view {
    flex-direction: column;
  }

  .conversation-panel {
    width: 100%;
  }
}

@media (max-width: 800px) {

  .app {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
    height: auto;
    position: relative;
  }

  .nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-item {
    min-width: max-content;
  }

  .sidebar-bottom {
    display: none;
  }

  .topbar {
    min-height: 160px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .top-actions {
    width: 100%;
  }

  .search-box {
    flex: 1;
    min-width: 0;
  }

  .content {
    padding: 10px;
  }

  .edit-profile-content {
    grid-template-columns: 1fr;
  }

  .edit-form-row {
    grid-template-columns: 1fr;
  }

  .edit-photo-section {
    margin-bottom: 5px;
  }

  .map-card,
  #map {
    min-height: 500px;
  }
}

/* =========================================================
   MOBILE / TABLET RADAR PASS
   The desktop shell above remains unchanged. These rules are
   intentionally scoped to compact authenticated layouts.
   ========================================================= */

.radar-slider-panels {
  display: contents;
}

.radar-slider-toggle,
.mobile-bottom-nav,
.mobile-logout-item,
.control-title-label-compact {
  display: none;
}

.radar-filter-title {
  appearance: none;
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: default;
}

.radar-filter-toggle-icon {
  display: none;
}

.radar-locate-label {
  display: none;
}

@media (max-width: 1050px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .app {
    padding-bottom: 82px;
  }

  .app .mobile-nav-toggle {
    display: none !important;
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 70px !important;
    padding: 10px 14px 8px !important;
  }

  .app .topbar .live-label {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .app #pageTitle {
    font-size: clamp(22px, 3.4vw, 30px) !important;
  }

  .app .main {
    min-width: 0 !important;
    padding-bottom: 0;
  }

  .app .radar-view {
    min-height: 0;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    min-height: 52px !important;
    padding: 6px !important;
    border-radius: 13px !important;
  }

  .app .travel-mode-eyebrow,
  .app .travel-city-search-wrap {
    display: none !important;
  }

  .app .travel-mode-header,
  .app .travel-mode-controls {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .app .travel-mode-button {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 7px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .app .radar-filter-box {
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .app .radar-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid rgba(82, 108, 155, 0.65);
    border-radius: 9px;
    background: rgba(15, 28, 49, 0.9);
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.25px;
  }

  .app .radar-filter-toggle-icon {
    display: inline-block;
    color: #ff6b99;
    font-size: 18px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }

  .app .radar-filter-title[aria-expanded="true"] .radar-filter-toggle-icon {
    transform: rotate(180deg);
  }

  .app .radar-filter-grid {
    display: none !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(82, 108, 155, 0.5);
    border-radius: 11px;
    background: #0b1423;
  }

  .app .radar-filter-grid.is-expanded {
    display: grid !important;
  }

  .app .radar-filter-grid .radar-filter-group,
  .app .radar-filter-grid .reset-filter-btn,
  .app .radar-filter-grid .logout-button {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .app .radar-filter-grid .radar-filter-group select,
  .app .radar-filter-grid .age-filter-row,
  .app .radar-filter-grid .age-filter-row input {
    width: 100%;
    min-width: 0;
  }

  .app .radar-filter-grid .age-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .app .radar-filter-grid .reset-filter-btn,
  .app .radar-filter-grid .logout-button {
    min-height: 40px;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(500px, calc(100dvh - 238px), 760px) !important;
    min-height: 500px !important;
    border-radius: 16px !important;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
  }

  .app .leaflet-top.leaflet-left:has(.radar-locate-button) {
    top: 10px;
    right: 10px;
    left: auto;
  }

  .app .leaflet-top.leaflet-left:has(.radar-locate-button) .leaflet-control {
    margin: 0;
  }

  .app .radar-locate-button {
    width: auto !important;
    min-width: 44px;
    height: 42px !important;
    padding: 0 11px !important;
    gap: 7px;
    border-radius: 11px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .app .radar-locate-icon {
    font-size: 21px;
    line-height: 1;
  }

  .app .radar-locate-label {
    display: inline;
    color: #ffe7ee;
    font-size: 11px;
    font-weight: 800;
  }

  .app .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) {
    top: 61px;
    right: 10px;
    bottom: auto;
  }

  .app .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) .leaflet-control {
    margin: 0;
  }

  .app .radar-map-visibility-button {
    width: 42px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
  }

  .app .radar-slider-toggle,
  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    grid-template-columns: 24px auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(82, 108, 155, 0.68);
    border-radius: 11px;
    background: linear-gradient(105deg, #101e33, #0b1423);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .app .radar-slider-toggle-icon {
    color: #ff6b99;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .app .radar-slider-toggle[aria-expanded="true"] .radar-slider-toggle-icon {
    transform: rotate(180deg);
  }

  .app .radar-slider-toggle-hint {
    min-width: 0;
    color: #8799b7;
    font-size: 10px;
    font-weight: 600;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app .radar-slider-panels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 116px !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .app .radar-slider-row .control-title,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title {
    min-height: 20px;
    margin: 0 0 5px !important;
    font-size: 10px;
  }

  .app .control-title-label-default {
    display: none;
  }

  .app .control-title-label-compact {
    display: inline;
  }

  .app .radar-slider-row .control-title strong,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title strong {
    font-size: 11px;
  }

  .app .radar-slider-row input[type="range"],
  .app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"] {
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  .app .radar-slider-row .distance-labels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels {
    width: 100% !important;
    min-height: 14px;
    margin: 2px 0 0 !important;
    font-size: 8px;
  }

  .app .radar-slider-row .premium-distance-help,
  .app .radar-slider-row .privacy-help,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .premium-distance-help,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .privacy-help {
    margin: 5px 0 0 !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
  }

  .app .city-chat-view.open {
    position: fixed !important;
    top: calc(62px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 2500;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #050914;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 12px 10px;
    border: 0;
    border-radius: 0;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app .city-chat-view.open .city-chat-compose {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .app:has(.city-chat-view.open) .topbar {
    visibility: hidden;
  }

  .app .sidebar.mobile-menu-open .mobile-logout-item {
    display: flex !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5000;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    min-height: 68px;
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(82, 108, 155, 0.5);
    background: rgba(7, 13, 25, 0.98);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8090a9;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
  }

  .mobile-bottom-nav-item.active {
    background: rgba(255, 49, 91, 0.13);
    color: #ffffff;
  }

  .mobile-bottom-nav-item.active::before {
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    height: 2px;
    border-radius: 999px;
    background: #ff4f86;
    content: "";
  }

  .mobile-bottom-nav-icon {
    display: block;
    color: #ff6b99;
    font-size: 19px;
    line-height: 1.1;
  }

  .mobile-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav-badge {
    position: absolute;
    top: 3px;
    right: 22%;
    display: none;
    min-width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff315b;
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
  }
}

@media (max-width: 800px) {

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    grid-template-columns: minmax(0, 1fr);
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    min-height: 128px !important;
  }
}

/* =========================================================
   INTERMEDIATE TABLET LAYOUT - 801px TO 1050px
   Keep the desktop shell, but give tablet widths their own
   measured grid so the visual upgrade cannot crowd controls.
   ========================================================= */

@media (min-width: 801px) and (max-width: 1050px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app,
  .app .main,
  .app .radar-view {
    min-width: 0;
    max-width: 100%;
  }

  .app .sidebar,
  .app:has(.radar-view:not(.hidden)) .sidebar {
    width: 214px !important;
    min-width: 214px !important;
    padding: 0 9px !important;
  }

  .app .logo,
  .app:has(.radar-view:not(.hidden)) .logo {
    height: 66px;
    min-width: 0;
    padding: 0 3px;
    gap: 8px;
  }

  .app .logo-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .app .logo-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app .nav {
    min-width: 0;
    gap: 5px;
    padding: 12px 0;
  }

  .app .nav-item {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 9px;
    gap: 8px;
    font-size: 12px;
  }

  .app .nav-item>span:first-child {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
  }

  .app .sidebar-search {
    width: 100%;
    min-width: 0;
    margin: 7px 0 0;
  }

  .app .main {
    overflow-x: hidden;
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 104px !important;
    padding: 13px 16px 15px !important;
  }

  .app #pageTitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(25px, 3.2vw, 32px) !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    gap: 10px !important;
    width: 100%;
    min-width: 0;
    padding: 10px 12px !important;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    width: 100%;
    min-width: 0;
    min-height: 118px;
    padding: 11px !important;
  }

  .app .travel-mode-controls,
  .app:has(.radar-view:not(.hidden)) .travel-mode-controls {
    min-width: 0;
    gap: 7px;
  }

  .app #travelCitySearch,
  .app .travel-mode-button {
    min-width: 0;
    max-width: 100%;
  }

  .app .radar-filter-grid,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    min-width: 0;
  }

  .app .radar-filter-group,
  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    min-width: 0;
  }

  .app .radar-filter-group:first-child {
    grid-column: 1 / -1;
  }

  .app .radar-filter-group select,
  .app .age-filter-row,
  .app .age-filter-row input,
  .app .reset-filter-btn,
  .app .logout-button {
    min-width: 0;
    max-width: 100%;
  }

  .app .content,
  .app:has(.radar-view:not(.hidden)) .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.62fr) minmax(230px, 0.88fr) !important;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 0 12px !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100%;
    height: min(39dvh, 360px) !important;
    min-height: 300px !important;
    max-height: 360px;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100%;
    height: 100%;
    min-height: 300px !important;
    touch-action: pan-y pinch-zoom;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    width: 100%;
    height: min(39dvh, 360px) !important;
    min-height: 300px !important;
    max-height: 360px;
  }

  .app .chat-input {
    min-width: 0;
    margin: 0 9px 9px;
  }

  .app .chat-input input,
  .app #cityChatPreviewInput {
    min-width: 0;
    font-size: 15px;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 10px !important;
    width: 100%;
    min-width: 0;
    padding: 10px 12px 14px !important;
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px;
    padding: 12px !important;
  }

  .app .radar-slider-row .control-title {
    min-width: 0;
    gap: 8px;
    font-size: 11px;
  }

  .app .radar-slider-row .control-title strong {
    white-space: nowrap;
    font-size: 12px;
  }

  .app .radar-slider-row input[type="range"],
  .app .radar-slider-row .distance-labels,
  .app .radar-slider-row .privacy-help {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .app .radar-slider-row input[type="range"] {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    touch-action: pan-y;
  }

  .app .radar-slider-row .privacy-help,
  .app .radar-slider-row .premium-distance-help {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .app .city-chat-view,
  .app .messages-view,
  .app .edit-profile-view,
  .app .blocked-view,
  .app .help-view,
  .app .admin-view,
  .app .premium-view {
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: hidden;
    padding-right: 16px;
    padding-left: 16px;
  }

  .app .city-chat-page,
  .app .city-chat-messages,
  .app .city-chat-compose,
  .app .conversation-panel,
  .app .thread-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .app .city-chat-page-header {
    min-height: 0;
    gap: 12px;
    padding: 17px 18px !important;
  }

  .app .city-chat-messages {
    height: min(52dvh, 470px) !important;
    min-height: 280px;
    padding: 14px 16px !important;
  }

  .app .city-chat-compose {
    min-height: 70px !important;
    gap: 8px;
    padding: 10px 12px !important;
  }

  .app .city-chat-compose textarea,
  .app #cityChatInput,
  .app #threadInput {
    min-width: 0;
    font-size: 16px !important;
  }

  .app .city-chat-send,
  .app .city-chat-emoji-button,
  .app #threadPhotoButton,
  .app #threadSendButton {
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .app .mobile-nav-toggle {
    display: none !important;
  }

  .app .sidebar .nav {
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
  }
}

@media (max-width: 1050px) {

  .app:has(.radar-view:not(.hidden)) #map,
  .app:has(.radar-view:not(.hidden)) .leaflet-container {
    touch-action: pan-y pinch-zoom;
  }
}

/* ======================================================
   RADAR FILTERS
====================================================== */

.radar-filter-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #252a33;
}

.radar-filter-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.radar-filter-grid {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.radar-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-filter-group label {
  color: #8f98a8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}


/* ACTIVITY DROPDOWN */

.radar-filter-group select {
  min-width: 190px;
  height: 42px;
  padding: 0 36px 0 13px;

  color: #ffffff;
  background: #151922;

  border: 1px solid #303641;
  border-radius: 9px;

  font-size: 13px;
  font-weight: 700;

  outline: none;
  cursor: pointer;
}

.radar-filter-group select:hover {
  border-color: #ff315b;
}

.radar-filter-group select:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.12);
}

.radar-filter-group select option {
  color: #ffffff;
  background: #151922;
}


/* AGE RANGE */

.age-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-filter-row input {
  width: 72px;
  height: 42px;
  padding: 0 10px;

  color: #ffffff;
  background: #151922;

  border: 1px solid #303641;
  border-radius: 9px;

  font-size: 13px;
  font-weight: 700;

  outline: none;
}

.age-filter-row input:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.12);
}

.age-filter-row span {
  color: #737c8c;
  font-size: 12px;
  font-weight: 700;
}


/* ONLINE ONLY */

.online-filter-toggle {
  min-height: 42px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  gap: 9px;

  background: #151922;

  border: 1px solid #303641;
  border-radius: 9px;

  cursor: pointer;
  user-select: none;
}

.online-filter-toggle:hover {
  border-color: #31e6b6;
}

.online-filter-toggle input {
  width: 17px;
  height: 17px;

  accent-color: #31e6b6;
  cursor: pointer;
}

.online-filter-toggle span {
  color: #d9dee7;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}


/* RESET BUTTON */

.reset-filter-btn {
  height: 42px;
  padding: 0 18px;
  margin-top: 22px;

  color: #ffffff;
  background: transparent;

  border: 1px solid #3a404c;
  border-radius: 9px;

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.reset-filter-btn:hover {
  border-color: #ff315b;
  background: rgba(255, 49, 91, 0.08);
  transform: translateY(-1px);
}


/* KEEP FILTER AREA COMPACT */

.radar-controls .radar-filter-box {
  width: 100%;
}

@media (max-width: 900px) {

  .radar-filter-grid {
    align-items: stretch;
  }

  .radar-filter-group {
    width: 100%;
  }

  .radar-filter-group select {
    width: 100%;
  }

  .online-filter-toggle {
    width: 100%;
  }

}

/* ======================================================
   RADAR DISTANCE + LOCATION PRIVACY SIDE BY SIDE
   FINAL OVERRIDE
====================================================== */

.radar-slider-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 18px !important;

  width: 100% !important;
  padding: 14px 16px !important;

  box-sizing: border-box !important;
}


/* BOTH SLIDER CARDS */

.radar-slider-row .radar-controls {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 16px 20px !important;

  box-sizing: border-box !important;

  border: 1px solid #252a33 !important;
  border-radius: 12px !important;

  background: #0d1117 !important;
}


/* KEEP TITLE + VALUE ON SAME LINE */

.radar-slider-row .control-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  margin-bottom: 12px !important;
}


/* SHORTEN BOTH SLIDERS */

.radar-slider-row input[type="range"] {
  display: block !important;

  width: 72% !important;
  max-width: 440px !important;

  margin: 0 !important;
}


/* KEEP MILE LABELS SAME WIDTH AS SLIDER */

.radar-slider-row .distance-labels {
  display: flex !important;
  justify-content: space-between !important;

  width: 72% !important;
  max-width: 440px !important;

  margin-top: 7px !important;
}

.radar-distance-controls[data-premium-locked="true"] #radarDistance {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.radar-distance-controls[data-premium-locked="true"] .distance-labels span:last-child {
  color: #ff8eaf;
  font-weight: 800;
}

.radar-distance-lock-badge {
  display: none;
}


/* PRIVACY HELP */

.radar-slider-row .privacy-help {
  margin-top: 10px !important;
  max-width: 440px !important;
}


/* MOBILE */

@media (max-width: 800px) {

  .radar-slider-row {
    flex-direction: column !important;
  }

  .radar-slider-row .radar-controls {
    width: 100% !important;
  }

  .radar-slider-row input[type="range"],
  .radar-slider-row .distance-labels {
    width: 100% !important;
    max-width: none !important;
  }

}

/* ======================================================
   PROFILE PANEL - FINAL MAP OVERLAY FIX
====================================================== */

.map-card {
  position: relative !important;
  height: 570px !important;
  min-height: 570px !important;
  overflow: hidden !important;
}

#map {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}


/* PROFILE SLIDE-OUT PANEL */

.profile-panel {
  position: absolute !important;

  top: 0 !important;
  right: 0 !important;

  width: 330px !important;
  height: 100% !important;

  margin: 0 !important;

  z-index: 2000 !important;

  display: block !important;

  background-color: #0b0e14 !important;
  background-image:
    var(--profile-background-image, none),
    var(--profile-background,
      linear-gradient(#0b0e14, #0b0e14)) !important;
  background-position: center !important;
  background-size: cover !important;

  border: none !important;
  border-left: 1px solid #313743 !important;

  border-radius: 0 !important;

  overflow: hidden !important;

  box-shadow:
    -12px 0 35px rgba(0, 0, 0, 0.45) !important;

  transform: translateX(105%) !important;

  opacity: 1 !important;
  visibility: visible !important;

  pointer-events: none !important;

  transition:
    transform 0.3s ease !important;
}


/* WHEN VIEW PROFILE IS CLICKED */

.profile-panel.open {
  display: block !important;

  transform: translateX(0) !important;

  pointer-events: auto !important;
}


/* PROFILE CONTENT */

.profile-panel-inner {
  position: relative !important;
  z-index: 1;

  width: 100% !important;
  height: 100% !important;

  padding: 45px 24px 26px !important;

  overflow-y: auto !important;

  text-align: center !important;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 8, 14, 0.48) 0%,
      rgba(5, 8, 14, 0.72) 46%,
      rgba(5, 8, 14, 0.9) 100%);
  pointer-events: none;
}

.profile-panel[data-has-custom-background="true"]::before {
  background:
    linear-gradient(180deg,
      rgba(5, 8, 14, 0.12) 0%,
      rgba(5, 8, 14, 0.27) 48%,
      rgba(5, 8, 14, 0.62) 100%);
}

/* ======================================================
   PREMIUM PROFILE BACKGROUNDS
====================================================== */

.profile-background-field {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(190, 75, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      rgba(255, 49, 91, 0.08),
      rgba(181, 22, 255, 0.08));
}

.profile-background-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-premium-badge {
  padding: 5px 9px;
  border: 1px solid rgba(255, 91, 199, 0.45);
  border-radius: 999px;
  background: rgba(181, 22, 255, 0.18);
  color: #ff9ddd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.profile-premium-badge[hidden] {
  display: none !important;
}

.profile-background-help {
  margin: 7px 0 14px;
  color: #939baa;
  font-size: 12px;
}

.profile-background-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-background-upload-button,
.profile-background-remove-button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.profile-background-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #a74cff;
  background: linear-gradient(135deg, #5f24a5, #b516ff);
  color: #ffffff;
}

.profile-background-upload-button.premium-locked {
  border-color: rgba(255, 255, 255, 0.18);
  background: #171c25;
  color: #aeb6c4;
  cursor: not-allowed;
  filter: saturate(0.55);
}

.profile-background-upload-button[data-premium-locked="true"] {
  cursor: not-allowed;
}

.profile-background-upload-button.premium-locked:hover {
  border-color: #ff315b;
  background: rgba(255, 49, 91, 0.12);
  color: #ffffff;
}

.profile-background-remove-button {
  border: 1px solid #414957;
  background: #171c25;
  color: #bac1cc;
}

.profile-background-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-background-upload-preview {
  position: relative;
  height: 130px;
  margin-top: 12px;
  overflow: hidden;
  border: 2px solid #ff4ea4;
  border-radius: 12px;
  background: #0d1016;
}

.profile-background-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-background-upload-preview span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.82);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
}

/* CLOSE BUTTON */

.profile-close,
#profileClose {
  position: absolute !important;

  top: 14px !important;
  right: 14px !important;

  width: 36px !important;
  height: 36px !important;

  z-index: 10 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;

  border: 1px solid #343b47 !important;

  background: #171b23 !important;

  color: #ffffff !important;

  font-size: 22px !important;

  cursor: pointer !important;
}


/* KEEP MAP FROM GROWING WHEN PROFILE OPENS */

.content {
  align-items: stretch !important;
}

.map-card .profile-panel {
  box-sizing: border-box !important;
}


/* MOBILE */

@media (max-width: 800px) {

  .map-card {
    height: 500px !important;
    min-height: 500px !important;
  }

  .profile-panel {
    width: min(330px, 90%) !important;
  }

}

/* ======================================================
   MAP LOCATION BUTTON
====================================================== */

.radar-locate-button {
  width: 44px !important;
  height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin-top: 8px !important;

  border: 2px solid #ff315b !important;
  border-radius: 10px !important;

  background: #171b22 !important;
  color: #ff315b !important;

  font-size: 27px !important;
  font-weight: 900 !important;

  cursor: pointer !important;

  box-shadow:
    0 0 0 2px rgba(255, 49, 91, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.40) !important;
}

.radar-locate-button:hover {
  background: #ff315b !important;
  color: #ffffff !important;

  box-shadow:
    0 0 18px rgba(255, 49, 91, 0.55) !important;
}

.radar-map-visibility-button {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 49, 91, 0.72) !important;
  border-radius: 9px !important;
  background: rgba(23, 27, 34, 0.94) !important;
  color: #ff8aa5 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
}

.radar-map-visibility-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.radar-map-visibility-button:hover:not(:disabled) {
  background: #ff315b !important;
  color: #ffffff !important;
}

.radar-map-visibility-button:disabled {
  cursor: default !important;
  opacity: 0.86;
}

/* ======================================================
   SEARCH PEOPLE - DIRECTLY UNDER EDIT PROFILE
====================================================== */

.nav .sidebar-search {
  width: calc(100% - 20px) !important;
  margin: 10px 10px 0 !important;
  flex: none !important;
}

.nav .sidebar-search input {
  width: 100% !important;
  min-width: 0 !important;
}

.people-search-results {
  width: calc(100% - 20px);
  margin: 8px 10px 0;
}

/* ======================================================
   PEOPLE SEARCH RESULTS
====================================================== */

.people-search-results {
  width: 100%;
  margin-top: 8px;
  padding: 0 4px;
}

.my-meetups-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #20242c;
}

.my-meetups-toggle {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9ba3af;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.my-meetups-toggle:hover,
.my-meetups-toggle:focus-visible {
  border-color: #2b3445;
  background: #151922;
  color: #ffffff;
}

.my-meetups-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.my-meetups-status {
  padding: 7px 6px;
  color: #8f98a7;
  font-size: 10px;
  line-height: 1.4;
}

.my-meetups-status-error {
  color: #ff91a8;
}

.my-meetups-retry,
.my-meetups-tab {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c0b6ff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.my-meetups-retry {
  margin-top: 4px;
}

.my-meetups-retry:hover,
.my-meetups-retry:focus-visible {
  color: #ffffff;
}

.my-meetup-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(103, 91, 175, 0.48);
  border-radius: 14px;
  background:
    linear-gradient(125deg, rgba(25, 31, 63, 0.92), rgba(13, 17, 34, 0.96));
  box-shadow: 0 10px 28px rgba(2, 4, 14, 0.24);
}

.my-meetup-card-visual {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(139, 122, 235, 0.2);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 126, 180, 0.34), transparent 44%),
    linear-gradient(150deg, #2d1d50, #111b3a 62%, #111329);
}

.my-meetup-card-visual::after {
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.my-meetup-card-visual[data-activity="basketball"] {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 135, 72, 0.44), transparent 42%),
    linear-gradient(150deg, #3c2230, #1e254a);
}

.my-meetup-card-visual[data-activity="soccer"] {
  background:
    radial-gradient(circle at 20% 22%, rgba(84, 224, 167, 0.36), transparent 42%),
    linear-gradient(150deg, #123b41, #171c42);
}

.my-meetup-card-visual[data-activity="tennis"] {
  background:
    radial-gradient(circle at 80% 18%, rgba(224, 239, 87, 0.34), transparent 42%),
    linear-gradient(150deg, #293b2a, #172044);
}

.my-meetup-card-visual[data-activity="park_hangout"] {
  background:
    radial-gradient(circle at 20% 18%, rgba(80, 218, 178, 0.35), transparent 42%),
    linear-gradient(150deg, #163a3a, #18204a);
}

.my-meetup-card-venue-image,
.my-meetup-card-visual-fallback {
  width: 100%;
  height: 100%;
}

.my-meetup-card-venue-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.my-meetup-card-visual-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: #f7efff;
  text-align: center;
}

.my-meetup-card-visual-emoji {
  font-size: 34px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32));
}

.my-meetup-card-visual-label {
  max-width: 120px;
  color: #d5caff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.my-meetup-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 18px 15px;
}

.my-meetup-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.my-meetup-card-activity {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #ff84b5;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.my-meetup-card-emoji {
  font-size: 14px;
  line-height: 1;
}

.my-meetup-card-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-meetup-card-venue,
.my-meetup-card-time,
.my-meetup-card-attendance {
  margin-top: 8px;
  overflow: hidden;
  color: #b8c0d3;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-meetup-card-time {
  color: #f0eaff;
  font-weight: 750;
}

.my-meetup-card-attendance {
  color: #99e3cb;
}

.my-meetup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
}

.my-meetup-card-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 105, 156, 0.5);
  border-radius: 999px;
  background: rgba(255, 49, 91, 0.12);
  color: #ff91b2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.my-meetup-card-actions {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 7px;
}

.my-meetup-card-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #46538a;
  border-radius: 7px;
  background: rgba(35, 42, 81, 0.88);
  color: #d3d2ff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.my-meetup-card-button:hover,
.my-meetup-card-button:focus-visible {
  transform: translateY(-1px);
  border-color: #ff6ca9;
  background: #302650;
  color: #ffffff;
}

.my-meetup-card-management {
  border-color: rgba(255, 109, 145, 0.62);
  background: rgba(104, 31, 71, 0.42);
  color: #ffabc0;
}

.my-meetup-card-management:hover,
.my-meetup-card-management:focus-visible {
  border-color: #ff789b;
  background: rgba(139, 38, 80, 0.62);
}

.my-meetups-overlay {
  position: fixed;
  inset: 0 0 0 185px;
  z-index: 4500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(3, 5, 14, 0.7);
  backdrop-filter: blur(8px);
}

.my-meetups-overlay.open {
  display: flex;
}

.my-meetups-modal {
  display: flex;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(141, 103, 231, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 55, 146, 0.16), transparent 35%),
    linear-gradient(145deg, #111a35 0%, #0b1023 52%, #120e25 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 96, 171, 0.08) inset;
}

.my-meetups-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 27px 29px 20px;
}

.my-meetups-kicker {
  color: #ff75ad;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.my-meetups-modal h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.my-meetups-modal-header p {
  margin-top: 7px;
  color: #aeb8d0;
  font-size: 12px;
  line-height: 1.45;
}

.my-meetups-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(175, 164, 232, 0.32);
  border-radius: 50%;
  background: rgba(16, 22, 49, 0.82);
  color: #e8e4ff;
  font-size: 23px;
  line-height: 1;
}

.my-meetups-close:hover,
.my-meetups-close:focus-visible {
  border-color: #ff6ca9;
  background: rgba(89, 35, 101, 0.75);
  color: #ffffff;
}

.my-meetups-tabs {
  display: flex;
  gap: 7px;
  margin: 0 29px 18px;
  padding: 4px;
  border: 1px solid rgba(128, 132, 194, 0.26);
  border-radius: 11px;
  background: rgba(5, 9, 24, 0.62);
}

.my-meetups-tab {
  min-height: 34px;
  flex: 1 1 0;
  padding: 0 13px;
  border-radius: 8px;
  color: #919db7;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.my-meetups-tab.active,
.my-meetups-tab:hover,
.my-meetups-tab:focus-visible {
  color: #ffffff;
}

.my-meetups-tab.active {
  background: linear-gradient(110deg, #ef397b, #9d35d7);
  box-shadow: 0 5px 17px rgba(194, 45, 143, 0.3);
}

.my-meetups-list {
  display: flex;
  min-height: 0;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 0 29px 29px;
}

.my-meetups-list>.my-meetups-status {
  padding: 38px 12px;
  text-align: center;
}

.my-meetups-empty {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #aeb8d0;
  text-align: center;
}

.my-meetups-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  place-items: center;
  border: 1px solid rgba(255, 111, 174, 0.42);
  border-radius: 50%;
  background: rgba(224, 54, 139, 0.12);
  color: #ff84b5;
  font-size: 30px;
}

.my-meetups-empty strong {
  color: #ffffff;
  font-size: 16px;
}

.my-meetups-empty span:last-child {
  color: #929db8;
  font-size: 12px;
}

@media (max-width: 720px) {
  .my-meetups-overlay {
    inset: 0;
    padding: 14px;
  }

  .my-meetups-modal {
    max-height: calc(100vh - 28px);
    border-radius: 17px;
  }

  .my-meetups-modal-header {
    padding: 22px 20px 17px;
  }

  .my-meetups-tabs {
    margin-right: 20px;
    margin-left: 20px;
  }

  .my-meetups-list {
    padding-right: 20px;
    padding-left: 20px;
  }

  .my-meetup-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .my-meetup-card-visual {
    min-height: 165px;
  }

  .my-meetup-card-content {
    padding: 14px;
  }

  .my-meetup-card-heading {
    flex-direction: column;
    gap: 5px;
  }

  .my-meetup-card-title {
    font-size: 14px;
  }

  .my-meetup-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-meetup-card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .my-meetup-card-button {
    flex: 1 1 0;
    padding: 0 7px;
  }
}

@media (max-width: 460px) {
  .my-meetup-card {
    display: block;
  }

  .my-meetup-card-visual {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 122, 235, 0.2);
  }
}

.people-search-result {
  width: 100%;
  padding: 9px 8px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: none;
  border-bottom: 1px solid #20242c;
  border-radius: 9px;

  background: transparent;
  color: white;

  text-align: left;
  cursor: pointer;
}

.people-search-result:hover {
  background: #171b23;
}

.people-search-photo {
  width: 38px;
  height: 38px;

  min-width: 38px;

  border-radius: 50%;
  object-fit: cover;

  border: 2px solid #ff315b;
}

.people-search-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.people-search-info strong {
  font-size: 12px;
  color: #ffffff;
}

.people-search-info span {
  font-size: 10px;
  color: #8d95a2;
}

.people-search-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(7, 9, 13, 0.7);
}

.people-search-status-dot.online {
  background: #32d583;
  border-color: #7af0ad;
}

.people-search-status-dot.offline {
  background: #4b5563;
  border-color: #697586;
}

.people-search-empty {
  padding: 12px 8px;
  color: #777f8c;
  font-size: 11px;
  text-align: center;
}

/* ======================================================
   PRIVATE MESSAGE PHOTO
====================================================== */

.thread-photo-btn {
  position: relative;
  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 10px;

  background: #1b2029;
  color: #ffffff;

  font-size: 20px;
  cursor: pointer;
}

.thread-photo-btn.premium-locked {
  border: 1px solid rgba(255, 49, 91, 0.42);
  background: rgba(255, 49, 91, 0.08);
  color: #ff9aae;
}

.thread-photo-lock {
  position: absolute;
  right: 3px;
  bottom: 2px;
  padding: 2px 3px;
  border: 1px solid rgba(255, 209, 222, 0.72);
  border-radius: 5px;
  background: #d92b5b;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.thread-photo-btn:hover {
  background: #252b36;
}

.thread-photo-btn.premium-locked:hover {
  border-color: #ff315b;
  background: rgba(255, 49, 91, 0.18);
}

.thread-photo-btn.premium-locked:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.thread-photo-lock[hidden] {
  display: none !important;
}

.thread-message-photo {
  display: block;

  width: auto;
  max-width: 280px;
  max-height: 320px;

  object-fit: cover;

  border-radius: 12px;

  cursor: pointer;
}

/* ======================================================
   PRIVATE MESSAGE PHOTO VIEWER
====================================================== */

.thread-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.thread-message-photo {
  display: block;
  max-width: 280px;
  max-height: 320px;
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
}

.thread-photo-download {
  display: inline-block;
  width: fit-content;

  color: white;
  text-decoration: none;

  font-size: 12px;
  font-weight: 700;

  opacity: 0.8;
}

.thread-photo-download:hover {
  opacity: 1;
  text-decoration: underline;
}


/* FULL SCREEN PHOTO */

.message-photo-viewer {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(0, 0, 0, 0.9);
}

.message-photo-viewer.open {
  display: flex;
}

.message-photo-viewer-inner {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 90vw;
  max-height: 90vh;
}

.message-photo-viewer-image {
  max-width: 90vw;
  max-height: 80vh;

  object-fit: contain;

  border-radius: 12px;
}

.message-photo-viewer-close {
  position: absolute;

  top: -18px;
  right: -18px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #ff315b;
  color: white;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.message-photo-viewer-download {
  margin-top: 14px;

  padding: 10px 18px;

  border-radius: 9px;

  background: #ff315b;
  color: white;

  text-decoration: none;
  font-weight: 800;
}

/* ======================================================
   CITY CHAT CLICKABLE NAMES
====================================================== */

.chat-person-name {
  color: #ff315b !important;
  cursor: pointer !important;
  font-weight: 800;
}

.chat-person-name:hover,
.city-person-name:hover {
  color: #ff6b87 !important;
  text-decoration: underline;
}

.city-person-name {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff315b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.city-chat-rendered-message .city-you-avatar[data-city-profile] {
  cursor: pointer;
}

/* ======================================================
   PREMIUM PAGE
====================================================== */

.premium-view {
  display: none;
  padding: 32px;
}

.premium-view.active {
  display: block;
}

.premium-page {
  max-width: 1180px;
  margin: 0 auto;
}

.premium-hero {
  text-align: center;
  padding: 40px 20px 30px;
}

.premium-crown {
  font-size: 44px;
  margin-bottom: 10px;
}

.premium-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff315b;
  margin-bottom: 10px;
}

.premium-hero h2 {
  margin: 0;
  font-size: 42px;
  color: #ffffff;
}

.premium-hero p {
  max-width: 680px;
  margin: 14px auto 0;
  color: #aab0bb;
  font-size: 16px;
  line-height: 1.6;
}

.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.premium-feature-card {
  background: #10141b;
  border: 1px solid #272d37;
  border-radius: 16px;
  padding: 24px;
  min-height: 200px;
}

.premium-feature-icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.premium-feature-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
}

.premium-feature-card p {
  margin: 0;
  color: #9ea5b1;
  line-height: 1.5;
  font-size: 14px;
}

.premium-comparison {
  margin-top: 28px;
  background: #0e1218;
  border: 1px solid #272d37;
  border-radius: 16px;
  overflow: hidden;
}

.premium-comparison h3 {
  margin: 0;
  padding: 22px;
  color: #ffffff;
  font-size: 20px;
  border-bottom: 1px solid #272d37;
}

.premium-comparison-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid #20252e;
  color: #c7ccd4;
}

.premium-comparison-row:last-child {
  border-bottom: none;
}

.premium-comparison-header {
  background: #151a22;
  color: #ffffff;
  font-weight: 800;
}

.premium-comparison-row span:nth-child(2),
.premium-comparison-row span:nth-child(3) {
  text-align: center;
}

.premium-check {
  color: #ff315b;
  font-weight: 900;
}

.premium-plan-card {
  max-width: 520px;
  margin: 34px auto 50px;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(145deg,
      rgba(255, 49, 91, 0.16),
      rgba(17, 21, 29, 0.95));
  border: 1px solid #ff315b;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.premium-plan-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ff315b;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.premium-plan-card h3 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: 24px;
}

.premium-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.premium-price-dollar {
  color: #ffffff;
  font-size: 22px;
  margin-top: 8px;
}

.premium-price-amount {
  color: #ffffff;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.premium-price-period {
  align-self: flex-end;
  padding-bottom: 6px;
  color: #9ea5b1;
  font-size: 14px;
}

.premium-cancel-text {
  margin: 12px 0 18px;
  color: #9ea5b1;
}

.premium-upgrade-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  background: #ff315b;
  color: white;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.premium-upgrade-btn:hover {
  background: #ff5475;
}

.premium-test-note {
  margin-top: 12px;
  color: #777f8c;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .premium-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .premium-view {
    padding: 20px;
  }

  .premium-feature-grid {
    grid-template-columns: 1fr;
  }

  .premium-comparison-row {
    grid-template-columns: 1fr 90px 90px;
    padding: 0 14px;
    font-size: 13px;
  }

  .premium-hero h2 {
    font-size: 32px;
  }
}

/* ======================================================
   TRAVEL MODE
====================================================== */

.travel-mode-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #2d3440;
  border-radius: 18px;
  background: rgba(15, 18, 24, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.travel-mode-header {
  display: block;
  margin-bottom: 0;
}

.travel-mode-eyebrow {
  margin-bottom: 6px;
  color: #ff315b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.travel-mode-header h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 22px;
}

.travel-mode-header p {
  margin: 0;
  color: #9ba4b2;
  font-size: 14px;
}

.travel-premium-badge {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff315b, #b516ff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.travel-mode-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
}

#travelCity {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #353c48;
  border-radius: 12px;
  background: #171b23;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

#travelCity:focus {
  border-color: #ff315b;
}

.travel-mode-button {
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff315b, #ff2f92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.travel-mode-button:hover {
  transform: translateY(-1px);
}

.travel-mode-button.premium-locked {
  background: linear-gradient(135deg, #b51d46, #9b2474);
}

.travel-mode-button.premium-locked:hover {
  background: linear-gradient(135deg, #d32655, #b42b86);
}

.travel-mode-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.travel-button-lock-badge {
  display: none;
  align-items: center;
  margin-left: 5px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 209, 222, 0.7);
  border-radius: 999px;
  background: #d92b5b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2px;
}

@media (max-width: 700px) {
  .travel-mode-controls {
    flex-direction: column;
  }

  .travel-mode-button {
    width: 100%;
  }
}

/* ======================================================
   TRAVEL MODE SEARCH - FINAL LOOK
====================================================== */

.travel-mode-controls {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.travel-city-search-wrap {
  position: relative;
  width: 390px;
  flex: 0 0 390px;
}

.travel-city-lock-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  transform: translateY(-50%);
  padding: 4px 7px;
  border: 1px solid rgba(255, 209, 222, 0.7);
  border-radius: 999px;
  background: #d92b5b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.travel-city-lock-badge[hidden],
.travel-button-lock-badge[hidden] {
  display: none !important;
}

#travelCitySearch {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 108px 0 16px !important;

  border: 1px solid #ff315b !important;
  border-radius: 12px !important;

  background: #151922 !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-family: inherit !important;

  outline: none !important;
}

#travelCitySearch.premium-locked {
  border-color: rgba(255, 49, 91, 0.45) !important;
  background: rgba(255, 49, 91, 0.08) !important;
  color: #ff9aae !important;
  cursor: pointer;
}

#travelCitySearch::placeholder {
  color: #8f98a7 !important;
}

#travelCitySearch:focus {
  border-color: #ff315b !important;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.12) !important;
}

#travelCityResults {
  position: absolute !important;
  top: 54px !important;
  left: 0 !important;
  right: 0 !important;

  z-index: 5000 !important;

  display: none;

  max-height: 260px !important;
  overflow-y: auto !important;

  border: 1px solid #343b47 !important;
  border-radius: 12px !important;

  background: #151922 !important;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

#travelCityResults.open {
  display: block !important;
}

#travelCityResults .travel-city-result {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  width: 100% !important;
  min-height: 46px !important;

  padding: 12px 15px !important;

  border: none !important;
  border-bottom: 1px solid #292f39 !important;

  border-radius: 0 !important;

  background: #151922 !important;
  color: #ffffff !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;

  text-align: left !important;

  cursor: pointer !important;
}

.travel-city-flag {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.travel-city-flag img {
  display: block;
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.travel-city-label {
  min-width: 0;
}

#travelCityResults .travel-city-result:last-child {
  border-bottom: none !important;
}

#travelCityResults .travel-city-result:hover {
  background: #202630 !important;
  color: #ff315b !important;
}

.travel-mode-button {
  flex-shrink: 0;
  height: 48px !important;
  padding: 0 22px !important;
}

/* =========================================
   RADARMEET LOGIN SCREEN
   ========================================= */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;

  width: 100%;
  height: 100vh;

  background:
    radial-gradient(circle at center, rgba(255, 49, 91, 0.10), transparent 45%),
    #07090d;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  padding: 30px;
}

/* ACTIVITY IMAGE CARDS */

.auth-image-card {
  position: relative;
  width: 280px;
  height: 190px;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255, 49, 91, 0.45);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(255, 49, 91, 0.12);

  background: #11151c;
}

.auth-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DARK GRADIENT OVER PHOTO */

.auth-image-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to top,
      rgba(5, 7, 10, 0.95) 0%,
      rgba(5, 7, 10, 0.25) 50%,
      transparent 75%);

  pointer-events: none;
}

/* ACTIVITY NAME */

.auth-image-label {
  position: absolute;
  left: 18px;
  bottom: 15px;

  z-index: 2;

  color: #ffffff;

  font-size: 18px;
  font-weight: 800;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* BOWLING CARD */

.auth-bowling {
  transform: rotate(-2deg);
}

/* =========================================
   RADARMEET FULL LOGIN / SIGNUP LAYOUT
   ========================================= */

.auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  width: 100% !important;
  min-height: 100vh !important;

  display: grid !important;
  grid-template-columns: minmax(210px, 280px) minmax(420px, 520px) minmax(210px, 280px) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 34px !important;

  padding: 32px 32px 90px !important;

  background:
    radial-gradient(circle at center, rgba(255, 49, 91, 0.11), transparent 35%),
    radial-gradient(circle at 20% 50%, rgba(92, 58, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(255, 49, 91, 0.07), transparent 30%),
    #07090d !important;

  overflow-y: auto !important;
}


/* =========================================
   LEFT / RIGHT IMAGE COLUMNS
   ========================================= */

.auth-activity-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.auth-image-card {
  position: relative !important;

  width: 100% !important;
  height: 155px !important;

  border-radius: 18px !important;
  overflow: hidden !important;

  border: 1px solid rgba(255, 49, 91, 0.52) !important;

  background: #11151c !important;

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 49, 91, 0.08) !important;

  transform: none !important;
}

.auth-image-card img {
  width: 100% !important;
  height: 100% !important;

  display: block !important;

  object-fit: cover !important;
  object-position: center !important;
}

.auth-image-card::after {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;

  background:
    linear-gradient(to top,
      rgba(4, 5, 8, 0.97) 0%,
      rgba(4, 5, 8, 0.36) 46%,
      rgba(4, 5, 8, 0.02) 76%) !important;

  pointer-events: none !important;
}

.auth-image-label {
  position: absolute !important;

  left: 16px !important;
  bottom: 13px !important;

  z-index: 3 !important;

  color: #ffffff !important;

  font-size: 16px !important;
  font-weight: 800 !important;

  letter-spacing: 0.2px !important;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.95) !important;
}


/* =========================================
   CENTER LOGIN AREA
   ========================================= */

.auth-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
}

.auth-card {
  width: 100% !important;
  max-width: 500px !important;

  padding: 32px 34px 28px !important;

  border-radius: 26px !important;

  border: 1px solid rgba(255, 49, 91, 0.65) !important;

  background:
    linear-gradient(180deg,
      rgba(20, 24, 32, 0.98),
      rgba(10, 12, 18, 0.98)) !important;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.60),
    0 0 40px rgba(255, 49, 91, 0.12) !important;

  backdrop-filter: blur(18px) !important;
}


/* =========================================
   LOGO
   ========================================= */

.auth-logo-icon {
  width: 58px !important;
  height: 58px !important;

  margin: 0 auto 8px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 18px !important;

  border: 1px solid #ff315b !important;

  color: #ff315b !important;

  font-size: 34px !important;
  font-weight: 900 !important;

  box-shadow:
    0 0 22px rgba(255, 49, 91, 0.28) !important;
}

.auth-logo {
  text-align: center !important;

  color: #ffffff !important;

  font-size: 31px !important;
  font-weight: 900 !important;

  letter-spacing: 1px !important;
}

.auth-logo span {
  color: #ff315b !important;
}

.auth-tagline {
  margin-top: 5px !important;
  margin-bottom: 7px !important;

  text-align: center !important;

  color: #8d95a4 !important;

  font-size: 12px !important;
  font-weight: 800 !important;

  letter-spacing: 2px !important;
}

.auth-join-line {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  margin-bottom: 22px !important;

  color: #a6adba !important;

  font-size: 12px !important;
  font-weight: 600 !important;
}

.auth-join-line span:first-child {
  color: #ff315b !important;
  font-weight: 800 !important;
}

.auth-join-separator {
  color: #737b89 !important;
}


/* =========================================
   LOGIN / SIGNUP TABS
   ========================================= */

.auth-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;

  padding: 4px !important;
  margin-bottom: 22px !important;

  border-radius: 12px !important;

  background: #0d1016 !important;

  border: 1px solid #242a34 !important;
}

.auth-tab {
  height: 42px !important;

  border: none !important;
  border-radius: 9px !important;

  background: transparent !important;

  color: #8e96a4 !important;

  font-size: 14px !important;
  font-weight: 800 !important;

  cursor: pointer !important;
}

.auth-tab.active {
  background:
    linear-gradient(135deg, #ff315b, #d9254b) !important;

  color: #ffffff !important;

  box-shadow:
    0 5px 18px rgba(255, 49, 91, 0.28) !important;
}


/* =========================================
   FORM
   ========================================= */

.auth-form {
  display: flex !important;
  flex-direction: column !important;

  gap: 9px !important;
}

.auth-form-hidden {
  display: none !important;
}

.auth-form label {
  margin-top: 4px !important;

  color: #d8dce4 !important;

  font-size: 13px !important;
  font-weight: 700 !important;
}

.auth-form>input {
  width: 100% !important;
  height: 46px !important;

  padding: 0 14px !important;

  border-radius: 11px !important;

  border: 1px solid #2d3440 !important;

  outline: none !important;

  background: #0c0f15 !important;

  color: #ffffff !important;

  font-size: 14px !important;
}

.auth-form>input:focus {
  border-color: #ff315b !important;

  box-shadow:
    0 0 0 3px rgba(255, 49, 91, 0.10) !important;
}

.auth-form>input::placeholder {
  color: #666f7c !important;
}


/* =========================================
   REMEMBER + FORGOT PASSWORD
   ========================================= */

.auth-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.remember-login {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;

  margin: 0 !important;

  color: #9ca3af !important;

  font-size: 12px !important;
  font-weight: 600 !important;
}

.remember-login input {
  accent-color: #ff315b !important;
}

.forgot-password {
  border: none !important;

  background: transparent !important;

  color: #ff5576 !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
}


/* =========================================
   MAIN BUTTON
   ========================================= */

.auth-main-button {
  width: 100% !important;
  height: 47px !important;

  margin-top: 6px !important;

  border: none !important;
  border-radius: 11px !important;

  background:
    linear-gradient(135deg, #ff315b, #d92149) !important;

  color: #ffffff !important;

  font-size: 15px !important;
  font-weight: 900 !important;

  cursor: pointer !important;

  box-shadow:
    0 8px 25px rgba(255, 49, 91, 0.25) !important;
}

.auth-main-button:hover {
  filter: brightness(1.08) !important;
}


/* =========================================
   DIVIDER
   ========================================= */

.auth-divider {
  position: relative !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 10px 0 8px !important;

  color: #687180 !important;

  font-size: 11px !important;
  font-weight: 700 !important;
}

.auth-divider::before,
.auth-divider::after {
  content: "" !important;

  flex: 1 !important;

  height: 1px !important;

  background: #272d37 !important;
}

.auth-divider span {
  padding: 0 12px !important;
}


/* =========================================
   GOOGLE BUTTON
   ========================================= */

.google-login-button {
  width: 100% !important;
  height: 46px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  border: 1px solid #303743 !important;
  border-radius: 11px !important;

  background: #12161d !important;

  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
}

.google-login-button:hover {
  background: #181d26 !important;
}

.google-g {
  width: 24px !important;
  height: 24px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;

  background: #ffffff !important;

  color: #4285f4 !important;

  font-weight: 900 !important;
}


/* =========================================
   SIGNUP TERMS
   ========================================= */

.auth-terms-check {
  display: flex !important;
  align-items: flex-start !important;

  gap: 9px !important;

  margin-top: 7px !important;

  color: #9098a5 !important;

  font-size: 11px !important;
  line-height: 1.45 !important;
}

.auth-terms-check input {
  margin-top: 2px !important;

  accent-color: #ff315b !important;
}

.auth-inline-legal-link {
  padding: 0 !important;

  border: none !important;

  background: transparent !important;

  color: #ff5576 !important;

  font: inherit !important;
  font-weight: 800 !important;
  text-decoration: underline !important;

  cursor: pointer !important;
}

.auth-inline-legal-link:hover {
  color: #ff7a94 !important;
}


/* =========================================
   18+ + FOOTER
   ========================================= */

.auth-age-notice {
  margin-top: 20px !important;

  text-align: center !important;

  color: #767f8d !important;

  font-size: 11px !important;
}

.auth-footer-links {
  margin-top: 9px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 8px !important;

  color: #4f5867 !important;
}

.auth-footer-links button {
  border: none !important;

  background: transparent !important;

  color: #7e8794 !important;

  font-size: 11px !important;

  cursor: pointer !important;
}

/* =========================================
   PASSWORD RESET
   ========================================= */

.password-reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(10px);
}

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

.password-reset-overlay.open {
  display: flex;
}

.password-reset-modal {
  position: relative;
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid rgba(255, 49, 91, 0.7);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(23, 27, 37, 0.99), rgba(10, 12, 18, 0.99));
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.72),
    0 0 55px rgba(255, 30, 80, 0.18);
}

.password-reset-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d8dce4;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.password-reset-kicker {
  margin-bottom: 8px;
  color: #ff5576;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.password-reset-modal h2 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
}

.password-reset-modal p {
  margin: 10px 0 22px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.password-reset-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.password-reset-form label {
  margin-top: 4px;
  color: #d8dce4;
  font-size: 13px;
  font-weight: 700;
}

.password-reset-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #2d3440;
  border-radius: 11px;
  outline: none;
  background: #0c0f15;
  color: #ffffff;
  font-size: 14px;
}

.password-reset-form input:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.1);
}

.password-reset-form .auth-main-button:disabled,
.forgot-password:disabled {
  cursor: wait !important;
  opacity: 0.65;
}

.profile-safety-actions {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.profile-safety-button {
  flex: 1;
  min-height: 38px;
  border: 1px solid #353d4b;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c0cc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.profile-safety-button:hover {
  border-color: #ff5576;
  color: #ffffff;
}

.profile-report-button {
  border-color: rgba(255, 49, 91, 0.45);
  color: #ff7890;
}

.report-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(10px);
}

.report-overlay.open {
  display: flex;
}

.report-modal {
  position: relative;
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(255, 49, 91, 0.68);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23, 27, 37, 0.99), rgba(10, 12, 18, 0.99));
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.72), 0 0 55px rgba(255, 30, 80, 0.18);
}

.report-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d8dce4;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.report-kicker {
  margin-bottom: 8px;
  color: #ff5576;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.report-modal h2 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
}

.report-modal p {
  margin: 10px 0 22px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.report-form label {
  margin-top: 4px;
  color: #d8dce4;
  font-size: 13px;
  font-weight: 700;
}

.report-form label span {
  color: #757f8c;
  font-weight: 500;
}

.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid #2d3440;
  border-radius: 11px;
  outline: none;
  background: #0c0f15;
  color: #ffffff;
  font-size: 14px;
}

.report-form select {
  height: 46px;
  padding: 0 12px;
}

.report-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.report-form select:focus,
.report-form textarea:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.1);
}

.meetup-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(10px);
}

.meetup-create-overlay.open {
  display: flex;
}

.meetup-create-modal {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255, 49, 91, 0.68);
  border-radius: 22px;
  background: linear-gradient(145deg,
      rgba(23, 27, 37, 0.99),
      rgba(10, 12, 18, 0.99));
  color: #ffffff;
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.72),
    0 0 55px rgba(255, 30, 80, 0.18);
}

.meetup-create-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d8dce4;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.meetup-create-close:hover {
  background: #ff315b;
  color: #ffffff;
}

.meetup-create-kicker {
  margin-bottom: 8px;
  color: #ff5576;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.meetup-create-modal h2 {
  margin: 0;
  font-size: 25px;
}

.meetup-create-intro {
  margin: 10px 0 20px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.meetup-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meetup-create-place-summary,
.meetup-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meetup-create-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.meetup-create-field label {
  color: #d8dce4;
  font-size: 13px;
  font-weight: 700;
}

.meetup-create-field label span {
  color: #757f8c;
  font-weight: 500;
}

.meetup-create-field input,
.meetup-create-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2d3440;
  border-radius: 10px;
  outline: none;
  background: #0c0f15;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
}

.meetup-create-field input {
  height: 44px;
  padding: 0 12px;
}

.meetup-create-field textarea {
  min-height: 100px;
  padding: 11px 12px;
  resize: vertical;
}

.meetup-create-field input:focus,
.meetup-create-field textarea:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.1);
}

.meetup-create-field input[readonly] {
  background: #171b23;
  color: #f1f3f7;
  cursor: not-allowed;
}

.meetup-create-error {
  min-height: 18px;
  color: #ff7890;
  font-size: 12px;
  line-height: 1.4;
}

.meetup-create-status {
  min-height: 18px;
  color: #31e6b6;
  font-size: 12px;
  line-height: 1.4;
}

.meetup-create-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.meetup-create-cancel,
.meetup-create-submit {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.meetup-create-cancel {
  border: 1px solid #303641;
  background: #171b22;
  color: #ffffff;
}

.meetup-create-submit {
  border: 1px solid #ff315b;
  background: #ff315b;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 49, 91, 0.2);
}

@media (max-width: 600px) {
  .meetup-create-modal {
    padding: 26px 20px 20px;
  }

  .meetup-create-place-summary,
  .meetup-create-grid {
    grid-template-columns: 1fr;
  }
}

.meetup-safety-overlay {
  position: fixed;
  inset: 0;
  z-index: 100004;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 9, 0.84);
  backdrop-filter: blur(10px);
}

.meetup-safety-overlay.open {
  display: flex;
}

.meetup-safety-modal {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 193, 95, 0.72);
  border-radius: 20px;
  background: linear-gradient(145deg,
      rgba(28, 30, 39, 0.99),
      rgba(11, 13, 19, 0.99));
  color: #ffffff;
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.75),
    0 0 50px rgba(255, 193, 95, 0.12);
}

.meetup-safety-kicker {
  margin-bottom: 8px;
  color: #ffc15f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.meetup-safety-modal h2 {
  margin: 0;
  font-size: 24px;
}

.meetup-safety-intro {
  margin: 10px 0 16px;
  color: #b9bfca;
  font-size: 13px;
  line-height: 1.5;
}

.meetup-safety-notice {
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(255, 193, 95, 0.38);
  border-radius: 12px;
  background: rgba(255, 193, 95, 0.08);
  color: #fff3d9;
  font-size: 14px;
  line-height: 1.65;
}

.meetup-safety-error {
  min-height: 18px;
  margin-top: 12px;
  color: #ff8b9e;
  font-size: 12px;
  line-height: 1.4;
}

.meetup-safety-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.meetup-safety-cancel,
.meetup-safety-continue {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.meetup-safety-cancel {
  border: 1px solid #39414f;
  background: #171b22;
  color: #d8dce4;
}

.meetup-safety-continue {
  border: 1px solid #ffc15f;
  background: #ffc15f;
  color: #1b1409;
  box-shadow: 0 8px 20px rgba(255, 193, 95, 0.18);
}

.meetup-safety-cancel:hover,
.meetup-safety-cancel:focus-visible {
  border-color: #7b8492;
  color: #ffffff;
}

.meetup-safety-continue:hover,
.meetup-safety-continue:focus-visible {
  background: #ffd486;
  border-color: #ffd486;
}

.meetup-safety-cancel:disabled,
.meetup-safety-continue:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 600px) {
  .meetup-safety-modal {
    padding: 24px 20px 20px;
  }

  .meetup-safety-actions {
    flex-direction: column-reverse;
  }

  .meetup-safety-cancel,
  .meetup-safety-continue {
    width: 100%;
  }
}


/* =========================================
   BOTTOM FEATURES
   ========================================= */

.auth-features {
  position: absolute !important;

  left: 50% !important;
  bottom: 22px !important;

  transform: translateX(-50%) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 42px !important;

  width: 100% !important;
}

.auth-feature {
  display: flex !important;
  align-items: center !important;

  gap: 8px !important;

  color: #7f8794 !important;

  font-size: 12px !important;
}

.auth-feature span {
  font-size: 17px !important;
}

.auth-feature strong {
  color: #aab1bc !important;

  font-weight: 700 !important;
}


/* =========================================
   MOBILE / SMALLER SCREENS
   ========================================= */

@media (max-width: 1180px) {

  .auth-screen {
    grid-template-columns: 190px minmax(400px, 500px) 190px !important;

    gap: 18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .auth-image-card {
    height: 135px !important;
  }

  .auth-image-label {
    font-size: 14px !important;
  }
}


@media (max-width: 900px) {

  .auth-screen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 24px !important;
  }

  .auth-activity-column {
    display: none !important;
  }

  .auth-center {
    max-width: 500px !important;
  }

  .auth-features {
    display: none !important;
  }
}


@media (max-width: 520px) {

  .auth-screen {
    padding: 14px !important;
    align-items: flex-start !important;
  }

  .auth-card {
    margin-top: 15px !important;

    padding: 26px 20px 24px !important;

    border-radius: 20px !important;
  }

  .auth-logo {
    font-size: 27px !important;
  }

  .auth-logo-icon {
    width: 52px !important;
    height: 52px !important;

    font-size: 30px !important;
  }
}

/* =========================================================
   RADARMEET LOGIN - CINEMATIC COLLAGE UPGRADE
   ========================================================= */

.auth-screen {
  grid-template-columns: 320px 520px 320px !important;
  gap: 22px !important;

  background:
    radial-gradient(circle at 50% 42%, rgba(255, 35, 85, 0.17), transparent 32%),
    radial-gradient(circle at 18% 45%, rgba(91, 62, 255, 0.12), transparent 30%),
    radial-gradient(circle at 82% 45%, rgba(255, 35, 85, 0.10), transparent 30%),
    linear-gradient(180deg, #05070b 0%, #08090e 55%, #050609 100%) !important;
}


/* BIGGER, MORE CINEMATIC PHOTO CARDS */

.auth-image-card {
  height: 165px !important;

  border-radius: 20px !important;

  border: 1px solid rgba(255, 45, 90, 0.72) !important;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(255, 30, 85, 0.15) !important;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}

.auth-image-card:hover {
  transform: scale(1.035) !important;

  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.75),
    0 0 38px rgba(255, 30, 85, 0.28) !important;
}


/* LEFT SIDE FLOATING COLLAGE */

.auth-left-column {
  gap: 14px !important;
}

.auth-left-column .auth-image-card:nth-child(1) {
  transform: translateX(24px) rotate(-2.2deg) !important;
}

.auth-left-column .auth-image-card:nth-child(2) {
  transform: translateX(-8px) rotate(1.3deg) !important;
}

.auth-left-column .auth-image-card:nth-child(3) {
  transform: translateX(18px) rotate(-1.1deg) !important;
}

.auth-left-column .auth-image-card:nth-child(4) {
  transform: translateX(-4px) rotate(1.8deg) !important;
}


/* RIGHT SIDE FLOATING COLLAGE */

.auth-right-column {
  gap: 14px !important;
}

.auth-right-column .auth-image-card:nth-child(1) {
  transform: translateX(-22px) rotate(2deg) !important;
}

.auth-right-column .auth-image-card:nth-child(2) {
  transform: translateX(8px) rotate(-1.5deg) !important;
}

.auth-right-column .auth-image-card:nth-child(3) {
  transform: translateX(-16px) rotate(1deg) !important;
}

.auth-right-column .auth-image-card:nth-child(4) {
  transform: translateX(5px) rotate(-1.8deg) !important;
}


/* KEEP HOVER EFFECT WHILE PRESERVING ROTATION */

.auth-left-column .auth-image-card:hover,
.auth-right-column .auth-image-card:hover {
  filter: brightness(1.12) saturate(1.08) !important;
}


/* IMAGE LABELS BIGGER */

.auth-image-label {
  left: 18px !important;
  bottom: 15px !important;

  font-size: 18px !important;
  font-weight: 900 !important;

  letter-spacing: 0.3px !important;

  text-shadow:
    0 3px 10px #000,
    0 0 8px rgba(255, 255, 255, 0.18) !important;
}


/* CENTER CARD - MORE PREMIUM / NEON */

.auth-card {
  position: relative !important;

  padding: 32px 36px 28px !important;

  border-radius: 28px !important;

  border: 1px solid rgba(255, 40, 85, 0.8) !important;

  background:
    linear-gradient(145deg,
      rgba(23, 27, 37, 0.98),
      rgba(10, 12, 18, 0.99)) !important;

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.72),
    0 0 55px rgba(255, 30, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}


/* EXTRA GLOW BEHIND CENTER CARD */

.auth-card::before {
  content: "" !important;

  position: absolute !important;

  inset: -45px !important;

  z-index: -1 !important;

  border-radius: 60px !important;

  background:
    radial-gradient(circle,
      rgba(255, 40, 90, 0.20),
      transparent 65%) !important;

  filter: blur(22px) !important;

  pointer-events: none !important;
}


/* LOGO MORE DRAMATIC */

.auth-logo-icon {
  width: 64px !important;
  height: 64px !important;

  border-radius: 20px !important;

  background:
    linear-gradient(145deg,
      rgba(255, 49, 91, 0.15),
      rgba(255, 49, 91, 0.03)) !important;

  box-shadow:
    0 0 30px rgba(255, 49, 91, 0.35),
    inset 0 0 18px rgba(255, 49, 91, 0.08) !important;
}

.auth-logo {
  font-size: 34px !important;
  letter-spacing: 2px !important;
}

.auth-tagline {
  margin-bottom: 26px !important;
}


/* MAKE LOGIN BUTTON POP MORE */

.auth-main-button {
  height: 50px !important;

  background:
    linear-gradient(90deg,
      #ff315b,
      #ff2354,
      #e81949) !important;

  box-shadow:
    0 10px 28px rgba(255, 35, 80, 0.34) !important;
}


/* DARK GLASS INPUTS */

.auth-form>input {
  height: 48px !important;

  background:
    rgba(8, 11, 16, 0.92) !important;

  border:
    1px solid rgba(107, 118, 136, 0.35) !important;
}


/* BOTTOM FEATURES MORE VISIBLE */

.auth-features {
  bottom: 18px !important;

  gap: 65px !important;
}

.auth-feature {
  padding: 9px 15px !important;

  border-radius: 20px !important;

  background:
    rgba(13, 16, 22, 0.72) !important;

  border:
    1px solid rgba(255, 255, 255, 0.05) !important;

  backdrop-filter: blur(10px) !important;
}

.auth-feature strong {
  color: #c8cdd6 !important;
}

/* The signup form can grow to include human verification. Keep the
   decorative feature row from covering those interactive controls. */
.auth-screen.signup-active .auth-features {
  display: none !important;
}


/* RESPONSIVE */

@media (max-width: 1250px) {

  .auth-screen {
    grid-template-columns: 240px 500px 240px !important;
  }

  .auth-image-card {
    height: 145px !important;
  }

}


@media (max-width: 950px) {

  .auth-activity-column {
    display: none !important;
  }

  .auth-screen {
    display: flex !important;
  }

  .auth-card {
    max-width: 500px !important;
  }

}

/* =========================================
   LOG OUT BUTTON
   ========================================= */

.logout-button {
  height: 42px !important;
  padding: 0 20px !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 49, 91, 0.08) !important;
  border: 1px solid #ff315b !important;
  border-radius: 9px !important;

  color: #ff4f72 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;

  cursor: pointer !important;
  transition: 0.2s ease !important;
}

.logout-button:hover {
  background: #ff315b !important;
  color: white !important;
  box-shadow: 0 0 18px rgba(255, 49, 91, 0.35) !important;
}

/* =========================================
   RADARMEET TERMS / PRIVACY
========================================= */

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.legal-overlay.open {
  display: flex;
}

body.legal-open {
  overflow: hidden;
}

.legal-modal {
  position: relative;

  width: min(760px, 96vw);
  max-height: 86vh;

  padding: 28px;

  border: 1px solid rgba(255, 49, 91, 0.65);
  border-radius: 22px;

  background:
    linear-gradient(145deg,
      rgba(20, 24, 32, 0.99),
      rgba(9, 11, 16, 0.99));

  color: #ffffff;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.72),
    0 0 40px rgba(255, 49, 91, 0.14);

  overflow: hidden;
}

.legal-close {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #343b47;
  border-radius: 50%;

  background: #171b23;
  color: #ffffff;

  font-size: 22px;
  cursor: pointer;

  z-index: 5;
}

.legal-close:hover {
  background: #ff315b;
  border-color: #ff315b;
}

.legal-tabs {
  display: flex;
  gap: 8px;

  margin-right: 48px;
  margin-bottom: 20px;
}

.legal-tab {
  padding: 11px 18px;

  border: 1px solid #303641;
  border-radius: 10px;

  background: #0b0e13;
  color: #8e96a4;

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}

.legal-tab.active {
  background:
    linear-gradient(135deg,
      #ff315b,
      #d92149);

  border-color: #ff315b;
  color: #ffffff;

  box-shadow:
    0 6px 18px rgba(255, 49, 91, 0.22);
}

.legal-content {
  max-height: 68vh;
  overflow-y: auto;

  padding-right: 15px;

  color: #b6bdc9;

  font-size: 14px;
  line-height: 1.65;
}

.legal-content h2 {
  margin: 0 0 4px;

  color: #ffffff;

  font-size: 26px;
}

.legal-content h3 {
  margin-top: 23px;
  margin-bottom: 7px;

  color: #ff5576;

  font-size: 16px;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-updated {
  color: #697382 !important;
  font-size: 12px;
}

.legal-hidden {
  display: none !important;
}

/* nicer scrollbar */

.legal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-content::-webkit-scrollbar-track {
  background: #0c0f14;
  border-radius: 20px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: #343b47;
  border-radius: 20px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
  background: #ff315b;
}

@media (max-width: 600px) {
  .legal-modal {
    padding: 22px 18px;
  }

  .legal-tabs {
    flex-direction: column;
    margin-right: 44px;
  }

  .legal-content h2 {
    font-size: 22px;
  }
}

/* =========================================
   RADARMEET HELP & SUPPORT
========================================= */

.help-view {
  display: none;
  width: 100%;
  padding: 28px;
  box-sizing: border-box;
}

.help-view.active {
  display: block;
}

.help-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.help-header {
  margin-bottom: 26px;
}

.help-eyebrow {
  margin-bottom: 7px;
  color: #ff315b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.help-header h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 32px;
}

.help-header p {
  margin: 0;
  color: #8e96a4;
  font-size: 15px;
}


/* HELP CARDS */

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-card {
  padding: 22px;

  border: 1px solid #292f39;
  border-radius: 16px;

  background:
    linear-gradient(145deg,
      rgba(24, 28, 37, 0.96),
      rgba(13, 16, 22, 0.96));

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 49, 91, 0.55);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 49, 91, 0.06);
}

.help-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  border: 1px solid rgba(255, 49, 91, 0.28);
  border-radius: 12px;

  background: rgba(255, 49, 91, 0.08);

  font-size: 22px;
}

.help-card h3 {
  margin: 0 0 8px;

  color: #ffffff;

  font-size: 16px;
}

.help-card p {
  margin: 0;

  color: #9aa2af;

  font-size: 13px;
  line-height: 1.65;
}


/* EMERGENCY WARNING */

.help-emergency {
  margin-top: 18px;
  padding: 18px 20px;

  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: 14px;

  background: rgba(255, 176, 32, 0.06);
}

.help-emergency strong {
  color: #ffbd45;
  font-size: 14px;
}

.help-emergency p {
  margin: 7px 0 0;

  color: #aab1bc;

  font-size: 13px;
  line-height: 1.6;
}


/* CONTACT SUPPORT */

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 18px;
  padding: 22px;

  border: 1px solid #292f39;
  border-radius: 16px;

  background: #11151c;
}

.help-contact h3 {
  margin: 0 0 6px;

  color: #ffffff;

  font-size: 18px;
}

.help-contact p {
  margin: 0;

  color: #8e96a4;

  font-size: 13px;
}

.help-contact-button {
  flex-shrink: 0;

  padding: 12px 20px;

  border: 1px solid #ff315b;
  border-radius: 10px;

  background:
    linear-gradient(135deg,
      #ff315b,
      #d92149);

  color: #ffffff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 7px 20px rgba(255, 49, 91, 0.18);
}

.help-contact-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 9px 24px rgba(255, 49, 91, 0.28);
}

.support-form {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 49, 91, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(145deg,
      rgba(28, 22, 35, 0.98),
      rgba(13, 16, 22, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.support-form[hidden] {
  display: none;
}

.support-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.support-form-header h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

.support-form-header p {
  margin: 0;
  color: #9aa2af;
  font-size: 13px;
  line-height: 1.55;
}

.support-close-button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #343b47;
  border-radius: 9px;
  background: #171c24;
  color: #cbd1dc;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.support-close-button:hover,
.support-close-button:focus-visible {
  border-color: #ff315b;
  color: #fff;
}

.support-field {
  display: block;
  margin-top: 14px;
}

.support-field span {
  display: block;
  margin-bottom: 7px;
  color: #dce1ea;
  font-size: 12px;
  font-weight: 800;
}

.support-field input,
.support-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #343b47;
  border-radius: 10px;
  background: #090c11;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.support-field input {
  min-height: 44px;
  padding: 0 13px;
}

.support-field textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

.support-field input:focus,
.support-field textarea:focus {
  border-color: #ff315b;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.12);
}

.support-field input[readonly] {
  color: #aeb6c3;
  background: #12161d;
}

.support-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.support-form-feedback {
  min-height: 21px;
  margin-top: 12px;
  color: #aeb6c3;
  font-size: 13px;
  line-height: 1.5;
}

.support-form-feedback.success {
  color: #72e6a8;
}

.support-form-feedback.error {
  color: #ff8b9e;
}

.support-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 7px;
}

.support-cancel-button,
.support-submit-button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.support-cancel-button {
  border: 1px solid #343b47;
  background: transparent;
  color: #b8c0cc;
}

.support-submit-button {
  border: 1px solid #ff315b;
  background: linear-gradient(135deg, #ff315b, #d92149);
  color: #fff;
  box-shadow: 0 7px 20px rgba(255, 49, 91, 0.18);
}

.support-cancel-button:hover,
.support-cancel-button:focus-visible {
  border-color: #7b8492;
  color: #fff;
}

.support-submit-button:hover,
.support-submit-button:focus-visible {
  box-shadow: 0 9px 24px rgba(255, 49, 91, 0.28);
}

.support-submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* DELETE ACCOUNT SIDEBAR BUTTON */

.delete-account-nav {
  color: #ff6b7f !important;
}

.delete-account-nav:hover {
  color: #ffffff !important;
  background: rgba(255, 49, 91, 0.12) !important;
}

/* =========================================
   RADARMEET ADMIN REPORTS
========================================= */

.admin-nav-item[hidden] {
  display: none !important;
}

.admin-view {
  display: none;
  width: 100%;
  min-height: 100%;
  padding: 28px;
  box-sizing: border-box;
}

.admin-view.active {
  display: block;
}

.admin-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-eyebrow,
.admin-card-kicker,
.admin-summary-label {
  color: #ff5478;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.admin-header h2 {
  margin: 7px 0 8px;
  color: #ffffff;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.admin-header p {
  max-width: 650px;
  margin: 0;
  color: #9199a7;
  font-size: 14px;
  line-height: 1.6;
}

.admin-refresh-button,
.admin-save-review-button {
  border: 1px solid rgba(255, 49, 91, 0.48);
  border-radius: 10px;
  background: rgba(255, 49, 91, 0.1);
  color: #ff91a8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.admin-refresh-button {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
}

.admin-refresh-button:hover,
.admin-save-review-button:hover {
  border-color: #ff5478;
  background: rgba(255, 49, 91, 0.18);
  transform: translateY(-1px);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-summary-card {
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid #292f3b;
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 22, 255, 0.1), transparent 55%),
    linear-gradient(145deg, rgba(25, 29, 39, 0.98), rgba(13, 16, 23, 0.98));
  box-sizing: border-box;
}

.admin-summary-card:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 218, 166, 0.1), transparent 55%),
    linear-gradient(145deg, rgba(25, 29, 39, 0.98), rgba(13, 16, 23, 0.98));
}

.admin-summary-card strong {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.admin-summary-card small {
  display: block;
  margin-top: 8px;
  color: #7f8998;
  font-size: 11px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #292f3b;
  border-radius: 14px 14px 0 0;
  background: #12161e;
}

.admin-toolbar-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.admin-toolbar-subtitle {
  margin-top: 4px;
  color: #7f8998;
  font-size: 11px;
}

.admin-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-toolbar-controls select,
.admin-toolbar-controls input,
.admin-review-select,
.admin-moderation-reason {
  border: 1px solid #303846;
  border-radius: 9px;
  outline: none;
  background: #0d1016;
  color: #dce0e7;
  font-family: inherit;
  font-size: 12px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-toolbar-controls select,
.admin-toolbar-controls input {
  height: 38px;
  padding: 0 11px;
}

.admin-toolbar-controls input {
  width: 210px;
}

.admin-toolbar-controls select:focus,
.admin-toolbar-controls input:focus,
.admin-review-select:focus,
.admin-moderation-reason:focus {
  border-color: rgba(255, 84, 120, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.09);
}

.admin-feedback {
  min-height: 0;
  padding: 0 16px;
  border-right: 1px solid #292f3b;
  border-left: 1px solid #292f3b;
  background: #12161e;
  color: #8590a0;
  font-size: 12px;
  line-height: 0;
  transition:
    padding 0.18s ease,
    line-height 0.18s ease;
}

.admin-feedback:not(:empty) {
  padding: 10px 16px;
  line-height: 1.3;
}

.admin-feedback.error {
  color: #ff879c;
}

.admin-feedback.success {
  color: #70e0b8;
}

.admin-feedback.warning {
  color: #ffc36b;
}

.admin-report-list {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #292f3b;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(10, 12, 17, 0.55);
}

.admin-report-card {
  padding: 19px;
  border: 1px solid #2a303d;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(27, 31, 42, 0.98), rgba(15, 18, 25, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.admin-report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(56, 63, 77, 0.58);
}

.admin-report-card h3 {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: 19px;
}

.admin-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e899a;
  font-size: 11px;
  white-space: nowrap;
}

.admin-status-pill {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.admin-status-open {
  border-color: rgba(255, 84, 120, 0.35);
  background: rgba(255, 84, 120, 0.12);
  color: #ff8fa7;
}

.admin-status-reviewed {
  border-color: rgba(151, 135, 255, 0.35);
  background: rgba(151, 135, 255, 0.12);
  color: #b9adff;
}

.admin-status-actioned {
  border-color: rgba(76, 215, 164, 0.35);
  background: rgba(76, 215, 164, 0.12);
  color: #78e4bd;
}

.admin-status-dismissed {
  border-color: rgba(142, 153, 169, 0.35);
  background: rgba(142, 153, 169, 0.12);
  color: #aeb7c5;
}

.admin-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 15px 0;
}

.admin-info-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(53, 61, 75, 0.65);
  border-radius: 10px;
  background: rgba(9, 12, 17, 0.35);
}

.admin-info-label {
  display: block;
  color: #768193;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.admin-info-value {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #e5e8ee;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-reason-item .admin-info-value {
  color: #ff9ab0;
}

.admin-account-status-item .admin-info-value {
  color: #cbbdff;
}

.admin-moderation-action-item .admin-info-value {
  color: #ffc978;
}

.admin-report-details {
  padding: 14px 15px;
  border: 1px solid rgba(53, 61, 75, 0.65);
  border-radius: 10px;
  background: rgba(9, 12, 17, 0.42);
}

.admin-report-details p {
  margin: 8px 0 0;
  color: #b4bbc7;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-moderation-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(181, 22, 255, 0.24);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(181, 22, 255, 0.07), rgba(255, 49, 91, 0.04));
}

.admin-moderation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-moderation-heading strong {
  color: #e9e5ff;
  font-size: 12px;
}

.admin-moderation-heading span {
  color: #847e9e;
  font-size: 10px;
}

.admin-moderation-reason {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.45;
}

.admin-moderation-actions,
.admin-review-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.admin-account-action-select {
  min-width: 190px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #303846;
  border-radius: 9px;
  outline: none;
  background: #0d1016;
  color: #dce0e7;
  font-family: inherit;
  font-size: 12px;
}

.admin-account-action-select:focus {
  border-color: rgba(255, 84, 120, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.09);
}

.admin-review-controls {
  justify-content: flex-end;
}

.admin-action-button,
.admin-save-review-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.admin-action-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.admin-action-button:disabled,
.admin-save-review-button:disabled,
.admin-refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-action-suspend {
  border: 1px solid rgba(255, 193, 92, 0.38);
  background: rgba(255, 193, 92, 0.1);
  color: #ffd184;
}

.admin-action-ban {
  border: 1px solid rgba(255, 84, 120, 0.45);
  background: rgba(255, 49, 91, 0.12);
  color: #ff91a8;
}

.admin-action-unban {
  border: 1px solid rgba(76, 215, 164, 0.4);
  background: rgba(76, 215, 164, 0.1);
  color: #7ce5be;
}

.admin-action-apply {
  border: 1px solid rgba(255, 193, 92, 0.38);
  background: rgba(255, 193, 92, 0.1);
  color: #ffd184;
}

.admin-review-select {
  height: 34px;
  padding: 0 9px;
}

.admin-save-review-button {
  border-color: rgba(151, 135, 255, 0.45);
  background: rgba(151, 135, 255, 0.12);
  color: #c0b6ff;
}

.admin-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 210px;
  gap: 8px;
  color: #828d9c;
  text-align: center;
}

.admin-empty-state strong {
  color: #e7e9ef;
  font-size: 15px;
}

.admin-empty-state span {
  font-size: 12px;
}

.admin-user-search-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #292f3b;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(18, 22, 30, 0.98), rgba(12, 15, 21, 0.98));
}

.admin-user-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

#adminUserSearchInput {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #303846;
  border-radius: 9px;
  outline: none;
  background: #0d1016;
  color: #dce0e7;
  font-family: inherit;
  font-size: 12px;
}

#adminUserSearchInput:focus {
  border-color: rgba(255, 84, 120, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.09);
}

.admin-user-search-feedback {
  min-height: 18px;
  padding-top: 8px;
  color: #8590a0;
  font-size: 11px;
}

.admin-user-search-feedback.error {
  color: #ff879c;
}

.admin-user-search-results {
  display: grid;
  gap: 7px;
}

.admin-user-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(53, 61, 75, 0.65);
  border-radius: 9px;
  background: rgba(9, 12, 17, 0.45);
  color: #e6e8ef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-search-result:hover {
  border-color: rgba(255, 84, 120, 0.55);
  background: rgba(255, 49, 91, 0.08);
}

.admin-user-search-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-search-result span {
  flex: 0 0 auto;
  color: #aeb7c5;
  font-size: 11px;
}

.admin-search-empty {
  color: #7f8998;
  font-size: 11px;
}

.admin-selected-user-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(181, 22, 255, 0.24);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(181, 22, 255, 0.07), rgba(255, 49, 91, 0.04));
}

.admin-safe-account-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-safe-account-item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(53, 61, 75, 0.62);
  border-radius: 8px;
  background: rgba(9, 12, 17, 0.38);
}

.admin-safe-account-item .admin-info-label,
.admin-safe-account-item .admin-info-value {
  display: block;
}

.admin-safe-account-item .admin-info-value {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-selected-user-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-selected-user-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.admin-selected-user-heading span {
  color: #847e9e;
  font-size: 10px;
}

.admin-selected-user-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-history-heading {
  display: block;
  margin-top: 16px;
  color: #e9e5ff;
  font-size: 12px;
}

.admin-moderation-history {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.admin-history-item {
  padding: 10px 11px;
  border: 1px solid rgba(53, 61, 75, 0.65);
  border-radius: 9px;
  background: rgba(9, 12, 17, 0.4);
}

.admin-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-history-meta strong {
  color: #ffc978;
  font-size: 12px;
}

.admin-history-meta time,
.admin-history-expiry,
.admin-history-moderator {
  color: #7f8998;
  font-size: 10px;
}

.admin-history-item p {
  margin: 7px 0 0;
  color: #b4bbc7;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-history-expiry,
.admin-history-moderator {
  display: block;
  margin-top: 6px;
}

.admin-safety-history-section {
  display: grid;
  gap: 9px;
}

.admin-safety-history-trigger {
  justify-self: start;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 84, 120, 0.55);
  border-radius: 9px;
  background: rgba(255, 49, 91, 0.08);
  color: #ff9ab0;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-safety-history-trigger:hover,
.admin-safety-history-trigger:focus-visible {
  border-color: #ff6f91;
  background: rgba(255, 49, 91, 0.16);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.admin-safety-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(9px);
}

.admin-safety-modal-overlay[hidden] {
  display: none !important;
}

body.admin-safety-modal-open {
  overflow: hidden;
}

.admin-safety-modal-card {
  display: flex;
  flex-direction: column;
  width: min(680px, 96vw);
  max-height: min(760px, 88vh);
  overflow: hidden;
  border: 1px solid rgba(255, 84, 120, 0.68);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(25, 21, 34, 0.99), rgba(8, 11, 18, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.68),
    0 0 40px rgba(255, 49, 91, 0.14);
}

.admin-safety-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-modal-kicker {
  color: #ff7896;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.admin-safety-modal-header h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 20px;
}

.admin-safety-modal-header p {
  margin: 6px 0 0;
  color: #969faf;
  font-size: 11px;
}

.admin-safety-modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #343b47;
  border-radius: 50%;
  background: #171b23;
  color: #ffffff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.admin-safety-modal-close:hover,
.admin-safety-modal-close:focus-visible {
  border-color: #ff315b;
  background: #ff315b;
  outline: none;
}

.admin-safety-modal-list {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 22px 22px;
}

.admin-safety-modal-history {
  display: grid;
  gap: 9px;
}

.admin-safety-history-item {
  padding: 11px 12px;
  border: 1px solid rgba(53, 61, 75, 0.72);
  border-radius: 10px;
  background: rgba(9, 12, 17, 0.54);
}

.admin-safety-history-status.is-accepted {
  color: #7ce4bb;
}

.admin-safety-history-status.is-not-accepted {
  color: #ff9cae;
}

.admin-safety-history-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-safety-history-details .admin-info-item {
  min-width: 0;
}

@media (max-width: 600px) {
  .admin-safety-modal-overlay {
    padding: 12px;
  }

  .admin-safety-modal-header {
    padding: 18px 16px 14px;
  }

  .admin-safety-modal-header h2 {
    font-size: 17px;
  }

  .admin-safety-modal-list {
    padding: 13px 16px 17px;
  }

  .admin-safety-history-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-safe-account-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-selected-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .admin-view {
    padding: 18px;
  }

  .admin-header,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-refresh-button {
    width: 100%;
  }

  .admin-toolbar-controls {
    flex-direction: column;
  }

  .admin-toolbar-controls select,
  .admin-toolbar-controls input {
    width: 100%;
    box-sizing: border-box;
  }

  .admin-account-action-select {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-people-grid {
    grid-template-columns: 1fr;
  }

  .admin-selected-user-summary {
    grid-template-columns: 1fr;
  }

  .admin-safe-account-details {
    grid-template-columns: 1fr;
  }

  .admin-report-card {
    padding: 14px;
  }

  .admin-report-card-header {
    flex-direction: column;
  }

  .admin-card-meta {
    justify-content: space-between;
    width: 100%;
  }

  .admin-moderation-actions,
  .admin-review-controls {
    flex-wrap: wrap;
  }

  .admin-selected-user-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-action-button,
  .admin-review-select,
  .admin-save-review-button {
    flex: 1 1 auto;
  }
}


/* MOBILE */

@media (max-width: 800px) {

  .help-view {
    padding: 18px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-contact {
    flex-direction: column;
    align-items: stretch;
  }

  .help-contact-button {
    width: 100%;
  }

  .support-form {
    padding: 17px;
  }

  .support-form-header h3 {
    font-size: 18px;
  }

  .support-form-actions {
    flex-direction: column-reverse;
  }

  .support-cancel-button,
  .support-submit-button {
    width: 100%;
  }

}

/* =========================================
   CANCEL PREMIUM BUTTON
========================================= */

.premium-manage-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.premium-cancel-btn {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 49, 91, 0.45);
  border-radius: 10px;
  background: transparent;
  color: #ff5b79;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.premium-cancel-btn:hover {
  background: rgba(255, 49, 91, 0.10);
  border-color: #ff315b;
  color: #ffffff;
  transform: translateY(-1px);
}

.premium-cancel-btn:active {
  transform: translateY(0);
}

/* EXPLORE CITY + RADAR FILTERS SIDE BY SIDE */
.radar-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.travel-mode-card {
  grid-column: 1;
  grid-row: 1;
  margin: 14px 7px 14px 16px !important;
}

.radar-v.radar-view>.radar-controls {
  grid-column: 2;
  grid-row: 1;
  margin: 14px 16px 14px 7px !important;
}

.radar-view>.content,
.radar-view>.radar-slider-row {
  grid-column: 1 / -1;
}

/* EXPLORE CITY + RADAR FILTERS SAME ROW */
.radar-view {
  display: flex !important;
  flex-direction: column !important;
}

.top-control-row {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr) !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.top-control-row>.travel-mode-card {
  margin: 0 !important;
  width: 100% !important;
}

.top-control-row>.radar-controls {
  margin: 0 !important;
  width: 100% !important;
  border: 1px solid #252a33 !important;
  border-radius: 18px !important;
}

.top-control-row .travel-mode-controls {
  max-width: none;
}

.top-control-row .travel-city-search-wrap {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 900px) {
  .top-control-row {
    grid-template-columns: 1fr !important;
  }
}

/* ======================================================
   RADAR MAP / NIGHT CITY PASS
   Deliberately scoped to the visible radar state. The
   authenticated secondary screens retain their own skin.
====================================================== */
.app:has(.radar-view:not(.hidden)) {
  background:
    radial-gradient(circle at 74% 8%, rgba(78, 41, 139, .18), transparent 32rem),
    #060a14;
}

.app:has(.radar-view:not(.hidden)) .sidebar {
  width: 185px;
  min-width: 185px;
  padding: 0 11px;
  background: linear-gradient(180deg, #080d19 0%, #09111f 100%);
  border-right-color: #243958;
}

.app:has(.radar-view:not(.hidden)) .logo {
  height: 70px;
  padding: 0 4px;
  gap: 9px;
  border-bottom-color: #182941;
}

.app:has(.radar-view:not(.hidden)) .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff3e76, #a82eff);
  box-shadow: 0 0 18px rgba(199, 41, 129, .36);
}

.app:has(.radar-view:not(.hidden)) .logo-name {
  font-size: 14px;
}

.app:has(.radar-view:not(.hidden)) .logo-sub {
  color: #75859c;
  font-size: 9px;
}

.app:has(.radar-view:not(.hidden)) .sidebar-user-tools {
  padding: 10px 0 5px;
}

.app:has(.radar-view:not(.hidden)) .user-chip {
  min-height: 46px;
  width: 100%;
  padding: 5px 7px;
  border-color: #1d3049;
  border-radius: 9px;
  background: #0c1422;
  font-size: 11px;
}

.app:has(.radar-view:not(.hidden)) .user-chip::after {
  content: "● Online";
  margin-left: auto;
  color: #4de0a7;
  font-size: 8px;
  font-weight: 800;
}

.app:has(.radar-view:not(.hidden)) .mini-avatar {
  width: 31px;
  height: 31px;
  background: linear-gradient(145deg, #ff4d72, #a832e2);
}

.app:has(.radar-view:not(.hidden)) .mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app:has(.radar-view:not(.hidden)) .nav {
  padding: 5px 0;
  gap: 3px;
}

.app:has(.radar-view:not(.hidden)) .nav-item {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 7px;
  color: #8f9db2;
  font-size: 10.5px;
  font-weight: 700;
  gap: 9px;
}

.app:has(.radar-view:not(.hidden)) .nav-item>span:first-child {
  width: 15px;
  color: inherit;
  font-size: 14px;
}

.app:has(.radar-view:not(.hidden)) .nav-item:hover {
  background: #101b2e;
  color: #fff;
  transform: none;
}

.app:has(.radar-view:not(.hidden)) .nav-item:focus-visible,
.app:has(.radar-view:not(.hidden)) button:focus-visible,
.app:has(.radar-view:not(.hidden)) input:focus-visible,
.app:has(.radar-view:not(.hidden)) select:focus-visible {
  outline: 2px solid #ff6ca9;
  outline-offset: 2px;
}

.app:has(.radar-view:not(.hidden)) .nav-item.active {
  background:
    linear-gradient(90deg, rgba(255, 55, 123, .34), rgba(102, 36, 239, .28)),
    #151936;
  border-color: #c1378b;
  box-shadow: inset 3px 0 #ff5a9b, 0 0 18px rgba(213, 39, 151, .2);
}

.app:has(.radar-view:not(.hidden)) .message-nav-badge {
  min-width: 18px;
  height: 18px;
  background: #ef3970;
  font-size: 9px;
}

.app:has(.radar-view:not(.hidden)) .delete-account-nav {
  margin-top: 7px;
  color: #ff6882;
}

.app:has(.radar-view:not(.hidden)) .sidebar-search {
  min-width: 0;
  height: 30px;
  margin: 10px 2px 0;
  padding: 0 8px;
  border-color: #20324a;
  border-radius: 6px;
  background: #0c1422;
  color: #667a94;
  font-size: 10px;
}

.app:has(.radar-view:not(.hidden)) .my-meetups-section {
  margin-top: 7px;
  padding-top: 7px;
  border-top-color: #1d3049;
}

.app:has(.radar-view:not(.hidden)) .my-meetups-toggle {
  min-height: 32px;
  padding: 0 7px;
  border-radius: 7px;
  color: #9aa9bd;
  font-size: 10.5px;
}

.app:has(.radar-view:not(.hidden)) .my-meetups-toggle-icon {
  font-size: 13px;
}

.app:has(.radar-view:not(.hidden)) .sidebar-bottom {
  position: relative;
  margin: auto 0 12px;
  padding: 13px 11px;
  border-color: #68407a;
  border-radius: 11px;
  background: linear-gradient(155deg, #24143d, #10172b);
  box-shadow: 0 0 20px rgba(131, 45, 124, .22);
}

.app:has(.radar-view:not(.hidden)) .sidebar-bottom::before {
  content: "♛";
  display: block;
  margin-bottom: 4px;
  color: #ffc52f;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 197, 47, .45);
}

.app:has(.radar-view:not(.hidden)) .plan-label {
  color: #ff6a9c;
  font-size: 8px;
  letter-spacing: 1px;
}

.app:has(.radar-view:not(.hidden)) .plan-text {
  color: #a2abc0;
  font-size: 9px;
  line-height: 1.4;
}

.app:has(.radar-view:not(.hidden)) .premium-btn {
  margin-top: 11px;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(100deg, #ff874f, #f03282);
  font-size: 10px;
  box-shadow: 0 6px 14px rgba(240, 50, 130, .25);
}

.app:has(.radar-view:not(.hidden)) .main {
  background: #060a14;
}

.app:has(.radar-view:not(.hidden)) .topbar {
  min-height: 118px;
  padding: 16px 21px 18px;
  background:
    linear-gradient(90deg, rgba(6, 11, 24, .46), rgba(7, 12, 25, .16) 52%, rgba(7, 12, 23, .3)),
    linear-gradient(0deg, rgba(5, 9, 18, .36), transparent 72%),
    url("./radarmeet-activity-hero.png") center 42% / cover;
  border-bottom-color: #294266;
  box-shadow: none;
}

.app:has(.radar-view:not(.hidden)) .topbar>div::after {
  content: "Discover what’s happening around you, right now.";
  display: block;
  margin-top: 5px;
  color: #abb5c4;
  font-size: 10px;
}

.app:has(.radar-view:not(.hidden)) .topbar::after {
  content: "●  Online Now";
  position: absolute;
  right: 21px;
  bottom: 21px;
  padding: 7px 11px;
  border: 1px solid #267157;
  border-radius: 20px;
  background: #10251f;
  color: #78e5b6;
  font-size: 10px;
  font-weight: 700;
}

.app:has(.radar-view:not(.hidden)) #pageTitle {
  font-size: clamp(29px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -1.5px;
  text-shadow: none;
}

.app:has(.radar-view:not(.hidden)) #pageTitle::first-letter {
  color: #f7f8ff;
}

.app:has(.radar-view:not(.hidden)) .live-label {
  margin-bottom: 7px;
  color: #a4b0c0;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: .7px;
}

.app:has(.radar-view:not(.hidden)) .live-dot {
  width: 7px;
  height: 7px;
  background: #31e5a8;
  box-shadow: 0 0 8px #31e5a8;
}

.app:has(.radar-view:not(.hidden)) .top-control-row {
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.55fr) !important;
  gap: 12px !important;
  padding: 12px 13px !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-card,
.app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
  min-height: 126px;
  padding: 10px 12px;
  border-color: #3a4f8a !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(239, 62, 159, .28), transparent 12rem),
    linear-gradient(135deg, #101a36, #11152c 74%, #1a1230) !important;
  box-shadow: 0 10px 28px rgba(17, 10, 48, .28);
}

.app:has(.radar-view:not(.hidden)) .travel-mode-card {
  position: relative;
  border-color: #7b459c !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-header>div {
  display: block;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-eyebrow {
  margin: 0;
  color: #ff6a9c;
  font-size: 8px;
  letter-spacing: 1px;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  width: 100%;
  max-width: none;
  margin-top: 8px;
}

.app:has(.radar-view:not(.hidden)) .travel-city-search-wrap {
  width: 100%;
  flex: 0 0 auto;
}

.app:has(.radar-view:not(.hidden)) #travelCitySearch {
  width: 100% !important;
  height: 28px !important;
  padding: 0 8px !important;
  border-color: #44548d !important;
  border-radius: 5px !important;
  background: #0b1426 !important;
  color: #8795b0 !important;
  font-size: 10px !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-button {
  width: 100%;
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 5px !important;
  background: linear-gradient(100deg, #ff684f 0%, #f02f9e 55%, #be2cff 100%) !important;
  box-shadow: 0 5px 15px rgba(241, 52, 141, .25);
  font-size: 10px !important;
  white-space: nowrap;
}

.app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
  padding: 10px 13px !important;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-box {
  margin: 0;
  padding: 0;
  border: 0;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-title {
  margin: 0;
  color: #fff;
  font-size: 11px;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-title::before {
  content: "☷";
  margin-right: 7px;
  color: #df4cff;
  font-size: 15px;
  vertical-align: -1px;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-grid {
  gap: 9px;
  flex-wrap: nowrap;
  margin-top: 7px;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-group {
  gap: 3px;
  padding-left: 0;
  border: 0;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-group label {
  color: #73849e;
  font-family: monospace;
  font-size: 8px;
  letter-spacing: .7px;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-group select,
.app:has(.radar-view:not(.hidden)) .age-filter-row input {
  height: 28px;
  min-width: 0;
  padding: 0 8px;
  border-color: #44548d;
  border-radius: 5px;
  background: #0b1426;
  color: #fff;
  font-size: 10px;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-group select {
  width: 128px;
}

.app:has(.radar-view:not(.hidden)) .age-filter-row {
  gap: 5px;
}

.app:has(.radar-view:not(.hidden)) .age-filter-row input {
  width: 36px;
  padding: 0 4px;
  background: #24204e;
  border-color: #6c4ec1;
}

.app:has(.radar-view:not(.hidden)) .age-filter-row span {
  color: #71809b;
  font-size: 9px;
}

.app:has(.radar-view:not(.hidden)) .reset-filter-btn,
.app:has(.radar-view:not(.hidden)) .logout-button {
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border-color: #394b67;
  border-radius: 5px;
  background: transparent;
  color: #b6c0d0;
  font-size: 9px;
  white-space: nowrap;
}

.app:has(.radar-view:not(.hidden)) .logout-button {
  border-color: #e54277;
  background: #301426;
  color: #ff719a;
}

.app:has(.radar-view:not(.hidden)) .content {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  padding: 0 13px;
}

.app:has(.radar-view:not(.hidden)) .map-card,
.app:has(.radar-view:not(.hidden)) .chat-panel {
  height: 302px !important;
  min-height: 302px;
  border-radius: 11px;
  border-color: #375488;
  box-shadow: 0 13px 32px rgba(3, 10, 25, .34), 0 0 20px rgba(58, 90, 178, .12);
}

.app:has(.radar-view:not(.hidden)) #map {
  min-height: 302px;
}

.app:has(.radar-view:not(.hidden)) .chat-panel {
  border-color: #67418e;
  background: linear-gradient(180deg, #101a31, #0b1323);
}

.app:has(.radar-view:not(.hidden)) .chat-header {
  background: linear-gradient(90deg, rgba(110, 55, 161, .13), transparent);
}

.app:has(.radar-view:not(.hidden)) .chat-body {
  padding: 10px 13px;
}

.app:has(.radar-view:not(.hidden)) .chat-message {
  gap: 9px;
  margin-bottom: 13px;
}

.app:has(.radar-view:not(.hidden)) .chat-avatar-photo {
  width: 28px;
  height: 28px;
}

.app:has(.radar-view:not(.hidden)) .chat-message p {
  color: #d0d6e1;
  font-size: 10px;
  line-height: 1.35;
}

.premium-distance-help {
  margin-top: 9px;
  color: #ff6a9c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15px;
  text-align: center;
}

.app:has(.radar-view:not(.hidden)) .privacy-help {
  margin-top: 9px !important;
  color: #ff6a9c !important;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .15px;
  text-align: center;
}

.app:has(.radar-view:not(.hidden)) .chat-person-name {
  color: #ed5595;
  font-size: 10px;
}

.app:has(.radar-view:not(.hidden)) .chat-input {
  height: 38px;
  margin: 0 11px 11px;
  padding: 0 5px 0 9px;
  border-color: #364766;
  border-radius: 5px;
  background: transparent;
  font-size: 9px;
}

.app:has(.radar-view:not(.hidden)) .chat-input button {
  width: 27px;
  height: 27px;
  border-radius: 4px;
  background: #ed3f81;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row {
  gap: 10px !important;
  padding: 8px 13px 10px !important;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
  min-height: 78px;
  padding: 10px 13px !important;
  border-color: #29436e !important;
  background: linear-gradient(110deg, #0d1729, #0b1220) !important;
  box-shadow: 0 8px 20px rgba(2, 8, 20, .3);
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"] {
  accent-color: #ed3b83;
  height: 5px;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title {
  margin-bottom: 6px !important;
  color: #d7deeb;
  font-size: 10px;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title strong {
  color: #fa5e9a;
  font-size: 11px;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"],
.app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels {
  width: 65% !important;
  max-width: none !important;
}

.app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels,
.app:has(.radar-view:not(.hidden)) .radar-slider-row .privacy-help {
  color: #7b8ba2;
  font-size: 8px;
}

@media (max-width: 1050px) {
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.55fr) !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 800px) {
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 154px;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    grid-template-columns: 1fr;
  }

  .app:has(.radar-view:not(.hidden)) .map-card,
  .app:has(.radar-view:not(.hidden)) #map {
    height: 430px !important;
    min-height: 430px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    flex-direction: column;
  }
}

/* =========================================================
   RADARMEET - RADAR MAP VISUAL UPGRADE
   Safe styling only - map/chat structure untouched
   ========================================================= */

.app:has(.radar-view:not(.hidden)) {
  background:
    radial-gradient(circle at 25% 5%, rgba(89, 45, 180, 0.15), transparent 30rem),
    radial-gradient(circle at 85% 20%, rgba(20, 115, 255, 0.10), transparent 32rem),
    #050914;
}


/* ---------- SIDEBAR ---------- */

.app:has(.radar-view:not(.hidden)) .sidebar {
  background:
    linear-gradient(180deg, #07101f 0%, #050b16 100%) !important;
  border-right: 1px solid rgba(78, 111, 166, 0.35) !important;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.22);
}

.app:has(.radar-view:not(.hidden)) .logo-icon {
  background:
    linear-gradient(135deg, #ff315b 0%, #eb18c9 55%, #7b2cff 100%) !important;
  box-shadow:
    0 0 18px rgba(255, 49, 91, 0.45),
    0 0 30px rgba(181, 22, 255, 0.18) !important;
}

.app:has(.radar-view:not(.hidden)) .nav-item {
  border-radius: 8px !important;
}

.app:has(.radar-view:not(.hidden)) .nav-item.active {
  color: #ffffff !important;
  border-color: rgba(84, 90, 255, 0.65) !important;
  background:
    linear-gradient(100deg,
      #f92d86 0%,
      #b81ce8 52%,
      #2857ff 100%) !important;
  box-shadow:
    0 7px 20px rgba(217, 33, 187, 0.22),
    0 0 18px rgba(57, 88, 255, 0.18) !important;
}


/* ---------- PREMIUM SIDEBAR CARD ---------- */

.app:has(.radar-view:not(.hidden)) .sidebar-bottom {
  border: 1px solid rgba(216, 76, 136, 0.52) !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 98, 25, 0.17), transparent 8rem),
    linear-gradient(145deg, #111229 0%, #151024 55%, #28121c 100%) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(206, 51, 161, 0.14) !important;
}

.app:has(.radar-view:not(.hidden)) .premium-btn {
  background:
    linear-gradient(100deg, #6d2cff 0%, #c21bf0 48%, #ff247d 100%) !important;
  box-shadow:
    0 8px 20px rgba(194, 27, 240, 0.28) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app:has(.radar-view:not(.hidden)) .premium-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 27px rgba(194, 27, 240, 0.38) !important;
}


/* ---------- PREMIUM FEATURE CARD ---------- */

.app:has(.radar-view:not(.hidden)) .travel-mode-card {
  border: 1px solid rgba(188, 73, 255, 0.72) !important;

  background:
    radial-gradient(circle at 90% 10%, rgba(255, 51, 137, 0.30), transparent 12rem),
    radial-gradient(circle at 10% 100%, rgba(88, 50, 255, 0.22), transparent 11rem),
    linear-gradient(135deg, #171435 0%, #25143b 55%, #33152f 100%) !important;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(189, 45, 221, 0.16) !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-eyebrow {
  color: #ff4c93 !important;
  letter-spacing: 1.3px;
  text-shadow: 0 0 12px rgba(255, 76, 147, 0.28);
}

.app:has(.radar-view:not(.hidden)) .travel-city-search {
  background: rgba(7, 12, 27, 0.72) !important;
  border: 1px solid rgba(151, 86, 214, 0.55) !important;
  color: #ffffff !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-button {
  border: 0 !important;
  background:
    linear-gradient(100deg, #ff5438 0%, #ff2c8d 45%, #d31ee5 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 8px 20px rgba(255, 42, 139, 0.25) !important;
}

.app:has(.radar-view:not(.hidden)) .travel-city-search.premium-locked {
  border-color: rgba(255, 92, 139, 0.78) !important;
  background: rgba(57, 18, 42, 0.86) !important;
  color: #ffb2c5 !important;
  cursor: not-allowed;
  opacity: 0.92;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-button.premium-locked {
  border: 1px solid rgba(255, 92, 139, 0.72) !important;
  background: linear-gradient(135deg, #6f203d, #5c245d) !important;
  color: #ffd3df !important;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(118, 26, 76, 0.24) !important;
}

.app:has(.radar-view:not(.hidden)) .travel-mode-button.premium-locked:hover {
  background: linear-gradient(135deg, #8a294b, #752b73) !important;
}


/* ---------- RADAR FILTERS CARD ---------- */

.app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
  border: 1px solid rgba(55, 100, 177, 0.70) !important;

  background:
    radial-gradient(circle at 100% 0%, rgba(48, 97, 202, 0.16), transparent 15rem),
    linear-gradient(135deg, #101b32 0%, #0a1427 100%) !important;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(55, 94, 180, 0.12) !important;
}

.app:has(.radar-view:not(.hidden)) .radar-filter-title {
  color: #f4f7ff !important;
  text-shadow: 0 0 12px rgba(107, 128, 255, 0.18);
}

.app:has(.radar-view:not(.hidden)) #activityFilter,
.app:has(.radar-view:not(.hidden)) .age-filter-row input {
  background: #111c33 !important;
  border: 1px solid #40567c !important;
  color: #ffffff !important;
}

.app:has(.radar-view:not(.hidden)) .reset-filter-btn {
  background: #10192a !important;
  border: 1px solid #405473 !important;
  color: #f5f7fb !important;
}

.app:has(.radar-view:not(.hidden)) .logout-button {
  background:
    linear-gradient(135deg, #39162b 0%, #55172d 100%) !important;
  border: 1px solid #e34074 !important;
  color: #ff789d !important;
}


/* ---------- BOTTOM RADAR / PRIVACY CARDS ---------- */

.app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
  border: 1px solid rgba(50, 89, 156, 0.72) !important;

  background:
    radial-gradient(circle at 95% 0%, rgba(36, 91, 199, 0.16), transparent 10rem),
    linear-gradient(120deg, #0e192d 0%, #091321 100%) !important;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(44, 91, 179, 0.10) !important;
}

.app:has(.radar-view:not(.hidden)) #distanceValue {
  color: #ff3f83 !important;
  text-shadow: 0 0 10px rgba(255, 63, 131, 0.25);
}

.app:has(.radar-view:not(.hidden)) #privacyValue {
  color: #25a7ff !important;
  text-shadow: 0 0 10px rgba(37, 167, 255, 0.25);
}

.app:has(.radar-view:not(.hidden)) #radarDistance {
  accent-color: #ff357d !important;
}

.app:has(.radar-view:not(.hidden)) #radarDistance[data-premium-locked="true"] {
  accent-color: #ff6a9c !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.app:has(.radar-view:not(.hidden)) .premium-distance-help {
  min-height: 18px;
  color: #ff8eaf !important;
}

.app:has(.radar-view:not(.hidden)) #privacyDistance {
  accent-color: #188cff !important;
}

/* KEEP CITY CHAT TALL BESIDE MAP */
.app:has(.radar-view:not(.hidden)) .chat-panel {
  height: 570px !important;
  min-height: 570px !important;
}

/* =========================================================
   RADARMEET SIDEBAR - KEEP NEW STYLE ON ALL PAGES
   ========================================================= */

/* Selected sidebar button */
.app .nav-item.active {
  color: #ffffff !important;
  border-color: rgba(84, 90, 255, 0.65) !important;

  background: linear-gradient(100deg,
      #f92d86 0%,
      #b81ce8 52%,
      #2857ff 100%) !important;

  box-shadow:
    0 7px 20px rgba(217, 33, 187, 0.22),
    0 0 18px rgba(57, 88, 255, 0.18) !important;
}


/* Go Premium box */
.app .sidebar-bottom {
  border: 1px solid rgba(216, 76, 136, 0.52) !important;

  background:
    radial-gradient(circle at 85% 15%,
      rgba(255, 98, 25, 0.17),
      transparent 8rem),
    linear-gradient(145deg,
      #111229 0%,
      #151024 55%,
      #28121c 100%) !important;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(206, 51, 161, 0.14) !important;
}


/* Go Premium button */
.app .premium-btn {
  background: linear-gradient(100deg,
      #6d2cff 0%,
      #c21bf0 48%,
      #ff247d 100%) !important;

  box-shadow:
    0 8px 20px rgba(194, 27, 240, 0.28) !important;
}

/* =========================================================
   RADARMEET - PRIVATE MESSAGES VISUAL UPGRADE
   CSS ONLY - messaging functionality untouched
   ========================================================= */

.app .messages-view {
  padding: 18px 20px !important;
  gap: 16px !important;
  background:
    radial-gradient(circle at 75% 10%, rgba(63, 65, 180, 0.10), transparent 28rem),
    #060b15 !important;
}


/* =========================
   LEFT INBOX PANEL
   ========================= */

.app .conversation-panel {
  width: 330px !important;
  border: 1px solid rgba(55, 86, 137, 0.65) !important;
  border-radius: 16px !important;

  background:
    linear-gradient(180deg, #0d1729 0%, #09111f 100%) !important;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.30),
    0 0 20px rgba(53, 87, 170, 0.09) !important;
}


.app .conversation-heading {
  padding: 20px !important;
  border-bottom: 1px solid rgba(71, 94, 132, 0.35) !important;

  background:
    radial-gradient(circle at 90% 0%, rgba(209, 34, 177, 0.13), transparent 9rem),
    linear-gradient(135deg, #101a2d, #0b1424) !important;
}


.app .conversation-eyebrow {
  color: #ff3f83 !important;
  font-size: 10px !important;
  letter-spacing: 1.6px !important;
  text-shadow: 0 0 10px rgba(255, 63, 131, 0.22);
}


.app .conversation-heading h2 {
  margin-top: 4px !important;
  color: #ffffff !important;
  font-size: 24px !important;
}


/* Conversation rows */

.app .conversation-item {
  margin: 8px 10px !important;
  padding: 12px !important;

  border: 1px solid transparent !important;
  border-radius: 12px !important;

  background: transparent !important;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease !important;
}


.app .conversation-item:hover {
  background: #111d31 !important;
  border-color: rgba(79, 106, 162, 0.42) !important;
  transform: translateX(2px);
}


.app .conversation-item.active {
  background:
    linear-gradient(100deg,
      rgba(249, 45, 134, 0.20),
      rgba(176, 29, 231, 0.15),
      rgba(40, 87, 255, 0.12)) !important;

  border-color: rgba(245, 54, 145, 0.75) !important;

  box-shadow:
    0 0 18px rgba(222, 44, 174, 0.14) !important;
}


.app .conversation-avatar {
  border: 2px solid rgba(239, 78, 160, 0.65);
  box-shadow: 0 0 13px rgba(239, 78, 160, 0.14);
}


/* =========================
   RIGHT CHAT PANEL
   ========================= */

.app .thread-panel {
  border: 1px solid rgba(55, 86, 137, 0.65) !important;
  border-radius: 16px !important;

  background:
    radial-gradient(circle at 85% 5%, rgba(83, 44, 172, 0.12), transparent 24rem),
    linear-gradient(180deg, #0b1527 0%, #08101d 100%) !important;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.30),
    0 0 22px rgba(50, 83, 165, 0.08) !important;
}


/* Chat header */

.app .thread-header {
  min-height: 88px !important;
  padding: 16px 20px !important;

  border-bottom: 1px solid rgba(69, 94, 137, 0.40) !important;

  background:
    radial-gradient(circle at 90% 0%, rgba(168, 43, 184, 0.12), transparent 12rem),
    linear-gradient(100deg, #101b30, #0c1425) !important;
}


.app #threadPhoto {
  width: 48px !important;
  height: 48px !important;

  border: 2px solid #ff4d92 !important;

  box-shadow:
    0 0 16px rgba(255, 77, 146, 0.24);
}


.app #threadName {
  color: #ffffff !important;
  font-size: 18px !important;
}


.app .thread-online,
.app #thread-online {
  color: #32e6b1 !important;
}


/* Header buttons */

.app .thread-actions button {
  min-height: 42px;
  padding: 8px 15px !important;

  border: 1px solid #38506f !important;
  border-radius: 9px !important;

  background:
    linear-gradient(180deg, #131e30, #101825) !important;

  color: #dce4f1 !important;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}


.app .thread-actions button:hover {
  transform: translateY(-1px);
  border-color: #667ba2 !important;
}


.app #deleteConversationButton,
.app #blockUserButton {
  border-color: rgba(231, 62, 107, 0.55) !important;
  color: #ff6b92 !important;
}


/* =========================
   MESSAGE AREA
   ========================= */

.app .thread-messages {
  padding: 22px !important;

  background:
    radial-gradient(circle at 50% 35%, rgba(37, 68, 122, 0.08), transparent 25rem);
}


.app .thread-bubble {
  padding: 11px 15px !important;
  border: 1px solid rgba(72, 91, 122, 0.42);

  border-radius: 15px !important;

  background:
    linear-gradient(135deg, #172338, #121c2c) !important;

  color: #e7edf7 !important;

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.15);
}


/* YOUR messages */

.app .message-row.sent .thread-bubble {
  border: 0 !important;

  background:
    linear-gradient(110deg,
      #ff315f 0%,
      #ee238d 48%,
      #a61de4 100%) !important;

  box-shadow:
    0 7px 18px rgba(222, 36, 139, 0.19);
}


/* =========================
   MESSAGE COMPOSER
   ========================= */

.app .thread-compose {
  padding: 14px !important;

  border-top: 1px solid rgba(61, 85, 125, 0.45) !important;

  background:
    linear-gradient(180deg, #0c1524, #09111f) !important;
}


.app #threadInput {
  min-height: 52px !important;

  padding: 12px 15px !important;

  border: 1px solid #344b6d !important;
  border-radius: 11px !important;

  background: #111b2c !important;

  color: #ffffff !important;
}


.app #threadInput:focus {
  border-color: #8a4ed5 !important;

  box-shadow:
    0 0 0 3px rgba(138, 78, 213, 0.10);
}


.app #threadSendButton {
  min-width: 55px !important;

  border-radius: 11px !important;

  background:
    linear-gradient(135deg,
      #ff315b,
      #ff267e,
      #c51ae8) !important;

  box-shadow:
    0 7px 18px rgba(237, 49, 131, 0.25);
}

/* =========================================================
   PRIVATE MESSAGES - INBOX SEARCH + EMPTY STATE
   ========================================================= */

.app .message-search-wrap {
  margin: 14px 14px 10px;
  height: 42px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  border: 1px solid #344b6d;
  border-radius: 10px;

  background: #111b2c;
  color: #7f91aa;
}

.app .message-search-wrap span {
  color: #8fa1bd;
  font-size: 16px;
}

.app .message-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;

  color: #ffffff;
  font-size: 13px;
}

.app .message-search-wrap input::placeholder {
  color: #71809a;
}

.app .conversation-empty-state {
  min-height: 220px;
  padding: 42px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #7f8da3;
}

.app .empty-message-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    linear-gradient(135deg,
      rgba(255, 49, 91, 0.18),
      rgba(181, 22, 255, 0.18));

  border: 1px solid rgba(237, 64, 159, 0.45);

  color: #ff4d92;
  font-size: 24px;

  box-shadow:
    0 0 22px rgba(228, 43, 171, 0.14);
}

.app .conversation-empty-state strong {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 5px;
}

.app .conversation-empty-state span {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   RADARMEET - BRIGHTER TOP HERO IMAGE
   ========================================================= */

.app .hero {
  position: relative;
}

/* Reduce the dark layer covering the banner photos */
.app .hero::before {
  background: linear-gradient(90deg,
      rgba(5, 9, 20, 0.38) 0%,
      rgba(5, 9, 20, 0.18) 45%,
      rgba(5, 9, 20, 0.08) 75%,
      rgba(5, 9, 20, 0.15) 100%) !important;
}

/* Make the actual banner image brighter */
.app .hero img,
.app .hero-image {
  filter: brightness(1.28) contrast(1.06) saturate(1.12) !important;
}

/* =========================================================
   RADARMEET - FULL CITY CHAT VISUAL UPGRADE
   CSS ONLY - chat functionality untouched
   ========================================================= */

.app .city-chat-view {
  padding: 18px 20px !important;
  background:
    radial-gradient(circle at 80% 10%, rgba(73, 53, 180, 0.10), transparent 28rem),
    #060b15 !important;
}


/* MAIN CITY CHAT CARD */

.app .city-chat-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  border: 1px solid rgba(55, 86, 137, 0.70) !important;
  border-radius: 16px !important;

  background:
    radial-gradient(circle at 90% 5%, rgba(107, 51, 180, 0.12), transparent 22rem),
    linear-gradient(180deg, #0d1729 0%, #09111f 100%) !important;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.30),
    0 0 22px rgba(59, 90, 180, 0.08) !important;

  overflow: hidden;
}


/* HEADER */

.app .city-chat-page-header {
  min-height: 105px !important;
  padding: 20px 22px !important;

  border-bottom: 1px solid rgba(62, 89, 137, 0.45) !important;

  background:
    radial-gradient(circle at 90% 0%, rgba(209, 39, 170, 0.12), transparent 12rem),
    linear-gradient(120deg, #101b31, #0b1425) !important;
}


.app .city-chat-eyebrow {
  color: #ff3f83 !important;
  letter-spacing: 1.7px !important;
  text-shadow: 0 0 10px rgba(255, 63, 131, 0.20);
}


.app .city-chat-page-header h2 {
  color: #ffffff !important;
  font-size: 25px !important;
  margin-top: 4px !important;
}


.app .city-chat-page-header p {
  color: #9daabd !important;
  margin-top: 4px !important;
}


.app .city-online-pill {
  padding: 8px 14px !important;

  border: 1px solid rgba(49, 230, 182, 0.30) !important;

  background: rgba(16, 66, 54, 0.38) !important;

  color: #42e6b6 !important;

  box-shadow:
    0 0 15px rgba(49, 230, 182, 0.08);
}


/* MESSAGE AREA */

.app .city-chat-messages {
  height: 520px !important;
  padding: 18px 22px !important;
  position: relative;
  isolation: isolate;
  overflow-y: auto;
  background-color: #050a16 !important;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 18, 0.24) 0%, rgba(5, 10, 22, 0.38) 58%, rgba(3, 7, 14, 0.62) 100%),
    url("/attached_assets/image_1788882009634.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Keep the city artwork stationary while this message pane scrolls. */
  background-attachment: fixed;
}


/* EACH MESSAGE */

.app .city-full-message {
  position: relative;
  z-index: 1;
  margin-bottom: 10px !important;
  padding: 10px 12px !important;

  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(5, 10, 20, 0.34);

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}


.app .city-full-message:hover {
  background: rgba(22, 34, 55, 0.72);
  border-color: rgba(67, 91, 132, 0.32);
}


.app .city-full-avatar,
.app .city-you-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;

  background: #080b12 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;

  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.82);
}


.app .city-person-name {
  color: #ff4383 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}


.app .city-message-top span {
  color: #73829a !important;
  font-size: 10px !important;
}


.app .city-message-content p {
  margin-top: 3px !important;

  color: #d4dbe7 !important;

  font-size: 13px !important;
  line-height: 1.4 !important;
}


/* BOTTOM MESSAGE BAR */

.app .city-chat-compose {
  min-height: 76px !important;
  padding: 12px 16px !important;

  border-top: 1px solid rgba(62, 88, 128, 0.45) !important;

  background:
    linear-gradient(180deg, #0c1626, #09111f) !important;
}


.app #cityChatInput {
  min-height: 48px !important;

  border: 1px solid #344b6d !important;
  border-radius: 11px !important;

  background: #111b2d !important;

  color: white !important;

  padding: 0 15px !important;
}


.app #cityChatInput:focus {
  border-color: #9250d8 !important;

  box-shadow:
    0 0 0 3px rgba(146, 80, 216, 0.10);
}

.app .city-chat-emoji-wrap {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
}

.app .city-chat-emoji-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #344b6d;
  border-radius: 11px;
  background: #111b2d;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.app .city-chat-emoji-button:hover,
.app .city-chat-emoji-button:focus-visible,
.app .city-chat-emoji-button[aria-expanded="true"] {
  border-color: #a14fe4;
  background: #1a2440;
  outline: none;
  transform: translateY(-1px);
}

.app .city-chat-emoji-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 246px;
  padding: 11px;
  border: 1px solid rgba(91, 105, 160, 0.85);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(22, 28, 50, 0.99), rgba(8, 13, 26, 0.99));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(137, 64, 220, 0.16);
}

.app .city-chat-emoji-panel[hidden] {
  display: none !important;
}

.city-chat-emoji-panel-title {
  margin: 0 2px 8px;
  color: #ff5c91;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.city-chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.city-chat-emoji-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(45, 57, 88, 0.42);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.city-chat-emoji-grid button:hover,
.city-chat-emoji-grid button:focus-visible {
  border-color: rgba(255, 91, 145, 0.72);
  background: rgba(255, 49, 91, 0.22);
  outline: none;
}


.app #cityChatSend,
.app .city-chat-send {
  min-width: 54px !important;

  border-radius: 11px !important;

  background:
    linear-gradient(135deg,
      #ff315b,
      #f3278f,
      #c41be8) !important;

  box-shadow:
    0 7px 18px rgba(235, 45, 137, 0.24) !important;
}

/* =========================================================
   PROFILE POPUP - MANY INTERESTS CLEANUP
   ========================================================= */

.app .profile-panel {
  width: 420px !important;
  max-height: 90vh !important;
}

.app .profile-panel-inner {
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: 22px !important;
}

/* Interests section becomes its own compact scroll area */
.app #panelInterests {
  max-height: 150px;
  overflow-y: auto;

  padding: 10px;
  margin-top: 10px !important;

  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;

  border: 1px solid rgba(60, 84, 126, 0.40);
  border-radius: 12px;

  background: rgba(11, 20, 36, 0.72);
}

/* Smaller, cleaner interest pills */
.app #panelInterests span {
  padding: 6px 10px !important;
  margin: 0 !important;

  border-radius: 20px !important;

  background: #162132 !important;
  border: 1px solid rgba(77, 100, 143, 0.42) !important;

  color: #d2dae7 !important;
  font-size: 10px !important;

  white-space: nowrap;
}

/* Cleaner scrollbar */
.app #panelInterests::-webkit-scrollbar {
  width: 6px;
}

.app #panelInterests::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff3f83, #a82be8);
  border-radius: 20px;
}

.app #panelInterests::-webkit-scrollbar-track {
  background: transparent;
}

/* Tighten spacing above/below interests */
.app .profile-section {
  margin-top: 16px !important;
}

/* Keep main buttons looking separated from interest list */
.app #panelMessageButton {
  margin-top: 18px !important;
}

.app .profile-safety-actions {
  margin-top: 10px !important;
}

/* =========================================================
   RADARMEET DEFAULT PROFILE BACKGROUND
   Free-user branded profile theme
   ========================================================= */

.app .profile-panel:not([data-has-custom-background="true"]) {
  overflow: hidden !important;

  background:
    var(--profile-background,
      linear-gradient(160deg,
        #080d1a 0%,
        #0b1325 48%,
        #07101f 100%)) !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  border:
    1px solid rgba(91, 100, 255, 0.75) !important;

  box-shadow:
    inset 0 0 55px rgba(18, 38, 88, 0.34),
    0 0 26px rgba(126, 43, 255, 0.14) !important;
}


/* RADAR RINGS */

.app .profile-panel:not([data-has-custom-background="true"])::before {
  content: "";

  position: absolute;
  width: 520px;
  height: 520px;

  left: 50%;
  top: -90px;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    repeating-radial-gradient(circle,
      transparent 0px,
      transparent 54px,
      rgba(255, 52, 139, 0.17) 55px,
      rgba(255, 52, 139, 0.17) 56px,
      transparent 57px,
      transparent 94px);

  pointer-events: none;
  z-index: 0;
}


/* LARGE FAINT RADARMEET "R" */

.app .profile-panel::after {
  content: "R";

  position: absolute;

  top: 155px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 260px;
  line-height: 1;

  font-weight: 900;

  color: rgba(148, 52, 221, 0.075);

  text-shadow:
    -18px 0 45px rgba(255, 35, 123, 0.08),
    18px 0 45px rgba(31, 111, 255, 0.08);

  pointer-events: none;
  z-index: 0;
}


/* KEEP PROFILE CONTENT ABOVE BACKGROUND */

.app .profile-panel-inner {
  position: relative !important;
  z-index: 2 !important;
}

/* PROFILE POPUP INFORMATION HIERARCHY */
.app #panelName {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.4px;
}

.app .panel-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-top: 7px;
  padding: 3px 11px;
  border: 1px solid #ff4f91;
  border-radius: 999px;
  background: rgba(11, 12, 21, 0.62);
  color: #f3f5fb;
  font-size: 12px;
  font-weight: 800;
}

.app .panel-location {
  margin-top: 10px;
  color: #f1f3f8;
  font-size: 13px;
  font-weight: 650;
}

.app .profile-panel .panel-online-text {
  margin-top: 4px !important;
  color: #d5dbe8 !important;
  font-size: 12px !important;
}

.app .profile-panel .panel-online-text::first-letter {
  color: #31e6b6;
}

.app .profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border: 1px solid rgba(150, 164, 193, 0.36);
  border-radius: 17px;
  background: rgba(8, 12, 21, 0.48);
  overflow: hidden;
}

.app .profile-info-item {
  min-width: 0;
  padding: 13px 8px 12px;
}

.app .profile-info-item+.profile-info-item {
  border-left: 1px solid rgba(150, 164, 193, 0.28);
}

.app .profile-info-icon {
  min-height: 25px;
  color: #ff4a97;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 0 7px rgba(255, 53, 139, 0.35));
}

.app .profile-info-label {
  margin-top: 8px;
  color: #f0f2f8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.35px;
  line-height: 1.2;
}

.app .profile-info-value {
  min-height: 17px;
  margin-top: 5px;
  color: #d0d6e2;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.app #panelBio {
  display: -webkit-box;
  max-height: 4.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app #panelActivity {
  margin-top: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #d0d6e2;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.app .profile-about-read-more {
  display: block;
  margin-top: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ff5f9e;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.app .profile-about-read-more:hover {
  color: #ff9bc3;
  text-decoration: underline;
}

.app .profile-about-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(7px);
}

.app .profile-about-modal[hidden] {
  display: none;
}

.app .profile-about-modal-card {
  width: min(100%, 360px);
  max-height: min(70vh, 330px);
  overflow: hidden;
  border: 1px solid rgba(255, 71, 148, 0.82);
  border-radius: 15px;
  background:
    linear-gradient(150deg, rgba(21, 17, 33, 0.98), rgba(8, 14, 27, 0.98));
  box-shadow:
    0 0 0 1px rgba(114, 54, 190, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(255, 49, 91, 0.18);
}

.app .profile-about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(150, 164, 193, 0.2);
}

.app .profile-about-modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.app .profile-about-modal-close {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 87, 157, 0.7);
  border-radius: 50%;
  background: rgba(255, 49, 91, 0.12);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.app .profile-about-modal-close:hover {
  background: rgba(255, 49, 91, 0.32);
}

.app .profile-about-modal-text {
  max-height: 255px;
  overflow-y: auto;
  padding: 15px;
  color: #dbe0ea;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.app .profile-panel .profile-section {
  margin-top: 18px !important;
}

.app .profile-panel .profile-section-title {
  color: #f0f2f8 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 1px;
}

.app .profile-panel #panelInterests {
  max-height: 112px;
  justify-content: center;
  padding: 9px !important;
  margin-top: 9px !important;
  background: rgba(8, 12, 21, 0.38) !important;
}

.app .profile-panel #panelInterests span {
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 77, 168, 0.78) !important;
  background: rgba(19, 18, 31, 0.72) !important;
  color: #f0dced !important;
  font-size: 11px !important;
  font-weight: 700;
}

.app .profile-panel #panelMessageButton {
  min-height: 47px;
  margin-top: 18px !important;
  border: 1px solid rgba(255, 67, 143, 0.85);
  border-radius: 10px;
  background: linear-gradient(100deg, #ff315b 0%, #e82b9c 53%, #a828ee 100%);
  box-shadow: 0 9px 22px rgba(224, 31, 135, 0.27);
  font-size: 15px;
  letter-spacing: 0.1px;
}

.app .profile-panel .profile-safety-actions {
  gap: 14px;
  margin-top: 10px !important;
}

.app .profile-panel .profile-safety-button {
  min-height: 38px;
  border: 1px solid rgba(205, 216, 236, 0.55);
  border-radius: 9px;
  background: rgba(5, 8, 15, 0.54);
  color: #f0f2f8;
  font-size: 12px;
  font-weight: 850;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.app .profile-panel .profile-safety-button:hover {
  transform: translateY(-1px);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.app .profile-panel .profile-report-button {
  border-color: rgba(255, 67, 105, 0.9);
  color: #ff6e8d;
}

.app .profile-panel .profile-report-button:hover {
  border-color: #ff315b;
  background: rgba(255, 49, 91, 0.15);
  color: #ffb3c4;
}

@media (max-width: 520px) {
  .app .profile-panel {
    width: min(420px, 94vw) !important;
  }
}


/* BRIGHTER PROFILE PHOTO GLOW */

.app #panelPhoto {
  position: relative;
  z-index: 3;

  border: 3px solid #ff367f !important;

  box-shadow:
    0 0 0 5px rgba(255, 54, 127, 0.08),
    0 0 26px rgba(255, 42, 129, 0.35),
    0 0 42px rgba(156, 35, 255, 0.16) !important;
}


/* RADARMEET BRAND WATERMARK */

.app .profile-photo-wrap::after {
  content: "RADARMEET";

  position: absolute;

  left: 50%;
  top: 165px;

  transform: translateX(-50%);

  width: 300px;

  text-align: center;

  color: rgba(194, 73, 221, 0.20);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 7px;

  pointer-events: none;
}

/* =========================================
   SIGNUP HUMAN CHALLENGE
   ========================================= */

.signup-human-challenge {
  margin-top: 17px;
  padding: 15px;
  border: 1px solid rgba(255, 111, 145, 0.34);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 22, 255, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(39, 25, 42, 0.92), rgba(13, 16, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 13px 30px rgba(0, 0, 0, 0.22);
}

.signup-human-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-human-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 111, 145, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, #ff315b, #b516ff);
  color: white;
  font-size: 17px;
  box-shadow: 0 7px 18px rgba(255, 49, 91, 0.24);
}

.signup-human-heading h2 {
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.1px;
}

.signup-human-heading p {
  margin-top: 4px;
  color: #aeb0c0;
  font-size: 11px;
  line-height: 1.35;
}

.signup-human-status {
  min-height: 18px;
  margin: 12px 0 9px;
  color: #ffb6c7;
  font-size: 11px;
  line-height: 1.4;
}

.signup-human-status.is-success {
  color: #7ce4bb;
}

.signup-human-status.is-error {
  color: #ff9da9;
}

.signup-human-board {
  display: grid;
  grid-template-columns: minmax(104px, 0.78fr) minmax(0, 1.22fr);
  gap: 9px;
  align-items: stretch;
}

.signup-human-drag-card,
.signup-human-target-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(7, 9, 15, 0.52);
}

.signup-human-eyebrow {
  display: block;
  color: #82899c;
  font-family: monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.signup-human-item {
  width: 100%;
  min-height: 65px;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 126, 155, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 49, 91, 0.18), rgba(181, 22, 255, 0.12)),
    #141421;
  color: white;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.signup-human-item:hover,
.signup-human-item:focus-visible,
.signup-human-item.is-selected {
  border-color: #ff7a9c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 49, 91, 0.13);
}

.signup-human-item.is-dragging {
  cursor: grabbing;
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.34);
}

.signup-human-drag-preview {
  position: fixed !important;
  z-index: 150000 !important;
  margin: 0 !important;
  pointer-events: none !important;
  cursor: grabbing !important;
  opacity: 1 !important;
  transform: scale(1.04) !important;
  transition: none !important;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(255, 49, 91, 0.16) !important;
}

.signup-human-icon {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.signup-human-label {
  display: block;
  margin-top: 4px;
  color: #eef0f6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.signup-human-hint {
  display: block;
  margin-top: 7px;
  color: #767e91;
  font-size: 9px;
  line-height: 1.3;
}

.signup-human-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.signup-human-target {
  min-width: 0;
  min-height: 67px;
  padding: 5px 3px;
  border: 1px dashed rgba(255, 255, 255, 0.21);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #cdd1dc;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.signup-human-target:hover,
.signup-human-target:focus-visible,
.signup-human-target.is-hovered,
.signup-human-target.is-selected {
  border-color: #ff7a9c;
  background: rgba(255, 49, 91, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.signup-human-target.is-success {
  border-style: solid;
  border-color: #5fd9ad;
  background: rgba(49, 230, 182, 0.13);
}

.signup-human-target-icon {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.signup-human-target-label {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #d8dce6;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signup-human-retry {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaf2;
  font-size: 11px;
  font-weight: 800;
}

.signup-human-retry:hover,
.signup-human-retry:focus-visible {
  border-color: #ff7a9c;
  background: rgba(255, 49, 91, 0.13);
  outline: none;
}

@media (max-width: 520px) {
  .signup-human-challenge {
    padding: 12px;
  }

  .signup-human-board {
    grid-template-columns: 1fr;
  }

  .signup-human-drag-card {
    display: grid;
    grid-template-columns: auto minmax(84px, 112px);
    align-items: center;
    column-gap: 8px;
  }

  .signup-human-drag-card .signup-human-eyebrow {
    grid-column: 1 / -1;
  }

  .signup-human-item {
    min-height: 59px;
    margin-top: 7px;
  }

  .signup-human-hint {
    margin: 0;
    font-size: 10px;
  }
}

/* =========================================================
   MOBILE JOURNEY PASS
   Scoped layout overrides only. Keep desktop composition intact.
   ========================================================= */

@media (max-width: 800px) {
  :root {
    --mobile-gutter: 12px;
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-safe-right: env(safe-area-inset-right, 0px);
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-safe-left: env(safe-area-inset-left, 0px);
  }

  html {
    min-height: 100%;
    background: #07090d;
  }

  body {
    min-width: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
  }

  button,
  input,
  select,
  textarea {
    max-width: 100%;
  }

  button,
  .nav-item,
  .auth-main-button,
  .premium-upgrade-btn,
  .premium-cancel-btn,
  .city-chat-send,
  .thread-send-btn,
  .send-message-btn {
    min-height: 44px;
  }

  /* Auth: allow the keyboard and short screens to scroll the complete form. */
  .auth-screen {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100dvh !important;
    height: auto !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding:
      calc(12px + var(--mobile-safe-top)) calc(12px + var(--mobile-safe-right)) calc(24px + var(--mobile-safe-bottom)) calc(12px + var(--mobile-safe-left)) !important;
  }

  .auth-center {
    width: min(100%, 500px) !important;
    min-width: 0 !important;
    align-items: flex-start !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px 16px 22px !important;
    border-radius: 18px !important;
  }

  .auth-logo-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 28px !important;
  }

  .auth-logo {
    font-size: clamp(24px, 8vw, 30px) !important;
    letter-spacing: 0.5px !important;
  }

  .auth-tagline {
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
  }

  .auth-join-line {
    flex-wrap: wrap;
    gap: 4px 7px !important;
    margin-bottom: 17px !important;
    font-size: 11px !important;
    text-align: center;
  }

  .auth-tabs {
    margin-bottom: 18px !important;
  }

  .auth-tab {
    min-height: 44px !important;
    height: auto !important;
    padding: 0 7px !important;
    font-size: 12px !important;
  }

  .auth-form>input,
  .auth-form select,
  .auth-form textarea {
    min-height: 46px;
    font-size: 16px !important;
  }

  .auth-form label {
    margin-top: 11px;
    font-size: 11px;
  }

  .auth-options {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
  }

  .remember-login,
  .forgot-password {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .forgot-password {
    margin-left: auto;
  }

  .auth-terms-check {
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    line-height: 1.45;
  }

  .auth-terms-check input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 1px;
  }

  .auth-footer-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
  }

  .auth-footer-links button {
    min-height: 40px;
  }

  .signup-human-challenge {
    margin-top: 14px;
  }

  .signup-human-item,
  .signup-human-target {
    min-height: 64px;
  }

  /* Auth activity collage is decorative on small screens. */
  .auth-activity-column,
  .auth-features {
    display: none !important;
  }

  /* Authenticated shell: navigation becomes a sticky, horizontally scrollable
     mobile toolbar while the main content owns the page scroll. */
  .app {
    min-height: 100dvh;
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    z-index: 3000;
    border-right: 0;
    border-bottom: 1px solid #20242c;
    padding-top: var(--mobile-safe-top);
  }

  .logo {
    min-height: 58px;
    padding: 9px var(--mobile-gutter);
    border-bottom: 0;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }

  .logo-name {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 10px;
  }

  .sidebar-user-tools {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 7px var(--mobile-gutter) calc(8px + var(--mobile-safe-bottom));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-item span:first-child {
    font-size: 15px;
  }

  .sidebar-search {
    order: 20;
    flex: 0 0 190px;
    min-width: 190px;
    height: 44px;
    margin: 0;
  }

  .people-search-results {
    position: absolute;
    top: calc(100% - 8px);
    right: var(--mobile-gutter);
    left: var(--mobile-gutter);
    z-index: 3100;
    max-height: 250px;
    overflow-y: auto;
  }

  .my-meetups-section {
    order: 21;
    flex: 0 0 auto;
    margin: 0;
  }

  .my-meetups-toggle {
    min-height: 44px;
    padding: 0 12px;
  }

  .sidebar-bottom {
    display: block;
    margin: 0;
    padding: 8px var(--mobile-gutter) 10px;
    border-top: 1px solid #20242c;
  }

  .plan-label,
  .plan-text {
    display: none;
  }

  .premium-btn {
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
  }

  .main {
    width: 100%;
    min-height: calc(100dvh - 112px);
  }

  .topbar {
    min-height: 106px !important;
    padding:
      17px var(--mobile-gutter) 18px !important;
  }

  .topbar>div::after {
    max-width: 250px;
  }

  #pageTitle {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.05;
  }

  .live-label {
    font-size: 9px;
  }

  /* Radar controls and map stack cleanly. */
  .radar-view {
    display: flex !important;
    min-width: 0;
  }

  .top-control-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px var(--mobile-gutter) !important;
  }

  .top-control-row>.travel-mode-card,
  .top-control-row>.radar-controls {
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 13px !important;
    border-radius: 13px !important;
  }

  .travel-mode-header {
    min-width: 0;
  }

  .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
    width: 100%;
    margin-top: 9px;
  }

  .travel-city-search-wrap,
  #travelCitySearch,
  .travel-mode-button {
    width: 100% !important;
    min-width: 0;
  }

  #travelCitySearch,
  .travel-mode-button,
  .radar-filter-group select,
  .age-filter-row input {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
  }

  .travel-city-results {
    max-height: 190px;
    overflow-y: auto;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    flex-wrap: wrap !important;
    gap: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group select {
    width: 100% !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row {
    flex-wrap: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    flex: 1 1 0;
    width: auto;
  }

  .app:has(.radar-view:not(.hidden)) .reset-filter-btn,
  .app:has(.radar-view:not(.hidden)) .logout-button {
    min-height: 44px;
    flex: 1 1 calc(50% - 6px);
    height: 44px;
    font-size: 11px;
  }

  .content {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0 var(--mobile-gutter) 10px !important;
  }

  .map-card {
    width: 100%;
    height: min(52dvh, 390px) !important;
    min-height: 300px !important;
    border-radius: 13px;
  }

  #map {
    min-height: 0 !important;
  }

  .map-status {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    line-height: 1.35;
  }

  .chat-panel {
    width: 100%;
    height: 320px !important;
    min-height: 320px !important;
    border-radius: 13px;
  }

  .chat-input {
    padding-bottom: calc(10px + var(--mobile-safe-bottom));
  }

  .chat-input input,
  #cityChatPreviewInput {
    min-height: 44px;
    font-size: 16px;
  }

  .chat-input button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .radar-slider-row {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 var(--mobile-gutter) 12px !important;
  }

  .radar-slider-row .radar-controls {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .radar-slider-row input[type="range"] {
    width: 100% !important;
    min-height: 32px;
  }

  .radar-slider-row .distance-labels {
    width: 100% !important;
  }

  /* Profile panel becomes a full-width bottom sheet over the map. */
  .app .profile-panel {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: min(82dvh, 620px) !important;
    max-height: 82dvh !important;
    border-top: 1px solid #313743 !important;
    border-left: 0 !important;
    border-radius: 17px 17px 0 0 !important;
    transform: translateY(105%) !important;
  }

  .app .profile-panel.open {
    transform: translateY(0) !important;
  }

  .app .profile-panel-inner {
    padding:
      42px 16px calc(22px + var(--mobile-safe-bottom)) !important;
  }

  .app .profile-photo-wrap {
    margin-top: 8px;
  }

  .app #panelBio {
    text-align: left;
  }

  .app #panelInterests {
    max-height: 130px;
  }

  .profile-safety-actions {
    flex-wrap: wrap;
  }

  .profile-safety-button {
    min-height: 44px;
    flex: 1 1 130px;
  }

  .profile-about-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2500 !important;
    display: grid;
    place-items: center;
    padding:
      calc(16px + var(--mobile-safe-top)) calc(16px + var(--mobile-safe-right)) calc(16px + var(--mobile-safe-bottom)) calc(16px + var(--mobile-safe-left));
  }

  .profile-about-modal-card {
    width: 100%;
    max-height: min(72dvh, 520px);
    overflow-y: auto;
  }

  /* Full-page secondary views. */
  .city-chat-view,
  .messages-view,
  .edit-profile-view,
  .blocked-view,
  .help-view,
  .admin-view,
  .premium-view {
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 112px);
    padding:
      10px var(--mobile-gutter) calc(18px + var(--mobile-safe-bottom)) !important;
  }

  .city-chat-page,
  .premium-page,
  .edit-profile-card,
  .blocked-card,
  .admin-page {
    width: 100%;
    min-width: 0;
  }

  .city-chat-page-header {
    min-height: 0 !important;
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px;
    padding: 17px !important;
  }

  .city-chat-page-header h2 {
    font-size: 24px !important;
  }

  .city-online-pill {
    align-self: stretch;
    justify-content: center;
  }

  .city-chat-messages {
    height: min(56dvh, 520px) !important;
    min-height: 300px;
    padding: 12px !important;
  }

  .app .city-chat-messages {
    background-position: center;
    background-size: cover;
  }

  .city-full-message {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 6px !important;
  }

  .city-chat-compose {
    min-height: 0 !important;
    align-items: flex-end;
    gap: 8px;
    padding: 10px !important;
    padding-bottom: calc(10px + var(--mobile-safe-bottom)) !important;
  }

  .city-you-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .city-chat-compose textarea,
  #cityChatInput {
    min-height: 44px !important;
    max-height: 120px;
    padding: 11px !important;
    font-size: 16px !important;
  }

  .city-chat-send {
    width: 44px;
    min-width: 44px !important;
    height: 44px;
  }

  .app .city-chat-emoji-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .app .city-chat-emoji-panel {
    right: -4px;
    width: 232px;
    padding: 10px;
  }

  .city-chat-emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  /* DMs use a usable stacked layout instead of a squeezed two-column split. */
  .messages-view {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
  }

  .conversation-panel,
  .thread-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .conversation-panel {
    max-height: 330px;
    min-height: 210px;
  }

  .conversation-list {
    max-height: 190px;
    overflow-y: auto;
  }

  .thread-panel {
    min-height: 500px;
  }

  .thread-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 13px !important;
  }

  .thread-person {
    min-width: 0;
  }

  .thread-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .thread-actions button {
    min-height: 44px;
    flex: 1 1 130px;
  }

  .thread-messages {
    min-height: 270px;
    max-height: none;
    padding: 13px !important;
  }

  .thread-bubble {
    max-width: 86%;
  }

  .thread-compose {
    align-items: flex-end;
    flex-wrap: wrap;
    padding:
      10px 12px calc(10px + var(--mobile-safe-bottom)) !important;
  }

  #threadInput {
    order: 2;
    flex: 1 1 calc(100% - 108px);
    min-height: 46px;
    max-height: 120px;
    font-size: 16px;
  }

  #threadPhotoButton,
  #threadSendButton {
    order: 1;
    min-width: 44px;
    min-height: 44px;
  }

  #threadSendButton {
    order: 3;
    padding: 0 14px;
  }

  /* Edit profile and other forms. */
  .edit-profile-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 17px !important;
  }

  .edit-profile-header,
  .blocked-heading {
    padding: 18px !important;
  }

  .edit-form-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 9px;
  }

  .edit-field input,
  .edit-field textarea,
  .edit-field select {
    min-height: 46px;
    font-size: 16px;
  }

  .edit-field textarea {
    min-height: 125px;
  }

  .interest-grid {
    gap: 7px;
  }

  .interest-option span,
  .reset-interests-btn,
  .profile-background-upload-button,
  .profile-background-remove-button,
  .save-profile-btn {
    min-height: 44px;
  }

  .profile-background-upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-background-upload-button,
  .profile-background-remove-button {
    justify-content: center;
    width: 100%;
  }

  .help-grid {
    grid-template-columns: 1fr !important;
  }

  .help-contact {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 12px;
  }

  .help-contact-button {
    width: 100%;
    min-height: 44px;
  }

  /* Premium feature cards and comparison remain readable without horizontal
     page scrolling. */
  .premium-hero {
    padding: 19px 15px !important;
  }

  .premium-hero h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .premium-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .premium-feature-card {
    padding: 15px !important;
  }

  .premium-comparison {
    overflow-x: hidden;
  }

  .premium-comparison-row {
    grid-template-columns: minmax(0, 1.45fr) minmax(48px, 0.55fr) minmax(62px, 0.7fr) !important;
    gap: 7px;
    padding: 11px 10px !important;
    font-size: 11px;
  }

  .premium-plan-card {
    padding: 19px 15px !important;
  }

  .premium-manage-actions {
    gap: 8px;
  }

  /* Admin controls and report cards wrap instead of overflowing. */
  .admin-header,
  .admin-toolbar,
  .admin-user-search-heading {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .admin-header h2 {
    font-size: 26px !important;
  }

  .admin-refresh-button {
    width: 100%;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-toolbar-controls {
    width: 100%;
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .admin-toolbar-controls select,
  .admin-toolbar-controls input,
  #adminUserSearchInput {
    width: 100% !important;
    min-height: 44px;
  }

  .admin-report-card {
    padding: 14px !important;
  }

  .admin-report-card-header {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px;
  }

  .admin-card-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    white-space: normal;
  }

  .admin-people-grid,
  .admin-selected-user-summary {
    grid-template-columns: 1fr !important;
  }

  .admin-moderation-actions,
  .admin-review-controls {
    align-items: stretch !important;
    flex-wrap: wrap;
  }

  .admin-account-action-select,
  .admin-action-button,
  .admin-review-select,
  .admin-save-review-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 100%;
  }

  /* Meetups, legal, reset, report, confirmation, and photo sheets. */
  .my-meetups-overlay,
  .meetup-create-overlay,
  .message-overlay,
  .report-overlay,
  .confirm-overlay,
  .legal-overlay,
  .password-reset-overlay {
    align-items: flex-end !important;
    padding:
      10px calc(10px + var(--mobile-safe-right)) calc(10px + var(--mobile-safe-bottom)) calc(10px + var(--mobile-safe-left)) !important;
  }

  .my-meetups-modal,
  .meetup-create-modal,
  .message-modal,
  .report-modal,
  .confirm-modal,
  .legal-modal,
  .password-reset-modal {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    border-radius: 17px !important;
  }

  .my-meetups-modal-header,
  .meetup-create-modal,
  .message-modal,
  .report-modal,
  .confirm-modal,
  .password-reset-modal {
    padding-left: 17px !important;
    padding-right: 17px !important;
  }

  .my-meetups-modal-header {
    gap: 12px;
  }

  .my-meetups-modal-header h2 {
    font-size: 25px;
  }

  .my-meetups-tabs {
    margin-right: 17px !important;
    margin-left: 17px !important;
  }

  .my-meetups-tab {
    min-height: 44px;
    padding: 0 7px;
  }

  .my-meetups-list {
    padding-right: 17px !important;
    padding-left: 17px !important;
  }

  .meetup-create-modal {
    padding-top: 26px !important;
    padding-bottom: calc(18px + var(--mobile-safe-bottom)) !important;
  }

  .meetup-create-place-summary,
  .meetup-create-grid {
    grid-template-columns: 1fr !important;
  }

  .meetup-create-field input,
  .meetup-create-field textarea,
  .report-form input,
  .report-form select,
  .report-form textarea,
  .message-modal textarea,
  .password-reset-form input {
    min-height: 46px;
    font-size: 16px;
  }

  .meetup-create-field textarea,
  .report-form textarea,
  .message-modal textarea {
    min-height: 110px;
  }

  .meetup-create-actions,
  .confirm-actions {
    flex-direction: column-reverse;
  }

  .meetup-create-cancel,
  .meetup-create-submit,
  .confirm-actions button,
  .send-message-btn,
  .report-submit,
  .password-reset-form .auth-main-button {
    width: 100%;
    min-height: 46px;
  }

  .legal-modal {
    max-height: calc(100dvh - 20px) !important;
    padding: 52px 0 calc(8px + var(--mobile-safe-bottom)) !important;
  }

  .legal-tabs {
    gap: 4px;
    padding: 4px 12px;
  }

  .legal-tab {
    min-height: 44px;
    padding: 0 7px;
    font-size: 11px;
  }

  .legal-content {
    max-height: calc(100dvh - 145px);
    padding: 0 16px 16px !important;
  }

  .message-photo-viewer {
    padding:
      calc(28px + var(--mobile-safe-top)) calc(12px + var(--mobile-safe-right)) calc(18px + var(--mobile-safe-bottom)) calc(12px + var(--mobile-safe-left));
  }

  .message-photo-viewer-image {
    max-width: 94vw;
    max-height: 74dvh;
  }

  .message-photo-viewer-close {
    top: -8px;
    right: -4px;
  }

  /* Leaflet popups are constrained to the viewport for people, clusters, and
     activity-place/meetup details. */
  .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 42px);
  }

  .leaflet-popup-content {
    max-width: min(260px, calc(100vw - 70px));
    margin: 11px;
  }

  .person-popup {
    min-width: 0;
    width: min(220px, calc(100vw - 82px));
  }

  .popup-profile-btn,
  .popup-message-btn,
  .activity-place-popup-view-button,
  .meetup-group-popup-item {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }

  .auth-options {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .forgot-password {
    margin-left: 0;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    flex-basis: 100%;
  }

  .edit-form-row {
    grid-template-columns: 1fr;
  }

  .premium-comparison-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(44px, 0.55fr) minmax(58px, 0.65fr) !important;
    font-size: 10px;
  }

  .my-meetups-tabs {
    gap: 3px;
  }

  .my-meetups-tab {
    font-size: 10px;
  }
}

/* =========================================================
   PHONE LAYOUT - FINAL CASCADE
   Keep the authenticated shell in normal flow on iPhone-sized
   screens. These rules intentionally come last so the visual
   upgrade selectors above cannot re-introduce desktop widths.
   ========================================================= */

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 800px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .app {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  /* Compact header; the full navigation is an in-flow menu, never an
     overlay or a permanent second page column. */
  .app .sidebar {
    position: sticky !important;
    top: 0;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: env(safe-area-inset-top, 0px);
    border-right: 0 !important;
    border-bottom: 1px solid #20242c;
    z-index: 3000;
  }

  .app .logo {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding:
      8px calc(12px + env(safe-area-inset-right, 0px)) 8px calc(12px + env(safe-area-inset-left, 0px));
    gap: 9px;
  }

  .app .logo>div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app .logo-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }

  .app .logo-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .app .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 73, 122, 0.6);
    border-radius: 10px;
    background: rgba(255, 49, 91, 0.12);
    color: #ffdce5;
    font-size: 11px;
    font-weight: 900;
  }

  .app .mobile-nav-toggle>span:first-child {
    color: #ff6b93;
    font-size: 17px;
    line-height: 1;
  }

  .app .mobile-nav-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  .app .sidebar .nav {
    display: none !important;
    width: 100%;
    min-width: 0;
    max-height: min(68dvh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    padding:
      8px calc(12px + env(safe-area-inset-right, 0px)) 8px calc(12px + env(safe-area-inset-left, 0px));
    gap: 5px;
    background: #0d1016;
  }

  .app .sidebar.mobile-menu-open .nav {
    display: flex !important;
    flex-direction: column;
  }

  .app .sidebar .nav-item {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 12px;
    gap: 10px;
    white-space: normal;
    overflow: visible;
    font-size: 13px;
  }

  .app .sidebar .nav-item>span:first-child {
    flex: 0 0 22px;
    width: 22px;
    text-align: center;
  }

  .app .sidebar .message-nav-badge {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .app .sidebar .sidebar-search {
    order: initial;
    width: 100%;
    min-width: 0;
    flex: 0 0 44px;
    margin: 3px 0 0;
  }

  .app .sidebar .people-search-results {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-height: 210px;
  }

  .app .sidebar .my-meetups-section {
    order: initial;
    width: 100%;
    margin: 0;
  }

  .app .sidebar .my-meetups-toggle {
    width: 100%;
    min-height: 44px;
  }

  .app .sidebar .help-support-nav,
  .app .sidebar .sidebar-bottom {
    display: none !important;
  }

  .app .sidebar.mobile-menu-open .help-support-nav {
    display: flex !important;
    width: calc(100% - 24px);
    min-width: 0;
    margin: 4px 12px 8px;
  }

  .app .sidebar.mobile-menu-open .sidebar-bottom {
    display: block !important;
    margin: 0;
    padding:
      8px calc(12px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  }

  .app .sidebar.mobile-menu-open .premium-btn {
    width: 100%;
    min-height: 44px;
    margin: 0;
  }

  .app .main {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    min-height: 0;
    overflow: visible;
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    width: 100%;
    min-height: 112px !important;
    padding:
      15px calc(12px + env(safe-area-inset-right, 0px)) 16px calc(12px + env(safe-area-inset-left, 0px)) !important;
  }

  .app .topbar>div {
    min-width: 0;
    max-width: 100%;
  }

  .app #pageTitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(24px, 8vw, 32px) !important;
  }

  /* Radar controls are one readable column, not a desktop grid squeezed
     into the remaining space. */
  .app .radar-view {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0;
    gap: 10px !important;
    padding:
      10px calc(12px + env(safe-area-inset-right, 0px)) 10px calc(12px + env(safe-area-inset-left, 0px)) !important;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 13px !important;
    border-radius: 13px !important;
  }

  .app .travel-mode-header,
  .app .travel-mode-header>div,
  .app .travel-mode-controls,
  .app .travel-city-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .app .travel-mode-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    margin-top: 9px;
  }

  .app #travelCitySearch,
  .app .travel-mode-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .app .travel-mode-button {
    white-space: normal;
    line-height: 1.15;
  }

  .app .radar-filter-box {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .app .radar-filter-title {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .app .radar-filter-grid,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    gap: 9px !important;
    margin-top: 0;
  }

  .app .radar-filter-group,
  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    display: flex;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    gap: 5px;
  }

  .app .radar-filter-group select,
  .app:has(.radar-view:not(.hidden)) .radar-filter-group select {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .app .age-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    gap: 7px;
  }

  .app .age-filter-row input,
  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    width: 100% !important;
    min-width: 0;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .app .reset-filter-btn,
  .app .logout-button,
  .app:has(.radar-view:not(.hidden)) .reset-filter-btn,
  .app:has(.radar-view:not(.hidden)) .logout-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0;
    font-size: 12px !important;
  }

  .app .content,
  .app:has(.radar-view:not(.hidden)) .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding:
      0 calc(12px + env(safe-area-inset-right, 0px)) 10px calc(12px + env(safe-area-inset-left, 0px)) !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: min(48dvh, 360px) !important;
    min-height: 260px !important;
    max-height: 360px;
    border-radius: 13px;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px;
  }

  .app .chat-input {
    margin: 0 10px 10px;
  }

  .app .chat-input input,
  .app #cityChatPreviewInput {
    min-width: 0;
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }

  .app .chat-input button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0;
    gap: 10px !important;
    padding:
      8px calc(12px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)) !important;
  }

  .app .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 13px !important;
  }

  .app .radar-slider-row input[type="range"],
  .app .radar-slider-row .distance-labels {
    width: 100% !important;
    max-width: none !important;
  }

  /* City Chat and DMs each own the viewport width. */
  .app .city-chat-view,
  .app .messages-view,
  .app .edit-profile-view,
  .app .blocked-view,
  .app .help-view,
  .app .admin-view,
  .app .premium-view {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    min-height: calc(100dvh - 62px);
    padding:
      10px calc(12px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)) !important;
    overflow-x: hidden;
  }

  .app .city-chat-page,
  .app .premium-page,
  .app .edit-profile-card,
  .app .blocked-card,
  .app .admin-page {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }

  .app .city-chat-page-header {
    min-height: 0 !important;
    align-items: stretch !important;
    flex-direction: column;
    gap: 10px;
    padding: 15px !important;
  }

  .app .city-chat-page-header h2 {
    overflow-wrap: anywhere;
    font-size: 22px !important;
  }

  .app .city-online-pill {
    align-self: stretch;
    text-align: center;
  }

  .app .city-chat-messages {
    width: 100%;
    height: min(54dvh, 460px) !important;
    min-height: 260px;
    padding: 12px !important;
  }

  .app .city-full-message {
    min-width: 0;
    gap: 8px;
    margin-bottom: 14px;
  }

  .app .city-full-avatar,
  .app .city-you-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .app .city-message-content {
    min-width: 0;
  }

  .app .city-message-top {
    flex-wrap: wrap;
  }

  .app .city-message-content p {
    overflow-wrap: anywhere;
  }

  .app .city-chat-compose {
    align-items: flex-end;
    min-width: 0;
    gap: 7px;
    padding:
      9px 10px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .app .city-chat-compose textarea,
  .app #cityChatInput {
    min-width: 0;
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .app .city-chat-send,
  .app .city-chat-emoji-button {
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  .app .messages-view {
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    overflow: visible;
  }

  .app .conversation-panel,
  .app .thread-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .app .conversation-panel {
    min-height: 0;
    max-height: 270px;
  }

  .app .conversation-heading {
    padding: 15px !important;
  }

  .app .conversation-heading h2 {
    overflow-wrap: anywhere;
    font-size: 21px !important;
  }

  .app .conversation-list {
    max-height: 155px;
    overflow-y: auto;
  }

  .app .thread-panel {
    min-height: 0 !important;
    height: min(74dvh, 600px);
    max-height: 600px;
  }

  .app .thread-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0 !important;
    padding: 13px !important;
  }

  .app .thread-person {
    width: 100%;
    min-width: 0;
  }

  .app .thread-person>div:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .app #threadName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px !important;
  }

  .app .thread-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .app .thread-actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px !important;
    font-size: 12px;
  }

  .app .thread-messages {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    padding: 13px !important;
  }

  .app .thread-bubble {
    max-width: 88%;
    overflow-wrap: anywhere;
  }

  .app .thread-compose {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: end;
    gap: 7px;
    padding:
      9px 10px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .app #threadInput {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px !important;
    max-height: 112px;
    font-size: 16px !important;
  }

  .app #threadPhotoButton,
  .app #threadSendButton {
    grid-row: 1;
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  .app #threadPhotoButton {
    grid-column: 1;
  }

  .app #threadSendButton {
    grid-column: 3;
  }
}

@media (max-width: 420px) {
  .app .logo {
    padding-right: calc(9px + env(safe-area-inset-right, 0px));
    padding-left: calc(9px + env(safe-area-inset-left, 0px));
  }

  .app .logo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 17px;
  }

  .app .logo-name {
    font-size: 14px;
  }

  .app .mobile-nav-toggle {
    min-width: 64px;
    padding: 0 8px;
    font-size: 10px;
  }

  .app .mobile-nav-toggle>span:first-child {
    font-size: 15px;
  }

  .app .thread-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .app .thread-panel {
    height: 72dvh;
  }
}

@media (max-width: 800px) {
  .travel-city-lock-badge:not([hidden]) {
    display: block;
  }

  .travel-button-lock-badge:not([hidden]) {
    display: inline-flex;
  }

  .radar-distance-lock-badge:not([hidden]) {
    display: inline-flex;
    color: #ff8eaf;
    font-weight: 800;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-button.premium-locked:disabled {
    cursor: not-allowed !important;
  }

  .app #travelCitySearch.premium-locked {
    cursor: not-allowed !important;
    padding: 0 100px 0 12px !important;
  }
}

/* =========================================================
   MOBILE VIEW ISOLATION + FINAL TOUCH LAYOUT
   The phone cascade above contains intentional !important sizing rules.
   Keep those rules from turning hidden destinations back into flex items.
   ========================================================= */

@media (max-width: 800px) {

  /* View switching is a state contract, not just a visual preference. */
  .app .radar-view.hidden,
  .app .city-chat-view:not(.open),
  .app .messages-view:not(.open),
  .app .edit-profile-view:not(.open),
  .app .blocked-view:not(.open),
  .app .help-view:not(.active),
  .app .admin-view:not(.active),
  .app .premium-view:not(.active) {
    display: none !important;
  }

  .app .radar-view:not(.hidden) {
    display: flex !important;
  }

  .app .city-chat-view.open,
  .app .edit-profile-view.open,
  .app .blocked-view.open,
  .app .help-view.active,
  .app .admin-view.active,
  .app .premium-view.active {
    display: block !important;
  }

  .app .messages-view.open {
    display: flex !important;
  }

  .app .main {
    min-height: calc(100dvh - env(safe-area-inset-top, 0px));
    overflow-x: hidden;
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 74px !important;
    padding:
      10px calc(12px + env(safe-area-inset-right, 0px)) 11px calc(12px + env(safe-area-inset-left, 0px)) !important;
  }

  .app .topbar .live-label {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .app #pageTitle {
    font-size: clamp(21px, 6vw, 28px) !important;
    line-height: 1.05;
  }

  /* Keep secondary destinations as bounded, independently scrollable pages. */
  .app .city-chat-view.open,
  .app .messages-view.open,
  .app .edit-profile-view.open,
  .app .blocked-view.open,
  .app .help-view.active,
  .app .admin-view.active,
  .app .premium-view.active {
    height: calc(100dvh - 74px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 74px - env(safe-area-inset-top, 0px));
    min-height: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Radar is intentionally a document flow: its map and controls remain
     reachable without trapping the user in a nested scroll container. */
  .app .radar-view:not(.hidden) {
    min-height: 0;
    overflow: visible;
  }

  /* Two compact filter columns retain 44px touch targets without wasting a
     full phone screen on four stacked controls. */
  .app .radar-filter-grid,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .app .radar-filter-grid>.radar-filter-group:first-child {
    grid-column: 1 / -1;
  }

  .app .radar-filter-grid>.reset-filter-btn,
  .app .radar-filter-grid>.logout-button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .app .radar-slider-row input[type="range"],
  .app #radarDistance,
  .app #privacyDistance {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    touch-action: pan-y;
    cursor: pointer;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    height: min(44dvh, 340px) !important;
    min-height: 250px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    height: 286px !important;
    min-height: 286px !important;
    max-height: 286px;
  }

  .app .city-chat-view.open {
    display: flex !important;
    flex-direction: column;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 180px;
  }

  .app .city-chat-view.open .city-chat-compose {
    flex: 0 0 auto;
  }

  .app .messages-view.open {
    min-height: 0 !important;
  }

  .app .messages-view.open .conversation-panel {
    flex: 0 0 auto;
    max-height: 220px;
    min-height: 0;
  }

  .app .messages-view.open .thread-panel {
    flex: 1 1 auto;
    height: auto;
    min-height: 0 !important;
    max-height: none;
  }
}

/* =========================================================
   PHONE RADAR SLIDER CARDS - FINAL FLOW OVERRIDE
   The visual-upgrade layer gives these cards a desktop flex basis
   and narrow inner widths. On phones they must size to their content.
   ========================================================= */

@media (max-width: 800px) {

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 12px !important;
    padding:
      10px calc(12px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 142px !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .app .radar-slider-row .control-title,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 24px;
    margin: 0 0 10px !important;
    gap: 8px;
    line-height: 1.25;
  }

  .app .radar-slider-row .control-title strong,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .control-title strong {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.25;
  }

  .app .radar-slider-row input[type="range"],
  .app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    touch-action: pan-y;
  }

  .app .radar-slider-row .distance-labels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 16px;
    margin: 6px 0 0 !important;
    line-height: 1.25;
  }

  .app .radar-slider-row .distance-labels span:first-child,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels span:first-child {
    margin-right: auto;
  }

  .app .radar-slider-row .distance-labels span:nth-child(2),
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels span:nth-child(2) {
    margin-left: auto;
  }

  .app .radar-slider-row .premium-distance-help,
  .app .radar-slider-row .privacy-help,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .premium-distance-help,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .privacy-help {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 10px 0 0 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   FINAL MOBILE / TABLET RADAR CASCADE
   Must remain last: legacy responsive rules precede this block.
   ========================================================= */
@media (max-width: 1050px) {
  body {
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    background: #050914 !important;
  }

  .app,
  .app .main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
  }

  .app .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 6000 !important;
    width: min(330px, calc(100vw - 38px)) !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px) !important;
    border-right: 1px solid rgba(80, 108, 165, 0.62) !important;
    border-bottom: 0 !important;
    transform: translateX(-106%) !important;
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.48);
  }

  .app .sidebar.mobile-menu-open {
    transform: translateX(0) !important;
  }

  .app .logo {
    min-height: 64px !important;
    height: 64px !important;
    padding: 9px 3px !important;
  }

  .app .mobile-nav-toggle {
    display: none !important;
  }

  .app .sidebar-user-tools {
    display: flex !important;
    margin: 5px 0 10px;
  }

  .app .nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
    padding: 4px 0 10px;
    overflow: visible !important;
  }

  .app .nav-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .app .sidebar-search {
    width: 100% !important;
    min-width: 0 !important;
    margin: 7px 0 0;
  }

  .app .sidebar-bottom {
    display: block !important;
    margin: 8px 0 0;
    padding: 12px 0 10px;
  }

  .app .sidebar .help-support-nav {
    width: 100%;
    margin: 4px 0 0;
  }

  .app .sidebar.mobile-menu-open .mobile-logout-item {
    display: flex !important;
    margin-top: 9px;
    padding-top: 12px;
    border-top: 1px solid rgba(89, 111, 155, 0.4);
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 64px !important;
    padding: 11px 14px 8px !important;
  }

  .app #pageTitle {
    font-size: clamp(22px, 4vw, 30px) !important;
    line-height: 1.05;
  }

  .app .radar-view {
    position: relative !important;
    min-height: 0 !important;
    display: flex !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute !important;
    top: 8px;
    right: 10px;
    left: 10px;
    z-index: 1100;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: auto !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .top-control-row>.travel-mode-card,
  .app .top-control-row>.radar-controls,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    position: relative;
    z-index: 1;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px !important;
    border-radius: 12px !important;
    pointer-events: auto;
  }

  .app .travel-mode-header,
  .app .travel-mode-header>div {
    width: 100%;
    min-width: 0;
  }

  .app .travel-mode-eyebrow,
  .app .travel-mode-controls {
    display: none !important;
  }

  .app .mobile-radar-quick-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid rgba(255, 96, 157, 0.8);
    border-radius: 9px;
    background: linear-gradient(105deg, #ff315b, #d31ee5);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
  }

  .app .radar-filter-box {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }

  .app .radar-filter-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid rgba(69, 154, 255, 0.76);
    border-radius: 9px;
    background: linear-gradient(105deg, #102c50, #12204c);
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
  }

  .app .radar-filter-toggle-icon {
    display: inline-block !important;
    margin-left: 5px;
    color: #63d8ff;
  }

  .app .radar-filter-grid {
    display: none !important;
  }

  .app .radar-filter-grid.is-expanded {
    position: fixed !important;
    top: 50%;
    right: 14px;
    left: 14px;
    z-index: 7000;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-height: min(560px, calc(100dvh - 120px));
    margin: 0 !important;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(80, 142, 225, 0.72);
    border-radius: 16px;
    background:
      radial-gradient(circle at 90% 0%, rgba(186, 28, 220, 0.16), transparent 12rem),
      linear-gradient(145deg, #111c33, #080f20);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(60, 99, 229, 0.16);
    transform: translateY(-50%);
  }

  .app .radar-filter-grid .logout-button {
    display: none !important;
  }

  .app .mobile-radar-filter-apply,
  .app .mobile-radar-popup-close {
    width: 100%;
    min-height: 42px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .app .mobile-radar-filter-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(100deg, #ff315b, #c21bf0);
    color: #ffffff;
  }

  .app .mobile-radar-popup-close {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 137, 182, 0.68);
    background: #111c31;
    color: #dce7fa;
  }

  .app .radar-filter-grid.is-expanded .mobile-radar-popup-close,
  .app .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    display: flex;
  }

  .app .travel-mode-card.mobile-explore-open {
    position: fixed !important;
    top: 50%;
    right: 14px !important;
    left: 14px !important;
    z-index: 7000;
    width: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(224, 69, 182, 0.72) !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 49, 91, 0.2), transparent 12rem),
      linear-gradient(145deg, #211536, #0d1429) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(224, 50, 183, 0.2);
    transform: translateY(-50%);
  }

  .app .travel-mode-card.mobile-explore-open .mobile-radar-quick-button {
    display: none !important;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {
    display: block !important;
    margin-bottom: 12px;
  }

  .app .travel-mode-card.mobile-explore-open .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app .travel-mode-card.mobile-explore-open .travel-mode-button {
    width: 100% !important;
    min-width: 0;
    min-height: 46px !important;
    height: 46px !important;
    font-size: 14px !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .app .chat-panel,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(460px, calc(100dvh - 148px), 780px) !important;
    min-height: 460px !important;
    max-height: none !important;
    border-radius: 15px !important;
  }

  .app #map,
  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute !important;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1150;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app .radar-slider-toggle,
  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    width: 100%;
    min-height: 40px;
    pointer-events: auto;
  }

  .app .radar-slider-panels,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    pointer-events: auto;
  }

  .app .radar-slider-row .radar-controls,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .app .city-chat-view.open {
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 2500;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #050914;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 12px 10px;
    border: 0;
    border-radius: 0;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app .city-chat-view.open .city-chat-compose {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .app:has(.city-chat-view.open) .topbar {
    visibility: hidden;
  }

  .app .mobile-bottom-nav {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5000;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 68px;
  }
}

@media (max-width: 520px) {

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    min-height: 58px !important;
    padding: 9px 12px 6px !important;
  }

  .app #pageTitle {
    font-size: 22px !important;
  }

  .app .top-control-row,
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 7px;
    right: 8px;
    left: 8px;
    gap: 6px !important;
  }

  .app .map-card,
  .app:has(.radar-view:not(.hidden)) .map-card {
    height: clamp(460px, calc(100dvh - 132px), 760px) !important;
  }

  .app .radar-slider-panels.is-expanded,
  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   AUTHENTICATED DESKTOP RADAR COMPOSITION
   This is the final desktop-only cascade. The first two top
   cards share the map column; City Chat reserves the third.
   ========================================================= */
@media (min-width: 1051px) {

  .app .radar-view:not(.hidden),
  .app:has(.radar-view:not(.hidden)) .radar-view {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: static !important;
    display: grid !important;
    flex: 0 0 auto !important;
    grid-template-columns:
      minmax(190px, 0.8fr) minmax(270px, 1.2fr) 260px !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 70px !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: grid !important;
    flex: 0 0 auto !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    grid-auto-rows: 570px !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card,
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    align-self: stretch !important;
    width: 100% !important;
    height: 570px !important;
    min-height: 570px !important;
    max-height: 570px !important;
    margin: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app .radar-slider-row,
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 13px 10px !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: contents !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    flex: 1 1 0 !important;
    width: 50% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 78px !important;
    margin: 0 !important;
  }
}

/* Extend only the desktop City Chat panel to the slider-row baseline. */
@media (min-width: 1051px) {
  .app:has(.radar-view:not(.hidden)) .content>.chat-panel {
    align-self: flex-start !important;
    height: 666px !important;
    min-height: 666px !important;
    max-height: 666px !important;
  }
}

/* Improve desktop Radar Filters readability without expanding the card. */
.radar-gender-filter-group {
  display: none;
}

@media (min-width: 1051px) {
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    gap: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group {
    gap: 4px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-gender-filter-group {
    display: flex !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-group label {
    color: #aebed8 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row {
    gap: 4px !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row input {
    width: 46px !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  .app:has(.radar-view:not(.hidden)) .age-filter-row span {
    color: #aebed8 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  .app:has(.radar-view:not(.hidden)) #genderFilter {
    width: 76px !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 18px 0 6px !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  .app:has(.radar-view:not(.hidden)) #activityFilter {
    width: 94px !important;
  }

  .app:has(.radar-view:not(.hidden)) .reset-filter-btn {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
}

/* =========================================================
   APPROVED PHONE / TABLET RADARMEET FIND COMPOSITION
   Final mobile-only cascade. Desktop remains locked at 1051px+.
   ========================================================= */
@media (max-width: 1050px) {
  :root {
    --mobile-shell-top: calc(64px + env(safe-area-inset-top, 0px));
    --mobile-nav-height: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #050914 !important;
  }

  body {
    padding-bottom: var(--mobile-nav-height) !important;
  }

  .app,
  .app .main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Menu is a full-height sheet, with Log Out at the bottom. */
  .app .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 9000 !important;
    display: flex !important;
    width: min(340px, calc(100vw - 28px)) !important;
    height: 100dvh !important;
    min-width: 0 !important;
    max-height: none !important;
    padding: env(safe-area-inset-top, 0px) 13px env(safe-area-inset-bottom, 0px) !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-right: 1px solid rgba(83, 111, 169, 0.64) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(126, 44, 205, 0.18), transparent 15rem),
      linear-gradient(180deg, #081224, #050a15 72%) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.6) !important;
    transform: translateX(-110%) !important;
  }

  .app .sidebar.mobile-menu-open {
    transform: translateX(0) !important;
  }

  .app .sidebar .logo {
    height: 70px !important;
    min-height: 70px !important;
    padding: 9px 3px !important;
    border-bottom: 1px solid rgba(83, 111, 169, 0.28) !important;
  }

  .app .sidebar .mobile-nav-toggle {
    display: none !important;
  }

  .app .sidebar-user-tools {
    display: flex !important;
    margin: 12px 0 9px !important;
  }

  .app .sidebar .nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    padding: 5px 0 8px !important;
    overflow: visible !important;
  }

  .app .sidebar .nav-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 45px !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    border-radius: 10px !important;
  }

  .app .sidebar .sidebar-search {
    width: 100% !important;
    min-width: 0 !important;
    margin: 5px 0 0 !important;
  }

  .app .sidebar .sidebar-bottom {
    display: block !important;
    margin: auto 0 0 !important;
    padding: 13px 0 8px !important;
    border-top: 1px solid rgba(83, 111, 169, 0.28) !important;
  }

  .app .sidebar .help-support-nav {
    display: none !important;
  }

  .app .sidebar.mobile-menu-open .help-support-nav {
    display: flex !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
  }

  .app .sidebar .sidebar-logout-button,
  .app .sidebar.mobile-menu-open .sidebar-logout-button {
    display: flex !important;
    width: 100% !important;
    min-height: 45px !important;
    margin: 9px 0 10px !important;
    border-top: 1px solid rgba(89, 111, 155, 0.4) !important;
    border-radius: 10px !important;
  }

  /* Compact branded header. */
  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    position: relative !important;
    z-index: 1000;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: var(--mobile-shell-top) !important;
    min-height: var(--mobile-shell-top) !important;
    padding:
      calc(8px + env(safe-area-inset-top, 0px)) 13px 8px !important;
    border-bottom: 1px solid rgba(70, 99, 149, 0.38) !important;
    background: linear-gradient(180deg, #091326, #060c18) !important;
    visibility: visible !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-heading-copy {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0;
    gap: 10px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand {
    display: flex !important;
    align-items: center;
    min-width: 0;
    gap: 8px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-mark {
    display: grid !important;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border: 1px solid rgba(255, 88, 151, 0.88);
    border-radius: 10px;
    background: linear-gradient(135deg, #ff315b, #eb18c9 56%, #7b2cff);
    box-shadow: 0 0 16px rgba(255, 49, 91, 0.38);
    color: #fff;
    font-size: 17px;
    font-weight: 950;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    overflow: hidden;
    color: #f6f7ff;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy small {
    margin-top: 3px;
    color: #8998ad;
    font-size: 8px;
    font-weight: 700;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid rgba(47, 184, 132, 0.72);
    border-radius: 999px;
    background: rgba(16, 48, 41, 0.72);
    color: #78e5b6;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #31e5a8;
    box-shadow: 0 0 7px #31e5a8;
  }

  /* Map-first Radar. */
  .app .radar-view:not(.hidden) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100dvh - var(--mobile-shell-top) - var(--mobile-nav-height)) !important;
    overflow: visible !important;
    background: #050914 !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: auto !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,
  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 12px !important;
    pointer-events: auto;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-eyebrow,
  .app:has(.radar-view:not(.hidden)) .travel-mode-controls,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,
  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border-radius: 9px !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button {
    gap: 5px;
    border: 1px solid rgba(255, 96, 157, 0.84);
    background: linear-gradient(105deg, #ff315b, #d31ee5);
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    gap: 4px;
    border: 1px solid rgba(69, 154, 255, 0.82);
    background: linear-gradient(105deg, #102c50, #12204c) !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;
    height: clamp(440px, calc(100dvh - 150px), 720px) !important;
    min-height: 440px !important;
    max-height: none !important;
    border: 1px solid rgba(66, 104, 165, 0.84) !important;
    border-radius: 16px !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }

  /* Pull-up Adjust Radar drawer. */
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 1300 !important;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(91, 124, 181, 0.86) !important;
    border-radius: 11px !important;
    background: rgba(7, 16, 31, 0.95) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900;
    pointer-events: auto;
    backdrop-filter: blur(12px);
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle-icon {
    color: #ff5797;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle-hint {
    color: #8296b4;
    font-size: 8px;
    white-space: nowrap;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    max-height: min(52dvh, 430px);
    margin-bottom: 8px !important;
    overflow-y: auto;
    pointer-events: auto;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"],
  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels {
    width: 100% !important;
    max-width: none !important;
  }

  /* Temporary modal cards for Explore City and Radar Filters. */
  body.mobile-radar-popup-open::before {
    position: fixed;
    inset: 0;
    z-index: 8990;
    display: block;
    background: rgba(2, 6, 16, 0.68);
    content: "";
    pointer-events: none;
    backdrop-filter: blur(3px);
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
    position: fixed !important;
    top: 50% !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 9000 !important;
    width: auto !important;
    max-height: min(590px, calc(100dvh - 112px)) !important;
    margin: 0 !important;
    padding: 52px 17px 17px !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.7), 0 0 34px rgba(75, 108, 219, 0.2);
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px !important;
    border: 1px solid rgba(83, 143, 229, 0.84) !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(190, 33, 224, 0.2), transparent 13rem),
      linear-gradient(145deg, #111d37, #080f20) !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
    border: 1px solid rgba(224, 69, 182, 0.84) !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 49, 91, 0.22), transparent 13rem),
      linear-gradient(145deg, #211536, #0d1429) !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-quick-button,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .radar-filter-title {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {
    display: block !important;
    margin-bottom: 10px;
    color: #ff6b9d !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-controls {
    display: flex !important;
    flex-direction: column;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-button {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 14px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .radar-filter-group,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .reset-filter-btn,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-filter-apply {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .radar-filter-group {
    display: flex !important;
    gap: 5px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded select,
  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded input {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 15px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .age-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .logout-button {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-filter-apply {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(100deg, #ff315b, #c21bf0) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close,
  .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(115, 144, 193, 0.84) !important;
    border-radius: 50% !important;
    background: rgba(10, 21, 39, 0.94) !important;
    color: #e9f0ff !important;
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  /* Full-screen City Chat and the exact four-item bottom navigation. */
  .app:has(.city-chat-view.open) .topbar,
  .app:has(.messages-view.open) .topbar {
    visibility: visible !important;
  }

  .app:has(.city-chat-view.open) .mobile-radar-brand-header,
  .app:has(.messages-view.open) .mobile-radar-brand-header {
    display: none !important;
  }

  .app:has(.city-chat-view.open) .radar-heading-copy,
  .app:has(.messages-view.open) .radar-heading-copy {
    display: block !important;
  }

  .app:has(.city-chat-view.open) .live-label,
  .app:has(.messages-view.open) .live-label {
    display: none !important;
  }

  .app .city-chat-view.open {
    position: fixed !important;
    inset: var(--mobile-shell-top) 0 var(--mobile-nav-height) 0 !important;
    z-index: 2500 !important;
    display: flex !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #050914 !important;
  }

  .app .city-chat-view.open .city-chat-page {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 14px 12px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .app .city-chat-view.open .city-chat-messages {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .app .mobile-bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 8000 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: var(--mobile-nav-height) !important;
    min-height: var(--mobile-nav-height) !important;
    padding: 5px 4px env(safe-area-inset-bottom, 0px) !important;
    border-top: 1px solid rgba(70, 99, 149, 0.6) !important;
    background: rgba(5, 10, 22, 0.97) !important;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
  }

  .app .mobile-bottom-nav-item {
    display: flex !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 2px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #899bb8 !important;
    font-size: 9px !important;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
  }

  .app .mobile-bottom-nav-item.active {
    border-color: rgba(255, 75, 149, 0.26) !important;
    background: linear-gradient(180deg, rgba(255, 49, 91, 0.16), rgba(108, 37, 190, 0.12)) !important;
    color: #ff72a8 !important;
  }

  .app .mobile-bottom-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    font-size: 13px;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 8px;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 9px !important;
    right: 8px !important;
    left: 8px !important;
    gap: 6px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,
  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    min-height: 38px !important;
    font-size: 9px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    height: clamp(420px, calc(100dvh - 144px), 680px) !important;
    min-height: 420px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
  }

  .app .mobile-bottom-nav-item {
    font-size: 8px !important;
  }
}

/* ==========================================================
   RADARMEETFIND — MANUAL MOBILE/TABLET UI
   PHONE + TABLET ONLY
   DESKTOP 1051px+ IS LOCKED
   ========================================================== */

@media (max-width: 1050px) {

  :root {
    --rmf-mobile-header: calc(64px + env(safe-area-inset-top, 0px));
    --rmf-mobile-nav: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: #050914 !important;
  }

  body {
    padding-bottom: var(--rmf-mobile-nav) !important;
  }

  .app,
  .app .main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }


  /* =========================
     MOBILE HEADER
     ========================= */

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    position: relative !important;
    z-index: 1000 !important;

    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    height: var(--rmf-mobile-header) !important;
    min-height: var(--rmf-mobile-header) !important;

    padding:
      calc(8px + env(safe-area-inset-top, 0px)) 14px 8px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(67, 93, 145, 0.45) !important;

    background:
      radial-gradient(circle at 15% 0%, rgba(218, 29, 187, 0.12), transparent 180px),
      linear-gradient(180deg, #0a1428 0%, #060c18 100%) !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-heading-copy {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-header {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-mark {
    display: grid !important;
    place-items: center !important;

    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;

    border: 1px solid rgba(255, 92, 157, 0.9) !important;
    border-radius: 11px !important;

    background:
      linear-gradient(135deg, #ff315b 0%, #e91bc9 55%, #7135ff 100%) !important;

    box-shadow:
      0 0 18px rgba(255, 49, 91, 0.35),
      inset 0 1px rgba(255, 255, 255, .18) !important;

    color: white !important;
    font-size: 18px !important;
    font-weight: 950 !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    line-height: 1.05 !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    color: #f7f8ff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy small {
    margin-top: 4px !important;
    color: #8292aa !important;
    font-size: 9px !important;
    font-weight: 700 !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;

    padding: 7px 10px !important;

    border: 1px solid rgba(49, 229, 168, 0.55) !important;
    border-radius: 999px !important;

    background: rgba(11, 45, 38, 0.72) !important;

    color: #72e8b6 !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #31e5a8 !important;
    box-shadow: 0 0 8px #31e5a8 !important;
  }


  /* =========================
     RADAR SCREEN
     ========================= */

  .app .radar-view:not(.hidden) {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;

    height:
      calc(100dvh - var(--rmf-mobile-header) - var(--rmf-mobile-nav)) !important;

    min-height: 480px !important;

    padding: 0 !important;
    overflow: hidden !important;

    background: #050914 !important;
  }


  /* =========================
     MAP
     ========================= */

  .app:has(.radar-view:not(.hidden)) .content {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 8px !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;

    overflow: hidden !important;

    border: 1px solid rgba(68, 108, 174, 0.82) !important;
    border-radius: 16px !important;

    background: #09111f !important;

    box-shadow:
      0 12px 36px rgba(0, 0, 0, .38),
      0 0 25px rgba(49, 90, 175, .08) !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  /* City Chat does NOT steal Radar map space on mobile. */
  .app:has(.radar-view:not(.hidden)) .chat-panel {
    display: none !important;
  }


  /* =========================
     EXPLORE + FILTER BUTTONS
     ========================= */

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute !important;

    top: 12px !important;
    right: 14px !important;
    left: 14px !important;

    z-index: 1400 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,

  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 3px !important;

    border-radius: 12px !important;

    background: rgba(7, 14, 29, .88) !important;

    backdrop-filter: blur(12px) !important;

    pointer-events: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .travel-mode-eyebrow,

  .app:has(.radar-view:not(.hidden)) .travel-mode-controls,

  .app:has(.radar-view:not(.hidden)) .radar-filter-grid {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 9px !important;

    border-radius: 9px !important;

    color: white !important;

    font-size: 11px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button {
    gap: 6px !important;

    border: 1px solid rgba(255, 94, 157, .88) !important;

    background:
      linear-gradient(105deg, #ff315b, #d91bd6 70%, #9630ef) !important;

    box-shadow: 0 5px 15px rgba(226, 27, 177, .18) !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    gap: 6px !important;

    border: 1px solid rgba(72, 158, 255, .82) !important;

    background:
      linear-gradient(105deg, #12325a, #172553) !important;

    box-shadow: 0 5px 15px rgba(34, 104, 205, .16) !important;
  }


  /* =========================
     ADJUST RADAR
     ========================= */

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: absolute !important;

    right: 14px !important;
    bottom: 12px !important;
    left: 14px !important;

    z-index: 1500 !important;

    display: block !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    display: grid !important;

    grid-template-columns: 20px minmax(0, 1fr) auto !important;

    align-items: center !important;

    width: 100% !important;
    min-height: 46px !important;

    padding: 0 13px !important;

    border: 1px solid rgba(92, 128, 190, .88) !important;
    border-radius: 12px !important;

    background:
      linear-gradient(180deg, rgba(11, 25, 47, .96), rgba(6, 15, 30, .96)) !important;

    box-shadow: 0 9px 28px rgba(0, 0, 0, .45) !important;

    color: white !important;

    font-size: 12px !important;
    font-weight: 900 !important;

    backdrop-filter: blur(14px) !important;

    pointer-events: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle-icon {
    color: #ff5797 !important;
    font-size: 15px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle-hint {
    color: #8196b6 !important;
    font-size: 8px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels {
    display: none !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
    display: grid !important;

    grid-template-columns: 1fr !important;
    gap: 8px !important;

    max-height: 54dvh !important;

    margin: 0 0 8px !important;

    overflow-y: auto !important;

    pointer-events: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row .radar-controls {
    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 13px !important;

    border: 1px solid rgba(70, 108, 171, .78) !important;
    border-radius: 13px !important;

    background:
      linear-gradient(145deg, rgba(15, 30, 56, .98), rgba(7, 15, 31, .98)) !important;

    box-shadow: 0 14px 36px rgba(0, 0, 0, .42) !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row input[type="range"],

  .app:has(.radar-view:not(.hidden)) .radar-slider-row .distance-labels {
    width: 100% !important;
    max-width: none !important;
  }


  /* =========================
     BOTTOM NAVIGATION
     ========================= */

  .app .mobile-bottom-nav {
    position: fixed !important;

    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    z-index: 8000 !important;

    display: grid !important;

    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;

    width: 100% !important;
    height: var(--rmf-mobile-nav) !important;

    padding:
      5px 4px env(safe-area-inset-bottom, 0px) !important;

    border-top:
      1px solid rgba(70, 99, 149, .65) !important;

    background:
      linear-gradient(180deg, rgba(7, 14, 29, .98), rgba(4, 9, 19, .99)) !important;

    box-shadow:
      0 -10px 30px rgba(0, 0, 0, .4) !important;

    backdrop-filter: blur(16px) !important;
  }

  .app .mobile-bottom-nav-item {
    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    min-width: 0 !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 4px 2px !important;

    border: 1px solid transparent !important;
    border-radius: 10px !important;

    background: transparent !important;

    color: #8497b5 !important;

    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-align: center !important;
  }

  .app .mobile-bottom-nav-item.active {
    border-color: rgba(255, 75, 149, .24) !important;

    background:
      linear-gradient(180deg,
        rgba(255, 49, 91, .16),
        rgba(111, 38, 192, .12)) !important;

    color: #ff72a8 !important;
  }

  .app .mobile-bottom-nav-label {
    max-width: 100% !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}


/* ==========================================================
   SMALL PHONE TUNING
   ========================================================== */

@media (max-width: 520px) {

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    font-size: 13px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    padding: 6px 7px !important;
    font-size: 8px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 9px !important;
    right: 10px !important;
    left: 10px !important;
    gap: 6px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    min-height: 39px !important;
    font-size: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    right: 10px !important;
    bottom: 9px !important;
    left: 10px !important;
  }

  .app .mobile-bottom-nav-item {
    font-size: 8px !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — RADAR SCREEN HEIGHT FIX
   ========================================================== */

@media (max-width: 1050px) {

  .app .radar-view:not(.hidden) {
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 8px 76px !important;
    overflow: visible !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    height: auto !important;

    padding: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    width: 100% !important;

    height: calc(100dvh - var(--rmf-mobile-header) - var(--rmf-mobile-nav) - 112px) !important;

    min-height: 500px !important;
    max-height: 720px !important;
  }

  .app:has(.radar-view:not(.hidden)) #map {
    width: 100% !important;
    height: 100% !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 12px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    position: relative !important;

    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;

    margin: 8px 0 0 !important;
  }

  /* Keep Leaflet credit small and at bottom of map */
  .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution {
    max-width: 75% !important;

    padding: 2px 4px !important;

    background: rgba(5, 9, 20, .78) !important;

    color: #9ba8bb !important;

    font-size: 7px !important;
    line-height: 1.15 !important;

    white-space: normal !important;
  }

  .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution a {
    color: #7db7ff !important;
  }
}

@media (max-width: 520px) {

  .app:has(.radar-view:not(.hidden)) .map-card {
    min-height: 480px !important;
    max-height: 650px !important;
  }
}

/* RadarMeetFind — hide Leaflet zoom buttons on touch layouts */
@media (max-width: 1050px) {
  .app:has(.radar-view:not(.hidden)) .leaflet-control-zoom {
    display: none !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — MOCKUP COMPOSITION TUNING
   ========================================================== */

@media (max-width: 1050px) {

  /* Tighter mobile header */
  :root {
    --rmf-mobile-header: calc(56px + env(safe-area-inset-top, 0px));
    --rmf-mobile-nav: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  .app .topbar,
  .app:has(.radar-view:not(.hidden)) .topbar {
    height: var(--rmf-mobile-header) !important;
    min-height: var(--rmf-mobile-header) !important;

    padding:
      calc(5px + env(safe-area-inset-top, 0px)) 10px 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-mark {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy strong {
    font-size: 12px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-brand-copy small {
    font-size: 7px !important;
    margin-top: 2px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-online {
    padding: 5px 8px !important;
    font-size: 7px !important;
  }

  /* Radar screen fills usable phone area */
  .app .radar-view:not(.hidden) {
    padding: 4px 6px 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .content {
    padding: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .map-card {
    height:
      calc(100dvh - var(--rmf-mobile-header) - var(--rmf-mobile-nav) - 60px) !important;

    min-height: 0 !important;
    max-height: none !important;

    border-radius: 13px !important;
  }

  /* Smaller mockup-style top controls */
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    top: 6px !important;
    left: 7px !important;
    right: 7px !important;
    gap: 5px !important;
  }

  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,

  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    padding: 2px !important;
    border-radius: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    min-height: 34px !important;
    height: 34px !important;

    padding: 0 7px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
  }

  /* Pull Adjust Radar tight against map */
  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    margin: 5px 0 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
    min-height: 40px !important;
    height: 40px !important;

    padding: 0 10px !important;

    border-radius: 10px !important;

    font-size: 10px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-toggle-hint {
    font-size: 7px !important;
  }

  /* Kill dead space below Adjust Radar */
  .app .radar-view:not(.hidden) {
    margin-bottom: 0 !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-slider-row {
    margin-bottom: 4px !important;
  }

  /* Bottom nav more compact like mockup */
  .app .mobile-bottom-nav {
    height: var(--rmf-mobile-nav) !important;

    padding:
      3px 3px env(safe-area-inset-bottom, 0px) !important;
  }

  .app .mobile-bottom-nav-item {
    gap: 2px !important;
    padding: 3px 1px !important;

    border-radius: 8px !important;

    font-size: 7px !important;
  }

  /* Move map utility buttons away from top controls */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-right {
    top: 44px !important;
    right: 4px !important;
  }

  /* Attribution stays tiny at bottom */
  .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution {
    max-width: 68% !important;
    font-size: 6px !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — MAP CONTROL CLEANUP
   ========================================================== */

@media (max-width: 1050px) {

  /* Push map utility controls below Explore/Filter buttons */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-right {
    top: 48px !important;
    right: 6px !important;
  }

  /* Tighten any controls stacked in upper-right */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-right .leaflet-control {
    margin-top: 5px !important;
    margin-right: 0 !important;
  }

  /* Make utility buttons smaller and cleaner */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-right button,

  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-right a {
    min-width: 36px !important;
    min-height: 36px !important;

    border-radius: 9px !important;

    font-size: 10px !important;
    line-height: 34px !important;
  }

  /* Keep Leaflet attribution at the bottom instead of over map controls */
  .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution {
    position: relative !important;

    max-width: 70% !important;

    margin: 0 3px 3px 0 !important;
    padding: 2px 4px !important;

    border-radius: 5px !important;

    background: rgba(3, 8, 17, .76) !important;

    font-size: 6px !important;
    line-height: 1.15 !important;

    opacity: .72 !important;
  }

  /* Don't let Leaflet controls sit under our top Radar buttons */
  .app:has(.radar-view:not(.hidden)) .leaflet-control-container {
    position: relative !important;
    z-index: 800 !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — MAP ACTION BUTTON POSITION
   ========================================================== */

@media (max-width: 1050px) {

  /* Give the custom map buttons clear space below top controls */
  .app:has(.radar-view:not(.hidden)) .map-card button {
    z-index: 850;
  }

  /* Move floating map controls away from Explore / Filters */
  .app:has(.radar-view:not(.hidden)) .map-card .map-action-buttons,
  .app:has(.radar-view:not(.hidden)) .map-card .map-controls,
  .app:has(.radar-view:not(.hidden)) .map-card .radar-map-controls {
    top: 58px !important;
    right: 8px !important;
  }

  /* Extra breathing room for controls stacked vertically */
  .app:has(.radar-view:not(.hidden)) .map-card .map-action-buttons>*,
  .app:has(.radar-view:not(.hidden)) .map-card .map-controls>*,
  .app:has(.radar-view:not(.hidden)) .map-card .radar-map-controls>* {
    margin-top: 6px !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — REAL MAP BUTTON FIX
   ========================================================== */

@media (max-width: 1050px) {

  /* Back to My Location button */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-left:has(.radar-locate-button) {
    top: 52px !important;
    right: 8px !important;
    left: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-locate-button {
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;

    padding: 0 10px !important;

    border-radius: 9px !important;

    font-size: 9px !important;
    line-height: 34px !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-locate-label {
    font-size: 8px !important;
  }


  /* Eye / map visibility button */
  .app:has(.radar-view:not(.hidden)) .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) {
    top: 92px !important;
    right: 8px !important;
    bottom: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-map-visibility-button {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;

    border-radius: 9px !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — CLEAN ICON-ONLY MAP CONTROLS
   ========================================================== */

@media (max-width: 1050px) {

  /* Location control container */
  .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-left:has(.radar-locate-button) {
    top: 54px !important;
    right: 8px !important;
    left: auto !important;
  }

  /* Location button = icon only */
  .app:has(.radar-view:not(.hidden)) .radar-locate-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    border: 1px solid rgba(255, 52, 104, .95) !important;
    border-radius: 10px !important;

    background: rgba(8, 18, 35, .94) !important;

    box-shadow:
      0 5px 16px rgba(0, 0, 0, .34),
      0 0 12px rgba(255, 49, 91, .14) !important;

    overflow: hidden !important;
  }

  /* Hide the words "Back to My Location" */
  .app:has(.radar-view:not(.hidden)) .radar-locate-label {
    display: none !important;
  }

  /* Keep only the location symbol inside */
  .app:has(.radar-view:not(.hidden)) .radar-locate-button>*:not(.radar-locate-label) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }


  /* Eye control directly under location button */
  .app:has(.radar-view:not(.hidden)) .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) {
    top: 98px !important;
    right: 8px !important;
    bottom: auto !important;
  }

  .app:has(.radar-view:not(.hidden)) .radar-map-visibility-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    border: 1px solid rgba(255, 52, 104, .95) !important;
    border-radius: 10px !important;

    background: rgba(8, 18, 35, .94) !important;

    box-shadow:
      0 5px 16px rgba(0, 0, 0, .34),
      0 0 12px rgba(255, 49, 91, .14) !important;
  }
}

/* ==========================================================
   RADARMEETFIND MOBILE — MATCH 5-PHONE MOCKUP COMPOSITION
   ========================================================== */

@media (max-width: 1050px) {

  /* Map starts directly beneath mobile header */
  .app:has(.radar-view:not(.hidden)) .map-card {
    position: relative !important;
  }

  /* Move Explore City + Radar Filters to bottom of map */
  .app:has(.radar-view:not(.hidden)) .top-control-row {
    position: absolute !important;

    top: auto !important;
    left: 10px !important;
    right: 10px !important;

    bottom: 52px !important;

    z-index: 1600 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  /* Compact app-style buttons */
  .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,

  .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
    width: 100% !important;

    padding: 2px !important;

    border-radius: 11px !important;

    background: rgba(6, 14, 29, .94) !important;

    box-shadow: 0 7px 20px rgba(0, 0, 0, .35) !important;
  }

  .app:has(.radar-view:not(.hidden)) .mobile-radar-quick-button,

  .app:has(.radar-view:not(.hidden)) .radar-filter-title {
    height: 40px !important;
    min-height: 40px !important;

    border-radius: 9px !important;

    font-size: 9px !important;
    font-weight: 900 !important;
  }


  /* Top-right floating

  /* ==========================================================
     RADARMEETFIND MOBILE — MAIN RADAR FINAL POLISH
     ========================================================== */

  @media (max-width: 1050px) {

    /* Smaller floating location + visibility controls */
    .app:has(.radar-view:not(.hidden)) .radar-locate-button,

    .app:has(.radar-view:not(.hidden)) .radar-map-visibility-button {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      min-height: 32px !important;

      border-radius: 9px !important;

      background: rgba(5, 14, 27, .92) !important;

      box-shadow:
        0 5px 14px rgba(0, 0, 0, .32),
        0 0 10px rgba(255, 49, 91, .12) !important;
    }

    /* Top-right stack */
    .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-left:has(.radar-locate-button) {
      top: 10px !important;
      right: 10px !important;
    }

    .app:has(.radar-view:not(.hidden)) .leaflet-bottom.leaflet-right:has(.radar-map-visibility-button) {
      top: 48px !important;
      right: 10px !important;
      bottom: auto !important;
    }

    /* Attribution belongs at bottom edge of map */
    .app:has(.radar-view:not(.hidden)) .leaflet-bottom.leaflet-right:not(:has(.radar-map-visibility-button)) {
      top: auto !important;
      bottom: 50px !important;
      right: 5px !important;
    }

    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution {
      max-width: 160px !important;

      margin: 0 !important;
      padding: 2px 3px !important;

      border-radius: 4px !important;

      background: rgba(3, 8, 17, .68) !important;

      font-size: 5px !important;
      line-height: 1.05 !important;

      opacity: .65 !important;
    }

    /* Bottom map buttons sit slightly closer to map edge */
    .app:has(.radar-view:not(.hidden)) .top-control-row {
      bottom: 7px !important;
    }

    /* Tighten map-to-Adjust-Radar spacing */
    .app:has(.radar-view:not(.hidden)) .radar-slider-row {
      margin-top: 4px !important;
    }

    /* Give Explore + Filters the mockup glass/premium finish */
    .app:has(.radar-view:not(.hidden)) .top-control-row>.travel-mode-card,

    .app:has(.radar-view:not(.hidden)) .top-control-row>.radar-controls {
      box-shadow:
        0 7px 18px rgba(0, 0, 0, .38),
        0 0 13px rgba(90, 80, 255, .10) !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — MOCKUP POPUP CARDS
     ========================================================== */

  @media (max-width: 1050px) {

    /* Softer dim layer behind popup */
    body.mobile-radar-popup-open::before {
      background: rgba(2, 6, 16, 0.48) !important;
      backdrop-filter: blur(1.5px) !important;
    }

    /* Explore City + Radar Filters become compact right-side cards */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded,

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {

      position: fixed !important;

      top: auto !important;
      right: 18px !important;
      bottom: 92px !important;
      left: auto !important;

      width: min(270px, calc(100vw - 36px)) !important;
      max-height: 72dvh !important;

      margin: 0 !important;
      padding: 42px 14px 14px !important;

      transform: none !important;

      overflow-y: auto !important;

      border-radius: 16px !important;

      box-shadow:
        0 18px 50px rgba(0, 0, 0, .62),
        0 0 22px rgba(90, 70, 220, .18) !important;
    }

    /* Explore City card */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {

      border: 1px solid rgba(220, 65, 187, .88) !important;

      background:
        radial-gradient(circle at 90% 0%, rgba(255, 49, 91, .18), transparent 10rem),
        linear-gradient(145deg, #17142a, #0a1020) !important;
    }

    /* Radar Filters card */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {

      display: grid !important;
      grid-template-columns: 1fr !important;

      gap: 9px !important;

      border: 1px solid rgba(71, 139, 240, .88) !important;

      background:
        radial-gradient(circle at 90% 0%, rgba(87, 54, 255, .18), transparent 10rem),
        linear-gradient(145deg, #111a32, #08101f) !important;
    }


    /* Compact headings/inputs */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {

      display: block !important;

      margin: 0 0 9px !important;

      font-size: 8px !important;
      letter-spacing: 1.2px !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-controls {

      display: flex !important;
      flex-direction: column !important;

      gap: 8px !important;

      width: 100% !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch,

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-button {

      width: 100% !important;

      height: 40px !important;
      min-height: 40px !important;

      font-size: 12px !important;

      border-radius: 9px !important;
    }


    /* Radar Filters fields */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .radar-filter-group {

      display: flex !important;
      flex-direction: column !important;

      gap: 4px !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded select,

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded input {

      min-height: 38px !important;

      font-size: 12px !important;

      border-radius: 8px !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .age-filter-row {

      display: grid !important;

      grid-template-columns: 1fr auto 1fr !important;

      gap: 6px !important;

      align-items: center !important;
    }


    /* Apply button */
    .app:has(.radar-view:not(.hidden)) .mobile-radar-filter-apply {

      min-height: 40px !important;

      border-radius: 9px !important;

      font-size: 12px !important;
    }


    /* Compact close X */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close,

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {

      position: absolute !important;

      top: 9px !important;
      right: 9px !important;

      width: 28px !important;
      height: 28px !important;

      min-width: 28px !important;
      min-height: 28px !important;

      border-radius: 8px !important;

      font-size: 16px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — POPUP VISIBILITY FIX
     ========================================================== */

  @media (max-width: 1050px) {

    /* Keep popup backdrop dim, but not so dark that the panel disappears */
    body.mobile-radar-popup-open::before {
      background: rgba(2, 6, 16, 0.40) !important;
      backdrop-filter: blur(1px) !important;
    }

    /* Explore City popup */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
      position: fixed !important;

      top: 110px !important;
      right: 16px !important;
      bottom: auto !important;
      left: 16px !important;

      width: auto !important;
      max-width: 420px !important;
      max-height: calc(100dvh - 210px) !important;

      margin: 0 auto !important;
      padding: 44px 14px 14px !important;

      transform: none !important;

      overflow: visible !important;

      border: 1px solid rgba(228, 56, 190, .92) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 85% 0%, rgba(255, 49, 91, .20), transparent 11rem),
        linear-gradient(145deg, #1a1530, #09111f) !important;

      box-shadow:
        0 20px 60px rgba(0, 0, 0, .58),
        0 0 28px rgba(225, 45, 195, .18) !important;

      z-index: 9200 !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-controls {
      display: flex !important;
      flex-direction: column !important;
      gap: 9px !important;
      width: 100% !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch {
      display: block !important;

      width: 100% !important;
      height: 42px !important;

      padding: 0 12px !important;

      border: 1px solid rgba(83, 143, 229, .62) !important;
      border-radius: 9px !important;

      background: #071226 !important;

      color: white !important;
      font-size: 13px !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-city-results {
      display: block !important;

      width: 100% !important;
      max-height: 220px !important;

      overflow-y: auto !important;

      border-radius: 9px !important;
    }


    /* Radar Filters popup */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {
      position: fixed !important;

      top: 110px !important;
      right: 16px !important;
      bottom: auto !important;
      left: 16px !important;

      width: auto !important;
      max-width: 420px !important;
      max-height: calc(100dvh - 210px) !important;

      margin: 0 auto !important;
      padding: 44px 14px 14px !important;

      transform: none !important;

      overflow-y: auto !important;

      border: 1px solid rgba(74, 144, 242, .92) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 85% 0%, rgba(86, 54, 255, .18), transparent 11rem),
        linear-gradient(145deg, #111c36, #081020) !important;

      box-shadow:
        0 20px 60px rgba(0, 0, 0, .58),
        0 0 28px rgba(66, 109, 255, .16) !important;

      z-index: 9200 !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .radar-filter-group {
      display: flex !important;
      flex-direction: column !important;
      gap: 5px !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded label {
      color: #a7b6d3 !important;
      font-size: 8px !important;
      font-weight: 900 !important;
      letter-spacing: 1px !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded select,

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded input {
      width: 100% !important;

      min-height: 40px !important;

      padding: 0 10px !important;

      border: 1px solid rgba(66, 108, 168, .52) !important;
      border-radius: 8px !important;

      background: #08152a !important;

      color: white !important;

      font-size: 12px !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded .mobile-radar-popup-close,

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .mobile-radar-popup-close {
      position: absolute !important;

      top: 9px !important;
      right: 9px !important;

      display: grid !important;
      place-items: center !important;

      width: 28px !important;
      height: 28px !important;

      padding: 0 !important;

      border-radius: 8px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — FINAL POPUP POSITION OVERRIDE
     ========================================================== */

  @media (max-width: 1050px) {

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open,

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {
      position: fixed !important;

      top: 120px !important;
      right: 18px !important;
      bottom: auto !important;
      left: 18px !important;

      width: auto !important;
      max-width: 360px !important;

      margin: 0 auto !important;

      transform: none !important;

      z-index: 9500 !important;
    }

    /* Explore City slightly shorter */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open {
      min-height: 170px !important;
      max-height: 60dvh !important;
    }

    /* Radar Filters taller */
    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {
      max-height: 68dvh !important;
      overflow-y: auto !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — SHOW EXPLORE CITY SEARCH CONTENT
     ========================================================== */

  @media (max-width: 1050px) {

    /* Older mobile CSS hides this wrapper — force it back on
       only while the Explore City popup is open */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-city-search-wrap {
      display: block !important;
      position: relative !important;

      width: 100% !important;
      min-width: 0 !important;

      margin: 0 0 10px !important;
    }

    /* Make the actual city search clearly visible */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch {
      display: block !important;

      width: 100% !important;
      height: 42px !important;

      margin: 0 !important;
      padding: 0 12px !important;

      border: 1px solid rgba(69, 142, 238, .75) !important;
      border-radius: 9px !important;

      background: #071426 !important;

      color: #ffffff !important;
      font-size: 12px !important;

      opacity: 1 !important;
      visibility: visible !important;
    }

    /* Search results appear directly under the input */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCityResults {
      position: relative !important;

      display: none !important;

      width: 100% !important;
      max-height: 240px !important;

      margin-top: 6px !important;

      overflow-y: auto !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCityResults.open {
      display: block !important;
    }

    /* Bottom Explore City action */
    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelModeButton {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;

      width: 100% !important;
      height: 42px !important;

      margin-top: 2px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — AUTHORITATIVE POPUP LAYER FIX
     ========================================================== */

  @media (max-width: 1050px) {

    /* When either popup opens, turn the control row into
       a full mobile overlay layer */
    .app:has(.radar-view:not(.hidden)) .top-control-row:has(.mobile-explore-open),

    .app:has(.radar-view:not(.hidden)) .top-control-row:has(.radar-filter-grid.is-expanded) {

      position: fixed !important;

      inset: 0 !important;

      z-index: 9400 !important;

      display: block !important;

      width: 100vw !important;
      height: 100dvh !important;

      margin: 0 !important;
      padding: 0 !important;

      pointer-events: none !important;
    }


    /* ======================================================
       EXPLORE CITY POPUP
       ====================================================== */

    .app:has(.radar-view:not(.hidden)) .top-control-row .travel-mode-card.mobile-explore-open {

      position: absolute !important;

      top: 105px !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;

      width: calc(100% - 36px) !important;
      max-width: 340px !important;

      min-height: 0 !important;
      max-height: 68dvh !important;

      margin: 0 !important;
      padding: 42px 14px 14px !important;

      transform: translateX(-50%) !important;

      overflow: visible !important;

      border: 1px solid rgba(223, 54, 190, .92) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 85% 0%,
          rgba(255, 49, 91, .20),
          transparent 10rem),
        linear-gradient(145deg, #19142d, #091020) !important;

      box-shadow:
        0 22px 60px rgba(0, 0, 0, .65),
        0 0 28px rgba(222, 44, 194, .18) !important;

      pointer-events: auto !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-header {

      display: block !important;
      width: 100% !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-eyebrow {

      display: block !important;

      margin: 0 0 10px !important;

      color: #ff5b96 !important;

      font-size: 9px !important;
      font-weight: 900 !important;

      letter-spacing: 1.3px !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-mode-controls {

      display: flex !important;

      flex-direction: column !important;

      gap: 9px !important;

      width: 100% !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open .travel-city-search-wrap {

      display: block !important;

      position: relative !important;

      width: 100% !important;

      margin: 0 !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelCitySearch {

      display: block !important;

      width: 100% !important;
      height: 42px !important;

      padding: 0 11px !important;

      border: 1px solid rgba(67, 132, 230, .72) !important;
      border-radius: 9px !important;

      background: #071428 !important;

      color: #fff !important;

      opacity: 1 !important;
      visibility: visible !important;
    }

    .app:has(.radar-view:not(.hidden)) .travel-mode-card.mobile-explore-open #travelModeButton {

      display: flex !important;

      align-items: center !important;
      justify-content: center !important;

      width: 100% !important;
      height: 42px !important;

      margin: 0 !important;
    }


    /* ======================================================
       RADAR FILTERS POPUP
       ====================================================== */

    .app:has(.radar-view:not(.hidden)) .top-control-row:has(.radar-filter-grid.is-expanded)>.radar-controls {

      position: absolute !important;

      top: 105px !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;

      width: calc(100% - 36px) !important;
      max-width: 340px !important;

      margin: 0 !important;
      padding: 0 !important;

      transform: translateX(-50%) !important;

      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;

      pointer-events: auto !important;
    }

    .app:has(.radar-view:not(.hidden)) .radar-filter-grid.is-expanded {

      position: relative !important;

      top: auto !important;
      right: auto !important;
      bottom: auto !important;
      left: auto !important;

      display: grid !important;

      grid-template-columns: 1fr !important;

      gap: 9px !important;

      width: 100% !important;
      max-width: none !important;

      max-height: 68dvh !important;

      margin: 0 !important;
      padding: 42px 14px 14px !important;

      transform: none !important;

      overflow-y: auto !important;

      border: 1px solid rgba(71, 139, 240, .92) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 85% 0%,
          rgba(91, 56, 255, .18),
          transparent 10rem),
        linear-gradient(145deg, #111c36, #081020) !important;

      box-shadow:
        0 22px 60px rgba(0, 0, 0, .65),
        0 0 28px rgba(68, 108, 255, .18) !important;
    }


    /* Keep inactive button/card from appearing inside overlay */
    .app:has(.radar-view:not(.hidden)) .top-control-row:has(.mobile-explore-open)>.radar-controls {

      display: none !important;
    }

    .app:has(.radar-view:not(.hidden)) .top-control-row:has(.radar-filter-grid.is-expanded)>.travel-mode-card {

      display: none !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — COLLAPSIBLE MAP ATTRIBUTION
     ========================================================== */

  @media (max-width: 1050px) {

    /* Attribution becomes a tiny info button */
    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution {
      position: absolute !important;

      right: 7px !important;
      bottom: 55px !important;
      top: auto !important;

      width: 22px !important;
      height: 22px !important;
      max-width: 22px !important;

      margin: 0 !important;
      padding: 0 !important;

      overflow: hidden !important;

      border: 1px solid rgba(80, 135, 205, .55) !important;
      border-radius: 50% !important;

      background: rgba(5, 14, 28, .92) !important;

      color: transparent !important;

      font-size: 0 !important;
      line-height: 22px !important;

      opacity: .82 !important;

      cursor: pointer !important;

      z-index: 1800 !important;
    }

    /* Visible info symbol */
    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution::after {
      content: "ⓘ";

      position: absolute !important;
      inset: 0 !important;

      display: flex !important;
      align-items: center !important;
      justify-content: center !important;

      color: #9cc7ff !important;

      font-size: 13px !important;
      line-height: 1 !important;

      pointer-events: none !important;
    }

    /* Tap/focus the info button -> reveal required credits */
    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution:focus-within,

    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution:hover {
      width: auto !important;
      height: auto !important;
      max-width: 220px !important;

      padding: 5px 7px !important;

      overflow: visible !important;

      border-radius: 7px !important;

      color: #aebbd0 !important;

      font-size: 7px !important;
      line-height: 1.25 !important;
    }

    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution:focus-within::after,

    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution:hover::after {
      display: none !important;
    }

    .app:has(.radar-view:not(.hidden)) .leaflet-control-attribution a {
      color: #8fc2ff !important;
      font-size: inherit !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — FINAL MAP BUTTON SPACING
     ========================================================== */

  @media (max-width: 1050px) {

    /* Location button */
    .app:has(.radar-view:not(.hidden)) .leaflet-top.leaflet-left:has(.radar-locate-button) {
      top: 12px !important;
      right: 10px !important;
      left: auto !important;
    }

    /* Eye button — leave a clean gap underneath */
    .app:has(.radar-view:not(.hidden)) .leaflet-bottom.leaflet-right .leaflet-control:has(.radar-map-visibility-button) {
      position: absolute !important;

      top: 58px !important;
      right: 10px !important;
      bottom: auto !important;

      margin: 0 !important;
    }

    /* Keep both buttons identical */
    .app:has(.radar-view:not(.hidden)) .radar-locate-button,

    .app:has(.radar-view:not(.hidden)) .radar-map-visibility-button {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      min-height: 32px !important;

      margin: 0 !important;
      border-radius: 9px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — PRIVATE MESSAGES APP LAYOUT
     ========================================================== */

  @media (max-width: 1050px) {

    .app .messages-view.open {
      position: relative !important;

      display: block !important;

      width: 100% !important;
      height:
        calc(100dvh - var(--rmf-mobile-header) - var(--rmf-mobile-nav)) !important;

      min-height: 0 !important;

      padding: 8px !important;

      overflow: hidden !important;

      background: #050914 !important;
    }


    /* =========================
       ACTIVE CONVERSATION
       ========================= */

    .app .messages-view .thread-panel {
      position: relative !important;

      display: flex !important;
      flex-direction: column !important;

      width: 100% !important;
      height: 100% !important;
      min-width: 0 !important;

      margin: 0 !important;

      overflow: hidden !important;

      border: 1px solid rgba(63, 94, 147, .65) !important;
      border-radius: 14px !important;

      background:
        linear-gradient(180deg, #0b1427 0%, #071020 100%) !important;
    }


    /* Conversation header */
    .app .messages-view .thread-header {
      flex: 0 0 auto !important;

      display: block !important;

      padding: 11px 12px !important;

      border-bottom: 1px solid rgba(56, 82, 125, .5) !important;

      background:
        linear-gradient(180deg, #101a31, #0b1427) !important;
    }

    .app .messages-view .thread-person {
      display: flex !important;
      align-items: center !important;

      gap: 9px !important;

      min-width: 0 !important;

      padding-right: 0 !important;
    }

    .app .messages-view #threadPhoto {
      width: 38px !important;
      height: 38px !important;
      min-width: 38px !important;
    }

    .app .messages-view #threadName {
      margin: 0 !important;

      font-size: 14px !important;
      line-height: 1.15 !important;
    }

    .app .messages-view .thread-online {
      margin-top: 2px !important;
      font-size: 8px !important;
    }


    /* Actions stop overlapping the chat */
    .app .messages-view .thread-actions {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

      gap: 6px !important;

      width: 100% !important;

      margin-top: 9px !important;
    }

    .app .messages-view .thread-actions button {
      width: 100% !important;
      min-width: 0 !important;

      min-height: 34px !important;

      padding: 5px 4px !important;

      border-radius: 8px !important;

      font-size: 8px !important;
      line-height: 1.1 !important;

      white-space: normal !important;
    }


    /* =========================
       MESSAGE HISTORY
       ========================= */

    .app .messages-view .thread-messages {
      flex: 1 1 auto !important;

      width: 100% !important;

      min-height: 0 !important;
      max-height: none !important;

      padding: 12px !important;

      overflow-y: auto !important;
      overflow-x: hidden !important;

      overscroll-behavior: contain !important;
    }

    .app .messages-view .message-row {
      width: 100% !important;
      margin-bottom: 9px !important;
    }

    .app .messages-view .thread-bubble {
      max-width: 78% !important;
    }

    .app .messages-view .message-photo,
    .app .messages-view .thread-message-photo {
      max-width: min(240px, 78vw) !important;
      height: auto !important;

      border-radius: 12px !important;
    }


    /* =========================
       COMPOSE BAR
       ========================= */

    .app .messages-view .thread-compose {
      flex: 0 0 auto !important;

      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr) auto !important;

      align-items: end !important;

      gap: 7px !important;

      width: 100% !important;

      padding: 8px !important;

      border-top: 1px solid rgba(56, 82, 125, .55) !important;

      background: rgba(6, 14, 28, .98) !important;
    }

    .app .messages-view #threadInput {
      width: 100% !important;
      min-width: 0 !important;

      min-height: 40px !important;
      max-height: 100px !important;

      padding: 10px !important;

      resize: none !important;

      border-radius: 10px !important;

      font-size: 12px !important;
    }

    .app .messages-view .thread-photo-btn,
    .app .messages-view .thread-send-btn {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;

      padding: 0 !important;

      border-radius: 10px !important;
    }


    /* =========================
       INBOX DRAWER
       ========================= */

    .app .messages-view .conversation-panel {
      position: fixed !important;

      top: var(--rmf-mobile-header) !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 9300 !important;

      width: min(320px, 86vw) !important;
      height: auto !important;

      margin: 0 !important;

      overflow-y: auto !important;

      border: 0 !important;
      border-right: 1px solid rgba(64, 98, 155, .7) !important;
      border-radius: 0 14px 14px 0 !important;

      background:
        linear-gradient(180deg, #0d1830, #071020) !important;

      box-shadow: 16px 0 40px rgba(0, 0, 0, .55) !important;

      transform: translateX(-105%) !important;
      transition: transform .22s ease !important;
    }

    .app .messages-view.mobile-inbox-open .conversation-panel {
      transform: translateX(0) !important;
    }

    .app .messages-view .conversation-heading {
      padding: 15px !important;
    }

    .app .messages-view .message-search-wrap {
      margin: 10px 12px !important;
    }

    .app .messages-view .conversation-list {
      width: 100% !important;
    }

    .app .messages-view .conversation-item {
      width: 100% !important;

      padding: 11px 12px !important;

      gap: 9px !important;
    }

    .app .messages-view .conversation-avatar {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
    }


    /* Backdrop behind inbox drawer */
    .app .messages-view.mobile-inbox-open::before {
      position: fixed !important;

      inset:
        var(--rmf-mobile-header) 0 var(--rmf-mobile-nav) 0 !important;

      z-index: 9200 !important;

      background: rgba(1, 5, 14, .58) !important;

      content: "" !important;

      backdrop-filter: blur(1px) !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — FINAL PRIVATE MESSAGES OVERRIDE
     ========================================================== */

  @media (max-width: 1050px) {

    .app .messages-view.open {
      position: fixed !important;

      top: var(--rmf-mobile-header) !important;
      right: 0 !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 7000 !important;

      display: block !important;

      width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;

      padding: 7px !important;

      overflow: hidden !important;

      background: #050914 !important;
    }

    /* HIDE INBOX FROM MAIN CHAT SCREEN */
    .app .messages-view.open .conversation-panel {
      display: none !important;
    }

    /* ACTIVE CHAT TAKES FULL SCREEN */
    .app .messages-view.open .thread-panel {
      display: flex !important;
      flex-direction: column !important;

      width: 100% !important;
      height: 100% !important;

      min-width: 0 !important;
      min-height: 0 !important;
      max-width: none !important;
      max-height: none !important;

      margin: 0 !important;

      overflow: hidden !important;

      border-radius: 13px !important;
    }

    /* HEADER */
    .app .messages-view.open .thread-header {
      flex: 0 0 auto !important;

      display: block !important;

      padding: 10px !important;
    }

    .app .messages-view.open .thread-person {
      display: flex !important;
      align-items: center !important;
      gap: 9px !important;
    }

    .app .messages-view.open #threadPhoto {
      width: 38px !important;
      height: 38px !important;
      min-width: 38px !important;
    }

    /* ACTION BUTTONS STAY ABOVE CHAT */
    .app .messages-view.open .thread-actions {
      display: grid !important;

      grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

      gap: 5px !important;

      width: 100% !important;

      margin-top: 8px !important;
    }

    .app .messages-view.open .thread-actions button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 32px !important;

      padding: 4px !important;

      font-size: 8px !important;
      line-height: 1.1 !important;
    }

    /* CHAT HISTORY */
    .app .messages-view.open .thread-messages {
      flex: 1 1 auto !important;

      width: 100% !important;

      min-height: 0 !important;
      max-height: none !important;

      padding: 11px !important;

      overflow-y: auto !important;
      overflow-x: hidden !important;
    }

    /* Prevent photos/messages from running into header */
    .app .messages-view.open .thread-bubble {
      max-width: 78% !important;
    }

    .app .messages-view.open .thread-messages img {
      max-width: min(230px, 76vw) !important;
      height: auto !important;
    }

    /* COMPOSER FIXED TO BOTTOM OF THREAD */
    .app .messages-view.open .thread-compose {
      flex: 0 0 auto !important;

      display: grid !important;

      grid-template-columns:
        auto minmax(0, 1fr) auto !important;

      gap: 6px !important;

      width: 100% !important;

      padding: 7px !important;

      background: #071020 !important;
    }

    .app .messages-view.open #threadInput {
      width: 100% !important;
      min-width: 0 !important;

      min-height: 38px !important;
      max-height: 90px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — INBOX BUTTON + DRAWER
     ========================================================== */

  @media (max-width: 1050px) {

    /* Title row */
    .app .messages-view.open .mobile-thread-title-row {
      display: flex !important;
      align-items: center !important;

      gap: 8px !important;

      min-width: 0 !important;
    }

    /* Inbox button */
    .app .messages-view.open .mobile-inbox-button {
      display: inline-flex !important;

      align-items: center !important;
      justify-content: center !important;

      min-width: 72px !important;
      height: 32px !important;

      padding: 0 9px !important;

      border: 1px solid rgba(70, 141, 235, .78) !important;
      border-radius: 9px !important;

      background:
        linear-gradient(145deg, #10284c, #0a1730) !important;

      color: #d7e8ff !important;

      font-size: 9px !important;
      font-weight: 900 !important;

      white-space: nowrap !important;

      cursor: pointer !important;
    }

    .app .messages-view.open .mobile-inbox-button:active {
      transform: scale(.97) !important;
    }

    .app .messages-view.open #threadName {
      min-width: 0 !important;

      overflow: hidden !important;

      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }


    /* Inbox drawer hidden until JS adds mobile-inbox-open */
    .app .messages-view.open .conversation-panel {
      position: fixed !important;

      top: var(--rmf-mobile-header) !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 9600 !important;

      display: block !important;

      width: min(320px, 86vw) !important;
      height: auto !important;

      min-height: 0 !important;
      max-height: none !important;

      margin: 0 !important;

      overflow-y: auto !important;

      border: 0 !important;
      border-right: 1px solid rgba(63, 101, 165, .78) !important;
      border-radius: 0 14px 14px 0 !important;

      background:
        radial-gradient(circle at 15% 0%,
          rgba(202, 35, 210, .14),
          transparent 14rem),
        linear-gradient(180deg, #101a32, #071020) !important;

      box-shadow: 18px 0 45px rgba(0, 0, 0, .58) !important;

      transform: translateX(-105%) !important;
      transition: transform .22s ease !important;
    }

    /* Drawer open */
    .app .messages-view.open.mobile-inbox-open .conversation-panel {
      transform: translateX(0) !important;
    }

    /* Dim conversation behind inbox */
    .app .messages-view.open.mobile-inbox-open::before {
      position: fixed !important;

      top: var(--rmf-mobile-header) !important;
      right: 0 !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 9500 !important;

      display: block !important;

      background: rgba(2, 6, 16, .58) !important;

      content: "" !important;

      backdrop-filter: blur(1px) !important;
    }


    /* Inbox heading */
    .app .messages-view.open .conversation-heading {
      padding: 16px 14px 11px !important;
    }

    .app .messages-view.open .conversation-heading h2 {
      margin: 3px 0 0 !important;

      font-size: 19px !important;
    }

    .app .messages-view.open .message-search-wrap {
      margin: 8px 12px 12px !important;
    }

    .app .messages-view.open .conversation-list {
      width: 100% !important;
      max-height: none !important;

      overflow-y: visible !important;
    }

    /* Each person */
    .app .messages-view.open .conversation-item {
      width: 100% !important;

      padding: 11px 12px !important;

      border: 0 !important;
      border-bottom: 1px solid rgba(53, 78, 121, .42) !important;

      background: transparent !important;

      text-align: left !important;
    }

    .app .messages-view.open .conversation-item.active {
      background:
        linear-gradient(90deg,
          rgba(255, 49, 91, .12),
          rgba(94, 49, 255, .10)) !important;
    }

    .app .messages-view.open .conversation-avatar {
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
    }

    .app .messages-view.open .conversation-name {
      font-size: 12px !important;
      font-weight: 900 !important;
    }

    .app .messages-view.open .conversation-preview {
      margin-top: 3px !important;

      color: #8293ae !important;

      font-size: 9px !important;

      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }
  }

  /* Desktop never shows the mobile Inbox button */
  @media (min-width: 1051px) {
    .mobile-inbox-button {
      display: none !important;
    }
  }

  // ==========================================================
  // RADARMEETFIND MOBILE — PRIVATE MESSAGE INBOX DRAWER
  // ==========================================================

  const mobileInboxButton=document.getElementById("mobileInboxButton");

  if (mobileInboxButton && messagesView) {
    mobileInboxButton.addEventListener("click", function () {
        messagesView.classList.toggle("mobile-inbox-open");
      });
  }

  // Close the inbox automatically after selecting a conversation
  if (conversationList && messagesView) {
    conversationList.addEventListener("click", function (event) {
        const conversationItem=event.target.closest(".conversation-item");

        if ( !conversationItem) return;

        messagesView.classList.remove("mobile-inbox-open");
      });
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — MY MEETUPS CLEANUP
     ========================================================== */

  @media (max-width: 1050px) {

    .my-meetups-overlay.open {
      position: fixed !important;

      top: 0 !important;
      right: 0 !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 9400 !important;

      display: flex !important;

      align-items: flex-start !important;
      justify-content: center !important;

      padding:
        calc(74px + env(safe-area-inset-top, 0px)) 12px 14px !important;

      overflow-y: auto !important;

      background: rgba(2, 6, 16, .55) !important;

      backdrop-filter: blur(2px) !important;
    }

    .my-meetups-modal {
      width: 100% !important;
      max-width: 390px !important;

      max-height:
        calc(100dvh - var(--rmf-mobile-nav) - 92px) !important;

      margin: 0 !important;

      overflow-y: auto !important;

      border-radius: 16px !important;

      box-shadow:
        0 20px 60px rgba(0, 0, 0, .58),
        0 0 24px rgba(116, 55, 213, .16) !important;
    }

    .my-meetups-modal-header {
      position: sticky !important;

      top: 0 !important;

      z-index: 20 !important;

      padding: 14px 14px 10px !important;

      background:
        linear-gradient(180deg,
          rgba(29, 20, 52, .98),
          rgba(17, 18, 39, .96)) !important;
    }

    .my-meetups-modal-header h2 {
      margin: 3px 0 4px !important;

      font-size: 20px !important;
      line-height: 1.1 !important;
    }

    .my-meetups-modal-header p {
      margin: 0 !important;

      font-size: 9px !important;
      line-height: 1.35 !important;
    }

    .my-meetups-close {
      top: 12px !important;
      right: 12px !important;

      width: 30px !important;
      height: 30px !important;

      min-width: 30px !important;
      min-height: 30px !important;
    }

    .my-meetups-tabs {
      position: sticky !important;

      top: 88px !important;

      z-index: 18 !important;

      margin: 0 12px 10px !important;

      padding: 4px !important;

      border-radius: 10px !important;

      background: #090f22 !important;
    }

    .my-meetups-tab {
      min-height: 38px !important;

      padding: 0 6px !important;

      font-size: 9px !important;
    }

    .my-meetups-list {
      padding: 0 12px 16px !important;
    }

    .my-meetup-card {
      min-height: 0 !important;

      margin-bottom: 10px !important;

      padding: 12px !important;

      border-radius: 13px !important;
    }

    .my-meetup-card-title {
      font-size: 14px !important;

      white-space: normal !important;

      overflow: visible !important;
    }

    .my-meetup-card-venue,
    .my-meetup-card-time,
    .my-meetup-card-attendance {
      margin-top: 5px !important;

      font-size: 10px !important;

      white-space: normal !important;
    }

    .my-meetup-card-footer {
      display: block !important;

      padding-top: 10px !important;
    }

    .my-meetup-card-badge {
      display: inline-flex !important;

      margin-bottom: 8px !important;

      padding: 4px 7px !important;

      font-size: 8px !important;
    }

    .my-meetup-card-actions {
      display: grid !important;

      grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

      gap: 6px !important;

      width: 100% !important;
    }

    .my-meetup-card-button {
      width: 100% !important;

      min-width: 0 !important;
      min-height: 34px !important;

      padding: 4px 5px !important;

      font-size: 8px !important;

      white-space: normal !important;

      line-height: 1.1 !important;
    }
  }

  @media (max-width: 420px) {

    .my-meetups-overlay.open {
      padding-left: 8px !important;
      padding-right: 8px !important;
    }

    .my-meetup-card-actions {
      grid-template-columns: 1fr !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — MY MEETUPS CLEANUP
     ========================================================== */

  @media (max-width: 1050px) {

    .my-meetups-overlay.open {
      position: fixed !important;

      top: 0 !important;
      right: 0 !important;
      bottom: var(--rmf-mobile-nav) !important;
      left: 0 !important;

      z-index: 9400 !important;

      display: flex !important;

      align-items: flex-start !important;
      justify-content: center !important;

      padding:
        calc(74px + env(safe-area-inset-top, 0px)) 12px 14px !important;

      overflow-y: auto !important;

      background: rgba(2, 6, 16, .55) !important;

      backdrop-filter: blur(2px) !important;
    }

    .my-meetups-modal {
      width: 100% !important;
      max-width: 390px !important;

      max-height:
        calc(100dvh - var(--rmf-mobile-nav) - 92px) !important;

      margin: 0 !important;

      overflow-y: auto !important;

      border-radius: 16px !important;

      box-shadow:
        0 20px 60px rgba(0, 0, 0, .58),
        0 0 24px rgba(116, 55, 213, .16) !important;
    }

    .my-meetups-modal-header {
      position: sticky !important;

      top: 0 !important;

      z-index: 20 !important;

      padding: 14px 14px 10px !important;

      background:
        linear-gradient(180deg,
          rgba(29, 20, 52, .98),
          rgba(17, 18, 39, .96)) !important;
    }

    .my-meetups-modal-header h2 {
      margin: 3px 0 4px !important;

      font-size: 20px !important;
      line-height: 1.1 !important;
    }

    .my-meetups-modal-header p {
      margin: 0 !important;

      font-size: 9px !important;
      line-height: 1.35 !important;
    }

    .my-meetups-close {
      top: 12px !important;
      right: 12px !important;

      width: 30px !important;
      height: 30px !important;

      min-width: 30px !important;
      min-height: 30px !important;
    }

    .my-meetups-tabs {
      position: sticky !important;

      top: 88px !important;

      z-index: 18 !important;

      margin: 0 12px 10px !important;

      padding: 4px !important;

      border-radius: 10px !important;

      background: #090f22 !important;
    }

    .my-meetups-tab {
      min-height: 38px !important;

      padding: 0 6px !important;

      font-size: 9px !important;
    }

    .my-meetups-list {
      padding: 0 12px 16px !important;
    }

    .my-meetup-card {
      min-height: 0 !important;

      margin-bottom: 10px !important;

      padding: 12px !important;

      border-radius: 13px !important;
    }

    .my-meetup-card-title {
      font-size: 14px !important;

      white-space: normal !important;

      overflow: visible !important;
    }

    .my-meetup-card-venue,
    .my-meetup-card-time,
    .my-meetup-card-attendance {
      margin-top: 5px !important;

      font-size: 10px !important;

      white-space: normal !important;
    }

    .my-meetup-card-footer {
      display: block !important;

      padding-top: 10px !important;
    }

    .my-meetup-card-badge {
      display: inline-flex !important;

      margin-bottom: 8px !important;

      padding: 4px 7px !important;

      font-size: 8px !important;
    }

    .my-meetup-card-actions {
      display: grid !important;

      grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

      gap: 6px !important;

      width: 100% !important;
    }

    .my-meetup-card-button {
      width: 100% !important;

      min-width: 0 !important;
      min-height: 34px !important;

      padding: 4px 5px !important;

      font-size: 8px !important;

      white-space: normal !important;

      line-height: 1.1 !important;
    }
  }

  @media (max-width: 420px) {

    .my-meetups-overlay.open {
      padding-left: 8px !important;
      padding-right: 8px !important;
    }

    .my-meetup-card-actions {
      grid-template-columns: 1fr !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — MEETUP DETAILS POPUP
     ========================================================== */

  @media (max-width: 1050px) {

    /* Dim the app behind meetup details */
    body.mobile-meetup-details-active::before {
      content: "" !important;

      position: fixed !important;
      inset: 0 !important;

      z-index: 9600 !important;

      background: rgba(2, 6, 16, .58) !important;
      backdrop-filter: blur(2px) !important;
    }

    /* Turn the existing meetup details panel into a mobile popup */
    #meetupDetailsPanel.mobile-meetup-details-open {
      position: fixed !important;

      top: 96px !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;

      z-index: 9700 !important;

      display: block !important;

      width: calc(100% - 30px) !important;
      max-width: 360px !important;
      max-height: calc(100dvh - 180px) !important;

      margin: 0 !important;
      padding: 42px 14px 14px !important;

      transform: translateX(-50%) !important;

      overflow-y: auto !important;

      border: 1px solid rgba(93, 121, 214, .82) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 90% 0%,
          rgba(149, 63, 235, .18),
          transparent 12rem),
        linear-gradient(145deg,
          #14182f,
          #091020) !important;

      box-shadow:
        0 22px 60px rgba(0, 0, 0, .62),
        0 0 28px rgba(111, 77, 230, .18) !important;
    }

    /* Keep details content readable */
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent {
      display: block !important;

      width: 100% !important;

      color: #dce5f5 !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent h3 {
      margin: 0 0 10px !important;

      color: #ffffff !important;

      font-size: 18px !important;
      line-height: 1.2 !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-description {
      margin-top: 10px !important;

      color: #aab6ca !important;

      font-size: 11px !important;
      line-height: 1.45 !important;
    }

    /* Close / Back controls */
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsClose,

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsBack {
      position: absolute !important;

      top: 10px !important;

      width: 30px !important;
      height: 30px !important;

      min-width: 30px !important;
      min-height: 30px !important;

      padding: 0 !important;

      border-radius: 9px !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsClose {
      right: 10px !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsBack {
      left: 10px !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — SHOW MEETUP DETAILS ABOVE HIDDEN CHAT
     ========================================================== */

  @media (max-width: 1050px) {

    /* Normally City Chat preview stays hidden on mobile,
       but temporarily show its container when meetup details are open */
    body.mobile-meetup-details-active .app:has(.radar-view:not(.hidden)) .chat-panel:has(#meetupDetailsPanel.mobile-meetup-details-open) {
      display: block !important;

      position: fixed !important;
      inset: 0 !important;

      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;

      margin: 0 !important;
      padding: 0 !important;

      border: 0 !important;
      background: transparent !important;

      pointer-events: none !important;

      z-index: 9690 !important;
    }

    /* Hide all the desktop City Chat pieces */
    body.mobile-meetup-details-active .chat-panel:has(#meetupDetailsPanel.mobile-meetup-details-open)>.chat-header,

    body.mobile-meetup-details-active .chat-panel:has(#meetupDetailsPanel.mobile-meetup-details-open)>.chat-body,

    body.mobile-meetup-details-active .chat-panel:has(#meetupDetailsPanel.mobile-meetup-details-open)>.chat-input {
      display: none !important;
    }

    /* Show only the actual meetup details card */
    body.mobile-meetup-details-active #meetupDetailsPanel.mobile-meetup-details-open {
      display: block !important;

      pointer-events: auto !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — MEETUP DETAILS POLISH
     ========================================================== */

  @media (max-width: 1050px) {

    #meetupDetailsPanel.mobile-meetup-details-open {
      padding: 46px 14px 16px !important;

      border-radius: 16px !important;

      background:
        radial-gradient(circle at 88% 0%,
          rgba(137, 68, 231, .18),
          transparent 11rem),
        linear-gradient(145deg,
          #17162f,
          #091020) !important;
    }

    /* Hide awkward desktop Back text on mobile */
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsBack {
      display: none !important;
    }

    /* Clean top label */
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-details-heading {
      margin: 0 34px 12px 0 !important;

      color: #ff5d98 !important;

      font-size: 9px !important;
      font-weight: 900 !important;
      letter-spacing: 1.3px !important;
      text-transform: uppercase !important;
    }

    /* Close button */
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsClose {
      top: 10px !important;
      right: 10px !important;

      width: 30px !important;
      height: 30px !important;

      border: 1px solid rgba(111, 139, 190, .7) !important;
      border-radius: 9px !important;

      background: rgba(22, 31, 58, .94) !important;

      color: #d9e4f7 !important;
    }

    /* Content spacing */
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent {
      display: flex !important;
      flex-direction: column !important;

      gap: 7px !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent h3 {
      margin: 0 0 2px !important;

      color: #fff !important;

      font-size: 18px !important;
      line-height: 1.15 !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent>div,
    #meetupDetailsPanel.mobile-meetup-details-open #meetupDetailsContent>p {
      margin: 0 !important;

      font-size: 10px !important;
      line-height: 1.4 !important;
    }

    /* Host photo */
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-host img {
      width: 32px !important;
      height: 32px !important;

      border-radius: 50% !important;
    }

    /* Action buttons */
    #meetupDetailsPanel.mobile-meetup-details-open button:not(#meetupDetailsClose):not(#meetupDetailsBack) {
      width: 100% !important;

      min-height: 38px !important;

      margin-top: 2px !important;
      padding: 6px 10px !important;

      border-radius: 9px !important;

      font-size: 9px !important;
      font-weight: 900 !important;
    }

    /* Edit */
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-edit-button {
      border: 1px solid rgba(100, 120, 210, .7) !important;

      background: rgba(68, 61, 135, .35) !important;

      color: #e1ddff !important;
    }

    /* Delete + Create Another */
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-delete-button,

    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-create-button {
      border: 1px solid rgba(255, 67, 104, .72) !important;

      background: rgba(111, 24, 54, .34) !important;

      color: #ff9fb6 !important;
    }

    /* Time + description separators */
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-times,
    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-description {
      margin-top: 6px !important;
      padding-top: 8px !important;

      border-top: 1px solid rgba(75, 93, 133, .38) !important;
    }

    #meetupDetailsPanel.mobile-meetup-details-open .meetup-detail-description {
      color: #aeb9cc !important;

      font-size: 10px !important;
      line-height: 1.45 !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — CONFIRMATION MODAL ABOVE DETAILS
     ========================================================== */

  @media (max-width: 1050px) {

    .confirm-overlay.open {
      position: fixed !important;
      inset: 0 !important;

      z-index: 12000 !important;

      display: flex !important;

      align-items: center !important;
      justify-content: center !important;

      padding: 18px !important;

      background: rgba(2, 6, 16, .72) !important;

      backdrop-filter: blur(3px) !important;
    }

    .confirm-overlay.open .confirm-modal {
      width: 100% !important;
      max-width: 340px !important;

      max-height: none !important;

      margin: 0 !important;
      padding: 20px !important;

      overflow: visible !important;

      border: 1px solid rgba(255, 74, 120, .72) !important;
      border-radius: 16px !important;

      background:
        radial-gradient(circle at 50% 0%,
          rgba(255, 49, 91, .15),
          transparent 11rem),
        linear-gradient(145deg,
          #171426,
          #091020) !important;

      box-shadow:
        0 22px 65px rgba(0, 0, 0, .68),
        0 0 25px rgba(255, 49, 91, .14) !important;
    }

    .confirm-overlay.open #confirmIcon {
      width: 44px !important;
      height: 44px !important;

      margin-bottom: 10px !important;

      font-size: 19px !important;
    }

    .confirm-overlay.open #confirmTitle {
      margin: 0 0 8px !important;

      font-size: 18px !important;
    }

    .confirm-overlay.open #confirmText {
      margin: 0 0 16px !important;

      font-size: 10px !important;
      line-height: 1.45 !important;
    }

    .confirm-overlay.open .confirm-actions {
      display: grid !important;

      grid-template-columns: 1fr 1fr !important;

      gap: 8px !important;
    }

    .confirm-overlay.open .confirm-actions button {
      width: 100% !important;
      min-height: 40px !important;

      border-radius: 9px !important;

      font-size: 10px !important;
      font-weight: 900 !important;
    }
  }

  /* ==========================================================
     RADARMEETFIND MOBILE — ADJUST RADAR VISIBILITY FIX
     ========================================================== */

  @media (max-width: 1050px) {

    /* Explore City + Radar Filters sit above Adjust Radar */
    .app:has(.radar-view:not(.hidden)) .top-control-row {
      position: absolute !important;

      top: auto !important;
      right: 8px !important;
      bottom: 58px !important;
      left: 8px !important;

      z-index: 1200 !important;

      gap: 6px !important;
    }

    /* Adjust Radar gets its own visible row */
    .app:has(.radar-view:not(.hidden)) .radar-slider-row {
      position: absolute !important;

      right: 8px !important;
      bottom: 8px !important;
      left: 8px !important;

      z-index: 1250 !important;

      display: block !important;

      width: auto !important;

      margin: 0 !important;
      padding: 0 !important;

      pointer-events: none !important;
    }

    /* The collapsed Adjust Radar bar */
    .app:has(.radar-view:not(.hidden)) .radar-slider-toggle {
      display: grid !important;

      width: 100% !important;
      min-height: 42px !important;

      padding: 0 12px !important;

      border: 1px solid rgba(70, 116, 190, .82) !important;
      border-radius: 10px !important;

      background:
        linear-gradient(105deg,
          rgba(10, 25, 48, .97),
          rgba(8, 17, 35, .97)) !important;

      box-shadow:
        0 6px 16px rgba(0, 0, 0, .34) !important;

      pointer-events: auto !important;
    }

    /* Expanded drawer grows upward, not downward */
    .app:has(.radar-view:not(.hidden)) .radar-slider-panels.is-expanded {
      display: grid !important;

      grid-template-columns: 1fr !important;

      gap: 8px !important;

      width: 100% !important;

      margin: 0 0 8px !important;

      max-height: min(54dvh, 430px) !important;

      overflow-y: auto !important;

      pointer-events: auto !important;
    }

    /* Keep bottom nav clear */
    .app:has(.radar-view:not(.hidden)) .mobile-bottom-nav {
      z-index: 5000 !important;
    }
  }
}

/* =========================================================
     RADARMEET LOGIN HERO
  ========================================================= */

.auth-login-hero {
  width: 100%;
  height: 300px;
  background-image:
    linear-gradient(to bottom,
      rgba(5, 7, 12, 0) 45%,
      rgba(5, 7, 12, 0.65) 75%,
      #05070c 100%),
    url("login-hero.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  grid-column: 1 / -1;
}

/* PHONE */
@media (max-width: 700px) {
  .auth-login-hero {
    height: 310px;
    background-position: center top;
    margin-bottom: -115px;
    position: relative;
    z-index: 0;
  }

  .auth-center {
    position: relative;
    z-index: 2;
  }
}

/* =========================================================
   PUBLIC AUTH SCREEN — CINEMATIC NIGHTLIFE SURROUND
   Decorative only: authentication markup and behavior stay unchanged.
   ========================================================= */
.auth-screen {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 35, 85, 0.19), transparent 34%),
    linear-gradient(180deg, #070812 0%, #080911 48%, #03050a 100%) !important;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(3, 5, 12, 0.02) 0%,
      rgba(4, 6, 14, 0.3) 30%,
      rgba(5, 7, 13, 0.88) 72%,
      #04060b 100%),
    linear-gradient(90deg,
      rgba(4, 6, 12, 0.7) 0%,
      rgba(4, 6, 12, 0.05) 27%,
      rgba(4, 6, 12, 0.05) 73%,
      rgba(4, 6, 12, 0.7) 100%);
  content: "";
  pointer-events: none;
}



.auth-login-hero::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 32, 115, 0.22), transparent 26%),
    repeating-linear-gradient(106deg,
      transparent 0 18%,
      rgba(255, 36, 135, 0.08) 18.2% 18.35%,
      transparent 18.5% 31%);
  content: "";
  mix-blend-mode: screen;
}

.auth-vegas-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 260px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 8, 16, 0.42) 48%, #03050a 100%),
    radial-gradient(circle at 73% 55%, rgba(255, 30, 118, 0.28), transparent 10%),
    radial-gradient(circle at 26% 68%, rgba(104, 64, 255, 0.2), transparent 13%);
  pointer-events: none;
}

.auth-skyline-buildings {
  position: absolute;
  right: -2%;
  bottom: -1px;
  left: -2%;
  height: 152px;
  background:
    linear-gradient(90deg,
      #060a16 0 4%,
      #11152a 4% 8%,
      #060a16 8% 11%,
      #171a32 11% 16%,
      #060a16 16% 20%,
      #10152a 20% 25%,
      #060a16 25% 29%,
      #1a1732 29% 35%,
      #060a16 35% 39%,
      #12182c 39% 44%,
      #060a16 44% 49%,
      #1b1932 49% 55%,
      #060a16 55% 60%,
      #11162c 60% 65%,
      #060a16 65% 69%,
      #19162f 69% 75%,
      #060a16 75% 79%,
      #11172d 79% 85%,
      #060a16 85% 89%,
      #17172e 89% 95%,
      #060a16 95% 100%);
  box-shadow:
    0 -4px 18px rgba(182, 35, 255, 0.17),
    0 -1px 0 rgba(255, 45, 118, 0.34);
}

.auth-skyline-buildings::before {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 92px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 14px,
      rgba(255, 74, 155, 0.7) 14px 17px,
      transparent 17px 35px),
    repeating-linear-gradient(0deg,
      transparent 0 16px,
      rgba(88, 177, 255, 0.46) 16px 18px,
      transparent 18px 32px);
  content: "";
  opacity: 0.32;
}

.auth-skyline-wheel {
  position: absolute;
  right: 18%;
  bottom: 45px;
  width: 136px;
  height: 136px;
  border: 3px solid rgba(255, 70, 163, 0.68);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 49%, rgba(255, 93, 181, 0.62) 50% 51%, transparent 52%),
    linear-gradient(-45deg, transparent 49%, rgba(255, 93, 181, 0.5) 50% 51%, transparent 52%),
    radial-gradient(circle, rgba(255, 102, 190, 0.8) 0 3px, transparent 4px);
  box-shadow:
    0 0 10px rgba(255, 42, 138, 0.86),
    0 0 36px rgba(255, 42, 138, 0.38),
    inset 0 0 25px rgba(255, 42, 138, 0.12);
  opacity: 0.74;
}

.auth-skyline-wheel::before,
.auth-skyline-wheel::after {
  position: absolute;
  bottom: -47px;
  left: 50%;
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 83, 174, 0.72), transparent);
  content: "";
  transform-origin: top center;
}

.auth-skyline-wheel::before {
  transform: translateX(-50%) rotate(25deg);
}

.auth-skyline-wheel::after {
  transform: translateX(-50%) rotate(-25deg);
}

.auth-skyline-palm {
  position: absolute;
  bottom: 28px;
  width: 94px;
  height: 178px;
  opacity: 0.72;
  filter: drop-shadow(0 0 8px rgba(255, 49, 133, 0.32));
}

.auth-skyline-palm::before {
  position: absolute;
  bottom: 0;
  left: 47px;
  width: 9px;
  height: 128px;
  border-radius: 70% 30% 20% 20%;
  background: linear-gradient(90deg, #21122e, #ff3b92 48%, #150d25);
  content: "";
  transform: rotate(8deg);
  transform-origin: bottom center;
}

.auth-skyline-palm::after {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 82px;
  height: 78px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -22deg,
      rgba(255, 60, 147, 0.78) 0 7deg,
      transparent 7deg 25deg);
  content: "";
  clip-path: polygon(50% 50%, 100% 0, 88% 47%, 100% 100%, 50% 58%, 0 100%, 12% 48%, 0 0);
  transform: rotate(-8deg);
}

.auth-skyline-palm-left {
  left: 9%;
  transform: scale(0.8);
}

.auth-skyline-palm-right {
  right: 7%;
  transform: scale(0.94) rotate(3deg);
}

.auth-skyline-glow {
  position: absolute;
  bottom: 75px;
  width: 90px;
  height: 4px;
  border-radius: 50%;
  background: #ff347f;
  box-shadow:
    0 0 12px #ff347f,
    0 0 34px rgba(255, 52, 127, 0.75);
  opacity: 0.8;
}

.auth-skyline-glow-left {
  left: 31%;
  transform: rotate(-4deg);
}

.auth-skyline-glow-right {
  right: 31%;
  background: #7259ff;
  box-shadow:
    0 0 12px #7259ff,
    0 0 34px rgba(114, 89, 255, 0.75);
  transform: rotate(4deg);
}

.auth-activity-column,
.auth-center,
.auth-features {
  position: relative;
  z-index: 3;
}

.auth-center {
  align-self: center;
}

.auth-features {
  z-index: 4;
}

@media (max-width: 950px) {
  .auth-login-hero {
    height: 250px !important;
    opacity: 0.78;
  }

  .auth-vegas-skyline {
    height: 190px;
    opacity: 0.66;
  }

  .auth-skyline-wheel {
    right: 8%;
    width: 104px;
    height: 104px;
    bottom: 28px;
  }

  .auth-skyline-palm-left {
    left: -6%;
    transform: scale(0.62);
  }

  .auth-skyline-palm-right {
    right: -9%;
    transform: scale(0.68);
  }
}

@media (max-width: 800px) {
  .auth-login-hero {
    height: 178px !important;
    opacity: 0.66;
  }

  .auth-vegas-skyline {
    height: 120px;
    opacity: 0.42;
  }

  .auth-skyline-buildings {
    height: 76px;
  }

  .auth-skyline-wheel {
    right: 4%;
    bottom: 20px;
    width: 66px;
    height: 66px;
    border-width: 2px;
  }

  .auth-skyline-palm {
    display: none;
  }

  .auth-skyline-glow {
    bottom: 44px;
    width: 52px;
  }

  .auth-skyline-glow-left {
    left: 12%;
  }

  .auth-skyline-glow-right {
    right: 14%;
  }
}

@media (max-width: 520px) {
  .auth-screen {
    background:
      radial-gradient(circle at 50% 26%, rgba(255, 35, 85, 0.12), transparent 33%),
      linear-gradient(180deg, #070812 0%, #070911 45%, #03050a 100%) !important;
  }

  .auth-screen::before {
    background:
      linear-gradient(180deg,
        rgba(4, 6, 13, 0.04) 0%,
        rgba(4, 6, 13, 0.38) 22%,
        rgba(4, 6, 13, 0.92) 52%,
        #04060b 100%);
  }

  .auth-login-hero {
    height: 150px !important;
    background-position: center, center, 48% center, center !important;
  }

  .auth-vegas-skyline {
    height: 92px;
    opacity: 0.35;
  }

  .auth-center {
    align-self: stretch;
  }

  .auth-card {
    box-shadow:
      0 24px 58px rgba(0, 0, 0, 0.76),
      0 0 34px rgba(255, 30, 80, 0.14) !important;
  }
}

/* =========================================================
     RADARMEET - REPLACE FAKE BOTTOM SKYLINE
  ========================================================= */

.auth-skyline-buildings,
.auth-skyline-buildings::before,
.auth-skyline-buildings::after {
  display: none !important;
}

@media (max-width: 700px) {
  .auth-vegas-skyline {
    height: 220px !important;
    position: relative !important;
    background:
      linear-gradient(to bottom,
        #05070c 0%,
        rgba(5, 7, 12, 0.65) 30%,
        rgba(5, 7, 12, 0.15) 65%,
        #05070c 100%) !important;
  }
}

/* =========================================================
     PHONE AUTH ARTWORK — USE ATTACHED HERO + VEGAS IMAGES
     ========================================================= */
@media (max-width: 700px) {
  .auth-screen {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .auth-login-hero {
    order: 1 !important;
    flex: 0 0 330px !important;
    width: calc(100% + 24px) !important;
    height: 330px !important;
    margin: 0 -12px -166px !important;
    position: relative !important;
    z-index: 0 !important;
    background-image:
      linear-gradient(to bottom,
        rgba(5, 7, 12, 0.02) 28%,
        rgba(5, 7, 12, 0.24) 52%,
        rgba(5, 7, 12, 0.8) 78%,
        #05070c 100%),
      url("./attached_assets/login-hero_1789015210495.png") !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  .auth-login-hero::after {
    display: none !important;
  }

  .auth-center {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .auth-vegas-skyline {
    order: 3 !important;
    flex: 0 0 310px !important;
    width: calc(100% + 24px) !important;
    height: 310px !important;
    margin: -2px -12px 0 !important;
    position: relative !important;
    z-index: 1 !important;
    background-image:
      linear-gradient(to bottom,
        #05070c 0%,
        rgba(5, 7, 12, 0.9) 10%,
        rgba(5, 7, 12, 0.3) 29%,
        rgba(5, 7, 12, 0.04) 48%,
        rgba(5, 7, 12, 0.14) 82%,
        #05070c 100%),
      url("./attached_assets/login-vegas-bottom_1789015210495.png") !important;
    background-position: center, center bottom !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  .auth-vegas-skyline>.auth-skyline-glow,
  .auth-vegas-skyline>.auth-skyline-buildings,
  .auth-vegas-skyline>.auth-skyline-wheel,
  .auth-vegas-skyline>.auth-skyline-palm {
    display: none !important;
  }
}

/* Keep the existing desktop collage composition unchanged. */
@media (min-width: 701px) {
  .auth-login-hero {
    position: absolute !important;
    inset: 0 0 auto !important;
    z-index: 0 !important;
    width: 100% !important;
    height: min(45vh, 410px) !important;
    grid-column: auto !important;
    background-image:
      linear-gradient(180deg,
        rgba(4, 5, 12, 0.08) 0%,
        rgba(10, 4, 20, 0.2) 38%,
        rgba(5, 7, 13, 0.96) 100%),
      linear-gradient(90deg,
        rgba(5, 6, 14, 0.72) 0%,
        rgba(5, 6, 14, 0.02) 31%,
        rgba(5, 6, 14, 0.02) 69%,
        rgba(5, 6, 14, 0.72) 100%),
      url("https://i.ibb.co/35RLK5gb/Bars-Nightlife.png"),
      url("./radarmeet-activity-hero.png") !important;
    background-position: center, center, center, center !important;
    background-size: cover, cover, cover, cover !important;
    background-repeat: no-repeat !important;
  }
}

/* =========================================================
   DESKTOP - LIFT CITY CHAT UNDER TOP BANNER
========================================================= */
@media (min-width: 1051px) {
  .app:has(.radar-view:not(.hidden)) .content>.chat-panel {
    transform: translateY(-22px) !important;
  }
}

/* =========================================================
   SMALL IPHONE LOGIN WIDTH FIX
========================================================= */
@media (max-width: 420px) {

  .auth-login-hero,
  .auth-vegas-skyline {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .auth-center {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* =========================================
   FINAL MOBILE AUTH CARD COMPACT GLASS
   ========================================= */
@media (max-width: 700px) {
  .auth-center {
    height: auto !important;
    min-height: 0 !important;
    align-self: flex-start !important;
  }

  .auth-card {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 14px !important;

    background: rgba(7, 19, 33, 0.05) !important;
  }
}
