:root {
  --purple-dark: #100018;
  --purple: #1d002e;
  --purple-light: #350052;
  --panel: rgba(28, 0, 45, 0.92);
  --gold: #f2c319;
  --gold-light: #ffe271;
  --gold-dark: #a98500;
  --white: #ffffff;
  --gray: #c7bdd0;
  --red: #ff6b6b;
  --green: #4ee59b;
  --border: 1px solid rgba(242, 195, 25, 0.55);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top right, #3d0061 0%, transparent 34%),
    linear-gradient(145deg, var(--purple-dark), var(--purple));
}

a { color: var(--gold-light); }
a:hover { color: var(--gold); }

.auth-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .auth-shell {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    min-height: calc(100vh - 40px);
    padding: 28px 24px;
  }
}

.hero-slot {
  border: var(--border);
  border-radius: 16px;
  background: rgba(13, 0, 23, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-slot img.hero-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  background: #12001c;
}

@media (min-width: 900px) {
  .hero-slot img.hero-img { min-height: 100%; }
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8,0,14,0.92));
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.hero-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  padding: 24px;
  text-align: center;
  font-size: 0.95rem;
}

.auth-panel {
  background: var(--panel);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand-sub {
  margin: 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(242,195,25,0.25);
}

.mode-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: var(--gray);
  font-weight: 700;
  cursor: pointer;
}

.mode-toggle button.active {
  background: var(--gold);
  color: #1a1000;
}

.panel-section { display: none; }
.panel-section.active { display: block; }

label {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242,195,25,0.35);
  background: rgba(8,0,14,0.75);
  color: var(--white);
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(242,195,25,0.55);
  border-color: var(--gold);
}

.row-2 {
  display: grid;
  gap: 10px;
}
@media (min-width: 520px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.btn-primary {
  background: var(--gold);
  color: #1a1000;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  border-color: rgba(242,195,25,0.45);
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(242,195,25,0.08); }

.btn-social {
  background: rgba(0,0,0,0.35);
  border-color: rgba(242,195,25,0.3);
  color: var(--gray);
  font-weight: 600;
}
.btn-social:hover { color: var(--white); border-color: var(--gold); }

.oauth-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.8rem;
  margin: 12px 0 4px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(242,195,25,0.25);
}

.role-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 4px;
}

.role-card {
  border: 1px solid rgba(242,195,25,0.3);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.28);
  cursor: pointer;
  color: var(--gray);
  text-align: center;
  font-weight: 700;
}
.role-card input { display: none; }
.role-card.active, .role-card:has(input:checked) {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(242,195,25,0.35);
}

.role-forms .role-form { display: none; }
.role-forms .role-form.active { display: block; }

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242,195,25,0.25);
  background: rgba(0,0,0,0.25);
}
.toggle-line span { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.toggle-line small { display: block; color: var(--gray); font-weight: 400; margin-top: 2px; }

.switch {
  position: relative;
  width: 48px; height: 28px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: #444; border-radius: 999px; cursor: pointer;
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: 0.15s;
}
.switch input:checked + .slider { background: var(--gold-dark); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--gold); }

.city-hint {
  margin-top: 6px;
  color: var(--gray);
  font-size: 0.8rem;
  min-height: 1.1em;
}

.error-banner {
  background: rgba(120, 20, 40, 0.55);
  border: 1px solid rgba(255,107,107,0.5);
  color: #ffd0d0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
}

