﻿:root {
  --bg: #07000f;
  --panel: #120d1c;
  --panel-2: #171923;
  --cyan: #00d4ff;
  --green: #00ff85;
  --gold: #ffb800;
  --rose: #ff3d8b;
  --white: #ffffff;
  --muted: #aaa8bd;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 212, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 0, rgba(255, 61, 139, 0.1), transparent 22%),
    var(--bg);
  color: var(--white);
  font-family: "Exo 2", Arial, sans-serif;
}

a {
  color: inherit;
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.member-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.member-page-layout {
  margin-top: 18px;
}

.member-main-column {
  min-width: 0;
}

.portal-header {
  margin-bottom: 18px;
  position: relative;
  overflow: visible;
  height: clamp(112px, 16vw, 235px);
  border: 0;
  border-radius: 0;
  background: #03010a;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.portal-brand {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  z-index: 1;
  line-height: 0;
}

.portal-brand:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.portal-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.portal-brand strong {
  color: var(--white);
}

.portal-brand span {
  color: var(--cyan);
}

.portal-back,
.secondary-link,
.primary-btn,
.tab-btn {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.portal-back,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-btn,
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-hero,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(255, 61, 139, 0.08)),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 36px);
}

.portal-hero.compact {
  grid-template-columns: minmax(0, 1fr);
}

.portal-copy h1 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 3.45rem);
  line-height: 1.04;
}

.portal-hero-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-hero-line {
  display: block;
  white-space: nowrap;
  line-height: 1;
}

.portal-hero-line.line-2 {
  padding-left: clamp(10px, 1.6vw, 18px);
}

.portal-hero-line.line-3 {
  padding-left: clamp(20px, 3.2vw, 34px);
}

.portal-hero-line.line-4 {
  padding-left: clamp(30px, 4.8vw, 48px);
}

.portal-lead,
.portal-note,
.tier-copy,
.tier-meta,
.stat-card p,
.panel p,
.form-status,
.status-box {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 255, 133, 0.42), 0 0 26px rgba(0, 255, 133, 0.16);
}

.portal-lead {
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portal-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.portal-note.compact {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 0.96rem;
}

.portal-support {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
}

.portal-support span {
  color: var(--cyan);
  font-weight: 800;
}

.music-subnav {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: min(1680px, calc(100% - 24px));
  margin: 12px auto 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(37, 74, 255, 0.10) 24%, rgba(118, 41, 255, 0.16) 52%, rgba(255, 61, 139, 0.14) 76%, rgba(255, 120, 48, 0.12)),
    linear-gradient(180deg, rgba(12, 9, 22, 0.94), rgba(7, 4, 16, 0.98));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.music-subnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(6, 8, 18, 0.58);
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.music-subnav a:hover,
.music-subnav a:focus-visible {
  border-color: rgba(0, 255, 133, 0.46);
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.18), rgba(255, 61, 139, 0.14)),
    rgba(8, 12, 26, 0.78);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 255, 133, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.music-subnav a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.tier-panel {
  padding: 4px 0 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tier-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tier-card.selected {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.12), 0 14px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.tier-card.tier-active {
  border-color: rgba(0, 255, 133, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 133, 0.08);
}

.tier-card.tier-future {
  opacity: 0.78;
}

.tier-name {
  margin: 0;
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.tier-meta {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: 0.95rem;
}

.tier-copy {
  margin: 10px 0 0;
}

.auth-layout,
.dashboard-grid,
.action-grid,
.artist-shell {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.auth-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.panel {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 16px;
}

.portal-hero {
  border-radius: 16px;
}

.member-form {
  margin-top: 18px;
}

.panel-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn,
.primary-btn {
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  padding: 0 18px;
  cursor: pointer;
}

.tab-btn.active,
.primary-btn {
  background: var(--cyan);
  color: #061018;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label,
.stack-form label,
.social-grid label {
  display: grid;
  gap: 8px;
}

.field-grid,
.social-grid,
.check-grid {
  display: grid;
  gap: 12px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 8, 16, 0.72);
  color: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #85839a;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.86rem;
}

.form-status[data-tone="error"] {
  color: var(--rose);
}

.form-status[data-tone="warn"] {
  color: var(--gold);
}

.form-status[data-tone="success"] {
  color: var(--green);
}

.callout-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.stat-card p {
  margin: 0;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
}

.stat-caption {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.action-grid,
.artist-shell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-row span,
.status-box {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.secondary-link {
  width: fit-content;
  margin-top: 18px;
  color: var(--gold);
}

.member-session-card {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-row span {
  color: var(--muted);
}

.profile-row strong {
  text-align: right;
  color: var(--white);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-note {
  margin-top: 22px;
}

@media (max-width: 960px) {
  .portal-hero,
  .auth-layout,
  .dashboard-grid,
  .action-grid,
  .artist-shell {
    grid-template-columns: 1fr;
  }

  .tier-grid,
  .field-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-row strong {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .portal-header {
    min-height: 108px;
  }

  .portal-brand {
    width: 100%;
    min-width: 0;
  }

  .portal-hero-line {
    white-space: normal;
  }

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

.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.password-field input {
  padding-right: 6rem;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(0, 212, 255, 0.2);
}

.choice-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.choice-fieldset legend {
  padding: 0 8px;
  color: var(--green);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.choice-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card,
.tier-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 8, 16, 0.55);
  cursor: pointer;
}

.choice-card span,
.tier-choice span {
  color: var(--white);
  font-weight: 800;
}

.choice-card input,
.tier-choice input {
  width: auto;
  margin: 0;
  accent-color: var(--cyan);
}

.choice-card:has(input:checked),
.tier-choice:has(input:checked) {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.choice-card:has(input:disabled),
.tier-choice--future {
  opacity: 0.68;
  cursor: not-allowed;
}

.tier-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tier-choice--active {
  border-color: rgba(0, 255, 133, 0.34);
}

.other-field {
  display: grid;
  gap: 10px;
}

.member-help-dialog {
  width: min(760px, calc(100% - 24px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.member-help-dialog::backdrop {
  background: rgba(2, 3, 10, 0.72);
  backdrop-filter: blur(8px);
}

.member-help-form {
  margin: 0;
  border-radius: 16px;
}

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

.dialog-close {
  margin-top: 2px;
}

.portal-note.compact + .field-grid {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .choice-grid--wide,
  .tier-choice-grid {
    grid-template-columns: 1fr;
  }

  .dialog-header {
    flex-direction: column;
  }

  .music-subnav {
    width: min(calc(100% - 20px), 1680px);
    padding: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .music-subnav a {
    min-height: 40px;
    padding: 0 10px;
  }
}

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