:root {
  --void: #0a0a0f;
  --ink: #e8e6e3;
  --muted: #9a968f;
  --accent: #ff4d4d;
  --accent-dim: #b33636;
  --max-read: 800px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.5;
}

.aurora {
  --beam-1: #ff4d4d;
  --beam-2: #c81e3a;
  --beam-3: #ff6a3d;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-beam {
  position: absolute;
  top: -40%;
  height: 180%;
  width: 34vw;
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform-origin: top center;
  will-change: transform, opacity;
}
.aurora-beam-1 { left: 8%; background: linear-gradient(to bottom, var(--beam-1), transparent 72%); animation: aurora-sway1 11s ease-in-out infinite, aurora-pulse 7s ease-in-out infinite; }
.aurora-beam-2 { left: 40%; background: linear-gradient(to bottom, var(--beam-2), transparent 72%); animation: aurora-sway2 14s ease-in-out infinite, aurora-pulse 9s ease-in-out infinite; }
.aurora-beam-3 { left: 66%; background: linear-gradient(to bottom, var(--beam-3), transparent 72%); animation: aurora-sway3 12s ease-in-out infinite, aurora-pulse 8s ease-in-out infinite; }
@keyframes aurora-sway1 { 0%,100% { transform: rotate(-14deg) translateX(0); } 50% { transform: rotate(-4deg) translateX(4vw); } }
@keyframes aurora-sway2 { 0%,100% { transform: rotate(10deg) translateX(0); } 50% { transform: rotate(2deg) translateX(-4vw); } }
@keyframes aurora-sway3 { 0%,100% { transform: rotate(-8deg) translateX(0); } 50% { transform: rotate(-18deg) translateX(3vw); } }
@keyframes aurora-pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.7; } }
.aurora-floor {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, color-mix(in oklch, var(--beam-1) 40%, transparent), transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
}
.aurora-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .aurora-beam { animation: none; }
}
.mgz-body > :not(.aurora),
.staff-body > :not(.aurora),
.lab-body > :not(.aurora) {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

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

.main { padding: 1.25rem 1rem 3rem; }

.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0.25rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); }
.lede { color: var(--muted); max-width: 36ch; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #444;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dim); }

.muted { color: var(--muted); }
.success { color: #6fcf97; }

.reader-header { margin-bottom: 1rem; }
.reader-header h1 { font-size: 1.5rem; margin: 0; }

.reader-stream { margin: 0 -1rem; line-height: 0; }
.reader-segment { margin: 0; }
.reader-panel {
  display: block;
  width: 100%;
  max-width: var(--max-read);
  height: auto;
  margin: 0 auto;
}

.reader-gutter { width: 100%; }

.reader-cta, .process-video, .reader-next {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #333;
  border-radius: 12px;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pricing .tier-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pricing .tier-grid { grid-template-columns: 1fr 1fr; }
}

.tier-card {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.25rem;
}

.tier-vip { border-color: var(--accent-dim); }

.price { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.1rem; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-annual { font-size: 0.9rem; margin: 0 0 0.75rem; }
.price-save { color: var(--accent); }
.tier-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.tier-actions .btn { width: 100%; text-align: center; }

.lab-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(255, 77, 77, 0.16), transparent 55%),
    var(--void);
  color: var(--ink);
}
.lab-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.lab-card {
  width: 100%;
  max-width: 26rem;
  background: #12121a;
  border: 1px solid #2a2a34;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.lab-card h1 { margin: 0.2rem 0 0.5rem; font-size: 2rem; }
.lab-lede { margin: 0 0 1.25rem; color: var(--muted); }
.lab-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #3d2a00;
  color: #ffd48a;
}
.lab-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.lab-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0a0a0f;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.lab-form input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.lab-password { position: relative; display: block; }
.lab-password input { padding-right: 4.5rem; }
.lab-reveal {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.lab-reveal:hover { color: var(--ink); }
.lab-form .btn { width: 100%; text-align: center; margin-top: 0.25rem; }
.lab-foot { margin: 1.25rem 0 0; text-align: center; font-size: 0.9rem; }
.lab-foot a { color: var(--muted); }

.upload-form label { display: block; margin-bottom: 1rem; }

.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
.form-hint strong { color: var(--ink); }
.form-hint-tips { display: block; margin-top: 0.2rem; }
.form-hint-link { color: var(--accent); text-decoration: none; margin-left: 0.25rem; }
.form-hint-link:hover { text-decoration: underline; }

.image-guide-card { border: 1px solid #333; border-radius: 12px; padding: 1.25rem; margin: 1.25rem 0; }
.image-guide-card h2 { margin-top: 0; }
.image-guide-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.image-guide-table th,
.image-guide-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid #222; vertical-align: top; font-size: 0.9rem; }
.image-guide-table th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 11rem; }
@media (max-width: 480px) {
  .image-guide-table th { width: auto; white-space: normal; }
}
.upload-form input[type="file"],
.upload-form input[type="number"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.site-footer {
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #222;
}

code {
  background: #15151c;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.genre-carousel { margin: 2rem 0; }
.carousel-head { display: flex; justify-content: space-between; align-items: baseline; }
.carousel-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.carousel-list a { padding: 0.5rem 0.75rem; border: 1px solid #333; border-radius: 8px; text-decoration: none; color: var(--ink); }
.genre-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.banner-warn { background: #3d2a00; color: #ffd48a; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.streak-bar { background: #1a1a24; padding: 0.5rem 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }
.reader-sidebar { margin: 1rem 0; padding: 1rem; border: 1px solid #333; border-radius: 8px; }
.reader-sidebar ol { margin: 0; padding-left: 1.2rem; }
.reader-sidebar a.active { color: var(--accent); font-weight: 600; }
.reader-ad { margin: 1rem 0; padding: 1rem; border: 1px dashed #444; text-align: center; }
.ad-placeholder { color: var(--muted); font-size: 0.85rem; }
.tip-goals { margin-top: 2rem; }
.tip-goal-card { border: 1px solid #333; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.tip-progress { font-weight: 600; }
.reader-cta-soft { border-style: dashed; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal.hidden { display: none; }
.modal-panel { background: #12121a; border: 1px solid #333; border-radius: 12px; padding: 1.5rem; max-width: 400px; width: 100%; }
.modal-panel-wide { max-width: 520px; }
.comments-list { list-style: none; padding: 0; max-height: 240px; overflow-y: auto; }
.comments-list li { padding: 0.5rem 0; border-bottom: 1px solid #222; font-size: 0.9rem; }
.footer-nav { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.legal-page ul { padding-left: 1.2rem; }
.tier-card ul { padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Megazine-inspired discovery layout (.mgz-*)
   Recreated from Colorlib "Megazine" theme structure — CSS only.
   ============================================================ */

.mgz-body { background: var(--void); color: var(--ink); }
.mgz-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.mgz-main { min-height: 60vh; }
.mgz-muted { color: var(--muted); }

/* Header / nav */
.mgz-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
}
.mgz-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.75rem; flex-wrap: wrap;
}
.mgz-logo {
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); font-size: 1.15rem;
}
.mgz-nav { display: none; width: 100%; flex-direction: column; padding: 0.5rem 0 0.75rem; }
.mgz-nav.is-open { display: flex; }
.mgz-nav-link {
  color: var(--muted); text-decoration: none; padding: 0.55rem 0.25rem;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #1c1c24;
}
.mgz-nav-link:hover, .mgz-nav-link.is-active { color: var(--accent); }
.mgz-nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: transparent; border: 0; cursor: pointer; padding: 0.4rem;
}
.mgz-nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 992px) {
  .mgz-nav-toggle { display: none; }
  .mgz-nav {
    display: flex !important; flex-direction: row; flex-wrap: wrap; justify-content: flex-end;
    width: auto; max-width: 100%; flex: 1; min-width: 0;
    align-items: center; gap: 0.35rem 0.85rem; padding: 0.35rem 0 0.35rem 1rem;
  }
  .mgz-nav-link { border-bottom: 0; padding: 0.25rem 0; font-size: 0.78rem; white-space: nowrap; }
}

/* Footer */
.mgz-footer { border-top: 1px solid #222; margin-top: 3rem; padding: 2.5rem 0 2rem; }
.mgz-footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.mgz-footer-brand p { max-width: 42ch; margin: 0.5rem 0 0; }
.mgz-footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.mgz-footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.mgz-footer-nav a:hover { color: var(--ink); }
.mgz-copyright { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 1.5rem 0 0; }
@media (min-width: 768px) {
  .mgz-footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* Section headings */
.mgz-section { padding: 2rem 0; }
.mgz-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--accent); margin-bottom: 1.5rem; padding-bottom: 0.5rem;
}
.mgz-section-head h2 { margin: 0; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mgz-section-head a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.mgz-section-head a:hover { color: var(--accent); }
.mgz-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--accent); }
.mgz-meta { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mgz-meta .mgz-genre-tag { color: var(--accent); }

/* Placeholder / cover media */
.mgz-cover {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: linear-gradient(135deg, #1a1a24, #0d0d13); border-radius: 6px;
}

/* ---------- INDEX: hero carousel ---------- */
.mgz-hero-carousel { position: relative; height: 60vh; min-height: 340px; overflow: hidden; }
.mgz-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.mgz-hero-slide.is-active { opacity: 1; }
.mgz-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.25) 60%, rgba(10,10,15,0.5) 100%);
}
.mgz-hero-caption { position: relative; z-index: 2; padding: 2rem 1rem; max-width: 1140px; margin: 0 auto; width: 100%; }
.mgz-hero-caption h2 { font-size: clamp(1.6rem, 5vw, 3rem); margin: 0.35rem 0 0.5rem; max-width: 18ch; overflow-wrap: break-word; }
.mgz-hero-caption h2 a { color: #fff; text-decoration: none; }
.mgz-hero-caption p { color: #d8d5d0; max-width: 52ch; margin: 0; }
.mgz-hero-dots { position: absolute; z-index: 3; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.mgz-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; }
.mgz-hero-dot.is-active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .mgz-hero-slide { transition: none; }
}

/* Blog grid (series cards) */
.mgz-blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.mgz-card {
  border: 1px solid #222; border-radius: 8px; overflow: hidden; background: #0f0f16;
  display: flex; flex-direction: column;
}
.mgz-card .mgz-cover { border-radius: 0; }
.mgz-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mgz-card-body h3 { margin: 0; font-size: 1.1rem; }
.mgz-card-body h3 a { color: var(--ink); text-decoration: none; }
.mgz-card-body h3 a:hover { color: var(--accent); }
.mgz-card-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 640px) { .mgz-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .mgz-blog-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- FASHION: genre page ---------- */
.mgz-genre-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 992px) { .mgz-genre-layout { grid-template-columns: 2fr 1fr; } }
.mgz-featured { position: relative; border-radius: 8px; overflow: hidden; }
.mgz-featured .mgz-cover { aspect-ratio: 16 / 9; border-radius: 8px; }
.mgz-featured-caption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem;
  background: linear-gradient(to top, rgba(10,10,15,0.95), transparent);
}
.mgz-featured-caption h2 { margin: 0.35rem 0; font-size: clamp(1.3rem, 3vw, 2rem); }
.mgz-featured-caption h2 a { color: #fff; text-decoration: none; }
.mgz-post-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #1c1c24; }
.mgz-post-row .mgz-thumb { flex: 0 0 40%; max-width: 160px; }
.mgz-post-row .mgz-cover { aspect-ratio: 4 / 3; }
.mgz-post-row h3 { margin: 0.35rem 0; font-size: 1.05rem; }
.mgz-post-row h3 a { color: var(--ink); text-decoration: none; }
.mgz-post-row h3 a:hover { color: var(--accent); }
.mgz-post-row p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; }
.mgz-sidebar h3 { border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; text-transform: uppercase; font-size: 1.05rem; }
.mgz-sidebar-list { list-style: none; padding: 0; margin: 0; }
.mgz-sidebar-list li { padding: 0.6rem 0; border-bottom: 1px solid #1c1c24; }
.mgz-sidebar-list a { color: var(--ink); text-decoration: none; }
.mgz-sidebar-list a:hover { color: var(--accent); }

/* ---------- TRAVEL: archives ---------- */
.mgz-archive-list { display: flex; flex-direction: column; gap: 1.5rem; }
.mgz-archive-item { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid #1c1c24; }
.mgz-archive-item .mgz-thumb { width: 100%; }
.mgz-archive-item h3 { margin: 0.35rem 0; font-size: 1.25rem; }
.mgz-archive-item h3 a { color: var(--ink); text-decoration: none; }
.mgz-archive-item h3 a:hover { color: var(--accent); }
.mgz-archive-item p { margin: 0.5rem 0 0; color: var(--muted); }
@media (min-width: 768px) {
  .mgz-archive-item { flex-direction: row; }
  .mgz-archive-item .mgz-thumb { flex: 0 0 38%; max-width: 360px; }
}

/* ---------- VIDEO: VIP library ---------- */
.mgz-video-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .mgz-video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .mgz-video-grid { grid-template-columns: 1fr 1fr 1fr; } }
.mgz-video-card { border: 1px solid #222; border-radius: 8px; overflow: hidden; background: #0f0f16; }
.mgz-video-thumb { position: relative; display: block; }
.mgz-video-thumb .mgz-cover { border-radius: 0; }
.mgz-video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.mgz-video-play span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,77,77,0.9);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem;
}
.mgz-video-card-body { padding: 1rem; }
.mgz-video-card-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.mgz-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.mgz-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mgz-vip-note { text-align: center; padding: 3rem 1rem; }

/* ---------- SPORTS: series hub ---------- */
.mgz-series-hero { position: relative; border-radius: 8px; overflow: hidden; margin: 1.5rem 0 2rem; }
.mgz-series-hero .mgz-cover { aspect-ratio: 21 / 9; border-radius: 8px; }
.mgz-series-hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.1) 70%);
}
.mgz-series-hero-caption h1 { margin: 0.35rem 0; font-size: clamp(1.6rem, 5vw, 2.75rem); color: #fff; }
.mgz-series-hero-caption p { color: #d8d5d0; max-width: 60ch; margin: 0 0 1rem; }
.mgz-episode-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .mgz-episode-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .mgz-episode-grid { grid-template-columns: 1fr 1fr 1fr; } }
.mgz-empty { color: var(--muted); padding: 2rem 0; }

/* ---- Staff lab shell (admin + creator dashboards) ---- */
.staff-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(255, 77, 77, 0.10), transparent 60%),
    var(--void);
  color: var(--ink);
}
.staff-topbar {
  border-bottom: 1px solid #222;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.staff-topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.staff-wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
}
.staff-wordmark span { color: var(--accent); }
.staff-badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.staff-topnav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}
.staff-topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.staff-topnav a:hover { color: var(--ink); }
.staff-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.staff-head { margin-bottom: 1.75rem; }
.staff-head h1 { margin: 0 0 0.35rem; font-size: 2rem; }
.staff-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.staff-banner {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #86e29a;
  font-size: 0.95rem;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .staff-grid-2 { grid-template-columns: 1fr 1fr; }
}
.staff-card {
  background: #12121a;
  border: 1px solid #2a2a34;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.staff-card > h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.staff-card-lede { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; }
.staff-card-span { grid-column: 1 / -1; }

.staff-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.staff-form input[type="text"],
.staff-form input[type="number"],
.staff-form input[type="date"],
.staff-form input[type="file"],
.staff-form select,
.staff-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0a0a0f;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
.staff-form textarea { resize: vertical; }
.staff-form input:focus,
.staff-form select:focus,
.staff-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
input[type="date"],
input[type="datetime-local"],
input[type="month"] {
  color-scheme: dark;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.9;
}
.staff-form label.staff-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.staff-form label.staff-check input {
  width: auto;
  margin: 0.2rem 0 0;
}
.staff-form .btn { margin-top: 0.25rem; }

.staff-goals { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.staff-goal {
  border: 1px solid #2a2a34;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: #0f0f16;
}
.staff-goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.staff-goal-head strong { font-size: 1rem; }
.staff-goal-amount { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.staff-progress {
  height: 7px;
  border-radius: 999px;
  background: #22222c;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.staff-progress-bar { height: 100%; background: var(--accent); border-radius: 999px; }

.staff-dropoff { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.staff-dropoff-row { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: 0.75rem; }
.staff-dropoff-label { color: var(--muted); font-size: 0.85rem; }
.staff-dropoff-track { height: 8px; border-radius: 999px; background: #22222c; overflow: hidden; }
.staff-dropoff-fill { height: 100%; background: var(--accent-dim); border-radius: 999px; }
.staff-dropoff-value { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.staff-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.staff-stat .staff-stat-value { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.staff-stat .staff-stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.staff-empty { color: var(--muted); font-size: 0.92rem; margin: 0; }
.staff-link { color: var(--accent); text-decoration: none; }
.staff-link:hover { text-decoration: underline; }

/* ---- Staff sidebar layout ---- */
.staff-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .staff-layout { grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
}
.staff-layout .staff-main-withnav {
  max-width: none;
  margin: 0;
  padding: 0;
}
.staff-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 992px) {
  .staff-sidebar { position: sticky; top: 5rem; }
}
.staff-sidebar-link {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.staff-sidebar-link:hover { color: var(--ink); background: #15151e; }
.staff-sidebar-link.is-active {
  color: var(--ink);
  background: #15151e;
  border-color: #2a2a34;
  box-shadow: inset 3px 0 0 var(--accent);
}
.staff-sidebar-foot {
  margin-top: 0.75rem;
  border-top: 1px solid #222;
  padding-top: 0.85rem;
  color: var(--accent);
}
.staff-sidebar-foot:hover { color: var(--accent-dim); }

.staff-breadcrumb { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.staff-breadcrumb a { color: var(--muted); text-decoration: none; }
.staff-breadcrumb a:hover { color: var(--ink); }

.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th,
.staff-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid #222;
  vertical-align: middle;
  font-size: 0.92rem;
}
.staff-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}
.staff-table td a { color: var(--ink); text-decoration: none; }
.staff-table td a:hover { color: var(--accent); }
.staff-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #2a2a34;
  color: var(--muted);
}
.staff-pill.is-published { color: #86e29a; border-color: rgba(63, 185, 80, 0.4); }
.staff-error {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #3d1414;
  border: 1px solid #7a2a2a;
  color: #ffb4b4;
  font-size: 0.95rem;
}

.staff-preview-heading {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.staff-preview-heading:first-of-type { margin-top: 0; }
.staff-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}
.staff-preview-thumb {
  margin: 0;
  border: 1px solid #2a2a34;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f16;
}
.staff-pages { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.staff-pages li { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 0.75rem; align-items: start; padding-bottom: 0.75rem; border-bottom: 1px solid #2a2a34; }
.staff-pages img { display: block; width: 140px; height: auto; margin: 0; border-radius: 4px; }
@media (max-width: 640px) {
  .staff-pages li { grid-template-columns: 1fr; }
  .staff-pages img { width: min(100%, 200px); }
}
.pitch { max-width: 42rem; padding-bottom: 3rem; }
.pitch-hero { padding: 2.5rem 0 1rem; }
.pitch-hero h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.pitch-lede { font-size: 1.05rem; color: var(--ink); max-width: 38rem; }
.pitch-points { margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.pitch-points li { padding: 0.35rem 0 0.35rem 0.9rem; border-left: 2px solid var(--accent); margin: 0.4rem 0; }
.pitch-card { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid #2a2a34; border-radius: 12px; background: rgba(18, 18, 26, 0.88); }
.pitch-card h2 { margin: 0 0 0.75rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pitch-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pitch-list { list-style: none; margin: 0; padding: 0; }
.pitch-list li { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid #2a2a34; }
.staff-social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.staff-social-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.staff-avatar-preview { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0.5rem 0; border: 1px solid #333; }
.creator-profile .creator-avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; border: 2px solid #333; }
.staff-review-banner { text-align: left; line-height: 1.5; }
.staff-review-banner .staff-review-approve { margin-top: 0.75rem; }
.auth-panel { max-width: 28rem; margin: 2rem auto; padding: 1.5rem; border: 1px solid #333; border-radius: 12px; background: #12121a; }
.auth-panel h1 { margin-top: 0; }
.staff-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.staff-page-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; }
.staff-preview-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #0a0a0f;
}
.staff-preview-thumb figcaption {
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}
