/* ==========================================================================
   OnDuty — Event Crew Agency Design System (PRD v1.1 Bab 10 & Bab 11)
   Warna: Hitam #111111 (30%), Putih #FFFFFF / Abu #F5F5F5 (60%), Oranye #F97316 (10%)
   Mobile-first: diuji di 360px, 768px, 1280px tanpa horizontal overflow
   ========================================================================== */

:root {
  --black: #111111;
  --black-soft: #1f1f1f;
  --black-muted: #2d2d2d;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-text-on-light: #c2410c; /* WCAG AA 5.2:1 on #FFFFFF */
  --orange-soft: #ffedd5;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --gray-border: #e5e5e5;
  --gray-text: #4b5563; /* WCAG AA 7.5:1 on #FFFFFF */
  --green: #15803d; /* WCAG AA 5.1:1 on #FFFFFF */
  --green-bg: #dcfce7;
  --red: #b91c1c; /* WCAG AA 6.5:1 on #FFFFFF */
  --red-bg: #fee2e2;
  --blue: #1d4ed8;
  --blue-bg: #dbeafe;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(17, 17, 17, 0.08);
  --shadow-md: 0 6px 20px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 14px 32px rgba(17, 17, 17, 0.14);

  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ======================== HEADER & NAVIGATION ======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 56px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: transparent;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link[hidden] {
  display: none !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-link[aria-current='page'] {
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange);
}

.nav-link-admin {
  color: var(--orange);
}

.nav-auth-area {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.nav-google-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--black-muted);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 58px;
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 32px;
    max-width: 136px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background: transparent;
    border-bottom: 0;
    padding: 0;
    box-shadow: none;
    gap: 0.15rem;
  }

  .nav-link {
    min-height: 36px;
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
  }

  .nav-auth-area {
    margin-top: 0;
    padding-top: 0;
    margin-left: 0.35rem;
    padding-left: 0.55rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (min-width: 1024px) {
  .brand-logo-img {
    height: 36px;
    max-width: 150px;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .user-pill {
    max-width: 180px;
  }
}

/* ======================== EVENT TICKER (BAB 11) ======================== */

.ticker-bar {
  background: var(--black-soft);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 0.5rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--black);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track.is-animated {
    animation: tickerScroll 28s linear infinite;
  }
}

.ticker-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #f3f4f6;
}

.ticker-pause-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.ticker-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ======================== BUTTONS ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  }
  .btn:active:not(:disabled) {
    transform: scale(0.98);
  }
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

/* WCAG AAA: #111111 on #F97316 = 7.5:1 */
.btn-primary {
  background: var(--orange);
  color: var(--black);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover:not(:disabled) {
  background: var(--black-muted);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover:not(:disabled) {
  background: var(--gray-bg);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost-light {
  background: transparent;
  color: #e5e7eb;
  border-color: transparent;
  padding-inline: 0.75rem;
}

.btn-ghost-light:hover:not(:disabled) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: #fca5a5;
}

.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}

.btn-wa {
  background: #15803d;
  color: var(--white);
  border-color: #15803d;
}

.btn-wa:hover:not(:disabled) {
  background: #166534;
  border-color: #166534;
  color: var(--white);
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
}

/* ======================== HERO (DARK #111111 PANEL) ======================== */

.hero-section {
  position: relative;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 65% 55% at 88% 12%, rgba(249, 115, 22, 0.18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 92%, rgba(249, 115, 22, 0.09), transparent 65%);
  color: var(--white);
  padding-block: 2.5rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: clip;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.hero-main {
  max-width: 780px;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  width: min(210px, 58vw);
  height: auto;
  background: transparent;
}

.hero-title {
  font-size: clamp(1.9rem, 1.25rem + 3.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: var(--white);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 0.9rem + 0.45vw, 1.14rem);
  line-height: 1.65;
  color: #d4d4d8;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.hero-chip:hover {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.14);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Strip Statistik Live di dalam Hero */
.hero-stats-strip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
}

.hero-stats-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stats-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.hero-stats-status {
  font-size: 0.78rem;
  color: #a1a1aa;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-inline-size: 0;
}

.hero-stat-value {
  font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a1a1aa;
}

@media (min-width: 768px) {
  .hero-section {
    padding-block: 3.5rem 4rem;
  }
  .hero-stats-strip {
    padding: 1.35rem 1.6rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ======================== 3 SEKSI BARU BERANDA ======================== */

/* (a) 6 Jenis Event */
.event-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .event-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .event-types-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.event-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .event-type-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.45);
  }
}

.event-type-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.event-type-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange-text-on-light);
  font-variant-numeric: tabular-nums;
}

