/* ─── SwissEscort Design System (logo palette) ─────────────── */
/* Blanc (default) — ivoire logo + bordeaux + or champagne */
:root,
html[data-theme="blanc"],
html[data-theme="luxe"],
html[data-theme="soft"] {
  --bg: #f5f0e6;            /* ivoire logo */
  --bg-card: #fffcf8;
  --bg-elevated: #ebe3d4;
  --border: rgba(90, 20, 35, 0.14);
  --text: #2c1418;          /* bordeaux très foncé */
  --text-muted: #7d6560;
  --accent: #5c1a28;        /* SwissEscort burgundy */
  --accent-2: #b8974e;      /* gold champagne logo */
  --accent-soft: rgba(92, 26, 40, 0.1);
  --accent-glow: rgba(184, 151, 78, 0.32);
  --gold: #b8974e;
  --gold-soft: rgba(184, 151, 78, 0.2);
  --gradient: linear-gradient(135deg, #5c1a28 0%, #7a2435 42%, #b8974e 100%);
  --gradient-subtle: linear-gradient(145deg, rgba(184,151,78,0.16), rgba(92,26,40,0.07));
  --glow-1: rgba(184, 151, 78, 0.22);
  --glow-2: rgba(92, 26, 40, 0.1);
  --glow-3: rgba(255, 252, 248, 0.75);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 36px rgba(44, 20, 24, 0.07), 0 2px 8px rgba(92, 26, 40, 0.05);
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --nav-h: 76px;
  --btn-shadow: 0 8px 22px rgba(92, 26, 40, 0.26);
  --card-border-hover: rgba(92, 26, 40, 0.38);
  --nav-glass: rgba(255, 252, 248, 0.9);
  --surface-shine: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 50%);
  color-scheme: light;
}

/* Noir — fond noir profond, or + bordeaux logo */
html[data-theme="noir"],
html[data-theme="cyber"] {
  --bg: #0a0809;
  --bg-card: #141012;
  --bg-elevated: #1c1618;
  --border: rgba(184, 151, 78, 0.2);
  --text: #f5efe6;
  --text-muted: #a89a8e;
  --accent: #b8974e;        /* gold primary on dark */
  --accent-2: #5c1a28;      /* burgundy secondary */
  --accent-soft: rgba(184, 151, 78, 0.12);
  --accent-glow: rgba(184, 151, 78, 0.38);
  --gold: #d4bc7a;
  --gold-soft: rgba(212, 188, 122, 0.18);
  --gradient: linear-gradient(135deg, #b8974e 0%, #7a2435 50%, #5c1a28 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(184,151,78,0.14), rgba(92,26,40,0.14));
  --glow-1: rgba(184, 151, 78, 0.12);
  --glow-2: rgba(92, 26, 40, 0.18);
  --glow-3: rgba(255, 255, 255, 0.025);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 151, 78, 0.06);
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --btn-shadow: 0 8px 28px rgba(184, 151, 78, 0.22);
  --card-border-hover: rgba(184, 151, 78, 0.45);
  --nav-glass: rgba(10, 8, 9, 0.92);
  --surface-shine: linear-gradient(180deg, rgba(184,151,78,0.05) 0%, transparent 45%);
  color-scheme: dark;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-size: 16px; /* prevent auto-zoom on mobile Chrome */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.25s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 18% -8%, var(--glow-1), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 100%, var(--glow-2), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, var(--glow-3), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* Blanc ambient — warm cream / gold (logo) */
html[data-theme="blanc"] body::after,
html[data-theme="luxe"] body::after,
html[data-theme="soft"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(184, 151, 78, 0.14), transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(92, 26, 40, 0.05) 0 120px, transparent 140px);
}

html[data-theme="blanc"] body::before,
html[data-theme="luxe"] body::before,
html[data-theme="soft"] body::before {
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(184, 151, 78, 0.2), transparent 58%),
    radial-gradient(ellipse 70% 50% at 92% 100%, rgba(92, 26, 40, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 30% at 50% 45%, rgba(255, 252, 247, 0.8), transparent 70%);
}

