body {
  font-family: "Noto Sans", sans-serif;
  margin: 0;
  min-height: 100vh;
  color: white;
  background: #080808;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  /* occupy the full viewport */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 0;
  margin: 0;
  z-index: 1;
  overflow: auto;
  padding-right: 12px; /* room for custom scrollbar without overlapping content */
}

/* unified thin elegant scrollbar (WebKit) used across most scrollable elements */
:root {
  --scroll-track: rgba(255,255,255,0.02);
  --scroll-thumb-grad: linear-gradient(180deg, rgba(255,200,120,0.95), rgba(255,150,80,0.95));
  --scroll-thumb-radius: 8px;
  --scroll-thumb-border: 2px solid rgba(0,0,0,0.12);
  --scroll-thumb-shadow: inset 0 0 6px rgba(0,0,0,0.25);
  --scroll-width: 8px;
}

/* Apply to a broad set of scrollable selectors to ensure consistency */
*::-webkit-scrollbar {
  width: var(--scroll-width);
  height: var(--scroll-width);
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 12px;
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb-grad);
  border-radius: var(--scroll-thumb-radius);
  box-shadow: 0 0 8px rgba(255,140,60,0.12), var(--scroll-thumb-shadow);
  border: var(--scroll-thumb-border);
  transition: box-shadow 140ms ease, transform 120ms ease;
  min-height: 24px; /* keep thumb usable on short content */
}
*::-webkit-scrollbar-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255,140,60,0.18), var(--scroll-thumb-shadow);
}

/* Ensure specific interactive components that may implement custom scroll areas are covered */
.container::-webkit-scrollbar,
.manual-body::-webkit-scrollbar,
.vet-body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.shop-body .shop-grid::-webkit-scrollbar,
.popup::-webkit-scrollbar,
.video-popup .video-container::-webkit-scrollbar {
  width: var(--scroll-width);
  height: var(--scroll-width);
}

/* Firefox fallback (thin + colored) applied broadly */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,160,90,0.95) var(--scroll-track);
}

/* For elements where overlay/ui might obscure the thumb, ensure visible contrast */
.modal-body, .manual-body, .vet-body, .container, .shop-body .shop-grid, .popup, .video-popup .video-container {
  -moz-box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ensure buttons inside the .buttons grid have a subtle 1px border */
.buttons button {
  border: 1px solid rgba(255,255,255,0.06);
}

button {
  height: min(120px, 20vh);
  font-size: 15px;
  cursor: pointer;
  border: none;
  color: white;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

button.playing {
  transform: translateY(-2px) scale(1.02);
  /* neon outline/glow to indicate active playing state */
  border: 1px solid rgba(255,184,107,0.45);
  box-shadow: 0 0 10px rgba(255,184,107,0.25), 0 0 24px rgba(255,140,60,0.12), inset 0 0 6px rgba(255,220,180,0.04);
  position: relative;
  animation: neonPulse 2s infinite ease-in-out;
}

button img {
  /* removed - images are now backgrounds on buttons */
}

.copyright {
  margin-top: 20px;
  font-size: 0.8em;
  text-align: center;
}

.copyright a {
  color: #fff;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

.controls {
  margin-top: 10px;
}

#toggle-loop {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

#toggle-loop svg { display: block; color: rgba(255,255,255,0.7); }

#toggle-loop:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }

#toggle-loop.active {
  background: rgba(255,255,255,0.12);
  /* neon pulsing border */
  box-shadow: 0 0 8px rgba(255,184,107,0.6), 0 0 18px rgba(255,160,90,0.18), inset 0 0 6px rgba(255,220,180,0.06);
  animation: neonPulse 2s infinite ease-in-out;
  border: 1px solid rgba(255,160,90,0.6);
}
#toggle-loop.active svg { color: #fff; }

.gear-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.gear-btn svg { color: rgba(255,255,255,0.8); width:16px; height:16px; display:block; }

.book-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.book-btn svg { display:block; width:16px; height:16px; }

.vet-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.vet-btn svg { display:block; width:16px; height:16px; }

.shop-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.shop-btn svg { display:block; width:16px; height:16px; }
.shop-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }

/* WhatsApp floating button (fixed bottom-right) */
.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  background: linear-gradient(180deg, rgba(37,211,102,0.12), rgba(29,168,81,0.08));
  color: #fff;
  border: 1px solid rgba(37,211,102,0.14);
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(13,60,33,0.35);
  transition: transform 120ms ease, box-shadow 140ms ease, background-color 120ms ease;
  touch-action: manipulation;
}
.whatsapp-btn svg { display:block; width:22px; height:22px; }

