/* GigBackup Landingpage V3 */

:root {
  --bg: #0b1020;
  --bg-2: #121a31;
  --text: #111827;
  --muted: #667085;
  --white: #ffffff;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --primary: #ff6b35;
  --primary-dark: #e85a26;
  --yellow: #ffd166;
  --green: #12b76a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #ff9f1c);
  display: inline-grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: white;
}

.admin-link {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-link:hover {
  color: var(--text);
}

.menu-button {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
}

.hero {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 107, 53, 0.32), transparent 26%),
    radial-gradient(circle at 14% 80%, rgba(255, 209, 102, 0.18), transparent 24%),
    linear-gradient(135deg, #0b1020 0%, #111a33 54%, #1f2937 100%);
  color: white;
  overflow: hidden;
}

.hero-inner {
  max-width: 1180px;
  min-height: 780px;
  margin: 0 auto;
  padding: 92px 22px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 58px;
  align-items: center;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 53, 0.28);
  font-weight: 900;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin: 0 0 26px;
}

.headline-underline {
  text-decoration-line: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.1em;
}

.headline-dot {
  color: var(--primary);
}

.lead {
  max-width: 640px;
  color: #d6dbe6;
  font-size: 1.25rem;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.98rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 15px 28px rgba(255, 107, 53, 0.24);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: white;
  color: var(--text);
}

.button-light {
  background: white;
  color: var(--text);
}

.button-outline {
  border: 1px solid rgba(255,255,255,0.55);
  color: white;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  color: #dbe4f0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.9rem;
}

.hero-panel {
  position: relative;
  min-height: 620px;
}

.gig-card {
  position: absolute;
  top: 62px;
  right: 0;
  left: 20px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: 34px;
  padding: 30px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.gig-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-weight: 850;
}

.live-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(18, 183, 106, 0.14);
}

.gig-card h2 {
  margin: 22px 0;
  font-size: 2.15rem;
  letter-spacing: -0.05em;
}

.gig-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gig-data div {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.gig-data small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.match-result {
  margin-top: 18px;
  padding: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  position: relative;
  z-index: 2;
}

.match-icon {
  width: 45px;
  height: 45px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffedd5;
  flex-shrink: 0;
}

.match-result strong,
.match-result span {
  display: block;
}

.match-result span {
  color: var(--muted);
}

.inline-candidate {
  margin-top: 22px;
  width: 68%;
  background: white;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  padding: 15px 18px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
  transform: translateX(-8px);
}

.inline-candidate .candidate-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  flex-shrink: 0;
}

.inline-candidate strong,
.inline-candidate span {
  display: block;
}

.inline-candidate span {
  color: var(--muted);
}

.inline-candidate em {
  margin-left: auto;
  color: #15803d;
  background: #dcfce7;
  padding: 5px 9px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  font-size: .8rem;
}

.floating-card {
  position: absolute;
  background: white;
  color: var(--text);
  border-radius: 20px;
  padding: 15px 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  min-width: 190px;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-card.top {
  top: 18px;
  right: 24px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 94px 22px;
}

.section.light {
  max-width: none;
  background: var(--soft);
}

.section.light > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section.dark {
  max-width: none;
  background: var(--bg);
  color: white;
}

.section.dark > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.split h2,
.form-intro h2,
.final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p,
.split p,
.form-intro p,
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards.five {
  grid-template-columns: repeat(5, 1fr);
}

.cards.six {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.step,
.region-card,
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(15,23,42,0.06);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff7ed;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card h3,
.step h3,
.region-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.card p,
.step p,
.region-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.audience {
  min-height: 190px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step span {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.dark-eyebrow {
  background: rgba(255,255,255,0.08);
}

.section.dark p {
  color: #cbd5e1;
}

.criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.criteria span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #eef2ff;
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 850;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.region-card h3 {
  font-size: 1.65rem;
}

.form-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.form-card {
  display: grid;
  gap: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

label {
  font-weight: 850;
  color: #334155;
  display: grid;
  gap: 7px;
}

.optional-label,
.field-hint {
  color: var(--muted);
  font-weight: 750;
}

.optional-label {
  font-size: 0.88rem;
}

.field-hint {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  margin: 0;
  background: #fbfdff;
}

fieldset.field-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

legend {
  font-weight: 900;
  color: #334155;
  padding: 0 8px;
}

.checkbox-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
}

.checkbox-label input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.conditional-block {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 15px;
}

.hidden {
  display: none !important;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: white;
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  font: inherit;
}

select[multiple] {
  min-height: 164px;
  padding: 10px;
}

select[multiple] option {
  padding: 6px 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 107, 53, 0.16);
  border-color: var(--primary);
}

.final-cta {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.18), transparent 24%),
    linear-gradient(135deg, var(--primary), #9d2f1b);
  color: white;
  text-align: center;
  padding: 92px 22px;
}

.final-cta p {
  color: rgba(255,255,255,0.84);
  margin-bottom: 28px;
}

.centered-actions {
  justify-content: center;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
  font-size: 1.15rem;
}

.footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
}

.legal-page {
  max-width: 920px;
}

.legal-page h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  color: #475569;
}

