:root {
  --bg: #070707;
  --bg-panel: rgba(18, 18, 18, 0.92);
  --gold: #d4af37;
  --gold-soft: #f0d27a;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --border: rgba(212, 175, 55, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.bg-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(212, 175, 55, 0.08), transparent 45%),
    url("/assets/musicaeon_background.png") center / cover no-repeat;
  opacity: 0.35;
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.tagline {
  margin: 0.2rem 0 0;
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 110px);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  min-height: 100%;
}

.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.tabs-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-label strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--gold-soft);
}

.btn-ghost {
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.tab {
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.tab:hover,
.tab.active {
  border-color: var(--border);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
}

.tab.locked::after {
  content: " 🔒";
}

.workspace {
  padding: 1.25rem 1.5rem 2rem;
}

.panel {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.panel.active {
  display: block;
}

.panel h2 {
  margin-top: 0;
  color: var(--gold-soft);
}

textarea {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 0.85rem;
  resize: vertical;
}

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

  .tabs {
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: auto;
  }

  .tabs-list {
    flex-direction: row;
    overflow-x: auto;
    flex: initial;
  }

  .tabs-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
  }

  .tabs-footer .btn-block {
    width: auto;
  }

  .tab {
    white-space: nowrap;
  }
}
