/* Event Staff v3 — premium workforce mobile UI */

:root {
  --es-primary: #0F172A;
  --es-secondary: #1E293B;
  --es-surface: rgba(30, 41, 59, 0.72);
  --es-glass: rgba(15, 23, 42, 0.55);
  --es-glass-border: rgba(255, 255, 255, 0.08);
  --es-accent: #F59E0B;
  --es-accent-soft: rgba(245, 158, 11, 0.18);
  --es-success: #10B981;
  --es-danger: #EF4444;
  --es-text: #F8FAFC;
  --es-text-muted: #94A3B8;
  --es-radius: 16px;
  --es-radius-sm: 12px;
  --es-radius-lg: 20px;
  --es-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --es-nav-h: 72px;
  --es-safe-b: env(safe-area-inset-bottom, 0px);
  --es-font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.es-v3 {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--es-font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--es-text);
  background: var(--es-primary);
  -webkit-font-smoothing: antialiased;
}

.es-v3__ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(16, 185, 129, 0.06), transparent),
    linear-gradient(180deg, #0F172A 0%, #0c1222 100%);
}

.es-v3__main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--es-nav-h) + var(--es-safe-b) + 1.5rem);
  min-height: 100dvh;
}

.es-v3--guest .es-v3__main {
  padding-bottom: calc(var(--es-safe-b) + 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Offline + PWA banner */
.es-v3__offline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.es-v3__pwa-banner {
  position: fixed;
  bottom: calc(var(--es-nav-h) + var(--es-safe-b) + 0.75rem);
  left: 1rem;
  right: 1rem;
  max-width: 448px;
  margin: 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--es-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
  animation: esSlideUp 0.4s ease;
}

.es-v3--guest .es-v3__pwa-banner {
  bottom: calc(var(--es-safe-b) + 1rem);
}

.es-v3__pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.8125rem;
  color: var(--es-text-muted);
}

.es-v3__pwa-banner-text strong {
  color: var(--es-text);
  font-size: 0.875rem;
}

.es-v3__pwa-banner-btn {
  min-height: 40px;
  padding: 0 1rem;
  border: none;
  border-radius: 999px;
  background: var(--es-accent);
  color: var(--es-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
}

.es-v3__pwa-banner-dismiss {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--es-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Alerts */
.es-v3__alert {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--es-radius-sm);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.875rem;
}

/* Glass card base */
.es-v3__glass {
  background: var(--es-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
}

/* ========== LOGIN ========== */
.es-v3-login {
  width: 100%;
  animation: esFadeIn 0.5s ease;
}

.es-v3-login__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.es-v3-login__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.es-v3-login__logo-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--es-secondary);
  border-radius: 10px;
  border: 1px solid var(--es-glass-border);
  overflow: hidden;
}

.es-v3-login__logo-wrap img { max-width: 100%; max-height: 100%; }

.es-v3-login__brand-text h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.es-v3-login__brand-text p {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--es-text-muted);
  font-weight: 500;
}

.es-v3-login__hero {
  margin-bottom: 1.5rem;
}

.es-v3-login__hero h2 {
  margin: 0 0 0.375rem;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.es-v3-login__hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--es-text-muted);
  max-width: 28ch;
  line-height: 1.5;
}

.es-v3-login__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--es-radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.875rem;
}

.es-v3-login__alert--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.es-v3-login__cta {
  margin-bottom: 0.875rem;
}