.legal-page a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.legal-updated {
  color: var(--muted);
  font-weight: 800;
}

.legal-nav {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-panel {
    min-height: 640px;
  }

  .gig-card {
    left: 0;
  }

  .cards.three,
  .cards.four,
  .cards.five,
  .cards.six,
  .steps,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-links.open {
    position: absolute;
    top: 67px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

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

  .gig-data {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }

  .hero-panel {
    min-height: auto;
  }

  .gig-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .inline-candidate {
    width: 100%;
    transform: none;
  }

  .inline-candidate em {
    display: none;
  }

  .checkbox-group {
    display: grid;
  }

  .footer {
    flex-direction: column;
  }
}


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

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


/* V9 trust section */
.trust-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.trust-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  background: #0b1020;
  color: white;
  border-radius: 34px;
  padding: 38px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.trust-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.22);
}

.trust-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
}

.trust-card p {
  position: relative;
  z-index: 1;
  color: #cbd5e1;
  font-size: 1.06rem;
  margin: 0;
}

.trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
}

.trust-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.trust-list strong {
  color: var(--primary);
  font-size: 1.2rem;
}

@media (max-width: 980px) {
  .trust-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}


/* V10 optimization */
.emergency-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.emergency-grid div {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15,23,42,0.06);
  border-radius: 22px;
  padding: 20px;
  font-weight: 900;
  text-align: center;
}

.quick-form-note {
  color: var(--muted);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 18px;
  font-weight: 750;
}

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


/* V11 simplification */
.build-section {
  padding-top: 70px;
  padding-bottom: 70px;
  background: #fff;
}

.build-section .section-heading {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(15,23,42,0.06);
}


/* V23 progressive search form */
.optional-details {
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: #fff7ed;
  padding: 0;
  overflow: hidden;
}

.optional-details summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 900;
  color: #9a3412;
  list-style: none;
}

.optional-details summary::-webkit-details-marker {
  display: none;
}

.optional-details summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
}

.optional-details[open] summary::after {
  content: "–";
}

.optional-content {
  display: grid;
  gap: 17px;
  padding: 0 18px 18px;
}

/* App layer */
.app-section {
  max-width: none;
  background: #f1f5f9;
}

.app-section > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.app-shell {
  display: grid;
  gap: 22px;
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
}

.app-topbar h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.app-topbar p {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.admin-jump-nav a {
  border: 1px solid #d8dee9;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
}

.admin-jump-nav a:hover,
.admin-jump-nav a:focus-visible {
  border-color: var(--primary);
  color: #9a3412;
}

.button-outline-dark {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: white;
}

.button-danger {
  background: #991b1b;
  color: white;
}

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

.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "requests requests"
    "pool pool"
    "history performance"
    "bookings bookings";
  gap: 18px;
  align-items: start;
}

.request-panel {
  grid-area: requests;
}

.musician-pool-panel {
  grid-area: pool;
}

.history-panel {
  grid-area: history;
}

.performance-panel {
  grid-area: performance;
}

.booking-panel {
  grid-area: bookings;
}

.app-sidebar,
.match-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
  min-height: 420px;
}

.list-header,
.match-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.list-header h3,
.match-panel h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.list-header span,
.match-score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  white-space: nowrap;
}

.match-panel-header p {
  color: var(--muted);
  margin: 8px 0 0;
}

.app-list,
.match-list,
.timeline-list,
.performance-list {
  display: grid;
  gap: 12px;
}

.performance-controls,
.booking-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.booking-controls {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
}

.performance-controls label,
.booking-controls label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.performance-controls select,
.booking-controls select {
  margin-top: 5px;
  min-height: 42px;
  width: 100%;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  background: white;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.musician-pool-panel .app-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-item,
.match-item,
.empty-state {
  border: 1px solid #e2e8f0;
  background: #fbfdff;
  border-radius: 18px;
  padding: 14px;
}

.app-item {
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}

.app-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
  background: #fff7ed;
}

.request-card {
  cursor: default;
}

.request-card summary {
  cursor: pointer;
  list-style: none;
}

.request-card summary::-webkit-details-marker {
  display: none;
}

.request-card summary::after {
  content: "Details";
  float: right;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 900;
}

.request-card[open] summary::after {
  content: "Schließen";
}

.app-item strong,
.match-item strong {
  display: block;
  margin-bottom: 5px;
  letter-spacing: -0.015em;
}

.profile-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin: 0 0 5px;
  padding: 0;
  text-align: left;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.app-item span,
.match-item span,
.empty-state {
  color: var(--muted);
  font-weight: 700;
}

.item-meta,
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.item-meta span,
.match-meta span {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #475569;
  font-size: 0.82rem;
}

