:root {
  color-scheme: dark;

  /* Premium tokens (single source of truth) */
  --bg: #0b0f14;
  --bg2: #0e141b;
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.74);
  --muted2: rgba(255, 255, 255, 0.62);

  --gold: #e6b800;
  --gold2: #c9a961;

  /* Brand tokens (defaults = Vertex gold) */
  --brand-accent: var(--gold);
  --brand-accent-rgb: 230, 184, 0;
  --brand-btn-border: rgba(230, 184, 0, 0.30);
  --brand-btn-bg1: rgba(230,184,0,0.95);
  --brand-btn-bg2: rgba(201,169,97,0.95);
  --brand-focus: rgba(230, 184, 0, 0.55);
  --brand-focus-ring: rgba(230, 184, 0, 0.12);

  --panel: rgba(18, 26, 34, 0.60);
  --panel-strong: rgba(18, 26, 34, 0.78);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius: 18px;
  --radius-sm: 14px;

  --shadow-lg: 0 26px 90px rgba(0,0,0,0.56);
  --shadow-md: 0 18px 60px rgba(0,0,0,0.46);
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.40);

  --ease-premium: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-apple: cubic-bezier(0.2, 0.9, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
  text-rendering: geometricPrecision;
  font-size: 15px;
  line-height: 1.6;
}

.fontBody{
  /* Explicit hook for RootLayout (avoid remote font loading). */
}

a { color: inherit; }

/* Accessible focus rings (keyboard-only) */
.button:focus-visible,
.buttonSecondary:focus-visible,
.navLink:focus-visible,
.input:focus-visible,
.orgChip:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--brand-focus-ring);
  border-color: var(--brand-focus);
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.srOnly{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.skipLink{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(230, 184, 0, 0.30);
  background: rgba(10, 14, 18, 0.92);
  box-shadow: var(--shadow-sm);
  transform: translateY(-140%);
  transition: transform 180ms var(--ease-premium);
  text-decoration: none;
}
.skipLink:focus{
  transform: translateY(0);
}

body{
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Premium background layers (vignette + grid + grain) */
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(230, 184, 0, 0.06) 0%, transparent 44%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.035) 0%, transparent 46%),
    radial-gradient(circle at 18% 86%, rgba(230, 184, 0, 0.035) 0%, transparent 56%),
    radial-gradient(circle at 50% 30%, rgba(110, 190, 255, 0.035) 0%, transparent 55%),
    linear-gradient(180deg, rgba(14, 20, 27, 1) 0%, rgba(11, 15, 20, 1) 100%);
}
body:after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(0,0,0,0.65), transparent 55%),
    linear-gradient(transparent, rgba(0,0,0,0.35));
  opacity: 1;
}

.bgGrid{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, black 0%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 24%, black 0%, transparent 68%);
}

.bgGrain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.10;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  filter: blur(0.4px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 18px 72px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  background: rgba(12, 16, 22, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    -webkit-backdrop-filter 320ms var(--ease-apple),
    backdrop-filter 320ms var(--ease-apple),
    background 320ms var(--ease-apple),
    border-color 320ms var(--ease-apple),
    box-shadow 320ms var(--ease-apple);
}

.nav:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 1px;
  pointer-events:none;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-accent-rgb), 0.35), transparent);
  opacity: 0.35;
}

.nav--scrolled{
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  backdrop-filter: blur(32px) saturate(1.4);
  background: rgba(12, 16, 22, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.nav--scrolled:after{
  opacity: 0.7;
}

.navInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brandMark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(230, 184, 0, 0.22);
  background: radial-gradient(circle at 30% 30%, rgba(230, 184, 0, 0.18), rgba(18, 26, 34, 0.70));
  box-shadow: var(--shadow-sm);
}

.installerBrand{
  --installer-accent: rgba(230,184,0,0.85);
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
.installerLabel{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(255,255,255,0.62);
  font-weight: 900;
}
.installerLogo{
  height: 22px;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}
.installerLogoMono{
  /* Used for monochrome/white-on-dark treatments (e.g. Infinity) */
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}
.installerName{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.navLinks{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navLink{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  transition: transform 180ms var(--ease-premium), border-color 180ms var(--ease-premium), background 180ms var(--ease-premium);
}
.navLink:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--brand-accent-rgb), 0.28);
  background: rgba(var(--brand-accent-rgb), 0.07);
}
.navLink:active{
  transform: translateY(0px);
}
.navLinkPrimary{
  border-color: rgba(var(--brand-accent-rgb), 0.30);
  background: radial-gradient(circle at 30% 30%, rgba(var(--brand-accent-rgb), 0.14), rgba(255,255,255,0.03));
}
.navLink[aria-current="page"]{
  border-color: rgba(var(--brand-accent-rgb), 0.34);
  background: radial-gradient(circle at 30% 30%, rgba(var(--brand-accent-rgb), 0.16), rgba(255,255,255,0.05));
}

.navLinkBtn{
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.brandText {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brandTitle {
  font-weight: 900;
  letter-spacing: -0.6px;
}

.brandSub {
  font-size: 12px;
  color: var(--muted);
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  overflow: hidden;
}

/* Subtle premium glow for generic cards (non-interactive by default) */
.card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 10%, rgba(var(--brand-accent-rgb), 0.12), transparent 55%),
    radial-gradient(circle at 86% 20%, rgba(110,190,255,0.08), transparent 58%);
  opacity: 0.55;
}
.card:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.cardBody { padding: 20px; }

.h1 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -1.6px;
  margin: 18px 0 10px;
}

.p {
  color: rgba(255,255,255,0.84);
  line-height: 1.65;
  margin: 0 0 16px;
}

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

@media (min-width: 900px) {
  .row { grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
}

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

.metaPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}
.metaDot{
  width:8px;height:8px;border-radius:999px;
  background: rgba(230,184,0,0.85);
  box-shadow: 0 0 0 4px rgba(230,184,0,0.10);
}
.metaDot-checking{
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.metaDot-online{
  background: rgba(120,255,180,0.85);
  box-shadow: 0 0 0 4px rgba(120,255,180,0.12);
}
.metaDot-degraded{
  background: rgba(230,184,0,0.85);
  box-shadow: 0 0 0 4px rgba(230,184,0,0.10);
}
.metaDot-offline{
  background: rgba(255,90,120,0.86);
  box-shadow: 0 0 0 4px rgba(255,90,120,0.10);
}

.gridCards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .gridCards{ grid-template-columns: 1fr 1fr; }
}