.es-v3__google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 52px;
  padding: 0 1.25rem;
  border: none;
  border-radius: var(--es-radius-sm);
  background: #fff;
  color: #1f2937;
  font-family: var(--es-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.es-v3__google-btn:active {
  transform: scale(0.98);
}

.es-v3-login__secondary {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 1.75rem;
  padding: 0 1rem;
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  background: var(--es-glass);
  color: var(--es-text);
  font-family: var(--es-font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 48px;
  backdrop-filter: blur(12px);
  transition: border-color 0.15s ease;
}

.es-v3-login__secondary:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.es-v3-login__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.es-v3-login__feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 88px;
  padding: 1rem;
  background: var(--es-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  text-decoration: none;
  color: var(--es-text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.es-v3-login__feature svg {
  width: 22px;
  height: 22px;
  stroke: var(--es-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-v3-login__feature span {
  font-size: 0.8125rem;
  font-weight: 600;
}

.es-v3-login__feature:active {
  transform: scale(0.97);
}

.es-v3-login__footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--es-text-muted);
  line-height: 1.6;
}

.es-v3-login__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--es-success);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.es-v3-login__secure svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ========== TOP BAR ========== */
.es-v3__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.es-v3__profile-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.es-v3__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--es-accent), #d97706);
  color: var(--es-primary);
  font-size: 0.875rem;
  font-weight: 800;
}

.es-v3__avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.125rem;
}

.es-v3__profile-text { min-width: 0; }

.es-v3__profile-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-v3__profile-employer {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--es-text-muted);
}

.es-v3__icon-btn {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  color: var(--es-text);
  text-decoration: none;
}

.es-v3__icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-v3__icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--es-danger);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Stats grid */
.es-v3__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.es-v3__stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 0.375rem;
  background: var(--es-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  text-align: center;
}

.es-v3__stat-val {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--es-accent);
}

.es-v3__stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--es-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Sections */
.es-v3__section { margin-bottom: 1.5rem; }

.es-v3__section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--es-text-muted);
}

/* Today card */
.es-v3__today-card {
  padding: 1.25rem;
  background: var(--es-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
}

.es-v3__today-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.es-v3__today-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.es-v3__today-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--es-text-muted);
}

.es-v3__today-location svg {
  width: 18px;
  height: 18px;
  stroke: var(--es-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.es-v3__today-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--es-radius-sm);
}

.es-v3__today-time-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--es-text-muted);
  margin-bottom: 0.25rem;
}

.es-v3__today-time-val {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.es-v3__today-divider {
  width: 1px;
  height: 40px;
  background: var(--es-glass-border);
}

/* Badges */
.es-v3__badge {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.es-v3__badge--success { background: rgba(16, 185, 129, 0.2); color: var(--es-success); }
.es-v3__badge--accent  { background: var(--es-accent-soft); color: var(--es-accent); }
.es-v3__badge--info    { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.es-v3__badge--warn    { background: rgba(245, 158, 11, 0.2); color: var(--es-accent); }
.es-v3__badge--danger  { background: rgba(239, 68, 68, 0.2); color: var(--es-danger); }
.es-v3__badge--muted   { background: rgba(148, 163, 184, 0.15); color: var(--es-text-muted); }
.es-v3__badge--valid   { background: rgba(16, 185, 129, 0.2); color: var(--es-success); }

/* Quick actions */
.es-v3__actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.es-v3__action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 96px;
  padding: 1rem;
  background: var(--es-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  color: var(--es-text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.es-v3__action-card svg {
  width: 26px;
  height: 26px;
  stroke: var(--es-text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-v3__action-card--accent {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), var(--es-surface));
}

.es-v3__action-card--accent svg { stroke: var(--es-accent); }

.es-v3__action-card:active { transform: scale(0.97); }

/* Empty card */
.es-v3__empty-card {
  padding: 1.25rem;
  text-align: center;
  background: var(--es-surface);
  border: 1px dashed var(--es-glass-border);
  border-radius: var(--es-radius);
  color: var(--es-text-muted);
  font-size: 0.875rem;
}

.es-v3__empty-card span { display: block; margin-top: 0.25rem; font-size: 0.8125rem; }

.es-v3__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--es-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Install row */
.es-v3__install-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  background: var(--es-surface);
  color: var(--es-text);
  font-family: var(--es-font);
  cursor: pointer;
  text-align: left;
}

.es-v3__install-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--es-accent);
  fill: none;
  stroke-width: 2;
}

.es-v3__install-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.es-v3__install-copy strong { font-size: 0.875rem; }
.es-v3__install-copy span { font-size: 0.75rem; color: var(--es-text-muted); }

.es-v3__install-cta {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--es-accent-soft);
  color: var(--es-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Page headers */
.es-v3__page-header { margin-bottom: 1.25rem; }

.es-v3__page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.es-v3__page-sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--es-text-muted);
}

.es-v3__profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search + tabs */
.es-v3__search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.es-v3__search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--es-text-muted);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.es-v3__search-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  background: var(--es-surface);
  color: var(--es-text);
  font-family: var(--es-font);
  font-size: 0.9375rem;
}

