/* TrustMeet — premium app shell (dashboard, discover, client dashboard, membership) */

body.tm-page.tm-page--dashboard,
body.tm-page.tm-page--discover,
body.tm-page.tm-page--pricing {
  color-scheme: dark;
  --db-bg0: #0c1018;
  --db-bg1: #111827;
  --db-surface: rgba(30, 41, 59, 0.5);
  --db-surface-2: rgba(51, 65, 85, 0.35);
  --db-border: rgba(148, 163, 184, 0.12);
  --db-border-glow: rgba(129, 140, 248, 0.22);
  --db-text: #f1f5f9;
  --db-muted: #94a3b8;
  --db-accent: #38bdf8;
  --db-accent-2: #818cf8;
  --db-violet: #a78bfa;
  --db-ring: rgba(99, 102, 241, 0.18);
  --db-shadow: 0 4px 20px rgba(2, 6, 23, 0.3);
  --db-shadow-lg: 0 16px 48px rgba(2, 6, 23, 0.4);
  --db-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  font-family: var(--db-font);
  color: var(--db-text);
  background: var(--db-bg0) !important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(99, 102, 241, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(56, 189, 248, 0.05), transparent 50%),
    linear-gradient(180deg, var(--db-bg1) 0%, var(--db-bg0) 100%) !important;
  background-attachment: fixed !important;
}

.tm-page--dashboard footer,
.tm-page--discover footer,
.tm-page--pricing footer {
  display: none !important;
}

.tm-page--dashboard .tm-main,
.tm-page--discover .tm-main,
.tm-page--pricing .tm-main,
.tm-page--pricing .tm-main.tm-pricing-main {
  padding: 0 !important;
  flex: 1;
  width: 100%;
  max-width: none;
}

.tm-pricing-main {
  width: 100%;
}

.tm-db-app {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.tm-db-app--solo {
  grid-template-columns: 1fr;
}

.tm-db-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--db-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--db-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.tm-db-nav-toggle__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tm-db-topbar__home {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--db-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--db-text);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.tm-db-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--db-border-glow);
}

.tm-db-topbar__start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.tm-db-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.tm-db-sidebar-backdrop.is-visible {
  display: block;
}

body.tm-db-nav-lock {
  overflow: hidden;
  touch-action: none;
}

.tm-db-bottom-nav {
  --tm-bottom-nav-dock-h: 72px;
  --tm-bottom-nav-offset: 12px;
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  padding: 0 12px calc(var(--tm-bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tm-db-bottom-nav__dock {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 22px;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
    rgba(10, 14, 28, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.tm-db-bottom-nav__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  padding: 2px 4px;
  border-radius: 16px;
  color: rgba(148, 163, 184, 0.92);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, transform 0.18s ease;
}

.tm-db-bottom-nav__item:active {
  transform: scale(0.94);
}

.tm-db-bottom-nav__icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  transition:
    background 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease;
}

.tm-db-bottom-nav__svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tm-db-bottom-nav__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.tm-db-bottom-nav__item.is-active {
  color: #eef2ff;
}

.tm-db-bottom-nav__item.is-active .tm-db-bottom-nav__icon-wrap {
  color: #e0e7ff;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.42), rgba(139, 92, 246, 0.28));
  box-shadow:
    0 8px 22px rgba(99, 102, 241, 0.28),
    0 0 0 1px rgba(165, 180, 252, 0.22) inset;
}

.tm-db-bottom-nav__item.is-active .tm-db-bottom-nav__label {
  color: #c7d2fe;
}

.tm-db-bottom-nav__badge.tm-chat-nav-badge {
  display: none;
  position: absolute;
  top: -3px;
  right: -4px;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f472b6, #a855f7);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  border: 2px solid rgba(10, 14, 28, 0.95);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.35);
  z-index: 2;
  pointer-events: none;
}

.tm-db-bottom-nav__badge.tm-chat-nav-badge.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: tm-bottom-nav-badge-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tm-bottom-nav-badge-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 960px) {
  .tm-db-app {
    grid-template-columns: 1fr;
  }
  .tm-db-app:not(.tm-db-app--solo) .tm-db-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 220;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 24px 0 64px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tm-db-app.is-mobile-nav-open .tm-db-sidebar {
    transform: translateX(0);
  }
  .tm-db-nav-toggle {
    display: inline-flex;
  }
  .tm-db-topbar__home {
    display: inline-flex;
  }
  .tm-db-bottom-nav {
    display: block;
  }
  .tm-db-main {
    padding-bottom: calc(var(--tm-bottom-nav-dock-h, 72px) + var(--tm-bottom-nav-offset, 12px) + 8px + env(safe-area-inset-bottom, 0px));
  }
  .tm-db-content {
    padding: 16px 14px 28px;
  }
  .tm-db-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .tm-db-topbar__title {
    font-size: 0.98rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tm-visitor-topbar__actions,
  .tm-companion-topbar__actions {
    flex-shrink: 0;
    gap: 6px;
  }
  .tm-db-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
  #logout-btn {
    font-size: 0.82rem;
    padding: 10px 12px;
  }
  .tm-companion-pill {
    display: none;
  }

  /* Chat page: fit above fixed bottom nav — no compose cutoff */
  .tm-page--chat {
    --tm-bottom-nav-h: 84px;
  }

  .tm-page--chat.tm-body {
    overflow: hidden;
    height: var(--tm-vvh, 100dvh);
  }

  .tm-page--chat .tm-db-app {
    height: var(--tm-vvh, 100dvh);
    min-height: var(--tm-vvh, 100dvh);
  }

  .tm-page--chat .tm-db-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding-bottom: calc(var(--tm-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .tm-page--chat .tm-db-topbar {
    flex-shrink: 0;
  }

  body.tm-pro-chat-thread-active .tm-db-topbar__title,
  body.tm-pro-chat-thread-active .tm-db-nav-toggle {
    display: none;
  }

  body.tm-pro-chat-thread-active .tm-db-topbar {
    padding: 8px 10px;
    gap: 6px;
  }

  body.tm-pro-chat-thread-active .tm-db-topbar__home {
    display: none;
  }

  body.tm-pro-chat-thread-active #logout-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  body.tm-pro-chat-thread-active .tm-notif-bell {
    width: 40px;
    height: 40px;
  }

  .tm-page--chat .tm-db-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 8px 0;
    overflow: hidden;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .tm-db-grid {
    grid-template-columns: 1fr;
  }
  .tm-db-content {
    padding: 14px 12px 24px;
  }
  #logout-btn {
    font-size: 0;
    width: 44px;
    padding: 0;
    position: relative;
  }
  #logout-btn::after {
    content: '⎋';
    font-size: 1rem;
    line-height: 1;
  }
}

.tm-db-sidebar {
  background: rgba(8, 11, 22, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-right: 1px solid var(--db-border);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-db-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--db-border);
  margin-bottom: 10px;
}

.tm-db-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(34, 211, 238, 0.15));
}

