/* ========== BASE RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
  background: #080808;
  color: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  height: -webkit-fill-available;
}

body {
  min-height: 1800px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  -webkit-appearance: none;
  font-size: 16px;
}

/* ========== SIMPLE TOP HEADER (старий, якщо десь ще є розмітка) ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  color: #ff2f63;
}

/* ========== BUTTONS ========== */
.btn {
  background: #ff2f63;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #ff5588;
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px #ff3366;
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff3366;
  }
}

.bottom_mail_block .btn {
  animation: pulse 2s infinite;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ========== MAIN CONTAINER & GRID ========== */
.container {
  max-width: 1170px;
  margin: 78px auto 78px;
  padding: 16px;
}

.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 12px 0;
}

.card {
  background: #0f0f10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  object-position: top;
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card h4 {
  color: #ffd6e0;
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  color: #cfcfcf;
  font-size: 13px;
  margin-bottom: 8px;
}

.profiles.shuffling .card {
  pointer-events: none;
}



/* Skeleton loading */
.skeleton-card {
  height: 311px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, #444 0%, #222 40%, #111 100%),
    radial-gradient(circle at 80% 70%, #333 0%, #1a1a1a 45%, #0f0f0f 100%);
  filter: blur(40px) brightness(0.75);
  animation: skeletonFade 0.25s ease-out;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(40px);
}

.skeleton-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.18) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite ease-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes skeletonFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Inline banner text */
.banner-text {
  padding: 8px;
  color: #ffdfe8;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  margin-top: 4px;
}

#inlineEmail {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #222;
  background: #0b0b0b;
  color: #fff;
  min-width: 180px;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  font-size: 16px;
}

/* ========== LOGO ========== */
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: "Lobster", cursive;
  color: #ff4f61;
  transform: scaleY(0.9) scaleX(1.05);
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-left: -6px;
  text-shadow: 0 0 1px #000;
  font-size: 18px;
}

/* ========== FAKE CHAT NOTIFICATION ========== */
.fake-msg {
  position: fixed;
  right: 16px;
  bottom: 105px;
  padding: 12px 16px;
  background: #2a2a2a;
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.35s ease;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}


.fake-msg::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url("../images/cards/miniProfiles/2.jpg") center/cover no-repeat;
  flex-shrink: 0;
}

.fake-msg a {
  color: #4da3ff !important;
  text-decoration: underline;
  font-weight: 600;
}

#fakeMsg {
  opacity: 0;
  transition: opacity 0.6s ease;

}

#fakeMsg.show {
  opacity: 1;
}

/* ========== POPUPS (UNIVERSAL) ========== */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
  height: 100%;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}

.hidden {
  display: none !important;
}

.hidenBlock,
.popup-backdrop.inactive {
  display: none;
}

.popup-backdrop.show {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.popup-backdrop.show .popup {
  opacity: 1;
  transform: scale(1);
}

.popup {
  background: #0e0e10;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: center;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.popup h2 {
  color: #ff6b8b;
  margin-bottom: 8px;
}

.popup p.small {
  color: #cfcfcf;
  font-size: 13px;
  margin-bottom: 12px;
}

.popup input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #222;
  background: #0b0b0b;
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.popup .close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #bbb;
  font-size: 20px;
  cursor: pointer;
}

/* Loader bar */
.loader-bar {
  height: 10px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff3b78, #ff8aa6);
}

/* ========== VIEWER POPUP / COUNTER / TIMER ========== */
.viewer-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5171;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.viewer-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.input-error {
  border-color: #ff4d4f !important;
  background-color: #2b0000 !important;
  color: #fff;
}

.input-error::placeholder {
  color: #ff9999;
}

/* Timer */
.timer-text {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 47, 99, 0.07);
  backdrop-filter: blur(6px);
  color: #ffd6e0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
  border: 1px solid rgba(255, 47, 99, 0.15);
  min-height: 68px;
}

#timeLeft {
  color: #ff2f63;
  font-weight: 700;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 47, 99, 0.12);
  display: inline-block;
  width: 4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@supports (-webkit-touch-callout: none) {
  #timeLeft {
    letter-spacing: 0;
  }
}