.bookingCard{
  --enter-delay: 0ms;
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  display:block;
  text-decoration:none;
  padding:16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 20% 10%, rgba(230,184,0,0.08), transparent 45%),
    rgba(18, 26, 34, 0.62);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(0) scale(1);
  transition:
    transform 240ms var(--ease-apple),
    border-color 240ms var(--ease-apple),
    box-shadow 240ms var(--ease-apple);
  will-change: transform;
  animation: cardEnter 420ms var(--ease-apple) backwards;
  animation-delay: var(--enter-delay);
  overflow: hidden;
}
.gridCards .bookingCard:nth-child(1){ --enter-delay: 0ms; }
.gridCards .bookingCard:nth-child(2){ --enter-delay: 35ms; }
.gridCards .bookingCard:nth-child(3){ --enter-delay: 70ms; }
.gridCards .bookingCard:nth-child(4){ --enter-delay: 105ms; }
.gridCards .bookingCard:nth-child(5){ --enter-delay: 140ms; }
.gridCards .bookingCard:nth-child(6){ --enter-delay: 175ms; }
.gridCards .bookingCard:nth-child(7){ --enter-delay: 210ms; }
.gridCards .bookingCard:nth-child(8){ --enter-delay: 245ms; }
.gridCards .bookingCard:nth-child(9){ --enter-delay: 280ms; }
.gridCards .bookingCard:nth-child(10){ --enter-delay: 300ms; }
.bookingCard::before{
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(230,184,0,0),
    rgba(230,184,0,0.32),
    rgba(230,184,0,0)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 240ms var(--ease-apple);
  pointer-events: none;
}
.bookingCard::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(230,184,0,0.16) 0%,
      rgba(230,184,0,0.08) 18%,
      transparent 56%
    );
  opacity: 0;
  transition: opacity 240ms var(--ease-apple);
  pointer-events:none;
}
.bookingCard:hover{
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(230,184,0,0.28);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.48),
    0 0 0 1px rgba(230,184,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.bookingCard:hover::before{
  opacity: 1;
}
.bookingCard:hover::after{
  opacity: 1;
}
.bookingCard:active{
  transform: translateY(-2px) scale(1.002);
  transition-duration: 100ms;
}

@keyframes cardEnter{
  from{
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.bookingTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.bookingRef{
  font-weight: 950;
  letter-spacing: -0.4px;
}
.bookingName{
  margin-top: 10px;
  font-weight: 900;
  font-size: 18px;
}
.bookingSub{
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
}
.bookingMeta{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.82);
}
.chipGhost{
  border-color: rgba(230,184,0,0.20);
  color: rgba(230,184,0,0.95);
}
.chipWarn{
  border-color: rgba(255,120,120,0.22);
  background: rgba(18, 10, 10, 0.35);
  color: rgba(255,210,210,0.95);
  font-weight: 900;
}

.statusBadge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 900;
}

/* Status tints (covers all booking statuses) */
.status-requested{
  border-color: rgba(110,190,255,0.25);
  background: rgba(110,190,255,0.08);
}
.status-scheduled_pending_payment{
  border-color: rgba(230,184,0,0.26);
  background: rgba(230,184,0,0.08);
}
.status-confirmed,
.status-assigned{
  border-color: rgba(120,255,180,0.22);
  background: rgba(120,255,180,0.08);
}
.status-in_progress{
  border-color: rgba(110,190,255,0.22);
  background: rgba(110,190,255,0.06);
}
.status-survey_complete{
  border-color: rgba(255,180,90,0.22);
  background: rgba(255,180,90,0.07);
}
.status-qc_review{
  border-color: rgba(255,180,90,0.22);
  background: rgba(255,180,90,0.07);
}
.status-qc_approved{
  border-color: rgba(230,184,0,0.26);
  background: rgba(230,184,0,0.08);
}
.status-deliverables_ready{
  border-color: rgba(230,184,0,0.30);
  background: rgba(230,184,0,0.10);
}
.status-delivered{
  border-color: rgba(230,184,0,0.30);
  background: rgba(230,184,0,0.10);
}
.status-cancelled{
  border-color: rgba(255,90,120,0.26);
  background: rgba(255,90,120,0.08);
}

.notice{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
}
.noticeError{
  border-color: rgba(255,120,120,0.25);
  color: rgba(255,210,210,0.95);
}
.noticeInfo{
  border-color: rgba(230,184,0,0.22);
}
.noticeOk{
  border-color: rgba(120,255,180,0.22);
  color: rgba(220,255,235,0.95);
}
.noticeWarn{
  border-color: rgba(255,180,90,0.22);
  color: rgba(255,235,210,0.95);
}

.qcFormHint{
  color: rgba(255,210,210,0.95);
}

.skeletonCard{
  height: 128px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation:
    shimmer 1.4s ease-in-out infinite,
    skeletonEnter 380ms var(--ease-apple) backwards;
}
.gridCards .skeletonCard:nth-child(1){ animation-delay: 0ms, 0ms; }
.gridCards .skeletonCard:nth-child(2){ animation-delay: 0ms, 40ms; }
.gridCards .skeletonCard:nth-child(3){ animation-delay: 0ms, 80ms; }
@keyframes shimmer{
  0%{ background-position: 0% 0%; }
  100%{ background-position: -200% 0%; }
}
@keyframes skeletonEnter{
  from{ opacity: 0; transform: translateY(12px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.emptyState{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}
.emptyIcon{
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(230,184,0,0.25);
  background: radial-gradient(circle at 30% 30%, rgba(230,184,0,0.24), rgba(26, 37, 47, 0.72));
}

.detailGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .detailGrid{ grid-template-columns: 1fr 1fr 1fr; }
}

/* Responsive variant: auto-wrap blocks (prevents overflow in narrow columns). */
.detailGridAuto{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.detailBlock{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}
.detailValue{
  margin-top: 8px;
  font-weight: 950;
}
.pdfFrame{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.label {
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.input {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  transition: border-color 180ms var(--ease-premium), box-shadow 180ms var(--ease-premium), background 180ms var(--ease-premium);
}
.input::placeholder{
  color: rgba(255,255,255,0.44);
}
.input:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.20);
}

.input:focus {
  border-color: var(--brand-focus);
  box-shadow: 0 0 0 4px var(--brand-focus-ring);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--brand-btn-border);
  background: linear-gradient(135deg, var(--brand-btn-bg1), var(--brand-btn-bg2));
  color: #1a252f;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(0,0,0,0.45);
  transition: transform 180ms var(--ease-premium), box-shadow 180ms var(--ease-premium), filter 180ms var(--ease-premium);
  text-decoration: none;
  position: relative;
}
.button:hover{
  transform: translateY(-1px);
  filter: saturate(1.04) contrast(1.02);
  box-shadow: 0 22px 70px rgba(0,0,0,0.55);
}
.button:active{
  transform: translateY(0px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.48);
}
.button:disabled{
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button--loading{
  padding-left: 42px;
  pointer-events: none;
}
.buttonSpinner{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.92);
  border-radius: 50%;
  animation: spin 0.7s linear infinite, spinnerEnter 180ms var(--ease-apple) both;
}
@keyframes spinnerEnter{
  from{ opacity: 0; transform: translateY(-50%) scale(0.7); }
  to{ opacity: 1; transform: translateY(-50%) scale(1); }
}

.buttonSecondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.buttonSecondary:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 55px rgba(0,0,0,0.42);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 2px 6px;
  border-radius: 8px;
}

.paletteOverlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: start center;
  padding: 80px 18px 18px;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  animation: paletteFade 160ms var(--ease-apple) both;
}
@keyframes paletteFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.palette{
  width: min(760px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 16, 22, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 40px 120px rgba(0,0,0,0.70);
  overflow: hidden;
  animation: paletteEnter 200ms var(--ease-apple) both;
}
@keyframes paletteEnter{
  from{ opacity: 0; transform: translateY(12px) scale(0.985); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.paletteTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
.paletteTitle{
  font-weight: 950;
  letter-spacing: -0.3px;
}
.paletteInputRow{
  position: relative;
  padding: 0 16px 12px;
}
.paletteInput{
  width: 100%;
  padding-right: 46px;
}
.paletteSpinner{
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: rgba(230,184,0,0.85);
  animation: spin 0.8s linear infinite;
}
.paletteList{
  padding: 6px;
  max-height: min(420px, 48vh);
  overflow: auto;
}
.paletteItems{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 2px;
}
.paletteItem{
  --enter-delay: 0ms;
  width: 100%;
  text-align: left;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: transform 140ms var(--ease-premium), border-color 140ms var(--ease-premium), background 140ms var(--ease-premium);
  animation: paletteItemEnter 200ms var(--ease-apple) backwards;
  animation-delay: var(--enter-delay);
}
.paletteItems .paletteItem:nth-child(1){ --enter-delay: 0ms; }
.paletteItems .paletteItem:nth-child(2){ --enter-delay: 18ms; }
.paletteItems .paletteItem:nth-child(3){ --enter-delay: 36ms; }
.paletteItems .paletteItem:nth-child(4){ --enter-delay: 54ms; }
.paletteItems .paletteItem:nth-child(5){ --enter-delay: 72ms; }
.paletteItems .paletteItem:nth-child(6){ --enter-delay: 90ms; }
.paletteItems .paletteItem:nth-child(7){ --enter-delay: 108ms; }
.paletteItems .paletteItem:nth-child(8){ --enter-delay: 126ms; }
.paletteItems .paletteItem:nth-child(9){ --enter-delay: 144ms; }
.paletteItems .paletteItem:nth-child(10){ --enter-delay: 162ms; }
.paletteItems .paletteItem:nth-child(11){ --enter-delay: 180ms; }
.paletteItems .paletteItem:nth-child(12){ --enter-delay: 198ms; }
.paletteItem:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
.paletteItemActive{
  background: rgba(230,184,0,0.10);
  border-color: rgba(230,184,0,0.22);
}
.paletteItemTitle{
  font-weight: 950;
  letter-spacing: -0.2px;
}
.paletteItemSub{
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}
.paletteItemKind{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
}
.paletteEmpty{
  padding: 18px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
}
.paletteFooter{
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.12);
}

@keyframes paletteItemEnter{
  from{ opacity: 0; transform: translateY(8px) scale(0.99); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.skeletonPaletteItem{
  height: 56px;
  margin: 4px 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(18, 26, 34, 0.54) 0%, rgba(18, 26, 34, 0.84) 50%, rgba(18, 26, 34, 0.54) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* Utilities (keep JSX clean of inline styles) */
.mt10{ margin-top: 10px; }
.mt14{ margin-top: 14px; }
.mt16{ margin-top: 16px; }
.mb0{ margin-bottom: 0; }
.fw900{ font-weight: 900; }
.listTight{ margin: 0; padding-left: 18px; }
.actionsRow{ display:flex; gap:10px; flex-wrap:wrap; }
.actionsRowEnd{ justify-content:flex-end; }

.searchRow{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.searchRow .input{ flex: 1 1 260px; }

.searchInputWrapper{
  position: relative;
  flex: 1 1 260px;
}
.searchIcon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.54;
  pointer-events: none;
}
.inputWithIcon{
  width: 100%;
  padding-left: 42px;
  padding-right: 42px;
}
.inputClearBtn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.88);
  transition: transform 140ms var(--ease-premium), background 140ms var(--ease-premium), border-color 140ms var(--ease-premium);
  animation: clearBtnEnter 180ms var(--ease-apple) both;
}
.inputClearBtn:hover{
  transform: translateY(-50%) scale(1.04);
  background: rgba(255,255,255,0.10);
  border-color: rgba(230,184,0,0.20);
}
.inputClearBtn:active{
  transform: translateY(-50%) scale(0.98);
}
@keyframes clearBtnEnter{
  from{ opacity: 0; transform: translateY(-50%) scale(0.84); }
  to{ opacity: 1; transform: translateY(-50%) scale(1); }
}

.titleRow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.iconBtn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  border-radius: 999px;
  padding: 9px 11px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms var(--ease-premium), border-color 180ms var(--ease-premium), background 180ms var(--ease-premium);
}
.iconBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.06);
}

.spinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(26,37,47,0.28);
  border-top-color: rgba(26,37,47,0.85);
  display:inline-block;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

.actionsDisabled{
  opacity: 0.82;
}
.actionsDisabled a{
  pointer-events: none;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  animation: toastIn 180ms var(--ease-premium) both;
}

@keyframes toastIn{
  from{ opacity: 0; transform: translateX(-50%) translateY(10px); }
  to{ opacity: 1; transform: translateX(-50%) translateY(0px); }
}

/* -----------------------------
   Unlock overlay
   ----------------------------- */
.unlockOverlay{
  position: fixed;
  left: 16px;
  right: 16px;
  top: 86px; /* below sticky nav */
  z-index: 1200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: unlockOverlayIn 520ms var(--ease-apple) both;
}
.unlockOverlayOut{
  animation: unlockOverlayOut 420ms var(--ease-premium) both;
}

.unlockConfetti{
  position: fixed;
  inset: 0;
  z-index: 1190;
  pointer-events: none;
}

.unlockCard{
  position: relative;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(14,20,27,0.92) 0%, rgba(11,15,20,0.92) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 26px 90px rgba(0,0,0,0.62);
  overflow: hidden;
  transform-origin: 50% 0%;
}
.unlockCard:before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(90deg, rgba(var(--brand-accent-rgb),0.55), rgba(255,255,255,0.12), rgba(var(--brand-accent-rgb),0.35));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events:none;
}

