:root {
  --bg: #fff8fc;
  --bg2: #fff1f7;
  --card: rgba(255, 255, 255, 0.82);
  --line: #f3d8e7;
  --text: #2d1b28;
  --muted: #816d79;
  --primary: #ff5f9a;
  --primary-2: #8e9cff;
  --danger: #e85c74;
  --success: #1c9a67;
  --warning: #ffbf4d;
  --shadow: 0 24px 60px rgba(255, 95, 154, 0.14);
  --surface-1: rgba(255, 255, 255, 0.96);
  --surface-2: rgba(255, 255, 255, 0.88);
  --surface-3: rgba(255, 255, 255, 0.74);
  --surface-soft: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,248,252,.84));
  --surface-gradient: radial-gradient(circle at top right, rgba(255,95,154,.18), rgba(255,255,255,.94) 35%), linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,244,249,.86));
  --surface-border: rgba(255, 255, 255, 0.94);
  --input-bg: rgba(255,255,255,.94);
  --nav-bg: rgba(255,255,255,.92);
  --nav-shadow: 0 25px 50px rgba(36,22,32,.12);
  --chip-active-bg: linear-gradient(135deg, rgba(255,95,154,.15), rgba(142,156,255,.16));
  --chip-active-border: rgba(255,95,154,.3);
  --message-self-bg: linear-gradient(135deg, #ffeff6, #ffe1ed);
  --message-other-bg: rgba(255,255,255,.94);
  --message-shell-bg: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,250,.92));
  --media-bg: #fff;
  --media-frame: rgba(243,216,231,.96);
  --theme-color-meta: #fff4f9;
  --overlay-dark: rgba(20, 16, 24, 0.72);
  --selection-bg: rgba(255, 95, 154, 0.22);
  --selection-text: #2d1b28;
  --focus-ring: 0 0 0 4px rgba(255,95,154,.14);
}

html[data-theme="dark"] {
  --bg: #120d17;
  --bg2: #1a1122;
  --card: rgba(26, 18, 35, 0.86);
  --line: rgba(255, 174, 214, 0.16);
  --text: #f7eaf3;
  --muted: #c7a9bb;
  --primary: #ff74ab;
  --primary-2: #b48fff;
  --danger: #ff7b9d;
  --success: #4bd39a;
  --warning: #ffd26d;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  --surface-1: rgba(31, 22, 41, 0.94);
  --surface-2: rgba(39, 28, 51, 0.9);
  --surface-3: rgba(48, 36, 63, 0.74);
  --surface-soft: radial-gradient(circle at top right, rgba(255,116,171,.12), transparent 34%), linear-gradient(180deg, rgba(34,24,45,.95), rgba(22,16,31,.94));
  --surface-gradient: radial-gradient(circle at top right, rgba(255,116,171,.18), rgba(29,22,40,.96) 42%), linear-gradient(180deg, rgba(36,25,48,.98), rgba(24,17,33,.98));
  --surface-border: rgba(255,255,255,.06);
  --input-bg: rgba(21, 16, 29, 0.94);
  --nav-bg: rgba(22, 16, 30, 0.94);
  --nav-shadow: 0 24px 55px rgba(0,0,0,.45);
  --chip-active-bg: linear-gradient(135deg, rgba(255,116,171,.24), rgba(180,143,255,.24));
  --chip-active-border: rgba(255,116,171,.32);
  --message-self-bg: linear-gradient(135deg, rgba(255,116,171,.28), rgba(180,143,255,.24));
  --message-other-bg: rgba(34, 24, 45, 0.96);
  --message-shell-bg: linear-gradient(180deg, rgba(24,17,33,.98), rgba(18,13,25,.94));
  --media-bg: #150f1c;
  --media-frame: rgba(255,255,255,.08);
  --theme-color-meta: #18101f;
  --overlay-dark: rgba(7, 6, 12, 0.82);
  --selection-bg: rgba(255, 116, 171, 0.28);
  --selection-text: #fff4fa;
  --focus-ring: 0 0 0 4px rgba(255,116,171,.18);
}

html,
body {
  background: radial-gradient(circle at top right, rgba(255, 175, 205, 0.24), transparent 28%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) !important;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(255, 116, 171, 0.16), transparent 26%),
    radial-gradient(circle at top left, rgba(180, 143, 255, 0.11), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) !important;
}