.tm-db-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.tm-db-brand__mark {
  display: flex;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(34, 211, 238, 0.18));
}

.tm-db-brand__word {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--db-text);
}

.tm-db-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-db-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.72);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tm-db-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.12);
}

.tm-db-nav a.is-active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(129, 140, 248, 0.16));
  color: #fff;
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.tm-db-nav a.tm-db-nav__upgrade {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(99, 102, 241, 0.14));
  border-color: rgba(167, 139, 250, 0.35);
  color: #e9d5ff;
}

.tm-db-nav a.tm-db-nav__upgrade:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(99, 102, 241, 0.22));
  color: #fff;
  border-color: rgba(196, 181, 253, 0.45);
}

.tm-db-nav .tm-chat-nav-badge {
  display: none;
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f472b6, #a855f7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.tm-db-nav .tm-chat-nav-badge.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tm-db-nav a.is-muted {
  opacity: 0.45;
  pointer-events: none;
}

/* Visitor settings — city typeahead */
.tm-vst-city-wrap {
  position: relative;
}
.tm-city-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.tm-city-suggest-list.is-hidden {
  display: none;
}
.tm-city-suggest-list__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.tm-city-suggest-list__btn:hover,
.tm-city-suggest-list__btn:focus-visible {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  outline: none;
}

.tm-db-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tm-db-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 26px;
  background: rgba(6, 8, 16, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--db-border);
}

.tm-db-topbar__title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.tm-db-topbar__user {
  font-size: 0.9rem;
  color: var(--db-muted);
  font-weight: 600;
}

.tm-db-content {
  padding: 26px 26px 48px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.tm-db-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .tm-db-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tm-db-grid {
    grid-template-columns: 1fr;
  }
}

.tm-db-card {
  position: relative;
  background: var(--db-surface);
  border: 1px solid var(--db-border);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow: var(--db-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
}

.tm-db-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.22);
  box-shadow: var(--db-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.tm-db-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--db-muted);
  margin-bottom: 8px;
}

.tm-db-card__value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.tm-db-card__hint {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--db-muted);
  line-height: 1.45;
}

.tm-db-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 960px) {
  .tm-db-panels {
    grid-template-columns: 1fr;
  }
}

.tm-db-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.tm-db-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-db-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--db-border);
  font-size: 0.88rem;
  color: rgba(241, 245, 249, 0.92);
}

