html { scroll-behavior: smooth; }
body { background-color: #ffffff; overflow-x: clip; color: #18181b; }
img, video, iframe { max-width: 100%; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Hide default scrollbar look */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f4f4f5; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c026d3; }

/* Header scroll effect — frosted white glass */
#site-header.scrolled #header-inner {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.12);
}

/* Infinite partners slider */
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.slider-track { animation: scroll-x 50s linear infinite; will-change: transform; }
.slider-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .slider-track { animation: none; } }

/* Hero video — punchier colours + parallax baseline (scale gives room to drift) */
#hero-video {
  filter: saturate(1.28) contrast(1.1) brightness(1.02);
  transform: scale(1.24);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  #hero-video { transform: none; }
}

/* Contacts map (Leaflet) — grayscale tiles, branded magenta pin */
#contacts-map { background: #f4f4f5; }
#contacts-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.02); }
#contacts-map .exc-pin svg { filter: drop-shadow(0 6px 10px rgba(192,38,211,0.45)); }
#contacts-map .leaflet-control-zoom a { color: #c026d3; }

/* Slot grid */
.slot {
  font-size: 11px; font-weight: 600; text-align: center;
  padding: 8px 0; border-radius: 8px; cursor: pointer;
  transition: all .15s; user-select: none;
  border: 1px solid #e4e4e7; background: #fafafa; color: #3f3f46;
}
.slot:hover { border-color: #d946ef; color: #18181b; }
.slot.busy {
  background: #c026d3; border-color: #c026d3; color: #fff;
  cursor: not-allowed; opacity: .85;
}
.slot.busy:hover { border-color: #c026d3; }
.slot.free { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.30); color: #047857; }
.slot.selected { background: #d946ef; border-color: #fff; color: #fff; box-shadow: 0 0 0 2px rgba(217,70,239,0.4); }

/* Cinema-style booking hour cells */
.bcell { border: 1px solid #e4e4e7; background: #fafafa; color: #a1a1aa; cursor: default; }
.bcell.free { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.35); color: #047857; cursor: pointer; }
.bcell.free:hover { border-color: #d946ef; color: #18181b; }
.bcell.busy { background: #f4f4f5; border-color: #e4e4e7; color: #c4c4c8; cursor: not-allowed; }
.bcell.selected { background: #c026d3; border-color: #c026d3; color: #fff; box-shadow: 0 0 0 2px rgba(217,70,239,0.35); }
.bcell:disabled:not(.selected) { opacity: .5; cursor: not-allowed; }

/* Hall card */
.hall-card { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid #e4e4e7; background: #ffffff; transition: transform .4s, border-color .3s, box-shadow .3s; }
.hall-card:hover { transform: translateY(-4px); border-color: rgba(217,70,239,0.5); box-shadow: 0 20px 50px -25px rgba(217,70,239,0.25); }
.hall-card .hall-img { aspect-ratio: 4/3; overflow: hidden; }
.hall-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.hall-card:hover img { transform: scale(1.06); }
.hall-card .hall-body { padding: 1.4rem 1.6rem 1.6rem; }

/* Form date inputs styling — keep native picker icon */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* FullCalendar — admin still uses dark theme (admin/index.html has its own root colors).
   Leaving FC overrides as-is for the admin panel. */
.fc { color: #e4e4e7; --fc-border-color: #1c1c20; --fc-page-bg-color: #0d0d0f; --fc-neutral-bg-color: #0d0d0f; --fc-list-event-hover-bg-color: #1a1a1d; --fc-today-bg-color: rgba(217,70,239,0.08); }
.fc .fc-toolbar-title { font-family: "Unbounded", sans-serif; font-size: 1.4rem; }
.fc .fc-button { background: #1c1c20 !important; border: 1px solid #2a2a30 !important; color: #e4e4e7 !important; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button:hover { background: #c026d3 !important; border-color: #c026d3 !important; }
.fc-event { background: #c026d3 !important; border: none !important; padding: 2px 4px; cursor: pointer; }
.fc-event.pending { background: #6b7280 !important; }
.fc-event.confirmed { background: #c026d3 !important; }
.fc-event.paid { background: #059669 !important; }
.fc-event.canceled { background: #44403c !important; opacity: .55; text-decoration: line-through; }

/* Unpaid & overdue (>1h since booking) — blinking attention state */
@keyframes exc-overdue-blink {
  0%, 100% { background-color: #dc2626; box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
  50%      { background-color: #7f1d1d; box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}
.fc-event.unpaid-overdue { animation: exc-overdue-blink 1.1s ease-in-out infinite; background: #dc2626 !important; border: none !important; }
@keyframes exc-overdue-border {
  0%, 100% { border-color: #dc2626; box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
  50%      { border-color: #7f1d1d; box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}
.booking-row.unpaid-overdue { border-width: 1px; border-style: solid; animation: exc-overdue-border 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .fc-event.unpaid-overdue, .booking-row.unpaid-overdue { animation: none; }
  .booking-row.unpaid-overdue { border-color: #dc2626; }
}

/* Booking-form payment method selector */
.pay-option:has(input:checked) { border-color: #c026d3; background: rgba(192,38,211,.06); }
.pay-option:has(input:checked) .pay-check { border-color: #c026d3; background: #c026d3; box-shadow: inset 0 0 0 3px #fff; }
.fc .fc-non-business { background: rgba(255,255,255,0.02) !important; }
.fc .fc-timegrid-slot { background: rgba(16,185,129,0.04); }
.fc .fc-timegrid-slot-lane:hover { background: rgba(16,185,129,0.10); }
.fc .fc-timegrid-now-indicator-line { border-color: #d946ef; }
.fc .fc-timegrid-now-indicator-arrow { border-color: #d946ef; color: #d946ef; }

/* FullCalendar — light theme (admin) */
html.light .fc { color: #18181b; --fc-border-color: #e4e4e7; --fc-page-bg-color: #ffffff; --fc-neutral-bg-color: #ffffff; --fc-list-event-hover-bg-color: #f4f4f5; --fc-today-bg-color: rgba(217,70,239,0.06); }
html.light .fc .fc-button { background: #ffffff !important; border: 1px solid #e4e4e7 !important; color: #3f3f46 !important; }
html.light .fc .fc-button-primary:not(:disabled).fc-button-active, html.light .fc .fc-button:hover { background: #c026d3 !important; border-color: #c026d3 !important; color: #fff !important; }
html.light .fc .fc-non-business { background: rgba(0,0,0,0.03) !important; }
html.light .fc .fc-timegrid-slot { background: rgba(16,185,129,0.04); }
html.light .fc .fc-timegrid-slot-lane:hover { background: rgba(16,185,129,0.08); }
.fc-theme-standard .fc-scrollgrid, .fc-theme-standard td, .fc-theme-standard th { border-color: #1c1c20 !important; }

/* === Floating Action Button === */
.fab-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #d946ef, #a21caf);
  color: white; display: grid; place-items: center;
  box-shadow: 0 10px 40px -10px rgba(217,70,239,0.7), 0 0 0 0 rgba(217,70,239,0.4);
  cursor: pointer; border: none;
  animation: fab-pulse 2.4s ease-in-out infinite;
  transition: transform .3s;
}
.fab-toggle:hover { transform: scale(1.07); }
#fab.open .fab-toggle { transform: rotate(180deg); animation: none; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 40px -10px rgba(217,70,239,0.7), 0 0 0 0 rgba(217,70,239,0.5); }
  50% { box-shadow: 0 10px 40px -10px rgba(217,70,239,0.7), 0 0 0 18px rgba(217,70,239,0); }
}
.fab-btn {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transform: translateX(60px); opacity: 0;
  animation: fab-in .3s forwards;
}
.fab-btn:nth-child(1) { animation-delay: .05s; }
.fab-btn:nth-child(2) { animation-delay: .1s; }
.fab-btn:nth-child(3) { animation-delay: .15s; }
.fab-btn:nth-child(4) { animation-delay: .2s; }
@keyframes fab-in { to { transform: translateX(0); opacity: 1; } }
.fab-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c, #d946ef); color: white;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px var(--c, #d946ef);
  transition: transform .25s;
}
.fab-btn:hover .fab-circle { transform: scale(1.1); }
.fab-label {
  background: rgba(255,255,255,0.95); color: #18181b;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}

/* === Service blob shapes === */
.blob {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  overflow: hidden;
  animation: blob-morph 12s ease-in-out infinite alternate;
  box-shadow: 0 20px 60px -20px rgba(217,70,239,0.3);
}
.blob:nth-of-type(2) { border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%; animation-duration: 14s; }
.blob:nth-of-type(3) { border-radius: 70% 30% 40% 60% / 30% 70% 50% 50%; animation-duration: 16s; }
.blob:nth-of-type(4) { border-radius: 50% 50% 30% 70% / 70% 30% 60% 40%; animation-duration: 13s; }
.blob:nth-of-type(5) { border-radius: 30% 70% 60% 40% / 40% 60% 30% 70%; animation-duration: 15s; }
.blob:nth-of-type(6) { border-radius: 60% 40% 50% 50% / 30% 70% 70% 30%; animation-duration: 17s; }
.blob img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.blob:hover img { transform: scale(1.08); }
@keyframes blob-morph {
  0%   { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  50%  { border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%; }
  100% { border-radius: 50% 50% 30% 70% / 30% 70% 50% 50%; }
}

/* === Horizontal snap slider === */
.h-slider {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 8px;
}
.h-slider::-webkit-scrollbar { display: none; }
.h-slider > * {
  flex: 0 0 70%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .h-slider > * { flex-basis: 45%; } }
@media (min-width: 1024px) { .h-slider > * { flex-basis: 26%; } }

/* Bottom gradient overlay for slider images so captions stay readable */
.h-slider figure { position: relative; }
.h-slider figure::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 25%,
    rgba(0,0,0,0.15) 50%,
    transparent 75%);
}
.h-slider figcaption { position: absolute; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }

/* === Lightbox transitions === */
#lightbox .lb-img { transition: opacity .25s; }

/* === Aperture mobile menu === */
/* When closed: fully hidden (visibility) so iris doesn't render over the page.
   When open: visibility flips immediately and opacity/transforms animate.
   When closing: visibility flips after animation finishes. */
#mobile-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.7s;
}
#mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* Backdrop: subtle white frost — site visible faintly behind */
#mobile-menu .iris-backdrop {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(36px) saturate(140%);
  -webkit-backdrop-filter: blur(36px) saturate(140%);
}

#mobile-menu .iris {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* The shutter hole grows from r=0 (closed) to r=70 (open).
   Single source of truth for animation, mathematically symmetric. */
#mobile-menu .iris-hole {
  r: 0;
  transition: r 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}
#mobile-menu.open .iris-hole { r: 70; }

/* 8 curved blade lines — rotation set via SVG transform attribute. */
#mobile-menu .iris-line {
  fill: none;
  stroke: rgba(217, 70, 239, 0.5);
  stroke-width: 0.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
#mobile-menu.open .iris-line { opacity: 1; }

#mobile-menu .iris-ring {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
  transform: scale(0.3);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s, opacity 0.4s ease 0.25s;
}
#mobile-menu.open .iris-ring { opacity: 0.6; transform: scale(1.4); }

#mobile-menu .iris-content {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s ease 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}
#mobile-menu.open { pointer-events: auto; }
#mobile-menu.open .iris-content {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#mobile-menu .iris-item {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #18181b;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.15s;
}
#mobile-menu .iris-item:hover { color: #c026d3; }
#mobile-menu.open .iris-item {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.open .iris-item:nth-child(2) { transition-delay: 0.55s; }
#mobile-menu.open .iris-item:nth-child(3) { transition-delay: 0.62s; }
#mobile-menu.open .iris-item:nth-child(4) { transition-delay: 0.69s; }
#mobile-menu.open .iris-item:nth-child(5) { transition-delay: 0.76s; }
#mobile-menu.open .iris-item:nth-child(6) { transition-delay: 0.83s; }
#mobile-menu.open .iris-item:nth-child(7) { transition-delay: 0.90s; }
#mobile-menu.open .iris-item:nth-child(8) { transition-delay: 0.97s; }
#mobile-menu .iris-cta {
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, #d946ef, #a21caf);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 0 40px -10px rgba(217, 70, 239, 0.6);
}

/* Burger icon morph */
#site-header #burger { transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); }
#site-header.menu-open #burger { transform: rotate(135deg); }

@media (prefers-reduced-motion: reduce) {
  #mobile-menu .iris-blades, #mobile-menu .blade, #mobile-menu .iris-ring,
  #mobile-menu .iris-content, #mobile-menu .iris-item, #site-header #burger {
    transition: none !important;
  }
}

/* === Dress cards (Прокат одягу / Всі сукні) === */
.dress-card { position: relative; cursor: pointer; }
.dress-frame {
  position: relative; aspect-ratio: 3/4;
  border-radius: 1.1rem; overflow: hidden;
  border: 1px solid #e4e4e7; background: #f4f4f5;
  transform: translateZ(0);
  transition: border-color .3s, box-shadow .45s, transform .45s;
}
.dress-card:hover .dress-frame {
  border-color: rgba(217,70,239,0.55);
  box-shadow: 0 26px 60px -28px rgba(217,70,239,0.4);
  transform: translateY(-4px);
}
.dress-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.01);
  transition: opacity .45s ease, transform .9s ease;
}
.dress-img.is-on { opacity: 1; }
.dress-card:hover .dress-img.is-on { transform: scale(1.05); }

/* Caption readability gradient */
.dress-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 22%, transparent 52%);
}

/* Sparkle sweep — subtle translucent light strip, glides across only on hover */
.dress-shine {
  position: absolute; top: -15%; bottom: -15%; left: -70%; width: 46%;
  z-index: 3; pointer-events: none; opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.02) 32%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.02) 68%,
    transparent 100%);
  mix-blend-mode: screen;
}
.dress-card:hover .dress-frame .dress-shine {
  opacity: 1;
  animation: dress-shine 2.4s ease-in-out infinite;
}
@keyframes dress-shine {
  0% { left: -70%; }
  70%, 100% { left: 145%; }
}

/* Angle indicator dots */
.dress-dots { position: absolute; top: .75rem; right: .75rem; z-index: 4; display: flex; gap: 5px; }
.dress-dots i {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  transition: background .25s, transform .25s;
}
.dress-dots i.on { background: #fff; transform: scale(1.3); }

/* Fullscreen zoom button */
.dress-zoom {
  position: absolute; top: .65rem; left: .65rem; z-index: 4;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.88); color: #18181b;
  backdrop-filter: blur(6px);
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.dress-zoom:hover { background: #c026d3; color: #fff; }
@media (pointer: fine) {
  .dress-zoom { opacity: 0; transform: translateY(-4px); }
  .dress-card:hover .dress-zoom { opacity: 1; transform: none; }
}

.dress-cap {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem; z-index: 4;
  color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* CTA button with the same running shine */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.3), transparent);
}
.btn-shine:hover::after {
  opacity: 1;
  animation: btn-shine 1.6s ease-in-out infinite;
}
@keyframes btn-shine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* Shimmering display text (catalog title) */
.shimmer-text {
  background: linear-gradient(110deg, #18181b 42%, #c026d3 50%, #18181b 58%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer-text 5s linear infinite;
}
@keyframes shimmer-text {
  from { background-position: 200% 0; }
  to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dress-shine, .btn-shine::after { animation: none; opacity: 0; }
  .shimmer-text { animation: none; background-position: 50% 0; }
}

/* === Selection of inputs in forms with calendar inputs === */
