:root {
  --hero-desktop-image: var(--hero-desktop-image);
  --hero-mobile-image: url("https://xopcttkrmjvwdddawdaa.supabase.co/storage/v1/object/public/Black%20Label%20Talent/recommended_talent_portal_hero_mobile_1080x1350.jpg");
  color-scheme: dark;
  --ink: #fff7ff;
  --muted: #c9a8cf;
  --dim: #8b7892;
  --black: #050207;
  --black-2: #0c0612;
  --panel: rgba(18, 8, 28, 0.82);
  --panel-strong: rgba(31, 10, 47, 0.92);
  --line: rgba(255, 78, 216, 0.22);
  --line-strong: rgba(255, 78, 216, 0.48);
  --fuchsia: #ff2bd6;
  --pink: #ff4fae;
  --purple: #9b5cff;
  --violet: #6b2cff;
  --cyan: #18f3ff;
  --green: #43ff9b;
  --gold: #ffd166;
  --shadow: 0 24px 80px rgba(255, 43, 214, 0.18);
  --glow: 0 0 24px rgba(255, 43, 214, 0.58), 0 0 55px rgba(155, 92, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 43, 214, 0.34), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(107, 44, 255, 0.32), transparent 30%),
    radial-gradient(circle at 65% 86%, rgba(24, 243, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #020103 0%, #08030d 42%, #12051f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 20px;
  background: rgba(4, 2, 7, 0.88);
  border-right: 1px solid var(--line);
  color: #fff;
  backdrop-filter: blur(18px);
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--fuchsia), var(--purple));
  color: #fff;
  font-weight: 950;
  box-shadow: var(--glow);
}

.brand p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(255, 79, 174, 0.55);
}

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

.nav a {
  position: relative;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.18), rgba(155, 92, 255, 0.08));
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.18);
}

.content {
  min-width: 0;
  padding: 30px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  min-height: 430px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(5, 2, 7, 0.92), rgba(5, 2, 7, 0.48)),
    url("https://xopcttkrmjvwdddawdaa.supabase.co/storage/v1/object/public/Black%20Label%20Talent/recommended_talent_portal_hero_1920x1080.jpg");
  background-position: center center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -35% 24%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 43, 214, 0.45), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.mini-label {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 43, 214, 0.48);
}

.hero-copy,
.page-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.profile-chip {
  min-width: 245px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 4, 16, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(155, 92, 255, 0.22);
}

.profile-chip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-chip strong {
  font-size: 19px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(67, 255, 155, 0.45);
  background: rgba(67, 255, 155, 0.12);
  color: var(--green);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(67, 255, 155, 0.16);
}

.page-head {
  margin-bottom: 22px;
  padding: 12px 0 8px;
}

.page-head h1 {
  font-size: clamp(38px, 6vw, 72px);
}

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

.stat,
.panel,
.gig-card,
.assignment-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 11px;
  align-items: center;
  padding: 17px;
}

.stat-icon,
.panel-icon {
  color: var(--cyan);
  font-weight: 950;
  font-size: 12px;
  text-shadow: 0 0 14px rgba(24, 243, 255, 0.68);
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.stat strong {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 20px;
}

.home-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0;
}

.count-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.pill.open {
  border-color: rgba(67, 255, 155, 0.32);
  background: rgba(67, 255, 155, 0.12);
  color: var(--green);
}

.pill.confirmed {
  border-color: rgba(24, 243, 255, 0.32);
  background: rgba(24, 243, 255, 0.11);
  color: var(--cyan);
}

.pill.attention {
  border-color: rgba(255, 79, 174, 0.42);
  background: rgba(255, 79, 174, 0.13);
  color: var(--pink);
}

.gig-list,
.assignment-list {
  display: grid;
  gap: 14px;
}

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

.gig-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  transition: 180ms ease;
}

.gig-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.13), transparent 44%);
  opacity: 0;
  transition: 180ms ease;
  pointer-events: none;
}

.gig-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.gig-card:hover::before,
.featured-gig::before {
  opacity: 1;
}

.gig-card__top,
.assignment-row,
.gig-actions,
.assignment-status {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.gig-card h3,
.assignment-row h3,
.next-panel h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 20px;
}