body,
.card,
.chip-link,
.upload-chip,
.ghost-btn,
input,
textarea,
select,
.lang-segment,
.theme-segment,
.bottom-nav,
.profile-card,
.chat-list-item,
.chat-box,
.modern-chat-box,
.chat-input-wrap,
.composer-icon-btn,
.icon-action-btn,
.empty-state,
.demo-box,
.swipe-card,
.swipe-fact-chip,
.swipe-interest-chip,
.swipe-copy-block,
.gallery-card,
.gallery-showcase .gallery-item,
.gallery-showcase .gallery-item-card,
.gallery-showcase > .gallery-photo-tile,
.telegram-auth-guard__card,
.city-autocomplete,
.ll-modal-card,
.chat-image-preview-close,
.theme-segment__item,
.lang-segment__item {
  transition:
    background-color .22s ease,
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

a,
.footer-note a,
.brand-lockup,
.chip-link,
.upload-chip,
.nav-item,
.theme-segment__item,
.lang-segment__item {
  color: inherit;
}

.card {
  background: var(--card) !important;
  border-color: var(--surface-border) !important;
  box-shadow: var(--shadow) !important;
}

.soft-card {
  background: var(--surface-soft) !important;
}

.gradient-card {
  background: var(--surface-gradient) !important;
}

.chip-link,
.upload-chip,
.ghost-btn,
input,
textarea,
select,
.profile-card,
.chat-list-item,
.empty-state,
.demo-box,
.chat-input-wrap,
.composer-icon-btn,
.icon-action-btn,
.city-autocomplete,
.city-autocomplete__item,
.message-attachment-file,
.message-attachment-audio,
.swipe-fact-chip,
.swipe-interest-chip,
.swipe-copy-block,
.ads-carousel--compact .ad-slide,
.gallery-card,
.gallery-showcase .gallery-item,
.gallery-showcase .gallery-item-card,
.gallery-showcase > .gallery-photo-tile,
.gallery-showcase > .gallery-item,
.mobile-bottom-nav,
.ll-modal-close,
.chat-image-preview-close {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

input,
textarea,
select,
.chat-input-wrap,
.ll-modal-textarea {
  background: var(--input-bg) !important;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(255,95,154,.24);
}

.danger-btn {
  background: linear-gradient(135deg, #ff8196, var(--danger)) !important;
  color: #fff !important;
}

.chip-link.primary,
.chip-link.active,
.nav-pill.active,
.nav-item.active,
.theme-segment__item.is-active,
.lang-segment__item.active {
  background: var(--chip-active-bg) !important;
  border-color: var(--chip-active-border) !important;
  color: #fff !important;
  box-shadow: var(--shadow) !important;
}

.muted,
.lead,
.message-meta,
.footer-note,
.feature-item p,
.gallery-item p,
.profile-card p,
.chat-list-item p,
.swipe-card__head p,
.chat-inline-status,
.swipe-copy-label,
.eyebrow {
  color: var(--muted) !important;
}

.bottom-nav {
  background: var(--nav-bg) !important;
  border-color: var(--surface-border) !important;
  box-shadow: var(--nav-shadow) !important;
}

.chat-box,
.modern-chat-box,
.swipe-card,
.swipe-copy-block,
.ad-slide,
.chat-image-preview-full,
.telegram-auth-guard__card,
.profile-main-photo.gallery-hero,
.avatar-hero.gallery-hero,
.gallery-showcase .gallery-item img,
.gallery-showcase .gallery-item-card img,
.gallery-showcase > .gallery-photo-tile img,
.gallery-showcase > .gallery-item img,
.gallery-card img,
.admin-media-preview,
.swipe-card__media,
.swipe-media-slide img,
.ad-slide__thumb,
.ad-slide__image {
  background: var(--message-shell-bg) !important;
  border-color: var(--media-frame) !important;
}

.chat-box,
.modern-chat-box {
  background: var(--message-shell-bg) !important;
}

.message-self {
  background: var(--message-self-bg) !important;
}

.message-other {
  background: var(--message-other-bg) !important;
}

.message-bubble {
  box-shadow: 0 12px 26px rgba(0,0,0,.12) !important;
}

.theme-segment,
.lang-segment {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
  border-radius: 999px;
  min-width: 124px;
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.brand-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-segment__item,
.lang-segment__item {
  border: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted) !important;
  background: transparent !important;
}

.theme-segment__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.theme-segment__item:focus-visible,
.lang-segment__item:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
}

.topbar,
.topbar-main,
.brand-stack {
  gap: 14px !important;
}

.brand-logo {
  box-shadow: 0 12px 26px rgba(255,95,154,.22) !important;
}

html[data-theme="dark"] .brand-logo {
  box-shadow: 0 14px 30px rgba(0,0,0,.34) !important;
}

.flash-success {
  background: rgba(28, 154, 103, 0.16) !important;
  color: #98ecc8;
}

.flash-info {
  background: rgba(84, 150, 255, 0.16) !important;
  color: #8dc1ff;
}

.flash-warning,
.status-open {
  background: rgba(255, 191, 77, 0.16) !important;
  color: #ffd88c !important;
}

.flash-danger {
  background: rgba(232, 92, 116, 0.16) !important;
  color: #ff9db1 !important;
}

.status-completed {
  background: rgba(28, 154, 103, 0.16) !important;
  color: #8eebc1 !important;
}

.inline-badge,
.nav-badge,
.preview-sos,
.brand-mark {
  box-shadow: 0 10px 24px rgba(255,95,154,.24) !important;
}

.theme-segment__item.is-active::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: .92;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .card,
html[data-theme="dark"] .swipe-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .gallery-showcase .gallery-item,
html[data-theme="dark"] .gallery-showcase .gallery-item-card,
html[data-theme="dark"] .gallery-showcase > .gallery-photo-tile,
html[data-theme="dark"] .gallery-showcase > .gallery-item,
html[data-theme="dark"] .telegram-auth-guard__card,
html[data-theme="dark"] .ll-modal-card {
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .ll-modal-backdrop,
html[data-theme="dark"] .telegram-auth-guard,
html[data-theme="dark"] .chat-image-preview-backdrop,
html[data-theme="dark"] .gallery-lightbox {
  background: var(--overlay-dark) !important;
}

html[data-theme="dark"] .ll-modal-card {
  background:
    radial-gradient(circle at top right, rgba(255,116,171,.16), transparent 28%),
    linear-gradient(180deg, rgba(34,24,45,.98), rgba(24,17,33,.98)) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .ll-modal-kicker {
  color: #ffb6d1 !important;
}

html[data-theme="dark"] .ll-modal-title,
html[data-theme="dark"] .chat-image-preview-close,
html[data-theme="dark"] .city-autocomplete__item,
html[data-theme="dark"] .swipe-fact-chip,
html[data-theme="dark"] .swipe-interest-chip {
  color: var(--text) !important;
}

html[data-theme="dark"] .swipe-card {
  box-shadow: 0 22px 60px rgba(0,0,0,.34) !important;
}

html[data-theme="dark"] .swipe-media-dot {
  background: rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .swipe-media-dot.is-active {
  background: rgba(255,255,255,.9) !important;
}

html[data-theme="dark"] .swipe-action--dislike {
  background: rgba(31,22,41,.98) !important;
  color: #ff8db4 !important;
}

html[data-theme="dark"] .swipe-action--letter {
  background: linear-gradient(180deg, rgba(57,39,78,.98), rgba(39,27,56,.98)) !important;
  color: #ffc5dd !important;
}

html[data-theme="dark"] .swipe-action--like {
  background: linear-gradient(180deg, #ff81b4, #ff5f9a) !important;
}

html[data-theme="dark"] .gallery-showcase .gallery-item::before,
html[data-theme="dark"] .gallery-showcase .gallery-item-card::before,
html[data-theme="dark"] .gallery-showcase > .gallery-photo-tile::before,
html[data-theme="dark"] .gallery-showcase > .gallery-item::before,
html[data-theme="dark"] .gallery-card::before {
  border-color: rgba(255,255,255,.06) !important;
}

html[data-theme="dark"] .gallery-showcase .gallery-item img,
html[data-theme="dark"] .gallery-showcase .gallery-item-card img,
html[data-theme="dark"] .gallery-showcase > .gallery-photo-tile img,
html[data-theme="dark"] .gallery-showcase > .gallery-item img,
html[data-theme="dark"] .gallery-card img,
html[data-theme="dark"] .admin-media-preview,
html[data-theme="dark"] .profile-main-photo.gallery-hero,
html[data-theme="dark"] .avatar-hero.gallery-hero,
html[data-theme="dark"] .swipe-media-slide img,
html[data-theme="dark"] .ad-slide__image,
html[data-theme="dark"] .ad-slide__thumb,
html[data-theme="dark"] .chat-image-preview-full {
  background: var(--media-bg) !important;
}

html[data-theme="dark"] .ad-slide__thumb,
html[data-theme="dark"] .ad-slide__image,
html[data-theme="dark"] .ads-carousel img,
html[data-theme="dark"] .ad-card img,
html[data-theme="dark"] .ad-item img {
  background: rgba(255,255,255,.02) !important;
}

html[data-theme="dark"] .phone-frame {
  background: #100b15 !important;
  border-color: #2b1930 !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] .phone-header {
  background: #180f20 !important;
  color: #f7eaf3 !important;
}

html[data-theme="dark"] .preview-body {
  background: linear-gradient(180deg, #180f20, #22152b) !important;
}

html[data-theme="dark"] .preview-option,
html[data-theme="dark"] .preview-option span,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .mini-stats > div,
html[data-theme="dark"] .snapshot-card,
html[data-theme="dark"] .feature-item,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .compact-card {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html[data-theme="dark"] .footer-note {
  color: rgba(247, 234, 243, 0.68) !important;
}

html[data-theme="dark"] .footer-note a:hover,
html[data-theme="dark"] a:hover {
  color: #ffd0e5;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255,95,154,.24);
  border-radius: 999px;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
}

@media (max-width: 900px) {
  .brand-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-controls {
    margin-left: 56px;
  }

  .theme-segment,
  .lang-segment {
    min-width: 104px;
  }

  .theme-segment__item,
  .lang-segment__item {
    min-height: 38px;
    padding-inline: 12px;
    font-size: .92rem;
  }
}

@media (max-width: 480px) {
  .brand-controls {
    margin-left: 52px;
    gap: 8px;
  }

  .theme-segment,
  .lang-segment {
    width: calc(50% - 4px);
    min-width: 0;
  }
}


/* === COMPLETE DARK THEME HARDENING PATCH === */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.page-chat-chat_list,
html[data-theme="dark"] body.page-chat-chat_detail,
html[data-theme="dark"] body.page-anonymous-anonymous_chat_page {
  background:
    radial-gradient(circle at top right, rgba(255, 116, 171, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(180, 143, 255, 0.10), transparent 20%),
    linear-gradient(180deg, #120d17 0%, #1a1122 100%) !important;
}

html[data-theme="dark"] main,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .m-chat-page,
html[data-theme="dark"] .m-chat-room,
html[data-theme="dark"] .m-chat-room__box,
html[data-theme="dark"] .anon-room__box,
html[data-theme="dark"] .swipe-stage,
html[data-theme="dark"] .connections-shell,
html[data-theme="dark"] .discovery-shell,
html[data-theme="dark"] .auth-layout {
  background: transparent !important;
}

html[data-theme="dark"] body.page-chat-chat_list .mobile-bottom-nav,
html[data-theme="dark"] body.page-chat-chat_detail .mobile-bottom-nav,
html[data-theme="dark"] body.page-anonymous-anonymous_chat_page .mobile-bottom-nav,
html[data-theme="dark"] body.page-chat-chat_list .m-chat-page__header,
html[data-theme="dark"] .m-chat-room__header,
html[data-theme="dark"] .m-chat-page__filter-menu,
html[data-theme="dark"] .chat-sheet__preview,
html[data-theme="dark"] .chat-sheet__actions,
html[data-theme="dark"] .filter-sheet__panel,
html[data-theme="dark"] .connections-tabs,
html[data-theme="dark"] .connections-hero,
html[data-theme="dark"] .connections-panel,
html[data-theme="dark"] .connections-letters,
html[data-theme="dark"] .connections-card,
html[data-theme="dark"] .connections-empty,
html[data-theme="dark"] .people-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .profile-showcase,
html[data-theme="dark"] .profile-showcase__bio-card,
html[data-theme="dark"] .profile-showcase__interest,
html[data-theme="dark"] .profile-showcase__pill,
html[data-theme="dark"] .profile-showcase__badge,
html[data-theme="dark"] .discovery-active-pill,
html[data-theme="dark"] .anon-room__empty-card,
html[data-theme="dark"] .anon-room__action,
html[data-theme="dark"] .city-autocomplete,
html[data-theme="dark"] .city-autocomplete__item,
html[data-theme="dark"] .chat-pending-chip,
html[data-theme="dark"] .chat-pending-chip--voice,
html[data-theme="dark"] .chat-sheet__chip,
html[data-theme="dark"] .connections-summary-pill,
html[data-theme="dark"] .connections-tab,
html[data-theme="dark"] .connections-tab__count,
html[data-theme="dark"] .people-card__icon-btn,
html[data-theme="dark"] .filter-toggle,
html[data-theme="dark"] .filter-segment,
html[data-theme="dark"] .m-chat-row,
html[data-theme="dark"] .m-chat-room__input-wrap,
html[data-theme="dark"] .m-chat-room__send,
html[data-theme="dark"] .m-chat-room__plus,
html[data-theme="dark"] .m-chat-room__voice,
html[data-theme="dark"] .m-chat-room__back,
html[data-theme="dark"] .m-chat-room__menu,
html[data-theme="dark"] .m-chat-row__menu,
html[data-theme="dark"] .m-chat-page__filter-btn,
html[data-theme="dark"] .discovery-topbar__filter-btn,
html[data-theme="dark"] .m-chat-page__ghost,
html[data-theme="dark"] .chat-sheet__action,
html[data-theme="dark"] .chat-limit-warning,
html[data-theme="dark"] .filter-sheet__field input[type="text"],
html[data-theme="dark"] .filter-sheet__field input[type="search"],
html[data-theme="dark"] .filter-sheet__field input[type="number"],
html[data-theme="dark"] .filter-sheet__field select,
html[data-theme="dark"] .filter-sheet__field .js-city-autocomplete {
  background: rgba(31, 22, 41, 0.96) !important;
  color: var(--text) !important;
  border-color: rgba(255, 174, 214, 0.16) !important;
}

html[data-theme="dark"] .connections-hero,
html[data-theme="dark"] .connections-panel,
html[data-theme="dark"] .connections-letters,
html[data-theme="dark"] .connections-card,
html[data-theme="dark"] .people-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .profile-showcase,
html[data-theme="dark"] .profile-showcase__bio-card,
html[data-theme="dark"] .profile-showcase__interest,
html[data-theme="dark"] .profile-showcase__pill,
html[data-theme="dark"] .profile-showcase__badge,
html[data-theme="dark"] .connections-empty,
html[data-theme="dark"] .chat-sheet__preview,
html[data-theme="dark"] .chat-sheet__actions,
html[data-theme="dark"] .filter-sheet__panel {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] .connections-hero,
html[data-theme="dark"] .connections-panel,
html[data-theme="dark"] .connections-letters {
  background:
    radial-gradient(circle at top right, rgba(255,116,171,.14), transparent 28%),
    linear-gradient(180deg, rgba(34,24,45,.98), rgba(24,17,33,.98)) !important;
}

html[data-theme="dark"] .connections-tabs {
  background: rgba(25, 18, 33, 0.88) !important;
}

html[data-theme="dark"] .connections-tab,
html[data-theme="dark"] .m-chat-page__tab,
html[data-theme="dark"] .m-chat-page__filter-link,
html[data-theme="dark"] .discovery-active-pill,
html[data-theme="dark"] .connections-summary-pill,
html[data-theme="dark"] .connections-tab__count,
html[data-theme="dark"] .chat-sheet__chip,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .profile-showcase__pill,
html[data-theme="dark"] .profile-showcase__badge,
html[data-theme="dark"] .people-card__tags span {
  background: rgba(44, 32, 58, 0.96) !important;
  color: var(--text) !important;
  border-color: rgba(255, 174, 214, 0.16) !important;
}

html[data-theme="dark"] .m-chat-page__tab.is-active::after,
html[data-theme="dark"] .connections-tab.is-active,
html[data-theme="dark"] .filter-toggle:hover,
html[data-theme="dark"] .filter-toggle.is-active,
html[data-theme="dark"] .filter-toggle input:checked + span,
html[data-theme="dark"] .filter-segment.is-active,
html[data-theme="dark"] .m-chat-page__filter-link.is-active,
html[data-theme="dark"] .people-card__icon-btn.is-like,
html[data-theme="dark"] .theme-segment__item.is-active,
html[data-theme="dark"] .lang-segment__item.active,
html[data-theme="dark"] .nav-pill.active,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .chip-link.active,
html[data-theme="dark"] .chip-link.primary,
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .danger-btn,
html[data-theme="dark"] .m-chat-room__plus,
html[data-theme="dark"] .swipe-action--like,
html[data-theme="dark"] .connections-card__badge,
html[data-theme="dark"] .inline-badge,
html[data-theme="dark"] .nav-badge,
html[data-theme="dark"] .m-chat-row__badge,
html[data-theme="dark"] .connections-tab__count {
  color: #1b1018 !important;
}

html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .danger-btn,
html[data-theme="dark"] .chip-link.primary,
html[data-theme="dark"] .chip-link.active,
html[data-theme="dark"] .nav-pill.active,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .theme-segment__item.is-active,
html[data-theme="dark"] .lang-segment__item.active,
html[data-theme="dark"] .connections-tab.is-active,
html[data-theme="dark"] .filter-toggle:hover,
html[data-theme="dark"] .filter-toggle.is-active,
html[data-theme="dark"] .filter-toggle input:checked + span,
html[data-theme="dark"] .filter-segment.is-active,
html[data-theme="dark"] .people-card__icon-btn.is-like,
html[data-theme="dark"] .m-chat-room__plus,
html[data-theme="dark"] .swipe-action--like {
  background: linear-gradient(135deg, #ff8fbe, #ff6fae) !important;
  border-color: rgba(255, 180, 214, 0.54) !important;
  box-shadow: 0 14px 34px rgba(255, 95, 154, 0.28) !important;
}

html[data-theme="dark"] .m-chat-page__tab.is-active::after {
  background: #ff8fbe !important;
}

html[data-theme="dark"] .m-chat-room__send,
html[data-theme="dark"] .anon-room__action,
html[data-theme="dark"] .discovery-topbar__filter-btn,
html[data-theme="dark"] .m-chat-page__filter-btn,
html[data-theme="dark"] .m-chat-room__back,
html[data-theme="dark"] .m-chat-room__menu,
html[data-theme="dark"] .m-chat-row__menu,
html[data-theme="dark"] .m-chat-room__voice,
html[data-theme="dark"] .people-card__icon-btn.is-ghost,
html[data-theme="dark"] .ghost-btn,
html[data-theme="dark"] .chat-sheet__action,
html[data-theme="dark"] .filter-sheet__close {
  background: rgba(44, 32, 58, 0.96) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255, 174, 214, 0.16) !important;
}

html[data-theme="dark"] .m-chat-room__send {
  background: linear-gradient(135deg, #ff8fbe, #ff6fae) !important;
}

html[data-theme="dark"] .message-self {
  background: linear-gradient(135deg, #ff98c4, #ff74b3) !important;
  color: #1b1018 !important;
}

html[data-theme="dark"] .message-self .message-meta,
html[data-theme="dark"] .message-self .message-meta__ticks {
  color: rgba(27, 16, 24, 0.62) !important;
}

html[data-theme="dark"] .message-other {
  background: rgba(37, 27, 49, 0.96) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .message-other .message-meta,
html[data-theme="dark"] .message-other .message-meta__ticks,
html[data-theme="dark"] .message-meta {
  color: rgba(247, 234, 243, 0.56) !important;
}

html[data-theme="dark"] .m-chat-row__name,
html[data-theme="dark"] .m-chat-room__person-top strong,
html[data-theme="dark"] .chat-sheet__headline strong,
html[data-theme="dark"] .m-chat-page__title,
html[data-theme="dark"] .connections-hero h2,
html[data-theme="dark"] .connections-hero h3,
html[data-theme="dark"] .connections-panel__head h3,
html[data-theme="dark"] .people-card__name,
html[data-theme="dark"] .profile-showcase__title,
html[data-theme="dark"] .profile-showcase__card-label,
html[data-theme="dark"] .filter-sheet__head h3,
html[data-theme="dark"] .anon-room__empty-card h3,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] label {
  color: var(--text) !important;
}

html[data-theme="dark"] .m-chat-row__text,
html[data-theme="dark"] .m-chat-row__sub,
html[data-theme="dark"] .m-chat-room__person-status,
html[data-theme="dark"] .chat-sheet__subline,
html[data-theme="dark"] .connections-panel__head p,
html[data-theme="dark"] .connections-hero__eyebrow,
html[data-theme="dark"] .profile-showcase__eyebrow,
html[data-theme="dark"] .people-card__meta,
html[data-theme="dark"] .discovery-topbar__center p,
html[data-theme="dark"] .anon-room__empty-card p,
html[data-theme="dark"] .filter-sheet__field > span,
html[data-theme="dark"] .filter-sheet__range-head span,
html[data-theme="dark"] .filter-sheet__range-head strong,
html[data-theme="dark"] .chat-inline-status,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .lead,
html[data-theme="dark"] p {
  color: var(--muted) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .m-chat-room__input-wrap textarea,
html[data-theme="dark"] .anon-room__input-wrap textarea {
  background: transparent !important;
  color: var(--text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] select::placeholder,
html[data-theme="dark"] .m-chat-room__input-wrap textarea::placeholder,
html[data-theme="dark"] .anon-room__input-wrap textarea::placeholder {
  color: rgba(199, 169, 187, 0.76) !important;
}

html[data-theme="dark"] .m-chat-row__online,
html[data-theme="dark"] .chat-sheet__online,
html[data-theme="dark"] .people-card__online {
  border-color: #211626 !important;
}

html[data-theme="dark"] .connections-card__media,
html[data-theme="dark"] .people-card__media,
html[data-theme="dark"] .swipe-card__media,
html[data-theme="dark"] .chat-image-preview-full,
html[data-theme="dark"] .gallery-item img,
html[data-theme="dark"] .connections-card__media img,
html[data-theme="dark"] .people-card__media img {
  background: #150f1c !important;
}

html[data-theme="dark"] .connections-card__gradient,
html[data-theme="dark"] .people-card__gradient {
  background: linear-gradient(180deg, rgba(16,12,15,0), rgba(12,8,16,.66)) !important;
}

html[data-theme="dark"] .chat-sheet__backdrop,
html[data-theme="dark"] .filter-sheet__backdrop {
  background: rgba(7, 6, 12, 0.82) !important;
}

html[data-theme="dark"] .chat-sheet__action + .chat-sheet__action {
  border-top-color: rgba(255, 174, 214, 0.12) !important;
}

html[data-theme="dark"] .chat-pending-chip__remove {
  background: rgba(255,255,255,.08) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .filter-segment,
html[data-theme="dark"] .filter-toggle {
  border-color: rgba(255, 174, 214, 0.18) !important;
}

html[data-theme="dark"] .filter-segment.is-active {
  color: #1b1018 !important;
}

html[data-theme="dark"] .chat-sheet__action--danger,
html[data-theme="dark"] .chat-sheet__action--danger .chat-sheet__action-icon,
html[data-theme="dark"] .anon-room__action--danger {
  color: #ff9fbf !important;
}

html[data-theme="dark"] .mobile-bottom-nav .nav-item,
html[data-theme="dark"] .bottom-nav .nav-item {
  color: var(--muted) !important;
}

html[data-theme="dark"] .mobile-bottom-nav .nav-item.active,
html[data-theme="dark"] .bottom-nav .nav-item.active {
  color: #1b1018 !important;
}

@media (max-width: 900px) {
  .topbar-main {
    align-items: stretch !important;
  }

  .brand-stack {
    width: 100%;
    align-items: flex-start !important;
  }

  .brand-controls {
    width: 100%;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  .top-actions-grid {
    width: 100%;
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  .lang-segment,
  .theme-segment {
    min-width: 0 !important;
    flex: 1 1 0;
    width: auto !important;
    margin-left: 0 !important;
  }

  .brand-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin-left: 0 !important;
  }

  .top-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .brand-controls {
    grid-template-columns: 1fr 1fr;
    margin-left: 0 !important;
  }

  .theme-segment__item,
  .lang-segment__item {
    padding-inline: 10px !important;
    font-size: .88rem !important;
  }
}


/* === PROFILE DARK PINK READABILITY PATCH === */
html[data-theme="dark"] .profile-dashboard,
html[data-theme="dark"] .profile-showcase,
html[data-theme="dark"] .profile-summary-card--profile,
html[data-theme="dark"] .profile-gallery-card--profile,
html[data-theme="dark"] body.page-main-my_profile .card,
html[data-theme="dark"] body.page-main-edit_profile .card,
html[data-theme="dark"] body.page-main-profile_setup .card {
  color: #f8bfd5 !important;
}

html[data-theme="dark"] .profile-dashboard-hero,
html[data-theme="dark"] .profile-showcase,
html[data-theme="dark"] .profile-summary-card--profile,
html[data-theme="dark"] .profile-gallery-card--profile,
html[data-theme="dark"] body.page-main-edit_profile .card,
html[data-theme="dark"] body.page-main-profile_setup .card {
  background:
    radial-gradient(circle at top right, rgba(255, 117, 171, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(206, 86, 141, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(42, 24, 38, 0.98), rgba(28, 16, 28, 0.98)) !important;
  border-color: rgba(255, 164, 206, 0.16) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] .profile-dashboard-hero__glow--one {
  background: rgba(255, 110, 176, 0.22) !important;
}

html[data-theme="dark"] .profile-dashboard-hero__glow--two {
  background: rgba(199, 83, 143, 0.14) !important;
}

html[data-theme="dark"] .profile-dashboard-title,
html[data-theme="dark"] .profile-showcase__title,
html[data-theme="dark"] body.page-main-edit_profile h2,
html[data-theme="dark"] body.page-main-profile_setup h2,
html[data-theme="dark"] body.page-main-my_profile h3,
html[data-theme="dark"] body.page-main-edit_profile h3,
html[data-theme="dark"] body.page-main-profile_setup h3,
html[data-theme="dark"] body.page-main-my_profile strong,
html[data-theme="dark"] body.page-main-edit_profile strong,
html[data-theme="dark"] body.page-main-profile_setup strong,
html[data-theme="dark"] body.page-main-my_profile label,
html[data-theme="dark"] body.page-main-edit_profile label,
html[data-theme="dark"] body.page-main-profile_setup label {
  color: #ffc2d9 !important;
}

html[data-theme="dark"] .profile-dashboard-kicker,
html[data-theme="dark"] .profile-dashboard-section-head__eyebrow,
html[data-theme="dark"] .profile-showcase__eyebrow,
html[data-theme="dark"] .profile-dashboard-note__label,
html[data-theme="dark"] .profile-showcase__card-label {
  color: #ff95bf !important;
}

html[data-theme="dark"] .profile-dashboard-note,
html[data-theme="dark"] .profile-showcase__bio-card,
html[data-theme="dark"] .profile-dashboard-side__stat,
html[data-theme="dark"] .profile-summary-grid__item,
html[data-theme="dark"] .profile-dashboard-mini-pill,
html[data-theme="dark"] .profile-dashboard-status,
html[data-theme="dark"] .profile-dashboard-tag,
html[data-theme="dark"] .profile-showcase__badge,
html[data-theme="dark"] .profile-showcase__pill,
html[data-theme="dark"] .profile-showcase__interest {
  background:
    linear-gradient(180deg, rgba(64, 34, 54, 0.98), rgba(43, 23, 37, 0.98)) !important;
  border-color: rgba(255, 172, 211, 0.16) !important;
  color: #ffbdd6 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] .profile-dashboard-note p,
html[data-theme="dark"] .profile-showcase__bio-card p,
html[data-theme="dark"] .profile-dashboard-copy p,
html[data-theme="dark"] .profile-showcase__content p,
html[data-theme="dark"] .profile-dashboard-side__stat span,
html[data-theme="dark"] .profile-summary-grid__item small,
html[data-theme="dark"] body.page-main-my_profile p,
html[data-theme="dark"] body.page-main-edit_profile p,
html[data-theme="dark"] body.page-main-profile_setup p,
html[data-theme="dark"] body.page-main-my_profile .muted,
html[data-theme="dark"] body.page-main-edit_profile .muted,
html[data-theme="dark"] body.page-main-profile_setup .muted {
  color: #e9a8c4 !important;
}

html[data-theme="dark"] .profile-summary-grid__icon {
  background: linear-gradient(180deg, rgba(85, 44, 69, 0.98), rgba(58, 30, 47, 0.98)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 172, 211, 0.18) !important;
  color: #ffb7d1 !important;
}

html[data-theme="dark"] .profile-gallery-card__item,
html[data-theme="dark"] .gallery-showcase .profile-gallery-card__item,
html[data-theme="dark"] body.page-main-my_profile .gallery-item,
html[data-theme="dark"] body.page-main-my_profile .gallery-item-card,
html[data-theme="dark"] body.page-main-edit_profile .gallery-item,
html[data-theme="dark"] body.page-main-edit_profile .gallery-item-card {
  background: linear-gradient(180deg, rgba(53, 28, 45, 0.98), rgba(34, 18, 29, 0.98)) !important;
  border-color: rgba(255, 172, 211, 0.14) !important;
}

html[data-theme="dark"] body.page-main-edit_profile input,
html[data-theme="dark"] body.page-main-edit_profile textarea,
html[data-theme="dark"] body.page-main-edit_profile select,
html[data-theme="dark"] body.page-main-profile_setup input,
html[data-theme="dark"] body.page-main-profile_setup textarea,
html[data-theme="dark"] body.page-main-profile_setup select,
html[data-theme="dark"] .profile-dashboard input,
html[data-theme="dark"] .profile-dashboard textarea,
html[data-theme="dark"] .profile-dashboard select,
html[data-theme="dark"] .profile-showcase input,
html[data-theme="dark"] .profile-showcase textarea,
html[data-theme="dark"] .profile-showcase select {
  background: linear-gradient(180deg, rgba(54, 29, 46, 0.98), rgba(38, 20, 33, 0.98)) !important;
  border-color: rgba(255, 172, 211, 0.16) !important;
  color: #ffc0d8 !important;
}

html[data-theme="dark"] body.page-main-edit_profile input::placeholder,
html[data-theme="dark"] body.page-main-edit_profile textarea::placeholder,
html[data-theme="dark"] body.page-main-profile_setup input::placeholder,
html[data-theme="dark"] body.page-main-profile_setup textarea::placeholder {
  color: rgba(255, 177, 209, 0.72) !important;
}

html[data-theme="dark"] body.page-main-edit_profile option,
html[data-theme="dark"] body.page-main-profile_setup option {
  background: #311b29 !important;
  color: #ffc0d8 !important;
}

html[data-theme="dark"] body.page-main-edit_profile .primary-btn,
html[data-theme="dark"] body.page-main-profile_setup .primary-btn,
html[data-theme="dark"] .profile-dashboard-action.primary-btn,
html[data-theme="dark"] .action-wide-btn.primary-btn {
  background: linear-gradient(135deg, #ff9fc6, #ff7db4) !important;
  color: #30131f !important;
  border-color: rgba(255, 211, 227, 0.34) !important;
}

html[data-theme="dark"] body.page-main-edit_profile .ghost-btn,
html[data-theme="dark"] body.page-main-profile_setup .ghost-btn,
html[data-theme="dark"] .profile-dashboard-action.ghost-btn,
html[data-theme="dark"] .action-wide-btn.ghost-btn,
html[data-theme="dark"] .icon-action-btn {
  background: linear-gradient(180deg, rgba(74, 39, 60, 0.98), rgba(50, 26, 42, 0.98)) !important;
  border-color: rgba(255, 172, 211, 0.16) !important;
  color: #ffbdd6 !important;
}

html[data-theme="dark"] .icon-action-btn.active-like,
html[data-theme="dark"] .icon-action-btn.active-dislike,
html[data-theme="dark"] .ghost-btn.active-like,
html[data-theme="dark"] .ghost-btn.active-dislike {
  background: linear-gradient(135deg, #ff9fc6, #ff7db4) !important;
  color: #30131f !important;
}


/* MARCH 2026 SWIPE SCROLL DARK THEME PATCH */
html[data-theme="dark"] .swipe-card__scroll::-webkit-scrollbar-thumb {
  background: rgba(255,129,180,.36) !important;
}

html[data-theme="dark"] .swipe-card__footer .muted {
  color: rgba(255,232,242,.82) !important;
}