.unlockIcon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 30% 25%, rgba(var(--brand-accent-rgb),0.22), rgba(0,0,0,0.25));
  box-shadow: 0 18px 40px rgba(0,0,0,0.50);
}

.unlockText{ min-width: 0; }
.unlockLabel{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.70);
  font-weight: 950;
}
.unlockTitle{
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
  margin-top: 2px;
}
.unlockSub{
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unlockShine{
  position:absolute;
  inset: 0;
  pointer-events:none;
  opacity: 0.95;
  background:
    radial-gradient(600px 120px at 22% 0%, rgba(var(--brand-accent-rgb),0.18), transparent 60%),
    radial-gradient(600px 140px at 78% 120%, rgba(255,255,255,0.08), transparent 60%);
}
.unlockCard:after{
  content:"";
  position:absolute;
  top:-120%;
  left:-60%;
  width: 80%;
  height: 320%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  animation: unlockSweep 1200ms var(--ease-apple) 160ms both;
  opacity: 0.75;
  pointer-events:none;
}

@keyframes unlockOverlayIn{
  0%{ opacity: 0; transform: translateY(-10px) scale(0.98); filter: blur(2px); }
  60%{ opacity: 1; transform: translateY(0px) scale(1.0); filter: blur(0px); }
  100%{ opacity: 1; transform: translateY(0px) scale(1.0); }
}
@keyframes unlockOverlayOut{
  from{ opacity: 1; transform: translateY(0px) scale(1.0); }
  to{ opacity: 0; transform: translateY(-8px) scale(0.985); }
}
@keyframes unlockSweep{
  from{ transform: translateX(-40%) rotate(18deg); }
  to{ transform: translateX(220%) rotate(18deg); }
}

/* Tier accents (subtle, premium) */
.unlockTierBronze .unlockIcon{ box-shadow: 0 18px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(205,127,50,0.28) inset; }
.unlockTierSilver .unlockIcon{ box-shadow: 0 18px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(192,192,192,0.22) inset; }
.unlockTierGold .unlockIcon{ box-shadow: 0 18px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,215,0,0.26) inset; }
.unlockTierPlatinum .unlockIcon{ box-shadow: 0 18px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(229,228,226,0.22) inset; }
.unlockTierDiamond .unlockIcon{ box-shadow: 0 18px 40px rgba(0,0,0,0.50), 0 0 0 1px rgba(185,242,255,0.22) inset; }

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

