/* Black Wolf Lawncare — dark cinematic UI + component styles */

/* Base */
:root {
  --wolf-green: #166534;
  --wolf-green-light: #4ade80;
  --wolf-bronze: #b45309;
  --wolf-bronze-light: #d97706;
  --wolf-black: #05080f;
  --wolf-surface: #0a0f1a;
  --wolf-surface-2: #111827;
  --wolf-border: rgba(148, 163, 184, 0.14);
  --wolf-glass: rgba(15, 23, 42, 0.55);
  --wolf-glass-border: rgba(255, 255, 255, 0.08);
  --wolf-blur: 24px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}
/* Prevent scale/hover on full-bleed sections from growing the page width (fixes FAB jump) */
html {
  overflow-x: clip;
}

body.bwl-dark-app {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(22, 101, 52, 0.12), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(180, 83, 9, 0.08), transparent 50%),
              var(--wolf-black);
  color: #e2e8f0;
}

/* ========== SOLID PANELS (glass removed) ========== */
.bwl-panel,
.glass-card,
.glass-panel {
  background: var(--wolf-surface-2);
  border: 1px solid var(--wolf-border);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.bwl-nav-dark {
  background: rgba(3, 5, 8, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Index dark site shell */
.bwl-site-dark {
  background: var(--wolf-black);
  color: #e2e8f0;
}

.bwl-section-dark {
  background: linear-gradient(180deg, #05080f 0%, #0a0f1a 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.bwl-stat-strip {
  background: rgba(10, 15, 26, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.bwl-service-card {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  color: #e2e8f0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bwl-service-card:hover {
  border-color: rgba(74, 222, 128, 0.25);
}

.bwl-info-card {
  background: #0f172a;
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 1.5rem;
  color: #cbd5e1;
}

.bwl-step-card .step-num {
  color: #4ade80;
  letter-spacing: 0.2em;
}

.bwl-cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2918 0%, #166534 45%, #0a0f1a 100%);
  border-top: 1px solid rgba(74, 222, 128, 0.15);
}
.bwl-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(74, 222, 128, 0.12), transparent 60%);
  pointer-events: none;
}

.bwl-footer {
  background: #030508;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

/* Spacing fix: grounds card → subscription (no z-index stacking overlap) */
#services-grid {
  margin-bottom: 0;
}
.bwl-subscription-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  clear: both;
}
#services-grid .bwl-service-card--grounds {
  min-height: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
#services-grid .bwl-service-card--grounds[data-bwl-hover] {
  margin-bottom: 0.5rem;
}

/* Page chrome */
.bwl-page-wrap {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.5rem;
}

.bwl-page-header .bwl-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
}
.bwl-page-header h1 {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bwl-page-header p {
  color: #94a3b8;
}

.bwl-input,
.bwl-select,
.bwl-textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bwl-input:focus,
.bwl-select:focus,
.bwl-textarea:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.25);
}
.bwl-input::placeholder,
.bwl-textarea::placeholder {
  color: #64748b;
}

.bwl-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.bwl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  background: #15803d;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.bwl-btn-primary:hover { background: #166534; }

.bwl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}
.bwl-btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.bwl-input-readonly {
  background: #0a0f1a;
  border-color: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  cursor: default;
}

body.bwl-site-dark .bwl-cal-nav-btn {
  color: #cbd5e1;
}
body.bwl-site-dark .bwl-cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.bwl-site-dark .bwl-cal-title {
  color: #fff;
}

.bwl-badge-status-paid {
  background: rgba(22, 101, 52, 0.35);
  color: #86efac;
}
.bwl-badge-status-booked {
  background: rgba(180, 83, 9, 0.25);
  color: #fcd34d;
}
.bwl-badge-status-done {
  background: rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
}