.gig-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 13px 0;
}

.gig-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.gig-note,
.next-panel p,
.profile-panel p {
  margin-bottom: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.deliverables {
  padding: 12px;
  border: 1px solid rgba(155, 92, 255, 0.24);
  border-radius: 8px;
  background: rgba(155, 92, 255, 0.1);
}

.deliverables span {
  display: block;
  margin-bottom: 5px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.deliverables p {
  margin-bottom: 0;
  color: #fff;
  font-size: 14px;
}

.gig-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 950;
  transition: 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--fuchsia), var(--purple));
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.32);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.button-secondary.glass {
  background: rgba(5, 2, 7, 0.42);
  backdrop-filter: blur(10px);
}

.full-width {
  width: 100%;
}

.icon-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 950;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-panel {
  max-width: 1180px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 99px;
}

.legend-dot.open {
  background: var(--green);
}

.legend-dot.hold {
  background: var(--gold);
}

.legend-dot.confirmed {
  background: var(--cyan);
}

.legend-dot.blocked {
  background: var(--pink);
}

.weekday-grid,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-grid {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.month-grid {
  gap: 9px;
}

.calendar-day {
  min-height: 112px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--dim);
  text-align: left;
  transition: 180ms ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day strong,
.calendar-day span,
.calendar-day small {
  display: block;
}

.calendar-day strong {
  color: #fff;
  font-size: 15px;
}

.calendar-day span {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 950;
}

.calendar-day small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
}

.calendar-day.open {
  border-color: rgba(67, 255, 155, 0.36);
  background: rgba(67, 255, 155, 0.1);
  color: var(--green);
}

.calendar-day.confirmed {
  border-color: rgba(24, 243, 255, 0.34);
  background: rgba(24, 243, 255, 0.1);
  color: var(--cyan);
}

.calendar-day.hold {
  border-color: rgba(255, 209, 102, 0.36);
  background: rgba(255, 209, 102, 0.11);
  color: var(--gold);
}

.calendar-day.blocked {
  border-color: rgba(255, 79, 174, 0.4);
  background: rgba(255, 79, 174, 0.12);
  color: var(--pink);
}

.assignment-row {
  padding: 16px;
}

.assignment-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.assignment-status {
  align-items: end;
  flex-direction: column;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(24, 243, 255, 0.55);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-list.compact {
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-row strong {
  color: #fff;
  font-size: 13px;
  text-align: right;
}

.detail-deliverables {
  margin-top: 12px;
}

.detail-side {
  position: sticky;
  top: 30px;
}

.stacked {
  display: grid;
  grid-template-columns: 1fr;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip-list span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 79, 174, 0.34);
  border-radius: 999px;
  background: rgba(255, 79, 174, 0.11);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.chip-list.muted span {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.profile-subhead {
  margin-top: 8px;
}

.agreements-panel {
  grid-column: 1 / -1;
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.agreement-row strong {
  color: #fff;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
  }

  .brand {
    margin-bottom: 0;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .home-grid,
  .profile-grid,
  .page-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .content {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    height: auto;
    align-items: stretch;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(5, 2, 7, 0.94);
  }

  .brand {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .nav a {
    min-height: 54px;
    display: grid;
    place-items: center;
    padding: 8px 5px;
    border-radius: 12px;
    font-size: 11px;
    text-align: center;
    white-space: normal;
  }

  .hero {
    align-items: start;
    flex-direction: column;
    min-height: 520px;
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(5, 2, 7, 0.72), rgba(5, 2, 7, 0.94)),
      var(--hero-mobile-image);
    background-position: center top;
    background-size: cover;
  }

  .hero h1,
  .page-head h1 {
    font-size: 43px;
  }

  .profile-chip {
    min-width: 0;
    width: 100%;
  }

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

  .section-head,
  .gig-card__top,
  .assignment-row,
  .assignment-status {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
  }

  .calendar-controls .icon-button {
    width: 100%;
  }

  .calendar-controls .count-pill {
    justify-content: center;
  }

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

  .weekday-grid {
    display: none;
  }

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

  .calendar-day {
    min-height: auto;
  }

  .calendar-day.empty {
    display: none;
  }

  .detail-row {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

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