/* Viewer counter widget */
.viewer-counter {
  position: fixed;
  right: 12px;
  top: 100px;
  background: rgba(20, 20, 20, 0.85);
  padding: 6px 12px;
  border-radius: 12px;
  color: #ffd6e0;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(4px);
  z-index: 9999;
  max-width: 60%;
  text-align: right;
  transform: none;
}

.viewer-counter.show {
  opacity: 1;
  transform: translateY(3px);
}

.viewer-counter span {
  color: #ff2f63;
  font-weight: 700;
}

@media (max-width: 600px) {
  .viewer-counter {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* ========== MOBILE BANNERS ========== */
.ads-label {
  position: absolute;
  top: -18px;
  right: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  z-index: 5;
  pointer-events: none;
  line-height: 1;
}

.mobile-only {
  display: none;
}

.mobile-banner-box {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 100px;
  margin: 0 auto 20px;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-banner-box_bottom {
  margin-top: 20px;
  margin-bottom: 0;
}

.mobile-banner-inner {
  width: 300px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mobile-banner-inner video,
.mobile-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== SURVEY POPUP (основний) ========== */
.survey-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.survey-popup-backdrop.show {
  display: flex;
}

.survey-popup {
  background: #121212;
  color: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  text-align: center;
  position: relative;
  font-family: Inter, system-ui, sans-serif;
}

.survey-popup h2 {
  font-size: 20px;
  color: #ff2f63;
  margin-bottom: 16px;
}

.survey-popup p {
  font-size: 14px;
  color: #ffd6e0;
  margin-bottom: 20px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.survey-options button {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  background: #ff2f63;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.survey-options button:hover {
  background: #ff5588;
  transform: scale(1.05);
}

.survey-options button:active {
  transform: scale(0.95);
}

.survey-email {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.survey-email input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #222;
  background: #0b0b0b;
  color: #fff;
  font-size: 16px;
}

.survey-email .btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  background: #ff2f63;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.survey-email .btn:hover {
  background: #ff5588;
  transform: scale(1.05);
}

.survey-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.survey-close:hover {
  color: #ff2f63;
}

/* Inline survey email блочок */
#surveyEmail.survey-email {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #121212;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

#surveyEmail p.survey-question {
  font-size: 14px;
  color: #ffd6e0;
  margin-bottom: 8px;
}

#surveyEmail input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #222;
  background: #0b0b0b;
  color: #fff;
  font-size: 16px;
  outline: none;
}

#surveyEmail .btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  background: #ff2f63;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#surveyEmail .btn:hover {
  background: #ff5588;
  transform: scale(1.05);
}

#surveyEmail .btn:active {
  transform: scale(0.95);
}

/* ========== AGE GATE ========== */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.age-gate.hide {
  opacity: 0;
  pointer-events: none;
}

.age-gate-box {
  background: #111;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.age-gate-box h1 {
  color: #ff2f63;
  font-size: 28px;
  margin-bottom: 12px;
}

.age-gate-box p {
  color: #ddd;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.77);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999998;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-screen.show {
  display: flex;
}

.loader-box {
  text-align: center;
  color: #fff;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #333;
  border-top-color: #ff2f63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-screen p {
  font-size: 15px;
  color: #ddd;
}

/* ========== HEADER BUTTONS (BURGER / LOGIN) ========== */
.burger-btn,
.login-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

.login-btn {
  font-size: 15px;
  font-weight: 700;
  background: #ff2f63;
  padding: 6px 12px;
  border-radius: 8px;
}

/* ========== BURGER MENU ========== */
.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: #0f0f10;
  padding: 20px;
  z-index: 999999;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu.open {
  transform: translateX(0);
}

#burgerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#burgerOverlay.open {
  opacity: 1;
  pointer-events: all;
}

.burger-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 24px;
}

.burger-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.burger-links li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.burger-links li:last-child {
  border-bottom: none;
}

