/* HotFans.lol — rose / indigo / teal theme */

:root {
  --bg: #060608;
  --bg-card: #0f0f14;
  --bg-elevated: #16161e;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(99, 102, 241, 0.45);

  --rose: #e11d48;
  --rose-light: #fb7185;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --teal: #14b8a6;
  --teal-light: #2dd4bf;

  --text: #ececf1;
  --text-muted: #8b8b97;
  --text-dim: #55555f;

  --gradient-brand: linear-gradient(120deg, var(--rose) 0%, var(--indigo) 55%, var(--teal) 100%);
  --gradient-featured: linear-gradient(120deg, var(--indigo) 0%, var(--rose) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.bg-glow--rose {
  width: 480px;
  height: 480px;
  background: var(--rose);
  top: -120px;
  right: 10%;
}

.bg-glow--indigo {
  width: 520px;
  height: 520px;
  background: var(--indigo);
  bottom: 10%;
  left: -80px;
}

/* Telegram top bar */
.tg-topbar {
  position: relative;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  background: linear-gradient(90deg, rgba(0, 136, 204, 0.18) 0%, rgba(0, 136, 204, 0.10) 100%);
  border-bottom: 1px solid rgba(0, 136, 204, 0.25);
}

.tg-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.35);
}

.tg-topbar__btn:hover {
  background: #0099dd;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.5);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(6, 6, 8, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo__hot { color: var(--rose-light); }
.logo__fans { color: var(--text); }
.logo__tld { color: var(--teal-light); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav__cta {
  background: var(--rose);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--rose-light);
}

/* Hero — centered layout */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 100px;
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* keep old grid styles for reference but unused */
.hero__grid { display: none; }
.hero__content { text-align: center; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 28px;
}

.hero__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero__title-accent {
  color: var(--indigo-light);
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.35);
}

.btn--primary:hover {
  background: var(--rose-light);
  box-shadow: 0 6px 28px rgba(225, 29, 72, 0.45);
}

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

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

.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.hero__trust {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__trust li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
}

.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Hero visual stack */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.hero__frame-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero__card {
  position: absolute;
  width: 72%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotate));
  transition: transform 0.4s ease;
}

.hero__frame:hover .hero__card {
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 4px)) rotate(var(--rotate));
}

.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.65);
  transform: scale(1.12);
}

.hero__card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

.hero__card-lock svg {
  width: 28px;
  height: 28px;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section__header {
  margin-bottom: 36px;
}

.section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section__header--row p {
  max-width: 320px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 8px;
}

.section__header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Preview grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.preview-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.preview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
}

.preview-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.1);
}

.preview-card__img--clear {
  filter: none;
  transform: none;
}

.preview-card__overlay--clear {
  background: linear-gradient(to top, rgba(6,6,8,0.7) 0%, transparent 50%);
  justify-content: flex-end;
  padding-bottom: 14px;
}

.preview-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
}

.preview-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.4);
  gap: 8px;
}

.preview-card__lock {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-lock {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* ── Library Section ─────────────────────────────────────────────────────── */
.library-section {
  border-top: 1px solid var(--border);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* Base lib card */
.lib-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.lib-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  gap: 6px;
}

/* Preview card — clickable, has gradient accent */
.lib-card--preview {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(160deg, rgba(99,102,241,0.1) 0%, var(--bg-card) 60%);
  cursor: pointer;
}

.lib-card--preview:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 12px 36px rgba(99,102,241,0.15);
}

.lib-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.lib-card__icon-wrap--preview {
  background: rgba(99,102,241,0.15);
  color: var(--indigo-light);
}

.lib-card__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lib-card__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.lib-card__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lib-card__stat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.lib-card__cta {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo-light);
}

/* Locked card */
.lib-card--locked {
  cursor: default;
  background: var(--bg-card);
}

.lib-card--locked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.012) 8px,
    rgba(255,255,255,0.012) 16px
  );
  pointer-events: none;
}

.lib-card__lock-icon {
  color: var(--text-dim);
  margin-bottom: 4px;
  opacity: 0.5;
}

.lib-card__sub-badge {
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lib-card__name { font-size: 0.88rem; }
}

.preview-lock .icon-lock {
  color: var(--indigo-light);
  flex-shrink: 0;
}

.preview-lock p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.icon-lock {
  color: var(--indigo-light);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.plans-section {
  padding-bottom: 96px;
  border-top: 1px solid var(--border);
}

.plans-header {
  margin-bottom: 48px;
}

.plans-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  margin-top: 6px;
}

.plans-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* Base card */
.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-4px);
}

/* Trial card accent */
.plan-card--trial {
  border-color: rgba(20, 184, 166, 0.2);
}
.plan-card--trial:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.08);
}

/* Weekly card accent */
.plan-card--weekly {
  border-color: rgba(99, 102, 241, 0.2);
}
.plan-card--weekly:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}