.event-type-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
}

.event-type-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.55;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.4rem;
  margin-block-start: auto;
  padding-top: 0.5rem;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gray-bg);
  color: var(--black);
  border: 1px solid var(--gray-border);
}

.role-tag-highlight {
  background: var(--orange-soft);
  color: var(--orange-text-on-light);
  border-color: rgba(249, 115, 22, 0.35);
  font-weight: 700;
}

/* (b) Keunggulan OnDuty */
.advantage-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--black);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.advantage-title {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--black);
}

.advantage-desc {
  margin: 0;
  font-size: 0.89rem;
  color: var(--gray-text);
  line-height: 1.55;
}

/* (c) Langkah Gabung Crew 3 Tahap */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-title {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--black);
}

.step-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.55;
}

/* ======================== SECTIONS & CARDS ======================== */

.section {
  padding-block: 2.75rem;
}

.section-gray {
  background: var(--gray-bg);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-text-on-light);
  margin-bottom: 0.35rem;
}

.section-dark .section-eyebrow {
  color: var(--orange);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.section-desc {
  margin: 0.4rem 0 0;
  color: var(--gray-text);
  max-width: 62ch;
}

.section-dark .section-desc {
  color: #d1d5db;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .card-interactive {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  .card-interactive:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d4d4d4;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ======================== CLIENT DASHBOARD STATS (BAB 7) ======================== */

.stat-card {
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--orange); /* 7.5:1 on #1F1F1F */
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.stat-source {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Admin summary light cards */
.kpi-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
}

.kpi-value-accent {
  color: var(--orange-text-on-light);
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-top: 0.25rem;
}

/* ======================== STATUS BADGES & ON DUTY PULSE ======================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange-text-on-light);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red);
}

.badge-dark {
  background: var(--black);
  color: var(--white);
}

.badge-gray {
  background: var(--gray-bg);
  color: var(--gray-text);
  border: 1px solid var(--gray-border);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.onduty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .onduty-dot {
    animation: onDutyPulse 1.8s ease-in-out infinite;
  }
}

@keyframes onDutyPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

/* ======================== PROGRESS BAR SLOT ======================== */

.slot-progress {
  width: 100%;
  height: 10px;
  background: var(--gray-bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.slot-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease, background-color 0.25s ease;
}

.slot-progress-bar.is-available {
  background: var(--green);
}

.slot-progress-bar.is-almost {
  background: var(--orange);
}

.slot-progress-bar.is-full {
  background: var(--red);
}

/* ======================== SKELETON LOADING (BAB 11) ======================== */

.skeleton {
  background: #e5e7eb;
  border-radius: 6px;
  min-height: 1.25rem;
}

.section-dark .skeleton {
  background: #374151;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: skeletonPulse 1.4s ease-in-out infinite;
  }
}

@keyframes skeletonPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ======================== FORMS & ACCESSIBLE VALIDATION ======================== */

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

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.transport-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.transport-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  background: var(--gray-bg);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.transport-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-text-on-light);
}

.transport-option input[type='radio'] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.domisili-compare {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
}

.domisili-compare-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.skill-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.skill-fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
  padding: 0;
  margin-bottom: 0.2rem;
}

.skill-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  background: var(--gray-bg);
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.skill-chip:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-text-on-light);
}

.skill-chip input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.initial-roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.initial-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.initial-role-row .skill-chip {
  flex: 1;
  min-width: 0;
}

.initial-role-kuota {
  width: 88px;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  flex-shrink: 0;
}