/* Noir: subtle gold grain */
html[data-theme="noir"] body::after,
html[data-theme="cyber"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(184, 151, 78, 0.1), transparent 60%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

html[data-theme="noir"] .nav,
html[data-theme="cyber"] .nav,
html[data-theme="noir"] .btn--primary,
html[data-theme="cyber"] .btn--primary {
  letter-spacing: 0.02em;
}
html[data-theme="blanc"] h1,
html[data-theme="luxe"] h1,
html[data-theme="soft"] h1,
html[data-theme="noir"] h1,
html[data-theme="cyber"] h1,
html[data-theme="blanc"] h2,
html[data-theme="luxe"] h2,
html[data-theme="soft"] h2,
html[data-theme="noir"] h2,
html[data-theme="cyber"] h2,
html[data-theme="blanc"] .nav__logo,
html[data-theme="luxe"] .nav__logo,
html[data-theme="soft"] .nav__logo,
html[data-theme="noir"] .nav__logo,
html[data-theme="cyber"] .nav__logo,
html[data-theme="blanc"] .brand-mark__text,
html[data-theme="luxe"] .brand-mark__text,
html[data-theme="soft"] .brand-mark__text,
html[data-theme="noir"] .brand-mark__text,
html[data-theme="cyber"] .brand-mark__text {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0.02em;
}
html[data-theme="noir"] .btn--primary,
html[data-theme="cyber"] .btn--primary {
  box-shadow: var(--btn-shadow);
  color: #0c0a0b;
}
html[data-theme="noir"] .post-card:hover,
html[data-theme="cyber"] .post-card:hover,
html[data-theme="noir"] .escort-card:hover,
html[data-theme="cyber"] .escort-card:hover {
  border-color: var(--card-border-hover);
}

/* ─── Typography polish ───────────────────────────────────── */
html[data-theme="blanc"] h1,
html[data-theme="luxe"] h1,
html[data-theme="soft"] h1,
html[data-theme="blanc"] .page-header h1,
html[data-theme="luxe"] .page-header h1,
html[data-theme="soft"] .page-header h1,
html[data-theme="blanc"] .hero h1,
html[data-theme="luxe"] .hero h1,
html[data-theme="soft"] .hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
html[data-theme="blanc"] .hero h1 em,
html[data-theme="luxe"] .hero h1 em,
html[data-theme="soft"] .hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #5c1a28 0%, #7a2435 45%, #b8974e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}
html[data-theme="noir"] .hero h1 em,
html[data-theme="cyber"] .hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #b8974e 0%, #d4bc7a 50%, #5c1a28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Blanc header: black gradient, light readable links (no pink wash) */
html[data-theme="blanc"] .nav,
html[data-theme="luxe"] .nav,
html[data-theme="soft"] .nav {
  background: linear-gradient(180deg, #1a1214 0%, #0c0a0b 55%, #080607 100%);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(184, 151, 78, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="blanc"] .nav__link,
html[data-theme="luxe"] .nav__link,
html[data-theme="soft"] .nav__link {
  color: rgba(245, 239, 230, 0.82);
  font-weight: 600;
}
html[data-theme="blanc"] .nav__link:hover,
html[data-theme="luxe"] .nav__link:hover,
html[data-theme="soft"] .nav__link:hover {
  color: #fff;
  background: rgba(184, 151, 78, 0.14);
}
html[data-theme="blanc"] .nav__link.active,
html[data-theme="luxe"] .nav__link.active,
html[data-theme="soft"] .nav__link.active {
  color: #e8d5a3;
  background: rgba(184, 151, 78, 0.18);
  font-weight: 800;
}
html[data-theme="blanc"] .nav__logo,
html[data-theme="luxe"] .nav__logo,
html[data-theme="soft"] .nav__logo,
html[data-theme="blanc"] .nav__logo .brand-mark__text,
html[data-theme="luxe"] .nav__logo .brand-mark__text,
html[data-theme="soft"] .nav__logo .brand-mark__text {
  color: #f5efe6;
}
html[data-theme="blanc"] .nav__logo span,
html[data-theme="luxe"] .nav__logo span,
html[data-theme="soft"] .nav__logo span,
html[data-theme="blanc"] .brand-mark__text span,
html[data-theme="luxe"] .brand-mark__text span,
html[data-theme="soft"] .brand-mark__text span {
  background: linear-gradient(135deg, #e8d5a3, #b8974e 55%, #d4bc7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}
html[data-theme="blanc"] .nav__search,
html[data-theme="luxe"] .nav__search,
html[data-theme="soft"] .nav__search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 151, 78, 0.25);
}
html[data-theme="blanc"] .nav__search input,
html[data-theme="luxe"] .nav__search input,
html[data-theme="soft"] .nav__search input {
  color: #f5efe6;
}
html[data-theme="blanc"] .nav__search input::placeholder,
html[data-theme="luxe"] .nav__search input::placeholder,
html[data-theme="soft"] .nav__search input::placeholder {
  color: rgba(245, 239, 230, 0.45);
}
html[data-theme="blanc"] .nav__search svg,
html[data-theme="luxe"] .nav__search svg,
html[data-theme="soft"] .nav__search svg {
  color: rgba(232, 213, 163, 0.75);
  stroke: rgba(232, 213, 163, 0.75);
}
html[data-theme="blanc"] .nav .lang-switch,
html[data-theme="luxe"] .nav .lang-switch,
html[data-theme="soft"] .nav .lang-switch,
html[data-theme="blanc"] .nav .theme-switch,
html[data-theme="luxe"] .nav .theme-switch,
html[data-theme="soft"] .nav .theme-switch {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 151, 78, 0.28);
}
html[data-theme="blanc"] .nav .lang-btn,
html[data-theme="luxe"] .nav .lang-btn,
html[data-theme="soft"] .nav .lang-btn,
html[data-theme="blanc"] .nav .theme-switch__btn,
html[data-theme="luxe"] .nav .theme-switch__btn,
html[data-theme="soft"] .nav .theme-switch__btn {
  color: rgba(245, 239, 230, 0.7);
}
html[data-theme="blanc"] .nav .lang-btn.active,
html[data-theme="luxe"] .nav .lang-btn.active,
html[data-theme="soft"] .nav .lang-btn.active {
  color: #0c0a0b;
  background: #e8d5a3;
}
html[data-theme="blanc"] .nav .theme-switch__btn.is-active,
html[data-theme="luxe"] .nav .theme-switch__btn.is-active,
html[data-theme="soft"] .nav .theme-switch__btn.is-active {
  color: #0c0a0b;
  background: #e8d5a3;
  box-shadow: none;
}
html[data-theme="blanc"] .nav .btn--outline,
html[data-theme="luxe"] .nav .btn--outline,
html[data-theme="soft"] .nav .btn--outline {
  color: #f5efe6;
  border-color: rgba(232, 213, 163, 0.45);
}
html[data-theme="blanc"] .nav .btn--outline:hover,
html[data-theme="luxe"] .nav .btn--outline:hover,
html[data-theme="soft"] .nav .btn--outline:hover {
  color: #0c0a0b;
  background: #e8d5a3;
  border-color: #e8d5a3;
}
html[data-theme="blanc"] .nav .btn--primary,
html[data-theme="luxe"] .nav .btn--primary,
html[data-theme="soft"] .nav .btn--primary {
  background: linear-gradient(135deg, #b8974e 0%, #d4bc7a 50%, #e8d5a3 100%);
  color: #0c0a0b;
  border: none;
  box-shadow: 0 4px 16px rgba(184, 151, 78, 0.35);
  font-weight: 800;
}
html[data-theme="blanc"] .nav__burger span,
html[data-theme="luxe"] .nav__burger span,
html[data-theme="soft"] .nav__burger span {
  background: #e8d5a3;
}
html[data-theme="blanc"] .nav__burger,
html[data-theme="luxe"] .nav__burger,
html[data-theme="soft"] .nav__burger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 151, 78, 0.3);
}
html[data-theme="soft"] .btn--primary {
  background: linear-gradient(135deg, #ffb3c6 0%, #ff6b9d 55%, #ff8fab 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--btn-shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}
html[data-theme="soft"] .btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 55%);
  pointer-events: none;
}
html[data-theme="soft"] .btn--primary:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.42);
  transform: translateY(-1px);
  filter: brightness(1.04);
}
html[data-theme="soft"] .btn--outline {
  border-color: rgba(255, 130, 170, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-radius: 999px;
}
html[data-theme="soft"] .btn--outline:hover {
  border-color: rgba(255, 107, 157, 0.55);
  background: rgba(255, 179, 198, 0.25);
  color: #c44569;
  box-shadow: 0 4px 16px rgba(255, 143, 171, 0.2);
}
html[data-theme="soft"] .post-card,
html[data-theme="soft"] .dash-card,
html[data-theme="soft"] .tool-card,
html[data-theme="soft"] .creator-card,
html[data-theme="soft"] .dash-post-item {
  background:
    var(--surface-shine),
    var(--bg-card);
  border-color: rgba(255, 160, 190, 0.28);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
html[data-theme="soft"] .post-card:hover,
html[data-theme="soft"] .tool-card:hover,
html[data-theme="soft"] .creator-card:hover,
html[data-theme="soft"] .dash-post-item:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px rgba(255, 120, 160, 0.18);
  transform: translateY(-2px);
}
html[data-theme="soft"] .age-gate__card {
  background:
    linear-gradient(165deg, rgba(255, 179, 198, 0.35) 0%, transparent 48%),
    #ffffff;
  border: 1px solid rgba(255, 143, 171, 0.35);
  box-shadow: 0 24px 64px rgba(255, 130, 170, 0.2);
  border-radius: 28px;
  color: var(--text);
}
html[data-theme="soft"] .age-gate__logo {
  filter: none;
}
html[data-theme="soft"] .hero__badge {
  background: rgba(255, 179, 198, 0.35);
  border-color: rgba(255, 143, 171, 0.45);
  color: #c44569;
  box-shadow: 0 4px 14px rgba(255, 143, 171, 0.15);
  border-radius: 999px;
}
html[data-theme="soft"] .hero__stats strong {
  color: #ff6b9d;
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
html[data-theme="soft"] .hero__card {
  border-color: rgba(255, 160, 190, 0.3);
  background:
    linear-gradient(160deg, rgba(255, 240, 245, 0.95), transparent 55%),
    #ffffff;
  box-shadow: 0 14px 36px rgba(255, 140, 170, 0.14);
}
html[data-theme="soft"] .modal {
  border-color: rgba(255, 160, 190, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 230, 240, 0.9), transparent 30%),
    #ffffff;
  box-shadow: 0 24px 80px rgba(255, 120, 160, 0.22);
  color: var(--text);
}
html[data-theme="soft"] .category-tag,
html[data-theme="soft"] .category-tag--link {
  background: rgba(255, 179, 198, 0.22);
  border-color: rgba(255, 143, 171, 0.35);
  color: #c44569;
  border-radius: 999px;
}
html[data-theme="soft"] .category-tag--link:hover {
  background: rgba(255, 107, 157, 0.18);
  border-color: rgba(255, 107, 157, 0.5);
  color: #ff6b9d;
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.2);
}
html[data-theme="soft"] .profile-banner {
  box-shadow: inset 0 -48px 70px rgba(255, 200, 220, 0.35);
}
html[data-theme="soft"] .profile-info h1 {
  font-family: var(--font-display);
  text-shadow: none;
  color: var(--text);
}
html[data-theme="soft"] .footer {
  border-top: 1px solid rgba(255, 160, 190, 0.22);
  background: linear-gradient(180deg, transparent, rgba(255, 230, 240, 0.55));
  color: var(--text-muted);
}
html[data-theme="soft"] .input,
html[data-theme="soft"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-theme="soft"] textarea,
html[data-theme="soft"] select {
  border-color: rgba(255, 160, 190, 0.35);
  background: #fff;
  color: var(--text);
}
html[data-theme="soft"] input:focus,
html[data-theme="soft"] textarea:focus,
html[data-theme="soft"] select:focus {
  border-color: rgba(255, 107, 157, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 179, 198, 0.35);
  outline: none;
}
html[data-theme="soft"] .live-dot,
html[data-theme="soft"] .live-badge {
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.45);
}
html[data-theme="soft"] .adblock-banner,
html[data-theme="soft"] .adblock-nudge {
  border-color: rgba(255, 143, 171, 0.4);
  box-shadow: 0 16px 40px rgba(255, 140, 170, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 230, 240, 0.95), rgba(255, 255, 255, 0.98)),
    #fff;
  color: var(--text);
}
html[data-theme="soft"] .tiktok-action--play {
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.45);
  background: linear-gradient(145deg, rgba(255, 107, 157, 0.9), rgba(255, 179, 198, 0.85));
}
/* For You stays dark/red — soft theme must not break rail buttons */
html[data-theme="soft"] .page--foryou .fy-rail .tiktok-action--play {
  background: linear-gradient(145deg, #ff3355, #c41e3a);
  box-shadow: 0 4px 14px rgba(255, 51, 85, 0.45);
  color: #fff;
}
html[data-theme="soft"] .ss-player__chrome {
  border-bottom-color: rgba(255, 160, 190, 0.25);
  background: linear-gradient(180deg, #fff0f5, #ffe4ee);
  color: var(--text);
}
html[data-theme="soft"] .ss-player__back {
  background: linear-gradient(135deg, #ffb3c6, #ff6b9d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);
}
html[data-theme="soft-UNUSED"] .theme-switch__btn.is-active {
  background: linear-gradient(135deg, rgba(255, 179, 198, 0.55), rgba(255, 107, 157, 0.25));
  color: #c44569;
  box-shadow: 0 2px 10px rgba(255, 143, 171, 0.25);
}
html[data-theme="soft"] .post-link,
html[data-theme="soft"] .post-card__content a {
  color: #ff6b9d;
}
html[data-theme="soft"] .post-link:hover {
  color: #c44569;
}
/* (nav link colors for blanc defined above — no pink override) */
html[data-theme="soft"] .filter.active,
html[data-theme="soft"] .tiktok-chip.active {
  background: rgba(255, 179, 198, 0.4);
  border-color: rgba(255, 107, 157, 0.5);
  color: #c44569;
}

/* Soft kawaii extras */
html[data-theme="soft"] .empty,
html[data-theme="soft"] .page-header p,
html[data-theme="soft"] .hero p {
  color: var(--text-muted);
}
html[data-theme="soft"] .mobile-menu,
html[data-theme="soft"] .mobile-menu__panel {
  background: rgba(255, 248, 251, 0.96);
  color: var(--text);
}
html[data-theme="soft"] .avatar,
html[data-theme="soft"] .avatar--sm {
  box-shadow: 0 0 0 2px rgba(255, 179, 198, 0.55);
}
html[data-theme="soft"] .ss-player {
  background: #1a0a12;
  color: #fff;
}
html[data-theme="soft"] .ss-player .ss-player__chrome {
  color: var(--text);
}

.hidden { display: none !important; }

/* ─── Theme switch (Soft / Cyber) — visitors & members ─────── */
.theme-switch {
  display: inline-flex;
  gap: 1px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}
.theme-switch--center {
  justify-content: center;
  display: flex;
  margin: 16px auto 0;
  width: fit-content;
}
.theme-switch--menu {
  width: 100%;
  margin: 0 0 8px;
  border-radius: 12px;
  padding: 4px;
}
.theme-switch--menu .theme-switch__btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.82rem;
  min-width: 0;
}
/* Nav bar: ultra-compact emoji-only switch (no collision with links) */
.nav .theme-switch {
  padding: 2px;
  gap: 0;
}
.nav .theme-switch__btn {
  padding: 4px 7px;
  font-size: 0.95rem;
  min-width: 30px;
  min-height: 28px;
  line-height: 1;
}
.theme-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-switch__btn:hover { color: var(--text); }
.theme-switch__btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
html[data-theme="noir"] .theme-switch__btn.is-active,
html[data-theme="cyber"] .theme-switch__btn.is-active {
  background: var(--accent);
  color: #0a0809;
  text-shadow: none;
}
.theme-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* clickable on age-gate (above overlays) */
.age-gate .theme-switch {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.age-gate .theme-switch__btn {
  pointer-events: auto;
  min-width: 72px;
  min-height: 36px;
}

/* ─── Language switch ─────────────────────────────────────── */
.lang-switch {
  display: flex;
  gap: 1px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-switch--center { justify-content: center; margin-top: 20px; }

.lang-switch--menu {
  width: 100%;
  margin: 0 0 10px;
  border-radius: 12px;
  padding: 4px;
  display: flex;
}
.lang-switch--menu .lang-btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 0.82rem;
  min-width: 0;
}

/* Nav bar: compact language pills */
.nav .lang-switch {
  padding: 2px;
}
.nav .lang-btn {
  padding: 4px 7px;
  font-size: 0.7rem;
}

.lang-btn {
  padding: 5px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active { background: var(--accent-soft); color: var(--accent); }
.lang-btn:hover:not(.active) { color: var(--text); }

.form-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
}

/* ─── Age Gate ────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.age-gate__card {
  max-width: 440px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
}

.age-gate__logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.age-gate__logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.age-gate h2 { font-size: 1.4rem; margin-bottom: 12px; }
.age-gate p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: 12px; }
.age-gate__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}
.age-gate__check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.age-gate__legal {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.age-gate__legal a {
  color: var(--accent);
  text-decoration: underline;
}
#age-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.post-action--report {
  margin-left: auto;
  opacity: 0.85;
  font-size: 0.82rem;
}
.post-action--report:hover { color: #e11; opacity: 1; }

/* Highlight reported post when opened via ?post= */
.post-card--highlight {
  outline: 3px solid var(--accent, #ff6b9d);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 107, 157, 0.25), 0 12px 40px rgba(0,0,0,0.2);
  animation: post-pulse 1.2s ease 2;
}
@keyframes post-pulse {
  0%, 100% { outline-color: var(--accent, #ff6b9d); }
  50% { outline-color: rgba(255, 255, 255, 0.6); }
}

/* Cookie notice RGPD */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9500;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; flex: 1; color: var(--text-muted); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--accent-glow); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover { color: var(--text); }

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--xs { padding: 5px 10px; font-size: 0.75rem; gap: 4px; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--danger {
  border-color: rgba(255, 68, 68, 0.45);
  color: #ff6b6b;
}

.btn--danger:hover {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.08);
}

.btn--primary.btn--danger {
  background: linear-gradient(135deg, #ff4444, #cc2244);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.35);
}

.btn--primary.btn--danger:hover {
  box-shadow: 0 6px 28px rgba(255, 68, 68, 0.45);
}
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  /* never clip CTA buttons */
  overflow: visible;
  flex-wrap: nowrap;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(55vw, 320px);
  min-height: 52px;
}

.nav__logo span,
.brand-mark__text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo + title mark (nav, age-gate, footer, player) */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark__img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  /* fond blanc doux semi-transparent + coins arrondis légers */
  background: rgba(255, 255, 255, 0.88) !important;
  border-radius: 8px;
  padding: 3px 8px;
  box-sizing: content-box;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  filter: none;
}
.brand-mark__img.hidden { display: none !important; }
.brand-mark__text {
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-mark__text.hidden { display: none !important; }
.nav__logo .brand-mark__text,
#nav-logo-text { font-size: inherit; }
.nav__logo .brand-mark__img,
#nav-logo-img {
  height: 38px;
  max-width: min(42vw, 190px);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9) !important;
}
/* header sombre: plaque blanche un peu plus opaque pour contraste */
html[data-theme="blanc"] .nav .brand-mark__img,
html[data-theme="luxe"] .nav .brand-mark__img,
html[data-theme="soft"] .nav .brand-mark__img,
html[data-theme="noir"] .nav .brand-mark__img,
html[data-theme="cyber"] .nav .brand-mark__img {
  background: rgba(255, 252, 248, 0.92) !important;
  border: 1px solid rgba(232, 213, 163, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  filter: none;
}
.age-gate__logo.brand-mark {
  justify-content: center;
  margin-bottom: 14px;
}
.age-gate__logo .brand-mark__img,
#age-gate-logo-img {
  height: 54px;
  max-width: min(72vw, 240px);
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  filter: none;
}
.footer__brand.brand-mark {
  font-size: 1.2rem;
  font-weight: 800;
}
.footer__brand .brand-mark__img,
#footer-logo-img {
  height: 30px;
  max-width: 150px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  filter: none;
}
.ss-player__brand.brand-mark { gap: 8px; }
.ss-player__brand .brand-mark__img {
  height: 32px;
  max-width: 130px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9) !important;
}
.ss-player__brand .brand-mark__text { font-size: 1.05rem; }

/* Theme switch: Blanc / Noir clearly active */
.theme-switch__btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--btn-shadow);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 800;
}