.tm-db-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tm-db-badge--pending {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.tm-db-badge--accepted {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tm-db-badge--rejected {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.tm-db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--db-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--db-text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tm-db-btn:hover {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(129, 140, 248, 0.12);
  transform: translateY(-1px);
}

.tm-db-btn--primary {
  background: linear-gradient(115deg, var(--db-accent), var(--db-accent-2), var(--db-violet));
  background-size: 150% 100%;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28);
}

.tm-db-btn--primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

.tm-db-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tm-db-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.18);
  color: #e0e7ff;
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.tm-db-chip--empty {
  background: rgba(255, 255, 255, 0.04);
  color: var(--db-muted);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.25);
}

.tm-db-sidecard {
  margin-top: 18px;
}

.tm-db-drop {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  font-size: 0.88rem;
  color: var(--db-muted);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-db-drop.is-drag {
  border-color: var(--db-accent-2);
  background: rgba(99, 102, 241, 0.12);
}

.tm-db-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tm-db-upload-row input[type="file"] {
  flex: 1 1 200px;
  min-width: 0;
  color: var(--db-muted);
}

.tm-db-alert {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.tm-db-alert.show {
  display: block;
}

.tm-db-alert.is-error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.tm-db-alert.is-success {
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.tm-db-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tm-db-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--db-border);
  background: rgba(255, 255, 255, 0.04);
}

.tm-db-photo img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.tm-db-photo__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--db-muted);
}

.tm-db-mini-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--db-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-db-mini-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.15);
}

.tm-db-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(129, 140, 248, 0.22);
  font-size: 0.86rem;
  color: var(--db-muted);
  line-height: 1.55;
}

.tm-db-callout strong {
  color: #fff;
}

.tm-db-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--db-border);
  font: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: var(--db-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-db-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.tm-db-input::placeholder {
  color: #64748b;
}

/* Native <select> lists: avoid light text on white OS dropdown (Chrome/Edge on Windows). */
select.tm-db-input {
  color-scheme: dark;
  accent-color: var(--db-accent, #22d3ee);
}

select.tm-db-input option,
select.tm-db-input optgroup {
  background-color: #0f172a;
  color: #f1f5f9;
}

.tm-disc-vibe,
.tm-disc-vibe span {
  color: var(--db-text);
}

.tm-disc-vibe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--db-border) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-disc-vibe input {
  margin: 0;
}

.tm-disc-vibe:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.45) !important;
  background: rgba(34, 211, 238, 0.1) !important;
}

.tm-disc-filter {
  margin-bottom: 22px;
}

/* —— Discover profile cards —— */
.tm-disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}

.tm-profile-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 24px !important;
}

.tm-profile-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.tm-profile-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 15, 0.92) 100%);
  pointer-events: none;
}

.tm-profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tm-profile-card:hover .tm-profile-card__media img {
  transform: scale(1.05);
}

.tm-profile-card__body {
  padding: 16px 18px 18px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.tm-profile-card__title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 6px;
  padding-top: 2px;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.65);
}

.tm-profile-card__meta {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 8px;
}

.tm-profile-card__vibes {
  font-size: 0.8rem;
  color: var(--db-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.tm-profile-card__bio {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-disc-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tm-disc-card--featured {
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.22),
    0 16px 42px rgba(56, 189, 248, 0.14);
}

.tm-disc-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #a78bfa);
  z-index: 6;
  pointer-events: none;
}

.tm-disc-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.tm-disc-card__link:focus-visible {
  box-shadow: 0 0 0 3px var(--db-ring);
  border-radius: 24px;
}

.tm-disc-card__actions {
  padding: 0 18px 22px;
  margin-top: auto;
}

.tm-disc-online {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tm-disc-online.is-live {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.tm-discover-topbar .tm-discover-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--db-muted);
  margin-bottom: 4px;
}

.tm-discover-filters {
  padding: 22px 22px 20px;
  margin-bottom: 22px;
  border-radius: 22px !important;
  color-scheme: dark;
}

.tm-discover-filters__head {
  margin-bottom: 16px;
}

.tm-discover-filters__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tm-discover-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.tm-disc-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--db-muted);
  margin-bottom: 6px;
}