.initial-role-kuota:disabled {
  opacity: 0.5;
  background: var(--gray-bg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
}

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.error-msg {
  display: none;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Validate after interaction (:user-invalid + fallback via :is()) */
:is(.input, .select, .textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--red);
  background-color: #fef2f2;
}

:is(.input, .select, .textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

:is(.input, .select, .textarea):is(:user-valid, .user-valid-fallback) {
  border-color: var(--green);
}

.consent-box {
  background: var(--gray-bg);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.consent-box input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--orange);
}

/* ======================== RESPONSIVE CONTAINER TABLES ======================== */

.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 75vh);
  container-type: inline-size;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.data-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0.85rem 1rem;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
}

.data-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--black);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: top;
}

.data-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--white);
  font-weight: 700;
  z-index: 1;
}

@container (width < 600px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    margin: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
  }

  .data-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-border);
  }

  .data-table td {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-text);
  }
}

/* ======================== TABS ======================== */

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 0.75rem;
}

.tab-btn {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.tab-btn[aria-selected='true'] {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ======================== NATIVE MODAL DIALOG ======================== */

dialog {
  padding: 0;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  color: var(--black);
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(17, 17, 17, 0.65);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-border);
}

.dialog-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.dialog-body {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 70vh;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--gray-border);
  background: var(--gray-bg);
}

/* ======================== TOAST FEEDBACK (BAB 11) ======================== */

.toast-region {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .toast-region {
    left: auto;
    max-width: 390px;
  }
}

.toast {
  pointer-events: auto;
  width: 100%;
  background: var(--black);
  color: var(--white);
  border-left: 4px solid var(--orange);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
}

.toast.is-success {
  border-left-color: #22c55e;
}

.toast.is-error {
  border-left-color: #ef4444;
}

/* ======================== VIEWS & FOOTER ======================== */

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.wa-community-card {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-text);
  background: var(--gray-bg);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.site-footer {
  background: var(--black);
  color: #d1d5db;
  padding-block: 2.5rem 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-heading {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Utility helpers */
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.stack-md { display: flex; flex-direction: column; gap: 1rem; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.text-muted { color: var(--gray-text); }
.text-sm { font-size: 0.86rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }


/* ======================== FAQ ACCORDION ======================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange-text-on-light);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: '-';
}

.faq-answer {
  margin: 0.75rem 0 0;
  color: var(--gray-text);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ======================== GOOGLE OAUTH & LOCKED PROFILE ======================== */

.auth-card {
  padding: 2rem;
}

.auth-logo-wrap {
  margin-bottom: 1rem;
}

.auth-logo-img {
  height: 44px;
  width: auto;
}

.google-signin-box {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.google-signin-box-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.google-btn-mount {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.auth-rules {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-border);
}

.locked-google-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--gray-bg);
  border: 1.5px solid var(--black);
  border-radius: var(--radius-sm);
}

.locked-google-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-gate-card {
  background: #18181b;
  color: var(--white);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ======================== DISTINCT ADMIN CONSOLE LAYOUT ======================== */

body.is-admin-mode {
  background: #f4f4f5;
}

body.is-admin-mode .site-header,
body.is-admin-mode .ticker-bar,
body.is-admin-mode .site-footer {
  display: none;
}

.admin-workspace {
  min-height: 100vh;
  background: #f4f4f5;
}

.admin-topbar {
  background: #18181b;
  color: var(--white);
  border-bottom: 3px solid var(--orange);
  padding-block: 0.75rem;
}

.admin-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-mode-badge {
  background: var(--orange);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .admin-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

.admin-sidebar {
  background: #18181b;
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-sidebar-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  padding: 0.25rem 0.65rem 0.5rem;
}

.admin-side-btn {
  width: 100%;
  text-align: left;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: #e4e4e7;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-side-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-side-btn[aria-selected='true'] {
  background: var(--orange);
  color: var(--black);
  font-weight: 800;
}

.admin-main {
  min-width: 0;
}

/* Admin Event Crew List per Role + Download CSV */
.admin-event-roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-event-role-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.admin-event-role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.admin-event-role-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.admin-event-role-title {
  font-size: 0.94rem;
  color: var(--black);
}

.admin-event-role-meta .badge {
  white-space: normal;
}

.admin-approved-crew-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0.55rem 0 0;
  border-top: 1px dashed var(--gray-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-approved-crew-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  max-width: 100%;
}

/* ======================== ADMIN CREW RATING & EVALUATION ======================== */

.rating-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 170px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.rating-star-filled {
  color: var(--orange);
}

.rating-star-empty {
  color: #d1d5db;
}

.rating-score-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.rating-note-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--black);
  line-height: 1.45;
  word-break: break-word;
}

.rating-meta {
  font-size: 0.75rem;
  color: var(--gray-text);
  line-height: 1.35;
  word-break: break-word;
}

.crew-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
}

.rating-picker {
  border: 0;
  margin: 0;
  padding: 0;
}

.rating-picker legend {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--black);
}