body.bwl-dark-app .image-preview img {
  border-color: rgba(148, 163, 184, 0.25);
}
body.bwl-dark-app table tbody tr {
  border-color: rgba(148, 163, 184, 0.08);
}
body.bwl-dark-app table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Dark theme overrides for contact page classes */
body.bwl-site-dark .contact-card,
body.bwl-site-dark .contact-form {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  color: #e2e8f0;
}
body.bwl-site-dark .contact-label {
  color: #94a3b8;
}
body.bwl-site-dark .contact-input {
  background: #0a0f1a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
body.bwl-site-dark .contact-input:focus {
  border-color: rgba(74, 222, 128, 0.45);
}
body.bwl-site-dark .contact-btn {
  background: #15803d;
}
body.bwl-site-dark .contact-btn:hover {
  background: #166534;
}

/* Calendar — dark */
body.bwl-site-dark .calendar-day {
  color: #cbd5e1;
}
body.bwl-site-dark .calendar-day:hover:not(.disabled):not(.selected) {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
}
body.bwl-site-dark .calendar-day.disabled {
  color: #475569;
  background-color: rgba(15, 23, 42, 0.5);
}
body.bwl-site-dark .calendar-day.other-month { color: #334155; }
body.bwl-site-dark .calendar-day.today { color: #4ade80; }
body.bwl-site-dark .calendar-day.selected {
  background-color: #166534;
  border-color: #166534;
  color: #fff;
}
body.bwl-site-dark .calendar-day.unavailable {
  background-color: rgba(127, 29, 29, 0.35);
  color: #fca5a5;
}
body.bwl-site-dark .calendar-day.fully-booked {
  background-color: rgba(153, 27, 27, 0.45) !important;
  color: #fecaca !important;
}

body.bwl-site-dark .time-slot {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
body.bwl-site-dark .time-slot:hover:not(.selected) {
  border-color: #4ade80;
  background: rgba(22, 101, 52, 0.15);
}
body.bwl-site-dark .time-slot.selected {
  background-color: #166534;
  border-color: #166534;
  color: #fff;
}

body.bwl-site-dark .pay-option {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
body.bwl-site-dark .pay-option:hover {
  border-color: rgba(180, 83, 9, 0.5);
  background: rgba(180, 83, 9, 0.08);
}
body.bwl-site-dark .pay-option.selected {
  border-color: #b45309;
  background: rgba(180, 83, 9, 0.12);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

body.bwl-site-dark .badge-booked {
  background: rgba(180, 83, 9, 0.2);
  color: #fcd34d;
}
body.bwl-site-dark .badge-paid {
  background: rgba(22, 101, 52, 0.35);
  color: #86efac;
}

body.bwl-site-dark .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
body.bwl-site-dark .bwl-service-card.card:hover {
  transform: none;
}

/* ========== CHAT WIDGET (matches settings FAB style) ========== */
.bwl-chat-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 5.25rem; /* left of settings gear */
  z-index: 99991;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #4ade80;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
  contain: layout;
}
.bwl-chat-fab:hover {
  transform: rotate(8deg) scale(1.05);
  border-color: rgba(74, 222, 128, 0.35);
}
#bwl-chat-root.is-offline .bwl-chat-fab {
  color: #f87171;
}
#bwl-chat-root.is-offline .bwl-chat-fab:hover {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

/* Pulse ring — green online / red offline */
.bwl-chat-fab-ring {
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0.55;
  pointer-events: none;
  animation: bwlChatPulse 2s ease-out infinite;
}
#bwl-chat-root.is-offline .bwl-chat-fab-ring {
  animation: bwlChatPulseRed 2.4s ease-out infinite;
}
@keyframes bwlChatPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes bwlChatPulseRed {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.bwl-chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bwl-chat-fab-icon--close { display: none; }
.bwl-chat-fab.is-open .bwl-chat-fab-icon--msg { display: none; }
.bwl-chat-fab.is-open .bwl-chat-fab-icon--close { display: flex; }
.bwl-chat-fab.is-open .bwl-chat-fab-ring { animation: none; opacity: 0; }
.bwl-chat-fab.is-open:hover { transform: none; }

html[data-bwl-animations="off"] .bwl-chat-fab-ring { animation: none !important; opacity: 0.35; }
html[data-bwl-animations="off"] .bwl-chat-fab:hover { transform: none; }

.bwl-chat-panel {
  position: fixed;
  bottom: 5.25rem;
  right: 1.25rem;
  z-index: 99992;
  width: min(380px, calc(100% - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  height: min(520px, calc(100vh - 7rem));
  max-height: calc(100dvh - 7rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}
.bwl-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bwl-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  transition: background 0.3s ease;
}
#bwl-chat-root.is-offline .bwl-chat-header {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 45%, #0f172a 100%);
  border-bottom-color: rgba(248, 113, 113, 0.2);
}
.bwl-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.bwl-chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.bwl-chat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.bwl-chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: #a7f3d0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.bwl-chat-status.is-offline { color: #fecaca; }
.bwl-chat-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: bwlChatDotPulse 1.6s ease-in-out infinite;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.bwl-chat-status.is-offline .bwl-chat-dot {
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3);
  animation: bwlChatDotPulseRed 1.8s ease-in-out infinite;
}
@keyframes bwlChatDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}
@keyframes bwlChatDotPulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
html[data-bwl-animations="off"] .bwl-chat-dot { animation: none !important; }

.bwl-chat-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bwl-chat-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

.bwl-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(22, 101, 52, 0.12), transparent 55%),
    #0a0f1a;
}
.bwl-chat-msg { display: flex; max-width: 88%; }
.bwl-chat-msg--user { align-self: flex-end; }
.bwl-chat-msg--bot { align-self: flex-start; }
.bwl-chat-msg-enter {
  animation: bwlChatMsgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bwlChatMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-bwl-animations="off"] .bwl-chat-msg-enter { animation: none !important; }

.bwl-chat-bubble-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
}
.bwl-chat-msg--bot .bwl-chat-bubble-msg {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom-left-radius: 0.3rem;
}
.bwl-chat-msg--user .bwl-chat-bubble-msg {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.bwl-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-self: flex-start;
  max-width: 92%;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0.1rem;
}
.bwl-chat-chip {
  appearance: none;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.35);
  color: #ecfdf5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  line-height: 1.2;
}
.bwl-chat-chip:hover:not(:disabled) {
  background: rgba(22, 163, 74, 0.55);
  border-color: rgba(74, 222, 128, 0.7);
  transform: translateY(-1px);
}
.bwl-chat-chip:active:not(:disabled) {
  transform: scale(0.97);
}
.bwl-chat-chip:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
html[data-bwl-theme="light"] .bwl-chat-chip {
  background: #ecfdf5;
  border-color: #86efac;
  color: #14532d;
}
html[data-bwl-theme="light"] .bwl-chat-chip:hover:not(:disabled) {
  background: #d1fae5;
  border-color: #4ade80;
}