.tm-discover-vibes-block {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.tm-discover-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px -22px -20px;
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(129, 140, 248, 0.28);
  background: linear-gradient(180deg, rgba(49, 46, 129, 0.22), rgba(15, 23, 42, 0.55));
  border-radius: 0 0 22px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tm-discover-actions-bar__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.tm-discover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

@media (min-width: 560px) {
  .tm-discover-actions {
    width: auto;
    margin-left: auto;
  }
}

.tm-discover-apply-btn {
  min-height: 48px;
  padding: 12px 30px !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  background: linear-gradient(115deg, #38bdf8 0%, #6366f1 52%, #a78bfa 100%) !important;
  background-size: 180% 100% !important;
  color: #fff !important;
  border: none !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 10px 30px rgba(99, 102, 241, 0.48),
    0 0 36px rgba(56, 189, 248, 0.2) !important;
  flex: 1 1 100%;
}

@media (min-width: 560px) {
  .tm-discover-apply-btn {
    flex: 0 0 auto;
    min-width: 190px;
  }
}

.tm-discover-apply-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 36px rgba(99, 102, 241, 0.58),
    0 0 44px rgba(56, 189, 248, 0.28) !important;
}

.tm-discover-reset-btn {
  min-height: 48px;
  padding: 12px 22px !important;
  background: rgba(15, 23, 42, 0.45) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
  flex: 0 0 auto;
}

.tm-discover-reset-btn:hover {
  border-color: rgba(148, 163, 184, 0.55) !important;
  background: rgba(30, 41, 59, 0.65) !important;
  color: #f1f5f9 !important;
}

.tm-discover-vibes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--db-muted);
}

.tm-disc-vibe-search {
  max-width: 220px;
  flex: 1;
  min-width: 160px;
}

.tm-disc-empty {
  padding: 28px 22px;
  border-radius: 20px !important;
}

.tm-dp-back {
  color: var(--db-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.tm-dp-back:hover {
  color: var(--db-text);
}

.tm-dp-glass {
  border-radius: 22px !important;
}

.tm-dp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 22px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .tm-dp-hero {
    grid-template-columns: 1fr;
  }
}

.tm-dp-hero__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-dp-hero__main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--db-border);
  background: rgba(0, 0, 0, 0.25);
}

.tm-dp-hero__img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.tm-dp-hero__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-dp-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.tm-dp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-dp-thumb:hover,
.tm-dp-thumb:focus-visible {
  border-color: rgba(34, 211, 238, 0.55);
}

.tm-dp-hero__placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--db-muted);
  border-radius: 18px;
  border: 1px dashed var(--db-border);
}

.tm-dp-hero__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-dp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-dp-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--db-border);
  color: var(--db-muted);
}

.tm-dp-badge--ok {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.tm-dp-badge--live {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}

.tm-dp-name {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tm-dp-meta {
  margin: 0;
  color: var(--db-muted);
  line-height: 1.5;
}

.tm-dp-dist {
  color: #bae6fd;
}

.tm-dp-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-dp-vibe-chip {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
}

.tm-dp-actions {
  margin-top: auto;
}

.tm-dp-section {
  padding: 20px 22px;
  margin-bottom: 16px;
}

.tm-dp-section__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.tm-dp-bio {
  margin: 0;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.92);
}

.tm-dp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-dp-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--db-border);
  font-size: 0.88rem;
}

.tm-disc-card__actions .tm-db-btn,
.tm-disc-card__actions a.tm-db-btn {
  width: 100%;
  box-sizing: border-box;
}

.tm-profile-card > .tm-db-btn,
.tm-profile-card > a.tm-db-btn {
  width: calc(100% - 36px);
  margin: 6px 18px 22px;
  box-sizing: border-box;
}

.tm-profile-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.tm-profile-card__strength {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.tm-profile-card__featured {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.85), rgba(56, 189, 248, 0.85));
  color: #0f172a;
}

.tm-profile-card__spotlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tm-profile-card__spot {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #e9d5ff;
}

.tm-profile-card__spot--priority {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(34, 211, 238, 0.28));
  border-color: rgba(34, 211, 238, 0.45);
  color: #ecfeff;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}

.tm-disc-field--toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
}

.tm-disc-field--toggle input {
  width: auto;
  accent-color: #38bdf8;
}

/* —— Membership / pricing —— */
.tm-pricing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 64px;
  animation: tm-prem-fade-up 0.6s ease both;
}

@keyframes tm-prem-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tm-pricing__hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.tm-pricing__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--db-accent);
  margin-bottom: 12px;
}

.tm-pricing__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(115deg, #fff 0%, #e2e8f0 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-pricing__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--db-muted);
  line-height: 1.65;
}

.tm-pricing__legal {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 0.88rem;
  color: var(--db-muted);
  line-height: 1.6;
  text-align: center;
}

.tm-pricing__callout {
  margin: 22px auto 28px;
  max-width: 720px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tm-pricing__callout strong {
  color: #fff;
}

.tm-pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .tm-pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tm-pricing__grid {
    grid-template-columns: 1fr;
  }
}

.tm-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border-radius: 24px;
  border: 1px solid var(--db-border);
  background: var(--db-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--db-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tm-pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: var(--db-shadow-lg);
}

.tm-pricing-card--featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.5));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15), 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.tm-pricing-card__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--db-accent), var(--db-accent-2));
  color: #0f172a;
}

