:root {
  --black: #090909;
  --panel: #11100e;
  --panel-soft: #171510;
  --gold: #f2c345;
  --gold-dark: #9e7717;
  --white: #ffffff;
  --muted: #b7b0a1;
  --border: rgba(242, 195, 69, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 75% 20%, rgba(242, 195, 69, 0.12), transparent 30%),
    var(--black);
  color: var(--white);
}

a {
  color: inherit;
}

.topbar {
  height: 88px;
  padding: 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 9, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-title,
.eyebrow,
.portal-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions,
.hero-actions {
  display: flex;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #000;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--white);
}

.button.large {
  min-height: 54px;
  padding: 0 28px;
}

.button.full {
  width: 100%;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.hero h1,
.auth-card h1 {
  margin: 18px 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -3px;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 36px;
}

.portal-card,
.auth-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(25, 22, 16, 0.98), rgba(12, 12, 11, 0.98));
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.portal-card h2 {
  margin: 15px 0 30px;
  font-size: 36px;
}

.feature-list {
  display: grid;
  gap: 22px;
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.feature span {
  color: var(--gold);
  font-weight: 900;
}

.feature strong {
  font-size: 18px;
}

.feature p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 45px 20px;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-card.wide {
  width: min(720px, 100%);
}

.auth-logo {
  margin-bottom: 24px;
}

.auth-card h1 {
  font-size: 48px;
  letter-spacing: -2px;
}

.auth-card > p {
  color: var(--muted);
  line-height: 1.6;
}

form {
  margin-top: 28px;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b0b0b;
  color: var(--white);
  font-size: 16px;
}

.two-column-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.full-row {
  grid-column: 1 / -1;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.auth-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 850px) {
  .topbar {
    height: auto;
    padding: 22px;
    align-items: flex-start;
  }

  .top-actions {
    flex-direction: column;
  }

  .hero {
    padding: 55px 22px;
    grid-template-columns: 1fr;
  }

  .two-column-form {
    grid-template-columns: 1fr;
  }

  .full-row {
    grid-column: auto;
  }
}

.auth-home {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.auth-home:hover {
  color: var(--gold);
}

small {
  color: var(--muted);
}

.auth-submit {
  margin-top: 24px;
}

.form-message {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.error {
  color: #ffb8b8;
  border: 1px solid rgba(255, 93, 93, 0.45);
  background: rgba(120, 20, 20, 0.24);
}

.form-message.success {
  color: #b8f5ca;
  border: 1px solid rgba(62, 196, 101, 0.4);
  background: rgba(23, 103, 48, 0.22);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.consent-row {
  margin: 15px 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background:
    radial-gradient(circle at 85% 10%, rgba(242, 195, 69, 0.08), transparent 26%),
    var(--black);
}

.dashboard-sidebar {
  min-height: 100vh;
  padding: 30px 18px;
  border-right: 1px solid var(--border);
  background: rgba(7, 7, 7, 0.98);
  display: flex;
  flex-direction: column;
}

.dashboard-brand {
  margin-bottom: 44px;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav a {
  padding: 14px 15px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-nav a.active {
  color: #000;
  background: var(--gold);
}

.dashboard-nav a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.sidebar-logout {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-main {
  padding: 46px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.dashboard-header h1 {
  margin: 10px 0 6px;
  font-size: 48px;
  letter-spacing: -2px;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.summary-card,
.dashboard-panel {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(23, 21, 17, 0.95), rgba(11, 11, 10, 0.98));
  border-radius: 18px;
}

.summary-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  margin: 12px 0;
  font-size: 42px;
}

.summary-card small {
  margin-top: auto;
}

.dashboard-panel {
  padding: 28px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.dashboard-panel h2 {
  margin: 10px 0;
  font-size: 30px;
}

.dashboard-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-panel {
  display: block;
}

.portal-timeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portal-timeline > div {
  min-height: 145px;
  padding: 20px;
  border: 1px solid rgba(242, 195, 69, 0.18);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.portal-timeline span {
  color: var(--gold);
  font-weight: 900;
}

.portal-timeline strong {
  margin: 18px 0 8px;
}

.portal-timeline small {
  line-height: 1.5;
}

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

  .dashboard-sidebar {
    min-height: auto;
  }

  .dashboard-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-logout {
    margin-top: 25px;
  }

  .dashboard-main {
    padding: 30px 20px;
  }

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

  .dashboard-summary,
  .portal-timeline {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

.panel-heading {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dancers-panel {
  display: block;
}

.dancer-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.empty-dancers {
  grid-column: 1 / -1;
  min-height: 270px;
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-dancers h3 {
  margin: 10px 0 0;
  font-size: 26px;
}

.empty-dancers p {
  max-width: 470px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
}

.dancer-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.58);
}

.dancer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dancer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #000;
  background: var(--gold);
  font-weight: 900;
}

.card-edit {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.dancer-card h3 {
  margin: 20px 0;
  font-size: 23px;
}

.dancer-details {
  margin-bottom: 22px;
}

.dancer-details p {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(242, 195, 69, 0.13);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.dancer-details span {
  color: var(--muted);
  font-size: 13px;
}

.dancer-details strong {
  text-align: right;
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 25px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(7px);
}

.modal-backdrop[hidden] {
  display: none;
}

.portal-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #11100e;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.modal-header h2 {
  margin: 10px 0 0;
  font-size: 34px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.input-prefix {
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0b0b;
}

.input-prefix span {
  padding-left: 16px;
  color: var(--muted);
}

.input-prefix input {
  border: 0;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

@media (max-width: 700px) {
  .dashboard-main {
    padding: 24px 16px 45px;
  }

  .dashboard-header h1 {
    font-size: 38px;
  }

  .dashboard-header .button,
  .panel-heading .button {
    width: 100%;
  }

  .panel-heading {
    flex-direction: column;
  }

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

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .portal-modal {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .portal-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }

  .two-column-form {
    grid-template-columns: 1fr;
  }

  .full-row {
    grid-column: auto;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .auth-card h1 {
    font-size: 38px;
  }

  input {
    font-size: 16px;
  }
}
