:root {
  --navy: #011133;
  --navy-deep: #020d27;
  --navy-soft: #071b43;
  --navy-card: #0a2251;
  --gold: #d9b86c;
  --gold-soft: #f0dba6;
  --white: #ffffff;
  --cream: #f8f2e5;
  --muted: #b8c4dc;
  --muted-2: #7f8da8;
  --line: rgba(255,255,255,.12);
  --success: #aef0c2;
  --warning: #ffe0a0;
  --danger: #ffb2b2;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 3%, rgba(217,184,108,.13), transparent 22%),
    var(--navy);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.4) 1px, transparent 1.4px);
  background-position: 0 0, 43px 57px;
  background-size: 118px 118px, 164px 164px;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10,34,81,.98), rgba(2,13,39,.98));
  box-shadow: 18px 0 50px rgba(0,0,0,.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 28px;
  font-weight: 900;
  letter-spacing: .03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217,184,108,.55);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(217,184,108,.08);
}

.nav-title {
  margin: 16px 12px 9px;
  color: #73829e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.05);
  transform: translateX(2px);
}

.nav-link.active {
  color: var(--white);
  background: rgba(217,184,108,.13);
  box-shadow: inset 0 0 0 1px rgba(217,184,108,.21);
}

.nav-link.locked {
  opacity: .43;
  pointer-events: none;
}

.nav-icon {
  width: 21px;
  text-align: center;
}

.lock-badge {
  margin-left: auto;
  color: #71809c;
  font-size: 10px;
}

.sidebar-bottom {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
}

.account-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.account-card strong,
.account-card span {
  display: block;
}

.account-card span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.signout-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  color: var(--white);
  background: rgba(255,255,255,.055);
  font-weight: 850;
}

.main {
  min-width: 0;
  padding: 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

.topbar-copy {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill.not-submitted {
  color: var(--muted);
  background: rgba(255,255,255,.07);
}

.status-pill.pending {
  color: var(--warning);
  background: rgba(255,190,70,.12);
}

.status-pill.approved {
  color: var(--success);
  background: rgba(60,220,120,.12);
}

.status-pill.rejected {
  color: var(--danger);
  background: rgba(255,80,80,.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 17px;
}

.stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7,27,67,.9);
  box-shadow: var(--shadow);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--gold);
  background: rgba(217,184,108,.1);
}

.stat-value {
  display: block;
  margin-top: 15px;
  font-size: 29px;
  line-height: 1;
}

.stat-note {
  display: block;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7,27,67,.9);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
}

.panel-description {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 0;
  color: var(--navy);
  background: var(--gold);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,.055);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 13px;
  margin-top: 22px;
}

.onboarding-step {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-step h3 {
  margin: 14px 0 7px;
  font-size: 15px;
}

.onboarding-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.creator-preview {
  overflow: hidden;
  padding: 0;
}

.preview-cover {
  height: 155px;
  background:
    linear-gradient(135deg, rgba(217,184,108,.17), transparent),
    var(--navy-card);
}

.preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-body {
  padding: 0 22px 22px;
}

.preview-avatar {
  width: 88px;
  height: 88px;
  margin-top: -44px;
  border: 5px solid var(--navy-soft);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}

.preview-category {
  margin: 15px 0 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.preview-name {
  margin: 0;
  font-size: 23px;
}

.preview-bio {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.quick-action.unlocked {
  color: var(--white);
}

.quick-action.disabled {
  opacity: .44;
  pointer-events: none;
}

.notice {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(217,184,108,.24);
  border-radius: 18px;
  background: rgba(217,184,108,.07);
}

.notice strong {
  display: block;
  color: var(--gold-soft);
}

.notice p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mobile-menu {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    width: 282px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    visibility: hidden;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .sidebar-overlay.open {
    visibility: visible;
    opacity: 1;
  }

  .main {
    padding: 22px 16px 50px;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--white);
    background: rgba(255,255,255,.06);
  }

  .topbar {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-header .primary-button,
  .panel-header .secondary-button {
    width: 100%;
  }
}