.tm-pricing-card__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--db-muted);
  margin-bottom: 10px;
}

.tm-pricing-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.tm-pricing-card__save {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 14px;
}

.tm-pricing-card__price-row {
  margin-bottom: 8px;
}

.tm-pricing-card__was {
  text-decoration: line-through;
  color: #64748b;
  font-size: 0.9rem;
  margin-right: 8px;
}

.tm-pricing-card__now {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.tm-pricing-card__gst {
  font-size: 0.82rem;
  color: var(--db-muted);
  margin-bottom: 16px;
}

.tm-pricing-card__gst strong {
  color: #e2e8f0;
}

.tm-pricing-card__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

.tm-pricing-card__features li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 0.86rem;
  color: rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-pricing-card__features li:last-child {
  border-bottom: none;
}

.tm-pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--db-accent);
  font-weight: 800;
}

.tm-pricing-card__cta {
  margin-top: auto;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(115deg, var(--db-accent), var(--db-accent-2));
  color: #0f172a;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.tm-pricing-card__cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.35);
}

.tm-pricing-card--featured .tm-pricing-card__cta {
  color: #fff;
  background: linear-gradient(115deg, #22d3ee, #6366f1, #a78bfa);
  box-shadow: 0 10px 36px rgba(99, 102, 241, 0.4);
}

.tm-page--pricing .tm-header {
  background: rgba(6, 8, 16, 0.82) !important;
  border-bottom-color: var(--db-border) !important;
}

.tm-page--pricing .tm-nav a:not(.tm-btn) {
  color: rgba(241, 245, 249, 0.75);
}

.tm-page--pricing .tm-nav__email {
  color: var(--db-muted);
}

/* ---------------------------------------------------------------------------
   Chat panel — light “island” inside dark dashboard / companion shell.
   Inherited shell text (e.g. .tm-companion-content) is too light on #fff.
   --------------------------------------------------------------------------- */
.tm-chat-layout {
  color: #0f172a;
  --tm-chat-border: #e2e8f0;
  --tm-chat-label: #334155;
  --tm-chat-muted: #475569;
  --tm-chat-subtle: #64748b;
}

.tm-chat-layout .tm-db-card__hint {
  color: var(--tm-chat-muted) !important;
}

.tm-chat-layout .tm-db-card__hint strong {
  color: #0f172a;
}

.tm-chat-conv {
  border-right: 1px solid var(--tm-chat-border);
}

.tm-chat-conv button {
  color: #0f172a;
}

.tm-chat-conv button .tm-db-card__hint {
  color: var(--tm-chat-subtle) !important;
}

.tm-chat-msgs {
  background: #e8edf3;
}

.tm-chat-compose {
  background: #f8fafc;
}

.tm-chat-compose label.tm-db-card__hint {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-chat-label) !important;
}

.tm-chat-layout .tm-db-input {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.tm-chat-layout .tm-db-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.tm-chat-layout .tm-db-input::placeholder {
  color: #94a3b8;
}

.tm-chat-layout .tm-db-btn--primary {
  color: #fff !important;
  background: linear-gradient(120deg, #0284c7, #0369a1);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
  min-height: 44px;
  padding-left: 22px;
  padding-right: 22px;
}

.tm-chat-layout .tm-db-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.tm-visitor-topbar__actions,
.tm-companion-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-notif-wrap {
  position: relative;
}

.tm-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--db-border);
  background: var(--db-surface);
  color: var(--db-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.tm-notif-bell:hover {
  border-color: var(--db-border-glow);
  box-shadow: 0 0 0 3px var(--db-ring);
}

.tm-notif-bell__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tm-notif-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f472b6, #a855f7);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  display: none;
}

.tm-notif-bell__badge.is-visible {
  display: inline-block;
}

.tm-notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 92vw);
  max-height: min(420px, 70vh);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--db-border);
  background: rgba(10, 13, 22, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--db-shadow-lg);
  z-index: 50;
}

.tm-notif-panel.is-hidden {
  display: none !important;
}

.tm-notif-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--db-border);
  font-weight: 700;
  font-size: 0.88rem;
}

.tm-notif-panel__list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.tm-notif-item {
  padding: 10px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tm-notif-item:hover {
  background: var(--db-surface-2);
  border-color: rgba(129, 140, 248, 0.25);
}

.tm-notif-item.is-unread {
  background: rgba(99, 102, 241, 0.12);
}

.tm-notif-item__title {
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 4px;
}

.tm-notif-item__body {
  margin: 0;
  font-size: 0.76rem;
  color: var(--db-muted);
  line-height: 1.45;
}

.tm-notif-item__time {
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--db-muted);
}

