/* MELTED Booking Override - injected via nginx sub_filter */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* Reset Tailwind fallbacks */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --accent: #e8ff47;
  --text: #f0efe9;
  --muted: #666;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  min-height: 100vh;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

/* Container */
body > div:first-child {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 3rem 1.5rem !important;
}

/* Title area */
body > div > div:first-child {
  text-align: center;
  margin-bottom: 3rem !important;
}

/* Hide emoji icon circle */
body > div > div:first-child > div:first-child {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* Main title */
h1 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(2rem, 5vw, 2.8rem) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  margin-bottom: .5rem !important;
}

/* Subtitle */
.text-gray-500, p.text-gray-500 {
  color: var(--muted) !important;
  font-size: .95rem !important;
}

/* Badge (type label) */
.inline-flex, div.inline-flex {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.2rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 100px !important;
  background: transparent !important;
  margin-top: 1rem !important;
}

.inline-flex .w-2 {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: var(--accent) !important;
  animation: pulse 2s infinite;
}

.inline-flex span:last-child, .text-sm.text-gray-400 {
  font-size: .75rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}

/* Day sections */
.space-y-6 > div { margin-bottom: 2.5rem !important; }

/* Day titles */
h3, .text-sm.font-semibold.text-gray-400 {
  font-family: 'Syne', sans-serif !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: var(--text) !important;
  margin-bottom: 1rem !important;
  padding-bottom: .6rem !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Slots grid */
.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
  gap: .6rem !important;
}

/* Slot buttons */
.slot-btn, button.slot-btn {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: .9rem .4rem !important;
  text-align: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,1,.36,1) !important;
  color: var(--text) !important;
}

.slot-btn:hover {
  border-color: rgba(232,255,71,0.4) !important;
  background: rgba(232,255,71,0.06) !important;
  transform: translateY(-2px);
}

/* Selected slot */
.slot-btn.bg-accent\/20,
.slot-btn.ring-2,
.slot-btn[class*="ring-accent"],
.slot-btn[class*="border-accent"] {
  border-color: var(--accent) !important;
  background: rgba(232,255,71,0.12) !important;
  box-shadow: 0 0 24px rgba(232,255,71,0.12) !important;
}

/* Slot time */
.slot-btn span:first-child, .slot-btn .text-lg {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  display: block;
}

/* Slot range */
.slot-btn span:last-child, .slot-btn .text-xs, .slot-btn .block {
  font-size: .6rem !important;
  color: var(--muted) !important;
  margin-top: .3rem !important;
  display: block;
}

/* Form card */
#form, div.hidden, div[id="form"] {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  margin-top: 2.5rem !important;
}

/* Form selected slot display */
#form > div:first-child {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
}

#form > div:first-child > div:first-child {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(232,255,71,0.08) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-accent, p.text-accent, #selected-label {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Form labels */
label, .text-xs.text-gray-500 {
  display: block;
  font-size: .7rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: .5rem !important;
  font-weight: 500;
}

/* Form inputs */
input, textarea {
  width: 100%;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: .9rem 1.1rem !important;
  color: var(--text) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: .9rem !important;
  outline: none;
  transition: border-color .3s;
}

input:focus, textarea:focus {
  border-color: var(--accent) !important;
}

input::placeholder, textarea::placeholder {
  color: #3a3a3a !important;
}

textarea { resize: none; }

/* Form field spacing */
.space-y-3 > div { margin-bottom: 1.2rem !important; }

/* Confirm button */
#book-btn, button[onclick="book()"] {
  width: 100%;
  background: var(--accent) !important;
  color: #0a0a0a !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 1.1rem !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .4s cubic-bezier(.22,1,.36,1);
  margin-top: .8rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

#book-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(232,255,71,0.25);
}

#book-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#book-btn svg { stroke: #0a0a0a !important; }

/* Footer text */
.text-center.text-gray-600, p.text-gray-600 {
  text-align: center;
  color: #2a2a2a !important;
  font-size: .7rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 3rem !important;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }

/* Mobile */
@media (max-width: 500px) {
  .grid { grid-template-columns: repeat(3, 1fr) !important; }
  body > div:first-child { padding: 2rem 1rem !important; }
  h1 { font-size: 1.8rem !important; }
}
