:root {
  --bg: #0e0e12;
  --text: #fff;
  --muted: #a1a1aa;
  --dim: rgba(255, 255, 255, 0.46);
  --line: #3f3f46;
  --chip: #151517;
  --chip-active: #2a2a32;
  --purple: #745adc;
  --purple-2: #6c5ce7;
  --card-radius: 16px;
  --header: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, "Segoe UI", sans-serif;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("https://pornlab.ai/assets/O1CN01L1GM0t1mJMsolcAEE_!!6000000004933-2-tps-5760-1200-B8n2ppI_.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  transform: scaleX(-1);
  pointer-events: none;
}
.glow { display: none; }

#app { position: relative; z-index: 1; min-height: 100dvh; }
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  width: 100%;
  color: #fff;
}

.header {
  width: 100%;
  max-width: 1560px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(14, 14, 18, 0.2);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 35px;
  padding: 0;
  user-select: none;
}
.word { font-family: "Crimson Pro", "Times New Roman", SimSun, serif; color: #fff; }
.logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 11px;
  flex-shrink: 0;
  display: block;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-login {
  min-width: 66px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}
.header-login img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.header-login.signed-in { max-width: 150px; padding: 0 10px; }
.header-login.signed-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credits {
  height: 32px;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid rgb(170, 153, 255);
  box-shadow: rgb(97, 92, 237) 0 0 8px 0 inset;
  color: #f2efe8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.07px;
}
.credits svg { width: 20px; height: 20px; display: block; }
.avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #a34dff;
  box-shadow: 0 0 9.5px rgba(0, 91, 255, 0.42), 0 -1px 9.5px 0 #7700ff inset;
  background: #101010;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar svg { width: 16px; height: 16px; display: block; }

.tabbar {
  width: 100%;
  max-width: 1560px;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: rgba(14, 14, 18, 0.2);
  backdrop-filter: blur(20px);
  z-index: 101;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  min-height: 64px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 3rem;
  background: none;
  border: 0;
  color: #fff;
  opacity: 0.5;
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
  line-height: 150%;
  letter-spacing: -0.1px;
  padding: 0 0 6px;
  transition: all 0.2s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.tab.active { opacity: 1; font-weight: 600; }
.tab.active::after { transform: scaleX(1); }

.shell {
  width: 100%;
  max-width: 1560px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  margin-top: 2px;
  width: 100%;
  min-height: 44px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.toolbar::-webkit-scrollbar { display: none; }
.search {
  width: 44px;
  height: 44px;
  padding: 0 8px 0 11px;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #151517;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s, opacity 0.3s;
}
.search.open { width: 230px; }
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.07px;
  padding-left: 30px;
  z-index: 2;
}
.search input::placeholder { color: #fff; opacity: 0.5; }
.search button {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 3;
}
.filter-anchor { position: relative; height: 44px; flex: 0 0 auto; }
.chip {
  height: 100%;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #151517;
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  width: max-content;
}
.chip svg { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.chip.open svg { transform: rotate(180deg); }
.sort {
  height: 44px;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #151517;
  color: #fff;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  cursor: pointer;
}
.sort.trending { min-width: 70px; }
.sort.new { min-width: 44px; }
.sort.active { background: #3f3f46; font-weight: 600; }

.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  max-height: 210px;
  overflow: auto;
  background: rgba(15, 15, 15, 0.7);
  border-radius: 8px;
  padding: 16px 14px;
  z-index: 30;
  backdrop-filter: blur(25px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  animation: menuIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-thumb { background: linear-gradient(270deg, #615ced 0%, #24073d 100%); border-radius: 20px; }
.menu::-webkit-scrollbar-track { background: #52525b; border-radius: 20px; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.menu-label {
  color: #fff;
  opacity: 0.4;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  line-height: 18px;
  padding-bottom: 4px;
}
.menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  line-height: 18px;
  padding: 4px 0;
  transition: padding-left 0.3s ease-in-out;
}
.menu button:hover { padding-left: 4px; }
.menu button.active { font-weight: 600; }
.menu button.active:hover { padding-left: 0; }

.grid {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
}
.col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: clip;
  background: #111;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.card .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #111;
}
.thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 25;
  width: 64px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  transform: rotate(-6.016deg);
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.mute {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 100px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6.85px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-card {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 80.05%, rgba(0, 0, 0, 0.7) 100%);
}
.footer-card > * {
  opacity: 1;
  transform: translateY(0);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .footer-card > *,
.card.show-gen .footer-card > * {
  opacity: 0;
  transform: translateY(20px);
}
.footer-card h3 {
  margin: 0 0 5px;
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.1px;
}
.badges { display: flex; gap: 4px; position: relative; }
.badge {
  height: 20px;
  border-radius: 100px;
  padding: 3px 12px 1px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 16px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge.av {
  background: linear-gradient(90deg, #615ced);
  border: 0.5px solid #6cb798;
}
.badge.dur {
  background: #7cb398;
  border: 0.5px solid #7cb398;
}
.badge.new {
  background: linear-gradient(90deg, #2d72c7 0%, #2a7de4 100%);
  border: 0.5px solid #2a7de4;
}
.generate {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 20;
  transform: translate(-50%, 80px);
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #0f2c32;
  display: flex;
  padding: 10px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.08px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  will-change: transform, opacity;
}
.card:hover .generate,
.card.show-gen .generate {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.generate:hover { transform: translate(-50%, 0) scale(1.05); }
.generate:active { transform: translate(-50%, 0) scale(0.98); }

.pager {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 1.6rem;
  list-style: none;
  padding: 0;
}
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #333;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s ease;
}
.pager button:hover:not(:disabled) { background: #333; }
.pager button.active { background: #745adc; border-color: #745adc; pointer-events: none; }
.pager button.pager-arrow { color: #745adc; font-size: 24px; line-height: 1; }
.pager button.pager-arrow:hover:not(:disabled) { border-color: #8566ff; }
.pager button:disabled { opacity: 0.4; color: #a9a9a970; pointer-events: none; }

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: auto;
  min-height: 64px;
  padding: 2rem 2rem 0;
  border-top: 1px solid #18181b;
  background: #0e0e12;
  position: relative;
}
.footer-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.footer button {
  background: none;
  border: 0;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.06px;
  white-space: nowrap;
}
.footer button:hover { opacity: 0.65; }

.mobile-nav { display: none; }

.empty {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.empty h2 { margin: 0; font-size: 28px; font-weight: 700; }
.empty p { margin: 0; color: #b5b5bd; font-size: 16px; }
.primary {
  margin-top: 8px;
  height: 46px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 650;
}
.primary:disabled, .social:disabled { opacity: 0.55; cursor: default; }

.doc {
  max-width: 720px;
  margin: 12px auto 40px;
  color: #d4d4d8;
  line-height: 1.6;
}
.doc h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.doc h2 { color: #fff; font-size: 18px; margin-top: 28px; }
.form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.form input, .form textarea, .field {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #2a2a30;
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}
.form textarea { min-height: 120px; resize: vertical; }

.support-card {
  max-width: 520px;
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(235, 50, 147, 0.16), rgba(27, 22, 40, 0.96) 45%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.support-mark img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(240, 49, 148, 0.28);
}
.support-eyebrow {
  margin: 20px 0 4px;
  color: #ff74bc;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc .support-card h2 { margin: 0; font-size: 25px; }
.support-intro { margin: 8px 0 22px; color: #aaa9b2; }
.support-links { display: grid; gap: 12px; }
.support-link {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
button.support-link { font: inherit; cursor: pointer; }
.support-link:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.24); }
.support-link.telegram { background: linear-gradient(135deg, #208bc2, #32b3ee); }
.support-link.messenger { background: linear-gradient(135deg, #6552ee, #d629b5); }
.support-link.channel { background: rgba(255, 255, 255, 0.075); }
.support-link-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
}
.support-link-icon svg { width: 25px; height: 25px; fill: currentColor; }
.support-link-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.support-link-copy strong { font-size: 16px; }
.support-link-copy small { color: rgba(255, 255, 255, 0.74); font-size: 13px; }
.support-link-arrow { font-size: 28px; line-height: 1; opacity: 0.75; }
.support-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: #898791; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.support-divider::before, .support-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255, 255, 255, 0.1); }

@media (max-width: 600px) {
  .support-card { margin-top: 16px; padding: 22px 16px; border-radius: 20px; }
  .support-mark img { width: 56px; height: 56px; border-radius: 16px; }
  .doc .support-card h2 { font-size: 22px; }
}

.overlay.login-overlay { z-index: 4300; background: rgba(5, 7, 8, 0.84); backdrop-filter: blur(8px); }
.login-motion {
  width: min(500px, 100%);
  animation: sheetIn 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.login-sheet {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #17171c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}
.login-cover {
  position: relative;
  height: 280px;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.login-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(23, 23, 28, 0.18));
  pointer-events: none;
}
.login-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}
.login-close svg { width: 24px; height: 24px; }
.login-body { padding: 32px 24px 36px; }
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.login-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 9px 26px rgba(240, 49, 148, 0.28);
}
.login-brand strong { font-size: 25px; letter-spacing: -0.02em; }
.google-login {
  width: 100%;
  min-height: 62px;
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  overflow: hidden;
}
.google-login > div { margin: 0 auto; }
.google-mark { width: 24px; height: 24px; display: grid; place-items: center; }
.google-mark svg { width: 24px; height: 24px; }

@media (max-width: 600px) {
  .overlay.login-overlay { padding: 22px; }
  .login-sheet { border-radius: 22px; }
  .login-cover { height: 240px; }
  .login-body { padding: 27px 20px 30px; }
  .login-brand img { width: 48px; height: 48px; border-radius: 14px; }
  .login-brand strong { font-size: 22px; }
  .google-login { min-height: 58px; margin-top: 28px; font-size: 17px; }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 8, 8, 0.8);
  backdrop-filter: blur(2.5px);
}
.sheet-motion {
  width: min(500px, 100%);
  padding-inline: 10px;
  animation: sheetIn 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sheet {
  width: 100%;
  max-height: 90vh;
  overflow: visible;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 24px;
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(25px);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px;
}
.sheet-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.09px;
  text-align: left;
}
.sheet-icons { display: flex; align-items: center; gap: 6px; }
.heart {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.heart.on { color: #ff4d6d; }
.heart.on svg { fill: #ff4d6d; }
.icon-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}
.kw {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 16px;
}
.kw span {
  height: 22px;
  padding: 2px 4px;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #151517;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.07px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.kw span.kw-user {
  background: #fff;
  color: #151517;
  cursor: pointer;
}
.split {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 396px;
  padding: 0 16px;
}
.left-col {
  flex: 1;
  max-width: 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.right-col {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #111113;
}
.right-col .media { width: 100%; height: 100%; object-fit: cover; display: block; }
.right-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 61%, rgba(0,0,0,0.64) 100%);
}
.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, 30%);
  filter: drop-shadow(0 0 2.5px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.upload-pane {
  position: relative;
  height: 310px;
  border-radius: 12px;
  background: #111113;
  overflow: hidden;
}
.upload-pane img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.ghost-btn {
  height: 33px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(6.85px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.07px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  cursor: pointer;
}
.ghost-btn.icon-only { flex: 0 0 33px; width: 33px; padding: 0; }
.trash {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 100px;
  background: rgba(17, 17, 19, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checks { display: flex; flex-direction: column; gap: 8px; }
.check {
  height: 40px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: #111113;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.21px;
}
.check .box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #8566ff;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.check.on .box { background: #8566ff; }
.gen-bar { display: flex; align-items: center; }
.gen-bar.mob { display: none; }
.gear {
  width: 28px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}
.gear:hover svg { animation: gearNudge 0.45s ease; }
@keyframes gearNudge {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(28deg); }
  100% { transform: rotate(0deg); }
}
.go {
  flex: 1;
  height: 44px;
  margin: 0 6px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #0f2c32;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 8px;
}
.go:disabled { opacity: 0.6; pointer-events: none; }
.spin {
  width: 16px;
  height: 16px;
  border: 1.25px solid #111;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rotate_872332 0.8s linear infinite;
}
@keyframes rotate_872332 { to { transform: rotate(360deg); } }
.info-wrap { position: relative; display: flex; align-items: center; }
.tip {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 350px;
  border-radius: 16px;
  border: 1px solid #18181b;
  background: #09090a;
  padding: 16px;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.info-wrap:hover .tip { display: flex; }
.tip p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.07px;
}
@media (max-width: 768px) {
  body::before { position: absolute; }
  .page { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .tabbar { display: none; }
  .grid, .col { gap: 8px; }
  .footer { gap: 16px; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: block;
    min-height: 62px;
    padding: 8px 16px max(10px, env(safe-area-inset-bottom));
    border-top: 0.5px solid #2b2b2f;
    background: rgba(17, 18, 19, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .mobile-nav-inner {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav-item,
  .mobile-nav-create {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
  }
  .mobile-nav-item {
    min-width: 0;
    height: 44px;
    flex: 1 1 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #8a8f99;
    font-size: 11px;
    font-weight: 500;
    line-height: 17px;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-item.active { color: #f4adf6; }
  .mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }
  .mobile-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav-icon .fill-mark {
    fill: currentColor;
    stroke: none;
  }
  .mobile-nav-create {
    height: 44px;
    flex: 1 1 0;
    padding: 0 0 8px;
    display: grid;
    place-items: center;
    color: #111213;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-create svg {
    width: 36px;
    height: 32px;
    overflow: visible;
  }
  .mobile-nav-create rect { fill: rgba(255, 255, 255, 0.9); }
  .mobile-nav-create path {
    fill: none;
    stroke: #111213;
    stroke-width: 2.4;
    stroke-linecap: round;
  }
  .mobile-nav-item:active,
  .mobile-nav-create:active { transform: scale(0.96); }
  .card:hover .generate {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 80px);
  }
  .card:hover .footer-card > * { opacity: 1; transform: translateY(0); }
  .card.show-gen .generate {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .card.show-gen .footer-card > * { opacity: 0; transform: translateY(20px); }
  .thumb { width: 45px; height: 56px; border-radius: 4px; }
  .badge { padding: 4px 9px; }
  .split { min-height: 0; }
  .left-col { min-width: 0; }
  .upload-pane { height: 250px; }
  .gen-bar.desk { display: none; }
  .gen-bar.mob { display: flex; padding: 0 16px; margin: 4px 0 0; }
  .go { height: 34px; font-size: 13px; margin-top: 6px; padding-inline: 4px; }
  .arrow { transform: translate(-50%, -50%); }
  .tip { width: 290px; left: -255px; }
}
@media (max-width: 500px) {
  .pager { flex-wrap: wrap; }
}
@media (max-width: 450px) {
  .brand { transform: translateY(-3px); }
  .arrow svg { width: 40px; height: auto; }
}
@media (max-width: 400px) {
  .footer, .footer-row { gap: 8px; }
}
@media (max-width: 375px) {
  .pager { gap: 6px; }
  .pager button { min-width: 35px; height: 35px; font-size: 12px; }
  .pager button.pager-arrow { min-width: 35px; font-size: 20px; }
  .ghost-btn { height: 28px; font-size: 13px; }
  .ghost-btn.icon-only { flex-basis: 28px; width: 28px; }
}
@media (max-width: 350px) {
  .arrow svg { width: 30px; }
}
@media (max-width: 480px) {
  .search { width: 44px; }
  .search.open { width: 230px; }
}
.modal h2 { text-align: center; margin: 4px 0 16px; font-size: 20px; font-weight: 650; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
}
.social {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.social.tg { background: #5eb3f5; color: #fff; }
.social.go { background: #fff; color: #202124; }
.or { text-align: center; color: #9a9aa2; margin: 6px 0 12px; font-size: 14px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2a30;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  color: #ddd;
  font-size: 14px;
}
.wide { width: 100%; height: 48px; margin-top: 4px; }
.drop {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: #121216;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
}
.drop img { width: 100%; height: 180px; object-fit: cover; display: block; }
.generate-modal { width: min(440px, 100%); }
.stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  background: #000;
  margin-bottom: 12px;
}
.stage video, .stage .media { width: 100%; height: 100%; object-fit: cover; display: block; }
.progress {
  height: 6px;
  background: #2a2a30;
  border-radius: 99px;
  overflow: hidden;
  margin: 0 0 12px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #6d5efc;
  animation: load 1.6s linear forwards;
}
@keyframes load { to { width: 100%; } }
.note { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 12px; }
.user-menu {
  position: absolute;
  top: 58px;
  right: 16px;
  background: #1c1c22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  min-width: 180px;
  padding: 8px;
  z-index: 25;
}
.user-menu p { margin: 6px 8px 8px; color: var(--muted); font-size: 13px; }
.user-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
}
.user-menu button:hover { background: rgba(255,255,255,0.06); }

.pay-overlay { z-index: 3600; overflow: auto; align-items: flex-start; }
.pay-motion { width: min(760px, 100%); padding-inline: 0; }
.pay-sheet {
  width: 100%;
  max-height: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 24px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid #3f3f46;
  backdrop-filter: blur(25px);
}
.providers { display: flex; gap: 8px; }
.provider {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #151517;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.provider.on { background: #3f3f46; border-color: #8566ff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #111113;
  border: 1px solid #27272a;
}
.plan h3 { margin: 0; font-size: 18px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 6px; color: #a1a1aa; }
.plan-price .usd { font-size: 14px; }
.plan-price strong {
  color: #fff;
  font-size: 40px;
  line-height: 36px;
  font-weight: 700;
}
.billed {
  margin: 0;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #3f3f46;
  color: #fff;
  font-size: 13px;
}
.subscribe {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}
.subscribe:disabled { opacity: 0.6; cursor: default; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; color: #e4e4e7; font-size: 14px; line-height: 1.35; }
.plan li div span { color: #fff; font-weight: 700; }
.plan li .tick { color: #8566ff; font-size: 16px; line-height: 1; flex: 0 0 auto; font-weight: 400; }
.tick svg { display: block; }
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
  .plan-price strong { font-size: 32px; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 650;
  z-index: 4000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.collection-grid { margin-top: 8px; }
.empty-lite { color: var(--muted); padding: 40px 0; text-align: center; }
