/* Creator House — premium YouTuber control room (separate from Org Studio) */
.creator-body {
  --ink: #070b12;
  --ink2: #0c121c;
  --card: #121a27;
  --card2: #182334;
  --line: #2a3648;
  --gold: #f0b429;
  --gold2: #ffd666;
  --em: #3ecf8e;
  --em2: #1fa97a;
  --text: #f3f6fb;
  --muted: #9aa8bc;
  --danger: #ff7a86;
  --warn: #f5b942;
  --accent: #4db8ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(240, 180, 41, .12), transparent 55%),
    radial-gradient(700px 380px at 90% 0%, rgba(77, 184, 255, .1), transparent 50%),
    linear-gradient(180deg, #070b12, #0a1018 40%, #070b12);
  color: var(--text);
  min-height: 100dvh;
}

.creator-body .brand span { color: var(--gold); }
.creator-body .side {
  background: linear-gradient(180deg, #0d1520, #070b12);
  border-right: 1px solid var(--line);
}
.creator-body .side .nav-sec {
  color: #6f8199;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 14px 10px 6px;
  font-weight: 700;
}
.creator-body .nav-link.on,
.creator-body .nav-link:hover {
  background: rgba(240, 180, 41, .12);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--gold);
}
.creator-body .btn-gold {
  background: linear-gradient(135deg, #d97706, #f0b429 55%, #ffd666);
  color: #1a1204;
  border: 0;
  box-shadow: 0 8px 24px rgba(240, 180, 41, .25);
}
.creator-body .btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
}
.creator-body .card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .03), transparent 40%),
    linear-gradient(180deg, var(--card), var(--ink2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* FIX: panel used .layout but shared CSS only defined .app-shell — blank main */
.creator-body .layout,
.creator-body .app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100dvh;
}
.creator-body .main {
  min-width: 0;
  padding: 28px 28px calc(var(--nav) + 28px);
  max-width: 1280px;
  width: 100%;
}
.creator-body .top h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -.02em;
}

.creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(240, 180, 41, .14);
  color: var(--gold);
  border: 1px solid rgba(240, 180, 41, .35);
}
.creator-pill.warn {
  background: rgba(245, 185, 66, .14);
  color: #f0c15a;
  border-color: rgba(245, 185, 66, .4);
}
.creator-pill.bad {
  background: rgba(255, 122, 134, .12);
  color: #ff9aa3;
  border-color: rgba(255, 122, 134, .35);
}
.creator-pill.ok {
  background: rgba(62, 207, 142, .14);
  color: var(--em);
  border-color: rgba(62, 207, 142, .35);
}

.creator-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  margin-top: 8px;
}
.creator-meter > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1fa97a, #f0b429);
  transition: width .4s ease;
}
.creator-note {
  font-size: .85rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}
.creator-note a { color: var(--gold); font-weight: 700; }

.ch-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(240, 180, 41, .18), transparent 55%),
    radial-gradient(500px 200px at 0% 100%, rgba(77, 184, 255, .1), transparent 50%),
    linear-gradient(135deg, #121a27, #0c121c);
}
.ch-hero-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
}
.ch-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(240, 180, 41, .45);
  background: #0a1018;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.ch-hero h2 {
  font-family: Fraunces, Georgia, serif;
  margin: 0 0 6px;
  font-size: 1.55rem;
}
.ch-hero .meta { color: var(--muted); font-size: .92rem; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.ch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ch-stat {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--ink2));
  position: relative;
  overflow: hidden;
}
.ch-stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(240, 180, 41, .08);
}
.ch-stat .v {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  position: relative;
}
.ch-stat .l {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  position: relative;
}

.ch-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
.ch-section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.ch-section-h h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}
.ch-section-h a { font-size: .82rem; font-weight: 700; }

.ch-vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.ch-vid {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  transition: transform .2s ease, border-color .2s ease;
}
.ch-vid:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, .4);
}
.ch-vid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #0a1018;
}
.ch-vid .body { padding: 10px 11px 12px; }
.ch-vid strong {
  display: block;
  font-size: .88rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ch-vid .sub { margin: 0; font-size: .75rem; }

.ch-challenge {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, .02);
  margin-bottom: 10px;
}
.ch-challenge:last-child { margin-bottom: 0; }

.ch-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
}
.ch-empty strong { display: block; color: var(--text); margin-bottom: 6px; }

.ch-loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.ch-loading .spin {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: chspin .7s linear infinite;
}
@keyframes chspin { to { transform: rotate(360deg); } }

.ch-banner {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(77, 184, 255, .35);
  background: rgba(77, 184, 255, .08);
  color: #c9e7ff;
  font-size: .9rem;
}
.ch-banner.warn {
  border-color: rgba(245, 185, 66, .4);
  background: rgba(245, 185, 66, .1);
  color: #ffe2a6;
}

.creator-body .auth-hero {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(240, 180, 41, .16), transparent 50%),
    radial-gradient(700px 400px at 90% 80%, rgba(77, 184, 255, .12), transparent 45%),
    linear-gradient(165deg, #070b12, #121a27 60%, #070b12);
}
.creator-body .auth-hero h1 {
  font-family: Fraunces, Georgia, serif;
}
.creator-body .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.creator-body .tiny { font-size: .78rem; color: var(--muted); }
.creator-body .empty { color: var(--muted); padding: 12px 0; }
.creator-body .actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .ch-stats { grid-template-columns: repeat(2, 1fr); }
  .ch-grid-2 { grid-template-columns: 1fr; }
  .ch-hero-row { grid-template-columns: 72px 1fr; }
  .ch-hero-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .creator-body .layout,
  .creator-body .app-shell { grid-template-columns: 1fr; }
  .creator-body .side { display: none; }
}