.burger-links a {
  display: block;
  padding: 14px 0;
  color: #ffd6e0;
  font-size: 17px;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .burger-links a:hover {
    color: #ff2f63;
    transform: translateX(6px);
  }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 16, 0.96);
  padding: 14px 18px;
  z-index: 9999999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  color: #eee;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.cookie-accept-btn {
  background: #ff2f63;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 700;
}

/* ========== TOP CATEGORIES (GLOBAL) ========== */
.global-categories {
  -webkit-overflow-scrolling: touch;
}

.global-categories::-webkit-scrollbar {
  display: none;
}

.global-categories {
  position: fixed;
  width: 100%;
  left: 0;
  top: 70px;
  z-index: 9;
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  overflow-x: auto;
  white-space: nowrap;
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease;
}

.cat-link {
  color: #cfcfcf;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}

.cat-link:hover {
  color: #ff2f63;
  cursor: pointer;
}

.js-offer-click:hover {
  cursor: pointer;
}

.cat-link.active {
  color: #ff2f63;
  font-weight: 700;
}

.home-link svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ========== CHAT TYPING INDICATOR ========== */
.chat-typing {
  max-width: 60%;
  background: #222;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  color: #ccc;
  font-size: 14px;
  align-self: flex-start;
  display: flex;
  gap: 4px;
  animation: msgPop 0.25s forwards ease-out;
}

.dot {
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes msgPop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== ADULT SURVEY POPUP (ALT) ========== */
.survey-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s;
  opacity: 0;
}

.survey-backdrop.show {
  display: flex;
  opacity: 1;
}

.survey-step,
.survey-email.alt {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.survey-options button.highlight {
  background-color: #ffeb3b;
  border: 2px solid #fbc02d;
}

/* ========== MINI PROFILE POPUP ========== */
.mini-profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 9997;
}

.mini-profile-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.mini-profile-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  width: 350px;
  max-width: 90%;
  z-index: 9998;
  opacity: 0;
  scale: 0.8;
  pointer-events: none;
  transition: 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  font-family: sans-serif;
}

.mini-profile-popup.show {
  opacity: 1;
  scale: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.popup-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
  object-fit: cover;
  max-height: 300px;
}

.popup-name {
  font-size: 18px;
  margin: 6px 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  animation: pulseStatus 1.5s infinite;
}

