:root {
  /* Sweetty brand kit */
  --sweet-pink: #ff6b9d;
  --warm-peach: #ffb088;
  --romantic-red: #e63956;
  --charcoal: #2d2d2d;
  --soft-white: #fff9f7;

  --rose-50: #fff6f3;
  --rose-100: #ffe8e1;
  --rose-200: #ffd4c8;
  --rose-300: #ffb899;
  --rose-400: #ff8fab;
  --rose-500: #ff6b9d;
  --rose-600: #e63956;
  --rose-700: #c42d48;
  --rose-800: #a02438;

  --gradient: linear-gradient(145deg, var(--soft-white) 0%, #ffffff 48%, #fff0ea 100%);
  --gradient-brand: linear-gradient(135deg, var(--sweet-pink) 0%, var(--warm-peach) 100%);
  --gradient-hero: linear-gradient(160deg, var(--warm-peach) 0%, var(--romantic-red) 100%);
  --card-shadow: 0 10px 40px rgba(230, 57, 86, 0.1);
  --btn-shadow: 0 4px 20px rgba(230, 57, 86, 0.22);
  --bs-link-color: #e63956;
  --bs-link-hover-color: #c42d48;
  --bs-link-decoration: none;
  --bs-link-hover-decoration: underline;
  --bs-primary: #e63956;
  --bs-primary-rgb: 230, 57, 86;
  --bs-form-check-input-checked-bg-color: #e63956;
  --bs-form-check-input-checked-border-color: #e63956;
  --bs-form-check-input-focus-border-color: #ff8fab;
  --bs-form-check-input-focus-box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.2);
  --bs-body-font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* Custom scrollbar — only on the page, not every nested block */
html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--rose-400) var(--rose-50);
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--rose-50);
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rose-400), var(--rose-600));
  border-radius: 10px;
  border: 2px solid var(--rose-50);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--rose-500), var(--rose-700));
}

html::-webkit-scrollbar-corner {
  background: var(--rose-50);
}

body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gradient);
  color: var(--charcoal);
}

body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  max-width: 100%;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-main {
    padding-bottom: 3.5rem;
  }
}

.bg-premium {
  background: var(--gradient);
  background-attachment: fixed;
}

/* ——— Global links ——— */
.site-body a:not(.btn):not(.nav-pill-link):not(.account-tab):not(.navbar-brand):not(.brand-mark):not(.anketa-act-btn):not(.city-list-chip):not(.city-chip) {
  color: var(--rose-600);
  text-decoration: none;
}

.site-body a:not(.btn):not(.nav-pill-link):not(.account-tab):not(.navbar-brand):not(.brand-mark):not(.anketa-act-btn):not(.city-list-chip):not(.city-chip):hover {
  color: var(--rose-700);
  text-decoration: underline;
}

.site-body a:not(.btn):not(.nav-pill-link):not(.account-tab):not(.navbar-brand):not(.brand-mark):not(.anketa-act-btn):not(.city-list-chip):not(.city-chip):visited {
  color: var(--rose-700);
}

.site-body a:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.text-primary {
  color: var(--rose-600) !important;
}

.text-rose {
  color: var(--rose-600) !important;
}

a.text-primary:hover,
a.text-primary:focus,
a.text-rose:hover,
a.text-rose:focus {
  color: var(--rose-700) !important;
}

/* ——— Header & Navbar ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.4rem 0;
  background: linear-gradient(180deg, rgba(255, 249, 247, 0.97) 0%, rgba(255, 249, 247, 0.9) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.12);
  box-shadow: 0 8px 32px rgba(230, 57, 86, 0.05);
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
}

.navbar-heart {
  background: transparent !important;
  padding: 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (min-width: 992px) {
  .nav-shell {
    flex-wrap: nowrap;
  }

  .navbar-heart .navbar-collapse {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
  }

  .nav-pills-custom {
    flex-wrap: nowrap;
    min-width: 0;
  }
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  margin-right: 1rem;
  overflow: visible;
}

.brand-mark:hover { opacity: 0.92; }

.brand-logo {
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.25s ease;
}

.brand-logo-sm {
  width: 36px;
  height: 36px;
}

.brand-mark:hover .brand-logo {
  transform: scale(1.05) rotate(-3deg);
}

.brand-icon[hidden] {
  display: none !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  overflow: visible;
  padding: 0;
}

.brand-name {
  display: block;
  overflow: visible;
  line-height: 1;
  padding: 0;
  font-size: 1.42rem;
}

.brand-name-glyph {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: inherit;
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding: 0 0 0.18em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  overflow: visible;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.brand-name-inline {
  display: inline-block;
  font-size: 1.35rem;
  vertical-align: baseline;
}

.brand-name-footer {
  display: block;
  font-size: 1.15rem;
}

.premium-hero-title {
  line-height: 1.55;
  padding-bottom: 0.4rem;
  overflow: visible;
}

.brand-mark .brand-name-glyph,
.brand-mark:visited .brand-name-glyph {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-top: -0.42rem;
  line-height: 1.2;
}

.navbar-brand { padding: 0; margin: 0; }

.nav-toggler {
  border: none;
  background: var(--rose-50);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 0 0 1px var(--rose-100);
}

.nav-toggler:focus { box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.25); }

.nav-toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rose-600);
  border-radius: 2px;
}

.nav-pills-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  margin: 0.5rem 0;
}

@media (min-width: 992px) {
  .nav-pills-custom {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--rose-100);
    border-radius: 999px;
    padding: 0.3rem;
    margin: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-pill-link:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}

.nav-pill-link.active {
  border: none;
  background: var(--gradient-brand);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(230, 57, 86, 0.24);
}

.nav-pill-link.active i { color: inherit; }

.nav-pill-link.position-relative,
.nav-pill-icon {
  overflow: visible;
}

@media (min-width: 992px) {
  .nav-pill-icon > span:not(.notif-badge):not(.badge-premium) { display: none; }
  .nav-pill-icon {
    padding: 0.55rem 0.72rem;
  }
}

.nav-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--rose-200);
  margin: 0 0.35rem;
  align-self: center;
  padding: 0 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-top: 0.5rem;
}

@media (min-width: 992px) {
  .nav-actions {
    padding-top: 0;
    margin-left: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.75rem;
    border-top: 1px solid var(--rose-100);
    margin-top: 0.65rem;
    align-items: center !important;
    text-align: center;
  }

  .navbar-heart .navbar-nav {
    align-items: center !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nav-pills-custom {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-pills-custom .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-bottom: 0.25rem;
    gap: 0.65rem;
  }

  .nav-logout-form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-actions .btn {
    flex: 0 1 auto;
    min-width: 8.5rem;
    justify-content: center;
  }

  .brand-tag { display: none; }
}

.nav-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.nav-online-pill .bi-circle-fill { font-size: 0.45rem; }

.nav-more-btn { cursor: pointer; }

.nav-dropdown {
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(190, 24, 93, 0.12);
  padding: 0.4rem;
}

.nav-dropdown .dropdown-item {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
}

.nav-dropdown .dropdown-item:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}

.nav-premium-badge { font-size: 0.7rem; }

.nav-logout-form { margin: 0; }

.nav-link {
  color: #6b7280 !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--rose-600) !important;
}

.badge-premium {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  color: white;
  font-size: 0.7rem;
  padding: 0.25em 0.6em;
  border-radius: 20px;
}

/* ——— Unified buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
}

a.btn:hover { text-decoration: none; }

.btn-rose,
.btn-outline-rose,
.btn-outline-secondary.btn-pill,
.btn-vk,
.btn-boost,
.btn-white,
.btn-outline-white,
.nav-pill-link {
  border-radius: 9999px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.btn-rose,
.btn-outline-rose,
.btn-outline-secondary.btn-pill,
.btn-vk,
.btn-boost,
.btn-white,
.btn-outline-white {
  overflow: hidden;
}

.btn-rose,
.btn-outline-rose,
.btn-outline-secondary.btn-pill,
.btn-vk {
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.9375rem;
}

.btn-rose.btn-sm,
.btn-outline-rose.btn-sm,
.btn-outline-secondary.btn-sm.btn-pill,
.btn-vk.btn-sm {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
  font-size: 0.875rem;
}

.btn-rose.btn-lg,
.btn-outline-rose.btn-lg {
  min-height: 3.25rem;
  padding: 0.72rem 1.75rem;
  font-size: 1.0625rem;
}

.btn-rose {
  --bs-btn-border-width: 0;
  --bs-btn-box-shadow: none;
  --bs-btn-active-shadow: none;
  --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.22);
  position: relative;
  isolation: isolate;
  z-index: 0;
  border: none;
  background: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(230, 57, 86, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-rose::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
  z-index: -1;
  transition: background 0.2s ease;
}

.btn-rose:hover,
.btn-rose:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(230, 57, 86, 0.26);
}

.btn-rose:hover::before,
.btn-rose:focus::before {
  background: linear-gradient(135deg, var(--romantic-red), var(--sweet-pink));
}

.btn-rose:active,
.btn-rose.active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(230, 57, 86, 0.18);
}

.btn-outline-rose {
  border: 2px solid var(--rose-400);
  color: var(--rose-600);
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline-rose:hover,
.btn-outline-rose:focus {
  background: var(--rose-50);
  border-color: var(--rose-500);
  color: var(--rose-700);
}

.btn-outline-secondary.btn-pill {
  border: 2px solid #d1d5db;
  color: #4b5563;
  background: #fff;
}

.btn-outline-secondary.btn-pill:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* Row of action buttons — same height, even gaps */
.btn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.625rem;
}

.btn-actions .btn,
.btn-actions a.btn {
  margin: 0 !important;
  flex: 0 1 auto;
}

.btn-actions .btn-rose,
.btn-actions .btn-outline-rose,
.btn-actions .btn-outline-secondary.btn-pill {
  min-width: 7.5rem;
}