.tm-notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--db-muted);
  font-size: 0.85rem;
}

.tm-notif-bell--live {
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.45), 0 0 24px rgba(167, 139, 250, 0.35);
  animation: tm-notif-bell-pulse 2.2s ease-in-out infinite;
}

@keyframes tm-notif-bell-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.35), 0 0 18px rgba(167, 139, 250, 0.25);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35), 0 0 28px rgba(56, 189, 248, 0.3);
  }
}

.tm-notif-panel__foot {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--db-border);
  text-align: center;
}

.tm-notif-center-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--db-accent, #38bdf8);
  text-decoration: none;
}

.tm-notif-center-link:hover {
  text-decoration: underline;
}

.tm-notif-item {
  position: relative;
  padding-right: 28px;
}

.tm-notif-item__del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--db-border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--db-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.tm-notif-item__del:hover {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.45);
}

.tm-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 580;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.tm-notif-backdrop.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .tm-db-topbar,
  .tm-companion-topbar,
  .tm-visitor-topbar,
  .tm-companion-topbar__actions,
  .tm-visitor-topbar__actions,
  .tm-notif-wrap {
    overflow: visible;
  }

  .tm-notif-panel.is-portal {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    width: auto;
    max-width: none;
    max-height: min(520px, calc(100dvh - 96px));
    z-index: 600;
  }

  body.tm-notif-panel-open {
    overflow: hidden;
  }
}

.tm-toast-stack {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, 92vw);
  pointer-events: none;
}

@media (max-width: 959px) {
  .tm-toast-stack {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.tm-toast {
  pointer-events: none;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.tm-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.tm-toast.is-out {
  transform: translateX(120%);
  opacity: 0;
}

.tm-toast__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.tm-toast__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.tm-nc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-nc-group-title {
  margin: 18px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--db-muted);
}

.tm-nc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-nc-item {
  border-radius: 14px;
  border: 1px solid var(--db-border);
  background: var(--db-surface);
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tm-nc-item:hover {
  border-color: var(--db-border-glow);
}

.tm-nc-item.is-unread {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.06);
}

.tm-nc-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tm-nc-type {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tm-nc-del {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--db-border);
  background: transparent;
  color: var(--db-muted);
  cursor: pointer;
}

.tm-nc-del:hover {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.45);
}

.tm-nc-item__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.tm-nc-item__body {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--db-muted);
  line-height: 1.45;
}

.tm-nc-item__time {
  margin: 0;
  font-size: 0.72rem;
  color: var(--db-muted);
}

.tm-safety-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.tm-safety-modal-overlay.is-open {
  display: flex;
}

.tm-safety-modal {
  max-width: 420px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.95));
  color: #e2e8f0;
  padding: 22px 22px 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.tm-safety-modal h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tm-safety-modal p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.tm-safety-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tm-dp-safety-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tm-dp-safety-row .tm-db-btn {
  flex: 1;
  min-width: 120px;
}

/* —— Discover: guest browse + OTP modal + premium cards —— */
.tm-db-brand-text {
  font-family: var(--db-font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-decoration: none;
}

.tm-db-brand-text:hover {
  color: #a5b4fc;
}

.tm-disc-guest-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.92;
}

.tm-discover-topbar--premium {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(49, 46, 129, 0.55), rgba(14, 116, 144, 0.35));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tm-discover-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tm-discover-filters--premium {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.tm-disc-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.tm-disc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.55);
  border-color: rgba(129, 140, 248, 0.35);
}

.tm-dp-contact-hint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  max-width: 42ch;
}

.tm-dp-services {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.tm-dp-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.tm-dp-service input {
  margin: 0;
  accent-color: #38bdf8;
}

.tm-dp-service:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}

.tm-dp-service__name {
  flex: 1;
  font-weight: 600;
  color: #e2e8f0;
}

.tm-dp-service__price {
  font-weight: 700;
  color: #a5b4fc;
}

.tm-visitor-otp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 100vw;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.tm-visitor-otp-overlay.is-open {
  display: flex;
}

.tm-visitor-otp {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 26px 24px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.97), rgba(30, 27, 75, 0.92));
  color: #e2e8f0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
}

.tm-visitor-otp__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
}

.tm-visitor-otp__close:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.12);
}

.tm-visitor-otp__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tm-visitor-otp__lede {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

.tm-visitor-otp__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.tm-visitor-otp__input {
  width: 100%;
  margin-bottom: 12px;
}

.tm-visitor-otp__btn {
  width: 100%;
  margin-bottom: 8px;
}

.tm-visitor-otp__demo {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
}

.tm-visitor-otp__msg {
  margin-top: 12px;
  margin-bottom: 0;
}

.tm-visitor-otp__foot {
  margin: 14px 0 0;
  font-size: 0.84rem;
  text-align: center;
  color: #94a3b8;
}

.tm-visitor-otp__link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: #7dd3fc;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tm-visitor-otp__link:hover {
  color: #bae6fd;
}

