/* ==========================================================================
   UI Components: Buttons, Forms, Modals & Interactive Elements
   РГПУ им. А. И. Герцена — Новогодняя сказка во Дворце педагогики
   ========================================================================== */

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.3;
  }
}

.btn:active {
  transform: scale(0.98);
}

/* Palace Gold Button */
.btn-gold {
  background: var(--gradient-gold);
  color: #0d1e38;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(243, 207, 122, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 26px rgba(255, 215, 0, 0.55);
  transform: translateY(-2px);
  color: #061122;
}

/* Glowing Pulsing Button */
.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 42px;
  background: var(--gradient-gold);
  opacity: 0.4;
  filter: blur(8px);
  z-index: -1;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(0.99); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

/* Outline Gold Button */
.btn-outline-gold {
  background: rgba(243, 207, 122, 0.05);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(243, 207, 122, 0.18);
  color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 20px rgba(243, 207, 122, 0.3);
  transform: translateY(-2px);
}

/* Glassmorphism Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-silver-light);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Imperial Ruby Button */
.btn-ruby {
  background: linear-gradient(135deg, #d9253c 0%, #b31b2c 50%, #820e20 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(196, 30, 58, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ruby:hover {
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.6);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

@media (max-width: 600px) {
  .btn-block-mobile {
    width: 100%;
  }
}

/* --- Form System --- */
.waitlist-form {
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 680px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-silver-light);
}

.form-control {
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-control::placeholder {
  color: rgba(165, 194, 222, 0.45);
}

.form-control:focus {
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 8px rgba(255, 215, 0, 0.1);
  background: rgba(8, 20, 39, 0.95);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f3cf7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

select.form-control option {
  background-color: #0b1d3a;
  color: #ffffff;
  padding: 8px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #ff6b81;
  margin-top: 2px;
}

.form-error.visible {
  display: block;
}

/* Checkbox and Consent */
.form-consent {
  margin: 22px 0 28px;
  text-align: left;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.5);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .custom-checkmark {
  background: var(--gradient-gold);
  border-color: var(--color-gold-bright);
}

.custom-checkmark::after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-container input:checked ~ .custom-checkmark::after {
  display: block;
}

.consent-text {
  font-size: 0.84rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
}

.policy-link {
  color: var(--color-gold-primary);
  text-decoration: underline;
}

.policy-link:hover {
  color: var(--color-gold-bright);
}

/* Status Notifications */
.form-status-box {
  background: rgba(16, 42, 82, 0.95);
  border: 1px solid var(--color-gold-primary);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

.form-status-box.hidden {
  display: none;
}

.status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.status-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold-bright);
  margin-bottom: 4px;
}

.status-content p {
  font-size: 0.9rem;
  color: var(--color-silver-light);
  margin: 0;
}

/* --- Modal Backdrop & Dialog --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: linear-gradient(145deg, #0e2b52 0%, #07152b 100%);
  border: var(--border-gold-medium);
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(243, 207, 122, 0.2);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-silver-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-ruby-primary);
  border-color: var(--color-ruby-primary);
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-kicker {
  font-family: var(--font-regal);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-ice-white);
  margin: 6px 0 10px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-success-msg {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  color: #86efac;
  text-align: center;
  margin-top: 12px;
}

.modal-success-msg.hidden {
  display: none;
}

/* ==========================================================================
   SUPPORT FOR DYNAMIC MODULES (Countdown, Venues, Schedule, Waitlist, Sound)
   ========================================================================== */

/* --- Ice Countdown Widget (js/countdown.js) --- */
.ice-countdown-wrapper,
#countdown,
.countdown-timer {
  margin: clamp(16px, 3.5vw, 24px) auto clamp(20px, 4.5vw, 30px);
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
}

.ice-countdown-card,
.ice-countdown-timer {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 42, 82, 0.85) 0%, rgba(7, 21, 43, 0.95) 100%);
  border: 1px solid rgba(243, 207, 122, 0.45);
  border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(14px, 3.2vw, 24px) clamp(8px, 2.2vw, 28px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(243, 207, 122, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.ice-crystal {
  position: absolute;
  color: var(--color-gold-primary);
  opacity: 0.45;
  font-size: 1.1rem;
  pointer-events: none;
}
.ice-crystal--tl { top: 10px; left: 14px; }
.ice-crystal--tr { top: 10px; right: 14px; }
.ice-crystal--bl { bottom: 10px; left: 14px; }
.ice-crystal--br { bottom: 10px; right: 14px; }

.ice-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 207, 122, 0.12);
  border: 1px solid rgba(243, 207, 122, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--color-gold-bright);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ice-countdown-title {
  font-family: var(--font-regal);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--color-ice-white);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.ice-countdown-target-date {
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  color: var(--color-silver-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ice-countdown-target-date strong {
  color: var(--color-gold-primary);
}

.ice-countdown-grid,
.ice-countdown-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 14px);
  width: 100%;
  box-sizing: border-box;
}

.ice-countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 90px;
  box-sizing: border-box;
}

.ice-box-glow {
  background: rgba(5, 14, 29, 0.9);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: clamp(8px, 1.8vw, 12px);
  width: 100%;
  padding: clamp(6px, 1.6vw, 10px) clamp(2px, 0.5vw, 6px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(243, 207, 122, 0.15);
  box-sizing: border-box;
}

.ice-box-val {
  font-family: var(--font-regal);
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.ice-box-label {
  font-size: clamp(0.58rem, 1.8vw, 0.75rem);
  color: var(--color-silver-dim);
  text-transform: uppercase;
  letter-spacing: clamp(0.2px, 0.1vw, 1px);
  margin-top: clamp(3px, 1vw, 6px);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.ice-countdown-divider {
  font-family: var(--font-regal);
  font-size: clamp(1.1rem, 3.5vw, 2rem);
  color: var(--color-gold-primary);
  font-weight: 700;
  margin-top: clamp(-8px, -2vw, -20px);
  flex-shrink: 0;
  opacity: 0.75;
  padding: 0 clamp(1px, 0.3vw, 4px);
}

@media (max-width: 640px) {
  .ice-countdown-card {
    padding: 18px 12px;
    border-radius: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .countdown-heading-label {
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.35;
  }
  .ice-countdown-grid {
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
  .ice-countdown-segment {
    min-width: 0;
    flex: 1 1 0px;
    max-width: 72px;
  }
  .ice-box-glow {
    padding: 7px 0;
    border-radius: 9px;
  }
  .ice-box-val {
    font-size: 1.55rem;
  }
  .ice-box-label {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    margin-top: 4px;
  }
  .ice-countdown-divider {
    font-size: 1.3rem;
    margin-top: -12px;
    flex-shrink: 0;
  }
  .ice-countdown-footer {
    margin-top: 14px;
  }
  .venue-hint-name {
    font-size: 0.92rem;
  }
  .venue-hint-address {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .ice-countdown-card {
    padding: 14px 8px;
    border-radius: 14px;
  }
  .countdown-heading-label {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }
  .ice-countdown-grid {
    gap: 3px;
  }
  .ice-countdown-segment {
    min-width: 0;
    max-width: 64px;
  }
  .ice-box-glow {
    padding: 5px 0;
    border-radius: 7px;
  }
  .ice-box-val {
    font-size: 1.28rem;
  }
  .ice-box-label {
    font-size: 0.58rem;
    letter-spacing: 0;
    margin-top: 3px;
  }
  .ice-countdown-divider {
    font-size: 1.05rem;
    margin-top: -8px;
  }
  .ice-venue-hint {
    gap: 6px;
  }
  .venue-hint-name {
    font-size: 0.84rem;
  }
  .venue-hint-address {
    font-size: 0.72rem;
  }
}

/* --- Venues Widget Extensions (js/venues.js) --- */
.venues-widget-wrapper {
  margin-top: 24px;
}

.halls-section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-gold-primary);
  margin-bottom: 14px;
}

.halls-nav-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hall-pill-btn {
  background: rgba(7, 21, 43, 0.7);
  border: 1px solid rgba(243, 207, 122, 0.3);
  color: var(--color-silver-muted);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hall-pill-btn:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
}

.hall-pill-btn.is-active {
  background: var(--gradient-gold);
  color: #000;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(243, 207, 122, 0.35);
}

.hall-detail-view {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: rgba(7, 21, 43, 0.6);
  border: 1px solid rgba(243, 207, 122, 0.25);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .hall-detail-view {
    grid-template-columns: 1fr;
  }
}

.hall-active-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-ice-white);
  margin-bottom: 10px;
}

.hall-active-desc {
  font-size: 0.95rem;
  color: var(--color-silver-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hall-capacity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 207, 122, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--color-gold-bright);
  margin-bottom: 18px;
}

.hall-features-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-gold-primary);
  margin-bottom: 10px;
}