/* Page headings & icons */
.page-title {
  color: var(--rose-700);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-title-soft {
  color: var(--rose-600);
  font-weight: 800;
}

.page-hero-icon {
  font-size: 3rem;
  color: var(--rose-500);
  line-height: 1;
}

.page-hero-icon-sm {
  font-size: 2.5rem;
  color: var(--rose-400);
  line-height: 1;
}

.text-price-muted {
  font-size: 1.5rem;
  color: #9ca3af;
}

/* Boost / VIP accent button */
.btn-boost,
.site-body .btn-warning:not(.btn-link) {
  --bs-btn-border-width: 0;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  border: none;
  color: #78350f;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-boost.btn-sm,
.site-body .btn-warning.btn-sm:not(.btn-link) {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
  font-size: 0.875rem;
}

.btn-boost:hover,
.btn-boost:focus,
.site-body .btn-warning:not(.btn-link):hover,
.site-body .btn-warning:not(.btn-link):focus {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #451a03;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Destructive actions */
.site-body .btn-danger:not(.btn-link) {
  --bs-btn-border-width: 0;
  background: linear-gradient(135deg, var(--romantic-red), var(--rose-700));
  border: none;
  color: #fff;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 4px 16px rgba(230, 57, 86, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.site-body .btn-danger.btn-sm:not(.btn-link) {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
  font-size: 0.875rem;
}

.site-body .btn-danger:not(.btn-link):hover,
.site-body .btn-danger:not(.btn-link):focus {
  background: linear-gradient(135deg, var(--rose-700), #a02438);
  color: #fff;
  transform: translateY(-1px);
}

.site-body .btn-outline-danger:not(.btn-link) {
  border: 2px solid var(--rose-400);
  color: var(--rose-600);
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-body .btn-outline-danger.btn-sm:not(.btn-link) {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
  font-size: 0.875rem;
}

.site-body .btn-outline-danger:not(.btn-link):hover,
.site-body .btn-outline-danger:not(.btn-link):focus {
  background: var(--rose-50);
  border-color: var(--rose-500);
  color: var(--rose-700);
}

.site-body .btn-outline-success:not(.btn-link) {
  border: 2px solid #86efac;
  color: #15803d;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
}

.site-body .btn-outline-success.btn-sm:not(.btn-link) {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
}

.site-body .btn-outline-warning:not(.btn-link) {
  border: 2px solid #fcd34d;
  color: #92400e;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
}

/* Secondary / cancel — pill everywhere */
.site-body .btn-outline-secondary:not(.btn-link) {
  border: 2px solid #d1d5db;
  color: #4b5563;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-body .btn-outline-secondary.btn-sm:not(.btn-link) {
  min-height: 2.25rem;
  padding: 0.42rem 1rem;
  font-size: 0.875rem;
}

.site-body .btn-outline-secondary:not(.btn-link):hover,
.site-body .btn-outline-secondary:not(.btn-link):focus {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* Landing CTA on gradient bg */
.btn-white {
  --bs-btn-border-width: 0;
  background: #fff;
  border: none;
  color: var(--romantic-red);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover,
.btn-white:focus {
  background: var(--soft-white);
  color: var(--rose-700);
  transform: translateY(-1px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.alert-kit {
  background: #fff;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  color: var(--charcoal);
}

.alert-kit .text-primary {
  color: var(--rose-600) !important;
}

.page-empty-icon {
  font-size: 3rem;
  color: var(--rose-200);
  line-height: 1;
}

.chat-partner-name {
  color: var(--rose-700);
  font-weight: 700;
}

.discover-match-icon {
  font-size: 4rem;
  color: var(--rose-500);
  line-height: 1;
}

.admin-table thead {
  background: var(--rose-50);
}

/* Nav auth */
.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

.nav-auth-btns .btn {
  min-width: 6.5rem;
}

/* Card footer CTA */
.btn-card-action {
  width: 100%;
}

/* Icon-only compact (photo thumbs etc.) — not pill */
.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 8px;
  min-height: unset;
}

.card-premium {
  background: white;
  border: none;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-premium.card-form-panel,
#filtersPanel .card-premium,
.ankety-filters.card-premium,
.discover-filters.card-premium {
  overflow: visible;
}

.discover-filters {
  margin-bottom: 0;
}

.discover-filters-premium-hint {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.discover-filters-premium-hint a {
  color: var(--rose-600);
  font-weight: 600;
}

.input-premium-wrap.is-disabled,
.select-premium-wrap.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}

@media (min-width: 992px) {
  .discover-filters .ankety-filters-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card-premium:has(.ui-select.is-open),
.card-premium:has(.ui-select-wrap:focus-within),
.ankety-filters:has(.ui-select.is-open),
.select-premium-wrap:has(.ui-select.is-open) {
  overflow: visible;
  z-index: 20;
}

.card-premium .card-header {
  background: linear-gradient(135deg, var(--rose-50), white);
  border-bottom: 1px solid var(--rose-100);
  font-weight: 600;
  color: var(--rose-700);
}

.hero-section {
  padding: 5rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #9ca3af;
  max-width: 500px;
  margin: 1rem auto 2rem;
}

/* Swipe card */
.discover-page {
  padding-bottom: 2.5rem;
}

.discover-feed-section {
  max-width: 440px;
  margin: 1.5rem auto 0;
  padding: 0 0.5rem 1rem;
  scroll-margin-top: calc(4.75rem + env(safe-area-inset-top, 0px));
}

.swipe-stage {
  background: linear-gradient(165deg, #fff5f7 0%, #ffffff 40%, #fff0f4 100%);
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 26px;
  box-shadow:
    0 14px 42px rgba(225, 29, 72, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.swipe-stage-head {
  text-align: center;
  padding: 1.1rem 1.25rem 0.95rem;
  border-bottom: 1px solid rgba(254, 205, 211, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 100%);
}

.swipe-stage-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--rose-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.swipe-stage-title i {
  color: var(--rose-500);
  font-size: 1.05rem;
}

.swipe-stage-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.45;
}

.swipe-container {
  max-width: none;
  margin: 0;
  position: relative;
  padding: 1rem 1rem 0.75rem;
}

.swipe-stack-frame {
  position: relative;
  padding: 0.45rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(254, 205, 211, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.swipe-stack-bg {
  position: absolute;
  inset: 0.45rem;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(251, 113, 133, 0.07) 0%, transparent 62%),
    linear-gradient(165deg, rgba(255, 245, 247, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.swipe-stack-bg-logo {
  width: min(38vw, 148px);
  height: auto;
  max-height: 148px;
  object-fit: contain;
  opacity: 0.16;
  filter: saturate(0.85);
  user-select: none;
  -webkit-user-drag: none;
}

.swipe-stack {
  min-height: 480px;
  position: relative;
  z-index: 1;
}

.swipe-stage-footer {
  margin: 0.25rem -1rem -0.75rem;
  padding: 0.85rem 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 241, 245, 0.35) 0%, rgba(255, 228, 235, 0.65) 100%);
  border-top: 1px solid rgba(254, 205, 211, 0.55);
}

.swipe-stage-footer .swipe-btn {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.swipe-stage-footer .swipe-btn-like {
  width: 68px;
  height: 68px;
  font-size: 1.55rem;
}

.swipe-stage-footer .swipe-btn-dislike {
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
}

@media (max-width: 420px) {
  .discover-feed-section {
    padding-inline: 0.35rem;
  }

  .swipe-stack,
  .swipe-card img,
  .swipe-card-placeholder {
    min-height: 440px;
    height: 440px;
  }
}

.vip-feed-section {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem 0.95rem;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 38%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.06);
  overflow: visible;
}

.vip-feed-section--compact {
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 1.25rem;
}

.vip-feed-section--empty {
  padding-bottom: 1rem;
}

.vip-feed-section--empty .vip-feed-scroller {
  display: none;
}

.vip-feed-section--empty .vip-feed-header {
  margin-bottom: 0.75rem;
}

.vip-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.vip-feed-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b45309;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vip-feed-title i {
  color: #f59e0b;
}

.vip-feed-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #d97706;
  opacity: 0.85;
}

.vip-feed-promo-btn {
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border: none;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.25);
}

.vip-feed-boost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.vip-feed-scroller {
  position: relative;
}

.vip-feed-section--sparse .vip-feed-promo-btn {
  display: none;
}

.vip-feed-section--sparse:not(.vip-feed-section--sparse-aside) .vip-feed-promo-btn {
  display: inline-flex;
}

.vip-feed-section--sparse-aside .vip-feed-scroller {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.vip-feed-section--sparse-aside .vip-feed-header {
  margin-bottom: 0.65rem;
}

.vip-feed-section--sparse-aside .vip-feed-promo-btn {
  display: none;
}

.vip-feed-section--sparse-aside .vip-feed-track {
  flex: 0 0 auto;
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0.15rem;
}

.vip-feed-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #fcd34d transparent;
}

.vip-feed-section--sparse .vip-feed-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vip-feed-track:empty {
  display: none;
}

.vip-feed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #b45309;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.vip-feed-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
}

.vip-feed-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.vip-feed-nav-prev {
  left: -0.35rem;
}

.vip-feed-nav-next {
  right: -0.35rem;
}

.vip-chip {
  flex: 0 0 5.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-height: 6.25rem;
  padding: 0.35rem 0.25rem 0.25rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, transform 0.15s;
}

.vip-chip:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

.vip-chip-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.vip-chip-photo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

.vip-chip-photo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-100);
  color: var(--rose-400);
  font-size: 1.35rem;
}

.vip-chip-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-chip-city {
  font-size: 0.65rem;
  color: #78716c;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-chip-rank {
  position: absolute;
  top: -0.15rem;
  left: -0.1rem;
  z-index: 1;
  font-size: 0.58rem;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(180, 83, 9, 0.3);
}

.vip-chip-online {
  position: absolute;
  bottom: 0.1rem;
  right: 0.05rem;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.vip-chip-cta {
  border: 1.5px dashed #fcd34d;
  background: rgba(255, 255, 255, 0.55);
}

.vip-chip-cta:hover {
  background: rgba(255, 251, 235, 0.95);
  border-color: #f59e0b;
}

.vip-chip-photo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff7ed, #fef3c7);
  color: #ea580c;
  font-size: 1.15rem;
  border-style: dashed;
}

.vip-feed-aside {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.vip-feed-aside-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(252, 211, 77, 0.65);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 251, 235, 0.88) 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.vip-feed-aside-inner:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.vip-feed-aside-inner--active {
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.85) 100%);
  border-color: rgba(134, 239, 172, 0.75);
}

.vip-feed-aside-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fff);
  color: #f59e0b;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.vip-feed-aside-inner--active .vip-feed-aside-icon {
  background: linear-gradient(135deg, #dcfce7, #fff);
  color: #16a34a;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

.vip-feed-aside-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vip-feed-aside-text strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1.25;
}

.vip-feed-aside-inner--active .vip-feed-aside-text strong {
  color: #166534;
}

.vip-feed-aside-text span {
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
}

.vip-feed-aside-arrow {
  flex-shrink: 0;
  color: #d97706;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* legacy vip-card — kept for cached pages; prefer .vip-chip */
.vip-card {
  flex: 0 0 5.5rem;
  scroll-snap-align: start;
}

.vip-card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.vip-card-photo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.vip-card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-100);
  color: var(--rose-400);
  font-size: 1.35rem;
}

.vip-card-overlay,
.vip-card-actions {
  display: none;
}

.vip-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.vip-card-meta {
  font-size: 0.65rem;
  color: #78716c;
  margin: 0;
}

.vip-card-rank {
  position: absolute;
  top: -0.15rem;
  left: -0.1rem;
  z-index: 1;
  font-size: 0.58rem;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
}

.vip-card-online {
  position: absolute;
  bottom: 0.1rem;
  right: 0.05rem;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.vip-card-btn,
.vip-card-btn-like,
.vip-card-btn-skip {
  display: none;
}

.vip-feed-empty {
  padding: 0;
}

.vip-feed-empty-inner {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 16px;
  border: 1px dashed #fcd34d;
  background: rgba(255, 255, 255, 0.72);
}

.vip-feed-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fff);
  color: #f59e0b;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.vip-feed-empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #57534e;
}

.vip-feed-empty-text {
  font-size: 0.8125rem;
  color: #78716c;
}

.vip-feed-empty-text a {
  color: var(--rose-600);
  font-weight: 600;
  text-decoration: none;
}

.vip-feed-empty-text a:hover {
  color: var(--rose-700);
  text-decoration: underline;
}

.vip-feed-empty i {
  font-size: 2rem;
  color: #f59e0b;
  display: block;
  margin-bottom: 0.5rem;
}

.vip-feed-loading {
  text-align: center;
  padding: 0.75rem;
}

@media (max-width: 767.98px) {
  .vip-feed-nav {
    display: none;
  }

  .vip-feed-header {
    flex-wrap: wrap;
  }

  .vip-feed-promo-btn,
  .vip-feed-boost-badge {
    align-self: flex-start;
  }
}

.swipe-card-wrap {
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}

.swipe-card-wrap.is-swiping {
  cursor: grabbing;
  touch-action: none;
}

.swipe-card-placeholder {
  width: 100%;
  height: 480px;
  background: var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-300);
  font-size: 6rem;
  pointer-events: none;
  user-select: none;
}

.match-unread-badge, .bg-rose.match-unread-badge {
  background: var(--rose-500) !important;
  font-size: 0.7rem;
}

.onboarding-steps {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.onboarding-steps span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--rose-50);
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
}

.onboarding-steps span.active {
  background: var(--rose-500);
  color: #fff;
}

.onboarding-skip-photo {
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .onboarding-step {
    text-align: center;
  }

  .onboarding-step .page-title,
  .onboarding-step__lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .onboarding-step__lead {
    max-width: 21rem;
  }

  .onboarding-step .onboarding-step-form {
    text-align: left;
  }

  .onboarding-step .form-label {
    text-align: left;
  }

  .onboarding-step .form-text {
    text-align: center;
  }

  .onboarding-step .btn-rose.btn-lg {
    width: 100%;
  }

  .onboarding-photo-step .photo-upload-zone {
    align-items: center;
    text-align: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .onboarding-photo-step .photo-upload-zone strong,
  .onboarding-photo-step .photo-upload-zone__lead,
  .onboarding-photo-step .photo-upload-zone__hint {
    display: block;
    width: 100%;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .onboarding-photo-step .photo-upload-zone__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .onboarding-steps {
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
  }

  .onboarding-steps span {
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
  }

  .onboarding-card {
    overflow: visible;
  }
}

.swipe-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.14);
  background: white;
  position: relative;
  user-select: none;
  transition: transform 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.95);
  touch-action: inherit;
}

.swipe-stack-frame .swipe-card {
  border-radius: 16px;
}

.swipe-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.swipe-card .swipe-highlight-badge,
.swipe-card .badge-premium {
  pointer-events: none;
}

.swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  pointer-events: none;
}

.swipe-card-info a[data-swipe-profile] {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.swipe-card-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.swipe-card-info p {
  margin: 0.25rem 0 0;
  opacity: 0.9;
}

.swipe-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0;
  padding: 0;
}

.swipe-stage-footer .swipe-actions {
  gap: 1.1rem;
}

.swipe-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swipe-btn:hover { transform: scale(1.1); }

.swipe-btn-dislike {
  background: white;
  color: #ef4444;
  border: 2px solid #fecaca;
}

.swipe-btn-super {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.swipe-btn-like {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: white;
}

.swipe-btn-undo {
  background: white;
  color: #8b5cf6;
  border: 2px solid #ddd6fe;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.swipe-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: none;
  margin-inline: auto;
  color: #9ca3af;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 16px;
}

.swipe-stack-frame .swipe-empty {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.swipe-empty-icon,
.swipe-empty > i { font-size: 4rem; color: var(--rose-200); }

.swipe-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rose-800);
  margin-bottom: 0.75rem;
}

.swipe-empty-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 auto 0.75rem;
  max-width: 28rem;
}

.swipe-empty-hints {
  text-align: left;
  font-size: 0.92rem; 
  line-height: 1.55;
  color: #6b7280;
}

.swipe-empty-hints li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
}

.swipe-empty-hints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose-400);
}

/* Match list */
.messages-list {
  padding: 0.35rem;
  overflow: hidden;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  transition: background 0.18s;
  border-bottom: 1px solid rgba(251, 113, 133, 0.12);
}

.match-item-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
}

.match-item-avatar-link:hover {
  opacity: 0.92;
}

.match-item-open {
  flex: 1;
  min-width: 0;
  text-decoration: none !important;
  color: inherit !important;
}

.match-item-open:hover {
  color: inherit !important;
}

.match-item:hover {
  background: var(--rose-50);
}

.match-item-avatar {
  position: relative;
  flex-shrink: 0;
}

.match-item--last {
  border-bottom: none;
}

.match-item-body {
  flex: 1;
  min-width: 0;
}

.match-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}

.match-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-item-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.match-item-preview {
  font-size: 0.875rem;
  line-height: 1.35;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-item-empty {
  color: #9ca3af;
  font-style: italic;
}

.match-item--unread .match-item-name {
  color: #111827;
}

.match-item--unread .match-item-preview {
  color: #374151;
  font-weight: 600;
}

.match-item--unread .match-item-time {
  color: var(--rose-500);
  font-weight: 600;
}

.match-item-unread {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--rose-500);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.35);
}

.match-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-100);
  display: block;
}

.match-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-50), var(--rose-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-400);
  font-size: 1.35rem;
  border: 2px solid var(--rose-100);
}

/* Chat */
.site-main:has(.chat-page--room) {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-page {
  max-width: 760px;
}

.chat-page--room {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.chat-topbar-avatar .match-avatar,
.chat-topbar-avatar .match-avatar-placeholder {
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
}

.chat-topbar-avatar.online-dot-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rose-100);
  background: var(--rose-50);
}

.chat-topbar-avatar .match-avatar {
  border: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.chat-topbar-avatar .match-avatar-placeholder {
  border: none;
  border-radius: 0;
}

.chat-topbar-avatar.online-dot-wrap.is-online::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  margin: 0;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.chat-partner-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.chat-partner-presence {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1.15;
  color: #9ca3af;
  white-space: nowrap;
}

.partner-status {
  color: #9ca3af;
  font-size: 0.75rem;
}

.partner-status--online {
  color: #16a34a;
  font-weight: 500;
}

.partner-status--online .chat-partner-presence-text {
  color: #16a34a;
}

.chat-back-btn {
  flex-shrink: 0;
}

.chat-partner-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  margin: -0.25rem 0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.chat-partner-link:hover {
  background: var(--rose-50);
  color: inherit;
}

.chat-partner-link .chat-partner-name {
  transition: color 0.15s;
}

.chat-partner-link:hover .chat-partner-name {
  color: var(--rose-700);
}

a.chat-actions-item {
  text-decoration: none;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(72vh, 720px);
  height: min(72vh, 720px);
  padding: 0.75rem;
}

.chat-panel > .chat-messages {
  flex: 1 1 auto;
  min-height: 0;
}

.chat-panel > .chat-input-row,
.chat-panel > .chat-compose-preview,
.chat-panel > .chat-recording-bar {
  flex-shrink: 0;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: min(42vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.75rem;
  background: linear-gradient(180deg, #fff7f9 0%, var(--rose-50) 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  scroll-behavior: smooth;
  overflow-anchor: none;
}

.chat-scroll-anchor {
  height: 1px;
  flex-shrink: 0;
  margin-top: auto;
  overflow-anchor: auto;
}

.chat-bubble {
  max-width: min(78%, 420px);
  width: fit-content;
  padding: 0.45rem 0.65rem 0.38rem 0.75rem;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-bubble-mine {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.18);
}

.chat-bubble-theirs {
  background: #fff;
  border: 1px solid var(--rose-100);
  color: #1f2937;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 6px rgba(190, 24, 93, 0.06);
}

.chat-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  opacity: 0.92;
}

.chat-typing-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.chat-bubble-content {
  display: block;
  min-width: 2.5rem;
}

.chat-bubble-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-bubble-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.2rem 0 0 0.65rem;
  font-size: 0.6875rem;
  line-height: 1;
  white-space: nowrap;
  vertical-align: bottom;
  user-select: none;
}

.chat-bubble-time {
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.chat-bubble-mine .chat-bubble-meta {
  color: rgba(255, 255, 255, 0.88);
}

.chat-bubble-theirs .chat-bubble-meta {
  color: #9ca3af;
}

.chat-gift-anonymous-wrap {
  align-self: center;
  max-width: 92%;
}

.chat-input-left,
.chat-input-right {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--rose-100);
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(190, 24, 93, 0.07);
  flex-shrink: 0;
}

.chat-input-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.chat-text-input {
  width: 100%;
  border: none !important;
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  min-height: 42px;
  max-height: 120px;
  height: 42px;
  resize: none !important;
  overflow-y: hidden;
  overflow-x: hidden;
  line-height: 1.4;
  background: transparent !important;
  box-shadow: none !important;
  field-sizing: fixed;
}

.chat-text-input:focus {
  border: none;
  box-shadow: none !important;
}

.chat-compose-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--rose-50);
  color: var(--rose-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-compose-btn:hover {
  background: var(--rose-100);
  color: var(--rose-700);
}

.chat-voice-btn.is-recording {
  background: #fee2e2;
  color: #dc2626;
  animation: chat-mic-pulse 1s ease infinite;
}

@keyframes chat-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  min-height: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(230, 57, 86, 0.22);
}

.chat-send-btn.btn-rose {
  padding: 0;
  min-height: 0;
  font-size: 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-compose-preview {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--rose-50);
  border-radius: 16px;
  border: 1px solid var(--rose-100);
}

.chat-compose-preview-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-preview-dismiss {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #6b7280;
  flex-shrink: 0;
}

.chat-preview-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.chat-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-preview-meta {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.chat-preview-meta .form-control {
  border-radius: 18px;
  padding: 0.65rem 1rem;
}

.chat-preview-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}

.chat-recording-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fef2f2;
  border-radius: 16px;
  border: 1px solid #fecaca;
}

.chat-recording-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: chat-rec-dot 1s ease infinite;
}

@keyframes chat-rec-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.chat-recording-timer {
  font-weight: 700;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
}

.chat-recording-hint {
  flex: 1;
  font-size: 0.85rem;
  color: #6b7280;
}

.chat-voice-preview-panel .chat-compose-preview-inner {
  gap: 0.5rem;
  align-items: center;
}

.chat-voice-preview-player {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.chat-voice-preview-player .chat-voice-play {
  background: white;
  color: var(--rose-600);
}

.chat-bubble-media {
  padding: 0.35rem 0.45rem 0.3rem;
  max-width: min(280px, 78%);
  width: fit-content;
}

.chat-bubble-voice.chat-bubble-media {
  min-width: 220px;
}

.chat-bubble-media .chat-bubble-meta {
  float: none;
  display: flex;
  justify-content: flex-end;
  margin: 0.15rem 0.1rem 0 0;
}

.chat-bubble-image {
  padding: 0.25rem;
}

.chat-image-open {
  display: block;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  width: 100%;
}

.chat-image-thumb {
  display: block;
  width: 100%;
  max-width: 260px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.chat-image-caption {
  padding: 0.35rem 0.5rem 0.15rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chat-bubble-mine.chat-bubble-image .chat-image-caption,
.chat-bubble-mine.chat-bubble-voice .chat-voice-msg {
  color: white;
}

.chat-bubble-mine.chat-bubble-media {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
}

.chat-bubble-theirs.chat-bubble-media {
  background: white;
  border: 1px solid var(--rose-100);
}

.chat-voice-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 220px;
  padding: 0.35rem 0.5rem;
}

.chat-voice-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.chat-bubble-theirs .chat-voice-play {
  background: var(--rose-50);
  color: var(--rose-600);
}

.chat-voice-track {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.chat-voice-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 0;
  min-width: 72px;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.95) var(--seek-progress, 0%),
    rgba(255, 255, 255, 0.38) var(--seek-progress, 0%),
    rgba(255, 255, 255, 0.38) 100%
  );
  touch-action: none;
}

