:root {
  --bg: #07111d;
  --bg-soft: #0d1828;
  --panel: rgba(11, 20, 35, 0.86);
  --panel-strong: rgba(12, 23, 40, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(245, 198, 74, 0.22);
  --text: #f5f7fb;
  --muted: #b9c5d8;
  --gold: #f5c64a;
  --gold-soft: rgba(245, 198, 74, 0.12);
  --green: #7ae582;
  --danger: #ff8d8d;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --container: min(1180px, calc(100% - 1.5rem));
  --header-height: 78px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.6 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(245, 198, 74, 0.09), transparent 26%),
    linear-gradient(180deg, #0b1220 0%, #09111d 55%, #08101a 100%);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.background-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}
.background-stars,
.background-stars-2 {
  position: absolute;
  inset: -15% 0 0;
  width: 100%;
  height: 165%;
}
.background-stars {
  opacity: .95;
  background-image:
    radial-gradient(2px 2px at 5% 10%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 18% 36%, rgba(245,198,74,.95) 50%, transparent 52%),
    radial-gradient(1px 1px at 31% 14%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 28%, rgba(255,255,255,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 59% 8%, rgba(245,198,74,.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 73% 20%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 85% 12%, rgba(255,255,255,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 96% 34%, rgba(245,198,74,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 8% 58%, rgba(255,255,255,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 21% 76%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 37% 68%, rgba(245,198,74,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 51% 84%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(2px 2px at 66% 72%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 79% 90%, rgba(245,198,74,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 64%, rgba(255,255,255,.82) 50%, transparent 52%);
  animation: driftStars 34s linear infinite, pulseStars 4s ease-in-out infinite alternate;
}
.background-stars-2 {
  opacity: .4;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 24% 42%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 15%, rgba(245,198,74,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 35%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 69% 9%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 82% 41%, rgba(245,198,74,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 21%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 16% 84%, rgba(255,255,255,.65) 50%, transparent 52%),
    radial-gradient(1px 1px at 33% 73%, rgba(245,198,74,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 49% 92%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 68% 78%, rgba(255,255,255,.75) 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 89%, rgba(245,198,74,.65) 50%, transparent 52%);
  animation: driftStarsSlow 56s linear infinite, pulseStars 6s ease-in-out infinite alternate;
}
@keyframes driftStars { from { transform: translateY(0); } to { transform: translateY(-26%); } }
@keyframes driftStarsSlow { from { transform: translateY(0); } to { transform: translateY(-18%); } }
@keyframes pulseStars { from { opacity: .38; } to { opacity: .55; } }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(6, 12, 21, 0.95), rgba(6, 12, 21, 0.64));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}
.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-logo img { height: 48px; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--muted);
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .2s ease;
}
.header-link:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.05); }
.burger {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: white;
  transition: transform .22s ease, opacity .22s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 70;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(320px, calc(100vw - 1.25rem));
  height: 100vh;
  z-index: 80;
  background: rgba(8, 15, 27, 0.98);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: right .28s ease;
}
.nav-drawer.open { right: 0; }
.drawer-brand {
  padding: .9rem .9rem 1rem;
  margin-bottom: .45rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-brand img { width: 134px; }
.drawer-label {
  margin: .85rem .8rem .25rem;
  color: #92a4bf;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav-drawer a {
  text-decoration: none;
  color: #e8eef9;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: .18s ease;
}
.nav-drawer a:hover,
.nav-drawer a.active {
  background: rgba(245,198,74,.1);
  border-color: rgba(245,198,74,.18);
  color: white;
}
.page-shell,
.page,
.page-wide,
.auth-layout,
.account-layout {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-shell,
.page,
.page-wide { padding: 2.2rem 0 4rem; }
.page-narrow { width: min(760px, calc(100% - 1.5rem)); }
.hero-panel,
.content-card,
.panel,
.stat-card,
.auth-card,
.account-card,
.list-card,
.policy-card {
  background: linear-gradient(180deg, rgba(13,24,40,.92), rgba(10,18,31,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  position: relative;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,198,74,.18), transparent 68%);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245,198,74,.18);
  color: #ffe9a2;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 800;
}
.display-title {
  margin: 1rem 0 .85rem;
  font: 800 clamp(2.35rem, 5.5vw, 4.6rem)/1.02 'Inter', sans-serif;
  letter-spacing: -.05em;
}
.display-title .accent,
.section-title .accent { color: var(--gold); font-family: 'Lora', serif; font-style: italic; font-weight: 700; }
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}
.hero-actions,
.inline-actions,
.form-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .88rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.yellow { color: #08101b; background: linear-gradient(180deg, #ffd86c, #f5c64a); box-shadow: 0 16px 38px rgba(245,198,74,.24); }
.btn.yellow-outline { color: #fff4cb; background: rgba(255,255,255,.03); border-color: rgba(245,198,74,.22); }
.btn.soft { color: var(--text); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.06); }
.btn.danger { color: #230606; background: linear-gradient(180deg, #ffb4b4, #ff8d8d); }
.section-stack { display: grid; gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.panel,
.content-card,
.auth-card,
.account-card,
.policy-card { padding: 1.5rem; }
.section-title { margin: 0 0 .35rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1; }
.section-subtitle, .muted { color: var(--muted); }
.metric-value { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: .92rem; }
.genre-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.genre-card {
  background: linear-gradient(180deg, rgba(16,27,45,.9), rgba(9,17,29,.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.genre-card__media { position: relative; height: 240px; overflow: hidden; background: linear-gradient(135deg, rgba(245,198,74,.18), rgba(55,83,126,.4)); }
.genre-card__media img { width: 100%; height: 100%; object-fit: cover; }
.genre-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,.06), rgba(7,17,31,.62)); }
.genre-card__body { display: grid; gap: .9rem; padding: 1.3rem; flex: 1; }
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .72rem; border-radius: 999px; background: rgba(245,198,74,.1); border: 1px solid rgba(245,198,74,.18); color: #ffe9a2; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.price-tag { color: var(--gold); font-weight: 800; font-size: 1.08rem; }
.table-ish { display: grid; gap: .9rem; }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  align-items: center;
}
.list-row__title { font-weight: 700; }
.list-row__meta { color: var(--muted); font-size: .92rem; }
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.09);
  background: rgba(255,255,255,.02);
}
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { color: #ffe7a0; font-weight: 700; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: white;
}
.field textarea { min-height: 140px; resize: vertical; }
.notice,
.alert {
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.alert-success { background: rgba(122,229,130,.12); border-color: rgba(122,229,130,.26); color: #c8ffd1; }
.alert-error { background: rgba(255,141,141,.12); border-color: rgba(255,141,141,.26); color: #ffd7d7; }
.alert-info { background: rgba(245,198,74,.11); border-color: rgba(245,198,74,.22); color: #ffe7a8; }
.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 3rem;
  position: relative;
  z-index: 1;
}
.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; color: #ffe7a0; }
.account-nav {
  display: grid;
  gap: .65rem;
}
.account-nav a {
  text-decoration: none;
  padding: .85rem 1rem;
  border-radius: 16px;
  color: #eef4ff;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.account-nav a.active,
.account-nav a:hover { background: rgba(245,198,74,.12); border-color: rgba(245,198,74,.2); }
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 2rem 0 4rem;
}
.account-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.35rem;
  align-items: stretch;
}
.image-hero {
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-hero img { width: 100%; height: 100%; object-fit: cover; }
.legal-copy h2 { color: var(--gold); margin: 1.5rem 0 .35rem; }
.legal-copy p, .legal-copy li { color: var(--muted); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .genre-grid, .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split, .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}
@media (max-width: 720px) {
  .page-shell, .page, .page-wide, .auth-layout, .account-layout { width: min(100%, calc(100% - 1rem)); }
  .display-title { font-size: 2.6rem; }
  .grid-2, .grid-3, .grid-4, .genre-grid, .summary-strip { grid-template-columns: 1fr; }
  .hero-panel, .content-card, .panel, .auth-card, .account-card, .policy-card { padding: 1.15rem; border-radius: 20px; }
  .header-logo img { height: 42px; }
}