.bwl-chat-composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #0f172a;
  transition: opacity 0.25s ease;
}
.bwl-chat-composer.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.bwl-chat-input {
  flex: 1;
  min-width: 0;
  background: #0a0f1a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}
.bwl-chat-input:disabled,
.bwl-chat-input:read-only {
  opacity: 0.7;
  cursor: not-allowed;
  color: #64748b;
}
.bwl-chat-input:focus:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.25);
}
.bwl-chat-input::placeholder { color: #64748b; }
.bwl-chat-send {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15803d;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}
.bwl-chat-send:hover:not(:disabled) { background: #166534; }
.bwl-chat-send:active:not(:disabled) { transform: scale(0.96); }
.bwl-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #334155;
}

html[data-bwl-theme="light"] .bwl-chat-fab {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #16a34a;
}
html[data-bwl-theme="light"] #bwl-chat-root.is-offline .bwl-chat-fab {
  color: #dc2626;
}
html[data-bwl-theme="light"] .bwl-chat-panel {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}
html[data-bwl-theme="light"] .bwl-chat-messages {
  background: #f8fafc;
}
html[data-bwl-theme="light"] .bwl-chat-msg--bot .bwl-chat-bubble-msg {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}
html[data-bwl-theme="light"] .bwl-chat-composer {
  background: #fff;
  border-top-color: #e2e8f0;
}
html[data-bwl-theme="light"] .bwl-chat-input {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

@media (max-width: 480px) {
  .bwl-chat-fab { right: 5rem; bottom: 1rem; }
  .bwl-chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 4.75rem;
    height: min(70vh, 480px);
  }
}