.chat-bubble-theirs .chat-voice-seek {
  background: linear-gradient(
    to right,
    var(--rose-500) 0%,
    var(--rose-500) var(--seek-progress, 0%),
    var(--rose-100) var(--seek-progress, 0%),
    var(--rose-100) 100%
  );
}

.chat-voice-seek::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.chat-voice-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.chat-bubble-theirs .chat-voice-seek::-webkit-slider-thumb {
  background: var(--rose-500);
  border-color: white;
}

.chat-voice-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.chat-voice-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.chat-bubble-theirs .chat-voice-seek::-moz-range-thumb {
  background: var(--rose-500);
  border-color: white;
}

.chat-voice-time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.1rem;
  text-align: right;
}

.chat-voice-msg.is-playing .chat-voice-time {
  opacity: 1;
}

.chat-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.chat-image-lightbox.show {
  display: flex;
}

.chat-image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.chat-image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.25rem;
}

@media (max-width: 767.98px) {
  body:has(.chat-page--room) .site-footer {
    display: none;
  }

  body:has(.chat-page--room) .site-main {
    flex: 1 1 auto;
  }

  .chat-page--room.container {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-width: none;
  }

  .chat-page--room .chat-topbar {
    margin-bottom: 0 !important;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(255, 107, 157, 0.12);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .chat-page--room .chat-partner-name {
    font-size: 1rem;
  }

  .chat-page--room .chat-panel {
    height: auto;
    flex: 1;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.35rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .chat-page--room .chat-messages {
    border-radius: 12px;
    min-height: min(52vh, 520px);
  }

  .chat-page--room .chat-bubble {
    max-width: min(88%, 340px);
    font-size: 0.9rem;
  }

  .chat-page--room .chat-input-row {
    margin-top: 0.5rem;
    padding: 0.3rem 0.35rem;
    gap: 0.25rem;
    border-radius: 22px;
    align-items: center;
  }

  .chat-page--room .chat-input-left,
  .chat-page--room .chat-input-right {
    align-items: center;
    gap: 0.2rem;
  }

  .chat-page--room .chat-compose-btn,
  .chat-page--room .chat-send-btn {
    width: 38px;
    height: 38px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    font-size: 0.95rem;
  }

  .chat-page--room .chat-send-btn.btn-rose {
    box-shadow: 0 2px 6px rgba(230, 57, 86, 0.2);
  }

  .chat-page--room .chat-input-right .chat-voice-btn {
    margin-right: 0.05rem;
  }

  .chat-page--room .chat-text-input {
    min-height: 38px;
    padding: 0.5rem 0.55rem;
    font-size: 16px;
  }

  .chat-page--room .chat-compose-preview,
  .chat-page--room .chat-recording-bar {
    margin-top: 0.5rem;
    padding: 0.55rem 0.65rem;
  }

  .chat-page--room .chat-compose-preview-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .chat-page--room .chat-preview-meta {
    flex: 1 1 100%;
  }

  .chat-page--room .chat-recording-hint {
    display: none;
  }

  .chat-page--room .chat-voice-msg {
    width: 100%;
    min-width: 0;
  }

  .chat-page--room .chat-bubble-voice.chat-bubble-media {
    min-width: min(240px, calc(100vw - 4.5rem));
    width: min(280px, calc(100vw - 4.5rem));
  }

  .chat-page--room .chat-voice-track {
    flex: 1 1 0;
    min-width: 0;
  }

  .chat-page--room .chat-voice-seek {
    min-width: 56px;
    height: 6px;
  }

  .chat-page--room .chat-voice-seek::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -4px;
  }

  .chat-page--room .chat-voice-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
}

/* Premium page */
.premium-card {
  border: 2px solid var(--rose-200);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.premium-card.featured {
  border-color: var(--rose-500);
  background: linear-gradient(180deg, var(--rose-50), white);
  transform: scale(1.03);
}

.premium-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rose-600);
}

.premium-feature {
  padding: 0.5rem 0;
  color: #6b7280;
}

.premium-feature i { color: var(--rose-500); }

/* Likes blurred */
.like-card.blurred img,
.like-card.blurred .like-name {
  filter: blur(8px);
}

.like-card.blurred .like-name {
  user-select: none;
}

.likes-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--rose-50);
  border-radius: 999px;
  border: 1px solid var(--rose-100);
}

.likes-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.likes-tab:hover {
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.7);
}

.likes-tab.active {
  background: #fff;
  color: var(--rose-700);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.1);
}

@media (max-width: 767.98px) {
  .app-page .page-title,
  .app-page > .page-title,
  .app-page .page-header .page-title,
  .app-page .gifts-page-header .page-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .app-page .page-lead,
  .app-page > .page-lead,
  .app-page .page-header .page-lead,
  .app-page .page-header .text-muted,
  .app-page .gifts-page-header .text-muted {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 22rem;
  }

  .app-page .page-header {
    text-align: center;
  }

  .app-page .page-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .app-page .page-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .app-page > .alert,
  .app-page .page-header + .alert {
    text-align: center;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .app-page .card-premium.text-center,
  .app-page .views-stat-card {
    margin-left: auto;
    margin-right: auto;
  }

  .likes-page .likes-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    border-radius: 1rem;
    padding: 0.4rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 24rem;
  }

  .likes-page .likes-tab {
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: normal;
  }

  .ankety-catalog-page .ankety-catalog-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ankety-catalog-page .ankety-catalog-subtitle {
    max-width: 22rem;
    margin-inline: auto;
  }

  .gifts-page .gifts-page-header {
    text-align: center;
  }

  .city-list-page > header {
    text-align: center;
  }

  .city-list-page > header .text-muted {
    max-width: 22rem;
    margin-inline: auto;
  }

  .app-page .views-stat-card {
    max-width: 18rem;
  }

  .map-toolbar .container-fluid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .map-toolbar .ms-auto {
    margin-left: 0 !important;
  }
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
}

.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rose-600);
}

.stat-card .stat-label {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  padding: 0.72rem 1rem;
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-control:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
  border-color: var(--rose-200);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
  outline: none;
}

.form-control:disabled,
.form-select:disabled {
  background: var(--rose-50);
  color: #9ca3af;
  opacity: 1;
}

textarea.form-control {
  min-height: 2.85rem;
  resize: vertical;
}

.form-label { font-weight: 500; color: #4b5563; }

.form-check-input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
  border: 2px solid var(--rose-200);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-check-input[type="checkbox"]:hover:not(:disabled):not(:checked) {
  border-color: var(--rose-300);
}

.form-check-input[type="checkbox"]:checked {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
}

.form-check-input[type="checkbox"]:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.2);
}

.form-check-input[type="checkbox"]:checked:focus {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.25);
}

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--rose-500);
  border-color: var(--rose-500);
}

.form-check-input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-check-label {
  cursor: pointer;
}

.form-switch .form-check-input {
  width: 2.5em;
  border-color: var(--rose-200);
  background-color: var(--rose-100);
}

.form-switch .form-check-input:not(:checked):focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.15);
}

.form-switch .form-check-input:checked {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
}

.form-switch .form-check-input:checked:focus {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
  box-shadow: 0 0 0 0.2rem rgba(244, 63, 94, 0.25);
}

.auth-legal .form-check-input[type="checkbox"] {
  border-color: var(--rose-300);
}

.auth-legal .form-check-input[type="checkbox"]:checked {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
}

.auth-legal {
  background: var(--rose-50);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-legal .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.auth-legal .form-check-input[type="checkbox"] {
  flex-shrink: 0;
  float: none;
  margin: 0.125rem 0 0;
  margin-left: 0;
}

.auth-legal .form-check-label {
  flex: 1;
  line-height: 1.5;
}

.auth-legal .form-check-label a { color: var(--rose-600); }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.photo-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--rose-100);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-thumb .badge-primary-photo {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--rose-500);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Match overlay */
.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

.match-popup {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  animation: popIn 0.4s;
}

.match-popup h2 {
  color: var(--rose-600);
  font-weight: 800;
  font-size: 2rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.alert-rose {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-700);
  border-radius: 12px;
}

.limits-bar {
  background: white;
  border-radius: 16px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #6b7280;
  border: 1px solid var(--rose-100);
  box-shadow: 0 2px 10px rgba(230, 57, 86, 0.04);
}

.limits-bar strong { color: var(--rose-600); }

/* VK auth */
.btn-vk {
  --bs-btn-border-width: 0;
  background: #0077ff;
  border: none;
  color: white;
  transition: background 0.2s, transform 0.2s;
}

.btn-vk:hover {
  background: #0066dd;
  color: white;
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: #9ca3af;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--rose-100);
}

.auth-divider span {
  padding: 0 1rem;
}

/* Toast notifications */
.notify-root {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(420px, calc(100vw - 1.7rem));
  pointer-events: none;
}

.notify-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(225, 29, 72, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: auto;
}

.notify-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.notify-toast--hide {
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
}

.notify-toast__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.notify-toast__text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #374151;
  padding-right: 0.25rem;
}

.notify-toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.notify-toast__close:hover {
  color: #6b7280;
  background: rgba(0, 0, 0, 0.05);
}

.notify-toast--success .notify-toast__icon { color: #059669; }
.notify-toast--success { border-color: rgba(16, 185, 129, 0.25); }

.notify-toast--error .notify-toast__icon { color: var(--rose-600); }
.notify-toast--error { border-color: rgba(225, 29, 72, 0.28); }

.notify-toast--warning .notify-toast__icon { color: #d97706; }
.notify-toast--warning { border-color: rgba(245, 158, 11, 0.28); }

.notify-toast--info .notify-toast__icon { color: #2563eb; }
.notify-toast--info { border-color: rgba(37, 99, 235, 0.22); }

.notify-toast__text .notify-vk-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notify-toast__text .notify-vk-link:hover {
  color: #1d4ed8;
}

@media (max-width: 575.98px) {
  .notify-root {
    left: calc(0.75rem + env(safe-area-inset-left, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    width: auto;
  }

  .notify-toast {
    transform: translateY(calc(-100% - 1rem));
  }

  .notify-toast--visible {
    transform: translateY(0);
  }

  .notify-toast--hide {
    transform: translateY(calc(-100% - 1rem));
  }
}

.app-confirm-modal .modal-dialog {
  max-width: 420px;
}

.app-confirm-content {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.app-confirm-body {
  padding: 2rem 1.75rem 1.25rem;
}

.app-confirm-icon-wrap {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--rose-50);
  color: var(--rose-500);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.2);
}

.app-confirm--danger .app-confirm-icon-wrap {
  background: #fef2f2;
  color: #dc2626;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.app-confirm--success .app-confirm-icon-wrap {
  background: #ecfdf5;
  color: #059669;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.app-confirm--info .app-confirm-icon-wrap {
  background: #eff6ff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.app-confirm-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rose-800);
}

.app-confirm-message {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
}

.app-confirm-footer {
  padding: 0 1.75rem 1.75rem;
  gap: 0.65rem;
  border-top: 0;
}

.app-confirm-footer .btn {
  min-width: 7.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.app-confirm-cancel {
  border-color: #e5e7eb;
}

/* Report modal */
.app-report-modal .modal-dialog {
  max-width: 440px;
}

.app-report-content {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.app-report-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.35rem 1.35rem 0.85rem;
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.app-report-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.app-report-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff1f2, var(--rose-50));
  color: var(--rose-600);
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 157, 0.18);
}

.app-report-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rose-800);
}

.app-report-subtitle {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.4;
}

.app-report-body {
  padding: 1.15rem 1.35rem 1.25rem;
}

.app-report-field + .app-report-field {
  margin-top: 1rem;
}

.app-report-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
}

.app-report-optional {
  font-weight: 500;
  color: #9ca3af;
}

.app-report-select,
.app-report-textarea {
  border-radius: 14px;
  border-color: var(--rose-100);
  background: #fff;
  font-size: 0.9375rem;
}

.app-report-select {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.app-report-select:focus,
.app-report-textarea:focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.14);
}

.app-report-textarea {
  resize: none;
  min-height: 108px;
  line-height: 1.45;
}

.app-report-footer {
  padding: 0 1.35rem 1.35rem;
  gap: 0.65rem;
  border-top: 0;
}

.app-report-footer .btn {
  min-width: 7.5rem;
  font-weight: 600;
}

.app-report-cancel {
  border-color: #e5e7eb;
  color: #6b7280;
}

.app-report-cancel:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #374151;
}

/* Chat actions menu */
.chat-actions-dropdown {
  position: relative;
}

.chat-actions-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rose-100);
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.chat-actions-btn:hover,
.chat-actions-btn.show {
  background: var(--rose-50);
  border-color: var(--rose-200);
  color: var(--rose-700);
  box-shadow: 0 2px 10px rgba(190, 24, 93, 0.08);
}

.chat-actions-menu {
  min-width: 220px;
  padding: 0.4rem;
  margin-top: 0.45rem !important;
  border: 1px solid rgba(255, 107, 157, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.chat-actions-menu .chat-actions-divider {
  margin: 0.35rem 0.5rem;
  border-color: rgba(255, 107, 157, 0.12);
  opacity: 1;
}

.chat-actions-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.chat-actions-item .bi {
  width: 1.15rem;
  font-size: 1rem;
  flex-shrink: 0;
  color: #9ca3af;
}

.chat-actions-item:hover,
.chat-actions-item:focus {
  background: var(--rose-50);
  color: var(--rose-800);
}

.chat-actions-item:hover .bi,
.chat-actions-item:focus .bi {
  color: var(--rose-500);
}

.chat-actions-item--danger {
  color: #dc2626;
}

.chat-actions-item--danger .bi {
  color: #f87171;
}

.chat-actions-item--danger:hover,
.chat-actions-item--danger:focus {
  background: #fef2f2;
  color: #b91c1c;
}

.chat-actions-item--danger:hover .bi,
.chat-actions-item--danger:focus .bi {
  color: #dc2626;
}

.chat-actions-menu form {
  margin: 0;
}


.vk-id-block {
  width: 100%;
}

.vk-id-container {
  min-height: 44px;
  width: 100%;
}

.vk-id-container iframe {
  max-width: 100%;
}

/* Ankety catalog */
.ankety-catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ankety-catalog-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--rose-700);
  margin: 0 0 0.35rem;
}

.ankety-catalog-title i {
  margin-right: 0.35rem;
  color: var(--rose-500);
}

.ankety-catalog-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

.ankety-catalog-count {
  font-weight: 600;
  color: var(--rose-700);
}

.ankety-filters {
  padding: 0;
  overflow: visible;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rose-100);
}

.ankety-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--rose-50), #fff);
  border: none;
  border-bottom: 1px solid var(--rose-100);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
}

.ankety-filters-head:hover {
  background: linear-gradient(135deg, #ffe4e9, #fff);
}

.ankety-filters-head[aria-expanded="false"] {
  border-bottom: none;
}

.ankety-filters-head[aria-expanded="true"] .ankety-filters-chevron {
  transform: rotate(180deg);
}

.ankety-filters-title {
  font-weight: 700;
  color: var(--rose-700);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.ankety-filters-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--rose-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.ankety-filters-chevron i {
  font-size: 0.95rem;
  line-height: 1;
}

.ankety-filters-toggle {
  border: none;
  background: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--rose-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ankety-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.15rem;
}

@media (min-width: 576px) {
  .ankety-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ankety-filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ankety-filter-field-age {
    grid-column: span 1;
  }
}

.ankety-filter-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ankety-filter-label i {
  color: var(--rose-400);
  font-size: 0.9rem;
}

.ankety-age-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ankety-age-range .input-premium-wrap {
  flex: 1;
  min-width: 0;
}

.ankety-age-sep {
  color: #d1d5db;
  font-weight: 600;
  flex-shrink: 0;
}

.input-premium-wrap {
  position: relative;
}

.input-premium-wrap .input-premium-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-400);
  pointer-events: none;
  font-size: 0.85rem;
  z-index: 2;
}

.input-premium-wrap .input-premium {
  padding-left: 2.25rem;
  width: 100%;
}

.ankety-filters-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.15rem 1.15rem;
}

.ankety-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ankety-filter-chip {
  margin: 0;
  cursor: pointer;
}

.ankety-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ankety-filter-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--rose-100);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.15s ease;
}

.ankety-filter-chip input:checked + span {
  background: var(--rose-50);
  border-color: var(--rose-400);
  color: var(--rose-700);
}

.ankety-filter-chip span i {
  color: var(--rose-400);
}

.ankety-filters-submit {
  min-width: 9rem;
}

.ankety-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.ankety-empty > i {
  font-size: 2.5rem;
  color: var(--rose-300);
  display: block;
  margin-bottom: 0.75rem;
}

.ankety-grid-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rose-100);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ankety-grid > .col {
  display: flex;
}

.ankety-grid > .col > .ankety-grid-card {
  width: 100%;
}

.ankety-grid-ad-row:empty {
  display: none;
}

.ankety-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.14);
}

.ankety-grid-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ankety-grid-card-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--rose-100);
  overflow: hidden;
}

.ankety-grid-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.ankety-grid-card:hover .ankety-grid-card-photo img {
  transform: scale(1.04);
}