@keyframes pulseStatus {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.popup-status {
  font-size: 14px;
  margin: 0 0 12px;
  color: #ccc;
}

.popup-mini-gallery {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.popup-mini-gallery img {
  width: 75px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  filter: blur(6px);
  cursor: pointer;
  transition: 0.2s;
}

.popup-mini-gallery img:hover {
  transform: scale(1.05);
}

.popup-chat {
  background: #131313;
  border-radius: 14px;
  padding: 10px 12px;
  height: 160px;
  overflow-y: auto;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-bot {
  max-width: 80%;
  background: #222;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  color: #eee;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: msgPop 0.25s forwards ease-out;
}

.chat-user {
  max-width: 80%;
  background: #d6003d;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  color: #fff;
  align-self: flex-end;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: msgPop 0.25s forwards ease-out;
}

.chat-input-wrap {
  display: flex;
}

.popup-input {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0b0b0b;
  color: #fff;
}

.popup-send {
  margin-left: 6px;
  width: 42px;
  border: none;
  background: #444;
  color: #fff;
  border-radius: 8px;
}

.popup-offer {
  width: 100%;
  margin-top: 10px;
  background: #d6003d;
  border: none;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* Click catcher */
#clickCatcher {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.001);
}

/* ========== MOBILE HEADER IMPROVED ========== */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-header .header-left,
.mobile-header .header-right {
  width: 60px;
  display: flex;
  justify-content: center;
}

.mobile-header .header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.burger-btn {
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  padding: 4px;
}

.mobile-login-btn {
  background: #ff2f63;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  color: #fff;
  transition: 0.2s;
}

.mobile-login-btn:hover {
  background: #ff5588;
}

/* ========== DESKTOP HEADER ========== */
.desktop-header {
  position: fixed;
  display: flex;
  top: 0;
  width: 100%;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 72px;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(1px);
}

.header-right {
  display: flex;
  align-items: center;
}

.desktop-login-btn {
  background: #ff2f63;
  padding: 7px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

/* ========== DESKTOP CATEGORIES WRAPPER ========== */
.desktop-categories {
  position: fixed;
  top: 70px;
  width: 100%;
  z-index: 999;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.categories-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.desktop-categories::-webkit-scrollbar {
  display: none;
}

.categories-inner .cat-link {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #dcdcdc;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.categories-inner .cat-link:hover {
  background: #ff2f63;
  color: #fff;
  border-color: #ff2f63;
  transform: translateY(-2px);
}

.categories-inner .cat-link.active {
  background: #ff2f63;
  color: #fff;
  font-weight: 700;
  border-color: #ff2f63;
}

/* ========== UTILS ========== */
.no-scroll {
  overflow: hidden !important;
  height: 100%;
}

/* Desktop side banners */
.desktop-banner-left,
.desktop-banner-right {
  display: none;
}

/* ===================== TERMS BLOCK (ЧОРНА ТЕМА) ===================== */

.terms-block {
  margin: 40px 0 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.terms-block a {
  color: #ff2f63;
  text-decoration: none;
  font-weight: 600;
}

.terms-block a:hover {
  text-decoration: underline;
}

.terms-block span {
  color: rgba(255, 255, 255, 0.3);
}

/* ===================== MODAL WRAPPER ===================== */

.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 22px;
  backdrop-filter: blur(4px);
}

.legal-modal.show {
  display: flex;
}

/* ===================== MODAL WINDOW (ЧОРНИЙ) ===================== */

.legal-content {
  position: relative;
  background: #0e0e10;
  color: #ffffff;
  max-width: 600px;
  width: 100%;
  padding: 26px 28px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
  font-size: 15px;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content h2 {
  font-size: 20px;
  margin-bottom: 14px;
  color: #ff2f63;
  font-weight: 700;
}

.legal-content h3 {
  font-size: 15px;
  margin-top: 22px;
  margin-bottom: 6px;
  color: #ff6b8b;
  font-weight: 600;
}

/* ===================== SCROLL AREA ===================== */

.legal-scroll {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 6px;
}

.legal-scroll::-webkit-scrollbar {
  width: 6px;
}

.legal-scroll::-webkit-scrollbar-thumb {
  background: #ff2f63;
  border-radius: 4px;
}

.legal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* ===================== CLOSE BUTTON ===================== */

.legal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.legal-close:hover {
  background: rgba(255, 47, 99, 0.4);
  color: #fff;
  transform: scale(1.1);
}

/* ========== FOOTER NAV (APP-STYLE) ========== */
.footer-nav {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 -2px 22px rgba(0, 0, 0, 0.4);
}

.footer-nav a {
  flex: 1;
  text-align: center;
  color: #d8d8d8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: 0.25s ease;
  padding-top: 6px;
}

.footer-nav a svg {
  width: 26px;
  height: 26px;
  stroke: #cfcfcf;
  transition: 0.25s ease;
}

.footer-nav a.active,
.footer-nav a:hover {
  color: #ff2f63;
}

.footer-nav a.active svg,
.footer-nav a:hover svg {
  stroke: #ff2f63;
  transform: scale(1.12);
}

.footer-nav a.active svg {
  filter: drop-shadow(0 0 8px rgba(255, 47, 99, 0.6));
}

/* ===== Utility classes (додаються до HTML) ===== */

.mt-10 {
  margin-top: 10px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-12 {
  margin-bottom: 12px !important;
}

.ta-center {
  text-align: center !important;
}

.fs-28 {
  font-size: 28px !important;
}

.mw-220 {
  max-width: 220px !important;
}

/* MATCHING POPUP */
.match-spinner {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  position: relative;
}

.match-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.match-spinner .ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ff2f63;
  border-right-color: #ff2f63;
  animation: matchSpin 1s linear infinite;
}

@keyframes matchSpin {
  to {
    transform: rotate(360deg);
  }
}

/* iOS fix для full-screen елементів */
.is-ios .age-gate,
.is-ios .loading-screen,
.is-ios .popup-backdrop,
.is-ios #burgerOverlay {
  height: calc(var(--vh) * 100);
}

/* no-scroll краще робити і для html, і для body */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100%;
}

/* щоб попапи скролились адекватно на iOS */
.popup,
.popup-chat,
.survey-popup {
  -webkit-overflow-scrolling: touch;
}

/* ========== MEDIA QUERIES ========== */
@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-banner-left,
  .desktop-banner-right {
    display: flex;
    position: fixed;
    top: 50px;
    height: 100vh;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    width: calc((100vw - 1170px) / 2);
    pointer-events: none;
    z-index: 20;
  }

  .desktop-banner-left {
    left: 0;
  }

  .desktop-banner-right {
    right: 0;
  }

  .banner-vertical video {
    max-width: 160px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: auto;
  }

  .container {
    max-width: 1170px;
    margin: 100px auto;
    padding: 0 16px;
    padding-top: 70px !important;
  }

  .profiles {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .burger-btn,
  #burgerMenu,
  #burgerOverlay {
    display: none !important;
  }

  /* Global categories desktop override */
  .global-categories {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9 !important;
    display: flex !important;
    transition: transform 0.3s ease;
  }

  .global-categories .cat-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: 0.25s;
    color: #e4e4e4;
    white-space: nowrap;
  }

  .global-categories .cat-link:hover {
    background: #ff2f63;
    border-color: #ff2f63;
    color: #fff;
    transform: translateY(-2px);
  }

  .global-categories .cat-link.active {
    background: #ff2f63;
    border-color: #ff2f63;
    color: #fff;
    font-weight: 700;
  }

  body.header-hide-active .global-categories {
    transform: translateY(-120%) !important;
  }
}

@media (max-width: 1023px) {
  .mobile-header {
    display: flex !important;
  }

  .desktop-header {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .profiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .desktop-banner-left,
  .desktop-banner-right {
    display: none !important;
  }

  .global-categories {
    display: none !important;
  }

  .burger-btn {
    display: block !important;
  }

  .container {
    margin: 18px auto 48px;
  }
}

@media (max-width: 480px) {
  .survey-popup {
    padding: 20px 16px;
  }

  .survey-popup h2 {
    font-size: 18px;
  }

  .survey-options button {
    font-size: 13px;
    padding: 10px 12px;
  }

  .survey-email input {
    font-size: 14px;
  }

  .card img {
    height: 150px;
  }

  .popup {
    padding: 24px;
  }

  .profiles {
    gap: 12px;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
  }

  .brand {
    font-size: 18px;
  }
}
/* Warning Popup */
.warning-popup {
  text-align: center;
  animation: warningPulse 2s infinite;
}

.warning-popup .close {
  color: #ff2f63;
}

@keyframes warningPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 47, 99, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 47, 99, 0.6);
  }
}