/* Neon pulsing border for the floating home, chat & whatsapp buttons */
#open-whatsapp, #open-chat, #open-home {
  /* stronger neon border + glow */
  border: 1px solid rgba(255,184,107,0.6);
  box-shadow: 0 0 8px rgba(255,184,107,0.45), 0 0 18px rgba(255,160,90,0.12), 0 14px 30px rgba(13,60,33,0.25), inset 0 0 6px rgba(255,220,180,0.03);
  animation: neonPulse 2000ms infinite ease-in-out;
}

/* Slightly intensify the hover state while preserving pulse */
.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(13,60,33,0.6), 0 0 18px rgba(255,160,90,0.22), inset 0 0 8px rgba(255,220,180,0.06);
}

/* small adjustments for whatsapp modal textarea focus */
#whatsapp-message:focus {
  outline: none;
  box-shadow: 0 8px 20px rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.45);
}

/* WhatsApp modal: centered, compact and touch-friendly layout */
.whatsapp-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding-top: 4px;
}
.whatsapp-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.whatsapp-input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #fff;
  box-sizing: border-box;
  font-size: 0.95rem;
  outline: none;
}
.whatsapp-textarea {
  min-height: 88px;
  resize: vertical;
}
.whatsapp-note {
  margin: 6px 0 0 0;
  color: #e8e3dc;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
}

/* footer actions centered and spaced, primary button first by visual weight */
.whatsapp-footer {
  padding-top: 6px;
}
.whatsapp-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}
.whatsapp-actions .ghost {
  min-width: 86px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* highlight primary send button */
.whatsapp-actions .primary {
  background: linear-gradient(180deg, rgba(255,184,107,0.12), rgba(255,160,90,0.06));
  border: 1px solid rgba(255,160,90,0.28);
  color: #ffd9b3;
  box-shadow: 0 6px 18px rgba(255,140,60,0.06);
}

/* center modal content on narrow viewports and expand inputs for touch */
@media (max-width: 520px) {
  .modal-panel { width: 96%; max-width: 520px; }
  .whatsapp-actions { justify-content: center; flex-wrap: wrap; }
  .whatsapp-actions .ghost { width: 48%; min-width: 120px; }
  .whatsapp-note { font-size: 0.88rem; }
}

/* Shop modal specific styles */
.shop-body .shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #ffe9d0;
  transition: transform 140ms ease, box-shadow 160ms ease;
  min-height: 140px;
}

/* Responsive, accessible shop filter controls */
.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

/* each row arranges controls horizontally where space allows */
.shop-filters-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* compact row for numeric inputs */
.shop-filters-row--compact {
  justify-content: flex-start;
  align-items: center;
}

/* base input appearance (remove inline styles usage) */
.shop-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* flexible name input grows to fill remaining space */
.shop-input--flex {
  flex: 1 1 0%;
  min-width: 0; /* allow flex children to shrink on small viewports */
}

/* category select keeps a natural size */
.shop-input--select {
  flex: 0 0 160px;
  min-width: 120px;
}

/* small numeric inputs */
.shop-input--small {
  flex: 0 0 110px;
  min-width: 84px;
}

/* clear button aligned to the row end on wide screens, but flows naturally inside flex stacking */
.shop-filter-clear {
  margin-left: auto;
  height: 36px;
  flex: 0 0 auto;
}