.nav__search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  color: var(--text-muted);
}

.nav__search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.nav__links {
  display: flex;
  gap: 1px;
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  /* breathing room before actions (theme / lang / CTA) */
  margin-right: 4px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav__link:hover, .nav__link.active { color: var(--text); background: var(--accent-soft); }
.nav__link.active { color: var(--accent); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
  /* isolate from menu links — never overlap */
  position: relative;
  z-index: 2;
  padding-left: 2px;
}

.nav__actions .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav__actions .btn--sm {
  padding: 7px 11px;
  font-size: 0.78rem;
}

/* Full label by default; short only on very small screens */
.nav__actions #btn-create-profile .btn-label-full { display: inline; }
.nav__actions #btn-create-profile .btn-label-short { display: none; }

/* Always show nav link text for visitors (icon + label) */
.nav__link span {
  display: inline;
  font-weight: 600;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 28px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu__logout {
  color: #ff6b6b !important;
  border-color: rgba(255, 68, 68, 0.35) !important;
}

/* ─── Main ────────────────────────────────────────────────── */
.main { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px 60px; }

.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero__badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 480px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.hero__stats span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.hero__visual { position: relative; height: 420px; min-width: 300px; }

.hero__card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  width: 280px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
}

.hero__card:hover {
  border-color: rgba(255, 45, 107, 0.35);
  box-shadow: 0 16px 48px rgba(255, 45, 107, 0.12);
  transform: translateY(-4px);
}

#hero-latest-user { top: 0; left: 0; animation-delay: 0s; }
#hero-latest-post { top: 150px; right: 0; animation-delay: -3s; }
.hero__card--post { width: 300px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero__card-body { min-height: 60px; }

.hero__card-empty {
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.hero__card strong { display: block; font-size: 1rem; }
.hero__card span { font-size: 0.8rem; color: var(--text-muted); }

.mini-stats { display: flex; gap: 16px; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* ─── Latest activity cards ───────────────────────────────── */
.section--latest { margin-top: 8px; }

.latest-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.2s;
  font-size: 0.85rem;
}

.activity-card:hover { border-color: rgba(255, 45, 107, 0.25); }

.activity-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.latest-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 0;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.latest-card:hover { background: var(--bg-elevated); }

.latest-card--compact {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 0.8rem;
}

.activity-card .latest-card--compact {
  padding: 2px 0;
}

.activity-card .latest-card--compact .avatar--sm {
  width: 22px;
  height: 22px;
  font-size: 0.55rem;
}

.latest-card--post { flex-direction: column; gap: 10px; }

.latest-card__info {
  flex: 1;
  min-width: 0;
}

.latest-card__info strong,
.latest-card__post-head strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 1px;
}

.latest-card__info > span,
.latest-card__post-head span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.latest-card__post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.latest-card__preview {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Avatar ──────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar--sm { width: 24px; height: 24px; font-size: 0.6rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.5rem; border: 3px solid var(--bg-card); }

.avatar--img { background: var(--bg-elevated); overflow: hidden; padding: 0; }
.avatar--img img { width: 100%; height: 100%; object-fit: cover; }

.nav__avatar.avatar--img img { 
  border-radius: 50% !important; 
  object-fit: cover !important;
  display: block !important;
  width: 40px !important;
  height: 40px !important;
}

.nav__avatar {
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.avatar img {
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Tags ────────────────────────────────────────────────── */
.platform-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag--of { background: rgba(0,174,239,0.2); color: #00aeef; }
.tag--cm { background: rgba(255,107,53,0.2); color: #ff6b35; }
.tag--x { background: rgba(255,255,255,0.1); color: #e7e7e7; }
.tag--fansly { background: rgba(29,161,242,0.2); color: #1da1f2; }
.tag--redgifs { background: rgba(255, 68, 68, 0.2); color: #ff4444; }
.tag--da { background: rgba(5, 175, 60, 0.2); color: #05af3c; }
.tag--ig { background: rgba(225,48,108,0.2); color: #e1306c; }
.tag--other { background: var(--accent-soft); color: var(--accent); }

/* ─── Section ─────────────────────────────────────────────── */
.section { margin-top: 20px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section__head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tabs { display: flex; gap: 4px; background: var(--bg-elevated); padding: 4px; border-radius: var(--radius-sm); }

.tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active, .tab:hover { background: var(--accent-soft); color: var(--accent); }

/* ─── Feed / Posts ────────────────────────────────────────── */
.feed { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.post-card:hover {
  border-color: rgba(255, 45, 107, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.post-card__owner-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px 0 14px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.post-card__owner-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: auto;
}

.post-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.post-card__header .info { flex: 1; min-width: 0; cursor: pointer; }
.post-card__header .info strong { display: block; font-size: 0.95rem; }
.post-card__header .info span { font-size: 0.8rem; color: var(--text-muted); }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.post-card__time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.post-card__kind {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.post-card__content { margin-bottom: 16px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

.post-card__content--html { word-break: break-word; white-space: normal; }
.post-card__content--text { white-space: pre-wrap; }
/* Auto-linked URLs in posts */
.post-link,
.post-card__content a,
.post-card__content--html a,
.tiktok-post__caption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  cursor: pointer;
}
.post-link:hover,
.post-card__content a:hover,
.tiktok-post__caption a:hover {
  color: #ff6b9d;
}
.post-link--internal {
  color: #c4b5fd;
}
.tiktok-post__caption a {
  color: #ffb3c9;
  pointer-events: auto;
}
.post-card__content--html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  cursor: pointer;
}
.post-card__content--html a { color: var(--accent); }
.post-card__content--html h3 { font-size: 1.1rem; margin: 8px 0; }

.post-media {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.post-media--image:hover .post-media__zoom { opacity: 1; }

.post-card__image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.post-card--media .post-media,
.post-card--media .post-card__image {
  margin-top: 4px;
  margin-bottom: 12px;
}

.post-card--media .post-media--image {
  border: none;
  max-height: 680px;
}

.post-media__zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.post-media--video {
  cursor: default;
  aspect-ratio: 16 / 9;
  background: #000;
}

.post-media--video iframe,
.post-media--video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: var(--radius-sm);
}

.post-card__media-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.9rem;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.post-card__link:hover { border-color: var(--accent); transform: translateX(4px); }

.post-card__actions {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}

.post-action:hover, .post-action.liked { color: var(--accent); }
.post-action.liked svg { fill: var(--accent); }

/* ─── Creator Grid ────────────────────────────────────────── */
.page-header { padding: 48px 0 32px; }
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.creator-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.creator-card:hover { transform: translateY(-4px); border-color: rgba(255,45,107,0.3); box-shadow: var(--shadow); }
.creator-card:hover::before { opacity: 1; }

.creator-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.creator-card__head .info strong { display: block; }
.creator-card__head .info span { font-size: 0.8rem; color: var(--text-muted); }

.creator-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-card__stats {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.creator-card__stats strong { color: var(--accent); }

.creator-card__rank {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ─── Feed filters (photo / video / category) ─────────────── */
.feed-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}
.feed-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.feed-filters__cats {
  padding-bottom: 4px;
}
.feed-filters .filter {
  font-size: 0.82rem;
  padding: 7px 14px;
}
.post-card__cats {
  margin: 0 0 10px;
  padding: 0 4px;
}
.post-media--vertical {
  aspect-ratio: 9 / 16 !important;
  max-height: 70vh;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
}

/* ─── Platform Filters ────────────────────────────────────── */
.platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter.active, .filter:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.category-tag {
  padding: 4px 12px;
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font);
  line-height: 1.3;
}

/* Clickable category → opens Discover filtered */
button.category-tag--link,
.category-tag--link {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-tag--link:hover {
  background: rgba(255, 45, 120, 0.22);
  border-color: rgba(255, 45, 120, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 45, 107, 0.2);
  color: #fff;
}
.category-tag--link:active { transform: scale(0.97); }
.category-tag--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.creator-card .category-tags { margin: 8px 0 12px; }
.creator-card .category-tag--link { position: relative; z-index: 2; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.category-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  user-select: none;
}

.category-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.category-check:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.category-check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-info .category-tags { margin: 12px 0 4px; }

/* ─── Profile Page ────────────────────────────────────────── */
.profile-banner {
  height: 220px;
  background: var(--gradient-subtle);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.profile-banner--editable { cursor: pointer; }

.profile-banner--editable:hover .profile-edit-overlay {
  opacity: 1;
}

.profile-edit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 1;
}

.profile-avatar-wrap--editable {
  cursor: pointer;
  position: relative;
}

.profile-avatar-wrap--editable:hover .profile-edit-overlay--avatar {
  opacity: 1;
}

.profile-edit-overlay--avatar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  opacity: 0;
  z-index: 2;
}

/* Header: avatar overlaps cover; name/bio always start BELOW the cover */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 24px 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
  margin-top: -56px;
}

.profile-info {
  flex: 1;
  min-width: min(100%, 280px);
  position: relative;
  z-index: 3;
  padding-top: 60px;
  padding-bottom: 2px;
}

/* Name + action buttons on the same row (PC): name left, buttons right */
.profile-info__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 10px;
  width: 100%;
}
.profile-info__titles {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: min(100%, 420px);
}
.profile-owner-actions .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.profile-info .username {
  color: var(--text-muted);
  margin: 0;
}
.profile-info .bio {
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 8px;
}

.profile-stats {
  display: flex;
  gap: 28px;
  margin-top: 16px;
}

.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-size: 1.3rem; color: var(--accent); }
.profile-stats span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* ─── Links Hub (profil) ──────────────────────────────────── */
.links-hub {
  padding: 0 24px 32px;
}

.links-hub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.links-hub__head h2 { font-size: 1.2rem; font-weight: 700; }

.links-hub__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-hub__empty {
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.link-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px var(--accent-glow); }

.link-btn--big {
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  justify-content: flex-start;
}

.link-btn--big .link-btn__icon { font-size: 1.6rem; width: 44px; text-align: center; flex-shrink: 0; }
.link-btn--big .link-btn__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.link-btn--big .link-btn__text strong { font-size: 1rem; }
.link-btn--big .link-btn__text small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.link-btn--big .link-btn__arrow { color: var(--accent); font-size: 1.2rem; font-weight: 700; }

.link-btn--onlyfans:hover { border-color: #00aeef; box-shadow: 0 4px 20px rgba(0,174,239,0.25); }
.link-btn--coomeet:hover { border-color: #ff6b35; box-shadow: 0 4px 20px rgba(255,107,53,0.25); }
.link-btn--x:hover { border-color: #e7e7e7; }
.link-btn--fansly:hover { border-color: #1da1f2; box-shadow: 0 4px 20px rgba(29,161,242,0.25); }
.link-btn--redgifs:hover { border-color: #ff4444; box-shadow: 0 4px 20px rgba(255, 68, 68, 0.25); }
.link-btn--deviantart:hover { border-color: #05af3c; box-shadow: 0 4px 20px rgba(5, 175, 60, 0.25); }

.links-hub__quick { margin-top: 20px; }
.links-hub__quick-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.links-hub__quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.platform-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-quick-btn span:first-child { font-size: 1.5rem; }
.platform-quick-btn:hover { border-color: var(--accent); border-style: solid; background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }

.platform-quick-btn--onlyfans:hover { border-color: #00aeef; color: #00aeef; background: rgba(0,174,239,0.1); }
.platform-quick-btn--coomeet:hover { border-color: #ff6b35; color: #ff6b35; background: rgba(255,107,53,0.1); }
.platform-quick-btn--fansly:hover { border-color: #1da1f2; color: #1da1f2; background: rgba(29,161,242,0.1); }
.platform-quick-btn--redgifs:hover { border-color: #ff4444; color: #ff4444; background: rgba(255, 68, 68, 0.1); }
.platform-quick-btn--deviantart:hover { border-color: #05af3c; color: #05af3c; background: rgba(5, 175, 60, 0.1); }

.onboarding-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,45,107,0.25);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.onboarding-card__icon { font-size: 2rem; flex-shrink: 0; }
.onboarding-card h3 { font-size: 1rem; margin-bottom: 6px; }
.onboarding-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.onboarding-card strong { color: var(--accent); }

.profile-posts { padding: 0 24px; }
.profile-posts h2 { font-size: 1.2rem; margin-bottom: 20px; }

.share-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 24px 32px;
  flex-wrap: wrap;
}

.share-box input {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
}

.share-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
.share-box__actions .btn {
  white-space: nowrap;
}

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.dash-card h3 { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

.dash-card--full { grid-column: 1 / -1; }

.dash-post-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-post-item:last-child { margin-bottom: 0; }
.dash-post-item:hover {
  border-color: rgba(255, 45, 107, 0.35);
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

.dash-post-item__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,45,107,0.15), rgba(30,30,40,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-post-item__thumb.is-empty {
  background: var(--gradient-subtle);
}
.dash-post-item__thumb-ico {
  font-size: 1.4rem;
  opacity: 0.85;
}

.dash-post-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.dash-post-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dash-post-item__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.dash-post-item__badge--photo {
  color: #7dd3fc;
  border-color: rgba(125,211,252,0.35);
  background: rgba(56,189,248,0.1);
}
.dash-post-item__badge--video {
  color: #f9a8d4;
  border-color: rgba(255,45,107,0.35);
  background: rgba(255,45,107,0.12);
}
.dash-post-item__badge--text {
  color: var(--text-muted);
}
.dash-post-item__plat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.dash-post-item__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}
.dash-post-item__text {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.dash-post-item__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dash-post-item__prov {
  text-transform: capitalize;
  opacity: 0.85;
}
.dash-post-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  justify-content: center;
}
@media (max-width: 560px) {
  .dash-post-item {
    flex-wrap: wrap;
  }
  .dash-post-item__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }
  .dash-post-item__actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
  .dash-post-item__time { margin-left: 0; }
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

.dash-header__info { flex: 1; min-width: 200px; }

.dash-header__info h3 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.dash-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dash-muted {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash-muted--sm {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.dash-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-stat-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}



.username-field {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.username-field:focus-within { border-color: var(--accent); }

.username-field__prefix {
  padding: 12px 0 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.username-field input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding-left: 4px !important;
  box-shadow: none !important;
}

.username-status--ok { color: #4ade80; }
.username-status--error { color: #ff6b6b; }

.dash-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.dash-stat strong { display: block; font-size: 1.8rem; color: var(--accent); }
.dash-stat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.dash-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.45;
}

.dash-hint--stats {
  margin: 16px 0 0;
  font-size: 0.8rem;
  text-align: center;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.link-item .info { flex: 1; min-width: 0; }
.link-item .info strong { display: block; font-size: 0.9rem; }
.link-item .info span { font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.link-item .clicks { font-size: 0.8rem; color: var(--text-muted); }

.btn-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
}

.btn-delete:hover { color: #ff4444; }

/* ─── Modal (centered PC + mobile) ────────────────────────── */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--bg-card);
  color: var(--text);
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: min(90vh, 900px);
  overflow: auto;
  box-shadow: var(--shadow);
  /* Center <dialog> in the top layer (PC + mobile) */
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
}

@media (min-width: 601px) {
  .modal {
    width: min(480px, calc(100% - 48px)) !important;
    max-height: min(85vh, 900px) !important;
  }
}

@media (max-width: 600px) {
  .modal {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    max-height: min(92dvh, 92vh) !important;
  }
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.modal__header h2 { font-size: 1.3rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal__close:hover { color: var(--text); }

.modal__body { padding: 24px 28px 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

.input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-prefix span {
  padding: 12px 0 12px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.input-prefix input {
  border: none;
  background: none;
  flex: 1;
}

/* ─── Auth tabs ─────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.oauth-block {
  padding: 0 28px 8px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-oauth:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-oauth--soon {
  position: relative;
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.25);
}
.btn-oauth--soon:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
  opacity: 0.85;
}
.btn-oauth__badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d, #c45cff);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.35);
}
.btn-oauth--soon .btn-oauth__badge {
  opacity: 1;
  filter: none;
}

.btn-oauth__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.btn-oauth--google .btn-oauth__icon {
  background: #fff;
  color: #4285f4;
  border-radius: 4px;
  font-family: Arial, sans-serif;
}

.btn-oauth--x .btn-oauth__icon {
  color: #e7e7e7;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.4;
}

.oauth-complete-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 45, 120, 0.2);
}

/* ─── Post editor ─────────────────────────────────────────── */
.post-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.post-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.editor-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.15s;
}

.editor-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.post-editor__area {
  min-height: 100px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px 14px;
  line-height: 1.5;
  outline: none;
  font-size: 0.95rem;
}

.post-editor__area:empty::before,
.post-editor__area.is-empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.post-editor__area img { max-width: 100%; border-radius: 6px; }

.post-media-preview {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-media-preview .post-media { margin-bottom: 0; }

.post-media-status {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--accent);
}

.post-media-status.is-error { color: #ff6b6b; }

.post-media--loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: default;
}

.post-media--embed {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.post-media--embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.post-media--vertical {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.post-media--vertical iframe {
  min-height: 480px;
}

#post-media-url {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.4;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-row input { accent-color: var(--accent); }

/* ─── Lightbox ─────────────────────────────────────────────── */
.modal--confirm { max-width: 420px; }

.confirm-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text);
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal--lightbox {
  max-width: min(96vw, 1100px);
  width: 96vw;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
}

.modal--lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__close:hover { background: rgba(255, 45, 120, 0.5); }

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  max-height: 90vh;
  padding: 48px 24px 24px;
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__content .post-media {
  width: 100%;
  max-width: 900px;
  margin: 0;
}

.auth-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ─── Upload zone ───────────────────────────────────────────── */
.upload-zone {
  margin-bottom: 18px;
  cursor: pointer;
}

.upload-zone__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.upload-zone:hover .upload-zone__preview { border-color: var(--accent); color: var(--accent); }

.upload-zone--sm .upload-zone__preview { min-height: 80px; padding: 16px; }

.upload-zone__preview.has-image { padding: 0; border-style: solid; }
.upload-zone__preview.has-image img { width: 100%; height: 120px; object-fit: cover; }
.upload-zone--sm .upload-zone__preview.has-image img { height: 80px; }

.post-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.post-photo-remove:hover {
  background: rgba(255, 45, 107, 0.9);
}

.upload-zone__icon { font-size: 1.8rem; }

.avatar-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.avatar-upload:hover .profile-edit-overlay--avatar { opacity: 1; }

.profile-avatar-wrap {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  width: auto;
  height: auto;
  overflow: visible; /* don't clip live badge / name layout */
}

.profile-avatar-wrap .avatar {
  width: 104px !important;
  height: 104px !important;
  border-radius: 50% !important;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  background: var(--bg-elevated);
}

.profile-avatar-wrap .avatar img,
.profile-avatar-wrap img {
  border-radius: 50% !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ─── Live badge & status ─────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 45, 45, 0.2);
  border: 1px solid #ff4444;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff6b6b;
  animation: livePulse 2s ease-in-out infinite;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.5); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(255, 68, 68, 0); }
}

.avatar-wrap--live .avatar {
  box-shadow: 0 0 0 3px #ff4444, 0 0 20px rgba(255, 68, 68, 0.5);
  animation: livePulse 2s ease-in-out infinite;
}

.profile-live-status {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.live-schedule {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.live-schedule strong { color: var(--gold); }

.link-btn--live-pulse {
  border-color: #ff4444 !important;
  animation: livePulse 2s ease-in-out infinite;
  background: rgba(255, 68, 68, 0.08) !important;
}

/* Live now grid */
.section--live.hidden { display: none; }

.live-now-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 68, 68, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  min-width: 220px;
}

.live-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2); }
.live-card strong { display: block; font-size: 0.9rem; }
.live-card span { font-size: 0.75rem; color: var(--text-muted); }
.live-card__badge { font-size: 0.7rem; font-weight: 700; color: #ff6b6b; margin-left: auto; }

.creator-card--live { border-color: rgba(255, 68, 68, 0.35); }
.creator-card__live {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(255, 68, 68, 0.15);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Top week */
.top-week-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-align: center;
}

.top-week-list .creator-card__rank {
  font-size: 1.1rem;
}

/* Live toggle dashboard */
.live-panel { padding: 4px 0; }

.live-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.live-toggle input { display: none; }

.live-toggle__slider {
  width: 48px;
  height: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

.live-toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s;
}

.live-toggle input:checked + .live-toggle__slider {
  background: rgba(255, 68, 68, 0.25);
  border-color: #ff4444;
}

.live-toggle input:checked + .live-toggle__slider::after {
  left: 25px;
  background: #ff4444;
}

.live-toggle__label { font-weight: 600; font-size: 0.95rem; }

.promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qr-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.qr-preview img { border-radius: 8px; }
.qr-preview span { font-size: 0.85rem; color: var(--text-muted); }

/* QR Modal */
.qr-modal {
  text-align: center;
}

.qr-modal img {
  border-radius: 12px;
  margin: 0 auto 16px;
  display: block;
  border: 1px solid var(--border);
}

.qr-modal__url {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 20px;
}

.qr-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: slideUp 0.3s ease;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }

.auth-forgot-row {
  margin: 0 0 14px;
  text-align: right;
}
.auth-forgot-row a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.auth-forgot-row a:hover { color: var(--accent); }
.auth-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-error {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #ff8a8a;
  background: rgba(255, 70, 70, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.form-error.hidden { display: none !important; }
.form-error.form-error--ok {
  color: #6ee7b7;
  border-color: rgba(45, 212, 160, 0.4);
  background: rgba(45, 212, 160, 0.12);
}



/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__brand {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.footer__brand:hover { opacity: 0.9; transform: scale(1.03); }
.footer__brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }

.footer__links { display: flex; justify-content: center; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer__links a:hover { color: var(--accent); }
.footer__admin-link {
  color: var(--accent) !important;
  font-weight: 700;
  border: 1px solid rgba(255, 45, 107, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--accent-soft);
}
.footer__admin-link:hover {
  background: rgba(255, 45, 107, 0.25) !important;
  color: #fff !important;
}
.mobile-menu__admin {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  text-align: left;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 45, 107, 0.35);
  border-radius: var(--radius-sm);
  min-height: 52px;
  box-sizing: border-box;
  font-family: var(--font);
}
.mobile-menu__admin:hover { background: rgba(255, 45, 107, 0.25); color: #fff; }

.footer__copy { font-size: 0.75rem !important; }

.footer__ad {
  max-width: 728px;
  margin: 20px auto 28px;
  width: 100%;
}

/* ─── Ad slots ────────────────────────────────────────────── */
.ad-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  width: 100%;
}

.ad-banner-wrap--compact { margin-bottom: 24px; }

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.sidebar-ads {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.profile-posts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.ad-slot {
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}
/* Hide ad blocks until Admin injects live code (no empty placeholders) */
.ad-slot:not(.ad-slot--live),
.ad-slot--empty,
.ad-slot[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: none !important;
}
.ad-slot.ad-slot--live {
  display: block !important;
  border-style: solid;
  border-color: var(--border);
}
.ad-banner-wrap:not(:has(.ad-slot--live)),
.sidebar-ads:not(:has(.ad-slot--live)),
.ss-player__promo:not(:has(.ad-slot--live)) {
  display: none !important;
}

.ad-slot--native {
  border-style: solid;
  border-color: var(--border);
  margin: 4px 0;
}

.ad-slot__label {
  display: block;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.75;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.ad-slot__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
}

.ad-slot--leaderboard .ad-slot__inner {
  aspect-ratio: 728 / 90;
  max-width: 728px;
  min-height: 90px;
}

.ad-slot--rectangle .ad-slot__inner {
  aspect-ratio: 300 / 250;
  min-height: 250px;
}

.ad-slot--halfpage .ad-slot__inner {
  aspect-ratio: 300 / 600;
  min-height: 400px;
}

.ad-slot--native .ad-slot__inner {
  min-height: 100px;
  aspect-ratio: auto;
}

.ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  color: var(--text-muted);
  text-align: center;
}

.ad-slot__dims {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 45, 107, 0.55);
  font-variant-numeric: tabular-nums;
}

.ad-slot--live .ad-slot__placeholder { display: none; }
.ad-slot__inner--filled {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  width: 100%;
  overflow: hidden;
}
.ad-slot__inner--filled iframe,
.ad-slot__inner--filled img {
  max-width: 100%;
  height: auto;
}

.ad-slot__hint {
  font-size: 0.72rem;
  max-width: 220px;
  line-height: 1.45;
  opacity: 0.85;
}

/* ─── NSFW blur gate ──────────────────────────────────────── */
.nsfw-gate {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.nsfw-gate__preview {
  filter: blur(22px) brightness(0.55);
  transform: scale(1.06);
  pointer-events: none;
  user-select: none;
  max-height: 420px;
  overflow: hidden;
}

.nsfw-gate__preview .post-card__image,
.nsfw-gate__preview img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.nsfw-gate__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1020, #2a1530);
  min-height: 200px;
}

.nsfw-gate__placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.nsfw-gate__btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 10, 15, 0.45);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.nsfw-gate__btn:hover {
  background: rgba(10, 10, 15, 0.6);
}

.nsfw-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 68, 68, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
}

/* ─── Legal pages ─────────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.4);
  color: #ff6b6b;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__links a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Empty state ─────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ─── Responsive ──────────────────────────────────────────── */

/* Wide desktop: comfortable spacing */
@media (min-width: 1280px) {
  .nav { gap: 14px; padding: 12px 28px; }
  .nav__search { max-width: 280px; }
  .nav__link { padding: 8px 11px; font-size: 0.86rem; }
  .nav__link span { font-size: 0.86rem; }
  .nav .theme-switch__btn { padding: 5px 8px; min-width: 32px; }
  .nav .lang-btn { padding: 5px 8px; font-size: 0.72rem; }
}

/* Large desktop: full labels, slightly tighter */
@media (min-width: 1100px) and (max-width: 1279px) {
  .nav { gap: 8px; padding: 10px 16px; }
  .nav__search { max-width: 180px; flex: 0 1 180px; }
  .nav__link { padding: 6px 8px; font-size: 0.76rem; gap: 3px; }
  .nav__link span { font-size: 0.76rem; }
  .nav__link svg { width: 16px; height: 16px; }
  .nav__actions { gap: 5px; }
  .nav__actions .btn--sm { font-size: 0.75rem; padding: 7px 10px; }
  .nav .theme-switch__btn { padding: 3px 6px; min-width: 28px; font-size: 0.9rem; }
  .nav .lang-btn { padding: 3px 6px; font-size: 0.68rem; }
}

/* Mid desktop (laptops / zoomed): search on 2nd row, compact actions */
@media (max-width: 1099px) and (min-width: 901px) {
  .nav { flex-wrap: wrap; row-gap: 8px; padding: 10px 14px; gap: 8px; }
  .nav__search { order: 4; flex: 1 1 100%; max-width: none; }
  .nav__logo { max-width: 160px; }
  .nav__links {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
    padding-right: 8px;
  }
  .nav__link { padding: 6px 7px; font-size: 0.74rem; gap: 3px; }
  .nav__link span { display: inline !important; font-size: 0.74rem; }
  .nav__link svg { width: 15px; height: 15px; }
  .nav__actions {
    gap: 5px;
    margin-left: auto;
  }
  /* Lang takes a lot of width — only in menu on narrow desktops */
  .nav__actions .lang-switch { display: none; }
  .nav__actions #btn-create-profile .btn-label-full { display: none; }
  .nav__actions #btn-create-profile .btn-label-short { display: inline; }
  .nav__actions .btn--sm { font-size: 0.74rem; padding: 7px 10px; }
  .nav .theme-switch__btn { padding: 3px 6px; min-width: 28px; font-size: 0.88rem; }
}

/* Tablet / mobile: burger menu — theme & lang live inside drawer */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .latest-activity-grid { grid-template-columns: 1fr; }
  .nav__links, .nav__search { display: none !important; }
  .nav__burger { display: flex !important; }

  .nav {
    height: auto;
    min-height: var(--nav-h);
    padding: 10px 12px;
    gap: 8px;
    overflow: visible;
  }

  /* Logo | Actions | Burger — clear separation */
  .nav__logo { order: 1; flex-shrink: 1; font-size: 1.15rem; max-width: min(42vw, 170px); min-width: 0; }
  .nav__logo .brand-mark__img,
  #nav-logo-img {
    height: 34px !important;
    max-width: min(40vw, 150px) !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    background: rgba(255, 252, 248, 0.92) !important;
  }
  .nav__actions {
    order: 2;
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
    max-width: none;
    /* Theme/lang are in the burger menu — free space in bar */
  }
  .nav__actions .theme-switch,
  .nav__actions .lang-switch {
    display: none !important;
  }
  .nav__burger {
    order: 3;
    margin-left: 4px;
    align-self: center;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 102;
    flex-shrink: 0;
  }
  .nav__burger span {
    width: 22px;
    height: 2.5px;
  }
  .nav__actions #btn-login.btn--sm {
    padding: 8px 11px;
    font-size: 0.8rem;
  }
  .nav__actions #btn-create-profile .btn-label-full { display: none; }
  .nav__actions #btn-create-profile .btn-label-short { display: inline; }
  .nav__actions #btn-create-profile {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .dashboard { grid-template-columns: 1fr; }
  .dash-stat-grid,
  .dash-stat-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { flex-wrap: wrap; gap: 16px; }
  .content-with-sidebar,
  .profile-posts-layout { grid-template-columns: 1fr; }
  .sidebar-ads { display: none; }
  .ad-slot--halfpage .ad-slot__inner { min-height: 250px; aspect-ratio: 300 / 250; }
}

@media (max-width: 600px) {
  .nav {
    padding: 8px 10px;
    height: auto;
    min-height: 56px;
    align-items: center;
    gap: 6px;
  }
  .nav__logo { font-size: 1.05rem; max-width: min(38vw, 140px); overflow: hidden; }
  .nav__logo .brand-mark__img, #nav-logo-img { height: 32px !important; max-width: min(36vw, 130px) !important; }
  .nav__burger {
    padding: 9px;
    margin-left: 2px;
  }
  .nav__burger span {
    width: 20px;
    height: 2.5px;
  }
  .nav__actions {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .nav__actions #btn-login {
    padding: 7px 9px;
    font-size: 0.76rem;
  }
  .nav__actions #btn-create-profile {
    padding: 7px 9px;
    font-size: 0.76rem;
  }
  .nav__actions #btn-create-profile .btn-label-full { display: none; }
  .nav__actions #btn-create-profile .btn-label-short { display: inline; }

  .main { padding: 0 16px 40px; }
  .hero { padding: 32px 0 48px; }
  .profile-banner { height: 160px; border-radius: var(--radius-sm); }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -48px;
    padding: 0 16px 24px;
    gap: 12px;
  }
  .profile-avatar-wrap .avatar {
    width: 88px !important;
    height: 88px !important;
  }
  /* On mobile stack: avatar on cover, then name fully below cover */
  .profile-info {
    padding-top: 8px;
    width: 100%;
  }
  .profile-info h1 { font-size: 1.45rem; }
  /* Owner actions under the name, full-width grid */
  .profile-info__top {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .profile-owner-actions {
    margin-left: 0;
    max-width: none;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }
  .profile-owner-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    justify-content: center;
    text-align: center;
  }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .share-box {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 16px 24px;
    padding: 14px;
  }
  .share-box input { width: 100%; min-width: 0; flex: none; }
  .share-box__actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }
  .share-box__actions .btn {
    flex: 1 1 calc(33% - 6px);
    min-width: calc(50% - 6px);
    justify-content: center;
  }
  .links-hub { padding: 0 16px 24px; }

  .mobile-menu {
    width: 100%;
    left: 0;
    right: 0;
  }
}

@media (max-width: 400px) {
  .nav__actions { gap: 4px; }
  .lang-btn { padding: 4px 6px; font-size: 0.65rem; }
  .nav__actions .btn--sm { padding: 7px 9px; font-size: 0.74rem; }
  .nav__logo { font-size: 1.1rem; }
}

/* ─── Mobile menu: explicit labels + hints for visitors ─────── */
.mobile-menu {
  padding: 16px 16px 28px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  gap: 8px;
}
.mobile-menu__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 4px;
  padding: 0 4px;
}
.mobile-menu__section {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 12px 0 4px;
  padding: 0 4px;
}
.mobile-menu__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  min-height: 56px;
}
.mobile-menu__item:hover,
.mobile-menu__item:focus-visible {
  border-color: rgba(255, 45, 107, 0.45);
  background: var(--accent-soft);
}
.mobile-menu__item-main {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.mobile-menu__item-hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
}
.mobile-menu__item--primary {
  background: linear-gradient(135deg, rgba(255,45,107,0.22), rgba(196,77,255,0.12));
  border-color: rgba(255, 45, 107, 0.4);
}
.mobile-menu__item--primary .mobile-menu__item-main { color: #fff; }
.mobile-menu__item--accent {
  border-color: rgba(255, 45, 107, 0.25);
}
.mobile-menu__item--danger .mobile-menu__item-main {
  color: #ff6b6b;
}
.mobile-menu__auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__search { margin-bottom: 4px; }
.mobile-menu__search input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

/* ─── Home promo → TikTok Feed ──────────────────────────────── */
.section--tiktok-promo { margin: 8px 0 20px; }
.tiktok-promo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 107, 0.35);
  background: linear-gradient(135deg, rgba(255,45,107,0.18), rgba(196,77,255,0.12));
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tiktok-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 45, 107, 0.2);
}
.tiktok-promo__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.tiktok-promo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tiktok-promo__text strong { font-size: 1rem; }
.tiktok-promo__text span { font-size: 0.85rem; color: var(--text-muted); }
.tiktok-promo__cta {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ─── TikTok-style vertical feed (Feed / Jeux) ──────────────── */
body.tiktok-mode .nav,
body.tiktok-mode .mobile-menu,
body.tiktok-mode .footer {
  display: none !important;
}
body.tiktok-mode .main {
  padding: 0 !important;
  max-width: none !important;
}
body.tiktok-mode .page--tiktok.active {
  display: block !important;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.page--tiktok {
  padding: 0 !important;
  margin: 0;
  position: relative;
  background: #000;
  width: 100%;
}

.tiktok-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
  pointer-events: none;
}
.tiktok-topbar > * { pointer-events: auto; }
.tiktok-topbar__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,28,0.65);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.tiktok-topbar__title {
  flex: 1;
  min-width: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tiktok-topbar__title strong { font-size: 1rem; }
.tiktok-topbar__title span { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.tiktok-topbar__filters {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.tiktok-catbar {
  position: fixed;
  top: 58px;
  top: calc(58px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
}
.tiktok-catbar::-webkit-scrollbar { display: none; }
.tiktok-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,20,28,0.7);
  color: #eee;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.tiktok-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}

.tiktok-feed {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #000;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}
.tiktok-media__text {
  width: min(92%, 420px);
  padding: 28px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,45,107,0.25), rgba(30,30,40,0.92));
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.45;
  text-align: center;
}
.tiktok-media__text p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.tiktok-loading, .tiktok-feed > .empty {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  padding: 24px;
  text-align: center;
}

.tiktok-post {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  overflow: hidden;
}

.tiktok-post__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.tiktok-media__img,
.tiktok-media__video,
.tiktok-media__frame {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}

.tiktok-media__empty {
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.tiktok-post__overlay {
  position: absolute;
  left: 16px;
  right: 72px;
  bottom: 28px;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.tiktok-post__overlay > * { pointer-events: auto; }

.tiktok-post__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  padding: 6px 12px 6px 6px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  font-family: var(--font);
}
.tiktok-post__user .avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.tiktok-post__user img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.tiktok-post__caption {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 100%;
}

.tiktok-post__actions {
  position: absolute;
  right: 10px;
  bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.tiktok-action {
  width: 52px;
  min-height: 52px;
  padding: 6px 4px 4px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,12,18,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: var(--font);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tiktok-action:hover {
  transform: scale(1.06);
  background: rgba(255,45,107,0.22);
  border-color: rgba(255,45,107,0.4);
}
.tiktok-action:active { transform: scale(0.96); }
.tiktok-action__icon,
.tiktok-action span:not(.tiktok-action__label) {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
.tiktok-action__label,
.tiktok-action small {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.1;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tiktok-action.liked {
  color: #fff;
  background: rgba(255,45,107,0.35);
  border-color: rgba(255,45,107,0.65);
  box-shadow: 0 0 18px rgba(255,45,107,0.35);
}
.tiktok-action.liked .tiktok-action__icon { animation: tiktok-heart 0.35s ease; }
@keyframes tiktok-heart {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.tiktok-action--play {
  background: linear-gradient(145deg, rgba(255,45,107,0.55), rgba(196,77,255,0.4));
  border-color: rgba(255,255,255,0.25);
  width: 56px;
  min-height: 56px;
  border-radius: 50%;
}
.tiktok-action--play .tiktok-action__icon { font-size: 1.15rem; margin-left: 2px; }
.tiktok-action--close {
  background: rgba(255,45,107,0.18);
  border-color: rgba(255,45,107,0.35);
}
.tiktok-action--next {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.tiktok-action--next:hover {
  background: rgba(255,45,107,0.25);
}

/* TikTok polish: more room under filters, richer overlay */
.page--tiktok .tiktok-feed {
  scroll-padding-top: 0;
}
.tiktok-post__media {
  background: #000;
}
.tiktok-media__img,
.tiktok-media__video {
  object-position: center center;
}
.tiktok-post__overlay {
  padding-right: 8px;
}
.tiktok-topbar__back:hover {
  border-color: rgba(255,45,107,0.5);
  background: rgba(255,45,107,0.25);
}
.tiktok-chip:hover {
  border-color: rgba(255,255,255,0.35);
}

.tiktok-game-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(10,10,15,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  backdrop-filter: blur(10px);
}
.tiktok-game-header strong { display: block; font-size: 1rem; }
.tiktok-game-header p { margin: 2px 0 0; color: #bbb; font-size: 0.85rem; }
.tiktok-game-header__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.tiktok-post--game .tiktok-post__media {
  inset: 0;
}
.tiktok-loading { color: #fff; padding: 40vh 24px; text-align: center; }

/* ─── Full-bleed TikTok previews (photo / video loop) ──────── */
.tiktok-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050508;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.tiktok-preview:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent, #ff2d6b);
}
.tiktok-preview__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  pointer-events: none;
  user-select: none;
}
/* Portrait-friendly contain when very tall on desktop */
@media (min-width: 900px) {
  .tiktok-preview__media {
    object-fit: contain;
    background:
      radial-gradient(ellipse 70% 50% at 50% 40%, rgba(40,20,35,0.9), #050508);
  }
  .tiktok-preview--photo .tiktok-preview__media {
    object-fit: cover;
  }
}
.tiktok-preview__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to right, transparent 70%, rgba(0,0,0,0.2) 100%);
}
.tiktok-preview__badge {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12,12,18,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.tiktok-preview__play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,45,107,0.85), rgba(196,77,255,0.75));
  box-shadow: 0 12px 36px rgba(255,45,107,0.45);
  pointer-events: none;
  opacity: 0.92;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tiktok-preview--video:hover .tiktok-preview__play,
.tiktok-preview--video:focus-visible .tiktok-preview__play {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}
/* Soft kawaii: sakura play accents (feed stays dark for media) */
html[data-theme="soft"] .tiktok-preview__play {
  background: linear-gradient(145deg, rgba(255,107,157,0.95), rgba(255,179,198,0.9));
  box-shadow: 0 12px 32px rgba(255,107,157,0.5);
}
html[data-theme="soft"] .tiktok-preview__badge {
  border-color: rgba(255,179,198,0.45);
  background: rgba(255,107,157,0.35);
}

/* ─── For You · clean TikTok/RedGifs layout (fixed buttons) ── */
.page--foryou {
  --fy-red: #ff3355;
  background: #000 !important;
}
.page--foryou .rg-topbar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  z-index: 60;
}
.page--foryou .rg-catbar {
  z-index: 55;
  top: 54px;
  top: calc(54px + env(safe-area-inset-top, 0px));
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.page--foryou .tiktok-chip.active {
  background: rgba(255, 51, 85, 0.3);
  border-color: #ff3355;
  color: #fff;
}
.page--foryou .rg-feed,
.page--foryou .tiktok-feed {
  background: #000;
  outline: none;
  /* full-bleed scroll — no flex (breaks snap + button layout) */
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Slide = full viewport, UI layered on top */
.page--foryou .tiktok-post.fy-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  background: #000;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Media layer — bottom */
.page--foryou .fy-media,
.page--foryou .tiktok-post__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.page--foryou .tiktok-preview,
.page--foryou .tiktok-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}
.page--foryou .tiktok-preview__media,
.page--foryou .tiktok-card__bg,
.page--foryou .tiktok-media__video,
.page--foryou .tiktok-media__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}
.page--foryou .tiktok-preview__fade {
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 40%);
  pointer-events: none;
}
.page--foryou .tiktok-preview__badge,
.page--foryou .tiktok-preview__play,
.page--foryou .tiktok-card__content,
.page--foryou .tiktok-card__brand {
  z-index: 2;
  pointer-events: none;
}
/* Clickable cards/previews still work */
.page--foryou .tiktok-card,
.page--foryou .tiktok-preview[data-ss-player] {
  pointer-events: auto;
  cursor: pointer;
}

/* Mute — top left under chips */
.fy-mute {
  position: absolute;
  left: 12px;
  top: 118px;
  top: calc(118px + env(safe-area-inset-top, 0px));
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.fy-mute:active { transform: scale(0.94); }

/* Bottom meta — left, clear of rail */
.page--foryou .fy-meta,
.page--foryou .tiktok-post__overlay.fy-meta {
  position: absolute;
  left: 12px;
  right: 72px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100% - 84px);
  pointer-events: none;
}
.page--foryou .fy-meta > * {
  pointer-events: auto;
}
.page--foryou .fy-user.tiktok-post__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.page--foryou .fy-user .avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--fy-red, #ff3355);
}
.page--foryou .fy-user .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fy-tag {
  border: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,51,85,0.25);
  color: #ffc0cb;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}
.fy-caption {
  margin: 0;
  color: #fff !important;
  font-size: 0.88rem !important;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  max-height: 2.8em;
  overflow: hidden;
}
.fy-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Right action rail — always on top, never clipped */
.page--foryou .fy-rail,
.page--foryou .tiktok-post__actions.fy-rail {
  position: absolute;
  right: 8px;
  bottom: max(80px, calc(64px + env(safe-area-inset-bottom, 0px)));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 56px;
  pointer-events: auto;
}
.page--foryou .fy-rail .tiktok-action {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  height: auto;
  padding: 6px 2px 4px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.page--foryou .fy-rail .tiktok-action__icon {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
}
.page--foryou .fy-rail .tiktok-action__label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page--foryou .fy-rail .tiktok-action.liked {
  background: rgba(255, 51, 85, 0.55);
  border-color: #ff3355;
  color: #fff;
}
.page--foryou .fy-rail .tiktok-action--play {
  width: 52px;
  min-height: 52px;
  background: linear-gradient(145deg, #ff3355, #c41e3a);
  border-color: rgba(255,255,255,0.3);
}
.page--foryou .fy-rail .tiktok-action:hover {
  transform: scale(1.06);
  background: rgba(255, 51, 85, 0.35);
}

/* Desktop: slightly narrower stage feel without breaking rail */
@media (min-width: 900px) {
  .page--foryou .fy-media {
    background: #050505;
  }
  .page--foryou .tiktok-preview__media,
  .page--foryou .tiktok-card__bg {
    max-width: 480px;
    margin: 0 auto;
  }
  .page--foryou .fy-rail {
    right: max(12px, calc(50% - 280px));
  }
  .page--foryou .fy-meta {
    left: max(16px, calc(50% - 230px));
  }
  .page--foryou .fy-mute {
    left: max(12px, calc(50% - 230px));
  }
}

/* Double-tap heart */
.fy-slide.fy-heart::after {
  content: '♥';
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 40;
  transform: translate(-50%, -50%);
  font-size: 4.5rem;
  color: #ff3355;
  pointer-events: none;
  animation: fy-heart 0.5s ease forwards;
  text-shadow: 0 6px 24px rgba(255,51,85,0.6);
}
@keyframes fy-heart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

.rg-keys-hint {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  pointer-events: none;
}
.rg-keys-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 2px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.65rem;
}
@media (max-width: 720px) {
  .rg-keys-hint { display: none; }
}

/* Ad slides in For You */
.rg-slide--ad,
.fy-slide.rg-slide--ad {
  background: #050508;
}
.rg-stage--ad {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255,51,85,0.12), transparent 60%),
    #050508;
}
.rg-ad-wrap {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.rg-ad-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.rg-slide--ad .ad-slot {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.rg-slide--ad .fy-rail,
.rg-slide--ad .tiktok-post__actions {
  z-index: 35;
}

/* ─── TikTok capture cards (poster → SexyShare player) ─────── */
.tiktok-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0a0a0f;
  font-family: var(--font);
  color: #fff;
  text-align: left;
}
.tiktok-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.tiktok-card__bg--gradient {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(255,45,107,0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(196,77,255,0.35), transparent 50%),
    linear-gradient(160deg, #1a0a14, #0a0a12 50%, #12081a);
}
.tiktok-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 42%, rgba(0,0,0,0.2) 100%);
}
.tiktok-card__content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 110px;
  bottom: max(110px, calc(90px + env(safe-area-inset-bottom)));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.tiktok-card__badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,45,107,0.25);
  border: 1px solid rgba(255,45,107,0.45);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tiktok-card__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--gradient);
  box-shadow: 0 10px 32px rgba(255,45,107,0.5);
  margin: 8px 0;
  transition: transform 0.2s ease;
}
.tiktok-card:hover .tiktok-card__play,
.tiktok-card:focus-visible .tiktok-card__play {
  transform: scale(1.08);
}
.tiktok-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  max-width: 90%;
}
.tiktok-card__cta {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.tiktok-card__brand {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  opacity: 0.9;
}
.tiktok-card__brand span { color: var(--accent); }

/* ─── SexyShare full player modal ──────────────────────────── */
.ss-player {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: #050508;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden !important; /* no outer scrollbar on player dialog */
}
.ss-player:not([open]) { display: none; }
.ss-player::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.ss-player__chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(180deg, #14141c, #0c0c12);
  border-bottom: 1px solid rgba(255,45,107,0.25);
  z-index: 2;
}
.ss-player__brand {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.ss-player__brand span { color: var(--accent); }
.ss-player__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ss-player__meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-player__meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-player__back {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(255,45,107,0.5);
  background: var(--gradient);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,45,107,0.35);
  white-space: nowrap;
}
.ss-player__back:hover { transform: translateY(-1px); }
.ss-player__stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255,45,107,0.08), transparent 60%), #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden; /* no page scrollbars */
}
/* Centered media box — fixed aspect, no internal scrollbars */
.ss-player__media-wrap {
  position: relative;
  flex: 0 1 auto;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden !important; /* clip iframe chrome */
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  background: #000;
  /* hard size: never taller/wider than stage */
  max-width: 100%;
  max-height: 100%;
}
/* YouTube / wide 16:9 — fit inside stage without scroll */
.ss-player__media-wrap--wide {
  width: min(100%, 920px, calc((100% - 0px) * 1));
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(100%, calc(100dvh - 168px));
  width: min(100%, 920px, calc((100dvh - 168px) * 16 / 9));
}
/* RedGifs / vertical 9:16 */
.ss-player__media-wrap--vertical {
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(100%, calc(100dvh - 168px));
  width: min(100%, 400px, calc((100dvh - 168px) * 9 / 16));
}
/* X / Twitter embeds — more square-ish */
.ss-player__media-wrap--square {
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: min(100%, calc(100dvh - 168px), 560px);
  width: min(100%, 520px, calc((100dvh - 168px) * 1));
}
/* Photo lightbox */
.ss-player__media-wrap--photo {
  aspect-ratio: auto;
  width: min(96vw, 720px);
  height: min(88vh, calc(100dvh - 140px));
  max-height: min(88vh, calc(100dvh - 140px));
  background: transparent;
}
.ss-player__frame,
.ss-player__video,
.ss-player__photo {
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
  object-position: center center;
}
.ss-player__video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.ss-player__photo {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}
/* iframe fills box exactly — no scrollbar from content overflow */
.ss-player__frame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  overflow: hidden;
  /* hide scrollbars if provider forces overflow */
  scrollbar-width: none;
}
.ss-player__frame::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ss-player__open-ext {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.ss-player__open-ext:hover { border-color: var(--accent); color: #fff !important; }
.ss-player__external {
  max-width: 420px;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ss-player__ext-poster {
  width: min(100%, 280px);
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.ss-player__ext-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,255,255,0.12);
}
.ss-player__external h3 {
  font-size: 1.2rem;
  margin: 4px 0 0;
}
.ss-player__external p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}
.ss-player__ext-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255,45,107,0.4);
}
.ss-player__ext-note {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.5) !important;
}
.ss-player__promo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #12121a, #0c0c12);
  border-top: 1px solid rgba(255,255,255,0.08);
  min-height: 56px;
}
.ss-player__promo-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.ss-player__promo-copy strong { color: #fff; font-size: 0.95rem; }
.ss-player__promo-copy strong span { color: var(--accent); }
.ss-player__promo .ad-slot--player {
  flex: 0 1 280px;
  min-height: 50px;
  max-height: 90px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.ss-player__promo .ad-slot__label {
  font-size: 0.65rem;
  opacity: 0.5;
  padding: 2px 6px;
}

@media (max-width: 560px) {
  .ss-player__chrome { flex-wrap: wrap; }
  .ss-player__back { width: 100%; text-align: center; order: 3; }
  .ss-player__promo { flex-direction: column; align-items: stretch; }
  .ss-player__promo .ad-slot--player { flex: none; width: 100%; max-width: none; }
}

/* Games feed: leave room under topbar for cards */
.tiktok-feed--games {
  padding-top: 0;
}

@media (min-width: 900px) {
  .tiktok-feed {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
  }
}

/* ─── Creator tools page ───────────────────────────────────── */
.tools-page { max-width: 1100px; margin: 0 auto; padding-bottom: 48px; }
.tools-intro {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.tools-intro h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tools-intro p { margin: 0; color: var(--text-muted); line-height: 1.5; font-size: 0.92rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tool-card:hover {
  border-color: rgba(255, 45, 107, 0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,45,107,0.25);
}
.tool-card h3 { margin: 0; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; flex: 1; }
.tool-card code {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
.tool-card__tips {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.tool-card__tips li { margin-bottom: 4px; }
.tool-card .btn { align-self: flex-start; margin-top: 4px; }
.tools-howto {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,45,107,0.25);
  background: linear-gradient(145deg, rgba(255,45,107,0.08), rgba(196,77,255,0.05));
}
.tools-howto h2 { margin: 0 0 14px; font-size: 1.15rem; }
.tools-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.tools-steps li { margin-bottom: 8px; }
.tools-steps strong { color: var(--text); }
.tools-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  opacity: 0.9;
}
.tools-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Anti-adblock bait (hidden; adblockers often remove/hide) ─ */
.adsbox,
.ad-banner,
.adsbygoogle,
#ad-bait {
  height: 1px !important;
  width: 1px !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0.01 !important;
}

/* ─── Anti-adblock delayed sexy banner ─────────────────────── */
.adblock-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 45, 107, 0.22), rgba(196, 77, 255, 0.14)),
    var(--bg-card);
  border: 1px solid rgba(255, 45, 107, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 45, 107, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}
.adblock-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.adblock-banner__inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 16px;
}
.adblock-banner__emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(255, 45, 107, 0.5));
  animation: adblock-pulse 2.2s ease-in-out infinite;
}
@keyframes adblock-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.adblock-banner__body { flex: 1; min-width: 0; }
.adblock-banner__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  margin: 0 0 6px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.adblock-banner__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 14px;
}
.adblock-banner__text strong { color: var(--text); }
.adblock-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.adblock-banner__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 24px rgba(255, 45, 107, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.adblock-banner__btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 45, 107, 0.55);
}
.adblock-banner__btn:active { transform: scale(0.98); }
.adblock-banner__dismiss {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.adblock-banner__dismiss:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.adblock-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.adblock-banner__close:hover { color: #fff; }

@media (max-width: 520px) {
  .adblock-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .adblock-banner__inner { padding: 16px 14px 14px; gap: 10px; }
  .adblock-banner__title { font-size: 1.1rem; }
  .adblock-banner__actions { width: 100%; }
  .adblock-banner__btn { flex: 1 1 auto; text-align: center; }
}

/* ─── Sexy adblock reminder (bottom-left after “Plus tard”) ─── */
.adblock-nudge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 45, 107, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 45, 107, 0.28), rgba(196, 77, 255, 0.18)),
    rgba(12, 12, 18, 0.92);
  color: #fff;
  font-family: var(--font);
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 45, 107, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(120%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  text-align: left;
  appearance: none;
}
.adblock-nudge.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.adblock-nudge:hover {
  border-color: rgba(255, 45, 107, 0.7);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(255, 45, 107, 0.4);
}
.adblock-nudge__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 50%, rgba(255,45,107,0.35), transparent 55%);
  pointer-events: none;
  opacity: 0.7;
  animation: adblock-nudge-glow 2.8s ease-in-out infinite;
}
@keyframes adblock-nudge-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
.adblock-nudge__emoji {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(255, 45, 107, 0.45);
  flex-shrink: 0;
  animation: adblock-pulse 2.2s ease-in-out infinite;
}
.adblock-nudge__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.adblock-nudge__copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
  font-family: var(--font-display);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adblock-nudge__copy span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adblock-nudge__close {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.15s, background 0.15s;
}
.adblock-nudge__close:hover {
  color: #fff;
  background: rgba(255, 45, 107, 0.35);
}

/* Hide floating reminder while full banner is open */
.adblock-banner.is-visible ~ .adblock-nudge,
body:has(.adblock-banner.is-visible) .adblock-nudge {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* TikTok immersive: keep reminder but slightly smaller / safe */
body.tiktok-mode .adblock-nudge {
  left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  max-width: min(240px, calc(100vw - 80px));
}

@media (max-width: 520px) {
  .adblock-nudge {
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 72px);
    padding: 9px 10px 9px 9px;
    gap: 8px;
  }
  .adblock-nudge__emoji { width: 34px; height: 34px; font-size: 1.05rem; }
  .adblock-nudge__copy strong { font-size: 0.82rem; }
  .adblock-nudge__copy span { font-size: 0.68rem; }
}


/* Admin impersonation banner */
.impersonate-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: linear-gradient(90deg, #1a0a2e, #3d0a1f 50%, #1a0a2e);
  border-bottom: 2px solid #ff3355;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.impersonate-banner[hidden] { display: none !important; }
.impersonate-banner__exit {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,51,85,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.impersonate-banner__exit:hover { background: #ff3355; }

/* ─── SwissEscort cities strip (FGirl-style) ───────────────── */
.ch-cities {
  margin: 8px 0 28px;
  padding: 8px 0 4px;
}
.ch-cities__head {
  text-align: center;
  margin-bottom: 16px;
}
.ch-cities__head h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--text);
}
.ch-cities__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.ch-cities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (max-width: 720px) {
  .ch-cities__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.ch-city {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(214, 0, 28, 0.22);
  background:
    linear-gradient(160deg, rgba(214,0,28,0.08), transparent 55%),
    var(--bg-card, #fff);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 18px rgba(214, 0, 28, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ch-city:hover {
  transform: translateY(-2px);
  border-color: #d6001c;
  box-shadow: 0 10px 28px rgba(214, 0, 28, 0.18);
}
.ch-city__flag { font-size: 1.4rem; line-height: 1; }
.ch-city strong { font-size: 0.95rem; }
.ch-city small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #d6001c;
  letter-spacing: 0.04em;
}
.ch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(214, 0, 28, 0.1);
  border: 1px solid rgba(214, 0, 28, 0.25);
  color: var(--text);
}
.ch-badge--rate {
  background: rgba(214, 0, 28, 0.16);
  color: #d6001c;
}
.ch-badge--city {
  background: rgba(0, 0, 0, 0.06);
}
html[data-theme="cyber"] .ch-badge {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
  color: #e8f7ff;
}
html[data-theme="cyber"] .ch-badge--rate { color: #00f0ff; }
.ch-whatsapp { margin: 8px 0 4px; }
.ch-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.ch-services {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(214, 0, 28, 0.06);
  border: 1px solid rgba(214, 0, 28, 0.15);
}
.ch-services h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #d6001c;
}
.ch-services p { margin: 0; white-space: pre-wrap; font-size: 0.92rem; }
.ch-city__count {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.ch-types {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 0 12px;
}
.ch-types__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ch-type {
  border: 1px solid rgba(214, 0, 28, 0.25);
  background: var(--bg-card, #fff);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ch-type:hover {
  border-color: #d6001c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(214, 0, 28, 0.12);
}
.listing-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0 4px;
}
.listing-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ─── Escort listing cards (FGirl-style) ───────────────── */
.escort-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 12px;
}
@media (max-width: 1100px) {
  .escort-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .escort-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 420px) {
  .escort-grid { grid-template-columns: 1fr; }
}
.escort-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(214, 0, 28, 0.16);
  background: var(--bg-card, #fff);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 100%;
}
.escort-card:hover {
  transform: translateY(-3px);
  border-color: #d6001c;
  box-shadow: 0 14px 32px rgba(214, 0, 28, 0.16);
}
.escort-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #1a0a10;
  overflow: hidden;
}
.escort-card__photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
}
.escort-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d6001c 0%, #4a0010 100%);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.escort-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.escort-card__badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.escort-card__badge--new { background: #0a7a3e; }
.escort-card__badge--hot { background: #d6001c; }
.escort-card__badge--now { background: #c45c00; }
.escort-card__badge--rank { background: rgba(0, 0, 0, 0.65); }
.escort-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.escort-card__name {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--text);
}
.escort-card__where {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.escort-card__where strong { color: #d6001c; font-weight: 700; }
.escort-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0;
  font-size: 0.78rem;
  font-weight: 700;
}
.escort-card__rate { color: #d6001c; }
.escort-card__meta, .escort-card__wa { color: var(--text-muted); }
.escort-card__bio {
  margin: 2px 0 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="cyber"] .escort-card {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(8, 12, 20, 0.9);
}
html[data-theme="cyber"] .escort-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 14px 32px rgba(0, 240, 255, 0.12);
}
html[data-theme="cyber"] .escort-card__where strong,
html[data-theme="cyber"] .escort-card__rate { color: #00f0ff; }
html[data-theme="cyber"] .ch-type {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(8, 12, 20, 0.8);
}
.section--hot .section__head,
.section--new .section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .form-row--2 { grid-template-columns: 1fr; }
}

label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}
label.checkbox input { accent-color: #d6001c; }

/* ─── Verified badge ─────────────────────────────────────── */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #c9a227, #e8d5a3);
  color: #2a1a1c;
  vertical-align: middle;
}
.escort-card__badge--verified {
  background: linear-gradient(135deg, #c9a227, #e8d5a3);
  color: #2a1a1c;
}
.profile-info__titles h1 .badge-verified { margin-left: 8px; font-size: 0.75rem; }

/* ─── CH Map (Leaflet · style Google Maps) ───────────────── */
.ch-map-section { margin: 8px 0 32px; }
.ch-map-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(184, 151, 78, 0.28);
  background:
    linear-gradient(145deg, rgba(92, 26, 40, 0.08), rgba(184, 151, 78, 0.06)),
    var(--bg-card);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.ch-leaflet-map {
  position: relative;
  width: 100%;
  height: min(52vh, 420px);
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe8f0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ch-leaflet-map.leaflet-container {
  font: inherit;
  width: 100% !important;
  height: min(52vh, 420px) !important;
  min-height: 280px !important;
  background: #dfe8f0;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  /* avoid site-wide img/svg max-width breaking tiles */
  max-width: none !important;
  max-height: none !important;
}
/* Fallback ville buttons if Leaflet/tiles fail */
.ch-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255, 252, 248, 0.55), rgba(92, 26, 40, 0.08)),
    linear-gradient(145deg, #e8eef5, #d4dde8);
}
.ch-map-fallback.is-hidden,
.ch-map-fallback[hidden] {
  display: none !important;
}
.ch-map-fallback__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: #5c1a28;
}
.ch-map-fallback__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 560px;
}
@media (max-width: 560px) {
  .ch-map-fallback__grid { grid-template-columns: repeat(2, 1fr); }
}
.ch-map-fallback__btn {
  border: 1px solid rgba(92, 26, 40, 0.22);
  background: rgba(255, 252, 248, 0.95);
  color: #2a1a1c;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ch-map-fallback__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 26, 40, 0.15);
  border-color: rgba(184, 151, 78, 0.55);
}
.ch-map-fallback__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
/* When fallback is moved outside map container (after Leaflet init) */
.ch-map-wrap > .ch-map-fallback {
  position: relative;
  min-height: 0;
  padding: 12px 8px 4px;
  background: transparent;
}
.ch-map-wrap > .ch-map-fallback.is-hidden,
.ch-map-wrap > .ch-map-fallback[hidden] {
  display: none !important;
}
.ch-leaflet-map .leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  color: #5c1a28 !important;
  border-color: rgba(92, 26, 40, 0.15) !important;
}
.ch-leaflet-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.82) !important;
  max-width: 70%;
}
/* Pins GPS style Google */
.ch-pin {
  background: transparent !important;
  border: none !important;
}
.ch-pin__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transform: translate(0, 0);
  transition: transform 0.15s ease;
}
.ch-pin:hover .ch-pin__inner,
.ch-pin:focus-within .ch-pin__inner {
  transform: scale(1.08) translateY(-2px);
  z-index: 10;
}
.ch-pin__marker {
  position: relative;
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}
.ch-pin__head {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #7a2435 0%, #5c1a28 55%, #3d1018 100%);
  border: 2px solid #e8d5a3;
  box-sizing: border-box;
}
.ch-pin__head::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #e8d5a3;
}
.ch-pin__point { display: none; }
.ch-pin__label {
  margin-left: -4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(92, 26, 40, 0.2);
  color: #2a1a1c;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 130px;
}
.ch-pin__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #5c1a28;
  color: #e8d5a3;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