/* ========== SETTINGS FAB + SWITCHES ========== */
.bwl-settings-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99990;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, border-color 0.2s;
  contain: layout paint;
}
.bwl-settings-fab:hover {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  transform: rotate(45deg);
}

.bwl-switch {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.bwl-switch-track {
  display: block;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 9999px;
  background: #334155;
  position: relative;
  transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.bwl-switch.is-on .bwl-switch-track {
  background: linear-gradient(135deg, #15803d, #4ade80);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}
.bwl-switch-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bwl-switch.is-on .bwl-switch-thumb {
  transform: translateX(1.2rem);
}
.bwl-switch-thumb.bwl-switch-pop {
  animation: bwlSwitchPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bwlSwitchPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.bwl-switch.is-on .bwl-switch-thumb.bwl-switch-pop {
  animation: bwlSwitchPopOn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bwlSwitchPopOn {
  0% { transform: translateX(1.2rem) scale(1); }
  40% { transform: translateX(1.2rem) scale(1.12); }
  100% { transform: translateX(1.2rem) scale(1); }
}

/* ========== LIGHT THEME ========== */
html[data-bwl-theme="light"] body,
body.bwl-theme-light {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-bwl-theme="light"] .bwl-site-dark,
html[data-bwl-theme="light"] body.bwl-site-dark {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #0f172a !important;
}
html[data-bwl-theme="light"] body.bwl-dark-app {
  background: radial-gradient(1000px 500px at 10% -10%, rgba(22, 101, 52, 0.08), transparent 55%),
              #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-bwl-theme="light"] .bwl-nav-dark {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
html[data-bwl-theme="light"] .bwl-nav-dark .text-white,
html[data-bwl-theme="light"] .bwl-nav-dark a.text-slate-300 { color: #0f172a !important; }
html[data-bwl-theme="light"] .bwl-nav-dark .text-slate-300 { color: #475569 !important; }
html[data-bwl-theme="light"] .bwl-panel,
html[data-bwl-theme="light"] .bwl-service-card,
html[data-bwl-theme="light"] .bwl-info-card,
html[data-bwl-theme="light"] .glass-card,
html[data-bwl-theme="light"] .glass-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
html[data-bwl-theme="light"] .bwl-section-dark {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-color: rgba(15, 23, 42, 0.06);
}
html[data-bwl-theme="light"] .bwl-stat-strip {
  background: #fff;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-bwl-theme="light"] .bwl-footer {
  background: #e2e8f0;
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}
html[data-bwl-theme="light"] .bwl-input,
html[data-bwl-theme="light"] .bwl-select,
html[data-bwl-theme="light"] .bwl-textarea,
html[data-bwl-theme="light"] .bwl-input-readonly {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
html[data-bwl-theme="light"] .bwl-label,
html[data-bwl-theme="light"] .bwl-page-header p { color: #64748b; }
html[data-bwl-theme="light"] .bwl-page-header h1,
html[data-bwl-theme="light"] .text-white { color: #0f172a !important; }
html[data-bwl-theme="light"] .text-slate-200,
html[data-bwl-theme="light"] .text-slate-300,
html[data-bwl-theme="light"] .text-slate-400 { color: #475569 !important; }
html[data-bwl-theme="light"] .text-slate-500 { color: #64748b !important; }
html[data-bwl-theme="light"] .bwl-settings-panel {
  color: #0f172a;
}
html[data-bwl-theme="light"] .bwl-settings-fab {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}
/* Admin uses same switch component as public settings */
body.bwl-dark-app .bwl-switch-track { background: #334155; }
html[data-bwl-theme="light"] .bwl-cta-band {
  background: linear-gradient(135deg, #166534 0%, #15803d 45%, #14532d 100%);
}
html[data-bwl-theme="light"] .site-header-banner .hero-title,
html[data-bwl-theme="light"] .site-header-banner .hero-lead { color: #fff; }
html[data-bwl-theme="light"] body.bwl-site-dark .calendar-day { color: #334155; }
html[data-bwl-theme="light"] body.bwl-site-dark .time-slot,
html[data-bwl-theme="light"] body.bwl-site-dark .pay-option {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-bwl-theme="light"] .bg-slate-900,
html[data-bwl-theme="light"] .bg-slate-950 {
  background-color: #ffffff !important;
}
html[data-bwl-theme="light"] .border-slate-700,
html[data-bwl-theme="light"] .border-slate-800 {
  border-color: #e2e8f0 !important;
}
html[data-bwl-theme="light"] .admin-tab { color: #475569; }
html[data-bwl-theme="light"] .admin-tab.active { color: #b45309; }
html[data-bwl-animations="off"] .bwl-settings-fab:hover { transform: none; }

.bwl-settings-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 99989;
  width: 16rem;
  padding: 1rem 1.1rem;
  color: #e2e8f0;
}
.bwl-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

/* ========== MOTION FALLBACKS ========== */
html[data-bwl-animations="on"] .bwl-animate-in {
  animation: bwlFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bwlFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-bwl-animations="on"] [data-bwl-hover] {
  transition: box-shadow 0.25s ease;
}
html[data-bwl-animations="on"] [data-bwl-hover]:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

html[data-bwl-animations="on"] [data-bwl-reveal]:not(.bwl-revealed) {
  will-change: transform, opacity;
}

/* Kill site-wide motion when animations are off (settings toggle) */
html[data-bwl-animations="off"],
html[data-bwl-animations="off"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-bwl-animations="off"] [data-bwl-reveal],
html[data-bwl-animations="off"] .scroll-fade,
html[data-bwl-animations="off"] .bwl-animate-in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
html[data-bwl-animations="off"] .card:hover,
html[data-bwl-animations="off"] [data-bwl-hover]:hover {
  transform: none !important;
}

.bwl-modal-open {
  animation: bwlModalBg 0.3s ease forwards;
}
@keyframes bwlModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Smooth scroll for anchor links (e.g. "See Services") instead of instant jump */
html {
  scroll-behavior: smooth;
}

/* Tailwind prose-like clean reading */
.prose {
  max-width: 65ch;
}

/* Minimal card */
.card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Ensure #services anchor lands below the sticky nav when using smooth scroll */
#services {
  scroll-margin-top: 5rem; /* ~80px to clear the fixed header/nav */
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

/* Booking calendar */
.calendar {
  user-select: none;
}

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

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
  border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.calendar-day.disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background-color: #f8fafc;
}

.calendar-day.other-month {
  color: #cbd5e1;
}

.calendar-day.today {
  font-weight: 700;
  color: var(--wolf-green);
}

.calendar-day.selected {
  background-color: var(--wolf-green);
  color: white;
  border-color: var(--wolf-green);
  font-weight: 600;
}

.calendar-day.unavailable {
  background-color: #fee2e2;
  color: #ef4444;
  text-decoration: line-through;
}

.calendar-day.fully-booked {
  background-color: #fecaca !important;
  color: #991b1b !important;
  text-decoration: none;
  font-weight: 600;
}

/* Time slot buttons */
.time-slot {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  background: white;
  text-align: center;
}

.time-slot:hover:not(.selected) {
  border-color: var(--wolf-green);
  background: #f8fafc;
}

.time-slot.selected {
  background-color: var(--wolf-green);
  color: white;
  border-color: var(--wolf-green);
}

/* Payment method cards */
.pay-option {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.1s ease;
}

.pay-option:hover {
  border-color: var(--wolf-bronze);
  background: #fffbeb;
}

.pay-option.selected {
  border-color: var(--wolf-bronze);
  background: #fefce8;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

/* Status badges */
.badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-booked {
  background: #fef3c7;
  color: #92400e;
}

.badge-paid {
  background: #dcfce7;
  color: #166534;
}

/* Nav active */
.nav-link {
  position: relative;
}
.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wolf-green-light);
}
.bwl-nav-dark .nav-link.active { color: #fff; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .calendar-day {
    font-size: 0.75rem;
  }
}

/* Print styles for receipts */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
}

/* ==================== SPLASH / PRELOADER (Cinematic) ==================== */
/* Internal navigation (Contact → Home, etc.) — no preloader */
html.bwl-skip-splash #splash {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Home page site announcement banner */
.bwl-site-banner {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #14532d, #166534, #b45309);
  color: #ecfdf5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.bwl-site-banner.hidden { display: none !important; }
.bwl-site-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 2.75rem 0.65rem 1.25rem;
  position: relative;
  text-align: center;
}
.bwl-site-banner-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}
.bwl-site-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.bwl-site-banner-close:hover { background: rgba(0, 0, 0, 0.4); }

/* Maintenance preview banner (admin testing while site is locked) */
.bwl-maint-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99995;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(90deg, #78350f, #b45309, #78350f);
  color: #fffbeb;
  font-size: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.bwl-maint-preview-banner button {
  border: 1px solid rgba(255, 251, 235, 0.4);
  background: rgba(0, 0, 0, 0.2);
  color: #fffbeb;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}
.bwl-maint-preview-banner button:hover {
  background: rgba(0, 0, 0, 0.35);
}
body.bwl-has-maint-preview-banner {
  padding-top: 2.5rem;
}
body.bwl-has-maint-preview-banner .bwl-nav-dark {
  top: 2.5rem;
}

/* Logo easter egg — gold glitter + code popup */
.bwl-logo-egg {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.bwl-logo-egg.bwl-logo-pop {
  animation: bwlLogoPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bwlLogoPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
#bwl-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100000;
  overflow: hidden;
}
.bwl-confetti-piece {
  position: absolute;
  top: -12px;
  opacity: 0.95;
  animation-name: bwlConfettiFall;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}
.bwl-glitter-piece {
  animation-name: bwlGlitterFall;
}
.bwl-glitter-sparkle {
  animation-name: bwlGlitterSparkle;
}
@keyframes bwlConfettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0.85;
  }
}
@keyframes bwlGlitterFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(18px) rotate(900deg) scale(0.85);
    opacity: 0.2;
  }
}
@keyframes bwlGlitterSparkle {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) scale(1.15) rotate(180deg);
    opacity: 0.95;
  }
  100% {
    transform: translateY(110vh) scale(0.4) rotate(400deg);
    opacity: 0;
  }
}
html[data-bwl-animations="off"] .bwl-confetti-piece,
html[data-bwl-animations="off"] .bwl-glitter-piece,
html[data-bwl-animations="off"] .bwl-glitter-sparkle {
  animation-duration: 0.01s !important;
}

.bwl-egg-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.bwl-egg-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bwl-egg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.bwl-egg-modal-card {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.75rem 1.5rem 1.4rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(250, 204, 21, 0.18), transparent 55%),
    linear-gradient(165deg, #1c1917 0%, #0c0a09 55%, #1a1207 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(234, 179, 8, 0.12);
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bwl-egg-modal.is-open .bwl-egg-modal-card {
  transform: translateY(0) scale(1);
}
.bwl-egg-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #a8a29e;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.bwl-egg-modal-close:hover {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.06);
}
.bwl-egg-modal-wolf {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  line-height: 1;
  background: radial-gradient(circle at 40% 30%, #fef08a, #eab308 45%, #92400e 100%);
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.35),
    0 0 28px rgba(234, 179, 8, 0.45);
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));
}
.bwl-egg-modal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  font-weight: 700;
}
.bwl-egg-modal-title {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fffbeb;
  letter-spacing: -0.02em;
}
.bwl-egg-modal-hint {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: #d6d3d1;
  line-height: 1.4;
}
.bwl-egg-modal-count {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #a8a29e;
  line-height: 1.4;
}
.bwl-egg-modal-count strong {
  color: #fbbf24;
  font-weight: 700;
}
.bwl-egg-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.bwl-egg-code {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(250, 204, 21, 0.55);
  color: #fde047;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.bwl-egg-copy {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1c1917;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.bwl-egg-copy:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.bwl-egg-copy:active {
  transform: scale(0.97);
}
.bwl-egg-modal-foot {
  margin: 0.95rem 0 0;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
}
html[data-bwl-theme="light"] .bwl-egg-modal-card {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(250, 204, 21, 0.25), transparent 55%),
    linear-gradient(165deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border-color: rgba(180, 83, 9, 0.25);
}
html[data-bwl-theme="light"] .bwl-egg-modal-title { color: #78350f; }
html[data-bwl-theme="light"] .bwl-egg-modal-hint { color: #57534e; }
html[data-bwl-theme="light"] .bwl-egg-code {
  background: rgba(255, 255, 255, 0.7);
  color: #a16207;
}
html[data-bwl-theme="light"] .bwl-egg-modal-foot { color: #a8a29e; }

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #030508;
  opacity: 0;
  animation: splashFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}
@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-curtain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #030508 85%);
  transform: translateY(100%);
  z-index: 20;
  pointer-events: none;
}

#splash.splash-is-exiting { pointer-events: none; }

#splash.splash-exit-fallback {
  animation: splashExitFallback 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes splashExitFallback {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  70% { opacity: 0.4; transform: scale(1.03); filter: blur(6px); }
  100% { opacity: 0; transform: scale(1.06); filter: blur(12px); visibility: hidden; }
}

.splash-bg-image {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.1) brightness(0.45);
  transform: scale(1.08);
  animation: splashKenBurns 8s ease-in-out infinite alternate;
}
@keyframes splashKenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.14) translate(-1%, -1%); }
}

.splash-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(22, 101, 52, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(180, 83, 9, 0.2), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(5, 8, 15, 0.9), transparent 70%);
  animation: splashMeshPulse 4s ease-in-out infinite;
}
@keyframes splashMeshPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.splash-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,5,8,0.3) 0%, rgba(3,5,8,0.75) 100%);
}

#splash-logo {
  position: relative;
  z-index: 10;
  text-align: center;
  user-select: none;
  opacity: 0;
  animation: splashContentFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes splashContentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #splash,
  #splash-logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
html[data-bwl-animations="off"] #splash,
html[data-bwl-animations="off"] #splash-logo {
  animation: none;
  opacity: 1;
  transform: none;
}

