/* Er Pang – booking modal, booking band, mobile booking bar, button polish */
button.btn { cursor: pointer; font-family: inherit; }
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary::after, .btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover::after, .btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost-light { background: transparent; color: #fbf3e6; border-color: oklch(1 0 0 / 0.35); }
.btn-ghost-light:hover { border-color: #fbf3e6; background: oklch(1 0 0 / 0.08); }

/* Open-now pulse */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4fbf7a; margin-right: 2px; box-shadow: 0 0 0 0 oklch(0.72 0.15 150 / 0.6); animation: pulse 2s infinite; }
.live-dot.closed { background: var(--color-gold); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.72 0.15 150 / 0.6); } 70% { box-shadow: 0 0 0 10px oklch(0.72 0.15 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.72 0.15 150 / 0); } }

/* Booking band */
.book-band {
  position: relative;
  overflow: hidden;
  background: #2a1512;
  color: #fbf3e6;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.book-band-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(40% 50% at 20% 40%, oklch(0.55 0.17 25 / 0.55), transparent 70%),
              radial-gradient(35% 45% at 85% 70%, oklch(0.72 0.13 75 / 0.35), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }
.book-band-inner { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; justify-content: space-between; }
.book-band .eyebrow { color: #e3b04e; }
.book-band-title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.05; margin-block: var(--space-3); }
.book-band-text { color: oklch(0.95 0.02 60 / 0.8); max-width: 52ch; }
.book-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Booking modal */
.book-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-4); visibility: hidden; pointer-events: none; }
.book-modal.open { visibility: visible; pointer-events: auto; }
.book-backdrop { position: absolute; inset: 0; background: oklch(0.12 0.02 30 / 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.4s var(--ease-out); }
.book-modal.open .book-backdrop { opacity: 1; }
.book-dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  transform: translateY(40px) scale(0.96); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.book-modal.open .book-dialog { transform: none; opacity: 1; }
.book-top { position: relative; padding: var(--space-8) var(--space-8) var(--space-6); background: linear-gradient(135deg, #7c2124, #9a2b2e 60%, #b9862f); color: #fbf3e6; }
.book-top h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.book-top p { font-size: var(--text-sm); opacity: 0.88; margin-top: var(--space-2); }
.book-x { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; border-radius: 50%; border: 0; background: oklch(1 0 0 / 0.15); color: inherit; cursor: pointer; display: grid; place-items: center; }
.book-x:hover { background: oklch(1 0 0 / 0.28); }
.book-form { padding: var(--space-6) var(--space-8) var(--space-8); display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.book-form .full { grid-column: 1 / -1; }
.book-form label { display: grid; gap: var(--space-1); font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.book-form input, .book-form select, .book-form textarea {
  font: inherit; font-size: var(--text-base); text-transform: none; letter-spacing: 0; font-weight: 400;
  color: var(--color-text); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18); }
.book-form textarea { min-height: 76px; resize: vertical; }
.party { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.party button { min-width: 44px; height: 44px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease-out); }
.party button:hover { border-color: var(--color-primary); }
.party button[aria-pressed='true'] { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); transform: scale(1.06); }
.book-form .btn { width: 100%; }
.book-note { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
.book-done { padding: var(--space-8); display: none; text-align: center; }
.book-done.show { display: block; animation: rise 0.6s var(--ease-out) both; }
.book-done h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-4); }
.book-summary { margin: var(--space-4) 0 var(--space-6); padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-offset); text-align: left; font-size: var(--text-sm); white-space: pre-line; }
.book-done .stack { display: grid; gap: var(--space-3); }
.tick { width: 64px; height: 64px; margin-inline: auto; }
.tick circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 0.7s var(--ease-out) forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Mobile sticky booking bar */
.book-bar { display: none; }
@media (max-width: 760px) {
  .book-bar {
    position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 70;
    display: flex; gap: var(--space-2); padding: var(--space-2);
    background: oklch(from var(--color-surface) l c h / 0.92); backdrop-filter: blur(12px);
    border: 1px solid var(--color-divider); border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform 0.5s var(--ease-out);
  }
  .book-bar.show { transform: none; }
  .book-bar .btn { flex: 1; padding: var(--space-3) var(--space-4); }
  .book-bar .btn-outline { flex: 0 0 auto; }
  body.has-book-bar .chat-launcher { bottom: calc(var(--space-4) + 72px); }
  body.has-book-bar .chat-panel { bottom: calc(var(--space-4) + 130px); }
  body.has-book-bar .footer { padding-bottom: 96px; }
  .book-form { grid-template-columns: 1fr; padding: var(--space-5) var(--space-5) var(--space-6); }
  .book-top { padding: var(--space-6) var(--space-5) var(--space-5); }
  .book-band-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .book-dialog, .book-backdrop, .book-bar, .btn, .btn::after { transition: none !important; }
  .book-band-glow, .live-dot, .tick circle, .tick path, .book-done.show { animation: none !important; }
  .tick circle, .tick path { stroke-dashoffset: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .header-actions > [data-book] { display: none; }
}
.book-top { background: linear-gradient(135deg, #5e1719, #8a2629 65%, #9a5a24); }
.book-top p { opacity: 0.92; }
.book-top p { color: #f6e7d2; }
.book-top h2 { padding-right: 44px; color: #fff8ee; }
.book-note a { color: var(--color-primary); font-weight: 600; }