.tm-otp-resend-row {
  margin: 0 0 12px;
  text-align: center;
}

.tm-otp-resend-btn {
  border: none;
  background: none;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a5b4fc;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tm-otp-resend-btn:hover:not(:disabled) {
  color: #c4b5fd;
}

.tm-otp-resend-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  text-decoration: none;
  color: #94a3b8;
}

.tm-visitor-otp .tm-vst-city-wrap {
  margin-bottom: 0;
}

.tm-visitor-otp__phase-code[hidden] {
  display: none !important;
}

.tm-visitor-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 100vw;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.tm-visitor-auth-overlay.is-open {
  display: flex;
}

.tm-visitor-auth {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 26px 24px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.97), rgba(30, 27, 75, 0.92));
  color: #e2e8f0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
}

.tm-visitor-auth__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
}

.tm-visitor-auth__close:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.12);
}

.tm-visitor-auth__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tm-visitor-auth__lede {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

.tm-visitor-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.tm-visitor-auth__btn {
  width: 100%;
  justify-content: center;
}

.tm-visitor-auth__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

.tm-visitor-auth__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.tm-visitor-auth__input {
  width: 100%;
  margin-bottom: 12px;
}

.tm-visitor-auth__foot {
  margin: 10px 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.tm-visitor-auth__foot a {
  color: #7dd3fc;
}

.tm-visitor-auth__msg {
  margin-top: 12px;
  margin-bottom: 0;
}

.tm-visitor-auth__phase[hidden] {
  display: none !important;
}

/* Keyboard open (installed app / mobile): hide bottom nav so the compose bar sits right above the keyboard */
body.tm-keyboard-open .tm-db-bottom-nav { display: none !important; }
body.tm-keyboard-open { --tm-bottom-nav-h: 0px; }

/* —— Discover SEO (breadcrumbs, city links, FAQ) —— */
.tm-disc-seo-breadcrumbs {
  margin: 0 0 14px;
}

.tm-disc-seo-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--db-muted);
}

.tm-disc-seo-breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  opacity: 0.55;
}

.tm-disc-seo-breadcrumbs a {
  color: #a5b4fc;
  text-decoration: none;
}

.tm-disc-seo-breadcrumbs a:hover {
  color: #e2e8f0;
}

.tm-disc-seo-intro,
.tm-disc-seo-cities,
.tm-disc-seo-faq,
.tm-disc-seo-guides {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
}

.tm-disc-seo-intro__text,
.tm-disc-seo-faq dd {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.tm-disc-seo-cities__title,
.tm-disc-seo-faq__title,
.tm-disc-seo-guides__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.tm-disc-seo-cities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-disc-seo-cities__list a {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(99, 102, 241, 0.1);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.tm-disc-seo-cities__list a:hover,
.tm-disc-seo-cities__list a[aria-current="page"] {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.2);
}

.tm-disc-seo-faq__list {
  margin: 0;
}

.tm-disc-seo-faq__list > div {
  margin-bottom: 12px;
}

.tm-disc-seo-faq dt {
  margin: 0 0 4px;
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9rem;
}

.tm-disc-seo-guides__text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.tm-disc-seo-guides__link {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.tm-disc-seo-guides__link:hover {
  color: #e2e8f0;
}

/* —— Discover layout: profiles first on mobile —— */
.tm-disc-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  grid-template-areas:
    "filters primary"
    "seo seo";
  gap: 18px 22px;
  align-items: start;
}

.tm-disc-mobile-tools {
  display: none;
}

.tm-disc-primary {
  grid-area: primary;
  min-width: 0;
}

.tm-discover-filters {
  grid-area: filters;
}

.tm-disc-seo-bottom {
  grid-area: seo;
}

.tm-disc-filter-backdrop {
  display: none;
}

.tm-disc-filters-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tm-disc-filters-sheet-sub {
  display: block;
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--db-muted);
}

.tm-disc-filters-close {
  display: none;
}

.tm-disc-seo-cities__scroll {
  overflow: visible;
}

.tm-disc-seo-collapsible {
  margin-bottom: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
}

.tm-disc-seo-collapsible > summary {
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
}

.tm-disc-seo-collapsible > summary::-webkit-details-marker {
  display: none;
}

.tm-disc-seo-collapsible > summary::after {
  content: "+";
  float: right;
  color: #94a3b8;
  font-weight: 800;
}

.tm-disc-seo-collapsible[open] > summary::after {
  content: "−";
}