.request-overview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.request-overview > strong {
  margin: 0;
  font-size: 0.92rem;
}

.request-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-overview-head strong {
  font-size: 0.92rem;
}

.request-match-list {
  display: grid;
  gap: 8px;
}

.request-match-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: white;
  padding: 10px;
}

.request-match-row strong,
.request-match-row span {
  display: block;
}

.request-match-row em {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.request-match-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: min(320px, 42%);
}

.status-accepted {
  background: #dcfce7;
  color: #15803d;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-open {
  background: #f1f5f9;
  color: #475569;
}

.status-released {
  background: #fff7ed;
  color: #9a3412;
}

.status-match {
  background: #eef2ff;
  color: #3730a3;
}

.match-item {
  display: grid;
  gap: 10px;
}

.timeline-item,
.performance-item {
  border: 1px solid #e2e8f0;
  background: #fbfdff;
  border-radius: 12px;
  padding: 8px 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.timeline-item.compact {
  display: block;
  padding: 10px 12px;
}

.timeline-item.compact strong {
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.timeline-item.compact span {
  font-size: 0.82rem;
}

#admin-requests,
#admin-pool,
#admin-history,
#admin-performance,
#admin-bookings {
  scroll-margin-top: 18px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.12);
}

.timeline-item strong,
.performance-item strong {
  display: block;
  margin-bottom: 2px;
}

.timeline-item span,
.performance-item span {
  color: var(--muted);
  font-weight: 750;
}

.performance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: white;
  color: #9a3412;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 7px;
  white-space: nowrap;
}

.performance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.performance-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 999px;
  padding: 3px 7px;
  min-height: 24px;
}

.performance-metric span {
  display: inline;
  font-size: 0.7rem;
}

.performance-metric strong {
  margin: 0;
  font-size: 0.82rem;
}

.booking-list {
  display: grid;
  gap: 12px;
}

.booking-item {
  border: 1px solid #e2e8f0;
  background: #fbfdff;
  border-radius: 12px;
  padding: 8px 10px;
}

.booking-item strong {
  display: block;
  margin-bottom: 4px;
}

.booking-item span {
  color: var(--muted);
  font-weight: 750;
}

.booking-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.profile-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  padding: 0;
}

.profile-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.profile-dialog-inner {
  position: relative;
  padding: 22px;
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8dee9;
  border-radius: 50%;
  background: white;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.profile-head {
  padding-right: 48px;
}

.profile-head h3 {
  margin: 4px 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.profile-head p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.profile-detail-grid {
  max-height: min(430px, 52vh);
  overflow: auto;
  padding-right: 4px;
}

.musician-card {
  cursor: default;
}

.musician-card summary {
  cursor: pointer;
  list-style: none;
}

.musician-card summary::-webkit-details-marker {
  display: none;
}

.musician-card summary::after {
  content: "Details";
  float: right;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 900;
}

.musician-card[open] summary::after {
  content: "Schließen";
}

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

.detail-field {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: white;
  padding: 10px;
}

.detail-field span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 3px;
}

.detail-field strong {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.detail-field.wide {
  grid-column: 1 / -1;
}

.pool-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: 10px;
  margin-bottom: 14px;
}

.pool-controls label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.pool-controls input,
.pool-controls select {
  margin-top: 5px;
  min-height: 42px;
  width: 100%;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  background: white;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-actions.compact {
  justify-content: flex-end;
  gap: 6px;
}

.match-actions.compact .mini-button {
  padding: 7px 9px;
  font-size: 0.76rem;
}

.mini-button {
  border: 1px solid #cbd5e1;
  background: white;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  font-size: 0.82rem;
}

.mini-button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.mini-button.success {
  background: #15803d;
  border-color: #15803d;
  color: white;
}

.mini-button.danger {
  background: #991b1b;
  border-color: #991b1b;
  color: white;
}

.workflow-card {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

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

.workflow-card span {
  color: #9a3412;
  font-weight: 800;
  margin-top: 4px;
}

.match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.score-bar {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  width: var(--score);
  background: linear-gradient(90deg, var(--primary), #12b76a);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: 18px;
  background: #0f172a;
  color: white;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app-layout,
  .app-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "requests"
      "pool"
      "history"
      "performance"
      "bookings";
  }

  .app-actions {
    justify-content: flex-start;
  }
}

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

  .musician-pool-panel .app-list,
  .detail-grid,
  .performance-controls,
  .booking-controls,
  .pool-controls,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .app-sidebar,
  .match-panel {
    min-height: auto;
    padding: 14px;
  }

  .request-match-row {
    align-items: flex-start;
    display: grid;
  }

  .request-overview-head {
    align-items: flex-start;
    display: grid;
  }

  .request-match-controls {
    justify-items: start;
    min-width: 0;
  }

  .match-actions.compact {
    justify-content: flex-start;
  }
}