/* compact icon-only buttons used in vet address controls */
.vet-address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  color: #ffe9d0;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 140ms ease, background-color 120ms ease;
}
.vet-address-btn svg { display:block; width:18px; height:18px; color: #ffd9b3; }
.vet-address-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,184,107,0.04);
  box-shadow: 0 8px 20px rgba(255,140,60,0.06);
}

/* ensure the vet address controls remain touch-friendly on small viewports */
@media (max-width: 520px) {
  .vet-address-btn { width: 40px; height: 36px; padding: 6px; }
  #vet-address-input { font-size: 0.95rem; }
}

/* screen-reader only helper */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Responsive adjustments: stack items vertically on small viewports for touch */
@media (max-width: 720px) {
  .shop-filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-input--select,
  .shop-input--small {
    flex: 1 1 100%;
    min-width: 0;
  }
  .shop-filter-clear {
    margin-left: 0;
    width: 100%;
  }
}

/* maintain compact inline arrangement for medium+ screens */
@media (min-width: 721px) and (max-width: 980px) {
  .shop-input--select { flex: 0 0 140px; }
  .shop-input--small { flex: 0 0 100px; }
}
.shop-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}
.shop-info {
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  gap: 8px;
  color: #ffe9d0;
}
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255,140,60,0.08);
}

/* hamburger button follows visual pattern of other floating controls */
.burger-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.burger-btn svg { display:block; width:16px; height:16px; }

/* when menu is active, show neon pulse border like other active controls */
.burger-btn[aria-expanded="true"] {
  box-shadow: 0 0 8px rgba(255,184,107,0.6), 0 0 18px rgba(255,160,90,0.18), inset 0 0 6px rgba(255,220,180,0.06);
  animation: neonPulse 2s infinite ease-in-out;
  border: 1px solid rgba(255,160,90,0.6);
}

/* slide-down panel that appears below controls, compact for mobile viewport */
.burger-panel {
  position: absolute;
  top: 68px; /* sits below controls */
  right: 18px;
  width: 220px;
  background: rgba(10,10,10,0.98);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  z-index: 60;
  transform-origin: top right;
  transform: scaleY(0);
  transition: transform 200ms ease;
  pointer-events: none;
  opacity: 0;
}
.burger-panel[aria-hidden="false"] {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* menu list */
.burger-panel ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px; }
.burger-panel li button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
}
.burger-panel li button:hover { background: rgba(255,184,107,0.06); box-shadow: 0 6px 16px rgba(255,140,60,0.04); }

/* ensure mobile topspace for panel */
@media (max-width: 520px) {
  .burger-panel { right: 12px; top: 64px; width: 200px; }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}
.modal[aria-hidden="false"] { display: flex; }

.modal-panel {
  width: 96%;
  max-width: 520px;
  max-height: calc(100vh - 80px); /* ensure panel fits in viewport */
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(8,8,8,0.96));
  color: white;
  border-radius: 12px;
  padding: 0; /* handled by internal layout */
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.modal-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.2px; color: #ffe9d0; }

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 12px 16px;
  display: block;
  overflow: auto; /* allow scrolling when content overflows */
  max-height: calc(100vh - 180px); /* keep header/footer visible while allowing body to scroll */
}
.modal-body > .manual-search,
.modal-body > .manual-search + section,
.modal-body > .manual-search + .vet-body,
.modal-body section {
  margin-bottom: 12px;
}
.modal-body section h4 {
  margin: 0 0 6px 0;
  font-size: 0.98rem;
  color: #ffd9b3;
  font-weight: 600;
}
.modal-body section p {
  margin: 0;
  color: #e8e3dc;
  line-height: 1.45;
  font-size: 0.92rem;
}