.warning-popup .btn {
  transition: transform 0.2s ease;
}

.warning-popup .btn:hover {
  transform: scale(1.05);
}

.warning-popup .btn:active {
  transform: scale(0.95);
}
/* Убедимся что survey поверх всего */
.survey-popup-backdrop {
  z-index: 99999 !important;
}

/* Warning popup поверх survey */
#warningPopup.popup-backdrop {
  z-index: 100000 !important;
}

#warningPopup .popup {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#warningPopup.show .popup {
  transform: scale(1);
}

.warning-popup {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
}

@keyframes pulseWarning {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 47, 99, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 47, 99, 0.8);
  }
}

#warningPopup.show .popup {
  animation: pulseWarning 2s infinite;
}

/* Анимация для поля ввода при блокировке */
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.popup-input.require-email {
  animation: shakeInput 0.6s ease;
  border-color: #ff2f63 !important;
  background: rgba(255, 47, 99, 0.1) !important;
}

.popup-input.require-email::placeholder {
  color: #ff2f63;
}
/* Анимация для поля ввода при блокировке */
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.popup-input.require-email {
  animation: shakeInput 0.6s ease;
  border-color: #ff2f63 !important;
  background: rgba(255, 47, 99, 0.1) !important;
}

.popup-input.require-email::placeholder {
  color: #ff2f63;
}