.splash-logo-ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 1.25rem;
}
.splash-logo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 9999px;
  border: 2px solid rgba(74, 222, 128, 0.25);
  animation: splashRingPulse 2s ease-in-out infinite;
}
.splash-logo-ring::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: splashRingSpin 12s linear infinite;
}
@keyframes splashRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes splashRingSpin {
  to { transform: rotate(360deg); }
}

.splash-logo-ring img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 9999px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 60px rgba(22, 101, 52, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  margin: 14px auto 0;
  display: block;
}

.splash-brand {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.splash-brand .char {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
html[data-bwl-animations="on"] .splash-brand.revealed .char {
  animation: splashCharIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
html[data-bwl-animations="off"] .splash-brand .char { opacity: 1; transform: none; }

@keyframes splashCharIn {
  to { opacity: 1; transform: translateY(0); }
}

.splash-sub {
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: #a7f3d0;
  margin-top: 0.5rem;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.splash-sub.visible { opacity: 1; transition: opacity 0.6s ease 0.8s; }

.splash-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(245, 232, 199, 0.7);
  margin-top: 0.75rem;
  opacity: 0;
}
.splash-tag.visible { opacity: 1; transition: opacity 0.5s ease 1.1s; }

.splash-progress-wrap {
  width: min(280px, 70vw);
  margin: 1.75rem auto 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wolf-green), #4ade80, var(--wolf-bronze));
  border-radius: 9999px;
  transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.splash-status {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 0.65rem;
  text-transform: uppercase;
}

#splash-logo.zooming .splash-logo-ring {
  animation: splashLogoZoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes splashLogoZoom {
  to { transform: scale(1.8); opacity: 0; }
}

/* Legacy splash class aliases */
.splash-logo { font-size: 2.5rem; font-weight: 700; color: #fff; }

/* ==================== SITE HEADER BANNER (Header.jpg) ==================== */
.site-header-banner {
  position: relative;
  background-color: #030508;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: min(72vh, 560px);
  overflow: hidden;
  transform: none !important; /* never scale full-bleed hero (page width glitch) */
}
.site-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(3, 5, 8, 0.88) 0%,
    rgba(3, 5, 8, 0.62) 45%,
    rgba(3, 5, 8, 0.35) 100%
  );
  pointer-events: none;
}
.site-header-banner .hero-badge {
  background: rgba(180, 83, 9, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header-banner .hero-title { color: #fff; }
.site-header-banner .hero-title .bronze { color: #fbbf24 !important; }
.site-header-banner .hero-lead { color: rgba(226, 232, 240, 0.9); }
.site-header-banner .hero-note { color: rgba(148, 163, 184, 0.85); }
.site-header-banner .hero-logo-ring {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 25px 50px rgba(0, 0, 0, 0.45);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Bronze emphasis */
.bronze {
  color: #b45309 !important;
}
.bronze-heading {
  color: #b45309;
}

/* Review styles removed */

/* Admin / crew tabs */
.admin-tab,
.crew-tab {
  padding: 8px 16px;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover,
.crew-tab:hover { color: #4ade80; }
.admin-tab.active {
  border-bottom-color: #b45309;
  color: #b45309;
}

/* Crew hours admin list */
.crew-hour-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.crew-hour-row:hover { background: rgba(255, 255, 255, 0.03); }

/* ========== CREW PAGE ========== */
.crew-page {
  min-height: 100dvh;
  padding-bottom: 2rem;
}
.crew-clock-card {
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: linear-gradient(160deg, rgba(22, 101, 52, 0.22), #0f172a 55%);
}
.crew-clock-status-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86efac;
  font-weight: 600;
}
.crew-clock-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 0.25rem;
}
.crew-clock-elapsed {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
  margin-top: 0.35rem;
}
.crew-clock-elapsed.is-idle {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 600;
}
.crew-clock-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.crew-clock-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
@media (min-width: 480px) {
  .crew-clock-actions {
    flex-direction: row;
  }
}
.crew-clock-btn {
  flex: 1;
  min-height: 3.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, opacity 0.15s ease;
}
.crew-clock-btn:active { transform: scale(0.98); }
.crew-clock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.crew-clock-btn--in {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
}
.crew-clock-btn--out {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.crew-tab-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.crew-tab-bar::-webkit-scrollbar { display: none; }
.crew-tab {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.crew-tab.is-active {
  color: #fbbf24;
  border-bottom-color: #d97706;
}
.crew-login-choice {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.crew-login-choice button {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.crew-login-choice button:hover { filter: brightness(1.08); }
.crew-login-btn-primary {
  background: #15803d;
  color: #fff;
  border: none;
}
.crew-login-btn-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.crew-time-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
}
.crew-time-date {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
}
.crew-time-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}
.crew-time-hours {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
}

/* Coupon / image upload */
.coupon-input {
  font-family: ui-monospace, monospace;
  letter-spacing: 1px;
}
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.image-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f1f5f9;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  z-index: 100000;
  display: none;
}