.modal-body label { font-size: 0.93rem; display: block; color: #ddd; }
.modal-body input[type="range"] {
  width: 100%;
  accent-color: #ffb86b;
  margin-top: 6px;
  -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,184,107,0.9) 0%, rgba(255,184,107,0.3) 100%);
  border-radius: 6px;
}
.modal-body input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,160,90,0.95);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.02));
}
.ghost {
  background: transparent;
  color: #ffe9d0;
  border: 1px solid rgba(255,160,90,0.18);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  min-width: 68px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease, box-shadow 160ms ease, transform 120ms ease;
  box-shadow: 0 4px 14px rgba(255,140,60,0.04), inset 0 1px 0 rgba(255,220,180,0.02);
}

/* refined small elegant manual modal OK button */
#manual-ok.ghost {
  padding: 6px 10px;
  min-width: 72px;
  height: 36px;
  font-size: 0.88rem;
  align-self: flex-end;
  border-radius: 6px;
  color: #ffd9b3;
  border: 1px solid rgba(255,160,90,0.22);
  box-shadow: 0 6px 20px rgba(255,140,60,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
}

/* reuse manual modal scrollbar styling for vet modal body */
.vet-body {
  max-height: 60vh;
  overflow: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

/* compact OK button for vet modal */
#vet-ok.ghost {
  padding: 6px 10px;
  min-width: 72px;
  height: 36px;
  font-size: 0.88rem;
  border-radius: 6px;
  color: #ffd9b3;
  border: 1px solid rgba(255,160,90,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  box-shadow: 0 6px 20px rgba(255,140,60,0.04);
}

/* Canvas background sits behind everything */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.manual-body {
  max-height: 60vh;
  overflow: auto;
  padding-right: 10px; /* room for scrollbar without overlaying text */
}

.manual-search {
  display: flex;
  margin-bottom: 8px;
}
.manual-search input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  transition: box-shadow 0.12s ease, background 0.12s ease;
}
.manual-search input[type="search"]:focus {
  box-shadow: 0 6px 18px rgba(255,160,80,0.12);
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,160,80,0.35);
}

/* highlight matches */
.manual-body mark {
  background: rgba(255,184,107,0.18);
  color: #ffdfc6;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* smoother scrolling inside modal */
.manual-body {
  scroll-behavior: smooth;
}

/* visually hidden helper for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

@media (max-width: 520px) {
  .container { padding: 14px; width: 100%; }
  .buttons { gap: 10px; }
  button { font-size: 14px; padding: 8px; height: min(110px, 18vh); align-items: flex-end; }
  #toggle-loop { width: 36px; height: 36px; padding: 5px; }
}

/* neon pulse animation used by active controls */
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 6px rgba(255,184,107,0.18), 0 0 14px rgba(255,140,60,0.06), inset 0 0 4px rgba(255,220,180,0.03);
  }
  50% {
    box-shadow: 0 0 14px rgba(255,184,107,0.55), 0 0 30px rgba(255,140,60,0.18), inset 0 0 8px rgba(255,220,180,0.08);
  }
  100% {
    box-shadow: 0 0 6px rgba(255,184,107,0.18), 0 0 14px rgba(255,140,60,0.06), inset 0 0 4px rgba(255,220,180,0.03);
  }
}

/* small, elegant buttons for 'Main menu navigation' inside the Menu modal */
.modal .modal-body nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
}
.modal .modal-body nav button {
  padding: 6px 10px;
  min-width: 72px;
  height: 36px;
  font-size: 0.88rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color: #ffe9d0;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 160ms ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.modal .modal-body nav button:hover {
  background: rgba(255,184,107,0.06);
  box-shadow: 0 8px 18px rgba(255,140,60,0.06);
  transform: translateY(-2px);
}

/* Chat modal: force full-viewport panel for an immersive, full-screen chat */
#chat-modal[aria-hidden="false"] .modal-panel {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
}

/* Ensure chat modal inner body uses available space and scrolls if needed */
#chat-modal .modal-body {
  max-height: calc(100vh - 84px); /* keep header/footer visible but use most of screen */
  overflow: auto;
}