.ankety-grid-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-300);
  font-size: 3.5rem;
}

.ankety-grid-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}

.ankety-grid-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.ankety-grid-card-city {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  opacity: 0.92;
}

.ankety-grid-card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  pointer-events: none;
}

.ankety-grid-card-badges-start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ankety-grid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.ankety-grid-badge-online {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  color: #15803d;
}

.ankety-grid-card-badges.is-online .ankety-grid-badge-online {
  display: inline-flex;
}

.ankety-grid-badge-online .presence-dot {
  width: 6px;
  height: 6px;
}

.ankety-grid-badge-premium {
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-600);
}

.ankety-grid-badge-tags {
  margin-left: auto;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.ankety-grid-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem 0;
}

.ankety-grid-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-700);
  border: 1px solid var(--rose-100);
}

.ankety-grid-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-top: auto;
}

.ankety-grid-card-actions .ankety-grid-like-btn {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.ankety-grid-card-actions .anketa-act-btn-icon {
  flex-shrink: 0;
}

.anketa-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.anketa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(225, 29, 72, 0.15);
}

.anketa-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--rose-100);
}

.anketa-card-placeholder {
  background: var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-300);
  font-size: 4rem;
}

.anketa-show-photo {
  height: 420px;
  object-fit: cover;
  display: block;
  width: 100%;
}

/* ─── Public profile (ankety/show) ─── */
.anketa-profile-layout {
  align-items: flex-start;
}

.anketa-profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sticky-lg-top {
  position: sticky;
  top: 1rem;
  z-index: 2;
}

.anketa-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
}

.anketa-profile-gallery {
  position: relative;
  border-radius: 20px;
  background: var(--rose-100);
  overflow: hidden;
}

.anketa-profile-gallery .carousel,
.anketa-profile-gallery .carousel-inner,
.anketa-profile-gallery .carousel-item {
  height: auto;
}

.anketa-profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 520px);
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--rose-100);
}

.anketa-profile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--rose-400);
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 520px);
  min-height: 280px;
}

.anketa-profile-placeholder i {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1;
}

.anketa-profile-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rose-500);
}

.anketa-profile-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 3;
}

.anketa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.anketa-badge-premium {
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-700);
}

.anketa-badge-online {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  color: #15803d;
}

.anketa-profile-badges.is-online .anketa-badge-online {
  display: inline-flex;
}

.presence-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.anketa-profile-header .anketa-activity-online {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #16a34a;
  font-weight: 500;
}

.anketa-profile-header.is-online .anketa-activity-online {
  display: inline-flex;
}

.anketa-profile-header.is-online .anketa-activity-offline {
  display: none;
}

.anketa-photo-counter {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.anketa-carousel-btn {
  width: auto;
  opacity: 1;
}

.anketa-profile-gallery .carousel-control-prev.anketa-carousel-btn {
  left: 0.75rem;
}

.anketa-profile-gallery .carousel-control-next.anketa-carousel-btn {
  right: 0.75rem;
}

.anketa-carousel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-700);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.anketa-thumb-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.anketa-thumb-btn {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--rose-100);
  transition: border-color 0.2s, transform 0.2s;
}

.anketa-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.anketa-thumb-btn:hover { transform: translateY(-2px); }

.anketa-thumb-btn.active {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.anketa-profile-header {
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 245, 247, 0.65) 100%);
}

.anketa-hero-head {
  min-width: 0;
}

.anketa-hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-400);
}

.anketa-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.anketa-hero-name {
  font-size: clamp(1.55rem, 4.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--rose-800) 0%, var(--rose-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.anketa-hero-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.18rem 0.8rem;
  border-radius: 999px;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--rose-700);
  background: linear-gradient(145deg, #fff 0%, var(--rose-50) 100%);
  border: 2px solid rgba(251, 113, 133, 0.35);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.1);
}

.anketa-profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.anketa-profile-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.anketa-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--rose-600);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.anketa-share-btn:hover {
  background: var(--rose-50);
  border-color: rgba(225, 29, 72, 0.35);
  color: var(--rose-700);
  transform: translateY(-1px);
}

.anketa-share-btn.is-copied {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

.anketa-profile-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--rose-700);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.anketa-profile-age {
  font-weight: 600;
  color: var(--rose-600);
}

.anketa-photo-open {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--rose-100);
}

.anketa-photo-zoom-hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.anketa-photo-open:hover .anketa-photo-zoom-hint,
.anketa-photo-open:focus-visible .anketa-photo-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 767.98px) {
  .anketa-photo-zoom-hint {
    opacity: 0.88;
    transform: scale(1);
  }
}

.anketa-photo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  color: var(--rose-600);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.anketa-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.anketa-meta-chips:empty {
  display: none;
  margin-bottom: 0;
}

.anketa-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  color: var(--rose-700);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

a.anketa-chip:hover {
  background: var(--rose-100);
  border-color: var(--rose-200);
  color: var(--rose-800);
}

.anketa-chip-accent {
  background: #fff;
  border-color: var(--rose-200);
}

.anketa-chip-goal {
  background: linear-gradient(135deg, var(--rose-100), #fff);
  border-color: var(--rose-200);
}

.anketa-chip-muted {
  background: #fff;
  color: #6b7280;
  border-color: #e5e7eb;
}

.anketa-profile-activity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rose-100);
}

.anketa-activity-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 575.98px) {
  .anketa-profile-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .anketa-profile-actions {
    justify-content: flex-start;
  }
}

.anketa-section {
  border-radius: 20px;
}

.anketa-bio-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
  white-space: pre-wrap;
  word-break: break-word;
}

.anketa-details-grid .anketa-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--rose-100);
  padding: 0.85rem;
}

.anketa-detail-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.anketa-detail-value {
  display: block;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.anketa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge-link {
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tag-badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.12);
  color: var(--rose-800);
}

.anketa-cta-card {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  background: linear-gradient(135deg, var(--rose-50) 0%, #fff 55%, var(--rose-50) 100%);
  border: 1px solid var(--rose-100);
}

.anketa-report-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #b0b7c3;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.anketa-report-btn:hover {
  color: var(--rose-600);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.anketa-block-form {
  position: absolute;
  top: 0.85rem;
  right: 3.15rem;
  z-index: 2;
  margin: 0;
}

.anketa-block-btn {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #b0b7c3;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.anketa-block-btn:hover {
  color: #dc2626;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.anketa-sidebar-actions {
  border-radius: 16px;
}

.anketa-sidebar-actions .anketa-cta-inner {
  padding: 0.9rem 0.85rem;
  gap: 0.65rem;
}

.anketa-sidebar-actions:has(.anketa-report-btn) .anketa-cta-inner {
  padding-right: 5.5rem;
}

.anketa-sidebar-hint {
  line-height: 1.35;
  text-align: center;
}

.anketa-sidebar-actions .anketa-cta-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.4rem;
}

.anketa-sidebar-actions .anketa-act-form {
  display: block;
  width: 100%;
}

.anketa-sidebar-actions .anketa-act-btn {
  display: flex;
  width: 100%;
  padding: 0.52rem 0.85rem;
  font-size: 0.8125rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.anketa-sidebar-actions .anketa-act-btn-primary {
  border: 2px solid transparent;
}

.anketa-sidebar-actions .anketa-report-btn {
  top: 0.65rem;
  right: 0.65rem;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .anketa-profile-photo,
  .anketa-profile-placeholder {
    max-height: min(62vh, 480px);
  }

  .anketa-sidebar-actions .anketa-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
  }

  .anketa-sidebar-actions .anketa-act-btn,
  .anketa-sidebar-actions .anketa-act-form {
    width: auto;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 8.5rem;
  }
}

.anketa-cta-inner {
  padding: 1.25rem 1.5rem;
  padding-right: 3.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.anketa-cta-text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.anketa-cta-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12);
}

.anketa-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  width: 100%;
}

.anketa-act-form {
  display: inline-flex;
  margin: 0;
}

.anketa-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.anketa-act-btn i {
  font-size: 1rem;
  line-height: 1;
  width: 1.125rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.anketa-act-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  text-decoration: none;
}

.anketa-act-btn:active:not(:disabled) {
  transform: translateY(0);
}

.anketa-act-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}

.anketa-act-btn-primary:hover:not(:disabled) {
  color: #fff;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
}

.anketa-act-btn-like {
  border: none;
  background: linear-gradient(135deg, #fb7185, var(--rose-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.anketa-act-btn-like:hover:not(:disabled) {
  color: #fff;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.32);
}

.anketa-act-btn-liked {
  background: #fff;
  border-color: var(--rose-200);
  color: var(--rose-600);
  box-shadow: none;
  cursor: default;
  opacity: 0.95;
}

.anketa-act-btn-premium {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  border-color: #fcd34d;
  color: #b45309;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.anketa-act-btn-premium:hover {
  color: #92400e;
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}

.anketa-act-btn-gift {
  background: linear-gradient(135deg, #fdf2f8, #fff);
  border-color: var(--rose-200);
  color: var(--rose-700);
}

.anketa-act-btn-gift:hover {
  background: #fff;
  border-color: var(--rose-400);
  color: var(--rose-700);
}

.anketa-act-btn-soft {
  background: #fff;
  border-color: var(--rose-200);
  color: var(--rose-700);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.anketa-act-btn-soft:hover {
  background: var(--rose-50);
  border-color: var(--rose-300);
  color: var(--rose-800);
}

.anketa-act-btn-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.anketa-act-btn-icon:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--rose-600);
}

@media (min-width: 768px) {
  .anketa-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .anketa-cta-text {
    max-width: none;
  }

  .anketa-cta-actions {
    justify-content: flex-start;
  }

  .anketa-sidebar-actions .anketa-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .sticky-lg-top { position: static; }
  .anketa-profile-photo { max-height: min(62vh, 480px); }
}

.profile-section-title i {
  margin-right: 0.35rem;
  opacity: 0.85;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb a {
  color: var(--rose-600);
  text-decoration: none;
}

.page-link {
  color: var(--rose-600);
}

.page-item.active .page-link {
  background: var(--rose-500);
  border-color: var(--rose-500);
}

.bg-rose-light, .badge.bg-rose-light {
  background: var(--rose-100) !important;
  color: var(--rose-700) !important;
}

.tag-badge, .tag-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-700);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-select.active, .tag-select:hover {
  background: var(--rose-500);
  border-color: var(--rose-500);
  color: white;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-600);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(190, 24, 93, 0.35);
  z-index: 3;
  pointer-events: none;
}

.notif-item {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.notif-item:hover { background: var(--rose-50); }
.notif-unread { background: var(--rose-50); border-left: 3px solid var(--rose-500); }

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-match { background: #ffe4e6; color: var(--rose-600); }
.notif-message { background: #dbeafe; color: #2563eb; }
.notif-like { background: #fef3c7; color: #d97706; }
.notif-view { background: #ede9fe; color: #7c3aed; }
.notif-system { background: #fef3c7; color: #b45309; }

.online-dot-wrap.is-online:not(.chat-topbar-avatar)::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.city-landing-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.crop-wrap {
  max-height: 60vh;
  background: #111;
  overflow: hidden;
  touch-action: none;
}

.crop-wrap img {
  display: block;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .photo-crop-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .photo-crop-modal .modal-body {
    padding: 0.25rem;
  }

  .crop-wrap {
    max-height: 55vh;
  }
}

/* ─── Landing page ─── */
.landing-page {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.25) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.float-heart {
  position: absolute;
  bottom: -20px;
  left: var(--x);
  font-size: calc(12px + var(--i) * 4px);
  color: var(--rose-300);
  opacity: 0.4;
  animation: float-up 12s linear infinite;
  animation-delay: var(--d);
}

.float-heart::before {
  content: '♥';
}

@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.landing-hero {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: white;
  color: var(--romantic-red);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(230, 57, 86, 0.08);
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-trust {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-glow.btn-rose {
  box-shadow: none;
  animation: btn-glow-rose 3s ease-in-out infinite;
}

.btn-glow.btn-white {
  animation: btn-glow-white 3s ease-in-out infinite;
}

@keyframes btn-glow-rose {
  0%, 100% { filter: drop-shadow(0 3px 9px rgba(230, 57, 86, 0.24)); }
  50% { filter: drop-shadow(0 6px 18px rgba(230, 57, 86, 0.38)); }
}

@keyframes btn-glow-white {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.14)); }
  50% { filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.22)); }
}

.animate-in {
  animation: fade-in-up 0.8s ease backwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.swipe-float {
  animation: swipe-float 5s ease-in-out infinite;
}

@keyframes swipe-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.swipe-demo-wrap {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  overflow: visible;
}

.landing-hero-duo {
  max-width: 520px;
  padding: 0.5rem 0;
}

.landing-hero-duo__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  position: relative;
}

.landing-match-celebration {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  animation: landing-match-enter 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) 1s backwards;
}

.landing-match-celebration__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9rem;
  height: 9rem;
  margin-left: -4.5rem;
  margin-top: -2.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.45) 0%, rgba(244, 63, 94, 0.12) 45%, transparent 72%);
  animation: landing-match-glow 2.4s ease-in-out infinite;
  z-index: 0;
}

.landing-match-celebration__sparks {
  position: absolute;
  top: 0.15rem;
  left: 50%;
  width: 5.5rem;
  height: 5.5rem;
  margin-left: -2.75rem;
  z-index: 1;
}

.landing-match-celebration__sparks span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.8);
  animation: landing-match-spark 2.2s ease-in-out infinite;
}

.landing-match-celebration__sparks span:nth-child(1) { top: 8%; left: 50%; animation-delay: 0s; }
.landing-match-celebration__sparks span:nth-child(2) { top: 22%; left: 88%; animation-delay: 0.35s; width: 4px; height: 4px; }
.landing-match-celebration__sparks span:nth-child(3) { top: 55%; left: 95%; animation-delay: 0.7s; }
.landing-match-celebration__sparks span:nth-child(4) { top: 82%; left: 62%; animation-delay: 1.05s; width: 4px; height: 4px; }
.landing-match-celebration__sparks span:nth-child(5) { top: 78%; left: 18%; animation-delay: 1.4s; }
.landing-match-celebration__sparks span:nth-child(6) { top: 28%; left: 6%; animation-delay: 1.75s; width: 4px; height: 4px; }

.landing-match-celebration__badge {
  position: relative;
  z-index: 2;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 55%, #be123c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow:
    0 10px 28px rgba(225, 29, 72, 0.42),
    0 0 0 3px #fff,
    0 0 0 5px rgba(251, 113, 133, 0.25);
  animation: landing-match-heart 1.7s ease-in-out infinite;
}

.landing-match-celebration__body {
  position: relative;
  z-index: 2;
  margin-top: 0.7rem;
  padding: 0.55rem 1rem 0.62rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 14px 36px rgba(190, 18, 60, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  min-width: 9.5rem;
}

.landing-match-celebration__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--rose-600);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-match-celebration__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #9f1239;
  white-space: nowrap;
}

.landing-match-celebration__action i {
  color: var(--rose-500);
  font-size: 0.85rem;
}

@keyframes landing-match-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes landing-match-heart {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.1); }
  55% { transform: scale(1.06); }
}

@keyframes landing-match-glow {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes landing-match-spark {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

.landing-hero-card {
  width: 100%;
  margin: 0;
}

.landing-hero-card--primary {
  z-index: 2;
}

.landing-hero-card--secondary {
  z-index: 1;
  margin-top: 1.75rem;
}

.landing-hero-duo .swipe-card-info {
  padding: 1.35rem 1rem 1rem;
}

.landing-hero-duo .swipe-card-info h3 {
  font-size: 1.15rem;
}

.landing-hero-duo .swipe-card-info p {
  font-size: 0.78rem;
}

.landing-hero-duo .swipe-demo-actions {
  bottom: 4.5rem;
  gap: 1.25rem;
}

.swipe-card-demo {
  box-shadow: 0 20px 60px rgba(225, 29, 72, 0.2);
}

.swipe-demo-actions {
  position: absolute;
  bottom: 5.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  pointer-events: none;
}

.swipe-demo-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.swipe-demo-btn.skip { color: #ef4444; animation: demo-nudge-left 4s ease-in-out infinite; }
.swipe-demo-btn.like { color: var(--rose-500); animation: demo-nudge-right 4s ease-in-out infinite; }

@keyframes demo-nudge-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@keyframes demo-nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.landing-stats {
  position: relative;
  z-index: 1;
  padding: 0 0 3rem;
}

.stat-pill {
  background: white;
  border-radius: 20px;
  padding: 1.25rem 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}

.stat-pill:hover {
  transform: translateY(-4px);
}

.stat-pill-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--rose-600);
  line-height: 1;
}

.stat-pill-label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.landing-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.landing-section-alt {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rose-700);
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0.5rem auto 0;
}

