/* ==========================================================================
   AIMEMEREEL — site styles
   Dark neon system: near-black canvas, pink → orange gradient, lime accents.
   ========================================================================== */

:root {
  --bg: #07070b;
  --bg-soft: #0c0c12;
  --card: #13131b;
  --card-2: #191922;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --txt: #f5f5f9;
  --muted: #9a9aa6;
  --muted-2: #8f8f9e;
  --pink: #ff2f6d;
  --orange: #ff7a3d;
  --lime: #ccff4d;
  --violet: #7a5cff;
  --grad: linear-gradient(115deg, #ff2f6d, #ff6a3d 52%, #ffb03d);
  --grad-soft: linear-gradient(115deg, rgba(255, 47, 109, 0.16), rgba(255, 122, 61, 0.08));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --max: 1240px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(255, 47, 109, 0.18), transparent 70%),
    radial-gradient(720px 460px at 94% 4%, rgba(122, 92, 255, 0.16), transparent 70%),
    radial-gradient(900px 600px at 45% 105%, rgba(255, 122, 61, 0.09), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(255, 47, 109, 0.35); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 1;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #cfcfd8;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
  padding: 7px 12px;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar a { color: #ff9ab4; }
.topbar a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 15px;
  white-space: nowrap;
}
.logo span, .logo em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a { padding: 6px 0; position: relative; }
.nav a:hover { color: var(--txt); }
.nav a[aria-current="page"] { color: var(--txt); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.hdr .spacer { margin-left: auto; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-btn i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #e8e8f0;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 11, 0.97);
  padding: 14px 26px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: #d9d9e2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-cta { display: flex; width: 100%; margin-top: 14px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s;
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 60, 90, 0.28);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 60, 90, 0.4); }
.btn.ghost {
  border-color: var(--line-strong);
  color: #e9e9f0;
  background: rgba(255, 255, 255, 0.03);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); }
.btn.sm { padding: 10px 18px; font-size: 13px; min-height: 44px; }
.btn.lg { padding: 15px 30px; font-size: 15px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn:focus-visible, .chip:focus-visible, .seg:focus-visible, .slot:focus-visible,
.tcard:focus-visible, .nav a:focus-visible, .more:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 48px;
  padding: 84px 0 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff7d9f;
  margin-bottom: 22px;
}
.eyebrow b { color: #fff; letter-spacing: 0.08em; font-weight: 600; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 34px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stats strong {
  display: block;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.stats strong i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }
.stats span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 10px 0;
}
.hs-glow {
  position: absolute;
  inset: 10% 4% 2%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 47, 109, 0.42), transparent 62%),
    radial-gradient(circle at 72% 76%, rgba(122, 92, 255, 0.34), transparent 60%);
  filter: blur(42px);
  pointer-events: none;
}
.hs-frame {
  position: relative;
  display: block;
  width: min(302px, 72%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #191922;
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.62);
  transform: rotate(-1.5deg);
  transition: transform 0.35s;
}
.hs-frame:hover { transform: rotate(0) translateY(-6px); }
.hs-frame img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.hs-tag, .hs-name {
  position: absolute;
  left: 14px;
  right: 14px;
  color: #fff;
}
.hs-tag {
  top: 14px;
  display: inline-block;
  width: fit-content;
  right: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  background: rgba(7, 7, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.hs-name {
  bottom: 16px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hs-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #ececf4;
  white-space: nowrap;
  background: rgba(16, 16, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}
.hs-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.hs-chip.c1 { left: 1%; top: 17%; }
.hs-chip.c1::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.hs-chip.c2 { right: 0; top: 44%; }
.hs-chip.c2::before { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hs-chip.c3 { left: 5%; bottom: 13%; }
.bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 78%; background: var(--grad); border-radius: 99px; }

/* ------------------------------------------------------------------ ticker */
.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  background: rgba(255, 255, 255, 0.015);
}
.tk { display: flex; gap: 26px; width: max-content; animation: marq 46s linear infinite; }
.tk span {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a9aa8;
  white-space: nowrap;
}
.tk span.on { color: #ff8aa8; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tk, .dot, .shim { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------- sections */
.sec { padding: 72px 0; }
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kicker {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.028em;
  font-weight: 750;
  line-height: 1.1;
}
.sh p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 560px; line-height: 1.6; }
.more {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  white-space: nowrap;
}
.more:hover { color: #fff; border-color: #fff; }

/* -------------------------------------------------------------------- cards */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 9px; }
.rail .tcard { min-width: 216px; scroll-snap-align: start; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 18px;
}
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.tcard {
  display: block;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.tcard:hover { transform: translateY(-6px); border-color: rgba(255, 90, 120, 0.5); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
.tcard[hidden] { display: none; }
.tposter {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(150deg, #241428, #141420 60%, #0b0b12);
}
.tposter img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tcard:hover .tposter img { transform: scale(1.05); }
.shim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  animation: shim 1.8s infinite;
  pointer-events: none;
}
@keyframes shim { to { transform: translateX(100%); } }
.badge {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  color: #e6e6ee;
  z-index: 2;
}
.badge.new { left: 10px; top: 10px; background: var(--lime); color: #101014; font-weight: 750; letter-spacing: 0.08em; }
.badge.hot { left: 10px; top: 10px; background: var(--grad); color: #fff; font-weight: 700; }
.badge.meta { right: 10px; top: 10px; }
.badge.video { left: 10px; bottom: 10px; top: auto; background: rgba(0, 0, 0, 0.7); color: #fff; }
.tbody { padding: 13px 14px 15px; }
.tbody h3 { font-size: 14.5px; font-weight: 650; line-height: 1.3; margin-bottom: 8px; }
.tbody h3 small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.03em;
  margin-top: 3px;
}
.tmeta { display: flex; justify-content: space-between; gap: 2px 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.tmeta .price { color: #ffd9c2; font-weight: 600; }

/* --------------------------------------------------------------- entry cards */
.entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ecard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.ecard .num {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.09);
  line-height: 1;
}
.ecard h3 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.ecard p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.65; min-height: 44px; }
.ecard a { font-size: 12.5px; color: #ff9aae; }
.ecard:hover { border-color: rgba(255, 90, 120, 0.4); transform: translateY(-3px); }
.ecard .glow {
  position: absolute;
  right: -44px; top: -44px;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.34;
  background: var(--pink);
}
.ecard:nth-child(2) .glow { background: var(--violet); }
.ecard:nth-child(3) .glow { background: var(--orange); }

/* -------------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { padding-top: 26px; border-top: 1px solid var(--line); position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--grad);
}
.step b { display: block; font-size: 11px; letter-spacing: 0.22em; color: var(--pink); margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ----------------------------------------------------------------- hot list */
.hotlist { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.018); }
.hrow {
  display: grid;
  grid-template-columns: 34px 52px 1fr 150px 74px;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}
.hrow:last-child { border-bottom: 0; }
.hrow:hover { background: rgba(255, 255, 255, 0.035); }
.hrank { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.hthumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--card-2); }
.hthumb img { width: 100%; height: 100%; object-fit: cover; }
.hname { font-size: 14px; font-weight: 600; }
.hname small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.hbar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.hhot { font-size: 12px; color: #ff9aae; text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------------ pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.pcard:hover { transform: translateY(-3px); }
.pcard.feat { border-color: rgba(255, 90, 120, 0.5); box-shadow: 0 0 0 1px rgba(255, 47, 109, 0.12), 0 22px 60px rgba(255, 47, 109, 0.12); }
.ptag {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff9ab4;
  border: 1px solid rgba(255, 90, 120, 0.35);
  border-radius: 99px;
  padding: 4px 10px;
  margin-bottom: 18px;
}
.pcard.feat .ptag { background: var(--grad); color: #fff; border-color: transparent; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.price i { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.pcard h3 { font-size: 15px; margin: 2px 0 10px; font-weight: 600; }
.pcard p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 18px; }
.pnote { font-size: 12px; color: #b9b9c6; line-height: 1.9; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pnote span { display: block; }
.pcard .btn { margin: 18px 0 0; }
.pricing-note { margin-top: 18px; font-size: 12.5px; color: var(--muted-2); line-height: 1.7; }

/* --------------------------------------------------------------------- faq */
.faq { max-width: 860px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin-top: 12px; max-width: 760px; }

/* ---------------------------------------------------------------- page head */
.pagehead { padding: 58px 0 30px; }
.crumb { font-size: 12px; color: var(--muted-2); margin-bottom: 22px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { opacity: 0.5; }
.pagehead h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 12px; }
.pagehead p { color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 660px; }

/* ------------------------------------------------------------------ toolbar */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.on { background: #fff; color: #101014; border-color: #fff; font-weight: 650; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 200px;
  margin-left: auto;
}
.search input {
  border: 0;
  background: none;
  color: var(--txt);
  font: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.search input::placeholder { color: var(--muted-2); }
.sort {
  border: 1px solid var(--line);
  background: var(--card);
  color: #ddd;
  font: inherit;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
}
.count { font-size: 12px; color: var(--muted-2); padding: 4px 0 16px; }
.empty {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; font-size: 22px; margin-bottom: 8px; color: #e5e5ee; }

/* --------------------------------------------------------------- detail page */
.detail { padding: 46px 0 20px; }
.dgrid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}
.dleft { position: sticky; top: 88px; }
.dposter {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #101017;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
}
.dposter img, .dposter video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dposter video { background: #000; }
.dtag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: #e8e8f0;
  letter-spacing: 0.04em;
}
.dposter .playbtn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.dposter .playbtn::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.dposter .playbtn:hover { background: rgba(255, 255, 255, 0.22); }
.dposter .playbtn[data-demo]::after { display: none; }
.dposter .playbtn[data-demo] {
  width: auto; height: auto;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transform: translate(-50%, -50%);
  color: #f0f0f6;
}
.ddemosoon {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #dcdce6;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 7px 10px;
  backdrop-filter: blur(8px);
}
.ddemosoon i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  flex: none;
}
.dpanel { padding-top: 4px; }
.dpanel .en {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.dpanel h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 14px;
}
.dmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dmeta span {
  font-size: 11.5px;
  color: #c9c9d6;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.025);
}
.dmeta span.accent { border-color: rgba(204, 255, 77, 0.45); color: var(--lime); }
.dprice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.dprice b { font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.dprice .refund { margin-left: auto; color: var(--lime); font-size: 11.5px; }
.ddesc { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 24px; max-width: 620px; }

.lblock { margin-bottom: 22px; }
.lb {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b7b7c4;
}
.lb b { font-size: 11px; color: var(--muted-2); font-weight: 500; letter-spacing: 0; text-transform: none; }
.lb b.ok { color: var(--lime); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slots.one { grid-template-columns: minmax(0, 220px); }
.slot {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.slot:hover, .slot.dragover { border-color: rgba(255, 122, 61, 0.6); background: rgba(255, 122, 61, 0.05); }
.slot.filled { border-style: solid; border-color: rgba(255, 255, 255, 0.2); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .plus { font-size: 22px; color: var(--muted); line-height: 1; }
.slot b { font-size: 12px; font-weight: 600; }
.slot i { font-size: 10.5px; color: var(--muted-2); font-style: normal; }
.slot .clear {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.slot .tag {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 2;
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 3px 7px;
}

.segs { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  flex: 1 1 0;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: #d7d7e2;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s;
}
.seg i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.seg.on { border-color: rgba(255, 90, 120, 0.6); background: rgba(255, 47, 109, 0.09); color: #fff; }
.seg.on i { color: #ffb4c5; }
.seg[disabled] { opacity: 0.45; cursor: not-allowed; }

.costline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.costline b { color: #fff; font-size: 17px; letter-spacing: -0.01em; }
.costline.warn b { color: #ffb37d; }
.generate-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.generate-row .btn { flex: 1 1 150px; }
.hint { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; }

/* ---------------------------------------------------- detail lower sections */
.dlower { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; padding: 46px 0 10px; }
.block h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 14px; }
.block p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.beats { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.beats li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #c9c9d5;
  font-size: 13px;
  line-height: 1.6;
}
.beats li span {
  flex: none;
  font-size: 11px;
  color: #ff9ab4;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.related { padding: 40px 0 60px; }

/* --------------------------------------------------------------------- CTA */
.ctaband {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 44px;
  background: linear-gradient(120deg, rgba(255, 47, 109, 0.14), rgba(122, 92, 255, 0.1));
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ctaband h2 { max-width: 560px; }
.ctaband p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.ctaband .btn { flex: none; }

/* ------------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 46px 0 34px;
  position: relative;
  z-index: 1;
}
.fgrid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 34px;
}
.fbrand { font-weight: 800; letter-spacing: 0.18em; font-size: 14px; margin-bottom: 10px; }
.fbrand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fabout { color: var(--muted-2); font-size: 12.5px; line-height: 1.75; max-width: 300px; }
.fcol h4 {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
  font-weight: 600;
}
.fcol a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 5px 0;
}
.fcol a:hover { color: #fff; }
.fbottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------- toasts */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #1c1c26;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #eeeef6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  animation: toastIn 0.25s ease;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* -------------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(8px);
}
.modal[hidden] { display: none; }
.modal-panel {
  width: min(520px, 100%);
  background: #12121a;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  max-height: 88vh;
  overflow: auto;
}
.modal-panel.wide { width: min(760px, 100%); }
.modal-panel h2 { font-size: 19px; margin-bottom: 8px; padding-right: 34px; }
.modal-close {
  position: absolute;
  right: 14px; top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: #fff; border-color: var(--line-strong); }
.modal-body { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.modal-body p { margin-bottom: 10px; }
.modal-body strong { color: #fff; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modal-progress { margin: 18px 0 6px; }
.modal-progress .bar { height: 6px; }
.modal-progress .bar i { width: 0; transition: width 1.2s ease; }
.modal-progress .pct { font-size: 11px; color: var(--muted-2); margin-top: 8px; display: flex; justify-content: space-between; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .hero-shot { min-height: 480px; max-width: 560px; }
  .dgrid { grid-template-columns: 1fr; gap: 28px; }
  .dleft { position: static; max-width: 420px; }
  .dlower { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .entry, .steps, .pricing { grid-template-columns: 1fr; }
  .ecard p { min-height: 0; }
  .hrow { grid-template-columns: 28px 46px 1fr 80px; }
  .hrow .hbar { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hdr-in { height: 58px; gap: 12px; }
  .hdr-actions > .btn { display: none; }
  .hdr-actions .btn { padding: 9px 16px; font-size: 12.5px; }
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 38px; }
  .sub { font-size: 14px; }
  .stats { gap: 18px 26px; }
  .hero-shot { min-height: 396px; margin: 0 auto; width: 100%; }
  .hs-frame { width: min(238px, 70%); }
  .hs-name { font-size: 15px; bottom: 12px; }
  .hs-tag { top: 10px; font-size: 9px; padding: 5px 8px; }
  .hs-chip { display: none; }
  .sec { padding: 46px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tbody { padding: 10px 11px 12px; }
  .tbody h3 { font-size: 12.5px; }
  .tmeta { font-size: 10.5px; }
  .toolbar { gap: 10px; }
  .search { margin-left: 0; width: 100%; order: 3; }
  .sort { margin-left: auto; }
  .dpanel h1 { font-size: 30px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots.one { grid-template-columns: 1fr; }
  .slot { min-height: 116px; }
  .ctaband { padding: 30px 22px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .fbottom { flex-direction: column; }
  .toast { max-width: calc(100vw - 40px); }
  .hrow { grid-template-columns: 24px 40px 1fr; }
  .hhot { display: none; }
  .dgrid { gap: 22px; }
  .dposter { border-radius: 18px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ account, render, library */
.auth-area { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.auth-area:empty { display: none; }
.skeleton { background: rgba(255, 255, 255, 0.07); border-radius: 8px; }
.skeleton-chip { display: inline-block; width: 86px; height: 34px; border-radius: 999px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(255, 47, 109, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 60, 90, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 44px; }
.btn-primary[disabled], .btn-ghost[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}
.credits-chip b { color: #fff; font-weight: 650; }
.credits-chip:hover { border-color: var(--line-strong); color: #fff; }
.credits-chip[hidden] { display: none; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #1a1a22; display: block; }
.user-chip .user-name {
  font-size: 12px;
  color: var(--muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip .btn-ghost { padding: 6px 12px; font-size: 11px; min-height: 32px; border-radius: 999px; }

.progress { margin-top: 16px; }
.progress[hidden] { display: none; }
.progress .bar { height: 6px; overflow: hidden; position: relative; }
.progress .bar i {
  width: 34%;
  animation: progressSlide 1.6s ease-in-out infinite;
}
@keyframes progressSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.pack-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.pack-row.on { border-color: rgba(255, 47, 109, 0.55); background: rgba(255, 47, 109, 0.08); }
.pack-info { display: flex; flex-direction: column; gap: 3px; }
.pack-info b { color: #fff; font-size: 13.5px; }
.pack-info span { font-size: 11.5px; color: var(--muted-2); }
.modal-note { font-size: 12.5px; }
.modal-video { margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background: #000; }
.modal-video video { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #000; }

.lib-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.lib-count { font-size: 12.5px; color: var(--muted-2); }
.lib-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.work-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0d0d14;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.work-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.work-failed, .work-processing {
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.work-failed strong { color: #fff; font-size: 12.5px; }
.work-error { font-size: 10.5px; color: var(--muted-2); max-height: 62px; overflow: hidden; }
.badge-ok {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(204, 255, 77, 0.14);
  color: var(--lime);
  font-size: 10px;
}
.work-meta { padding: 13px 14px 6px; display: flex; flex-direction: column; gap: 5px; }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-head strong { font-size: 13.5px; color: #fff; }
.work-head .badge {
  position: static;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.work-roles { font-size: 11.5px; color: var(--muted); }
.work-sub { font-size: 11px; color: var(--muted-2); }
.work-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px 14px; }
.work-actions .btn { flex: 1 1 auto; padding: 9px 12px; min-height: 36px; font-size: 11.5px; }
.lib-empty {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}
.lib-empty[hidden] { display: none; }
.lib-empty strong { display: block; font-size: 18px; color: #fff; margin-bottom: 8px; }
.lib-empty p { font-size: 13px; color: var(--muted); max-width: 460px; margin: 0 auto 12px; line-height: 1.7; }
.lib-empty .btn { margin-top: 6px; }
.lib-support { font-size: 11.5px; color: var(--muted-2); }
.mobile-nav .mobile-topup { margin-top: 10px; width: 100%; justify-content: center; }

@media (max-width: 1280px) {
  .hdr-cta { display: none; }
  .user-chip .user-name { display: none; }
}
@media (max-width: 900px) {
  .credits-chip { display: none !important; }
  .user-chip .user-name, .user-chip .btn-ghost { display: none; }
  .user-chip { padding: 2px; }
}
@media (max-width: 640px) {
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lib-empty { padding: 40px 16px; }
  .work-actions .btn { font-size: 11px; padding: 8px 10px; }
  .lib-bar { gap: 10px; }
}