.ring{
  position: relative;
  width: 46px;
  height: 46px;
  display:grid;
  place-items:center;
}
.ringSvg{
  position:absolute;
  inset:0;
  transform: rotate(-90deg);
}
.ringTrack{
  fill: none;
  stroke: rgba(255,255,255,0.10);
}
.ringArc{
  fill: none;
  stroke: rgba(230,184,0,0.88);
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--ease-premium);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
.ringText{
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,0.88);
}

.skeletonLine{
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.formNarrow{ max-width: 520px; }

.kpiGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .kpiGrid{ grid-template-columns: 1fr 1fr; }
}
.kpiCard{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 18% 12%, rgba(230,184,0,0.06), transparent 48%),
    rgba(0,0,0,0.14);
}
.kpiValue{
  margin-top: 10px;
  font-weight: 950;
  font-size: 28px;
  letter-spacing: -0.6px;
}

.welcomePanel{
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 20% 0%, rgba(110,190,255,0.06), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(230,184,0,0.08), transparent 50%),
    rgba(0,0,0,0.14);
}
.welcomeTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.welcomeTitle{
  margin-top: 8px;
  font-weight: 950;
  letter-spacing: -0.6px;
  font-size: 18px;
}

.quickGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .quickGrid{ grid-template-columns: 1fr 1fr 1fr; }
}
.quickCard{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.03);
  transition: transform 180ms var(--ease-premium), border-color 180ms var(--ease-premium), background 180ms var(--ease-premium);
}
.quickCard:hover{
  transform: translateY(-2px);
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.06);
}
.quickIcon{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(230,184,0,0.20);
  background: radial-gradient(circle at 30% 30%, rgba(230,184,0,0.18), rgba(18, 26, 34, 0.70));
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.quickIcon2{
  border-color: rgba(110,190,255,0.22);
  background: radial-gradient(circle at 30% 30%, rgba(110,190,255,0.16), rgba(18, 26, 34, 0.70));
}
.quickIcon3{
  border-color: rgba(120,255,180,0.18);
  background: radial-gradient(circle at 30% 30%, rgba(120,255,180,0.14), rgba(18, 26, 34, 0.70));
}
.quickTitle{
  font-weight: 950;
  letter-spacing: -0.3px;
}
.quickSub{
  margin-top: 4px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.5;
}

.stepStrip{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .stepStrip{ grid-template-columns: 1fr 1fr 1fr; }
}
.stepItem{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}
.stepNum{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  color: rgba(10,14,18,0.95);
  background: linear-gradient(135deg, rgba(230,184,0,0.92), rgba(201,169,97,0.92));
  border: 1px solid rgba(230,184,0,0.26);
  flex: 0 0 auto;
}
.stepText{ min-width: 0; }

.toggleGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .toggleGrid{ grid-template-columns: repeat(5, 1fr); }
}
.togglePill{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.2px;
  transition: transform 180ms var(--ease-premium), border-color 180ms var(--ease-premium), background 180ms var(--ease-premium);
  -webkit-user-select: none;
  user-select: none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.togglePill:hover{
  transform: translateY(-1px);
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.06);
}
.togglePillOn{
  border-color: rgba(230,184,0,0.30);
  background: radial-gradient(circle at 30% 30%, rgba(230,184,0,0.12), rgba(255,255,255,0.03));
}