/* Featured card */
.plan-card--featured {
  border-color: var(--indigo);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.11) 0%, rgba(225, 29, 72, 0.06) 60%, var(--bg-card) 100%);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 16px 50px rgba(99, 102, 241, 0.15);
}
.plan-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), 0 24px 60px rgba(99, 102, 241, 0.22);
}

/* Badge */
.plan-card__badge {
  position: absolute;
  top: -1px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(120deg, var(--indigo) 0%, var(--rose) 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 0 0 12px 12px;
  white-space: nowrap;
}

/* Icon wrap */
.plan-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.plan-card__icon-wrap--trial   { background: rgba(20, 184, 166, 0.12); color: var(--teal-light); }
.plan-card__icon-wrap--weekly  { background: rgba(99, 102, 241, 0.12); color: var(--indigo-light); }
.plan-card__icon-wrap--featured { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Head */
.plan-card__head {
  margin-bottom: 20px;
}

.plan-card__head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.plan-card__duration {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Price */
.plan-card__price {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-card__amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-card__period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-card__monthly {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: 24px;
}

/* Divider */
.plan-card__divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Features */
.plan-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.plan-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232dd4bf'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plan-card--featured .plan-card__features li::before {
  background: rgba(99, 102, 241, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23818cf8'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* CTA button */
.plan-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  letter-spacing: 0.01em;
}

.plan-card--trial .plan-card__btn {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--teal-light);
}
.plan-card--trial .plan-card__btn:hover {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(20, 184, 166, 0.55);
  transform: translateY(-1px);
}

.plan-card--weekly .plan-card__btn {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--indigo-light);
}
.plan-card--weekly .plan-card__btn:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-1px);
}

.plan-card__btn--featured {
  background: linear-gradient(120deg, var(--indigo) 0%, #4f46e5 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.plan-card__btn--featured:hover {
  background: linear-gradient(120deg, var(--indigo-light) 0%, var(--indigo) 100%);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

/* Trust row */
.plans-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 36px;
}

.plans-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.plans-trust-item svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.gallery-modal__panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform var(--transition);
  overflow: hidden;
}

.gallery-modal.is-open .gallery-modal__panel {
  transform: translateY(0);
}

.gallery-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 10px;
}

.gallery-modal__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.gallery-modal__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gallery-modal__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.gallery-modal__preview-note {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rose-light);
  background: rgba(225,29,72,0.1);
  border: 1px solid rgba(225,29,72,0.2);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.gallery-modal__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.gallery-modal__unlock {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 8px 14px;
}

.gallery-modal__close-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.gallery-modal__close-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.gallery-modal__item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.gallery-modal__item:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.4);
}

.gallery-modal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.6);
  transform: scale(1.08);
}

.gallery-modal__item-img--clear {
  filter: none !important;
  transform: none !important;
}

.gallery-modal__item-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,8,0.3);
  color: rgba(255,255,255,0.7);
}

/* Model cards in gallery modal */
.gallery-modal__grid--models {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.gallery-modal__model-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform var(--transition), border-color var(--transition);
}

.gallery-modal__model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.4);
}

.gallery-modal__model-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-modal__model-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.6);
  transform: scale(1.08);
}

.gallery-modal__model-img-wrap img.gallery-modal__item-img--clear {
  filter: none;
  transform: none;
}

.gallery-modal__model-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-modal__model-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-modal__model-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Back button */
.gallery-modal__back {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.gallery-modal__back:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

@media (max-width: 480px) {
  .gallery-modal__panel { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .gallery-modal__grid { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 8px; }
  .gallery-modal__title { max-width: 110px; font-size: 0.92rem; }
  .gallery-modal__preview-note { display: none; }
  .gallery-modal__unlock { padding: 7px 12px; font-size: 0.78rem; }
}
/* Preview card count badge */
.preview-card__count {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo--footer {
  font-size: 1.1rem;
}

.footer__disclaimer {
  font-size: 0.76rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.5;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

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

.age-gate[hidden] {
  display: none;
}

.age-gate__panel {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.age-gate__logo {
  display: inline-block;
  margin-bottom: 28px;
  pointer-events: none;
}

.age-gate__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.age-gate__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.age-gate__text--muted {
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate__actions .btn {
  width: 100%;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 380px;
  width: calc(100% - 48px);
  text-align: center;
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__icon {
  margin-bottom: 12px;
}

.modal__content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal__content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.modal__close {
  width: 100%;
  margin-bottom: 10px;
}

.modal__dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__frame {
    max-width: 280px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .plan-card--featured {
    order: -1;
  }

  .plans-trust-row {
    gap: 8px 18px;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__header--row p {
    text-align: left;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }

  .nav a[href*="bestleaks"] {
    display: inline-flex;
    font-size: 0.78rem;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 64px;
  }

  .preview-grid {
    gap: 10px;
  }

  .preview-lock {
    flex-direction: column;
    text-align: center;
  }
}