.landing-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-eyebrow--max {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.landing-auth-section {
  padding-top: 3rem;
}

.landing-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.landing-auth-card {
  height: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 8px 28px rgba(230, 57, 86, 0.06);
}

.landing-auth-card--vk {
  border-color: rgba(0, 119, 255, 0.15);
  background: linear-gradient(145deg, rgba(240, 248, 255, 0.95), #fff);
}

.landing-auth-card--max {
  border-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.95), #fff);
}

.landing-auth-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.landing-auth-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  color: #fff;
}

.landing-auth-card__icon--vk {
  background: linear-gradient(135deg, #0077ff, #005bd4);
}

.landing-auth-card__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18);
}

.landing-auth-card__tagline {
  font-size: 0.78rem;
  color: #6b7280;
}

.landing-auth-card__site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
}

.landing-auth-card__site-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

.landing-auth-card__text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #6b7280;
}

.landing-auth-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
}

.landing-auth-card__list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.28rem;
}

.landing-auth-card__list li:last-child {
  margin-bottom: 0;
}

.landing-auth-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
}

.landing-auth-card__list strong {
  color: #374151;
  font-weight: 600;
}

.landing-auth-foot {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .landing-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps — horizontal timeline */
.landing-steps-section {
  padding-bottom: 3rem;
}

.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.landing-steps::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--rose-200), var(--rose-400), var(--rose-200));
  z-index: 0;
}

.landing-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.landing-step-marker {
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose-200);
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-step:hover .landing-step-marker {
  transform: scale(1.06);
  border-color: var(--rose-400);
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.18);
}

.landing-step-num {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--rose-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.landing-step-marker i {
  font-size: 1.65rem;
  color: var(--rose-500);
}

.landing-step-body {
  max-width: 17rem;
}

.landing-step-body h3 {
  font-weight: 700;
  color: var(--rose-800, var(--rose-700));
}

.landing-step-body p {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pitch — equal centered cards */
.landing-pitch-section {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.landing-pitch-lead {
  max-width: 34rem;
}

.landing-pitch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-pitch-card {
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-pitch-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose-200);
  box-shadow: 0 14px 40px rgba(225, 29, 72, 0.12);
}

.landing-pitch-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-50), var(--rose-100));
  color: var(--rose-600);
  font-size: 1.35rem;
}

.landing-pitch-card h3 {
  font-weight: 700;
  color: var(--rose-800, var(--rose-700));
}

.landing-pitch-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.landing-pitch-card p a {
  color: var(--rose-600);
  font-weight: 600;
  text-decoration: none;
}

.landing-pitch-card p a:hover {
  text-decoration: underline;
}

/* Features — unified panel grid */
.landing-features-section {
  padding-top: 3.5rem;
}

.landing-features-panel {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--rose-100);
  box-shadow: var(--card-shadow);
  padding: 1.75rem 1.5rem 1.25rem;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.landing-feature-item:hover {
  background: var(--rose-50);
}

.landing-feature-item > i {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-50), var(--rose-100));
  color: var(--rose-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.landing-feature-item strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--rose-800, var(--rose-700));
  font-size: 0.95rem;
}

.landing-feature-item p {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
}

.landing-features-foot {
  margin-top: 0.75rem;
  padding: 1rem 1rem 0.25rem;
  border-top: 1px solid var(--rose-100);
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.landing-features-foot a {
  color: var(--rose-600);
  font-weight: 600;
  text-decoration: none;
}

.landing-features-foot a:hover {
  text-decoration: underline;
}

.landing-why-lead {
  font-size: 1rem;
  line-height: 1.65;
}

a.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  background: #fff;
  border-radius: 9999px;
  color: var(--rose-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(225, 29, 72, 0.08);
  border: 1px solid var(--rose-100);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.city-chip:hover,
a.city-chip:focus,
a.city-chip:focus-visible {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.22);
}

a.city-chip-more {
  border: 2px dashed var(--rose-300);
  background: transparent;
  box-shadow: none;
}

a.city-chip-more:hover,
a.city-chip-more:focus,
a.city-chip-more:focus-visible {
  background: var(--rose-50);
  border-color: var(--rose-500);
  color: var(--rose-700);
  box-shadow: none;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: #4b5563;
}

.why-list i {
  color: var(--rose-500);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.city-cloud {
  font-size: 1rem;
  line-height: 1.65;
}

.landing-prose-section {
  padding-top: 0.5rem;
}

.landing-prose {
  padding: 2rem 2.25rem;
}

.landing-prose p {
  margin-bottom: 1.1rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
}

.landing-prose p:last-child {
  margin-bottom: 0;
}

.landing-prose a {
  font-weight: 600;
}

.landing-prose-lead {
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .landing-pitch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .landing-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-steps::before {
    display: none;
  }

  .landing-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0;
    gap: 1rem;
  }

  .landing-step-marker {
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .landing-step-marker i {
    font-size: 1.35rem;
  }

  .landing-step-body {
    max-width: none;
    padding-top: 0.35rem;
  }

  .landing-pitch-grid {
    grid-template-columns: 1fr;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-features-panel {
    padding: 1.25rem 1rem 1rem;
  }

  .landing-prose {
    padding: 1.35rem 1.15rem;
  }
}

.testimonial-rotator {
  position: relative;
  padding: 1rem 0 0.25rem;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--rose-400);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.testimonial-card.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.testimonial-card--secondary {
  margin-top: 1rem;
  margin-left: 2rem;
}

.testimonial-card p,
.testimonial-text {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.testimonial-card footer,
.testimonial-author {
  font-size: 0.85rem;
  color: #9ca3af;
}

.testimonial-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-left: 1rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rose-200);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot:hover {
  background: var(--rose-400);
}

.testimonial-dot.is-active {
  background: var(--rose-500);
  transform: scale(1.25);
}

.testimonial-dot:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: 2px;
}

.landing-faq .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(225, 29, 72, 0.06);
}

.landing-faq .accordion-button {
  font-weight: 600;
  color: var(--rose-700);
  background: white;
  box-shadow: none;
}

.landing-faq .accordion-button:not(.collapsed) {
  background: var(--rose-50);
  color: var(--rose-700);
}

.landing-faq .accordion-button:focus {
  box-shadow: none;
  border-color: var(--rose-200);
}

.landing-cta {
  position: relative;
  z-index: 1;
  margin: 2rem 0 0;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  color: white;
}

.site-main:has(.landing-page) {
  padding-bottom: 0;
}

.site-body:has(.landing-page) .site-footer {
  margin-top: 0;
  padding-top: 2rem;
  border-top: none;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

.landing-cta .btn-white.btn-lg,
.landing-cta .btn-outline-white.btn-lg {
  min-height: 3.25rem;
  padding: 0.72rem 1.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-cta .btn-light.btn-lg,
.landing-cta .btn-outline-light.btn-lg {
  min-height: 3.25rem;
  padding: 0.72rem 1.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-cta .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.8);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  overflow: hidden;
}

.landing-cta .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.captcha-wrap {
  min-height: 102px;
}

@media (max-width: 991px) {
  .landing-hero { text-align: center; }
  .hero-title { font-size: 2.25rem; }
  .testimonial-card--secondary { margin-left: 0; }

  .landing-hero-duo {
    max-width: 300px;
  }

  .landing-match-celebration {
    top: 14%;
  }

  .landing-match-celebration__body {
    min-width: 8.5rem;
    padding: 0.5rem 0.85rem 0.55rem;
  }

  .landing-match-celebration__title {
    font-size: 0.88rem;
  }

  .landing-match-celebration__action {
    font-size: 0.68rem;
  }

  .landing-match-celebration__badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .landing-hero-duo__cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .landing-hero-card--secondary {
    display: none;
  }

  .landing-hero-card--primary {
    margin-top: 0;
  }

  .landing-section .section-title,
  .landing-section .section-subtitle,
  .landing-app-section .section-title,
  .landing-app-section .text-muted,
  .landing-app-stores,
  .landing-app-note,
  .landing-app-stores__label {
    text-align: center !important;
  }

  .landing-app-stores,
  .landing-app-note {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-store-row {
    justify-content: center;
  }

  .landing-section .why-list {
    text-align: left;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-section .row > [class*="col-lg-6"]:first-child {
    text-align: center;
  }
}

.city-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-facts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rose-50);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.city-facts-list li:last-child { border-bottom: none; }

.landing-variant-b .city-landing-title {
  font-style: italic;
}

.landing-variant-b .card-premium {
  border-top: 3px solid var(--rose-400);
}

.city-landing-page header {
  animation: fade-in-up 0.6s ease;
}

/* Premium selects */
.form-select {
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  font-weight: 500;
  color: #374151;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.select-premium-wrap {
  position: relative;
}

.select-premium-wrap .select-premium-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-400);
  pointer-events: none;
  z-index: 3;
  font-size: 1rem;
  line-height: 1;
}

.select-premium-wrap .select-premium-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-400);
  pointer-events: none;
  font-size: 0.85rem;
}

.select-premium {
  width: 100%;
  appearance: none;
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  padding: 0.72rem 2.5rem 0.72rem 2.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: #fff;
  color: #374151;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-premium:hover:not(:disabled):not(:focus) {
  border-color: var(--rose-200);
}

.select-premium:focus {
  outline: none;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

/* Auth / registration */
.auth-page {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255, 255, 255, 0.98), transparent 55%),
    linear-gradient(180deg, #fff5f8 0%, #ffffff 38%, #fff0f5 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.25rem, 8vw, 5.5rem);
}

.auth-page--login {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.25rem, 8vw, 5.5rem);
}

.auth-page--login + .site-footer,
.auth-page .site-footer {
  margin-top: auto;
}

.auth-page-inner {
  width: 100%;
}

.auth-page .card-premium,
.auth-login-card {
  border: 1px solid rgba(251, 113, 133, 0.24);
  box-shadow:
    0 22px 56px rgba(230, 57, 86, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.auth-login-card {
  overflow: hidden;
}

.auth-login-head {
  padding: 1.35rem 1.5rem 1rem;
  background: linear-gradient(135deg, #fff7f9, #ffffff);
  border-bottom: 1px solid var(--rose-100);
}

.auth-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
}

.auth-login-icon .brand-logo {
  width: 48px;
  height: 48px;
}

.auth-login-body {
  padding: 1.25rem 1.5rem 1.35rem;
}

.auth-login-card .vk-id-block {
  margin-bottom: 0.5rem !important;
}

.auth-login-card .auth-divider {
  margin: 0.65rem 0;
  font-size: 0.8rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.auth-field__hint {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ca3af;
}

.auth-max-intro {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.auth-max-intro__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.auth-max-intro__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18);
}

.auth-max-intro__brand-text {
  min-width: 0;
}

.auth-max-intro__title {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  color: #1f2937;
}

.auth-max-intro__site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
}

.auth-max-intro__site-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

.auth-max-intro__site-link .bi {
  font-size: 0.72rem;
}

.auth-max-intro__lead {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
}

.auth-max-intro__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
}

.auth-max-intro__list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.3rem;
}

.auth-max-intro__list li:last-child {
  margin-bottom: 0;
}

.auth-max-intro__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
}

.auth-max-intro__list strong {
  color: #374151;
  font-weight: 600;
}

.auth-max-status {
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(255, 255, 255, 0.98));
  padding: 0.85rem 1rem;
}

.auth-max-status__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6b7280;
}

.auth-max-status__inner .bi {
  flex-shrink: 0;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.auth-max-status__inner strong {
  display: block;
  color: #1f2937;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.auth-max-status__inner--ready .bi {
  color: #16a34a;
}

.auth-max-status__inner--wait .bi {
  color: #6366f1;
}

.auth-max-status__btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin-right: 0.35rem;
  vertical-align: -4px;
}

.auth-tel-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tel-field:focus-within {
  border-color: var(--rose-400, #fb7185);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.auth-tel-field__icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--rose-400);
}

.auth-tel-field__code {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  padding-right: 0.55rem;
  margin-right: 0.15rem;
  border-right: 1px solid var(--rose-100);
  user-select: none;
}

.auth-tel-field__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #1f2937;
}

.auth-tel-field__input::placeholder {
  color: #cbd5e1;
  font-weight: 400;
}

.auth-login-form--phone .captcha-wrap {
  margin-bottom: 0.85rem !important;
}

.auth-login-form .auth-login-submit {
  margin-top: 0.15rem;
}

.auth-field--otp {
  margin-bottom: 1.15rem;
}

.auth-otp {
  display: flex;
  justify-content: center;
  gap: clamp(0.4rem, 2.5vw, 0.6rem);
  margin: 0.5rem 0 0.65rem;
}

.auth-otp__cell {
  width: clamp(2.5rem, 12vw, 3rem);
  height: clamp(2.75rem, 13vw, 3.25rem);
  padding: 0;
  text-align: center;
  font-size: clamp(1.15rem, 5vw, 1.35rem);
  font-weight: 600;
  line-height: 1;
  color: #1f2937;
  border: 2px solid var(--rose-100);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  caret-color: var(--rose-500, #f43f5e);
}

.auth-otp__cell:focus {
  outline: none;
  border-color: var(--rose-400, #fb7185);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.auth-otp__cell--filled {
  border-color: var(--rose-200);
  background: #fffafb;
}

.auth-link-muted {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
}

.auth-link-muted:hover {
  color: var(--rose-600, #e11d48);
}

.auth-login-card .captcha-wrap {
  margin-bottom: 0.65rem !important;
}

.auth-login-card .form-label-sm {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.auth-login-submit {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.auth-login-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.auth-login-links__dot {
  color: #d1d5db;
  user-select: none;
}

.site-main:has(.auth-page--login) {
  padding-bottom: 0;
}

.site-main:has(.auth-page) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  min-height: calc(100dvh - 4.5rem);
}

.site-body:has(.auth-page) .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(251, 113, 133, 0.16);
}

.auth-card-header {
  padding: 2.25rem 1.75rem 1.65rem;
  background: linear-gradient(135deg, #fff7f9, #ffffff);
  border-bottom: 1px solid var(--rose-100);
}

.auth-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-icon-wrap .brand-logo {
  width: 56px;
  height: 56px;
}

.birth-date-preview {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
}

.birth-date-preview[hidden] {
  display: none !important;
}

.birth-date-preview-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--rose-100);
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  box-shadow: var(--card-shadow);
}

.birth-date-preview-symbol {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: 0 4px 14px rgba(230, 57, 86, 0.08);
}

.birth-date-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  flex: 1;
}

.birth-date-preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-500);
}

.birth-date-preview-zodiac {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}

.birth-date-preview-age {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
}

.birth-date-field {
  width: 100%;
  margin-bottom: 0.25rem;
  container-type: inline-size;
}

.birth-date-field.is-invalid .birth-date-picker {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.birth-date-field.is-valid .birth-date-picker {
  border-color: rgba(251, 113, 133, 0.45);
}

.birth-date-picker {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.65rem 0.55rem;
  padding: 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, var(--rose-50) 100%);
  border: 1px solid var(--rose-100);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.06);
}

.birth-date-picker-segment {
  min-width: 0;
}

.birth-date-picker-segment--year {
  grid-column: 1 / -1;
}

.birth-date-picker-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-400);
}

.birth-date-picker-kicker i {
  margin-right: 0.2rem;
}

.birth-date-select-wrap {
  margin-bottom: 0;
  width: 100%;
}

.birth-date-select-wrap .ui-select {
  width: 100%;
}

.birth-date-select-wrap .ui-select-trigger,
.birth-date-select-wrap.ui-select-wrap .ui-select--premium .ui-select-trigger {
  min-height: 2.55rem;
  padding: 0.5rem 1.85rem 0.5rem 0.75rem;
  font-size: 0.92rem;
  line-height: 1.25;
  border-radius: 12px;
  border-width: 1px;
}

.birth-date-select-wrap .select-premium {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.5rem 1.85rem 0.5rem 0.75rem;
  font-size: 0.92rem;
  line-height: 1.25;
  border-radius: 12px;
  border-width: 1px;
}

.birth-date-select-wrap .select-premium-chevron {
  right: 0.65rem;
  font-size: 0.75rem;
  z-index: 2;
}

@container (min-width: 420px) {
  .birth-date-picker {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.15fr) minmax(0, 0.82fr);
  }

  .birth-date-picker-segment--year {
    grid-column: auto;
  }
}

.birth-date-feedback {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #dc2626;
  font-weight: 600;
}

.birth-date-feedback[hidden] {
  display: none !important;
}

@container (max-width: 360px) {
  .birth-date-picker {
    grid-template-columns: 1fr;
  }

  .birth-date-picker-segment--year {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .birth-date-picker {
    grid-template-columns: 1fr 1fr;
  }

  .birth-date-picker-segment--year {
    grid-column: 1 / -1;
  }
}

/* ——— Знак зодиака в профиле ——— */
.zodiac-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-top: 0.75rem;
  border: 1px solid var(--rose-100);
  border-radius: 20px;
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  box-shadow: var(--card-shadow);
}

.zodiac-card--settings,
.app-page .zodiac-card {
  margin-top: 0;
}

.zodiac-card-symbol {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.75rem;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: 0 4px 14px rgba(230, 57, 86, 0.1);
}