.rating-star-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.45rem;
}

.rating-star-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 54px;
  padding: 0.45rem 0.5rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rating-star-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-star-option:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.rating-star-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.rating-star-option:has(input:focus-visible) {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.rating-star-num {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--black);
}

.rating-star-num .star-icon {
  color: var(--orange);
}

.rating-star-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-text);
}

.rating-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-history-item {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

/* ======================== CREW EVENT LIST (GOERS-STYLE SIMPLE) ======================== */

.crew-events-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crew-events-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.crew-search-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.crew-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  pointer-events: none;
}

.crew-search-input {
  width: 100%;
  padding-left: 2.6rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.crew-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.crew-event-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.crew-event-row:hover {
  border-color: #d4d4d4;
  box-shadow: var(--shadow-md);
}

.crew-event-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--black-soft);
  border: 1px solid var(--gray-border);
}

.crew-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-event-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crew-event-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
  overflow-wrap: anywhere;
}

.crew-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.crew-event-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.crew-event-meta-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}

.crew-event-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  overflow-wrap: anywhere;
}

.crew-event-deadline {
  color: var(--orange-text-on-light);
}

.crew-event-roles-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.crew-event-roles {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.35rem;
  font-size: 0.9rem;
  color: var(--black-soft);
}

.crew-event-roles li {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crew-event-roles li::marker {
  color: var(--orange);
}

.crew-event-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.crew-event-cta {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.crew-event-empty {
  text-align: center;
  padding: 2rem 1.25rem;
}

@media (min-width: 768px) {
  .crew-event-row {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.4rem;
  }

  .crew-event-thumb {
    width: 136px;
    height: 96px;
  }

  .crew-event-cta {
    width: auto;
    min-width: 132px;
  }
}

/* ======================== EVENT DETAIL BANNER (GOERS-STYLE) ======================== */

.event-detail-banner {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 86% 82%, rgba(249, 115, 22, 0.42) 0%, transparent 52%),
    linear-gradient(135deg, #111111 0%, #1c1917 50%, #9a3412 86%, #ea580c 100%);
  box-shadow: var(--shadow-md);
}

.event-detail-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.event-detail-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.event-detail-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.9) 0%,
    rgba(17, 17, 17, 0.55) 52%,
    rgba(17, 17, 17, 0.25) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.event-detail-banner-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.event-banner-client {
  font-size: 0.84rem;
  color: #e5e7eb;
}

.event-detail-banner-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.event-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.event-banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(17, 17, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.event-banner-chip-accent {
  background: rgba(249, 115, 22, 0.24);
  border-color: rgba(249, 115, 22, 0.65);
  color: #ffedd5;
}

@media (min-width: 768px) {
  .event-detail-banner {
    min-height: 270px;
  }

  .event-detail-banner-content {
    padding: 2rem 1.85rem;
  }
}

.admin-banner-preview {
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  max-height: 160px;
  background: var(--black-soft);
}

.admin-banner-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ======================== CREW EVENT DETAIL COMFORT & GOERS-STYLE (UPDATE #8 & #9) ======================== */

.crew-detail-stack,
.admin-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.crew-detail-stack .event-detail-banner,
.admin-detail-stack .event-detail-banner {
  margin-bottom: 0;
}

.crew-event-meta-card {
  padding: 1.15rem 1.3rem;
  background: var(--gray-bg);
  border-color: var(--gray-border);
}

.crew-event-meta-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--black);
}

.crew-detail-section-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
}

.crew-detail-body-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
}

.crew-roles-section {
  display: flex;
  flex-direction: column;
}

.crew-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

.crew-role-card {
  padding: 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  border-left: 3px solid var(--orange);
}