.tm-disc-seo-collapsible .tm-disc-seo-faq,
.tm-disc-seo-collapsible .tm-disc-seo-guides {
  margin: 0;
  padding: 0 16px 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.tm-disc-seo-collapsible .tm-disc-seo-faq__title,
.tm-disc-seo-collapsible .tm-disc-seo-guides__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tm-disc-vibes-more {
  display: none;
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 961px) {
  .tm-disc-seo-collapsible {
    border: 0;
    background: transparent;
    margin-bottom: 18px;
  }

  .tm-disc-seo-collapsible > summary {
    display: none;
  }

  .tm-disc-seo-collapsible .tm-disc-seo-faq,
  .tm-disc-seo-collapsible .tm-disc-seo-guides {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.42);
  }

  .tm-disc-seo-collapsible .tm-disc-seo-faq__title,
  .tm-disc-seo-collapsible .tm-disc-seo-guides__title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .tm-discover-filters {
    display: block !important;
  }
}

@media (max-width: 960px) {
  body.tm-page--discover {
    background-attachment: scroll !important;
  }

  .tm-disc-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tm-discover-kicker {
    display: none;
  }

  .tm-disc-mobile-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 45;
    margin: -4px 0 2px;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.98) 70%, rgba(12, 16, 24, 0));
  }

  .tm-disc-mobile-tools__btn {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(99, 102, 241, 0.15);
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
  }

  .tm-disc-mobile-tools__hint {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--db-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tm-disc-primary {
    order: 2;
  }

  .tm-disc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tm-discover-filters {
    order: 1;
    display: none;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    max-height: none;
    margin: 0 0 10px;
    padding: 14px 14px 16px;
    border-radius: 18px !important;
    overflow: visible;
    transform: none;
    transition: none;
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
  }

  .tm-discover-filters.is-open {
    display: block;
    transform: none;
  }

  .tm-disc-filter-backdrop {
    display: none !important;
  }

  .tm-disc-filters-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
  }

  .tm-disc-filters-sheet-head .tm-discover-filters__title {
    margin: 0;
  }

  .tm-disc-filters-sheet-sub {
    display: block;
    margin: 0 0 14px;
    font-size: 0.82rem;
  }

  .tm-disc-filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--db-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .tm-discover-filters__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tm-disc-field--toggle {
    grid-column: span 1;
  }

  .tm-discover-vibes-block .tm-disc-vibes.is-collapsed .tm-disc-vibe:nth-child(n+9) {
    display: none;
  }

  .tm-disc-vibes-more {
    display: block;
  }

  .tm-disc-seo-bottom {
    order: 3;
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }

  .tm-disc-seo-intro {
    display: none;
  }

  .tm-disc-seo-breadcrumbs {
    margin-bottom: 10px;
  }

  .tm-disc-seo-cities {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .tm-disc-seo-cities__title {
    margin-bottom: 8px;
    font-size: 0.88rem;
  }

  .tm-disc-seo-cities__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding-bottom: 2px;
  }

  .tm-disc-seo-cities__list {
    flex-wrap: nowrap;
    width: max-content;
    padding: 0 4px 2px;
  }

  .tm-disc-seo-cities__list a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .tm-disc-seo-bottom .tm-meetup-disclaimer {
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 8px 0 0;
    color: #64748b;
  }

  .tm-profile-card:hover .tm-profile-card__media img {
    transform: none;
  }

  .tm-disc-card--featured {
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 8px 24px rgba(56, 189, 248, 0.1);
  }
}

body.tm-disc-filters-open {
  overflow: auto;
  touch-action: auto;
}

/* —— Mobile: full-width modals + prevent page zoom-out —— */
body.tm-page--discover,
body.tm-page--discover .tm-db-app,
body.tm-page--discover .tm-db-main,
body.tm-page--discover .tm-db-content,
body.tm-page--discover .tm-disc-layout {
  max-width: 100%;
  overflow-x: clip;
}

body.tm-modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 960px) {
  .tm-visitor-auth-overlay,
  .tm-visitor-otp-overlay {
    z-index: 10050;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(2, 6, 23, 0.9);
  }

  .tm-visitor-auth,
  .tm-visitor-otp {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 760px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .tm-visitor-auth__title,
  .tm-visitor-otp__title {
    font-size: 1.35rem;
  }

  .tm-visitor-auth__lede,
  .tm-visitor-otp__lede {
    font-size: 0.95rem;
  }

  .tm-visitor-auth__btn,
  .tm-visitor-otp__btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .tm-disc-seo-cities,
  .tm-disc-seo-cities__scroll {
    max-width: 100%;
    overflow: hidden;
  }

  .tm-disc-seo-cities__scroll {
    overflow-x: auto;
  }
}

.tm-db-topbar__title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