.es-v3__search-bar input::placeholder { color: var(--es-text-muted); }

.es-v3__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--es-radius-sm);
  border: 1px solid var(--es-glass-border);
}

.es-v3__tab {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--es-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.es-v3__tab--active {
  background: var(--es-secondary);
  color: var(--es-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.es-v3__chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.es-v3__chip-row::-webkit-scrollbar { display: none; }

.es-v3__chip {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--es-glass-border);
  background: var(--es-glass);
  color: var(--es-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.es-v3__chip--active {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--es-accent-soft);
  color: var(--es-accent);
}

/* Calendar strip */
.es-v3__calendar-strip {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
}

.es-v3__calendar-month {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--es-text-muted);
}

.es-v3__calendar-days {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.es-v3__cal-day {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--es-text-muted);
}

.es-v3__cal-day--today {
  background: var(--es-accent);
  color: var(--es-primary);
}

.es-v3__cal-day--shift:not(.es-v3__cal-day--today) {
  border: 2px solid rgba(245, 158, 11, 0.5);
  color: var(--es-accent);
}

/* Shift cards */
.es-v3__shift-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.es-v3__shift-card {
  padding: 1rem 1.125rem;
  background: var(--es-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  animation: esFadeIn 0.35s ease backwards;
}

.es-v3__shift-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.es-v3__shift-location {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.es-v3__shift-venue {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--es-text-muted);
}

.es-v3__shift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--es-text-muted);
}

.es-v3__shift-date,
.es-v3__shift-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.es-v3__shift-date svg,
.es-v3__shift-time svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.es-v3__shift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.es-v3__employer-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--es-text-muted);
}

.es-v3__shift-hours {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--es-accent);
}

.es-v3__shift-progress {
  margin-top: 0.75rem;
}

.es-v3__shift-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.es-v3__shift-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--es-text-muted);
}

.es-v3__shift-progress-pct {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--es-accent);
}

.es-v3__shift-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.es-v3__shift-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--es-accent), #38bdf8);
  transition: width 0.4s ease;
}

.es-v3__shift-progress[data-shift-progress="live"] .es-v3__shift-progress-fill {
  background: linear-gradient(90deg, #22c55e, var(--es-accent));
}

.es-v3__today-card .es-v3__shift-progress {
  margin-top: 1rem;
}

/* Check-in page */
.es-v3__gps-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  font-size: 0.8125rem;
}

.es-v3__gps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--es-text-muted);
  animation: esPulse 1.5s ease infinite;
}

.es-v3__gps-status[data-gps-status="granted"] .es-v3__gps-dot { background: var(--es-success); animation: none; }
.es-v3__gps-status[data-gps-status="denied"] .es-v3__gps-dot { background: var(--es-danger); animation: none; }

.es-v3__scanner-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 200px;
  margin-bottom: 1.25rem;
  padding: 2rem 1.5rem;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--es-radius-lg);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), var(--es-surface));
  color: var(--es-text);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

.es-v3__scanner-btn:active { transform: scale(0.98); }

.es-v3__scanner-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.es-v3__checkin-form {
  margin: 0;
  padding: 0;
  border: none;
}

.es-v3__checkin-form .es-v3__scanner-btn {
  width: 100%;
  border: none;
  font-family: var(--es-font);
  cursor: pointer;
}

.es-v3__checkin-form .es-v3__scanner-btn:disabled {
  cursor: wait;
}

.es-v3__alert--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--es-success);
}