.hall-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hall-features-list li {
  font-size: 0.88rem;
  color: var(--color-silver-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hall-scheme-box {
  background: rgba(5, 14, 29, 0.9);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 14px;
  overflow: hidden;
}

.hall-scheme-topbar {
  background: rgba(16, 42, 82, 0.8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(243, 207, 122, 0.2);
  font-size: 0.8rem;
}

.scheme-label {
  color: var(--color-gold-bright);
  font-weight: 600;
}

.scheme-badge {
  color: var(--color-silver-dim);
}

.hall-scheme-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hall-scheme-body svg {
  max-width: 100%;
  height: auto;
}

.hall-scheme-foot {
  padding: 8px 16px;
  background: rgba(5, 14, 29, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--color-silver-dim);
}

.venue-directions-box {
  margin-top: 30px;
  background: rgba(7, 21, 43, 0.6);
  border: 1px solid rgba(243, 207, 122, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.directions-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-primary);
  margin-bottom: 16px;
}

.metro-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .metro-cards-row {
    grid-template-columns: 1fr;
  }
}

.metro-station-card {
  background: rgba(5, 14, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.metro-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.metro--blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.metro--green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.metro--purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

.metro-station-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-ice-white);
}

.metro-line-sub {
  font-size: 0.78rem;
  color: var(--color-silver-dim);
  display: block;
  margin: 2px 0 4px;
}

.metro-exit-desc {
  font-size: 0.76rem;
  color: var(--color-silver-muted);
}

/* --- Social Proof Toasts & Waitlist Modal (js/waitlist.js) --- */
.herzen-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

.herzen-toast {
  background: rgba(7, 21, 43, 0.95);
  border: 1px solid var(--color-gold-primary);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(243, 207, 122, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.herzen-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.herzen-toast.is-hiding {
  opacity: 0;
  transform: translateY(10px);
}

.herzen-toast-icon-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(243, 207, 122, 0.15);
  color: var(--color-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.herzen-toast-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.herzen-toast-body {
  flex-grow: 1;
}

.herzen-toast-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold-primary);
  margin-bottom: 2px;
}

.herzen-toast-message {
  font-size: 0.82rem;
  color: var(--color-silver-light);
  line-height: 1.35;
  margin-bottom: 4px;
}

.herzen-toast-meta {
  font-size: 0.74rem;
  color: var(--color-silver-dim);
  display: flex;
  gap: 6px;
}

.herzen-toast-close {
  background: transparent;
  border: none;
  color: var(--color-silver-dim);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
}

.herzen-toast-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.herzen-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-gold);
  width: 100%;
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Herzen Waitlist Modals (Dynamic) */
.herzen-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.herzen-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.herzen-modal-container {
  background: linear-gradient(145deg, #0d274c 0%, #07152b 100%);
  border: 1px solid var(--color-gold-primary);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(243, 207, 122, 0.2);
}

.herzen-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-silver-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.herzen-modal-close:hover {
  background: var(--color-ruby-primary);
  border-color: var(--color-ruby-primary);
  color: #fff;
}

.herzen-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.herzen-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.herzen-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 207, 122, 0.15);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.herzen-modal-badge svg {
  width: 14px;
  height: 14px;
}

.herzen-modal-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-ice-white);
  margin-bottom: 8px;
}

.gold-highlight {
  color: var(--color-gold-bright);
}

.herzen-modal-subtitle {
  font-size: 0.92rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
}

.herzen-info-callout {
  background: rgba(16, 42, 82, 0.7);
  border-left: 3px solid var(--color-gold-primary);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-silver-light);
  margin-bottom: 22px;
}

.herzen-info-callout__icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-gold-bright);
}

.herzen-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.herzen-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .herzen-form-row {
    grid-template-columns: 1fr;
  }
}

.herzen-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.herzen-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-silver-light);
}

.herzen-label-required {
  color: #ff6b81;
}

.herzen-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.herzen-input-icon {
  position: absolute;
  left: 14px;
  color: var(--color-gold-primary);
  pointer-events: none;
  display: flex;
}

.herzen-input-icon svg {
  width: 16px;
  height: 16px;
}

.herzen-input {
  width: 100%;
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.herzen-input--with-icon {
  padding-left: 42px;
}

.herzen-input:focus {
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.herzen-chips-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.herzen-chip {
  cursor: pointer;
}

.herzen-chip input {
  display: none;
}

.herzen-chip-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(5, 14, 29, 0.7);
  border: 1px solid rgba(243, 207, 122, 0.25);
  font-size: 0.82rem;
  color: var(--color-silver-muted);
  transition: all 0.2s ease;
}

.herzen-chip input:checked + .herzen-chip-label {
  background: var(--gradient-gold);
  color: #000;
  font-weight: 600;
  border-color: transparent;
}

.herzen-field-error {
  display: none;
  font-size: 0.75rem;
  color: #ff6b81;
}

.herzen-field-error.is-visible {
  display: block;
}

/* Wide Container for Group Bookings */
.herzen-modal-container--wide {
  max-width: 820px;
}

/* Decorative Palace Corners */
.herzen-modal-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.7;
}

.herzen-modal-corner--tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--color-gold-primary, #d4af37);
  border-left: 2px solid var(--color-gold-primary, #d4af37);
}