.sandbox-pill {
  align-self: flex-start;
  background: rgba(242,195,25,0.12);
  color: var(--gold);
  border: 1px solid rgba(242,195,25,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Shared app pages */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.page-wrap h1 { color: var(--gold); margin: 0 0 8px; }
.card {
  background: var(--panel);
  border: var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.nav-links a { margin-right: 14px; }
.badge-role {
  display: inline-block;
  background: rgba(242,195,25,0.15);
  color: var(--gold);
  border: 1px solid rgba(242,195,25,0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.blocked-box {
  background: rgba(120,20,40,0.45);
  border: 1px solid rgba(255,107,107,0.45);
  border-radius: 12px;
  padding: 16px;
  color: #ffe0e0;
}


/* ----- App hub spine + Magazine ----- */
.page-wide { max-width: 1040px; }

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--border);
  background: rgba(16, 0, 28, 0.85);
  box-shadow: var(--shadow);
}
.hub-brand {
  color: var(--gold) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 1.05rem;
}
.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.hub-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.hub-links a:hover,
.hub-links a.active {
  color: var(--gold);
}
.sandbox-pill {
  display: inline-block;
  background: rgba(242,195,25,0.12);
  color: var(--gold);
  border: 1px solid rgba(242,195,25,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.home-hero h1 { margin-top: 0; }

.hub-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.hub-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 14px;
  border: var(--border);
  background: var(--panel);
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.hub-tile:hover {
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}
.hub-tile strong { color: var(--gold); font-size: 1rem; }
.hub-tile span { color: var(--gray); font-size: 0.85rem; }
.hub-tile.featured { border-color: rgba(242,195,25,0.85); box-shadow: 0 0 0 1px rgba(242,195,25,0.25), var(--shadow); }
.hub-tile.stub span { opacity: 0.75; font-style: italic; }

.coming-next {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.mag-hero { margin-bottom: 8px; }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.mag-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: var(--border);
  background: var(--panel);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow);
}
.mag-card:hover { border-color: var(--gold); color: var(--white); }
.mag-cover {
  aspect-ratio: 16 / 9;
  background: #12001c;
  overflow: hidden;
}
.mag-cover img,
.mag-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-card-body { padding: 14px 16px 16px; }
.mag-card-body h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.15rem;
}
.mag-dek { color: var(--gray); margin: 0 0 8px; line-height: 1.45; }
.mag-meta { color: var(--gray); font-size: 0.85rem; margin: 0; opacity: 0.9; }
.mag-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(242,195,25,0.35);
  color: var(--gold);
  font-size: 0.75rem;
}
.mag-breadcrumb { margin: 0 0 10px; }
.mag-article-head h1 { margin-top: 0; }
.mag-figure {
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: var(--border);
  background: #12001c;
  aspect-ratio: 16 / 9;
}
.mag-body p {
  line-height: 1.65;
  color: #efe8f5;
  margin: 0 0 14px;
}
.ad-slot {
  margin: 20px 0;
  border: 1px dashed rgba(242,195,25,0.55);
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  padding: 14px 16px;
}
.ad-slot-inner { text-align: center; }
.ad-slot-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(242,195,25,0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ad-slot strong { display: block; color: var(--gold-light); margin-bottom: 6px; }
.ad-slot-note { margin: 0; color: var(--gray); font-size: 0.85rem; }


/* aliases / polish */
.brand-sub { color: var(--gray); margin: 0 0 12px; }
.page-wide.page-wrap, .page-wrap.page-wide { max-width: 1040px; }
.hub-nav .hub-brand { color: var(--gold) !important; }
/* crown logo mark in the header brand (static/img/logo_elegendz_mark.png, cut from the real logo) */
.hub-brand { display: inline-flex; align-items: center; gap: 8px; }
.hub-brand-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #000; display: block; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; }
.city-hint { color: var(--gray); font-size: 0.85rem; min-height: 1.2em; margin-top: 8px; }

/* ELegendz Magazine — Times Roman */
.magazine-page,
.magazine-page body,
body.magazine,
.mag-wrap,
.mag-article,
.mag-list,
.mag-story,
.mag-dek,
.mag-body,
.mag-body p,
.byline,
.mag-meta,
.mag-title,
.magazine-page h1,
.magazine-page h2,
.magazine-page p {
  font-family: "Times New Roman", Times, Georgia, serif !important;
}
.mag-article h1, .mag-title, .magazine-page h1 {
  font-family: "Times New Roman", Times, Georgia, serif !important;
  font-weight: 700;
}

/* ----- Signup: private/public name notes + genre autosuggest (gold on dark purple) ----- */
.field-note {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  margin-left: 4px;
}
.field-help { margin: 2px 0 10px; }
.genre-suggest { position: relative; }
.genre-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% - 6px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--purple-dark);
  border: 1px solid var(--gold-dark);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.genre-list[hidden] { display: none; }
.genre-list li {
  padding: 8px 12px;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.92rem;
}
.genre-list li:hover,
.genre-list li.active {
  background: var(--purple-light);
  color: var(--gold);
}

/* Club / Venue signup note + profile link in search */
.role-note { margin: 2px 0 6px; font-size: 0.82rem; }
.talent-profile { margin: 4px 0 0; font-size: 0.88rem; }
.talent-name a { color: inherit; text-decoration: none; }
.talent-name a:hover { text-decoration: underline; }

/* Round profile photos everywhere (David 10/13: "profile picture like Facebook") */
.talent-avatar, .ent-avatar, .hall-avatar, .timeline-pic, .credit-avatar, .comment-avatar, .nav-avatar { border-radius: 50% !important; object-fit: cover; }
.nav-avatar { width: 22px; height: 22px; vertical-align: -6px; margin-right: 4px; border: 1px solid #f2c319; }

/* Hamburger menu — legal links row inside the panel */
.hub-links .hub-menu-panel .menu-legal {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(242,195,25,0.25);
  flex-wrap: nowrap;
}
.hub-links .hub-menu-panel .menu-legal a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px !important;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(242,195,25,0.3) !important;
  border-radius: 8px;
  color: var(--gold) !important;
  white-space: nowrap;
  flex: 1 1 0%;
  min-width: 0;
}
.hub-links .hub-menu-panel .menu-legal a.active { border-color: var(--gold) !important; }