.es-v3__alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.es-v3__alert--warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--es-accent);
}

.es-v3__scanner-btn.es-v3__scanner-success {
  border-color: var(--es-success);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), var(--es-surface));
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12);
  cursor: default;
  pointer-events: none;
}

.es-v3__checkin-success .es-v3__scanner-icon svg {
  stroke: var(--es-success);
}

.es-v3__scanner-icon svg {
  width: 64px;
  height: 64px;
  stroke: var(--es-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-v3__scanner-label {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.es-v3__scanner-hint {
  font-size: 0.8125rem;
  color: var(--es-text-muted);
  max-width: 24ch;
}

.es-v3__checkin-today-label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--es-text-muted);
}

.es-v3__history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.es-v3__history-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
}

.es-v3__history-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
}

.es-v3__history-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--es-success);
  fill: none;
  stroke-width: 2.5;
}

.es-v3__history-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.8125rem;
}

.es-v3__history-body strong { font-size: 0.875rem; }
.es-v3__history-body span { color: var(--es-text-muted); }

/* Profile hub */
.es-v3__menu-card {
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  overflow: hidden;
}

.es-v3__menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--es-glass-border);
  font-size: 0.875rem;
}

.es-v3__menu-row span:first-child { color: var(--es-text-muted); }

.es-v3__menu-link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--es-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--es-glass-border);
}

.es-v3__menu-link--btn {
  width: 100%;
  border: none;
  border-top: 1px solid var(--es-glass-border);
  background: transparent;
  font-family: var(--es-font);
  text-align: left;
  cursor: pointer;
}

.es-v3__menu-empty {
  margin: 0;
  padding: 1rem;
  color: var(--es-text-muted);
  font-size: 0.875rem;
}

.es-v3__logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--es-radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: var(--es-danger);
  font-weight: 700;
  text-decoration: none;
}

/* Bottom nav + FAB */
.es-v3__nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: end;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem calc(0.5rem + var(--es-safe-b));
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--es-glass-border);
}

.es-v3__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  color: var(--es-text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  min-height: 48px;
  justify-content: center;
}

.es-v3__nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

.es-v3__nav-item--active {
  color: var(--es-accent);
}

.es-v3__nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--es-danger);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.es-v3__nav-fab {
  position: relative;
  top: -18px;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--es-accent), #d97706);
  color: var(--es-primary);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.es-v3__nav-fab svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-v3__nav-fab:active {
  transform: scale(0.94);
}

/* Profile banner from easy.php */
.staff-easy__banner {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--es-radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.875rem;
}

.staff-easy__banner a {
  color: var(--es-accent);
  font-weight: 600;
}

/* Skeleton loading */
.es-v3__skeleton {
  background: linear-gradient(90deg, var(--es-secondary) 25%, rgba(51, 65, 85, 0.8) 50%, var(--es-secondary) 75%);
  background-size: 200% 100%;
  animation: esShimmer 1.2s ease infinite;
  border-radius: 8px;
}

/* Animations */
@keyframes esFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes esSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes esPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes esShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.es-v3__animate-in {
  animation: esFadeIn 0.4s ease backwards;
}

.es-v3__shift-list .es-v3__shift-card:nth-child(2) { animation-delay: 0.05s; }
.es-v3__shift-list .es-v3__shift-card:nth-child(3) { animation-delay: 0.1s; }

/* Messages chat */
.es-v3__chat-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  max-height: 50vh;
  overflow-y: auto;
}

.es-v3__chat-panel .msg-thread { margin: 0; }

.es-v3__chat-panel .msg-bubble {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--es-glass-border);
  color: var(--es-text);
}

.es-v3__chat-panel .msg-bubble--staff {
  background: var(--es-accent-soft);
  border-color: rgba(245, 158, 11, 0.3);
}

.es-v3__chat-panel .msg-bubble__meta,
.es-v3__chat-panel .msg-thread__empty-text,
.es-v3__chat-panel .msg-thread__empty-title {
  color: var(--es-text-muted);
  font-size: 0.8125rem;
}