html[data-theme="noir"] .ch-pin__label,
html[data-theme="cyber"] .ch-pin__label {
  background: rgba(24, 16, 18, 0.92);
  color: #f5efe6;
  border-color: rgba(232, 213, 163, 0.35);
}
/* legacy SVG map (kept for safety if markup restored) */
.ch-map-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  background: #1a1214;
}
.ch-map__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.02);
  z-index: 0;
  filter: saturate(0.95) contrast(1.05);
}
.ch-map__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 20%, rgba(12, 8, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 8, 10, 0.15) 0%, transparent 30%, rgba(12, 8, 10, 0.45) 100%);
}
.ch-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  max-height: none;
}
.ch-map__land {
  fill: url(#chLandGrad);
  stroke: url(#chStrokeGrad);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.ch-map__alps {
  stroke: rgba(232, 213, 163, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  opacity: 0.7;
}
.ch-map__lakes {
  fill: rgba(120, 175, 210, 0.45);
  stroke: rgba(200, 230, 245, 0.35);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(120, 180, 220, 0.35));
}
.ch-map__pin {
  cursor: pointer;
  transition: transform 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.ch-map__pin:hover,
.ch-map__pin:focus-within {
  transform: scale(1.12);
}
.ch-map__pin-dot {
  fill: #5c1a28;
  stroke: #e8d5a3;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transition: fill 0.15s ease;
}
.ch-map__pin-core {
  fill: #e8d5a3;
  pointer-events: none;
}
.ch-map__pin-glow {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ch-map__pin:hover .ch-map__pin-dot {
  fill: #b8974e;
  stroke: #fff8e8;
}
.ch-map__pin:hover .ch-map__pin-glow { opacity: 1; }
.ch-map__pin-label {
  font-size: 13px;
  font-weight: 800;
  fill: #fff8ef;
  font-family: var(--font);
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(12, 8, 10, 0.75);
  stroke-width: 3.5px;
  letter-spacing: 0.02em;
}
.ch-map__hint {
  margin: 10px 4px 2px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
html[data-theme="blanc"] .ch-map-wrap,
html[data-theme="luxe"] .ch-map-wrap,
html[data-theme="soft"] .ch-map-wrap {
  border-color: rgba(92, 26, 40, 0.18);
}
html[data-theme="noir"] .ch-map__veil,
html[data-theme="cyber"] .ch-map__veil {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 15%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

/* ─── Reviews ────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
.review-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.review-card__stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.review-card__meta {
  margin: 6px 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.review-card__meta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.review-card__text { font-size: 0.9rem; line-height: 1.45; margin: 0; }
.review-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.review-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) {
  .review-form .form-row { grid-template-columns: 1fr; }
}
.stars-input { display: flex; gap: 4px; }
.stars-input button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.35;
  color: var(--gold);
}
.stars-input button.on { opacity: 1; }

/* ─── Verification panel ─────────────────────────────────── */
.verify-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.verify-box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.verify-box p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.9rem; }
.verify-box__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.verify-box__status--ok { background: rgba(10, 122, 62, 0.15); color: #0a7a3e; }
.verify-box__status--pending { background: rgba(201, 162, 39, 0.2); color: #8a7010; }
.verify-box__status--rejected { background: rgba(155, 27, 46, 0.15); color: #9b1b2e; }
.verify-box__status--none { background: var(--bg-elevated); color: var(--text-muted); }

/* ─── Safety / legal extras ──────────────────────────────── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.legal-section { margin-bottom: 22px; }
.legal-section h2 { font-size: 1.15rem; margin-bottom: 8px; color: var(--accent); }
.legal-section p, .legal-section li { color: var(--text-muted); font-size: 0.95rem; }
.safety-banner {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(155, 27, 46, 0.25);
  background: rgba(155, 27, 46, 0.06);
  font-size: 0.88rem;
  color: var(--text);
}
.safety-banner a { color: var(--accent); font-weight: 700; }

/* ─── Responsive polish ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__cta { flex-wrap: wrap; }
  .hero__stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  /* keep vertical padding — only tighten horizontal */
  .nav { padding-left: 10px; padding-right: 10px; }
  .nav__search { display: none; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .ch-cities__grid { grid-template-columns: repeat(2, 1fr); }
  .listing-filters__row { gap: 6px; }
  .listing-filters__row .filter { font-size: 0.78rem; padding: 6px 10px; }
  .section__head { flex-wrap: wrap; gap: 8px; }
  .ch-map-wrap { padding: 8px; }
  .ch-leaflet-map { height: min(48vh, 340px); min-height: 240px; }
  .ch-map-stage { min-height: 240px; aspect-ratio: 4 / 3; }
  .ch-pin__label { font-size: 10px; padding: 2px 6px; }
  .ch-map__pin-label { font-size: 11px; stroke-width: 3px; }
  .ch-map__pin-dot { stroke-width: 1.8; }
}
@media (max-width: 400px) {
  .escort-grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
}

/* ─── Gallery ─────────────────────────────────────────────── */
.profile-gallery { margin: 20px 0 28px; }
.profile-gallery h2 { margin-bottom: 12px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item__del {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.gallery-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 3/4;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
}
.gallery-upload:hover { border-color: var(--accent); color: var(--accent); }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-lightbox.hidden { display: none; }
.gallery-lightbox img {
  max-width: min(96vw, 900px);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ─── Hours schedule ──────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 8px 0 0;
}
.hours-table th,
.hours-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.hours-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hours-table .closed { color: var(--text-muted); font-style: italic; }
.hours-table .open { color: var(--accent); font-weight: 700; }
.hours-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.hours-editor__row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 560px) {
  .hours-editor__row { grid-template-columns: 1fr 1fr; }
  .hours-editor__row .day-label { grid-column: 1 / -1; }
}
.ch-hours-box {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.ch-hours-box h3 { margin: 0 0 8px; font-size: 1rem; }

/* Mentions légales placeholders */
.legal-placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* Card contact + hours row */
.escort-card__contact { margin-top: 2px; gap: 8px; }
.escort-card__phone, .escort-card__wa, .escort-card__hours {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.escort-card__wa { color: var(--accent); }

/* Verify account panel */
.verify-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.verify-box__head h3 { margin: 0; flex: 1; }
.verify-box__help { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-muted); }
.verify-box__steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.verify-preview {
  margin-top: 8px;
  min-height: 0;
}
.verify-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}
.dash-card--verify {
  border: 1px solid rgba(184, 151, 78, 0.35);
  box-shadow: 0 8px 24px rgba(184, 151, 78, 0.08);
}

/* Review owner delete */
.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.review-card__del {
  flex-shrink: 0;
  opacity: 0.85;
}
.review-card__del:hover {
  opacity: 1;
  border-color: #c44;
  color: #c44;
}
.review-form .turnstile-wrap {
  margin: 8px 0 4px;
}
.review-form .cf-turnstile {
  min-height: 65px;
}