.zodiac-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.zodiac-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-500);
}

.zodiac-card-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}

.zodiac-card-bday {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
}

.zodiac-card-bday .bi {
  color: var(--rose-400);
}

.zodiac-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}

.zodiac-badge--hero {
  padding: 0.2rem 0.75rem 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  color: var(--zodiac-accent, #c2410c);
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, var(--zodiac-from, #fff7ed) 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.zodiac-badge--hero .zodiac-badge-symbol {
  font-size: 1.15rem;
  line-height: 1;
}

.zodiac-badge--inline {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--zodiac-from, #fff7ed);
  color: var(--zodiac-accent, #c2410c);
  font-size: 0.82rem;
  font-weight: 700;
}

.zodiac-badge--mini {
  width: 1.65rem;
  height: 1.65rem;
  justify-content: center;
  border-radius: 999px;
  background: var(--zodiac-from, #fff7ed);
  color: var(--zodiac-accent, #c2410c);
  font-size: 0.95rem;
}

.zodiac-sign--aries { --zodiac-from: #fff1f2; --zodiac-to: #ffe4e6; --zodiac-accent: #e11d48; }
.zodiac-sign--taurus { --zodiac-from: #ecfdf5; --zodiac-to: #d1fae5; --zodiac-accent: #059669; }
.zodiac-sign--gemini { --zodiac-from: #eff6ff; --zodiac-to: #dbeafe; --zodiac-accent: #2563eb; }
.zodiac-sign--cancer { --zodiac-from: #f5f3ff; --zodiac-to: #ede9fe; --zodiac-accent: #7c3aed; }
.zodiac-sign--leo { --zodiac-from: #fff7ed; --zodiac-to: #ffedd5; --zodiac-accent: #ea580c; }
.zodiac-sign--virgo { --zodiac-from: #f0fdf4; --zodiac-to: #dcfce7; --zodiac-accent: #16a34a; }
.zodiac-sign--libra { --zodiac-from: #fdf2f8; --zodiac-to: #fce7f3; --zodiac-accent: #db2777; }
.zodiac-sign--scorpio { --zodiac-from: #faf5ff; --zodiac-to: #f3e8ff; --zodiac-accent: #7e22ce; }
.zodiac-sign--sagittarius { --zodiac-from: #fffbeb; --zodiac-to: #fef3c7; --zodiac-accent: #d97706; }
.zodiac-sign--capricorn { --zodiac-from: #f8fafc; --zodiac-to: #e2e8f0; --zodiac-accent: #475569; }
.zodiac-sign--aquarius { --zodiac-from: #ecfeff; --zodiac-to: #cffafe; --zodiac-accent: #0891b2; }
.zodiac-sign--pisces { --zodiac-from: #eef2ff; --zodiac-to: #e0e7ff; --zodiac-accent: #4f46e5; }

.swipe-card-info .swipe-zodiac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  font-size: 0.9em;
  background: linear-gradient(135deg, var(--zodiac-from, #fff7ed) 0%, var(--zodiac-to, #ffedd5) 100%);
  color: var(--zodiac-accent, #c2410c);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  vertical-align: middle;
}

.auth-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px dashed var(--rose-100);
}

.auth-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.auth-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-700);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-500);
  color: white;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-400);
  z-index: 3;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.input-premium {
  border-radius: 14px !important;
  border: 2px solid var(--rose-100) !important;
  padding: 0.72rem 1rem 0.72rem 2.75rem !important;
  background: #fff !important;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-premium:hover:not(:disabled):not(:focus) {
  border-color: var(--rose-200) !important;
}

.input-premium:focus {
  border-color: var(--rose-400) !important;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12) !important;
}

textarea.input-premium {
  padding-left: 1rem !important;
}

.age-picker {
  background: linear-gradient(135deg, var(--rose-50), #fff);
  border: 2px solid var(--rose-100);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.age-picker-display {
  margin-bottom: 0.75rem;
}

.age-picker-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--rose-600);
  line-height: 1;
}

.age-picker-label {
  display: block;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.age-range {
  width: 100%;
  height: 8px;
  accent-color: var(--rose-500);
  cursor: pointer;
}

.age-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.choice-grid {
  display: grid;
  gap: 0.6rem;
}

.choice-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 576px) {
  .choice-grid-3 { grid-template-columns: 1fr; }
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--rose-100);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.choice-card i {
  font-size: 1.4rem;
  color: var(--rose-400);
}

.choice-card:hover {
  border-color: var(--rose-300);
  background: var(--rose-50);
}

.choice-card.active {
  border-color: var(--rose-500);
  background: linear-gradient(135deg, var(--rose-50), #fff);
  color: var(--rose-700);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12);
}

.choice-card.active i {
  color: var(--rose-600);
}

.password-meter span {
  font-size: 0.8rem;
  font-weight: 600;
}

.password-meter span.weak { color: #ef4444; }
.password-meter span.medium { color: #f59e0b; }
.password-meter span.strong { color: #22c55e; }

.auth-submit {
  border-radius: 50px;
  padding: 0.85rem;
}

.slug-hint {
  font-size: 0.8rem;
  color: #9ca3af;
}

.map-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  min-height: 500px;
}

.map-toolbar {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--rose-100);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.map-city-select {
  min-width: 200px;
}

.map-container {
  flex: 1;
  min-height: 400px;
  background: var(--rose-50);
}

.map-hint {
  background: #fff;
  border-top: 1px solid var(--rose-100);
}

.map-balloon {
  display: flex;
  gap: 12px;
  max-width: 300px;
  font-family: var(--bs-body-font-family, system-ui, sans-serif);
}

.map-balloon-photo {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--rose-50);
}

.map-balloon-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-400);
  font-size: 1.6rem;
}

.map-balloon-body {
  min-width: 0;
  flex: 1;
}

.map-balloon-head {
  margin-bottom: 4px;
}

.map-balloon-name {
  display: block;
  color: var(--rose-800);
  font-size: 1rem;
  line-height: 1.2;
}

.map-balloon-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.map-balloon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.map-balloon-badge--premium {
  background: #fff7ed;
  color: #c2410c;
}

.map-balloon-badge--online {
  background: #ecfdf5;
  color: #047857;
}

.map-balloon-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.map-balloon-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-balloon-bio {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #374151;
  margin: 0 0 8px;
}

.map-balloon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.map-balloon-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-700);
}

.map-balloon-link {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rose-600);
  text-decoration: none;
}

.map-balloon-link:hover {
  color: var(--rose-700);
  text-decoration: underline;
}

.map-fallback-card .map-fallback-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.promo-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--rose-50), #fff);
}

/* Legacy flash banners — only notify toasts */
.site-flash-alerts,
[data-site-flash] {
  display: none !important;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  position: relative;
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(255, 245, 247, 0.92) 0%, #fff 38%, #fdf2f8 100%);
  border-top: 1px solid rgba(251, 113, 133, 0.18);
  overflow: visible;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding: 0 0 2rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 28rem;
    margin-inline: auto;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-about {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links-list li {
    display: flex;
    justify-content: center;
  }

  .footer-logout {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding-top: 0;
  }
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-brand.brand-mark {
  margin-right: 0;
}

.footer-brand .brand-logo-sm {
  margin-top: 0;
}

.footer-brand .brand-name-footer {
  font-size: 1.15rem;
}

.footer-brand .brand-tag {
  margin-top: -0.42rem;
}

.footer-about {
  font-size: 0.875rem;
  color: #6b7280;
  max-width: 280px;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.footer-age-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rose-600);
  background: #fff;
  border: 2px solid var(--rose-200);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-700);
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li { margin-bottom: 0.45rem; }

.footer-links-list a,
.footer-logout button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links-list a:hover,
.footer-logout button:hover {
  color: var(--rose-600);
}

.footer-bottom {
  border-top: 1px solid var(--rose-100);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.footer-meta {
  margin-top: 0.35rem !important;
  font-size: 0.75rem !important;
}

.footer-meta .bi-heart-fill { font-size: 0.65rem; }

.legal-list .list-group-item {
  border-color: var(--rose-100);
  padding: 1rem 1.25rem;
}

.legal-doc section h2 { color: var(--rose-700); }

.legal-related-card {
  overflow: visible;
}

.legal-related-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-700);
  font-weight: 700;
  margin-bottom: 1rem !important;
}

.legal-related-title .bi {
  color: var(--rose-500);
}

.legal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

@media (min-width: 576px) {
  .legal-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.legal-related-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--rose-100);
  background: var(--rose-50);
  color: var(--rose-700);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  height: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.legal-related-link:hover {
  border-color: var(--rose-300);
  background: #fff;
  color: var(--rose-700);
  box-shadow: 0 4px 14px rgba(230, 57, 86, 0.08);
}

.legal-related-link.is-active {
  border-color: var(--rose-400);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rose-200);
  color: var(--rose-800);
}

.legal-related-link .bi {
  flex-shrink: 0;
  opacity: 0.85;
}

.legal-related-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rose-100);
}

.legal-related-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rose-600);
  text-decoration: none;
}

.legal-related-back:hover {
  color: var(--rose-700);
}


.photo-thumb.is-primary { box-shadow: 0 0 0 2px var(--rose-500); }

.photo-thumb-actions {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
}

.anketa-gallery .carousel-indicators.anketa-indicators {
  position: static;
  margin: 0;
  padding: 0.5rem;
  justify-content: center;
}

.anketa-thumb-btn {
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
}

.anketa-thumb-btn.active { border-color: var(--rose-500); }

.admin-chat-log { max-height: 70vh; overflow-y: auto; }

.admin-chat-page .admin-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 820px);
  overflow: hidden;
}

.admin-chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rose-100);
  background: linear-gradient(180deg, #fffafb, #fff);
}

.admin-chat-toolbar__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.admin-chat-legend {
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rose-100);
}

.admin-chat-legend--u2 {
  color: var(--rose-700);
  border-color: rgba(251, 113, 133, 0.35);
  background: var(--rose-50);
}

.admin-chat-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-chat-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.admin-chat-filter input {
  accent-color: var(--rose-500);
}

.admin-chat-page .admin-chat-log {
  flex: 1;
  max-height: none;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 228, 235, 0.35), transparent 45%),
    #fafafa;
}

.admin-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 240px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.admin-chat-empty i {
  font-size: 2rem;
  opacity: 0.45;
}

.admin-chat-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-chat-stats__grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: var(--rose-50);
  font-size: 0.82rem;
}

.admin-chat-stats__grid strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.admin-chat-participant--u1 {
  border-left: 3px solid #e5e7eb;
}

.admin-chat-participant--u2 {
  border-left: 3px solid var(--rose-400);
}

.admin-chat-ban__toggle {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dc2626;
  list-style: none;
}

.admin-chat-ban__toggle::-webkit-details-marker {
  display: none;
}

.admin-chat-msg-wrap {
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.admin-chat-msg-wrap.is-flagged {
  background: rgba(255, 243, 205, 0.55);
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-chat-msg-wrap--highlight {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.admin-chat-msg-wrap.sender-banned {
  opacity: 0.72;
}

.admin-chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.78rem;
}

.admin-chat-msg-head strong {
  font-size: 0.82rem;
}

.admin-chat-msg-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding-left: 0.35rem;
}

.admin-chat-page .chat-bubble-wrap {
  max-width: min(85%, 480px);
}

.admin-chat-gift-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-chat-list-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-chat-list-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.admin-chat-list-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-chat-list-avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-50);
  color: var(--rose-400);
  border: 1px solid var(--rose-100);
}

.admin-chat-list-sep {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.admin-chat-list-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.admin-chat-list-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 360px;
}

.admin-chat-list-preview__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  color: #374151;
}

.admin-data-row.is-flagged-row {
  background: rgba(255, 251, 235, 0.55);
}

.admin-badge--xs {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.admin-chat-msg {
  padding: 0.75rem;
  border-bottom: 1px solid var(--rose-100);
}

.admin-chat-msg.is-flagged { background: #fff8e6; }

.admin-chat-msg.sender-banned { opacity: 0.65; }

.admin-chat-body { max-width: 100%; }

.admin-chat-media--image .admin-chat-image {
  display: block;
  max-width: min(280px, 100%);
  max-height: 320px;
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
}

.admin-chat-caption {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-700, #374151);
}

.admin-chat-media--voice {
  max-width: 320px;
}

.admin-chat-media--voice .chat-voice-msg {
  background: var(--rose-50, #fff1f2);
  border-radius: 14px;
  padding: 0.45rem 0.65rem;
}

.admin-chat-media--gift {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--rose-50, #fff1f2);
  max-width: 360px;
}

.admin-chat-gift-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-chat-gift-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--rose-500);
  flex-shrink: 0;
}

/* Unified custom selects (ui-select.js) */
.ui-select {
  position: relative;
  width: 100%;
  z-index: 1;
}

.ui-select.is-open {
  z-index: 30;
}

.ui-select-wrap {
  position: relative;
  z-index: 1;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

.ui-select-trigger {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-trigger::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--rose-400);
  border-bottom: 2px solid var(--rose-400);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
  pointer-events: none;
}

.ui-select.is-open .ui-select-trigger {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.ui-select.is-open .ui-select-trigger::after {
  transform: translateY(-35%) rotate(-135deg);
}

.ui-select--premium .ui-select-trigger {
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
}

.ui-select-wrap .select-premium-chevron { display: none; }

.ui-select-dropdown {
  display: none;
  position: fixed;
  left: 0;
  right: auto;
  top: 0;
  z-index: 1200;
  min-width: 300px;
  max-height: min(320px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--rose-100);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14), 0 8px 24px rgba(190, 24, 93, 0.12);
  padding: 0.35rem;
}

.ui-select.is-open .ui-select-dropdown {
  display: block;
  animation: ui-select-in 0.15s ease;
}

@keyframes ui-select-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ui-select-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ui-select-option[hidden] {
  display: none !important;
}

.ui-select-option:hover,
.ui-select-option.is-focused {
  background: var(--rose-50);
  color: var(--rose-700);
}

.ui-select-option.is-selected {
  background: var(--rose-100);
  color: var(--rose-700);
}

.ui-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ui-select-option--with-region {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.25;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ui-select-option-main {
  font-weight: 600;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.ui-select-option-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.ui-select-option:hover .ui-select-option-sub,
.ui-select-option.is-focused .ui-select-option-sub,
.ui-select-option.is-selected .ui-select-option-sub {
  color: var(--rose-500);
}

.ui-select-group-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.45rem 0.85rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  background: #fff;
}

.ui-select-group-label[hidden] {
  display: none !important;
}

.ui-select--searchable .ui-select-group-label {
  top: 3.1rem;
}

.ui-select-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.5rem;
  background: #fff;
  border-bottom: 1px solid var(--rose-100);
}

.ui-select-search {
  border-radius: 10px;
  border: 1px solid var(--rose-100);
  padding: 0.45rem 0.65rem 0.45rem 2rem;
  background: var(--rose-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fb7185' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.06a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") no-repeat 0.55rem center;
}

.ui-select-search:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
}

.ui-select-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

.ui-select--searchable .ui-select-dropdown {
  max-height: min(320px, 50vh);
}

/* Legacy form-select — same look before JS enhances */
.form-select,
.select-premium {
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  font-weight: 500;
  color: #374151;
  background-color: #fff;
}

/* Profile extended + wall */
.profile-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-600);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rose-100);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.profile-detail-item {
  background: var(--rose-50);
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.profile-detail-item i {
  color: var(--rose-500);
  margin-right: 0.25rem;
}

.profile-detail-item .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.wall-card {
  margin-top: 0;
  border-radius: 20px;
}

.wall-compose textarea {
  border-radius: 14px;
  border: 2px solid var(--rose-100);
  resize: vertical;
  min-height: 88px;
}

.wall-post {
  padding: 1rem 0 1rem 1.25rem;
  border-bottom: 1px solid var(--rose-100);
  border-left: 3px solid var(--rose-200);
  margin-left: 0.25rem;
}

.wall-post:last-child { border-bottom: none; }

.wall-post time {
  font-size: 0.75rem;
  color: #9ca3af;
}

.wall-post-text {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.anketa-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .anketa-cta:has(p + .btn-actions) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.profile-unavailable-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-unavailable-icon.deleted {
  background: var(--rose-50);
  color: var(--rose-400);
}

.profile-unavailable-icon.banned {
  background: #fff3cd;
  color: #856404;
}

.profile-unavailable-icon.blocked {
  background: #f8f9fa;
  color: #6c757d;
}

.profile-unavailable-detail {
  color: var(--text-muted, #6c757d);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.account-recover-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-page-actions .btn {
  margin: 0 !important;
}

/* Ad blocks */
.ad-slot {
  margin: 1rem 0;
}

.ad-block {
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed var(--rose-200);
  background: linear-gradient(135deg, #fff 0%, var(--rose-50) 100%);
}

.ad-card-inner {
  padding: 1rem 1.25rem;
}

.ad-label {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.ad-title {
  display: block;
  color: var(--rose-700);
  margin-bottom: 0.35rem;
}

.ad-body {
  font-size: 0.9rem;
  color: #6b7280;
}

.ad-banner-link {
  display: block;
  line-height: 0;
}

.ad-banner-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.ad-html {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.ad-slot-footer {
  margin-bottom: 1rem;
}

/* Account hub tabs */
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--rose-100);
  box-shadow: var(--card-shadow);
}

.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.account-tab:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.account-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.account-tab-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--rose-500);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-tab.active .account-tab-badge {
  background: #fff;
  color: var(--rose-600);
}

@media (max-width: 767.98px) {
  .account-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.4rem;
    width: 100%;
    max-width: none;
  }

  .account-tab {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 0.5rem 0.3rem;
    font-size: 0.7rem;
    line-height: 1.25;
    gap: 0.2rem;
  }
}

/* Photo album page */
.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.photo-album-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--card-shadow);
  background: var(--rose-100);
}

