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

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-hover: #161616;
  --text: #eaeaea;
  --text-muted: #888888;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --chip-bg: #1f1f1f;
  --chip-active: #a855f7;
  --chip-active-text: #ffffff;
  --tag-pro: #a855f7;
  --tag-new: #10b981;
  --tag-8s: #3b82f6;
  --border: #1f1f1f;
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.4px;
}

.logo .wordmark {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .dot { color: var(--accent); }

.play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

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

.header-right { display: flex; align-items: center; gap: 14px; }

.eye-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.eye-icon { width: 17px; height: 17px; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
}

.sidebar.open { visibility: visible; opacity: 1; }

.sidebar-inner {
  width: 290px;
  height: 100vh;
  max-height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translatex(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open .sidebar-inner { transform: translatex(0); }

.close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-list { list-style: none; flex: 1; }

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 3px;
  transition: var(--transition);
}

.sidebar-item:hover { background: var(--panel-hover); color: var(--text); }
.sidebar-item.active { color: var(--accent); background: rgba(168, 85, 247, 0.08); }

.sidebar-footer { display: flex; flex-direction: column; gap: 9px; }

.sidebar-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar-btn:hover { color: var(--text); background: var(--panel-hover); }
.sidebar-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
}
.sidebar-btn-primary:hover { background: var(--accent-hover); }

/* ---------- Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.overlay.open { opacity: 1; visibility: visible; }

/* ---------- Filters ---------- */
.filters {
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 50;
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
}

.chip:hover { background: var(--panel-hover); color: var(--text); }
.chip.active {
  background: var(--chip-active);
  color: var(--chip-active-text);
  border-color: var(--chip-active);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.chip.heart, .chip.video, .chip.images {
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip svg { width: 13px; height: 13px; stroke-width: 1.7; }

.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 130px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translatey(-6px);
  transition: var(--transition);
  z-index: 100;
  padding: 6px 0;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translatey(0);
}

.dropdown-menu li button {
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-menu li button:hover { background: var(--panel-hover); color: var(--accent); }

.dropdown-trigger svg { transition: transform 0.2s ease; }
.dropdown.open .dropdown-trigger svg { transform: rotate(180deg); }

.volume-control {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
}

.vol-label { font-size: 0.78rem; color: var(--text-muted); }
.volume-control input[type="range"] { width: 110px; accent-color: var(--accent); cursor: pointer; }
.vol-value { font-size: 0.78rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Dense 5-Column Gallery ---------- */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: start;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  width: 100%;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover { border-color: var(--accent); transform: translatey(-2px); }
.card.promo { flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #5b21b6 0%, #3b0764 100%); color: #fff; }

.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.volume-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}
.volume-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title { font-size: 0.78rem; font-weight: 600; color: #fff; line-height: 1.15; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.tag { font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.3px; text-transform: uppercase; }
.tag.pro { background: var(--tag-pro); color: #fff; }
.tag.new { background: var(--tag-new); color: #fff; }
.tag.seconds { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.35); }

/* Promo card internals */
.card.promo .card-info { position: static; background: transparent; padding: 12px 14px 0; }
.promo-timer { display: flex; gap: 6px; margin-bottom: 8px; justify-content: center; flex-wrap: wrap; }
.timer-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 5px 7px;
  min-width: 34px;
  text-align: center;
}
.timer-box .value { font-size: 0.78rem; font-weight: 800; }
.timer-box .label { font-size: 0.58rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.4px; }
.promo-discount { font-size: 2rem; font-weight: 800; margin: 3px 0 2px; line-height: 1; }
.promo-off { font-size: 0.9rem; font-weight: 800; color: rgba(255,255,255,0.9); letter-spacing: 1px; margin-bottom: 7px; }
.promo-diamond {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L20 12L12 22L4 12Z'/%3E%3C/svg%3E");
  mask-size: contain;
  margin: 7px auto 3px;
}
.promo-text { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 9px; text-transform: uppercase; }
.claim-btn {
  width: 100%;
  max-width: 160px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  transition: var(--transition);
  margin-bottom: 3px;
}
.claim-btn:hover { background: var(--accent-hover); transform: translatey(-1px); }
.claim-btn:active { transform: translatey(0); }

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  background: #0f0f0f;
  border-top: 1px solid var(--border);
  padding: 32px 20px 40px;
}
.bottom-inner { max-width: 1100px; margin: 0 auto; }
.bottom-head { text-align: center; margin-bottom: 26px; }
.bottom-head h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.bottom-sub { color: var(--text-muted); font-size: 0.9rem; max-width: 720px; margin: 0 auto; }
.bottom-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.bottom-col { width: 210px; display: flex; flex-direction: column; align-items: center; }
.bottom-thumb { width: 100%; aspect-ratio: 9/16; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); border: 1px solid var(--border); position: relative; margin-bottom: 8px; }
.bottom-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bottom-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 0.9rem; font-weight: 800;
  opacity: 0; transition: var(--transition);
}
.bottom-col:hover .bottom-play { opacity: 1; }
.bottom-badge { font-size: 0.7rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.bottom-title { font-size: 0.85rem; font-weight: 600; color: var(--text); text-align: center; }
.bottom-cta-btn {
  width: 100%; max-width: 260px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
  box-shadow: 0 0 22px rgba(168,85,247,0.55);
  transition: var(--transition); display: block; margin: 0 auto;
}
.bottom-cta-btn:hover { background: var(--accent-hover); transform: translatey(-1px); }

/* ---------- FAQ ---------- */
.faq-section { background: #0a0a0a; padding: 40px 20px 28px; border-top: 1px solid var(--border); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-title { text-align: center; font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; color: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-q:hover { background: var(--panel-hover); }
.faq-q svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 18px 16px; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* ---------- Ready section ---------- */
.ready-section { background: #0a0a0a; padding: 44px 20px 34px; border-top: 1px solid var(--border); }
.ready-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.ready-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.ready-emph { color: var(--accent); }
.ready-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; line-height: 1.6; }
.ready-btns { display: flex; gap: 14px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.ready-btn {
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: var(--transition);
}
.ready-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 0 24px rgba(168,85,247,0.55); }
.ready-btn.primary:hover { background: var(--accent-hover); }
.ready-btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.ready-btn.ghost:hover { background: var(--panel-hover); }
.ready-pay { font-size: 0.78rem; color: var(--text-muted); }
.ready-pay-logos { color: var(--text); font-weight: 600; margin-left: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0a; border-top: 1px solid var(--border); padding: 36px 20px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 0.82rem; }
.footer-badge { color: var(--accent); font-weight: 600; background: rgba(168,85,247,0.08); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(168,85,247,0.25); }
.footer-pay { color: var(--text-muted); }
.footer-pay span { color: var(--text); font-weight: 600; margin-left: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 34px; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px; }
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 7px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-disclaimer { font-size: 0.72rem; color: var(--text-muted); max-width: 860px; line-height: 1.5; }
.footer-copy { font-size: 0.74rem; color: var(--text-muted); }
.footer-lang { margin-top: 8px; }
.lang-btn { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); border: 1px solid var(--border); background: var(--panel); padding: 5px 12px; border-radius: 999px; transition: var(--transition); }
.lang-btn:hover { border-color: var(--accent); color: var(--text); }
.lang-btn svg { width: 12px; height: 12px; stroke-width: 1.8; }
.footer-rta { margin-top: 10px; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 1399px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --radius: 6px; }
  .filters-inner { flex-direction: column; align-items: stretch; }
  .filter-group { justify-content: center; width: 100%; }
  .volume-control { justify-content: center; width: 100%; padding: 6px 14px; }
  .volume-control input[type="range"] { width: 100px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .bottom-row { flex-direction: column; align-items: center; }
  .bottom-col { width: 100%; max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Favorite heart on cards */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 42px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.card:hover .fav-btn, .card:focus-within .fav-btn { opacity: 1; }
.fav-btn:hover { background: rgba(0, 0, 0, 0.75); }
.fav-btn svg { width: 14px; height: 14px; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn.faved { opacity: 1; color: #ff4d6d; }
.fav-btn.faved:hover { color: #ff7089; }
@media (hover: none) {
  .fav-btn { opacity: 1; }
}

/* Credits page */
.credits-page {
  padding: 44px 20px 60px;
}
.credits-inner { max-width: 720px; margin: 0 auto; }
.credits-header { text-align: center; margin-bottom: 34px; }
.credits-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; color: #fff; }
.credits-sub { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.credits-current {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: center;
}
.credits-balance { display: flex; align-items: center; justify-content: center; gap: 10px; }
.credits-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.credits-number { font-size: 1.75rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

.plans-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 34px; }
@media (min-width: 640px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.plan-card:hover { border-color: var(--accent); transform: translatey(-2px); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(168,85,247,0.25); }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translatex(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-credits { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: -1px; }
.plan-price { font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.plan-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.plan-btn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.plan-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 0 22px rgba(168,85,247,0.55); }
.plan-btn.primary:hover { background: var(--accent-hover); }
.plan-btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); margin-top: 10px; }
.plan-btn.secondary:hover { background: var(--panel-hover); }

.credits-payment {
  text-align: center;
  margin-top: 30px;
}
.payment-methods { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.payment-label { font-size: 0.8rem; color: var(--text-muted); }
.payment-logos { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.credits-disclaimer { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; max-width: 660px; margin: 0 auto; }

@media (max-width: 767px) {
  .credits-page { padding: 28px 16px 40px; }
  .credits-inner { max-width: 100%; }
}
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px;
  gap: 4px;
}
.empty-heart { font-size: 44px; color: #ff4d6d; line-height: 1; opacity: 0.85; margin-bottom: 8px; }
.empty-title { font-size: 20px; font-weight: 700; color: var(--text); }
.empty-sub { font-size: 14px; color: var(--text-muted); }

/* Credits pill (top right, shown when signed in) */
.credits-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  transition: var(--transition);
  cursor: pointer;
}
.credits-btn:hover { background: var(--accent-hover); transform: translatey(-1px); }
.credits-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; }
.credits-btn span { color: #fff; font-weight: 700; }

/* Signup modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal[hidden] { display: none !important; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: 92%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-panel h2 { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; }
.modal-panel p:first-of-type { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.modal-panel form { display: flex; flex-direction: column; gap: 14px; }
.modal-panel label { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; }
.modal-panel input { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); background: #0a0a0a; border: 1px solid var(--border); color: var(--text); }
.modal-panel input:focus { outline: none; border-color: var(--accent); }
.signup-btn { padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 0 20px rgba(168, 85, 247, 0.45); }
.signup-btn:hover { background: var(--accent-hover); }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--chip-bg); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  font-size: 1.1rem; line-height: 1;
}
.modal-close:hover { color: #fff; background: var(--panel-hover); }
.modal-error { font-size: 0.82rem; color: #ff4d6d; margin: 0; min-height: 1.2em; }

.auth-switch {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}
.auth-switch button {
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.auth-switch button:hover { text-decoration: underline; }

/* Generate video modal */
.generate-panel { max-width: 560px; padding: 18px 16px 20px; }
.generate-panel h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.generate-panel p:first-of-type { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 14px; }

.gen-upload {
  margin-bottom: 16px;
}
.gen-upload-label {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #0a0a0a;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.gen-upload-label:hover { border-color: var(--accent); background: rgba(168, 85, 247, 0.05); }
.gen-upload-label input { display: none; }
.gen-upload-text { font-size: 0.9rem; font-weight: 600; color: #fff; display: block; margin-bottom: 5px; }
.gen-upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.gen-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.gen-preview-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gen-preview-title { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.gen-preview-frame {
  width: 100%;
  height: 360px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gen-preview-frame img { width: 100%; height: 100%; object-fit: cover; background: #0a0a0a; }
.gen-preview-frame video { width: 100%; height: 100%; object-fit: cover; background: #0a0a0a; }
.gen-swap-frame video { mix-blend-mode: normal; }
.gen-face-overlay {
  position: absolute;
  top: 15%;
  left: 18%;
  width: 64%;
  height: 70%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.9;
  filter: contrast(1.05) saturate(1.05);
  border-radius: 10px;
  z-index: 10;
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.gen-face-swap-label {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 11;
}

.gen-preview-placeholder {
.gen-preview-placeholder {
}

.gen-submit-btn {
  width: 100%;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.55);
  transition: var(--transition);
  cursor: pointer;
}
.gen-submit-btn:hover { background: var(--accent-hover); transform: translatey(-1px); }
.gen-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@media (max-width: 560px) {
  .gen-preview { flex-direction: column; }
  .generate-panel { width: 94%; }
}