.es-v3__chat-panel .msg-thread__empty-state {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.es-v3__compose {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.es-v3__compose-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--es-text-muted);
}

.es-v3__compose-input {
  width: 100%;
  min-height: 88px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  background: var(--es-surface);
  color: var(--es-text);
  font-family: var(--es-font);
  font-size: 0.9375rem;
  resize: vertical;
}

.es-v3__compose-send {
  min-height: 48px;
  border: none;
  border-radius: var(--es-radius-sm);
  background: var(--es-accent);
  color: var(--es-primary);
  font-family: var(--es-font);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

/* Public error screen */
.es-v3-error {
  margin: 2rem auto;
  max-width: 24rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--es-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
}

.es-v3-error__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
}

.es-v3-error__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--es-danger);
  fill: none;
  stroke-width: 2;
}

.es-v3-error__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.es-v3-error__message {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--es-text-muted);
  line-height: 1.5;
}

.es-v3-error__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.es-v3-error__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--es-radius-sm);
  border: 1px solid var(--es-glass-border);
  background: var(--es-glass);
  color: var(--es-text);
  font-weight: 600;
  text-decoration: none;
}

.es-v3-error__btn--primary {
  background: var(--es-accent);
  border-color: transparent;
  color: var(--es-primary);
}

/* Venue sign-in page (event-sign.php) */
.es-v3--signin .login-page__wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
}

.es-v3--signin .login-card,
.es-v3--signin .card {
  background: var(--es-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
  color: var(--es-text);
}

.es-v3--signin .card__title,
.es-v3--signin .signin-page-heading__title {
  color: var(--es-text);
}

.es-v3--signin .card__subtitle,
.es-v3--signin .detail-list dt,
.es-v3--signin .form-hint,
.es-v3--signin .login-card__hint,
.es-v3--signin .signin-page-heading__status {
  color: var(--es-text-muted);
}

.es-v3--signin .detail-list dd {
  color: var(--es-text);
}

.es-v3--signin .form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--es-glass-border);
  color: var(--es-text);
}

.es-v3--signin .btn--primary {
  background: var(--es-accent);
  border-color: transparent;
  color: var(--es-primary);
  font-weight: 700;
  min-height: 48px;
}

.es-v3--signin .alert--success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--es-success);
}

.es-v3--signin .alert--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.es-v3--signin .alert--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--es-accent);
}

.es-v3--signin .employer-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--es-radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}

.es-v3--signin a {
  color: var(--es-accent);
}

/* Notifications */
.es-v3__page-header--notif {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.es-v3__notif-badge {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--es-accent);
  color: var(--es-primary);
  font-size: 0.8125rem;
  font-weight: 800;
}

.es-v3__notif-actions {
  margin-bottom: 1rem;
}

.es-v3__notif-mark-read {
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius-sm);
  background: var(--es-surface);
  color: var(--es-text-muted);
  font-family: var(--es-font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.es-v3__notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.es-v3__notif-card {
  padding: 1.125rem 1.25rem;
  background: var(--es-surface);
  border: 1px solid var(--es-glass-border);
  border-radius: var(--es-radius);
  backdrop-filter: blur(20px);
}

.es-v3__notif-card--unread {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: inset 3px 0 0 var(--es-accent);
}

.es-v3__notif-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.es-v3__notif-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.es-v3__notif-card-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--es-text-muted);
}

.es-v3__notif-card-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--es-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.es-v3__notif-card--open .es-v3__notif-card-body {
  display: block;
  -webkit-line-clamp: unset;
}

.es-v3__notif-card-cta {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--es-accent-soft);
  color: var(--es-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--es-font);
}

.es-v3__notif-card-cta--ghost {
  background: transparent;
  border: 1px solid var(--es-glass-border);
  color: var(--es-text-muted);
}

@media (min-width: 481px) {
  .es-v3__main { padding-left: 1.5rem; padding-right: 1.5rem; }
}