.photo-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-album-item.is-primary {
  box-shadow: 0 0 0 3px var(--rose-500);
}

.photo-album-primary {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.photo-album-actions {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-album-item:hover .photo-album-actions {
  opacity: 1;
}

.photo-album-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--rose-300);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--rose-500);
  cursor: pointer;
  background: var(--rose-50);
  transition: border-color 0.2s, background 0.2s;
  margin: 0;
}

.photo-album-slot:hover {
  border-color: var(--rose-500);
  background: #fff;
}

.photo-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 220px;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--rose-300);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--rose-50) 0%, #fff 100%);
  cursor: pointer;
  text-align: center;
  margin-bottom: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.photo-upload-zone:hover,
.photo-upload-zone:focus-within {
  border-color: var(--rose-500);
  background: #fff;
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.1);
  transform: translateY(-1px);
}

.photo-upload-zone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.1);
  color: var(--rose-500);
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.photo-upload-zone strong {
  color: var(--rose-700);
  font-size: 1.05rem;
}

.photo-upload-zone__lead {
  font-size: 0.92rem;
  color: #6b7280;
  max-width: 22rem;
}

.photo-upload-zone__hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.photo-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  font-size: 0;
}

.photo-file-input--picker {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0.001;
  pointer-events: none;
}

.photo-upload-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--card-shadow);
  margin-top: 1rem;
}

.photo-upload-bar__text {
  flex: 1;
  min-width: 0;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.photo-upload-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.photo-upload-zone i {
  font-size: 2.5rem;
  color: var(--rose-400);
}

.photo-upload-zone span {
  font-size: 0.9rem;
  color: #6b7280;
}

.photo-upload-zone--loading {
  pointer-events: none;
  opacity: 0.85;
}

.photo-upload-zone--loading::after {
  content: 'Конвертация…';
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-600);
}

.photo-grid-compact {
  grid-template-columns: repeat(2, 1fr);
}

.swipe-empty .ad-slot {
  margin-top: 1.25rem;
}

.anketa-balance-pill,
.chat-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-100), #fff8e7);
  border: 1px solid var(--rose-200);
  color: var(--rose-700);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.wallet-balance-card {
  background: linear-gradient(160deg, #fff 0%, var(--rose-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  min-height: 100%;
}

.wallet-balance-icon {
  font-size: 2.5rem;
  color: var(--rose-400);
  margin-bottom: 0.75rem;
}

.wallet-balance-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rose-700);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.wallet-currency {
  font-size: 1rem;
  font-weight: 500;
  color: #9ca3af;
}

.wallet-topup-card,
.wallet-history-card {
  padding: 1.5rem 1.5rem 1.75rem;
}

.wallet-topup-card {
  display: flex;
  flex-direction: column;
}

.wallet-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 576px) {
  .wallet-packages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wallet-topup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.wallet-package-option {
  position: relative;
  border: 2px solid var(--rose-100);
  border-radius: 16px;
  padding: 0.85rem 0.75rem 0.75rem;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  min-height: 86px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.wallet-package-option.has-bonus {
  min-height: 112px;
  padding-bottom: 0.85rem;
}

.wallet-package-option:hover {
  border-color: var(--rose-300);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.wallet-package-option.is-selected {
  border-color: var(--rose-500);
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.12);
}

.wallet-package-option:focus-within {
  outline: 2px solid var(--rose-400);
  outline-offset: 2px;
}

.wallet-package-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wallet-package-option.is-selected .wallet-package-check {
  opacity: 1;
  transform: scale(1);
}

.wallet-package-badge {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--rose-500);
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

.wallet-package-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.wallet-package-card {
  border: 1px solid var(--rose-200);
  border-radius: 16px;
  padding: 1rem 0.875rem;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  margin: 0;
}

.wallet-package-card .btn {
  margin-top: auto;
  padding-top: 0.5rem;
}

.wallet-topup-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--rose-50) 0%, #fff 100%);
  border: 1px solid var(--rose-100);
}

@media (min-width: 576px) {
  .wallet-topup-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.wallet-topup-summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose-400);
  margin-bottom: 0.15rem;
}

.wallet-topup-summary-main {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rose-700);
  line-height: 1.25;
}

.wallet-topup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 11rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .wallet-topup-btn {
    flex-shrink: 0;
  }
}

.wallet-service-row {
  margin-top: 0.5rem;
}

.wallet-service-heading {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.wallet-service-icon--boost {
  background: #fffbeb;
  color: #d97706;
}

.wallet-package-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rose-700);
}

.wallet-package-bonus {
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
  margin: 0.05rem 0;
  line-height: 1.2;
}

.wallet-package-pay {
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.wallet-package-option:not(.has-bonus) .wallet-package-pay {
  margin-top: 0.25rem;
}

.wallet-history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rose-100);
}

.wallet-history-item:last-child {
  border-bottom: none;
}

.wallet-service-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.08);
}

.wallet-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rose-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--rose-500);
}

.account-tab-badge-muted {
  background: var(--rose-200) !important;
  color: var(--rose-800) !important;
}

.photo-lightbox-trigger {
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.photo-lightbox-modal .modal-backdrop {
  --bs-backdrop-opacity: 0.88;
}

.photo-lightbox-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #101014;
  color: #f9fafb;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.35rem;
}

.photo-lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.photo-lightbox-body {
  padding: 0 1rem 1rem;
}

.photo-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 640px);
  background: radial-gradient(circle at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 16px;
  overflow: hidden;
}

.photo-lightbox-image {
  max-width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-700);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.photo-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
}

.photo-lightbox-prev { left: 12px; }
.photo-lightbox-next { right: 12px; }

.photo-lightbox-thumbs {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.85rem 0 0.25rem;
}

.photo-lightbox-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.photo-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-lightbox-thumb.active,
.photo-lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--rose-400);
  transform: translateY(-2px);
}

.anketa-thumb-btn {
  position: relative;
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.65rem;
}

.gift-picker-item {
  position: relative;
  border: 2px solid var(--rose-100);
  border-radius: 14px;
  padding: 0.5rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.gift-picker-item:hover {
  border-color: var(--rose-300);
  transform: translateY(-1px);
}

.gift-picker-item.selected {
  border-color: var(--rose-500);
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.12);
  transform: translateY(-2px);
}

.gift-picker-item.selected::after {
  content: '';
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--rose-500);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}

.gift-picker-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.35rem;
}

.gift-picker-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.35rem;
  font-size: 1.75rem;
  color: var(--rose-400);
}

.gift-picker-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose-800);
}

.gift-picker-price {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
}

.gift-modal-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--rose-50), #fff);
  border: 1px solid var(--rose-100);
  border-radius: 14px;
}

.gift-modal-wallet-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.gift-modal-wallet-label .bi {
  color: var(--rose-500);
}

.gift-modal-wallet-balance {
  font-size: 1rem;
  color: var(--rose-800);
}

.gift-wallet-topup-link {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-600);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.gift-wallet-topup-link:hover {
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.85);
}

.gift-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
}

.gift-modal-footer .btn {
  white-space: nowrap;
  min-width: 7.5rem;
}

.gift-on-sale {
  border-color: #fbbf24 !important;
}

.gift-sale-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
}

.gift-price-old {
  color: #9ca3af;
  font-size: 0.65rem;
  margin-right: 0.15rem;
}

.profile-gift-anonymous {
  border-style: dashed;
}

.chat-gift-anonymous-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.chat-gift-anonymous-card {
  max-width: 300px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--rose-50), #fff);
  border: 1px dashed var(--rose-200);
}

.chat-bubble-gift {
  max-width: 280px;
}

.chat-gift-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-gift-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.chat-gift-icon {
  font-size: 2rem;
  color: var(--rose-400);
}

.chat-gift-note {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.gift-admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.gift-admin-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--rose-50);
  border-radius: 8px;
  color: var(--rose-400);
}

.profile-gifts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose-700);
  background: var(--rose-100);
  vertical-align: middle;
}

.profile-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.profile-gift-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--rose-100);
  background: linear-gradient(145deg, #fff 0%, var(--rose-50) 100%);
  min-width: 0;
}

.profile-gift-visual {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-gift-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.profile-gift-icon {
  font-size: 1.75rem;
  color: var(--rose-400);
}

.profile-gift-body {
  min-width: 0;
  flex: 1;
}

.profile-gift-name {
  display: block;
  color: var(--rose-800);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.profile-gift-from {
  font-size: 0.8125rem;
  color: #6b7280;
}

.profile-gift-from a {
  color: var(--rose-600);
  font-weight: 600;
  text-decoration: none;
}

.profile-gift-from a:hover {
  text-decoration: underline;
}

.profile-gift-note {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #374151;
  font-style: italic;
  line-height: 1.4;
}

.profile-gift-date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (max-width: 575.98px) {
  .profile-gifts-grid {
    grid-template-columns: 1fr;
  }
}

.anketa-gift-send-section .gift-picker-grid {
  max-width: 100%;
}

.anketa-gift-preview-item {
  cursor: pointer;
}

.anketa-gift-preview-item:hover {
  border-color: var(--rose-300);
  transform: translateY(-1px);
}

.anketa-gift-preview-item.selected {
  border-color: var(--rose-500);
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.12);
  transform: translateY(-2px);
}

/* Contacts page */
.contacts-page {
  max-width: none;
  padding-bottom: 0.5rem;
}

.contacts-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(251, 113, 133, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 241, 245, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
}

.contacts-hero-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.contacts-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--rose-100);
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.08);
}

.contacts-hero-badge i {
  color: var(--rose-500);
}

.contacts-header {
  text-align: center;
}

.contacts-title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  color: var(--rose-700);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.contacts-title i {
  color: var(--rose-500);
}

.contacts-subtitle {
  color: var(--text-muted, #6c757d);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.contacts-hero-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted, #6c757d);
}

.contacts-hero-note a {
  color: var(--rose-600);
  font-weight: 600;
  text-decoration: none;
}

.contacts-hero-note a:hover {
  color: var(--rose-700);
  text-decoration: underline;
}

.contacts-body {
  max-width: 960px;
  margin-inline: auto;
}

.contacts-main-card,
.contacts-vk-card,
.contacts-links-card {
  padding: 1.5rem;
}

.contacts-block-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contacts-block-title i {
  color: var(--rose-500);
  font-size: 1.05rem;
}

.contacts-channels {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contacts-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--rose-100);
  background: linear-gradient(180deg, #fff 0%, var(--rose-50) 140%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.contacts-channel:hover {
  border-color: rgba(225, 29, 72, 0.22);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.08);
  transform: translateY(-1px);
  color: inherit;
}

.contacts-channel-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.1rem;
}

.contacts-channel-icon--rose {
  background: #fff;
  color: var(--rose-500);
  box-shadow: inset 0 0 0 1px var(--rose-100);
}

.contacts-channel-icon--tg {
  background: #fff;
  color: #229ed9;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.contacts-channel-body {
  flex: 1;
  min-width: 0;
}

.contacts-channel-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #6c757d);
  margin-bottom: 0.15rem;
}

.contacts-channel-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-800, #9f1239);
  line-height: 1.35;
}

.contacts-channel-chevron {
  flex-shrink: 0;
  color: var(--rose-300);
  font-size: 0.95rem;
}

.contacts-main-divider {
  height: 1px;
  margin: 1.35rem 0;
  background: var(--rose-100);
}

.contacts-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
}

@media (min-width: 480px) {
  .contacts-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contacts-meta-item {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--rose-50);
  border: 1px solid rgba(251, 113, 133, 0.12);
}

.contacts-meta-item dt {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6c757d);
}

.contacts-meta-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-800, #9f1239);
  line-height: 1.4;
}

.contacts-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.contacts-vk-card {
  background: linear-gradient(165deg, #fff 0%, #f3f8ff 100%);
  border-color: rgba(0, 119, 255, 0.14);
}

.contacts-vk-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.contacts-vk-logo {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0077ff, #005ecb);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 119, 255, 0.25);
}

.contacts-vk-text {
  font-size: 0.88rem;
  color: var(--text-muted, #6c757d);
  line-height: 1.45;
}

.contacts-vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.contacts-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.contacts-links a i {
  width: 1.1rem;
  text-align: center;
  color: var(--rose-500);
}

.contacts-links a:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}

.icon-vk {
  display: block;
  flex-shrink: 0;
}

.vk-community-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0077ff, #005ecb);
  color: #fff;
}

.vk-community-modal .btn-vk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.contacts-form textarea.input-premium {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 575.98px) {
  .contacts-main-card,
  .contacts-vk-card,
  .contacts-links-card {
    padding: 1.15rem;
  }

  .contacts-meta {
    grid-template-columns: 1fr;
  }
}

/* Landing — mobile app download */
.landing-app-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 241, 245, 0.5) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.landing-app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-600);
  background: white;
  border: 1px solid var(--rose-100);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.landing-app-stores {
  max-width: 28rem;
}

.landing-app-stores__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.landing-app-note {
  max-width: 28rem;
}

.landing-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.landing-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.45rem 1.1rem 0.45rem 0.72rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(16, 18, 23, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.landing-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 18, 23, 0.16);
  color: #fff;
  filter: brightness(1.03);
}

.landing-store-link:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: 3px;
}

button.landing-store-link {
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  appearance: none;
}

.landing-store-link--google {
  background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-store-link--rustore {
  background: linear-gradient(145deg, #2d8fff 0%, #0077ff 48%, #0063d4 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.landing-store-link__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.55rem;
}

.landing-store-link__ico--rustore {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing-store-link__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.06rem;
}

.landing-store-link__kicker {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.landing-store-link__title {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.landing-app-panel {
  border-radius: 22px;
  background: white;
  border: 1px solid var(--rose-100);
  box-shadow: 0 12px 40px rgba(225, 29, 72, 0.08);
}

.landing-app-panel__inner {
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.landing-app-panel__row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rose-50, #fff1f2);
}

.landing-app-panel__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.landing-app-panel__row:first-child {
  padding-top: 0.2rem;
}

.landing-app-panel__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-50), #fff);
  color: var(--rose-500);
  font-size: 1.1rem;
}

.landing-app-panel__title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.28rem;
  color: var(--rose-800, #9f1239);
}

.landing-app-panel__text {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
}

.landing-gp-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
  color: #fff;
  font-size: 1.5rem;
}

.landing-rs-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2d8fff 0%, #0077ff 48%, #0063d4 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.35);
}

@media (max-width: 575.98px) {
  .landing-store-row {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-store-link {
    width: 100%;
    max-width: 20rem;
  }
}

/* Shop */
.shop-hero-icon {
  font-size: 2.5rem;
  color: var(--rose-400);
}

.shop-section-title {
  color: var(--rose-700);
  margin-bottom: 1rem;
}

.shop-section-title i {
  margin-right: 0.35rem;
}

.shop-product-card {
  position: relative;
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.shop-product-card:hover {
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.08);
  transform: translateY(-1px);
}

.shop-product-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--rose-500);
  color: #fff;
}

.shop-product-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.shop-product-title {
  color: var(--rose-700);
  margin-bottom: 0.35rem;
}

.shop-product-desc {
  flex: 1;
  margin-bottom: 1rem;
}

.shop-product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rose-700);
  margin-bottom: 0.65rem;
}

/* Discover highlight */
.swipe-card-highlighted {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.85), 0 12px 32px rgba(245, 158, 11, 0.25);
}

.swipe-highlight-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Chat read receipts */
.chat-read-mark {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  line-height: 1;
  margin: 0;
  opacity: 1;
}

.chat-read-sent {
  color: rgba(255, 255, 255, 0.72);
}

.chat-bubble-theirs .chat-read-mark {
  display: none;
}

.chat-read-done {
  color: #a5d8ff;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  max-width: 78%;
}

.chat-bubble-wrap:has(.chat-bubble-mine) {
  align-self: flex-end;
  align-items: flex-end;
  margin-left: auto;
}

.chat-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: -0.15rem;
  margin-bottom: 0.5rem;
}

.chat-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rose-100);
  font-size: 0.85rem;
  box-shadow: var(--card-shadow);
}

.chat-reaction-picker {
  position: fixed;
  z-index: 1200;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.15);
}