.toggleCheck{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.checkRow{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.check{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  font-weight: 800;
  color: rgba(255,255,255,0.86);
}
.check input{
  width: 16px;
  height: 16px;
}
.checkDisabled{
  opacity: 0.55;
}

.colSpanAll{ grid-column: 1 / -1; }

.pdfIframePreview{
  width: 100%;
  height: 520px;
  border: 0;
}
.pdfIframeFull{
  width: 100%;
  height: 78vh;
  border: 0;
}

/* Focus: match "premium" accessibility */
:focus{ outline: none; }
:focus-visible{
  outline: 2px solid rgba(230,184,0,0.78);
  outline-offset: 3px;
  box-shadow:
    0 0 0 6px rgba(230,184,0,0.14),
    0 18px 60px rgba(0,0,0,0.40);
}

::selection{
  background: rgba(230,184,0,0.25);
}

/* Subtle scrollbars (premium but usable) */
::-webkit-scrollbar{ width: 8px; height: 8px; }
::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.26); }

/* Tables / admin views */
.tableWrap{ overflow-x: auto; }
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.tableHeadRow{
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.tableHeadCell{ padding: 0 10px; }
.tableRow{
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.10);
}
.tableCell{ padding: 12px 10px; }
.tableCellStrong{ font-weight: 950; }
.tableCellRight{ text-align: right; }
.tableCellBold{ font-weight: 900; }

.w60{ width: 60%; }
.w75{ width: 75%; }
.w90{ width: 90%; }

/* Form helpers */
.textAreaTall{
  min-height: 110px;
  resize: vertical;
}
.scoreButtons{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Training tooltips */
.ttWrap{ position: relative; display: inline-flex; margin-left: 8px; }
.ttBtn{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-weight: 950;
  cursor: pointer;
  transition: transform 140ms var(--ease-premium), border-color 140ms var(--ease-premium), background 140ms var(--ease-premium);
}
.ttBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.06);
}
.ttCard{
  position: absolute;
  z-index: 50;
  left: 0;
  top: 28px;
  width: min(360px, 70vw);
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-md);
  animation: toastIn 180ms var(--ease-apple) both;
}
.ttTitle{
  display:block;
  font-weight: 950;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.92);
}
.ttBody{
  display:block;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  line-height: 1.5;
}

/* Stage timeline (installer-visible workflow) */
.stageTimeline{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  overflow-x: auto;
}
.stageStep{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  flex: 0 0 auto;
  appearance: none;
  cursor: pointer;
  text-align: left;
}
.stageStep:hover{
  transform: translateY(-1px);
  border-color: rgba(230,184,0,0.20);
  background: rgba(230,184,0,0.05);
}
.stageStep:active{
  transform: translateY(0);
}
.stageStep-open{
  border-color: rgba(230,184,0,0.30);
  box-shadow:
    0 16px 50px rgba(0,0,0,0.40),
    0 0 0 1px rgba(230,184,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.stageDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.stageLabel{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.1px;
  color: rgba(255,255,255,0.86);
}
.stageLine{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.10);
  margin-left: 4px;
}
.stageStep-done{
  border-color: rgba(120,255,180,0.16);
  background: rgba(120,255,180,0.06);
}
.stageStep-done .stageDot{
  border-color: rgba(120,255,180,0.25);
  background: rgba(120,255,180,0.55);
  box-shadow: 0 0 0 5px rgba(120,255,180,0.10);
}
.stageStep-current{
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.08);
}
.stageStep-current .stageDot{
  border-color: rgba(230,184,0,0.35);
  background: rgba(230,184,0,0.85);
  box-shadow: 0 0 0 7px rgba(230,184,0,0.12);
  animation: stagePulse 900ms var(--ease-apple) 1;
}
.stageStep-todo{
  opacity: 0.74;
}
@keyframes stagePulse{
  0%{ transform: scale(0.78); opacity: 0.65; }
  60%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

.stagePopOverlay{
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0,0,0,0.30);
}
.stagePop{
  position: fixed;
  top: var(--pop-top, 12px);
  left: var(--pop-left, 12px);
  width: var(--pop-width, min(420px, calc(100vw - 24px)));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 16, 22, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  padding: 14px 14px;
  animation: toastIn 180ms var(--ease-apple) both;
}
.stagePopTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.stagePopTitle{
  font-weight: 950;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,0.92);
}
.stagePopMeta{
  margin-top: 4px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}
.stagePopClose{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  transition: transform 140ms var(--ease-premium), border-color 140ms var(--ease-premium), background 140ms var(--ease-premium);
}
.stagePopClose:hover{
  transform: translateY(-1px);
  border-color: rgba(230,184,0,0.22);
  background: rgba(230,184,0,0.06);
}
.stagePopBody{
  margin-top: 10px;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  line-height: 1.55;
}
.stagePopNext{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  line-height: 1.55;
}
.stagePopNextLabel{
  font-weight: 950;
  color: rgba(255,255,255,0.90);
}
.stagePopWhatsNext{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
}
.stagePopWhatsNextTitle{
  font-weight: 950;
  color: rgba(230,184,0,0.95);
}
.stagePopWhatsNextBody{
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
}
.stagePopWarn{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,120,120,0.22);
  background: rgba(18, 10, 10, 0.50);
  color: rgba(255,220,220,0.92);
  font-size: 12px;
  font-weight: 900;
}

/* Bulk Actions (Apple/Tesla-grade UX) */
.bookingCardSelectable{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.bookingCardSelectable:hover{
  transform: translateY(-2px) scale(1.002);
}
.bookingCardSelected{
  border-color: rgba(230,184,0,0.42) !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(230,184,0,0.16), transparent 45%),
    rgba(18, 26, 34, 0.78) !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.50),
    0 0 0 2px rgba(230,184,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.bookingCheckbox{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  animation: checkboxEnter 220ms var(--ease-apple) both;
}
@keyframes checkboxEnter{
  from{ opacity: 0; transform: scale(0.7) rotate(-12deg); }
  to{ opacity: 1; transform: scale(1) rotate(0deg); }
}

.bulkCheckbox{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.28);
  cursor: pointer;
  position: relative;
  transition: all 180ms var(--ease-premium);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}