.crew-role-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.crew-role-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  overflow-wrap: anywhere;
}

.crew-role-card-fee {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-text);
  line-height: 1.45;
}

/* Deskripsi Tugas per Posisi (bagian terpisah ala Goers) */
.crew-task-desc-card {
  padding: 1.3rem 1.4rem;
}

.crew-task-groups {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.crew-task-group {
  padding-top: 1.15rem;
  border-top: 1px solid var(--gray-border);
}

.crew-task-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.crew-task-role-heading {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}

.crew-task-bullets {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-text);
}

.crew-task-bullets li {
  overflow-wrap: anywhere;
}

/* Form Lamaran Checklist */
.crew-apply-card {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crew-apply-card .crew-detail-section-title {
  margin-bottom: 0;
}

.crew-apply-closed-note {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  line-height: 1.55;
}

.crew-apply-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.crew-apply-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.crew-apply-legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  padding: 0;
  margin-bottom: 0.75rem;
}

.crew-apply-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crew-apply-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-block-size: 50px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-width: 0;
}

.crew-apply-row:hover:not(.is-applied):not(.is-disabled) {
  border-color: #d4d4d4;
  background: var(--gray-bg);
}

.crew-apply-row:has(.crew-apply-checkbox:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.crew-apply-row.is-applied,
.crew-apply-row.is-disabled {
  background: var(--gray-bg);
  color: var(--gray-text);
  cursor: not-allowed;
  opacity: 0.85;
}

.crew-apply-checkbox {
  inline-size: 1.2rem;
  aspect-ratio: 1;
  margin: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}

.crew-apply-checkbox:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.crew-apply-checkbox:disabled {
  cursor: not-allowed;
}

.crew-apply-row-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crew-apply-fee {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.crew-apply-applied-badge {
  flex-shrink: 0;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  color: var(--gray-text);
  font-weight: 700;
}

.crew-apply-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.crew-apply-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.crew-apply-results:empty {
  display: none;
}

.crew-apply-feedback {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  border-left-width: 4px;
  background: var(--gray-bg);
}

.crew-apply-feedback.is-success {
  border-color: var(--green-bg);
  border-left-color: var(--green);
  background: var(--green-bg);
}

.crew-apply-feedback.is-partial {
  border-color: var(--orange-soft);
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.crew-apply-feedback.is-error {
  border-color: var(--red-bg);
  border-left-color: var(--red);
  background: var(--red-bg);
}

.crew-apply-feedback-title {
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--black);
}

.crew-apply-feedback-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.crew-apply-feedback-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.crew-apply-feedback-item.is-ok {
  color: var(--green);
}

.crew-apply-feedback-item.is-fail {
  color: var(--red);
}

.crew-apply-feedback-icon {
  font-weight: 800;
  flex-shrink: 0;
}

/* Status Lamaran Saya (ala Goers "Status Assignment Calon Crew") */
.crew-status-card {
  padding: 1.3rem 1.4rem;
}

.crew-status-list {
  display: flex;
  flex-direction: column;
}

.crew-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.65rem;
  border-bottom: 1.5px solid var(--gray-border);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}

.crew-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-border);
  min-width: 0;
}

.crew-status-row:last-child {
  padding-bottom: 0.15rem;
  border-bottom: 0;
}

.crew-status-role-col {
  min-width: 0;
  flex: 1 1 auto;
}

.crew-status-role-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crew-status-badge-col {
  flex-shrink: 0;
}

.crew-status-mobile-label {
  display: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 0.2rem;
}

@media (min-width: 768px) {
  .crew-detail-stack {
    gap: 2rem;
  }

  .crew-task-desc-card,
  .crew-apply-card,
  .crew-status-card {
    padding: 1.5rem 1.75rem;
  }

  .crew-event-meta-card {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .crew-roles-grid {
    grid-template-columns: 1fr;
  }

  .crew-apply-row {
    flex-wrap: wrap;
    padding: 0.8rem 0.85rem;
  }

  .crew-apply-fee {
    white-space: normal;
  }

  .crew-apply-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .crew-status-header {
    display: none;
  }

  .crew-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .crew-status-mobile-label {
    display: block;
  }
}