.herzen-modal-corner--tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid var(--color-gold-primary, #d4af37);
  border-right: 2px solid var(--color-gold-primary, #d4af37);
}

.herzen-modal-corner--bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid var(--color-gold-primary, #d4af37);
  border-left: 2px solid var(--color-gold-primary, #d4af37);
}

.herzen-modal-corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--color-gold-primary, #d4af37);
  border-right: 2px solid var(--color-gold-primary, #d4af37);
}

/* Interactive Guest Counters (+ / -) */
.herzen-counter {
  display: flex;
  align-items: center;
  height: 46px;
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.herzen-counter-btn {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--color-gold-bright, #ffd700);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.herzen-counter-btn:hover {
  background: rgba(243, 207, 122, 0.2);
  color: #fff;
}

.herzen-counter-value {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  pointer-events: none;
}

/* Custom Checkbox */
.herzen-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
}

.herzen-checkbox-custom {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: rgba(5, 14, 29, 0.85);
  border: 1.5px solid rgba(243, 207, 122, 0.4);
  border-radius: 5px;
  margin-top: 2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.herzen-checkbox-custom svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #07152b;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s ease;
}

.herzen-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.herzen-checkbox-wrap:hover .herzen-checkbox-custom {
  border-color: var(--color-gold-bright, #ffd700);
}

.herzen-checkbox-wrap input[type="checkbox"]:checked + .herzen-checkbox-custom {
  background: var(--gradient-gold, linear-gradient(135deg, #fce08c 0%, #d4af37 100%));
  border-color: var(--color-gold-bright, #ffd700);
  box-shadow: 0 0 10px rgba(243, 207, 122, 0.4);
}

.herzen-checkbox-wrap input[type="checkbox"]:checked + .herzen-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.herzen-checkbox-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-silver-muted, #94a3b8);
}

.herzen-checkbox-text a {
  color: var(--color-gold-bright, #ffd700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Primary Submit Button with Gold Shine Effect */
.herzen-btn-submit {
  position: relative;
  width: 100%;
  height: 52px;
  background: var(--gradient-gold, linear-gradient(135deg, #fce08c 0%, #d4af37 100%));
  border: 1px solid #ffd700;
  border-radius: 12px;
  color: #07152b;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(243, 207, 122, 0.35);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-top: 6px;
}

.herzen-btn-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: herzenGoldShine 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes herzenGoldShine {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

.herzen-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(243, 207, 122, 0.5), 0 0 15px rgba(255, 215, 0, 0.4);
  filter: brightness(1.06);
}

.herzen-btn-submit:active {
  transform: translateY(1px);
}

.herzen-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.5);
}

.herzen-btn-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Submission Loading Spinner Overlay */
.herzen-modal-loading {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 43, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
}

.herzen-modal-loading.is-active {
  opacity: 1;
  visibility: visible;
}

.herzen-spinner {
  width: 64px;
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.herzen-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(243, 207, 122, 0.15);
  border-top-color: var(--color-gold-bright, #ffd700);
  animation: herzenSpin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.herzen-spinner-snowflake {
  width: 30px;
  height: 30px;
  color: var(--color-gold-bright, #ffd700);
  animation: herzenPulse 1.6s ease-in-out infinite;
}

@keyframes herzenSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes herzenPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px var(--color-gold-bright, #ffd700)); }
}

.herzen-loading-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.herzen-loading-text {
  font-size: 13.5px;
  color: var(--color-silver-muted, #94a3b8);
  max-width: 320px;
  margin: 0;
  line-height: 1.4;
}

/* Floating Status Badge (js/waitlist.js) */
.herzen-status-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  background: linear-gradient(135deg, rgba(20, 51, 101, 0.95) 0%, rgba(7, 21, 43, 0.95) 100%);
  border: 1px solid var(--color-gold-primary);
  border-radius: 40px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(243, 207, 122, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.herzen-status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
}

.herzen-status-badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gold-bright);
}

.herzen-status-badge-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.herzen-status-badge-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--color-silver-muted);
}

/* ==============================================================================
   GOLDEN MAGICAL WAITLIST TICKET & ACTIONS
   ============================================================================== */
.herzen-ticket-container {
  padding: 24px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(243, 207, 122, 0.15) 0%, rgba(7, 21, 43, 0.98) 70%);
}

.herzen-ticket-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 20px;
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: herzenFadeInDown 0.5s ease;
}

@keyframes herzenFadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Golden Ticket Voucher Box */
.herzen-ticket {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(135deg, #102547 0%, #08152c 100%);
  border: 2px solid var(--color-gold-primary, #d4af37);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(243, 207, 122, 0.35);
  overflow: hidden;
  margin-bottom: 22px;
}

/* Side Notches / Perforation simulation */
.herzen-ticket-notch {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: rgba(3, 8, 17, 0.95);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.herzen-ticket-notch--left {
  left: -12px;
  border-right: 2px solid var(--color-gold-primary, #d4af37);
}

.herzen-ticket-notch--right {
  right: -12px;
  border-left: 2px solid var(--color-gold-primary, #d4af37);
}

.herzen-ticket-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(circle, #ffd700 10%, transparent 60%);
}

.herzen-ticket-inner {
  margin: 6px;
  border: 1px dashed rgba(243, 207, 122, 0.45);
  border-radius: 10px;
  padding: 22px 24px;
  position: relative;
}

.herzen-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(243, 207, 122, 0.25);
  padding-bottom: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.herzen-ticket-logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.herzen-ticket-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-gold, linear-gradient(135deg, #fce08c 0%, #d4af37 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(243, 207, 122, 0.5);
  color: #07152b;
  flex-shrink: 0;
}

.herzen-ticket-crest svg {
  width: 22px;
  height: 22px;
}

.herzen-ticket-org {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold-bright, #ffd700);
  font-weight: 600;
  margin: 0;
}

.herzen-ticket-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0 0;
}

.herzen-ticket-tier {
  text-align: right;
}

.herzen-ticket-tier-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-ruby-primary, #881326);
  border: 1px solid var(--color-gold-primary, #d4af37);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
}

.herzen-ticket-code-box {
  background: rgba(5, 14, 29, 0.8);
  border: 1px solid rgba(243, 207, 122, 0.4);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.herzen-ticket-code-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-silver-muted, #94a3b8);
  letter-spacing: 0.5px;
}

.herzen-ticket-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold-bright, #ffd700);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.herzen-ticket-copy-btn {
  background: transparent;
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 6px;
  color: var(--color-gold-bright, #ffd700);
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.herzen-ticket-copy-btn:hover {
  background: rgba(243, 207, 122, 0.2);
  color: #ffffff;
}

.herzen-ticket-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

.herzen-ticket-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.herzen-ticket-detail-title {
  font-size: 10.5px;
  color: var(--color-silver-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.herzen-ticket-detail-val {
  font-weight: 600;
  color: #ffffff;
}

.herzen-ticket-privileges {
  background: rgba(243, 207, 122, 0.08);
  border-left: 3px solid var(--color-gold-primary, #d4af37);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #f1f5f9;
  margin-bottom: 16px;
  text-align: left;
}

.herzen-ticket-privileges strong {
  color: var(--color-gold-bright, #ffd700);
}

.herzen-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(243, 207, 122, 0.3);
  padding-top: 12px;
}

.herzen-ticket-barcode-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.herzen-ticket-barcode {
  display: flex;
  align-items: flex-end;
  height: 26px;
  gap: 2px;
}

.herzen-ticket-bar {
  background: var(--color-gold-primary, #d4af37);
  height: 100%;
}

.herzen-ticket-barcode-text {
  font-family: 'Courier New', monospace;
  font-size: 8.5px;
  color: var(--color-gold-bright, #ffd700);
  letter-spacing: 1px;
}

.herzen-ticket-seal {
  font-size: 10px;
  color: var(--color-silver-muted, #94a3b8);
  text-align: right;
}

/* Actions under the Golden Ticket */
.herzen-ticket-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.herzen-btn-ticket-print,
.herzen-btn-ticket-close {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.herzen-btn-ticket-print {
  background: var(--gradient-gold, linear-gradient(135deg, #fce08c 0%, #d4af37 100%));
  border: 1px solid #ffd700;
  color: #07152b;
  box-shadow: 0 4px 15px rgba(243, 207, 122, 0.3);
}

.herzen-btn-ticket-print:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.herzen-btn-ticket-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 207, 122, 0.3);
  color: #ffffff;
}

.herzen-btn-ticket-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold-bright, #ffd700);
}

/* Print Styles for Golden Ticket */
@media print {
  body * {
    visibility: hidden;
  }
  
  .herzen-modal-overlay.is-active,
  .herzen-ticket,
  .herzen-ticket * {
    visibility: visible !important;
  }
  
  .herzen-modal-overlay {
    position: static;
    background: transparent;
    padding: 0;
  }
  
  .herzen-modal-container {
    box-shadow: none;
    border: none;
    max-width: 100%;
    background: #fff !important;
    color: #000 !important;
  }
  
  .herzen-modal-close,
  .herzen-ticket-actions,
  .herzen-ticket-success-badge,
  .herzen-modal-header {
    display: none !important;
  }
  
  .herzen-ticket {
    max-width: 100%;
    border: 2px solid #000;
    color: #000;
    background: #fff !important;
    page-break-inside: avoid;
  }
  
  .herzen-ticket-inner {
    border-color: #444;
  }
  
  .herzen-ticket-name,
  .herzen-ticket-org,
  .herzen-ticket-number,
  .herzen-ticket-detail-val,
  .herzen-ticket-privileges {
    color: #000 !important;
  }
  
  .herzen-ticket-bar {
    background: #000 !important;
  }
}

/* --- Floating Sound Control (js/sound.js) --- */
.floating-sound-control {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 1200;
  background: rgba(7, 21, 43, 0.9);
  border: 1px solid var(--color-gold-primary);
  border-radius: 30px;
  padding: 8px 16px;
  color: var(--color-gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.floating-sound-control:hover {
  background: rgba(16, 42, 82, 0.95);
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
  box-shadow: 0 0 20px rgba(243, 207, 122, 0.35);
}

.sound-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-eq-bars .bar {
  width: 3px;
  background: var(--color-gold-primary);
  border-radius: 2px;
}

.sound-eq-bars .bar-1 { height: 6px; }
.sound-eq-bars .bar-2 { height: 12px; }
.sound-eq-bars .bar-3 { height: 8px; }
.sound-eq-bars .bar-4 { height: 14px; }

/* ==============================================================================
   STREAMLINED NEW YEAR LANDING PAGE COMPONENTS
   ============================================================================== */

/* Brand Header without Menu (.palace-brand-header, .site-header) */
.palace-brand-header,
.site-header.palace-brand-header {
  position: relative;
  z-index: 50;
  padding: clamp(16px, 3.5vw, 32px) clamp(8px, 2.5vw, 20px) 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: auto !important;
}

.brand-crest-center {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2.2vw, 16px);
  background: rgba(7, 21, 43, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(6px, 1.8vw, 10px) clamp(14px, 3.2vw, 28px);
  border-radius: 999px;
  border: 1px solid rgba(243, 207, 122, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 18px rgba(243, 207, 122, 0.12);
  max-width: 100%;
  box-sizing: border-box;
}

.brand-crest-center .crest-svg {
  width: clamp(32px, 8vw, 48px);
  height: clamp(32px, 8vw, 48px);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-uni-name {
  font-family: var(--font-serif);
  font-size: clamp(0.74rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: clamp(0.01em, 0.1vw, 0.04em);
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub-name {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  color: #ffffff;
  opacity: 0.92;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 350px) {
  .brand-uni-name {
    font-size: 0.72rem;
    letter-spacing: 0;
  }
}

/* Hero Single Action Button */
.hero-single-action {
  margin-top: clamp(20px, 4.5vw, 36px);
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.hero-single-action .btn {
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  padding: clamp(13px, 3vw, 18px) clamp(18px, 4vw, 42px);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  font-weight: 700;
  letter-spacing: clamp(0.01em, 0.2vw, 0.03em);
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(243, 207, 122, 0.35), 0 0 25px rgba(255, 215, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  cursor: pointer;
  max-width: 380px;
  width: 100%;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

.hero-single-action .btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(243, 207, 122, 0.5), 0 0 35px rgba(255, 215, 0, 0.4);
}

.hero-single-action .btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* FAQ Icon SVG */
.faq-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(243, 207, 122, 0.12);
  border: 1px solid rgba(243, 207, 122, 0.3);
  color: var(--color-gold-bright);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-svg {
  transform: rotate(45deg);
  background: var(--color-gold-bright);
  color: #07152b;
}

/* Directions & Metro Section */
.directions-section {
  padding: 80px 0 100px;
  position: relative;
  z-index: 10;
}

.directions-section .section-heading {
  margin-bottom: 28px;
}

.metro-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metro-station-card {
  background: rgba(7, 21, 43, 0.72);
  border: 1px solid rgba(243, 207, 122, 0.24);
  border-radius: 18px;
  padding: 20px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.metro-station-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 207, 122, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(243, 207, 122, 0.15);
}

.metro-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metro--blue {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 2px #ffffff;
}

.metro--green {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 2px #ffffff;
}

.metro--purple {
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 2px #ffffff;
}

.metro-station-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.metro-name {
  font-family: var(--font-serif, "Cinzel", "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.metro-line-sub {
  font-size: 0.82rem;
  color: var(--color-gold-bright, #f3cf7a);
  font-weight: 500;
  line-height: 1.3;
}

.metro-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 6px;
  background: rgba(243, 207, 122, 0.08);
  border: 1px solid rgba(243, 207, 122, 0.22);
  padding: 4px 10px;
  border-radius: 8px;
  width: fit-content;
  white-space: nowrap;
}

/* Campus Access Card with Gate Photo */
.campus-access-card {
  background: rgba(11, 29, 58, 0.88);
  border: 1px solid rgba(243, 207, 122, 0.35);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.campus-access-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(243, 207, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Photo Wrapper & Frame */
.access-photo-wrapper {
  position: relative;
  width: 100%;
}

.access-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(243, 207, 122, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(243, 207, 122, 0.12);
  background: #07152b;
  aspect-ratio: 16 / 10;
  width: 100%;
}

.access-gate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.campus-access-card:hover .access-gate-img {
  transform: scale(1.04);
}

.access-photo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(7, 21, 43, 0.9);
  border: 1px solid rgba(243, 207, 122, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold-bright, #f3cf7a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  text-align: center;
  white-space: nowrap;
}

.access-photo-badge svg {
  flex-shrink: 0;
  color: var(--color-gold, #d4af37);
}

/* Details column */
.access-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.access-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.access-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(243, 207, 122, 0.15);
  border: 1px solid rgba(243, 207, 122, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright, #f3cf7a);
  flex-shrink: 0;
  margin-top: 2px;
}

.access-text {
  flex: 1;
  min-width: 0;
}

.access-title {
  font-family: var(--font-serif, "Cinzel", "Cormorant Garamond", Georgia, serif);
  font-size: 1.25rem;
  color: var(--color-gold-bright, #f3cf7a);
  margin-bottom: 8px;
  line-height: 1.3;
}

.access-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 16px;
}

.access-desc strong {
  color: #ffffff;
}

.access-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.access-route-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 207, 122, 0.25);
  color: #cbd5e1;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
}

.access-route-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold, #d4af37);
}

.access-route-badge.highlight {
  background: rgba(243, 207, 122, 0.12);
  border-color: rgba(243, 207, 122, 0.45);
  color: var(--color-gold-bright, #f3cf7a);
}

.access-action {
  display: flex;
  align-items: center;
  width: 100%;
}

.btn-yandex-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #fc3f1d 0%, #e02404 100%);
  color: #ffffff;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(252, 63, 29, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.btn-yandex-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(252, 63, 29, 0.5);
  color: #fff;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 860px) {
  .directions-section {
    padding: 60px 0 80px;
  }

  .directions-section .section-heading {
    margin-bottom: 22px;
  }

  .metro-cards-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .metro-station-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .campus-access-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
    border-radius: 20px;
  }

  .access-photo-frame {
    aspect-ratio: 16 / 10;
  }

  .access-details-col {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .access-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .access-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .access-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .access-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .access-desc {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .access-badges-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .access-route-badge {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .btn-yandex-map {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .directions-section {
    padding: 44px 0 60px;
  }

  .directions-section .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .directions-section .section-heading {
    margin-bottom: 18px;
  }

  .directions-venue-subtitle {
    margin-top: 8px;
    padding: 0 4px;
  }

  .venue-title-line {
    font-size: 1.1rem;
    text-align: center;
  }

  .venue-address-line {
    font-size: 0.86rem;
    text-align: center;
    line-height: 1.35;
  }

  .metro-cards-row {
    gap: 10px;
    margin-bottom: 18px;
  }

  .metro-station-card {
    padding: 13px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .metro-dot {
    width: 13px;
    height: 13px;
    margin-top: 3px;
  }

  .metro-name {
    font-size: 1.05rem;
  }

  .metro-line-sub {
    font-size: 0.78rem;
  }

  .metro-time-badge {
    font-size: 0.78rem;
    padding: 3px 8px;
    margin-top: 4px;
  }

  .campus-access-card {
    padding: 16px 14px;
    border-radius: 16px;
    gap: 16px;
  }

  .access-photo-frame {
    border-radius: 12px;
    aspect-ratio: 16 / 10;
  }

  .access-photo-badge {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
    gap: 6px;
  }

  .access-title {
    font-size: 1.08rem;
  }

  .access-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .access-route-badge {
    font-size: 0.78rem;
    padding: 7px 10px;
    border-radius: 10px;
    gap: 6px;
  }

  .btn-yandex-map {
    font-size: 0.85rem;
    padding: 12px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .directions-section .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .campus-access-card {
    padding: 14px 10px;
  }

  .metro-station-card {
    padding: 12px 12px;
  }

  .metro-name {
    font-size: 0.98rem;
  }

  .venue-title-line {
    font-size: 1.02rem;
  }

  .venue-address-line {
    font-size: 0.82rem;
  }

  .btn-yandex-map {
    font-size: 0.8rem;
    padding: 11px 10px;
    gap: 6px;
  }
}

/* Social Modal Overlay & Dialog */
.social-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.social-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: auto 0;
  background: linear-gradient(145deg, rgba(13, 39, 76, 0.96) 0%, rgba(7, 21, 43, 0.98) 100%);
  border: 1.5px solid rgba(243, 207, 122, 0.4);
  border-radius: 24px;
  padding: 34px 26px 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(243, 207, 122, 0.2);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 207, 122, 0.35) transparent;
}

.social-modal-card::-webkit-scrollbar {
  width: 6px;
}

.social-modal-card::-webkit-scrollbar-track {
  background: rgba(3, 10, 24, 0.4);
  border-radius: 3px;
}

.social-modal-card::-webkit-scrollbar-thumb {
  background: rgba(243, 207, 122, 0.35);
  border-radius: 3px;
}

.social-modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(243, 207, 122, 0.6);
}

.social-modal-overlay.open .social-modal-card {
  transform: scale(1) translateY(0);
}

/* Close button with minimum 44x44px touch target */
.social-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  z-index: 15;
  touch-action: manipulation;
}

.social-modal-close:hover {
  background: rgba(243, 207, 122, 0.25);
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
  transform: rotate(90deg);
}

.social-modal-close:active {
  transform: rotate(90deg) scale(0.92);
}

.modal-badge-decor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 207, 122, 0.12);
  border: 1px solid rgba(243, 207, 122, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.social-modal-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.social-modal-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Resource Selector Tabs: VK and MAX (Centered, Adaptive 2-col Grid) */
.social-tabs,
.social-tabs-2cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 20px;
  background: rgba(5, 14, 29, 0.65);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.social-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.social-tab-btn .tab-net-icon {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-gold-primary);
  background: rgba(243, 207, 122, 0.12);
  border: 1px solid rgba(243, 207, 122, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
}

.social-tab-btn.active {
  background: rgba(243, 207, 122, 0.2);
  color: #ffffff;
  border: 1px solid rgba(243, 207, 122, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.social-tab-btn.active .tab-net-icon {
  background: var(--color-gold-bright);
  color: #07152b;
  border-color: var(--color-gold-bright);
}

/* QR Code Display Area */
.social-qr-display-box {
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.2);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.qr-target-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--color-gold-bright);
  margin-bottom: 14px;
}

.qr-frame-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.qr-canvas-holder {
  width: 180px;
  height: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas-holder img,
.qr-canvas-holder canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.qr-scan-instruction {
  font-size: 0.84rem;
  color: var(--color-silver-dim);
  margin-bottom: 16px;
}

.qr-direct-action {
  width: 100%;
}

.qr-direct-action .btn {
  width: 100%;
  padding: 13px 20px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile & Short-Height Adaptations for Social Modal */
@media (max-width: 480px) {
  .social-modal-overlay {
    padding: 12px 10px;
  }
  .social-modal-card {
    padding: 26px 16px 20px;
    border-radius: 20px;
  }
  .social-modal-close {
    top: 10px;
    right: 10px;
  }
  .social-modal-title {
    font-size: 1.4rem;
  }
  .social-modal-desc {
    font-size: 0.86rem;
    margin-bottom: 16px;
  }
  .qr-canvas-holder {
    width: 154px;
    height: 154px;
  }
  .qr-canvas-holder img,
  .qr-canvas-holder canvas {
    max-width: 154px;
    max-height: 154px;
  }
}

@media (max-width: 360px) {
  .social-modal-card {
    padding: 22px 12px 16px;
  }
  .social-tabs,
  .social-tabs-2cols {
    gap: 6px;
    padding: 4px;
  }
  .social-tab-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .qr-canvas-holder {
    width: 136px;
    height: 136px;
  }
  .qr-canvas-holder img,
  .qr-canvas-holder canvas {
    max-width: 136px;
    max-height: 136px;
  }
  .qr-frame-wrapper {
    padding: 8px;
  }
}

@media (max-height: 600px) {
  .social-modal-overlay {
    align-items: flex-start;
    padding: 8px;
  }
  .social-modal-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 16px;
    margin: auto 0;
  }
  .modal-badge-decor {
    margin-bottom: 4px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .social-modal-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }
  .social-modal-desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }
  .social-tabs,
  .social-tabs-2cols {
    margin-bottom: 10px;
    padding: 3px;
  }
  .social-tab-btn {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .social-qr-display-box {
    padding: 12px 10px;
  }
  .qr-target-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  .qr-frame-wrapper {
    padding: 8px;
    margin-bottom: 8px;
  }
  .qr-canvas-holder {
    width: 124px;
    height: 124px;
  }
  .qr-canvas-holder img,
  .qr-canvas-holder canvas {
    max-width: 124px;
    max-height: 124px;
  }
  .qr-scan-instruction {
    font-size: 0.76rem;
    margin-bottom: 10px;
  }
  .qr-direct-action .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}


/* ==============================================================================
   PROGRAM DATES TABLE & SCREENSHOT 1 & 2 ENHANCEMENTS
   ============================================================================== */

/* Brand Logo from Brandbook */
.brand-logo-img {
  height: clamp(34px, 8.5vw, 52px);
  width: auto;
  max-width: clamp(38px, 10vw, 68px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

/* Countdown Label and 2-line venue text */
.countdown-heading-label {
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 2.4vw, 1.15rem);
  color: var(--color-gold-bright);
  letter-spacing: clamp(0.01em, 0.1vw, 0.03em);
  margin-bottom: clamp(12px, 2.8vw, 20px);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 12px rgba(243, 207, 122, 0.3);
  padding: 0 clamp(4px, 1.5vw, 12px);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.ice-countdown-footer {
  margin-top: clamp(12px, 2.8vw, 18px);
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.ice-venue-hint {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vw, 10px);
  text-align: left;
  color: var(--color-silver-dim);
  max-width: 100%;
  box-sizing: border-box;
}

.ice-venue-hint svg {
  flex-shrink: 0;
  color: var(--color-gold-bright);
  width: clamp(16px, 4vw, 18px);
  height: clamp(16px, 4vw, 18px);
  margin-top: 2px;
}

.venue-hint-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  line-height: 1.2;
  min-width: 0;
  flex: 1 1 auto;
}

.venue-hint-name {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1.2;
  margin: 0;
  padding: 0;
  word-break: normal;
}

.venue-hint-address {
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  color: var(--color-silver-muted);
  line-height: 1.25;
  margin: 0;
  padding: 0;
  word-break: normal;
}

/* Directions Subtitle 2 lines & in center of SPb */
.directions-venue-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  line-height: 1.2;
}

.venue-title-line {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1.2;
  margin: 0;
}

.venue-address-line {
  font-size: 0.95rem;
  color: var(--color-silver-dim);
  line-height: 1.2;
  margin: 0;
}

/* Dates Section & Table (Screenshot 2) */
.dates-section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .dates-section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .dates-section {
    padding: 40px 0;
  }
}

.dates-table-card {
  position: relative;
  background: rgba(7, 21, 43, 0.82);
  border: 1.5px solid rgba(243, 207, 122, 0.35);
  border-radius: 24px;
  padding: 34px 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(243, 207, 122, 0.12);
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 600px) {
  .dates-table-card {
    padding: 24px 14px;
    border-radius: 20px;
  }
}

@media (max-width: 380px) {
  .dates-table-card {
    padding: 18px 10px;
    border-radius: 16px;
  }
}

/* Palace Corner Vignettes (XVIII Century Classicism) */
.dates-table-card::before,
.dates-table-card::after,
.palace-corner-vignette {
  content: "";
  position: absolute;
  top: 6px;
  width: 76px;
  height: 76px;
  background: url('../assets/decorations/palace-corner-vignette.svg') no-repeat center / contain;
  pointer-events: none;
  z-index: 5;
  opacity: 0.92;
  transition: opacity 0.3s ease, filter 0.3s ease;
  max-width: 25%;
}

.dates-table-card::before,
.palace-corner-vignette-tl {
  left: 6px;
}

.dates-table-card::after,
.palace-corner-vignette-tr {
  right: 6px;
  transform: scaleX(-1);
}

.dates-table-card:hover::before,
.dates-table-card:hover::after {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

@media (max-width: 600px) {
  .dates-table-card::before,
  .dates-table-card::after,
  .palace-corner-vignette {
    width: 38px;
    height: 38px;
    top: 4px;
    opacity: 0.7;
  }

  .dates-table-card::before,
  .palace-corner-vignette-tl {
    left: 4px;
  }

  .dates-table-card::after,
  .palace-corner-vignette-tr {
    right: 4px;
  }
}

/* Disable vignettes on mobile screens <= 400px to prevent horizontal squeeze and text collision */
@media (max-width: 400px) {
  .dates-table-card::before,
  .dates-table-card::after,
  .palace-corner-vignette {
    display: none !important;
  }
}

.dates-table-header-block {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 207, 122, 0.2);
}

.dates-table-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-gold-bright);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.dates-table-sub {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.dates-table-sub strong {
  color: var(--color-gold-bright);
}

@media (max-width: 600px) {
  .dates-table-header-block {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .dates-table-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .dates-table-sub {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .dates-table-title {
    font-size: 1.25rem;
  }

  .dates-table-sub {
    font-size: 0.82rem;
  }
}

/* ==============================================================================
   Filter & Period Switcher Chips (Palace Golden Aesthetic)
   ============================================================================== */
.dates-filter-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 auto 28px auto !important;
  padding: 12px 16px !important;
  width: 100% !important;
  max-width: 720px !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

.dates-filter-chip {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  font-family: var(--font-sans, 'Montserrat', sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #e2e8f0 !important;
  background: rgba(11, 29, 58, 0.88) !important;
  border: 1.5px solid rgba(243, 207, 122, 0.38) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-align: center !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  outline: none !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.dates-filter-chip svg {
  flex-shrink: 0 !important;
  color: #f3cf7a !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.dates-filter-chip:hover {
  border-color: #ffd700 !important;
  color: #ffffff !important;
  background: rgba(243, 207, 122, 0.2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(243, 207, 122, 0.35) !important;
}

.dates-filter-chip:hover svg {
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

.dates-filter-chip.active,
.dates-filter-chip[aria-selected="true"] {
  background: linear-gradient(135deg, #ffd700 0%, #e5be6b 50%, #c99a3e 100%) !important;
  color: #07152b !important;
  font-weight: 700 !important;
  border-color: #ffe699 !important;
  box-shadow: 0 4px 18px rgba(243, 207, 122, 0.45), 0 0 12px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dates-filter-chip.active svg,
.dates-filter-chip[aria-selected="true"] svg {
  color: #07152b !important;
}

@media (max-width: 600px) {
  .dates-filter-bar {
    justify-content: center !important;
    gap: 10px 8px !important;
    margin: 0 auto 20px auto !important;
    padding: 8px 10px !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .dates-filter-chip {
    flex-shrink: 0 !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    font-size: 0.86rem !important;
  }
}

/* Ensure legacy / alternative filter selectors follow strict 44px touch targets */
.schedule-filters .filter-btn,
.schedule-filter-pills .filter-pill-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .schedule-filters,
  .schedule-filter-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
}

.dates-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .dates-columns-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.dates-col {
  background: rgba(5, 14, 29, 0.65);
  border: 1px solid rgba(243, 207, 122, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dates-col.dates-col-hidden {
  display: none !important;
}

.dates-col-header {
  background: linear-gradient(135deg, rgba(243, 207, 122, 0.18) 0%, rgba(196, 30, 58, 0.15) 100%);
  padding: 14px 20px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold-bright);
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(243, 207, 122, 0.25);
  letter-spacing: 0.04em;
}

.dates-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.date-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.date-row-item:last-child {
  border-bottom: none;
}

.date-row-item:hover {
  background: rgba(243, 207, 122, 0.08);
}

.date-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.date-dow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  letter-spacing: 0.02em;
}

.date-sessions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.session-morning {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.session-morning:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.6);
}

.session-afternoon {
  background: rgba(243, 207, 122, 0.18);
  border: 1px solid rgba(243, 207, 122, 0.4);
  color: var(--color-gold-bright);
}

.session-afternoon:hover {
  background: rgba(243, 207, 122, 0.28);
  border-color: rgba(243, 207, 122, 0.65);
}

/* Card-like transformation on mobile screens (<= 580px) */
@media (max-width: 580px) {
  .date-row-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(243, 207, 122, 0.12);
  }

  .date-val {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.1rem;
  }

  .date-dow {
    font-size: 0.8rem;
    background: rgba(243, 207, 122, 0.12);
    border: 1px solid rgba(243, 207, 122, 0.26);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .date-sessions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .session-pill {
    min-height: 42px;
    padding: 8px 6px;
    font-size: 0.82rem;
    border-radius: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Ultra-narrow screens (<= 350px, e.g. 320px) */
@media (max-width: 350px) {
  .date-row-item {
    padding: 10px 8px;
    gap: 7px;
  }

  .date-val {
    font-size: 1.05rem;
  }

  .date-sessions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .session-pill {
    min-height: 44px;
    font-size: 0.82rem;
    padding: 10px 8px;
  }
}

/* Horizontal scroll wrapper alternative (for wide schedule tables) */
.dates-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 207, 122, 0.4) rgba(7, 21, 43, 0.6);
}

.dates-scroll-wrap::-webkit-scrollbar {
  height: 6px;
}

.dates-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(7, 21, 43, 0.6);
  border-radius: 3px;
}

.dates-scroll-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(243, 207, 122, 0.3), rgba(255, 215, 0, 0.7));
  border-radius: 3px;
}

.dates-scroll-hint {
  display: none;
  font-size: 0.76rem;
  color: var(--color-gold-bright);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .dates-scroll-hint {
    display: block;
  }
}

.dates-action-wrap {
  margin-top: 28px;
  text-align: center;
}

.dates-action-wrap .btn {
  max-width: 100%;
  white-space: normal;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
}

@media (max-width: 480px) {
  .dates-action-wrap {
    margin-top: 20px;
  }
  .dates-action-wrap .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.92rem;
  }
}

/* Social Modal updated for 2 tabs (VK, MAX) */
.social-tabs-2cols {
  grid-template-columns: repeat(2, 1fr) !important;
}


/* ==============================================================================
   3D COVERFLOW CIRCULAR CAROUSEL GALLERY (Елки прошлых лет)
   ============================================================================== */

.gallery-section {
  position: relative;
  z-index: 10;
  padding: 80px 0 90px;
  overflow: hidden;
}

.gallery-section .section-heading {
  margin-bottom: 16px;
}

.gallery-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3D Stage */
.palace-carousel-stage {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1400px;
  perspective-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 16px;
  user-select: none;
}

.carousel-track-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide Card (Adaptive 3:2 Aspect Ratio Preserved) */
.carousel-slide {
  position: absolute;
  width: 580px;
  max-width: 80vw;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease,
              filter 0.6s ease;
  will-change: transform, opacity;
}

.slide-card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(7, 21, 43, 0.85);
  border: 1.5px solid rgba(243, 207, 122, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Image framing: center 25% keeps faces, crowns and decorations in view */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  pointer-events: none;
}

/* Active Slide Accent (Central enlarged) */
.carousel-slide.is-active .slide-card-frame {
  border: 2px solid var(--color-gold-bright);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 35px rgba(243, 207, 122, 0.35);
  cursor: zoom-in;
}

.slide-overlay-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 21, 43, 0.5) 100%);
  transition: opacity 0.3s ease;
}

/* Slide Caption Overlay (Disabled - photos are not signed) */
.slide-caption {
  display: none !important;
}

.slide-caption-text {
  display: none !important;
}

/* Navigation Arrows (Safe Boundaries & Minimum 44x44px Clickable Zone) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(7, 21, 43, 0.88);
  border: 1.5px solid rgba(243, 207, 122, 0.5);
  color: var(--color-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(243, 207, 122, 0.2);
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.carousel-arrow:hover {
  background: var(--gradient-gold);
  color: #07152b;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 30px rgba(243, 207, 122, 0.45);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
  left: 20px;
}

.carousel-arrow-next {
  right: 20px;
}

/* Controls Bottom: Dots with >= 44x44px Touch Targets */
.carousel-controls-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 450px;
  padding: 4px;
}

.carousel-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(243, 207, 122, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

/* Extended 44px touch target for fingertip tap */
.carousel-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 44px;
  min-width: 38px;
  min-height: 44px;
}

.carousel-dot:hover {
  background: rgba(243, 207, 122, 0.65);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Lightbox Modal for Zooming Photos */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.gallery-lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomLightbox 0.35s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes zoomLightbox {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1.5px solid rgba(243, 207, 122, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(243, 207, 122, 0.2);
}

.lightbox-caption {
  display: none !important;
}

/* Lightbox close button with >= 44x44px target */
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(7, 21, 43, 0.85);
  border: 1.5px solid rgba(243, 207, 122, 0.45);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--color-ice-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 25;
  touch-action: manipulation;
}

.lightbox-close:hover {
  background: var(--color-gold-bright);
  color: #07152b;
  transform: rotate(90deg);
}

/* Mobile & Tablet Adjustments */
@media (max-width: 1024px) {
  .palace-carousel-stage {
    height: 410px;
  }
  .carousel-slide {
    width: 460px;
    max-width: 78vw;
  }
  .carousel-arrow-prev {
    left: 14px;
  }
  .carousel-arrow-next {
    right: 14px;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 68px 0 78px;
  }
  .gallery-container {
    padding: 0 14px;
  }
  .palace-carousel-stage {
    height: 350px;
    margin: 4px auto 12px;
  }
  .carousel-slide {
    width: 380px;
    max-width: 76vw;
  }
  .carousel-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .carousel-arrow-prev {
    left: 10px;
  }
  .carousel-arrow-next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(7, 21, 43, 0.92);
    border-color: var(--color-gold-bright);
    color: var(--color-gold-bright);
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 56px 0 66px;
  }
  .gallery-container {
    padding: 0 10px;
  }
  .palace-carousel-stage {
    height: 280px;
    margin: 0 auto 10px;
  }
  .carousel-slide {
    width: min(310px, 74vw);
    border-radius: 16px;
  }
  .slide-card-frame {
    border-radius: 16px;
  }
  .carousel-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  .carousel-arrow-prev {
    left: 4px;
  }
  .carousel-arrow-next {
    right: 4px;
  }
  .carousel-dots {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .palace-carousel-stage {
    height: 250px;
  }
  .carousel-slide {
    width: min(265px, 72vw);
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .carousel-arrow-prev {
    left: 2px;
  }
  .carousel-arrow-next {
    right: 2px;
  }
  .carousel-dots {
    gap: 4px;
  }
  .carousel-dot::after {
    width: 32px;
    height: 44px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .gallery-section {
    padding: 40px 0 50px;
  }
  .palace-carousel-stage {
    height: 220px;
  }
  .carousel-slide {
    width: min(290px, 45vw);
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ==========================================================================
   Floating Mini-CTA Button (Golden Glassmorphism Capsule)
   ========================================================================== */
.floating-cta-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(15, 39, 77, 0.88) 0%, rgba(7, 21, 43, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(243, 207, 122, 0.55);
  border-radius: 50px;
  color: var(--color-gold-light, #fff2c6);
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 
              0 0 20px rgba(243, 207, 122, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.4s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Pulsing Golden Aura */
.floating-cta-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 54px;
  background: var(--gradient-gold, linear-gradient(135deg, #fff2c6 0%, #ffd700 30%, #d4af37 70%, #997316 100%));
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: floatingCtaGlow 2.8s ease-in-out infinite;
}

@keyframes floatingCtaGlow {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.02);
  }
}

/* Bell Icon */
.floating-cta-icon {
  flex-shrink: 0;
  color: var(--color-gold-bright, #ffd700);
  transition: transform 0.3s ease;
  display: block;
}

/* Button Text with Luxury Gold Gradient */
.floating-cta-text {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-weight: 600;
  color: var(--color-gold-light, #fff2c6);
  line-height: 1;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .floating-cta-text {
    background: var(--gradient-gold-text, linear-gradient(135deg, #ffffff 0%, #ffe699 30%, #ffd700 70%, #ffffff 100%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Visible State (Triggered on Scroll > 400px) */
.floating-cta-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Hover & Focus Interactions */
.floating-cta-btn:hover {
  background: linear-gradient(135deg, rgba(20, 51, 101, 0.95) 0%, rgba(11, 29, 58, 0.98) 100%);
  border-color: var(--color-gold-bright, #ffd700);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 
              0 0 32px rgba(255, 215, 0, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) scale(1.02);
}

.floating-cta-btn:hover::before {
  opacity: 0.75;
  filter: blur(10px);
}

.floating-cta-btn:hover .floating-cta-icon {
  animation: bellSway 0.6s ease-in-out infinite alternate;
}

@keyframes bellSway {
  0% {
    transform: rotate(-12deg);
  }
  100% {
    transform: rotate(12deg);
  }
}

.floating-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-cta-btn:focus-visible {
  outline: 2px solid var(--color-gold-bright, #ffd700);
  outline-offset: 4px;
}

/* Responsive: Mobile & Small Tablets */
@media (max-width: 640px) {
  .floating-cta-btn {
    right: auto;
    left: 50%;
    transform: translate(-50%, 24px) scale(0.96);
    width: calc(100% - 32px);
    max-width: 360px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 48px;
    bottom: calc(16px + constant(safe-area-inset-bottom, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .floating-cta-btn.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .floating-cta-btn:hover {
    transform: translate(-50%, -2px) scale(1.01);
  }

  .floating-cta-btn:active {
    transform: translate(-50%, 0) scale(0.98);
  }

  /* Safe padding on the last page section so floating button never obscures content */
  .routes-section {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .floating-cta-btn {
    padding: 10px 16px;
    font-size: 0.84rem;
    min-height: 46px;
    gap: 8px;
    width: calc(100% - 24px);
    max-width: 320px;
  }
}

/* Hide Floating CTA when Social Modal is open */
body.modal-open .floating-cta-btn,
.social-modal-overlay.open ~ .floating-cta-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==============================================================================
   3D TILT & GLASS SPECULAR SHEEN (Desktop Interactive Effect)
   Delicate 3D tilt (2-3 deg) with Lerp interpolation & golden specular sheen
   Disabled automatically on mobile/touch devices (hover: none)
   ============================================================================== */

/* Base card positioning and custom CSS properties */
.dates-table-card,
.metro-station-card,
.faq-item {
  position: relative;
  overflow: hidden;
  --sheen-x: 50%;
  --sheen-y: 50%;
  --sheen-opacity: 0;
}

/* Desktop: 3D hardware acceleration & Specular Sheen pseudo-element */
@media (hover: hover) and (pointer: fine) {
  .dates-table-card,
  .metro-station-card,
  .faq-item {
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  }

  /* Prevent CSS transform conflict with JS Lerp on desktop hover */
  .metro-station-card:hover {
    transform: none;
    border-color: rgba(243, 207, 122, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(243, 207, 122, 0.2);
  }

  .dates-table-card:hover {
    border-color: rgba(243, 207, 122, 0.6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(243, 207, 122, 0.18);
  }

  .faq-item:hover {
    border-color: rgba(243, 207, 122, 0.5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(243, 207, 122, 0.15);
  }

  /* Glass Specular Sheen Overlay */
  .metro-station-card::after,
  .faq-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(
      circle 320px at var(--sheen-x, 50%) var(--sheen-y, 50%),
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 242, 198, 0.16) 22%,
      rgba(243, 207, 122, 0.08) 45%,
      transparent 75%
    );
    opacity: var(--sheen-opacity, 0);
    transition: opacity 0.35s ease;
  }
}

/* Touch devices & small screens: completely disable 3D tilt & sheen to preserve 60/120fps native scroll */
@media (hover: none), (pointer: coarse) {
  .dates-table-card,
  .metro-station-card,
  .faq-item {
    transform: none !important;
    perspective: none !important;
  }

  .metro-station-card::after,
  .faq-item::after {
    display: none !important;
  }
}

/* ==============================================================================
   PALACE HALLS MARQUEE SECTION & LIGHTBOX (Infinite Continuous Motion)
   Definitive Conflict-Free & High-Specificity Architecture
   ============================================================================== */
.section.palace-halls-section {
  position: relative;
  z-index: 10;
  padding: clamp(52px, 7vw, 96px) 0 clamp(44px, 6vw, 84px);
  overflow: hidden;
  background: transparent;
}

.palace-halls-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

.palace-halls-section .section-heading {
  padding: 0 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.palace-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 26px);
  position: relative;
  overflow: hidden;
  padding: 22px 0 clamp(22px, 3.2vw, 34px);
  width: 100%;
}

.palace-marquee-row {
  display: flex;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  padding: 16px 0;
  margin: -16px 0;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  flex-shrink: 0;
  padding-right: clamp(14px, 2vw, 22px);
  box-sizing: border-box;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Elevate hovered/focused group stacking layer */
.marquee-group:hover,
.marquee-group:focus-within {
  z-index: 2;
  position: relative;
}

/* Row 1: Leftward continuous scroll */
.palace-marquee-row-1 .marquee-group {
  animation: palaceMarqueeLeft 56s linear infinite;
}

/* Row 2: Rightward continuous scroll */
.palace-marquee-row-2 .marquee-group {
  animation: palaceMarqueeRight 56s linear infinite;
}

/* Pause on hover or focus */
.palace-marquee-row:hover .marquee-group,
.palace-marquee-row:focus-within .marquee-group {
  animation-play-state: paused;
}

@keyframes palaceMarqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes palaceMarqueeRight {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Palace Hall Card:
   - Negative spread (-10px) eliminates lateral shadow spill into the gap between cards,
     completely removing the dark vertical column artifact while keeping bottom depth.
   - 1px border eliminates fractional subpixel antialiasing edge fringes.
   - isolation: isolate prevents WebKit transform bleed.
*/
.palace-hall-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(260px, 22vw, 380px);
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(11, 29, 58, 0.7);
  border: 1px solid rgba(243, 207, 122, 0.28);
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
  outline: none;
  touch-action: manipulation;
  box-sizing: border-box;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.palace-hall-card:hover,
.palace-hall-card:focus-visible {
  transform: translateY(-6px) scale(1.03);
  border-color: #ffd700;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 0 24px rgba(243, 207, 122, 0.4);
  z-index: 10;
}

.palace-hall-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: none !important;
}

.hall-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 21, 43, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.palace-hall-card:hover .hall-card-overlay,
.palace-hall-card:focus-visible .hall-card-overlay {
  opacity: 1;
}

.hall-zoom-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 29, 58, 0.88);
  border: 1.5px solid rgba(243, 207, 122, 0.65);
  color: #ffd700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(243, 207, 122, 0.4);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.palace-hall-card:hover .hall-zoom-pill,
.palace-hall-card:focus-visible .hall-zoom-pill {
  transform: scale(1);
}

/* Lightbox Modal */
.palace-halls-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.palace-halls-lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.halls-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 26, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.halls-lightbox-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.halls-lightbox-stage {
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halls-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1.5px solid rgba(243, 207, 122, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(243, 207, 122, 0.25);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}

.halls-lightbox-counter {
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3cf7a;
  letter-spacing: 0.08em;
  background: rgba(11, 29, 58, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.35);
  padding: 5px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.halls-lightbox-btn {
  position: absolute;
  background: rgba(11, 29, 58, 0.85);
  border: 1.5px solid rgba(243, 207, 122, 0.45);
  border-radius: 50%;
  color: #ffd700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-width: 44px;
  min-height: 44px;
  outline: none;
  touch-action: manipulation;
}

.halls-lightbox-btn:hover {
  background: rgba(243, 207, 122, 0.25);
  border-color: #ffd700;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(243, 207, 122, 0.4);
}

.halls-lightbox-close {
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
}

.halls-lightbox-prev {
  top: 50%;
  left: -24px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.halls-lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.halls-lightbox-next {
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.halls-lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Hide Floating Mini-CTA when Lightbox is open */
.palace-halls-lightbox-modal.open ~ .floating-cta-btn,
body:has(.palace-halls-lightbox-modal.open) .floating-cta-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .palace-marquee-row-1 .marquee-group { animation-duration: 42s; }
  .palace-marquee-row-2 .marquee-group { animation-duration: 42s; }
  .palace-hall-card {
    width: clamp(230px, 62vw, 300px);
    border-radius: 12px;
    border-width: 1px;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .halls-lightbox-prev {
    left: 8px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .halls-lightbox-prev:hover { transform: scale(1.05); }
  .halls-lightbox-next {
    right: 8px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .halls-lightbox-next:hover { transform: scale(1.05); }
  .halls-lightbox-close {
    top: -46px;
    right: 4px;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .palace-marquee-row-1 .marquee-group,
  .palace-marquee-row-2 .marquee-group {
    animation: none !important;
  }
  .palace-marquee-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .palace-hall-card {
    scroll-snap-align: start;
  }
}





/* ==============================================================================
   HOTEL COLLABORATION SECTION (Palace Heritage Aesthetic)
   Гостиница РГПУ им. А. И. Герцена — Казанская ул., 6
   ============================================================================== */
.hotel-section {
  position: relative;
  z-index: 5;
  padding: clamp(48px, 6vw, 84px) 0;
}

.hotel-palace-card {
  position: relative;
  background: rgba(7, 21, 43, 0.85);
  border: 1.5px solid rgba(243, 207, 122, 0.35);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.5vw, 40px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(243, 207, 122, 0.12);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hotel-card-header {
  margin-bottom: 32px;
}

.hotel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(243, 207, 122, 0.12);
  border: 1px solid rgba(243, 207, 122, 0.4);
  color: var(--color-gold-bright, #f3cf7a);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hotel-badge svg {
  color: #ffd700;
  flex-shrink: 0;
}

.hotel-card-title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hotel-card-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 720px;
}

.hotel-card-address svg {
  color: #f3cf7a;
  flex-shrink: 0;
}

.hotel-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.hotel-pillar-card {
  background: rgba(11, 29, 58, 0.65);
  border: 1px solid rgba(243, 207, 122, 0.2);
  border-radius: 16px;
  padding: 22px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hotel-pillar-card:hover {
  border-color: rgba(243, 207, 122, 0.5);
  background: rgba(11, 29, 58, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 16px rgba(243, 207, 122, 0.15);
}

.hotel-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(243, 207, 122, 0.14);
  border: 1px solid rgba(243, 207, 122, 0.3);
  color: #f3cf7a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.hotel-pillar-title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hotel-pillar-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.hotel-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(243, 207, 122, 0.2);
  flex-wrap: wrap;
}

.hotel-primary-action .btn-hotel-site {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hotel-socials-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hotel-socials-caption {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.hotel-socials-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  user-select: none;
}

.hotel-pill-icon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  letter-spacing: 0.04em;
}

.hotel-social-vk {
  background: rgba(0, 119, 255, 0.16);
  color: #85c0ff;
  border: 1px solid rgba(0, 119, 255, 0.4);
}

.hotel-social-vk:hover {
  background: #0077ff;
  color: #ffffff;
  border-color: #0077ff;
  box-shadow: 0 4px 18px rgba(0, 119, 255, 0.45);
  transform: translateY(-2px);
}

.hotel-social-max {
  background: rgba(243, 207, 122, 0.16);
  color: #f3cf7a;
  border: 1px solid rgba(243, 207, 122, 0.4);
}

.hotel-social-max:hover {
  background: linear-gradient(135deg, #ffd700 0%, #c99a3e 100%);
  color: #07152b;
  border-color: #ffd700;
  box-shadow: 0 4px 18px rgba(243, 207, 122, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .hotel-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .hotel-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hotel-primary-action .btn-hotel-site {
    width: 100%;
    justify-content: center;
  }

  .hotel-socials-block {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hotel-socials-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .hotel-pillars-grid {
    grid-template-columns: 1fr;
  }

  .hotel-palace-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .hotel-socials-links {
    flex-direction: column;
    width: 100%;
  }

  .hotel-social-pill {
    width: 100%;
    justify-content: center;
  }
}