.bulkCheckbox:hover{
  border-color: rgba(230,184,0,0.45);
  background: rgba(230,184,0,0.08);
}
.bulkCheckbox:checked{
  border-color: rgba(230,184,0,0.70);
  background: linear-gradient(135deg, rgba(230,184,0,0.95), rgba(201,169,97,0.95));
  box-shadow: 0 4px 12px rgba(230,184,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.bulkCheckbox:checked::after{
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid rgba(10,14,18,0.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmark 200ms var(--ease-apple) both;
}
@keyframes checkmark{
  0%{ transform: rotate(45deg) scale(0); opacity: 0; }
  50%{ transform: rotate(45deg) scale(1.1); opacity: 1; }
  100%{ transform: rotate(45deg) scale(1); opacity: 1; }
}

/* Floating Action Bar (Tesla-inspired) */
.bulkActionBar{
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 100;
  width: min(680px, calc(100vw - 36px));
  padding-bottom: env(safe-area-inset-bottom, 18px);
  animation: barSlideUp 320ms var(--ease-apple) both;
}
@keyframes barSlideUp{
  from{ opacity: 0; transform: translateX(-50%) translateY(100%); }
  to{ opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bulkActionBarInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(230,184,0,0.28);
  border-bottom: none;
  background: rgba(10, 14, 18, 0.92);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 -8px 32px rgba(0,0,0,0.50),
    0 -2px 8px rgba(230,184,0,0.12),
    inset 0 1px 0 rgba(230,184,0,0.18);
  flex-wrap: wrap;
}

.bulkActionCount{
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulkActionBadge{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(230,184,0,0.35);
  background: linear-gradient(135deg, rgba(230,184,0,0.95), rgba(201,169,97,0.95));
  color: rgba(10,14,18,0.95);
  font-weight: 950;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(230,184,0,0.28);
  animation: badgePulse 400ms var(--ease-apple) both;
}
@keyframes badgePulse{
  0%{ transform: scale(0.7); opacity: 0; }
  50%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

.bulkActionText{
  font-weight: 900;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.94);
}

.bulkActionButtons{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulkActionBtn{
  padding: 11px 14px;
  font-size: 14px;
  white-space: nowrap;
  transition: all 200ms var(--ease-premium);
}
.bulkActionBtn svg{
  flex-shrink: 0;
}
.bulkActionBtn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.bulkActionError{
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,120,120,0.28);
  background: rgba(18, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 32px rgba(0,0,0,0.50);
  color: rgba(255,210,210,0.95);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: errorShake 400ms var(--ease-apple) both;
  white-space: nowrap;
  max-width: calc(100vw - 72px);
}

.confirmOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}
.confirmModal{
  width: min(560px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 10, 12, 0.78);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}
.confirmTop{
  padding: 14px 14px 0 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.confirmTitle{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.confirmSub{
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
}
.confirmClose{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}
.confirmClose:hover{
  border-color: rgba(230,184,0,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.confirmBody{
  padding: 14px;
}
.confirmKpis{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirmKpi{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
  padding: 12px 12px;
}

.bulkProgressPill{
  position: fixed;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230,184,0,0.18);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.86);
  z-index: 1001;
}

.stuckChipBtn{
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.stuckTipOverlay{
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1002;
}
.stuckTip{
  position: fixed;
  left: var(--stuck-tip-left, 12px);
  top: var(--stuck-tip-top, 12px);
  transform: translateY(-100%);
  width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 10, 12, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 46px rgba(0,0,0,0.52);
}
.stuckTipTitle{
  font-weight: 950;
  letter-spacing: -0.2px;
}
.stuckTipLine{
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.45;
}
.stuckTipKey{
  color: rgba(230,184,0,0.95);
  font-weight: 900;
  margin-right: 6px;
}

.togglePillCount{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 900;
}

.paletteHint{
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(320px, calc(100vw - 32px));
  border-radius: 16px;
  border: 1px solid rgba(230,184,0,0.18);
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 22px 70px rgba(0,0,0,0.55);
  padding: 12px 12px;
  z-index: 1003;
  animation: barSlideUp 220ms var(--ease-apple) both;
}
.paletteHintTitle{
  font-weight: 950;
  letter-spacing: -0.2px;
}
.paletteHintBody{
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
  padding-right: 36px;
}
.paletteHintClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}
.paletteHintClose:hover{
  border-color: rgba(230,184,0,0.22);
}

.preWrap{
  white-space: pre-wrap;
}

.installerBrandLogo{
  height: 38px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.08);
}

.installerBrandLogo--infinity{
  /* Match PDF styling: clean white mark on dark UI */
  filter: invert(1) brightness(1.18) contrast(1.08);
}

:root[data-brand="infinity"]{
  --brand-accent: #2f6bff;
  --brand-accent-rgb: 47, 107, 255;
  --brand-btn-border: rgba(47, 107, 255, 0.30);
  --brand-btn-bg1: rgba(47, 107, 255, 0.92);
  --brand-btn-bg2: rgba(120, 165, 255, 0.90);
  --brand-focus: rgba(47, 107, 255, 0.60);
  --brand-focus-ring: rgba(47, 107, 255, 0.14);
}
:root[data-brand="vertex"]{
  --brand-accent: var(--gold);
  --brand-accent-rgb: 230, 184, 0;
  --brand-btn-border: rgba(230, 184, 0, 0.30);
  --brand-btn-bg1: rgba(230,184,0,0.95);
  --brand-btn-bg2: rgba(201,169,97,0.95);
  --brand-focus: rgba(230, 184, 0, 0.55);
  --brand-focus-ring: rgba(230, 184, 0, 0.12);
}

.brandAccent{
  color: var(--brand-accent, var(--gold));
}

.poweredByVertex{
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 1200;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  padding: 6px 10px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.orgChip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 200ms var(--ease-premium);
}
.orgChip:hover{
  border-color: rgba(230,184,0,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.orgOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1004;
}
.orgModal{
  width: min(640px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 10, 12, 0.78);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}
.orgTop{
  padding: 14px 14px 0 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.orgTitle{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.orgSub{
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
}
.orgClose{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}
.orgClose:hover{
  border-color: rgba(230,184,0,0.22);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.orgBody{
  padding: 14px;
}
.orgList{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 8px;
  max-height: 360px;
  overflow: auto;
}
.orgItem{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  margin-top: 8px;
}
.orgItem:first-child{
  margin-top: 0;
}
.orgItemActive{
  border-color: rgba(230,184,0,0.22);
  box-shadow: 0 12px 38px rgba(0,0,0,0.35);
}
.orgName{
  font-weight: 900;
}
.orgTick{
  color: rgba(230,184,0,0.95);
  font-weight: 950;
}
@keyframes errorShake{
  0%, 100%{ transform: translateX(-50%) translateX(0); }
  25%{ transform: translateX(-50%) translateX(-6px); }
  75%{ transform: translateX(-50%) translateX(6px); }
}

/* Responsive adjustments */
@media (max-width: 600px){
  .bulkActionBarInner{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .bulkActionButtons{
    width: 100%;
    justify-content: stretch;
  }
  .bulkActionBtn{
    flex: 1;
    min-width: 0;
  }
  .bulkActionCount{
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce){
  *, *:before, *:after{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   GAMIFICATION & VISUAL ENHANCEMENTS
   ============================================ */

/* Achievement Unlock Modal */
.achievementModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 100px rgba(168, 85, 247, 0.3);
  max-width: 500px;
  text-align: center;
}

.achievementOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

/* Alias for the component’s classnames */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.modalClose{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 0;
}

.achievementUnlockedLabel{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.achievementContent{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.achievementName{
  margin: 0 0 12px;
}

.achievementIcon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 64px;
  position: relative;
}

.achievementIconGlow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.achievementTitle {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.achievementDescription {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}

.achievementReward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #22C55E;
  margin-bottom: 24px;
}

.achievementCloseButton {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.achievementCloseButton:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* XP Progress Bar */
.xpProgressContainer {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.xpProgressHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.xpProgressLevel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #6EBEFF;
}

.xpProgressStats {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.xpProgressBarTrack {
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xpProgressBarFill {
  height: 100%;
  background: linear-gradient(90deg, #6EBEFF 0%, #A855F7 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(110, 190, 255, 0.5);
}

.xpProgressBarFill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

.xpProgressText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Level Badge */
.levelBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.levelBadgeSmall {
  padding: 4px 12px;
  font-size: 12px;
}

.levelBadgeMedium {
  padding: 8px 16px;
  font-size: 14px;
}

.levelBadgeLarge {
  padding: 12px 24px;
  font-size: 16px;
}

.levelBadgeGlow {
  position: absolute;
  inset: -10px;
  filter: blur(20px);
  opacity: 0.4;
  animation: pulse 3s ease-in-out infinite;
}

/* Dashboard Charts */
.dashboardChartsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.chartCard {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chartCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.chartTitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.chartContainer {
  width: 100%;
  height: 300px;
}

.statCardsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.statCard {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.statCardLabel {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.statCardValue {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.statCardChange {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.statCardChangePositive {
  color: #22C55E;
}

.statCardChangeNegative {
  color: #EF4444;
}

/* Achievement Progress Card */
.achievementCard {
  background: rgba(17, 24, 39, 0.6);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.achievementCard:hover {
  transform: translateY(-4px);
}

.achievementCardLocked {
  opacity: 0.6;
  cursor: not-allowed;
}

.achievementCardIcon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.achievementCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.achievementCardName {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.achievementCardTier {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievementCardDescription {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.achievementCardProgress {
  margin-bottom: 12px;
}

.achievementCardProgressTrack {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.achievementCardProgressFill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.achievementCardProgressText {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.achievementCardFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.achievementCardXP {
  font-size: 14px;
  font-weight: 600;
}

.achievementCardPercent {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.achievementCardLock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
}

/* XP Transaction Feed */
.xpFeedContainer {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.xpFeedHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xpFeedHeaderIcon {
  color: #FBB024;
}

.xpFeedTitle {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.xpFeedList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xpFeedItem {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.xpFeedItem:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.xpFeedItemIcon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.xpFeedItemContent {
  flex: 1;
  min-width: 0;
}

.xpFeedItemReason {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.xpFeedItemTime {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.xpFeedItemAmount {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.xpFeedEmpty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.4);
}

.xpFeedEmpty p {
  margin: 16px 0 8px;
  font-size: 16px;
}

.xpFeedEmptyHint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}

/* Badge Showcase */
.badgeShowcase {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.badgeShowcaseHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badgeShowcaseIcon {
  color: #FBB024;
}

.badgeShowcaseTitle {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.badgeShowcaseCount {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 8px;
}

.badgeEquippedSection {
  margin-bottom: 32px;
}

.badgeEquippedTitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.badgeEquippedSlots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.badgeSlot {
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.badgeSlotEmpty {
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.badgeSlotFilled {
  border: 2px solid;
}

.badgeSlot:hover {
  transform: scale(1.05);
}

.badgeSlotIcon {
  font-size: 48px;
  position: relative;
  z-index: 1;
}

.badgeSlotGlow {
  position: absolute;
  inset: -10px;
  border-radius: 16px;
  filter: blur(20px);
  opacity: 0.5;
}

.badgeSlotTooltip {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.2s;
  backdrop-filter: blur(10px);
}

.badgeSlot:hover .badgeSlotTooltip {
  transform: translateX(-50%) scale(1);
}

.badgeSlotTooltipName {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.badgeSlotTooltipTier {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.badgeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.badgeCard {
  background: rgba(17, 24, 39, 0.6);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.badgeCard:hover {
  transform: translateY(-4px);
}

.badgeCardEquipped {
  border-width: 2px;
}

.badgeCardIcon {
  font-size: 48px;
  margin-bottom: 12px;
}

.badgeCardContent {
  position: relative;
  z-index: 1;
}

.badgeCardName {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.badgeCardDescription {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.4;
}

.badgeCardFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badgeCardTier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badgeCardEquippedLabel {
  font-size: 12px;
  color: #22C55E;
  font-weight: 500;
}

.badgeCardGlow {
  position: absolute;
  inset: -20px;
  border-radius: 12px;
  filter: blur(30px);
  opacity: 0.3;
  pointer-events: none;
}

.badgeGridEmpty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: rgba(255, 255, 255, 0.4);
}

.badgeGridEmpty p {
  margin: 16px 0 8px;
  font-size: 18px;
}

.badgeGridEmptyHint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}

/* Status Badge */
.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.statusBadgeSmall {
  padding: 4px 8px;
  font-size: 12px;
  gap: 4px;
}

.statusBadgeMedium {
  padding: 6px 12px;
  font-size: 14px;
  gap: 6px;
}

.statusBadgeLarge {
  padding: 8px 16px;
  font-size: 16px;
  gap: 8px;
}

.statusBadgeGlow {
  position: absolute;
  inset: -5px;
  border-radius: 8px;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.statusBadgeIconSpin {
  animation: spin 2s linear infinite;
}

/* Empty State */
.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  position: relative;
}

.emptyStateIcon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.emptyStateTitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.emptyStateDescription {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  max-width: 400px;
}

.emptyStateAction {
  margin-top: 8px;
}

.emptyStateDecoration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.emptyStateDecorationCircle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 190, 255, 0.1) 0%, transparent 70%);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboardChartsGrid {
    grid-template-columns: 1fr;
  }
  
  .statCardsGrid {
    grid-template-columns: 1fr;
  }
  
  .badgeGrid {
    grid-template-columns: 1fr;
  }
  
  .badgeEquippedSlots {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .achievementModal {
    max-width: 90%;
    padding: 32px 24px;
  }
}

/* ============================================
   GLASSMORPHISM ENHANCEMENTS
   ============================================ */

/* Enhanced glassmorphism for popovers and modals */
.stagePop {
  background: rgba(17, 24, 39, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.stuckTip {
  background: rgba(17, 24, 39, 0.9) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.35),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Glass cards - applies to all card-like components */
.chartCard,
.statCard,
.achievementCard,
.badgeCard,
.xpFeedContainer,
.badgeShowcase,
.xpProgressContainer {
  background: rgba(17, 24, 39, 0.7) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Glass overlay effect for modal backgrounds */
.stagePopOverlay,
.stuckTipOverlay,
.achievementOverlay {
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

/* Frosted glass effect for buttons and interactive elements */
.emptyStateAction,
.achievementCloseButton {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.emptyStateAction:hover,
.achievementCloseButton:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.25),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

/* Glass badge slots */
.badgeSlot {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badgeSlotFilled {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Enhanced tooltip glass effect */
.badgeSlotTooltip {
  background: rgba(17, 24, 39, 0.92) !important;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Stage timeline glass enhancements */
.stageStep {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stageStep:hover {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.stageStep-current {
  background: rgba(110, 190, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Premium shimmer effect on glass surfaces */
@keyframes glassShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.chartCard:hover::before,
.achievementCard:hover::before,
.badgeCard:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glassShimmer 3s ease-in-out;
  pointer-events: none;
  border-radius: inherit;
}

/* Ensure cards maintain glass effect on hover */
.chartCard:hover,
.achievementCard:hover,
.badgeCard:hover {
  background: rgba(17, 24, 39, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* XP Feed items glass effect */
.xpFeedItem {
  background: rgba(17, 24, 39, 0.4) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.xpFeedItem:hover {
  background: rgba(17, 24, 39, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Empty state glass background */
.emptyState {
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

/* Progress ring glass background */
.ring {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Status badge glass effect */
.statusBadge {
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

/* Level badge glass effect */
.levelBadge {
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.25),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Safari-specific fixes for glassmorphism */
@supports (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px)) {
  .stagePop,
  .stuckTip,
  .chartCard,
  .statCard,
  .achievementCard,
  .badgeCard,
  .achievementModal {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   DRAG & DROP CALENDAR
   ============================================ */

.dragDropCalendarContainer {
  display: flex;
  gap: 24px;
  min-height: 600px;
  position: relative;
}

/* Unscheduled Sidebar */
.unscheduledSidebar {
  width: 280px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.unscheduledHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unscheduledHeader h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.unscheduledList {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.unscheduledList::-webkit-scrollbar {
  width: 6px;
}

.unscheduledList::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.unscheduledList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.unscheduledList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.unscheduledBooking {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(110, 190, 255, 0.3);
  border-radius: 12px;
  padding: 12px;
  cursor: grab;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.unscheduledBooking:hover {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(110, 190, 255, 0.5);
  box-shadow: 0 4px 16px rgba(110, 190, 255, 0.2);
}

.unscheduledBooking.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.unscheduledBookingHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.unscheduledBookingRef {
  font-size: 12px;
  font-weight: 600;
  color: #6EBEFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unscheduledBookingDuration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.unscheduledBookingCustomer {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unscheduledBookingLocation {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.unscheduledHint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Calendar Wrapper */
.calendarWrapper {
  flex: 1;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* React Big Calendar Overrides */
.rbc-calendar {
  font-family: inherit;
  color: rgba(255, 255, 255, 0.9);
}

.rbc-header {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.rbc-today {
  background-color: rgba(110, 190, 255, 0.08);
}

.rbc-off-range-bg {
  background-color: rgba(0, 0, 0, 0.15);
}

.rbc-time-view {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.rbc-time-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.rbc-time-content {
  border-top: none;
}

.rbc-timeslot-group {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.rbc-time-slot {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rbc-current-time-indicator {
  background-color: #EF4444;
  height: 2px;
}

.rbc-day-slot .rbc-time-slot {
  border-top-color: rgba(255, 255, 255, 0.04);
}

.rbc-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  padding: 0 8px;
}

.rbc-toolbar {
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rbc-toolbar button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.rbc-toolbar button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.rbc-toolbar button:active,
.rbc-toolbar button.rbc-active {
  background: rgba(110, 190, 255, 0.2);
  border-color: #6EBEFF;
  color: #6EBEFF;
}

.rbc-btn-group {
  display: flex;
  gap: 8px;
}

.rbc-toolbar-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Calendar Event Styling */
.calendarEvent {
  padding: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.calendarEventTitle {
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendarEventSurveyor {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  opacity: 0.8;
}

.rbc-event {
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
}

.rbc-event:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.rbc-event-label {
  font-size: 11px;
  opacity: 0.8;
}

.rbc-event-content {
  font-size: 12px;
}

/* Event Detail Modal */
.calendarEventModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.calendarEventModalContent {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.calendarEventModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendarEventModalHeader h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.calendarEventModalClose {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.calendarEventModalClose:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.calendarEventModalBody {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendarEventModalRow {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendarEventModalLabel {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendarEventModalRow span:last-child {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  max-width: 60%;
}

.calendarEventModalStatus {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(110, 190, 255, 0.2);
  border: 1px solid rgba(110, 190, 255, 0.4);
  border-radius: 6px;
  color: #6EBEFF;
  font-size: 12px !important;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .dragDropCalendarContainer {
    flex-direction: column;
  }

  .unscheduledSidebar {
    width: 100%;
    max-height: 300px;
  }

  .calendarWrapper {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .rbc-toolbar {
    flex-direction: column;
    gap: 12px;
  }

  .rbc-toolbar-label {
    order: -1;
  }

  .calendarEventModalContent {
    padding: 20px;
  }
}