.chat-reaction-pick {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 8px;
}

.chat-reaction-pick:hover {
  background: var(--rose-50);
}

/* Admin settings */
.admin-page-actions .btn {
  margin-bottom: 0.35rem;
}

.admin-period-stats-card {
  width: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.admin-period-stats {
  width: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.admin-period-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, #fff, #fff7f8);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.admin-period-stats-head::-webkit-details-marker {
  display: none;
}

.admin-period-stats-head:hover {
  background: linear-gradient(180deg, #fff, var(--rose-50));
}

.admin-period-stats[open] .admin-period-stats-head {
  border-bottom-color: var(--rose-100);
}

.admin-period-stats-head-main {
  min-width: 0;
}

.admin-period-stats-teaser {
  margin-top: 0.45rem;
  color: var(--rose-700);
  font-weight: 600;
}

.admin-period-stats[open] .admin-period-stats-teaser {
  display: none;
}

.admin-period-stats-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-600);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s;
}

.admin-period-stats[open] .admin-period-stats-chevron {
  transform: rotate(180deg);
  background: var(--rose-100);
}

.admin-period-stats-body {
  padding: 0.5rem 0 0;
}

.admin-period-stats-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-period-stats-table colgroup col:first-child {
  width: 38%;
}

.admin-period-stats-table thead th {
  padding: 1rem 1.75rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid var(--rose-100);
  background: #fafafa;
}

.admin-period-stats-table thead th:not(:first-child),
.admin-period-stats-table tbody td,
.admin-period-stats-table tbody th[scope="row"] {
  padding-right: 1.75rem;
}

.admin-period-stats-table tbody th[scope="row"],
.admin-period-stats-table tbody td {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  padding-left: 1.75rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-period-stats-table tbody tr:last-child th,
.admin-period-stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-period-stats-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #374151;
}

.admin-period-stats-metric i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-period-stats-num {
  display: inline-block;
  min-width: 2.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rose-700);
}

.admin-period-stats-num--month {
  color: var(--rose-800, #9f1239);
}

.admin-period-stats-payments {
  margin: 1.25rem 1.75rem 1.75rem;
  padding: 1.25rem 1.5rem 0.5rem;
  border-radius: 16px;
  background: #fffafb;
  border: 1px solid var(--rose-100);
}

.admin-period-stats-payments-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-period-stats-payments-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: #fff;
  color: var(--rose-600);
  font-size: 1.1rem;
  border: 1px solid var(--rose-100);
}

.admin-period-stats-payments-title strong {
  display: block;
  font-size: 1rem;
  color: #374151;
}

.admin-period-stats-payments-title span {
  display: block;
  font-size: 0.82rem;
  color: #9ca3af;
}

.admin-period-stats-table--payments thead th {
  background: transparent;
  padding-top: 0;
  padding-left: 0;
  padding-right: 1rem;
}

.admin-period-stats-table--payments tbody th[scope="row"],
.admin-period-stats-table--payments tbody td {
  padding-left: 0;
  padding-right: 1rem;
}

.admin-period-stats-total-row th,
.admin-period-stats-total-row td {
  border-bottom-color: var(--rose-100) !important;
}

.admin-period-stats-money {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rose-700);
  line-height: 1.2;
}

.admin-period-stats-money--month {
  color: var(--rose-800, #9f1239);
}

.admin-period-stats-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.admin-period-stats-sub {
  font-size: 0.88rem;
  color: #6b7280;
}

@media (max-width: 767.98px) {
  .admin-period-stats-head {
    padding: 1.1rem 1rem;
  }

  .admin-period-stats-payments {
    margin: 1rem;
    padding: 1rem 0.85rem 0.35rem;
  }

  .admin-period-stats-table thead th,
  .admin-period-stats-table tbody th[scope="row"],
  .admin-period-stats-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-period-stats-num {
    font-size: 1.15rem;
  }
}

.admin-settings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-settings-head-lead {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9375rem;
}
.admin-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.admin-settings-nav {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--rose-100);
  background: #fff;
  box-shadow: var(--card-shadow);
}
.admin-settings-nav-title {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-settings-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.admin-settings-nav-link:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}
.admin-settings-nav-link.is-active {
  background: var(--rose-100);
  color: var(--rose-800);
}
.admin-settings-nav-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
}
.admin-settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.admin-settings-section {
  scroll-margin-top: 1rem;
}
.admin-settings-section-head {
  margin-bottom: 0.85rem;
}
.admin-settings-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.admin-settings-section-lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}
.admin-settings-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-settings-card {
  padding: 1.25rem 1.35rem;
}
.admin-settings-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}
.admin-settings-card hr {
  border-color: var(--rose-100);
  opacity: 1;
}
.admin-settings-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.admin-settings-savebar-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}
@media (max-width: 991.98px) {
  .admin-settings-layout {
    grid-template-columns: 1fr;
  }
  .admin-settings-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .admin-settings-nav-title {
    display: none;
  }
  .admin-settings-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--rose-100);
    background: #fafafa;
  }
  .admin-settings-nav-link.is-active {
    border-color: var(--rose-200);
  }
}

/* Admin shell */
.admin-page { max-width: 1320px; }
.admin-nav {
  padding: 0;
  overflow: hidden;
}
.admin-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rose-100);
  background: linear-gradient(180deg, #fff 0%, var(--rose-50) 100%);
}
.admin-nav-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.admin-nav-group {
  padding: 0.85rem 1rem;
  min-width: 0;
}
.admin-nav-group + .admin-nav-group {
  border-left: 1px solid var(--rose-100);
}
.admin-nav-group-label {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.admin-nav-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.admin-nav-home {
  font-size: 0.875rem;
}
.admin-nav-link:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}
.admin-nav-link.active {
  background: var(--gradient-brand);
  color: #fff;
}
.admin-nav-online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .admin-nav-body {
    grid-template-columns: 1fr;
  }
  .admin-nav-group + .admin-nav-group {
    border-left: 0;
    border-top: 1px solid var(--rose-100);
  }
}
@media (max-width: 575.98px) {
  .admin-nav-head {
    flex-wrap: wrap;
  }
  .admin-nav-online {
    width: 100%;
    justify-content: center;
  }
}
.admin-page .stat-card {
  border: 1px solid var(--rose-100);
  border-radius: 20px;
  padding: 1.25rem;
  background: #fff;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.admin-page .stat-card--live-online {
  text-align: left;
  background: linear-gradient(145deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.admin-live-online-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-page .stat-card--live-online .stat-num {
  color: #15803d;
}
.admin-live-online-meta,
.admin-live-online-bots {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.5rem;
}
.admin-live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: admin-live-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes admin-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Premium wallet block */
.premium-wallet-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, var(--rose-50) 100%);
  border: 1px solid var(--rose-100);
}
.premium-wallet-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(230, 57, 86, 0.22);
}
.premium-wallet-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rose-700);
  margin-bottom: 0.35rem;
}
.premium-hero-title { overflow: visible; padding-bottom: 0.35rem; }

/* Wallet history rich */
.wallet-history--rich .wallet-history-item--rich {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rose-100);
}
.wallet-history-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.wallet-history-icon.is-credit {
  background: #ecfdf5;
  color: #059669;
}
.wallet-history-icon.is-debit {
  background: #fef2f2;
  color: #dc2626;
}
.wallet-history-pagination .page-link {
  border-radius: 10px;
  color: var(--rose-600);
}
.wallet-history-pagination .page-item.active .page-link {
  background: var(--rose-500);
  border-color: var(--rose-500);
}
.wallet-service-heading { margin-top: 2.5rem !important; }
.wallet-service-row { margin-bottom: 1rem; }

.shop-product-card.text-center .shop-product-icon { margin-left: auto; margin-right: auto; }
.shop-product-footer { margin-top: auto; }

.landing-demo-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
}

.admin-city-region-head {
  background: linear-gradient(135deg, var(--rose-50), #fff);
  border-bottom: 1px solid var(--rose-100);
}

.admin-city-suggest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem 1rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--rose-50);
  border-radius: 12px;
}

.admin-city-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
}

.admin-city-suggest-item.is-exists {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-city-bulk-bar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  border: 1px solid var(--rose-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.admin-cities-page .city-pick,
.admin-cities-page .city-pick-region {
  cursor: pointer;
}

.city-list-region-title {
  color: var(--rose-700);
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rose-100);
}

.city-list-region-title i {
  color: var(--rose-400);
  margin-right: 0.25rem;
}

/* ——— City list (/znakomstva) ——— */
.city-list-page {
  max-width: 52rem;
}

.city-list-header {
  text-align: center;
}

.city-list-toolbar {
  position: sticky;
  top: 0.65rem;
  z-index: 30;
  border: 1px solid var(--rose-100);
}

.city-list-search-wrap {
  position: relative;
  margin-bottom: 0.65rem;
}

.city-list-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-400);
  pointer-events: none;
}

.city-list-search {
  padding-left: 2.35rem;
  padding-right: 2.35rem;
  border-radius: 999px;
  border-color: var(--rose-100);
}

.city-list-search:focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.1);
}

.city-list-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ca3af;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.city-list-search-clear:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.city-list-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.city-list-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose-500);
  margin-bottom: 0.5rem;
}

.city-list-section-label i {
  margin-right: 0.2rem;
}

.city-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.city-list-chips--region {
  padding: 0.5rem 0.85rem 0.85rem;
}

a.city-list-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  color: var(--rose-800);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.25;
  border: 1px solid var(--rose-100);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.city-list-chip:visited {
  color: var(--rose-800);
}

a.city-list-chip:hover,
a.city-list-chip:focus,
a.city-list-chip:focus-visible,
a.city-list-chip:active {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
  outline: none;
}

a.city-list-chip:visited:hover,
a.city-list-chip:visited:focus,
a.city-list-chip:visited:active {
  color: #fff !important;
}

a.city-list-chip:hover .city-list-chip-count,
a.city-list-chip:focus .city-list-chip-count,
a.city-list-chip:focus-visible .city-list-chip-count,
a.city-list-chip:active .city-list-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.city-list-chip--hot {
  border-color: var(--rose-200);
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

.city-list-chip-count {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-700);
}

.city-list-region {
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  margin-bottom: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.city-list-region[open] .city-list-region-chevron {
  transform: rotate(180deg);
}

.city-list-region-summary {
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  user-select: none;
  background: linear-gradient(135deg, var(--rose-50), #fff);
}

.city-list-region-summary::-webkit-details-marker {
  display: none;
}

.city-list-region-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rose-800);
  min-width: 0;
}

.city-list-region-name i {
  color: var(--rose-400);
  margin-right: 0.2rem;
}

.city-list-region-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.city-list-region-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-600);
  background: #fff;
  border: 1px solid var(--rose-100);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.city-list-region-chevron {
  font-size: 0.85rem;
  color: var(--rose-400);
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .city-list-chips--region {
    padding-inline: 1rem;
  }
}

.city-list-request {
  border-color: var(--rose-100);
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

.city-list-request-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.city-list-request-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--rose-100);
  color: var(--rose-600);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.city-list-request-btn {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .city-list-request-inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .city-list-request-inner > div {
    flex: 1;
    min-width: 0;
  }
}

.select-premium optgroup {
  font-weight: 700;
  color: var(--rose-700);
  font-style: normal;
}

/* Admin data tables */

.admin-data-panel {
  overflow: hidden;
}

.admin-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rose-100);
  background: linear-gradient(180deg, #fff, #fff7f9);
}

.admin-table-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}

.admin-table-toolbar__search .bi-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.admin-table-search {
  padding-left: 2.1rem;
  border-radius: 999px;
  border-color: var(--rose-100);
}

.admin-table-toolbar__meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: #6b7280;
}

.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-filter-chip {
  border: 1px solid var(--rose-100);
  background: #fff;
  color: #6b7280;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-filter-chip:hover {
  border-color: var(--rose-200);
  color: var(--rose-700);
}

.admin-filter-chip.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.admin-table-scroll {
  max-height: min(72vh, 900px);
  overflow: auto;
}

.admin-data-table {
  --admin-table-pad-x: 0.85rem;
  margin-bottom: 0;
}

.admin-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--rose-50);
  border-bottom: 1px solid var(--rose-100);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  white-space: nowrap;
  padding: 0.65rem var(--admin-table-pad-x);
  box-shadow: 0 1px 0 var(--rose-100);
}

.admin-data-table tbody td {
  padding: 0.7rem var(--admin-table-pad-x);
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.admin-data-row:hover td {
  background: #fffafb;
}

.admin-data-row.is-muted td {
  opacity: 0.72;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-profile__avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rose-100);
}

.admin-profile__avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-50);
  color: var(--rose-400);
  font-size: 1.1rem;
}

.admin-profile__body {
  min-width: 0;
}

.admin-profile__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.admin-profile__title a {
  color: inherit;
  text-decoration: none;
}

.admin-profile__title a:hover {
  color: var(--rose-600);
}

.admin-profile__id {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
}

.admin-profile__meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.admin-profile__meta--email {
  max-width: 220px;
}

.admin-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-badge--success { background: #dcfce7; color: #15803d; }
.admin-badge--warning { background: #fef3c7; color: #b45309; }
.admin-badge--danger { background: #fee2e2; color: #b91c1c; }
.admin-badge--muted { background: #f3f4f6; color: #6b7280; }
.admin-badge--online { background: #dcfce7; color: #15803d; }
.admin-badge--vip { background: #fef9c3; color: #a16207; }
.admin-badge--ai { background: #dbeafe; color: #1d4ed8; }
.admin-badge--zodiac { background: #faf5ff; color: #7e22ce; }
.admin-badge--premium { background: #ffe4e6; color: var(--rose-700); }
.admin-badge--auth { font-size: 0.68rem; padding: 0.15rem 0.45rem; }
.admin-badge--auth-phone { background: #dcfce7; color: #15803d; }
.admin-badge--auth-vk { background: #dbeafe; color: #1d4ed8; }
.admin-badge--auth-max { background: #ede9fe; color: #5b21b6; }
.admin-badge--auth-email { background: #f3f4f6; color: #4b5563; }
.admin-auth-badges { flex-wrap: wrap; gap: 0.25rem; }

.admin-cell-data {
  font-size: 0.8125rem;
  color: #374151;
}

.admin-cell-data__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.admin-cell-data__line + .admin-cell-data__line {
  margin-top: 0.25rem;
}

.admin-cell-settings .form-select {
  max-width: 9rem;
  font-size: 0.78rem;
}

.admin-photo-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #6b7280;
}

.admin-photo-mini img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-photo-add {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(251, 113, 133, 0.25);
}

.admin-photo-add__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose-600);
  margin-bottom: 0.35rem;
}

.admin-photo-add__row {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
  max-width: 260px;
}

.admin-photo-add__row .form-control {
  flex: 1;
  min-width: 0;
}

.admin-photo-add__row .btn {
  flex-shrink: 0;
  width: 2.1rem;
  padding-left: 0;
  padding-right: 0;
}

.admin-photo-add__hint {
  font-size: 0.72rem;
  color: #9ca3af;
}

.admin-photo-add__form {
  margin-top: 0;
  max-width: none;
}

.admin-action-add-photo {
  position: relative;
  display: inline-flex;
}

.admin-action-add-photo > summary {
  list-style: none;
}

.admin-action-add-photo > summary::-webkit-details-marker {
  display: none;
}

.admin-action-add-photo__popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  width: 220px;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.admin-action-add-photo__title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  max-width: 320px;
  margin-left: auto;
}

.admin-action-bar form,
.admin-action-bar .d-inline {
  display: inline-flex;
  margin: 0;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.admin-action-btn:hover {
  background: var(--rose-50);
  border-color: var(--rose-200);
  color: var(--rose-700);
}

.admin-action-btn:active {
  transform: scale(0.96);
}

.admin-action-btn--success { color: #15803d; }
.admin-action-btn--success:hover { background: #dcfce7; border-color: #86efac; }

.admin-action-btn--warning { color: #b45309; }
.admin-action-btn--warning:hover { background: #fef3c7; border-color: #fcd34d; }

.admin-action-btn--danger { color: #b91c1c; }
.admin-action-btn--danger:hover { background: #fee2e2; border-color: #fca5a5; }

.admin-action-btn--primary { color: #1d4ed8; }
.admin-action-btn--primary:hover { background: #dbeafe; border-color: #93c5fd; }

.admin-action-btn--rose { color: var(--rose-600); }
.admin-action-btn--rose:hover { background: var(--rose-50); border-color: var(--rose-200); }

.admin-action-divider {
  width: 1px;
  height: 1.5rem;
  background: #e5e7eb;
  align-self: center;
  margin: 0 0.1rem;
}

@media (max-width: 991.98px) {
  .admin-data-table thead { display: none; }

  .admin-data-table tbody tr {
    display: block;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .admin-data-table tbody td {
    display: block;
    padding: 0.35rem 0;
    border: none;
  }

  .admin-data-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
  }

  .admin-action-bar {
    justify-content: flex-start;
    max-width: none;
    margin-left: 0;
  }
}

