/* ===========================
   Global Theme & Layout
   =========================== */

:root {
  --bs-primary: #aa8cf2;
  --gold-accent: #d4af37;
  --bs-body-font-size: 1.05rem;
  --bs-body-line-height: 1.6;

  --bg-main: #0a0014;
  --bg-footer: #0d0d0d;
  --text-main: #e0e0e0;
  --text-muted-global: #aaaaaa;
  --text-footer: #e4e4e4;
  --text-footer-dim: #c2c2c2;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;

  /* Dark subtle purple center → pure black edges */
  background: radial-gradient(
    circle at center,
    #2b0059 0%,
    #210040 35%,
    #120028 65%,
    #000000 100%
  );

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
}

/* RitzMedia brand typography. Customer templates retain their own font systems. */
body.ritzmedia-default-template {
  font-family: 'Source Sans 3', sans-serif;
}

body.ritzmedia-default-template h1,
body.ritzmedia-default-template h2,
body.ritzmedia-default-template h3,
body.ritzmedia-default-template h4,
body.ritzmedia-default-template h5,
body.ritzmedia-default-template h6 {
  font-family: 'DM Sans', sans-serif !important;
}

/* Keep a sensible global muted, stronger overrides in footer later */
.text-muted {
  color: var(--text-muted-global) !important;
}

main.flex-fill {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Utility tweak */
.mt-5 {
  margin-top: 2rem !important;
}

/* Site-wide subtle scroll animations */
.ritz-scroll-animate {
  opacity: var(--ritz-scroll-opacity, 0.94);
  transform: translateY(var(--ritz-scroll-y, 16px)) scale(var(--ritz-scroll-scale, 0.992));
  filter: saturate(var(--ritz-scroll-saturate, 0.94)) brightness(var(--ritz-scroll-brightness, 0.96));
  transition:
    opacity 0.14s linear,
    transform 0.14s linear,
    filter 0.14s linear,
    box-shadow 0.28s ease;
  will-change: opacity, transform;
}

.ritz-scroll-animate.is-visible {
  --ritz-scroll-opacity: 1;
  --ritz-scroll-scale: 1;
  --ritz-scroll-saturate: 1;
  --ritz-scroll-brightness: 1;
}

.ritz-pop-animate {
  opacity: 0.24;
  transform: translateY(26px) scale(0.965);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.16, 0.84, 0.24, 1),
    filter 0.85s ease;
  transition-delay: var(--ritz-pop-delay, 0ms);
  will-change: opacity, transform;
}

.ritz-pop-animate.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ritz-scroll-animate,
  .ritz-pop-animate {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
}

h1,
h2 {
  color: var(--bs-primary) !important;
}

h3,
h4,
h5,
h6 {
  color: var(--gold-accent) !important;
}

/* Glassmorphism Card */
.card.card-glass {
  background: rgba(18, 18, 24, 0.5) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  margin: 48px auto 48px !important;
  padding: 20px;
  box-shadow: none !important;
}

/* ===========================
   Navbar & Branding (Premium)
   =========================== */

.navbar {
  background-color: #1a0a2e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Top-level nav links & brand */
.navbar-dark .navbar-nav .nav-link,
.navbar-brand {
  color: #fff !important;
  font-size: 1.05rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

/* Gold accent on hover / open */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .dropdown.show > .nav-link,
.navbar-dark .navbar-nav .nav-link[aria-expanded="true"] {
  opacity: 1;
  color: var(--gold-accent) !important;
}

/* Dropdown toggles feel slightly button-like */
.navbar-dark .nav-link.dropdown-toggle {
  position: relative;
}

/* Keep default caret but spaced */
.navbar-dark .nav-link.dropdown-toggle::after {
  margin-left: 0.35rem;
}

.navbar-toggler {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: #fff;
  border: none;
}

.navbar-toggler span.text-label {
  display: inline-block;
}

/* ===========================
   User Sub Navigation
   =========================== */

.user-subnav {
  position: relative;
  z-index: 1010;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(43, 0, 89, 0.94)),
    radial-gradient(circle at 0% 50%, rgba(170, 140, 242, 0.18), transparent 32%);
  border-bottom: 1px solid rgba(170, 140, 242, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.user-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.user-subnav-status {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

.user-subnav-status i {
  color: var(--bs-primary);
}

.user-subnav-status strong {
  color: #fff;
  font-weight: 700;
}

.user-subnav-status-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.user-subnav-inline-switch {
  display: inline-flex;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.user-subnav-inline-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.user-subnav-inline-switch button:hover,
.user-subnav-inline-switch button:focus {
  border-color: rgba(212, 175, 55, 0.78);
  background: rgba(212, 175, 55, 0.28);
  transform: translateY(-1px);
}

.user-subnav-inline-switch i {
  color: var(--gold-accent);
}

.user-subnav-inline-editor,
.user-subnav-preview-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.18rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.user-subnav-inline-editor {
  border-color: rgba(170, 140, 242, 0.34);
  background: rgba(170, 140, 242, 0.12);
}

.user-subnav-preview-switcher select {
  max-width: 220px;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  background: #1a0a3e;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
}

.user-subnav-preview-switcher button,
.user-subnav-inline-edit-toggle,
.user-subnav-inline-edit-save {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  background: rgba(212, 175, 55, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.user-subnav-inline-edit-toggle.is-active {
  border-color: rgba(89, 255, 180, 0.72);
  background: rgba(89, 255, 180, 0.16);
}

.user-subnav-inline-edit-save {
  border-color: rgba(89, 255, 180, 0.54);
  background: rgba(89, 255, 180, 0.14);
}

.user-subnav-inline-edit-save[hidden] {
  display: none !important;
}

.user-subnav-inline-edit-save:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.user-subnav-inline-edit-save.is-dirty {
  border-color: rgba(89, 255, 180, 0.82);
  background: rgba(89, 255, 180, 0.24);
  box-shadow: 0 0 0 3px rgba(89, 255, 180, 0.12);
}

.user-subnav-inline-edit-status {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  padding: 0.18rem 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.user-subnav-inline-edit-status[data-state="dirty"] {
  color: #ffe08a;
}

.user-subnav-inline-edit-status[data-state="saved"] {
  color: #7dffc8;
}

.user-subnav-inline-edit-status[data-state="error"] {
  color: #ffb3b3;
}

.user-subnav-preview-switcher button:hover,
.user-subnav-preview-switcher button:focus,
.user-subnav-inline-edit-toggle:hover,
.user-subnav-inline-edit-toggle:focus,
.user-subnav-inline-edit-save:hover,
.user-subnav-inline-edit-save:focus {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.3);
}

.user-subnav-preview-switcher i {
  color: var(--gold-accent);
}

.user-subnav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.user-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.92rem;
  background: rgba(170, 140, 242, 0.18);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.user-subnav-link i {
  color: var(--bs-primary);
}

.user-subnav-link:hover,
.user-subnav-link:focus {
  color: #fff;
  border-color: rgba(170, 140, 242, 0.45);
  background: rgba(170, 140, 242, 0.13);
  box-shadow: 0 8px 20px rgba(170, 140, 242, 0.12);
  transform: translateY(-1px);
}

.user-subnav-link-primary {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.12);
}

.user-subnav-link-primary i {
  color: var(--gold-accent);
}

.ritz-inline-edit-text {
  border-radius: 0.18rem;
  transition: background 0.16s ease, box-shadow 0.16s ease, outline-color 0.16s ease;
}

.ritz-inline-edit-active .ritz-inline-edit-text {
  cursor: text;
  outline: 1px dashed rgba(170, 140, 242, 0.5);
  outline-offset: 2px;
  background: rgba(170, 140, 242, 0.08);
}

.ritz-inline-edit-active .ritz-inline-edit-text:hover,
.ritz-inline-edit-active .ritz-inline-edit-text:focus {
  outline-color: rgba(212, 175, 55, 0.9);
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.ritz-inline-edit-text.is-dirty {
  background: rgba(255, 193, 7, 0.22);
  outline-color: rgba(255, 193, 7, 0.9);
}

.ritz-inline-edit-text.is-saved {
  animation: ritz-inline-saved-pulse 1.35s ease;
}

.ritz-inline-edit-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2200;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(20, 10, 45, 0.94);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ritz-inline-edit-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ritz-inline-edit-toast[data-type="success"] {
  border-color: rgba(89, 255, 180, 0.54);
  background: rgba(8, 64, 47, 0.94);
}

.ritz-inline-edit-toast[data-type="error"] {
  border-color: rgba(255, 104, 104, 0.6);
  background: rgba(88, 20, 34, 0.94);
}

@keyframes ritz-inline-saved-pulse {
  0% { box-shadow: 0 0 0 0 rgba(89, 255, 180, 0.7); }
  45% { box-shadow: 0 0 0 8px rgba(89, 255, 180, 0.16); }
  100% { box-shadow: 0 0 0 0 rgba(89, 255, 180, 0); }
}

.user-subnav-link-danger {
  border-color: rgba(255, 104, 104, 0.34);
}

.user-subnav-link-danger i {
  color: #ff8b8b;
}

.user-subnav-dropdown-toggle {
  cursor: pointer;
  font: inherit;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  background: #1a0a3e;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease;
}

.user-subnav-dropdown-toggle:hover,
.user-subnav-dropdown-toggle:focus {
  background: #2a1a4e;
  color: #fff;
}

.user-subnav-dropdown-toggle.dropdown-toggle::after {
  margin-left: 0.45rem;
}

.user-subnav-menu {
  min-width: 285px;
  max-height: min(78vh, 680px);
  overflow-y: auto;
  padding: 0.45rem;
  margin-top: 0.5rem;
  border-color: rgba(170, 140, 242, 0.24);
  border-radius: 16px;
  background: #1a0a3e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.user-subnav-menu-heading {
  margin: 0.25rem 0 0.15rem;
  padding: 0.2rem 0.72rem;
  color: rgba(212, 175, 55, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.user-subnav-menu .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.12);
  margin: 0.35rem 0;
}

.user-subnav-menu-item {
  display: flex;
  align-items: center;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.62rem 0.72rem;
}

.user-subnav-menu-item i {
  width: 1.1rem;
  color: var(--bs-primary);
  text-align: center;
}

.user-subnav-menu .dropdown-item.disabled.user-subnav-menu-item,
.user-subnav-menu .dropdown-item:disabled.user-subnav-menu-item {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
  background: rgba(255, 255, 255, 0.035);
  cursor: not-allowed;
}

.user-subnav-menu .dropdown-item.disabled.user-subnav-menu-item i,
.user-subnav-menu .dropdown-item:disabled.user-subnav-menu-item i {
  color: rgba(212, 175, 55, 0.48);
}

.user-subnav-menu .dropdown-item.disabled.user-subnav-menu-item:hover,
.user-subnav-menu .dropdown-item.disabled.user-subnav-menu-item:focus,
.user-subnav-menu .dropdown-item:disabled.user-subnav-menu-item:hover,
.user-subnav-menu .dropdown-item:disabled.user-subnav-menu-item:focus {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.045);
}

.user-subnav-menu-item:hover,
.user-subnav-menu-item:focus {
  color: #fff;
  background: rgba(170, 140, 242, 0.16);
}

.user-subnav-menu-item-primary i {
  color: var(--gold-accent);
}

.user-subnav-menu-item-danger i {
  color: #ff8b8b;
}

@media (max-width: 991.98px) {
  .user-subnav-inner {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .user-subnav-status {
    text-align: left;
  }

  .user-subnav-links {
    justify-content: flex-end;
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .user-subnav {
    font-size: 0.84rem;
  }

  .user-subnav-inner {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .user-subnav-status {
    flex: 1;
    min-width: 0;
    margin: 0;
  }

  .user-subnav-status i {
    display: none;
  }

  .user-subnav-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .user-subnav-status strong {
    white-space: nowrap;
  }

  .user-subnav-role {
    display: none;
  }

  .user-subnav-links {
    flex: 0 0 auto;
    margin: 0;
    position: relative !important;
  }

  .user-subnav-preview-switcher {
    max-width: 100%;
  }

  .user-subnav-preview-switcher select {
    max-width: 145px;
  }

  .user-subnav-preview-switcher button span {
    display: none;
  }

  .user-subnav-link {
    padding: 0.38rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* ===========================
   Login / Account Access
   =========================== */

.login-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(170, 140, 242, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(18, 4, 36, 0.96), rgba(7, 0, 14, 0.94));
}

.login-hero-copy {
  max-width: 820px;
}

.login-page-shell {
  color: #fff;
}

.login-card {
  max-width: 680px;
  padding: 2rem;
  border: 1px solid rgba(170, 140, 242, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(12, 4, 24, 0.94)),
    radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.11), transparent 28%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}


.login-tabs {
  gap: 0.45rem;
}

.login-tabs .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.login-tabs .nav-link.active {
  color: #fff;
  border-color: rgba(170, 140, 242, 0.55);
  background: rgba(170, 140, 242, 0.24);
}

.login-form-stack {
  display: grid;
  gap: 0.85rem;
}

.login-form-stack .form-control {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.login-form-stack .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.login-form-stack .form-control:focus {
  border-color: rgba(170, 140, 242, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(170, 140, 242, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.account-card-icon {
  color: var(--bs-primary);
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.account-dashboard {
  max-width: 1120px;
  color: #fff;
}

.account-dashboard-header,
.account-dashboard-panel,
.account-dashboard-action-card {
  border: 1px solid rgba(170, 140, 242, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(12, 4, 24, 0.94)),
    radial-gradient(circle at 85% 0%, rgba(212, 175, 55, 0.12), transparent 30%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.account-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.account-dashboard-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.account-dashboard-panel {
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: 1.75rem;
}

.account-dashboard-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  color: #fff;
  background: rgba(170, 140, 242, 0.22);
  font-size: 1.45rem;
}

.account-dashboard-credit-balance {
  color: #d4af37;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.account-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.account-dashboard-action-card {
  display: grid;
  gap: 0.55rem;
  min-height: 180px;
  padding: 1.35rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-dashboard-action-card:hover,
.account-dashboard-action-card:focus {
  color: #fff;
  border-color: rgba(170, 140, 242, 0.58);
  box-shadow: 0 18px 42px rgba(170, 140, 242, 0.16);
  transform: translateY(-2px);
}

.account-dashboard-action-card i {
  color: var(--bs-primary);
  font-size: 2rem;
}

.account-dashboard-action-card span {
  font-size: 1.2rem;
  font-weight: 800;
}

.account-dashboard-action-card small {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.account-dashboard-action-card-admin i {
  color: #ffc107;
}

@media (max-width: 991.98px) {
  .account-dashboard-primary-grid,
  .account-dashboard-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .account-dashboard-header {
    display: grid;
    padding: 1.25rem;
  }

  .account-dashboard-panel,
  .account-dashboard-action-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .account-dashboard-logout {
    width: 100%;
  }
}

.credits-page-shell {
  color: #fff;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1120px;
}

.credits-panel {
  padding: 1.75rem;
  border: 1px solid rgba(170, 140, 242, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(12, 4, 24, 0.94)),
    radial-gradient(circle at 85% 0%, rgba(212, 175, 55, 0.12), transparent 30%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.credits-panel-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.credits-panel-heading > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 18px;
  color: #fff;
  background: rgba(170, 140, 242, 0.22);
  font-size: 1.35rem;
}

.credits-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.credits-amount-button {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.credits-amount-button:hover,
.credits-amount-button:focus,
.credits-amount-button.is-selected {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.credits-amount-button:disabled,
.credits-amount-button.disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.credits-amount-button strong {
  color: #d4af37;
  font-size: 2rem;
  line-height: 1;
}

.credits-amount-button span {
  font-weight: 800;
}

.credits-amount-button small {
  color: rgba(255,255,255,0.62);
}

.paypal-button-wrap {
  min-height: 48px;
}

@media (max-width: 991.98px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .credits-panel {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .credits-amount-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .login-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .login-tabs .nav-link {
    font-size: 0.9rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* ===========================
   Dropdown Menus (Global)
   =========================== */

.dropdown-menu {
  background-color: #1e1e1e;
  border: 1px solid #333;
  font-size: 1rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 320px;
  max-width: 100%;
}

.dropdown-item {
  color: #e0e0e0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.dropdown-item small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #aaaaaa !important;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Preserve icon colours: only items WITHOUT inline style use primary */
.dropdown-menu .dropdown-item i:not([style]) {
  color: var(--bs-primary) !important;
}

.dropdown-item:hover {
  background-color: #2a2a2a;
  color: #ba8cf2;
}

.dropdown-header {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.dropdown-divider {
  border-top: 1px solid #444;
}

/* ===========================
   Premium Navbar Dropdown & Mega Menu
   =========================== */

/* Dark nav-specific dropdown overrides */
.navbar-dark .dropdown-menu {
  background-color: rgba(17, 17, 17, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

/* Mega menu base */
.navbar .dropdown.megamenu {
  position: static;
}

/* Animated full-width mega menu */
.navbar .dropdown-menu.megamenu {
  margin-top: 0;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 1.75rem;
  width: 100%;
  left: 0;
  right: 0;

  background-color: rgba(17, 17, 17, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);

  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out,
    visibility 0s linear 0.22s;
}

/* Show state when dropdown is open */
.navbar .dropdown-menu.megamenu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out,
    visibility 0s;
}

/* Column layout refinements */
.navbar .dropdown-menu.megamenu .row > [class*="col-"] {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu.megamenu .row > [class*="col-"]:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Headers inside nav mega menus */
.navbar-dark .dropdown-menu.megamenu .dropdown-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f8f9fa;
  opacity: 0.85;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.15rem;
}

/* Items inside nav mega menus */
.navbar-dark .dropdown-menu.megamenu .dropdown-item {
  padding: 0.45rem 0.75rem;
  line-height: 1.25;
  border-radius: 0.45rem;
  margin: 0.15rem 0;
  color: #f8f9fa;
  white-space: normal;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item small {
  font-size: 0.75rem;
  color: #adb5bd !important;
}

/* Hover state: subtle */
.navbar-dark .dropdown-menu.megamenu .dropdown-item:hover,
.navbar-dark .dropdown-menu.megamenu .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Hub card menus: put the visual first, with large left-aligned icons before the text */
.navbar .dropdown-menu.megamenu .nav-hub-intro-col {
  border-right: 0 !important;
  padding-top: 0.5rem;
}

.navbar .dropdown-menu.megamenu .nav-hub-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(170, 140, 242, 0.28);
  border-radius: 0.82rem;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(170, 140, 242, 0.16), transparent 36%),
    rgba(10, 7, 20, 0.72);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.navbar .dropdown-menu.megamenu .nav-hub-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-accent, #d4af37);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navbar .dropdown-menu.megamenu .nav-hub-intro h3 {
  margin: 0.18rem 0 0;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.navbar .dropdown-menu.megamenu .nav-hub-intro p {
  max-width: 740px;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.35;
}

.navbar .dropdown-menu.megamenu .nav-hub-intro-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.44);
  border-radius: 999px;
  padding: 0.58rem 0.86rem;
  color: #ffffff;
  background: rgba(170, 140, 242, 0.18);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.navbar .dropdown-menu.megamenu .nav-hub-intro-cta:hover,
.navbar .dropdown-menu.megamenu .nav-hub-intro-cta:focus {
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(170, 140, 242, 0.28);
}

.navbar .services-megamenu .nav-hub-intro-button {
  position: relative;
  flex: 0 0 min(360px, 34vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 112px;
  padding: 0.82rem 1rem 0.82rem 5.85rem !important;
  border-radius: 0.65rem;
  overflow: hidden;
  isolation: isolate;
  white-space: normal;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.navbar .services-megamenu .nav-hub-intro-button::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5.55rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.navbar .services-megamenu .nav-hub-intro-button .fs-5 {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.12;
}

.navbar .services-megamenu .nav-hub-intro-button .fs-5 i:first-child {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.55rem;
  text-align: center;
  margin: 0 !important;
  color: var(--gold-accent, #d4af37) !important;
  font-size: 3rem;
  line-height: 1;
  pointer-events: none;
}

.navbar .services-megamenu .nav-hub-intro-button:hover .fs-5 i:first-child,
.navbar .services-megamenu .nav-hub-intro-button:focus .fs-5 i:first-child {
  color: #ffffff !important;
}

.navbar .dropdown-menu.nav-card-megamenu .btn,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 104px;
  min-height: 104px;
  padding: 0.72rem 0.92rem 0.72rem 4.75rem !important;
  border-radius: 0.45rem;
  overflow: hidden;
  white-space: normal;
}

.navbar .dropdown-menu.nav-card-megamenu .btn > .fs-5,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item {
  font-size: 0.88rem;
  line-height: 1.16;
  font-weight: 800;
}

.navbar .dropdown-menu.nav-card-megamenu .btn .small,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.24rem;
  max-width: 100%;
  line-height: 1.18;
}

.navbar .dropdown-menu.nav-card-megamenu .btn i:first-child,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item > i:first-child {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  text-align: center;
  margin: 0 !important;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-accent, #d4af37) !important;
  opacity: 0.9;
  pointer-events: none;
}

.navbar .dropdown-menu.nav-card-megamenu .btn::after,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4.7rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.navbar .services-megamenu .services-hub-cta-col > .btn,
.navbar .events-megamenu .events-primary-action,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.navbar .services-megamenu .services-hub-cta-col > .btn,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn {
  min-height: 136px;
  padding-left: 7.25rem !important;
}

.navbar .services-megamenu .services-hub-cta-col > .btn i:first-child,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn i:first-child {
  left: 1.28rem;
  width: 4.85rem;
  font-size: 4.05rem;
}

.navbar .services-megamenu .services-hub-cta-col > .btn::after,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn::after {
  width: 7rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

.navbar .services-megamenu .services-hub-cta-col > .btn::before,
.navbar .events-megamenu .events-primary-action::before,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn::before {
  content: '';
  position: absolute;
  inset: -28% -70%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.16) 42%, rgba(212, 175, 55, 0.16) 50%, rgba(170, 140, 242, 0.12) 58%, transparent 78%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 36%);
  background-size: 240% 100%, 160% 160%;
  opacity: 0.9;
  transform: translate3d(-18%, 0, 0) rotate(0.001deg);
  animation: ritzHubCtaDrift 16s ease-in-out infinite;
}

.navbar .services-megamenu .services-hub-cta-col > .btn > *,
.navbar .events-megamenu .events-primary-action > *,
.navbar .media-hub-megamenu .media-hub-cta-col > .btn > * {
  position: static;
  z-index: auto;
}

@keyframes ritzHubCtaDrift {
  0% {
    background-position: 0% 50%, 20% 50%;
    transform: translate3d(-18%, 0, 0) scale(1.02);
  }
  50% {
    background-position: 100% 50%, 80% 50%;
    transform: translate3d(18%, -1%, 0) scale(1.03);
  }
  100% {
    background-position: 0% 50%, 20% 50%;
    transform: translate3d(-18%, 0, 0) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar .services-megamenu .services-hub-cta-col > .btn::before,
  .navbar .events-megamenu .events-primary-action::before,
  .navbar .media-hub-megamenu .media-hub-cta-col > .btn::before,
  .media-hub-browser-grid {
    animation: none;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .navbar .dropdown-menu.megamenu .nav-hub-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .navbar .dropdown-menu.megamenu .nav-hub-intro-cta {
    width: 100%;
  }
}

.navbar .dropdown-menu.nav-card-megamenu .btn:hover i:first-child,
.navbar .dropdown-menu.nav-card-megamenu .btn:focus i:first-child,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item:hover > i:first-child,
.navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item:focus > i:first-child {
  opacity: 1;
  color: #fff !important;
}

.navbar-dark .dropdown-menu.nav-card-megamenu .nav-admin-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 12px rgba(220, 38, 38, 0.28);
}

.services-booking-icon-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.045);
}

.services-booking-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0.7rem 0.45rem;
  border-radius: 0.55rem;
  color: #f8f9fa;
  text-decoration: none;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.services-booking-icon i {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--gold-accent, #d4af37);
  font-size: 1.55rem;
  line-height: 1;
}

.services-booking-icon span {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.services-booking-icon:hover,
.services-booking-icon:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.services-booking-icon:hover i,
.services-booking-icon:focus i {
  color: #ffffff;
}

.navbar .services-megamenu .services-hub-cta-col,
.navbar .media-hub-megamenu .media-hub-cta-col,
.navbar .media-hub-megamenu .media-hub-icon-col,
.navbar .media-hub-megamenu .media-hub-featured-col {
  border-right: 0 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.35rem;
}

.navbar .services-megamenu .services-hub-primary-action,
.navbar .services-megamenu .services-hub-overview-action,
.navbar .services-megamenu .services-hub-secondary-action,
.navbar .media-hub-megamenu .media-hub-primary-action,
.navbar .media-hub-megamenu .media-hub-premium-action {
  min-height: 128px;
  border-radius: 0.65rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.navbar .services-megamenu .services-hub-primary-action,
.navbar .services-megamenu .services-hub-overview-action,
.navbar .media-hub-megamenu .media-hub-primary-action {
  border: 1px solid rgba(212, 175, 55, 0.42);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(86, 38, 132, 0.98), rgba(42, 18, 70, 0.98) 58%, #09090b) !important;
}

.navbar .services-megamenu .nav-hub-intro .nav-hub-intro-button.services-hub-primary-action {
  border-radius: 0.65rem;
}

.navbar .services-megamenu .services-hub-secondary-action,
.navbar .media-hub-megamenu .media-hub-premium-action {
  border: 1px solid rgba(212, 175, 55, 0.5);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(56, 23, 91, 0.96), rgba(20, 8, 35, 0.98)) !important;
  color: #ffffff;
}

.navbar .services-megamenu .services-hub-primary-action:hover,
.navbar .services-megamenu .services-hub-primary-action:focus,
.navbar .services-megamenu .services-hub-overview-action:hover,
.navbar .services-megamenu .services-hub-overview-action:focus,
.navbar .services-megamenu .services-hub-secondary-action:hover,
.navbar .services-megamenu .services-hub-secondary-action:focus,
.navbar .media-hub-megamenu .media-hub-primary-action:hover,
.navbar .media-hub-megamenu .media-hub-primary-action:focus,
.navbar .media-hub-megamenu .media-hub-premium-action:hover,
.navbar .media-hub-megamenu .media-hub-premium-action:focus {
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.media-hub-icon-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.media-hub-icon-row .media-hub-icon {
  min-width: 0;
}

.media-hub-icon-row .media-hub-icon span {
  overflow-wrap: anywhere;
}

.media-hub-icon i {
  color: var(--gold-accent, #d4af37);
}

.media-hub-icon:hover,
.media-hub-icon:focus {
  border-color: rgba(212, 175, 55, 0.55);
}

.media-hub-icon:hover i,
.media-hub-icon:focus i {
  color: #ffffff;
}

.media-hub-featured-panel {
  padding: 0.75rem;
  border: 1px solid rgba(170, 140, 242, 0.28);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at top left, rgba(170, 140, 242, 0.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.08), transparent 34%),
    rgba(12, 8, 20, 0.72);
}

.media-hub-featured-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.navbar-dark .dropdown-menu.megamenu .media-hub-featured-heading .dropdown-header {
  display: inline-flex !important;
}

.media-hub-featured-heading a {
  margin-left: auto;
  color: var(--bs-primary, #aa8cf2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.media-hub-featured-heading a:hover,
.media-hub-featured-heading a:focus {
  color: #ffffff;
}

.media-hub-featured-video,
.media-hub-recent-video,
.media-hub-browser-video {
  display: flex;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.26);
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
}

.media-hub-featured-video:hover,
.media-hub-featured-video:focus,
.media-hub-recent-video:hover,
.media-hub-recent-video:focus,
.media-hub-browser-video:hover,
.media-hub-browser-video:focus {
  color: #ffffff;
  border-color: rgba(170, 140, 242, 0.58);
  background: rgba(170, 140, 242, 0.13);
  transform: translateY(-1px);
}

.media-hub-featured-video {
  min-height: 156px;
  border-radius: 0.65rem;
  flex-direction: column;
}

.media-hub-featured-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.media-hub-featured-thumb img,
.media-hub-recent-thumb img,
.media-hub-browser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-hub-play-badge {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(170, 140, 242, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.media-hub-featured-copy {
  display: block;
  padding: 0.65rem 0.72rem 0.72rem;
}

.media-hub-kicker {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--bs-primary, #aa8cf2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-hub-featured-title,
.media-hub-recent-title,
.media-hub-browser-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 850;
  line-height: 1.18;
}

.media-hub-featured-title {
  -webkit-line-clamp: 2;
  font-size: 0.96rem;
}

.media-hub-recent-list {
  display: grid;
  gap: 0.5rem;
  height: 100%;
}

.media-hub-browser {
  position: relative;
  width: 100%;
  max-height: none;
  padding: 0.15rem 0;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.media-hub-browser::-webkit-scrollbar {
  display: none;
}

.media-hub-browser:hover .media-hub-browser-grid,
.media-hub-browser:focus-within .media-hub-browser-grid {
  animation-play-state: paused;
}

.media-hub-browser-grid {
  --media-hub-card-width: 260px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: var(--media-hub-card-width);
  gap: 0.68rem;
  width: max-content;
  animation: mediaHubBrowserLoop 72s linear infinite;
}

.media-hub-browser-video {
  position: relative;
  min-width: 0;
  width: var(--media-hub-card-width);
  min-height: auto;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0 !important;
  border-radius: 0.72rem;
  background:
    radial-gradient(circle at top left, rgba(170, 140, 242, 0.14), transparent 38%),
    rgba(0, 0, 0, 0.3);
}

.media-hub-browser-thumb {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.72rem;
  background: #020617;
}

.media-hub-browser-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.9rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  background: rgba(4, 4, 8, 0.72);
}

.media-hub-browser-video:hover .media-hub-browser-copy,
.media-hub-browser-video:focus .media-hub-browser-copy,
.media-hub-browser-video:focus-visible .media-hub-browser-copy,
.media-hub-browser-video:focus-within .media-hub-browser-copy {
  opacity: 1;
  transform: translateY(0);
}

.media-hub-browser-title {
  -webkit-line-clamp: 3;
  font-size: 0.94rem;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

@keyframes mediaHubBrowserLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.media-hub-recent-video {
  min-height: 68px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 0.55rem;
}

.media-hub-recent-thumb {
  flex: 0 0 86px;
  width: 86px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.42rem;
  background: #020617;
}

.media-hub-recent-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.media-hub-recent-title {
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
}

.media-hub-recent-play {
  flex: 0 0 auto;
  color: var(--bs-primary, #aa8cf2);
  font-size: 0.8rem;
}

@media (max-width: 767.98px) {
  .navbar .dropdown-menu.nav-card-megamenu .btn,
  .navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item {
    height: 88px;
    min-height: 88px;
    padding-left: 4rem !important;
    padding-right: 0.7rem !important;
  }

  .navbar .dropdown-menu.nav-card-megamenu .btn i:first-child,
  .navbar-dark .dropdown-menu.nav-card-megamenu .dropdown-item > i:first-child {
    left: 0.85rem;
    width: 2.35rem;
    font-size: 1.65rem;
  }

  .navbar .services-megamenu .services-hub-cta-col > .btn,
  .navbar .media-hub-megamenu .media-hub-cta-col > .btn {
    min-height: 112px;
    padding-left: 5.8rem !important;
  }

  .navbar .services-megamenu .services-hub-cta-col > .btn i:first-child,
  .navbar .media-hub-megamenu .media-hub-cta-col > .btn i:first-child {
    left: 0.95rem;
    width: 3.9rem;
    font-size: 3.2rem;
  }
  .services-booking-icon-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-booking-icon {
    min-height: 72px;
  }

  .media-hub-featured-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-hub-featured-heading a {
    margin-left: 0;
  }

  .media-hub-browser-grid {
    --media-hub-card-width: 220px;
  }
}

.navbar .events-megamenu .events-cta-row {
  border-right: 0 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.35rem;
}

.navbar .events-megamenu .events-primary-action {
  display: flex;
  align-items: center;
  min-height: 174px;
  gap: 1.05rem;
  white-space: normal;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 0.65rem;
  padding: 1.22rem 1.32rem 1.22rem 7.15rem !important;
  background:
    radial-gradient(circle at 1.9rem 50%, rgba(212, 175, 55, 0.30), transparent 4.8rem),
    radial-gradient(circle at top right, rgba(170, 140, 242, 0.22), transparent 36%),
    linear-gradient(135deg, #5d28b7 0%, #33105d 48%, #15081f 100%) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.navbar .events-megamenu .events-primary-action:hover,
.navbar .events-megamenu .events-primary-action:focus {
  border-color: rgba(212, 175, 55, 0.82);
  background:
    radial-gradient(circle at 1.9rem 50%, rgba(212, 175, 55, 0.38), transparent 5.2rem),
    radial-gradient(circle at top right, rgba(170, 140, 242, 0.28), transparent 38%),
    linear-gradient(135deg, #6b32c8 0%, #3b136c 48%, #180923 100%) !important;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.navbar .events-megamenu .events-primary-action-icon {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.30), transparent 34%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.30), rgba(170, 140, 242, 0.22));
  color: var(--gold-accent, #d4af37);
  font-size: 3.55rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.34), 0 10px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.navbar .events-megamenu .events-primary-action-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.navbar .events-megamenu .events-primary-action-title {
  display: block;
  color: #fff;
  font-size: 2.04rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.navbar .events-megamenu .events-featured-hero-col {
  border-right: 0 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.35rem;
}

.navbar .events-megamenu .events-featured-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 174px;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(170, 140, 242, 0.36);
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at top left, rgba(170, 140, 242, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(32, 22, 48, 0.96), rgba(8, 8, 14, 0.94));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.navbar .events-megamenu .events-featured-hero:hover,
.navbar .events-megamenu .events-featured-hero:focus {
  color: #fff;
  border-color: rgba(170, 140, 242, 0.62);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.navbar .events-megamenu .events-featured-hero-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.08rem 1rem 0;
}

.navbar .events-megamenu .events-featured-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 0.38rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-accent, #d4af37);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.navbar .events-megamenu .events-featured-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 1.52rem;
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.navbar .events-megamenu .events-featured-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.44rem;
  margin-top: 0.38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.16;
}

.navbar .events-megamenu .events-featured-meta i {
  flex: 0 0 auto;
  width: 0.86rem;
  color: var(--gold-accent, #d4af37);
  font-size: 0.78rem;
  line-height: 1.16;
  margin-top: 0.02rem;
}

.navbar .events-megamenu .events-featured-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.62rem;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
}

.navbar .events-megamenu .events-featured-hero-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 174px;
  width: 174px;
  min-height: 174px;
  order: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.navbar .events-megamenu .events-featured-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.navbar .events-megamenu .events-featured-hero-thumb i {
  color: var(--gold-accent, #d4af37);
  font-size: 2rem;
}

.navbar .events-megamenu .events-featured-hero-empty {
  justify-content: flex-start;
}

.navbar .events-megamenu .events-featured-hero-empty .events-featured-hero-copy {
  padding-right: 0.95rem;
}

.navbar .events-megamenu .events-primary-action-line {
  display: inline-flex;
  align-items: center;
  margin-top: 0.68rem;
  border-radius: 999px;
  padding: 0.42rem 1.04rem;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.navbar .events-megamenu .events-primary-action-note {
  margin-top: 0.58rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.22;
}

.navbar .events-megamenu .events-spotlight-section {
  border-right: 0 !important;
}

.navbar .events-megamenu .events-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.navbar .events-megamenu .events-spotlight-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid rgba(170, 140, 242, 0.36);
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at top left, rgba(170, 140, 242, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(32, 22, 48, 0.96), rgba(8, 8, 14, 0.94));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.navbar .events-megamenu .events-spotlight-card:hover,
.navbar .events-megamenu .events-spotlight-card:focus {
  color: #fff;
  border-color: rgba(170, 140, 242, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.navbar .events-megamenu .events-spotlight-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  order: 2;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.08rem 1rem 0;
}

.navbar .events-megamenu .events-spotlight-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 174px;
  width: 174px;
  min-height: 174px;
  order: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.navbar .events-megamenu .events-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.navbar .events-megamenu .events-spotlight-thumb i {
  color: var(--gold-accent, #d4af37);
  font-size: 1.6rem;
}

.navbar .events-megamenu .events-featured-section {
  border-right: 0 !important;
}

.navbar .events-megamenu .events-menu-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-left: 0;
  margin-right: 0;
}

.navbar .dropdown-menu.events-megamenu .events-menu-card {
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  margin-bottom: 0;
  min-width: 0;
}

.navbar-dark .dropdown-menu.events-megamenu .event-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.76rem;
  min-height: 112px;
  height: 100%;
  padding: 0 0.54rem 0 0 !important;
  overflow: hidden;
  border: 1px solid rgba(170, 140, 242, 0.24);
  border-radius: 0.62rem;
  background:
    radial-gradient(circle at top left, rgba(170, 140, 242, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(24, 18, 38, 0.96), rgba(8, 8, 14, 0.94));
}

.navbar-dark .events-megamenu .event-dropdown-info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.navbar-dark .events-megamenu .event-dropdown-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #f8f9fa;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.12;
}

.navbar-dark .events-megamenu .event-dropdown-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.18rem;
  color: #adb5bd;
  font-size: 0.68rem;
  line-height: 1.12;
}

.navbar-dark .events-megamenu .event-dropdown-detail i {
  flex: 0 0 auto;
  width: 0.72rem;
  color: var(--gold-accent, #d4af37);
  font-size: 0.66rem;
  line-height: 1.16;
  margin-top: 0.02rem;
}

.navbar-dark .events-megamenu .event-dropdown-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 122px;
  width: 122px;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  border-radius: 0.62rem 0 0 0.62rem;
  background: rgba(0, 0, 0, 0.26);
}

.navbar-dark .events-megamenu .event-dropdown-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.navbar-dark .events-megamenu .event-dropdown-thumb i {
  color: var(--gold-accent, #d4af37);
  font-size: 1.35rem;
}

.navbar .events-megamenu .events-menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
}

.navbar .events-megamenu .events-see-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(56, 23, 91, 0.96), rgba(20, 8, 35, 0.98));
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.navbar .events-megamenu .events-see-all-button:hover,
.navbar .events-megamenu .events-see-all-button:focus {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.85);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

@media (max-width: 991.98px) {
  .navbar .events-megamenu .events-primary-action,
  .navbar .events-megamenu .events-featured-hero {
    min-height: 150px;
  }

  .navbar .events-megamenu .events-primary-action {
    padding-left: 5.75rem !important;
  }

  .navbar .events-megamenu .events-primary-action-icon {
    left: 0.95rem;
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 1rem;
    font-size: 2.85rem;
  }

  .navbar .events-megamenu .events-primary-action-title {
    font-size: 1.34rem;
  }

  .navbar .events-megamenu .events-featured-title {
    font-size: 1.12rem;
  }

  .navbar .events-megamenu .events-featured-meta {
    font-size: 0.78rem;
  }

  .navbar .events-megamenu .events-featured-hero-thumb {
    flex-basis: 150px;
    width: 150px;
    min-height: 150px;
  }

  .navbar .events-megamenu .events-spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .navbar .events-megamenu .events-spotlight-thumb {
    flex-basis: 150px;
    width: 150px;
    min-height: 150px;
  }

  .navbar .events-megamenu .events-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-dark .events-megamenu .event-dropdown-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }
}

/* Divider tweak inside mega menu */
.navbar-dark .dropdown-menu.megamenu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.65rem 0;
}

/* Mobile mega menu tweaks */
@media (max-width: 991.98px) {
  .navbar .dropdown.megamenu {
    position: relative;
  }

  .navbar .dropdown-menu.megamenu {
    padding: 1rem 0.75rem 1.25rem;
    border-radius: 0 0 10px 10px;
    width: 100%;
  }

  .navbar .dropdown-menu.megamenu .row > [class*="col-"] {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .navbar .dropdown-menu.megamenu .row > [class*="col-"]:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* ===========================
   Navigation Polish Overrides
   =========================== */

.navbar.navbar-dark {
  background: #1a0a2e;
  border-bottom: 1px solid rgba(170, 140, 242, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.navbar .container {
  gap: 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar-brand:hover,
.navbar-brand:focus {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 18px rgba(170, 140, 242, 0.34));
}

/* Generic text brand used by customer sites without a logo image. */
.nav-brand-text {
  display: table;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.92rem;
  line-height: 1.1;
}

.nav-brand-text .scotland-text {
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: bold;
  font-size: 0.7rem;
  color: #ccc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
  margin: 1.44px auto 0;
}

/* Responsive RitzMedia wordmark for dark shared navigation/footer surfaces. */
.nav-brand-text.ritzmedia-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  -webkit-text-stroke: 0.45px #000000;
  paint-order: stroke fill;
}

.nav-brand-text.ritzmedia-wordmark .brand-ritz { color: #d3bfff; }
.nav-brand-text.ritzmedia-wordmark .brand-media { color: #9967f0; }

.navbar-dark .navbar-nav {
  gap: 0.16rem;
}

.navbar-dark .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  margin: 0.15rem 0;
  background: transparent;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link i {
  color: var(--bs-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .dropdown.show > .nav-link,
.navbar-dark .navbar-nav .nav-link[aria-expanded="true"] {
  color: #fff !important;
  border-color: rgba(170, 140, 242, 0.34);
  background:
    linear-gradient(135deg, rgba(170, 140, 242, 0.16), rgba(212, 175, 55, 0.07));
  box-shadow: 0 10px 24px rgba(170, 140, 242, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link:hover i,
.navbar-dark .navbar-nav .nav-link:focus i,
.navbar-dark .navbar-nav .nav-link[aria-expanded="true"] i {
  color: var(--gold-accent);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1px solid rgba(170, 140, 242, 0.36) !important;
  border-radius: 999px !important;
  background: rgba(170, 140, 242, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(170, 140, 242, 0.22);
}

.navbar-dark .dropdown-menu,
.navbar .dropdown-menu.megamenu {
  background:
    radial-gradient(circle at 15% 0%, rgba(170, 140, 242, 0.22), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(212, 175, 55, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(17, 5, 35, 0.985), rgba(7, 1, 16, 0.985));
  border-color: rgba(170, 140, 242, 0.24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar .dropdown-menu.megamenu {
  border-radius: 0 0 24px 24px;
  padding: 1.35rem 0 1.55rem;
}

.navbar-dark .dropdown-menu.megamenu .container {
  position: relative;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-accent) !important;
  opacity: 1;
  padding: 0.25rem 0.5rem 0.45rem;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-header i {
  color: var(--bs-primary);
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item,
.user-subnav-menu-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item {
  padding: 0.68rem 0.78rem;
  margin: 0.24rem 0;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item::before,
.user-subnav-menu-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(170, 140, 242, 0.16), rgba(212, 175, 55, 0.08));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item > *,
.user-subnav-menu-item > * {
  position: relative;
  z-index: 1;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item:hover,
.navbar-dark .dropdown-menu.megamenu .dropdown-item:focus,
.user-subnav-menu-item:hover,
.user-subnav-menu-item:focus {
  border-color: rgba(170, 140, 242, 0.42);
  background: rgba(170, 140, 242, 0.11);
  box-shadow: 0 12px 28px rgba(170, 140, 242, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item:hover::before,
.navbar-dark .dropdown-menu.megamenu .dropdown-item:focus::before,
.user-subnav-menu-item:hover::before,
.user-subnav-menu-item:focus::before {
  opacity: 1;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item i:not([style]) {
  color: var(--bs-primary) !important;
  margin-right: 0.18rem;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item:hover i:not([style]),
.navbar-dark .dropdown-menu.megamenu .dropdown-item:focus i:not([style]) {
  color: var(--gold-accent) !important;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item small {
  color: rgba(255, 255, 255, 0.68) !important;
  line-height: 1.42;
}

.navbar-dark .dropdown-menu.megamenu .btn.btn-primary,
.user-subnav-link-primary {
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(170, 140, 242, 0.92), rgba(102, 53, 198, 0.9) 54%, rgba(114, 82, 22, 0.88));
  box-shadow: 0 14px 34px rgba(170, 140, 242, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.navbar-dark .dropdown-menu.megamenu .btn.btn-primary:hover,
.navbar-dark .dropdown-menu.megamenu .btn.btn-primary:focus,
.user-subnav-link-primary:hover,
.user-subnav-link-primary:focus,
.user-subnav-dropdown-toggle:hover,
.user-subnav-dropdown-toggle:focus {
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow: 0 18px 44px rgba(170, 140, 242, 0.28), 0 0 0 3px rgba(212, 175, 55, 0.12);
  filter: saturate(1.08) brightness(1.05);
  transform: translateY(-2px);
}

.user-subnav {
  background:
    radial-gradient(circle at 12% 0%, rgba(170, 140, 242, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(11, 1, 24, 0.96), rgba(6, 0, 14, 0.94));
  border-bottom-color: rgba(212, 175, 55, 0.14);
}

.user-subnav-menu {
  background:
    radial-gradient(circle at 12% 0%, rgba(170, 140, 242, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(19, 6, 39, 0.99), rgba(8, 1, 18, 0.99));
  border-color: rgba(170, 140, 242, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav {
    gap: 0.1rem;
    padding: 0.7rem 0 0.9rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .navbar .dropdown-menu.megamenu {
    border-radius: 18px;
    margin: 0.25rem 0 0.75rem;
  }
}

/* ===========================
   Hero & Section Cards
   =========================== */

/* 16:9 hero card that matches section width */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #000;
  aspect-ratio: 16 / 9;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
  max-width: 1440px;
  margin: 3rem auto 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-section {
    aspect-ratio: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 18px;
  }
}

/* YouTube video background inside hero */
.youtube-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  background: #000;
}

.youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Old mp4 hero video class kept for compatibility if reused */


/* Overlay container for buttons over video hero */
.overlay-container {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.mobile-home-hero-video {
  display: none;
}

.mobile-home-hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #000;
}

.mobile-home-hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767.98px) {
  :root {
    --mobile-section-gap: 1.25rem;
  }

  .home-hero-section {
    width: calc(100% - 1.5rem);
    margin: var(--mobile-section-gap) auto var(--mobile-section-gap) !important;
    padding: 2.25rem 1.25rem;
    aspect-ratio: auto;
    min-height: auto;
    background: linear-gradient(135deg, rgba(16, 16, 24, 0.96), rgba(44, 22, 72, 0.92));
    text-align: center;
  }

  .home-hero-section .youtube-bg {
    display: none;
  }

  .home-hero-section .overlay-container {
    padding: 0;
  }

  .home-hero-section h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }

  .home-hero-section .hero-pill {
    width: 100%;
    justify-content: center;
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
  }

  .home-hero-section .lead {
    font-size: 1.05rem;
  }

  .mobile-home-hero-video {
    display: block;
    width: calc(100% - 1.5rem);
    max-width: 1440px;
    margin: 0 auto var(--mobile-section-gap);
  }
}

@media (min-width: 992px) {
  .overlay-container {
    padding: 0 2rem;
  }
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: #000;
}

/* Transparent hero "pills" */
.hero-pill {
  background: rgba(0, 0, 0, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

/* Section cards */
.section-card {
  width: calc(100% - 2rem);
  max-width: 1440px;
  margin: 0 auto 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, rgba(16, 16, 24, 0.96), rgba(44, 22, 72, 0.92));
  padding: 3.75rem 3rem;
  color: #fff;
  box-sizing: border-box;
}

.section-card .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Full-width variant for specific sections */
.section-card.section-card-full {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

@media (max-width: 767.98px) {
  .section-card {
    padding: 2.5rem 1.75rem;
    margin-bottom: var(--mobile-section-gap, 1.25rem);
    border-radius: 18px;
  }
}

/* Location selector links */
.locations-selector-card .location-choice-link {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #f4efff;
  background: linear-gradient(135deg, rgba(18, 12, 30, 0.88), rgba(57, 28, 88, 0.56));
  border: 1px solid rgba(170, 140, 242, 0.24);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.locations-selector-card {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.locations-selector-card .what-we-do-card {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

.locations-selector-card .what-we-do-card img {
  width: min(100%, 420px);
  max-height: 420px;
  object-fit: contain;
}

.locations-selector-card .location-choice-link.ritz-pop-animate {
  opacity: 1;
  transform: none;
}

.locations-selector-card .location-country-flag {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.locations-selector-card .location-choice-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left center, rgba(170, 140, 242, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.locations-selector-card .location-choice-link span i:first-child {
  color: var(--bs-primary);
}

.locations-selector-card .location-choice-link i.fa-arrow-right {
  color: rgba(212, 175, 55, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.locations-selector-card .location-choice-link:hover,
.locations-selector-card .location-choice-link:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(33, 16, 53, 0.96), rgba(82, 39, 126, 0.78));
  border-color: rgba(170, 140, 242, 0.55);
  box-shadow: 0 0 0 1px rgba(170, 140, 242, 0.22), 0 16px 36px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.locations-selector-card .location-choice-link:hover::before,
.locations-selector-card .location-choice-link:focus::before {
  opacity: 1;
}

.locations-selector-card .location-choice-link:hover i.fa-arrow-right,
.locations-selector-card .location-choice-link:focus i.fa-arrow-right {
  color: var(--gold-accent);
  transform: translateX(3px);
}

/* “What We Do” style info cards */
.what-we-do-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 2.25rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
  .what-we-do-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Large icons used in What We Do, How It Works, and Events */
.what-icon,
.how-icon,
.event-icon {
  font-size: 5rem;
  margin-bottom: 0.9rem;
  color: var(--bs-primary);
}

/* Large icons used inside card headers (Web & Digital) */
.card-icon {
  font-size: 4rem;
  opacity: 0.9;
}

/* Service cards — dark theme */
.card {
  background: rgba(0, 0, 0, 0.70) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

.card .card-title {
  color: var(--gold-accent) !important;
}

.card .card-text {
  color: #ddd !important;
}

.card .card-body {
  padding: 2rem !important;
}

.card-img-top {
  border-radius: 18px 18px 0 0 !important;
}

@media (max-width: 767.98px) {
  .card .card-body {
    padding: 1.75rem !important;
  }
}

/* Spacing helpers used on this page */
.spacious-section .section-heading {
  margin-bottom: 3rem !important;
}

.spacious-row {
  row-gap: 3rem !important;
}

/* All-in-one event services bundle */
.event-bundle-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.event-bundle-card {
  overflow: hidden;
}

.event-bundle-card .card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.event-bundle-card .card-body {
  padding: 2.25rem !important;
}

.event-bundle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: -3.75rem auto 1rem;
  border-radius: 50%;
  background: rgba(156, 96, 255, 0.92);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.event-bundle-plus {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold-accent);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991.98px) {
  .event-bundle-flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 560px;
    margin: 0 auto;
  }

  .event-bundle-plus {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* Tick list (green checkmarks) */
.tick-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.4rem;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #32d27f; /* green tick */
}

/* Premium package card highlight */
.package-card {
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.10),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.package-card > * {
  position: relative;
  z-index: 1;
}

/* ===========================
   Colours & Buttons
   =========================== */

.text-primary {
  color: var(--bs-primary) !important;
}

.text-gold {
  color: var(--gold-accent) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  color: #fff;
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #9c7fe0;
  color: #fff;
}

/* Links */
a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: #ba8cf2;
}

/* ===========================
   Breadcrumbs
   =========================== */

.breadcrumb {
  background-color: #1e1e1e;
  border: 1px solid #333;
  margin-top: 10px;
}

.breadcrumb-item a {
  color: var(--bs-primary);
}

.breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-item.active::before,
.breadcrumb-item a:hover::before {
  color: var(--bs-primary);
}

/* ===========================
   Footer (Dark Premium)
   =========================== */

.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-text {
  color: var(--text-footer-dim);
  line-height: 1.7;
}

/* Footer links */
.footer-link {
  color: var(--text-footer);
  font-size: 0.85rem;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

/* Dark section: white links */
.footer-link-grid .footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-link-grid .footer-link:hover {
  color: #ba8cf2 !important;
}

.footer-hub-menu {
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #181818 0%, #101010 52%, #080808 100%);
}

.footer-hub-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.footer-hub-card .footer-heading {
  display: flex;
  align-items: center;
  color: #ffffff;
  letter-spacing: 0.065em;
}

.footer-hub-card li + li {
  margin-top: 0.45rem;
}

.footer-hub-card .footer-link {
  width: 100%;
  gap: 0.45rem;
  padding: 0.18rem 0;
}

.footer-hub-card .footer-heading i,
.footer-hub-card .footer-link i {
  color: var(--bs-primary, #aa8cf2);
  min-width: 1.25rem;
}

.footer-hub-card .footer-link:hover i,
.footer-hub-card .footer-link:focus i {
  color: #c9b6ff;
}

.footer-feature-link {
  color: #ffffff !important;
  font-weight: 800;
}

.footer-link i {
  min-width: 1.25rem;
}

.footer-link:hover {
  color: var(--bs-primary);
  transform: translateX(1px);
}

/* Make sure any .text-muted inside footer isn't too dim */
.footer .text-muted {
  color: var(--text-footer-dim) !important;
}

/* Mobile footer improvements */
@media (max-width: 576px) {
  .footer {
    text-align: left;
  }

  .footer-text,
  .footer-link {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ===========================
   Misc Links (old footer helpers)
   =========================== */

.list-inline-item a {
  color: #fff;
  font-size: 1rem;
}

.list-inline-item a:hover {
  color: #ba8cf2;
}

/* === Hero text readability on video background === */
.overlay-container {
  text-shadow: 0 0 2px rgba(0,0,0,0.5) !important;
}

.overlay-container h1,
.overlay-container .lead {
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(0, 0, 0, 0.85),
    0 4px 12px rgba(0, 0, 0, 0.9),
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000 !important;
}

/* == Dark theme overrides for Bootstrap defaults == */
.bg-light,
.bg-white,
.bg-secondary {
  background-color: rgba(20, 20, 28, 0.6) !important;
  color: var(--text-main) !important;
}

/* Table of Contents section */
section.container.py-3.border.rounded.bg-light,
.toc-section {
  background: rgba(15, 10, 30, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text-main) !important;
  padding: 1.5rem 2rem !important;
  border-radius: 16px !important;
  margin: 2rem auto !important;
}

.toc-section h2,
.toc-section .toc-heading {
  color: var(--bs-primary) !important;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.toc-section ul {
  color: var(--text-muted-global) !important;
  padding-left: 1.5rem;
}

.toc-section li {
  margin-bottom: 0.5rem;
}

.toc-section a {
  color: var(--text-muted-global) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-section a:hover {
  color: var(--gold-accent) !important;
  text-decoration: underline;
}

/* Accordion sections */
.accordion {
  --bs-accordion-bg: rgba(15, 10, 30, 0.5);
  --bs-accordion-color: var(--text-main);
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
  --bs-accordion-active-bg: rgba(20, 15, 40, 0.7);
  --bs-accordion-active-color: var(--bs-primary);
  --bs-accordion-btn-color: var(--text-main);
  --bs-accordion-btn-bg: rgba(15, 10, 30, 0.5);
  --bs-accordion-btn-active-bg: rgba(20, 15, 40, 0.7);
  --bs-accordion-btn-active-color: var(--bs-primary);
}

.accordion-button {
  color: var(--text-main) !important;
  background: rgba(15, 10, 30, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  font-weight: 500;
}

.accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.accordion-button:not(.collapsed) {
  color: var(--bs-primary) !important;
  background-color: rgba(20, 15, 40, 0.7) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
}

.accordion-item {
  background-color: rgba(15, 10, 30, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 0.75rem;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.accordion-body {
  color: var(--text-main) !important;
  background: rgba(15, 10, 30, 0.5) !important;
}

/* Global text-muted fix for dark theme */
.text-muted,
section .text-muted,
.container .text-muted {
  color: var(--text-muted-global) !important;
}

/* Ensure all text in content sections is visible on dark backgrounds */
section.container.py-5 {
  color: var(--text-main);
}

section.container.py-5 h2,
section.container.py-5 h3,
section.container.py-5 h4,
section.container.py-5 h5 {
  color: var(--gold-accent) !important;
}

section.container.py-5 h1 {
  color: var(--bs-primary) !important;
}

/* Card styling improvements for dark theme */
section.container.py-5 .card,
section.py-5 .card {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix any remaining white/light text issues */
.card-body,
.card-header,
.card-footer {
  color: var(--text-main) !important;
}

.card-header.bg-primary {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

/* Footer text improvements */
.footer-text {
  color: var(--text-footer-dim) !important;
  line-height: 1.7;
}

.footer-heading {
  color: #ffffff !important;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--gold-accent) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--bs-primary) !important;
  text-decoration: underline;
}

/* Global text-muted fix for footer areas */
.footer .text-muted {
  color: var(--text-footer-dim) !important;
}

/* Additional footer link styling */
.footer-link {
  color: var(--text-footer) !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--bs-primary) !important;
}

/* Shared video preview modal */
.ritz-video-modal .modal-content {
  background: rgba(16, 12, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ritz-video-modal .modal-header,
.ritz-video-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.ritz-video-modal .btn-close {
  filter: invert(1) grayscale(100%);
}

/* Site Machine customer default template: light clone of the shared Ritz Media template. */
body.site-machine-customer-template {
  background: var(--site-background-color, #ffffff) !important;
  color: var(--site-text-color, #111827) !important;
}

body.site-machine-customer-template .navbar {
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 12px 40px rgba(15,23,42,.08);
}

body.site-machine-customer-template .navbar .navbar-brand,
body.site-machine-customer-template .navbar .nav-link,
body.site-machine-customer-template .navbar .nav-brand-text,
body.site-machine-customer-template .navbar .navbar-toggler {
  color: var(--site-text-color, #111827) !important;
}

body.site-machine-customer-template .navbar .nav-link:hover,
body.site-machine-customer-template .text-primary {
  color: var(--site-primary-color, #6f42c1) !important;
}

body.site-machine-customer-template .section-card,
body.site-machine-customer-template .card {
  background: var(--site-card-background-color, #f8fafc) !important;
  color: var(--site-text-color, #111827) !important;
  border: 1px solid rgba(17,24,39,.10) !important;
  box-shadow: 0 18px 60px rgba(15,23,42,.08) !important;
}

body.site-machine-customer-template .section-card h1,
body.site-machine-customer-template .section-card h2,
body.site-machine-customer-template .section-card h3,
body.site-machine-customer-template .card h1,
body.site-machine-customer-template .card h2,
body.site-machine-customer-template .card h3 {
  color: var(--site-text-color, #111827) !important;
}

body.site-machine-customer-template .text-muted,
body.site-machine-customer-template .lead.text-muted {
  color: #4b5563 !important;
}

body.site-machine-customer-template .btn-primary {
  background: var(--site-primary-color, #6f42c1) !important;
  border-color: var(--site-primary-color, #6f42c1) !important;
}

.site-machine-default-home {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.site-machine-dummy-card {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.10);
  color: #111827;
}

.site-machine-dummy-card span {
  color: #4b5563;
}

/* Site Machine v2 fixed block system. Scoped only to customer-template pages. */
body.site-machine-customer-template .sm-block {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.site-machine-customer-template .sm-eyebrow {
  margin: 0 0 .65rem;
  color: var(--site-primary-color, #6f42c1);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
}

body.site-machine-customer-template .sm-hero h1,
body.site-machine-customer-template .sm-hero-simple h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

body.site-machine-customer-template .sm-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(15,23,42,.16);
}

body.site-machine-customer-template .sm-hero-placeholder {
  min-height: 320px;
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--site-primary-color, #6f42c1) 22%, #fff), color-mix(in srgb, var(--site-secondary-color, #111827) 12%, #fff));
  border: 1px solid rgba(17,24,39,.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--site-primary-color, #6f42c1);
  font-weight: 800;
  text-align: center;
}

body.site-machine-customer-template .sm-hero-placeholder i {
  font-size: 3rem;
}

body.site-machine-customer-template .sm-feature-card,
body.site-machine-customer-template .sm-review {
  padding: 1.25rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--site-card-background-color, #f8fafc) 92%, var(--site-primary-color, #6f42c1));
  border: 1px solid rgba(17,24,39,.10);
  height: 100%;
}

body.site-machine-customer-template .sm-feature-card i,
body.site-machine-customer-template .sm-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-primary-color, #6f42c1);
  color: #fff;
  font-weight: 900;
  margin-bottom: .85rem;
}

body.site-machine-customer-template .sm-feature-card h3 {
  font-size: 1.1rem;
}

body.site-machine-customer-template .sm-feature-card p,
body.site-machine-customer-template .sm-review,
body.site-machine-customer-template .sm-lead-form label {
  color: #4b5563;
}

body.site-machine-customer-template .sm-review footer {
  margin-top: 1rem;
  color: var(--site-text-color, #111827);
  font-weight: 800;
}

body.site-machine-customer-template .sm-lead-form .form-control,
body.site-machine-customer-template .sm-lead-form .form-select {
  background: #fff;
  border: 1px solid rgba(17,24,39,.16);
  color: #111827;
}

body.site-machine-customer-template .sm-cta,
body.site-machine-customer-template .sm-cta-banner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--site-card-background-color, #fff) 88%, var(--site-primary-color, #6f42c1)), var(--site-card-background-color, #fff)) !important;
}

body.site-machine-customer-template .btn-outline-secondary {
  border-color: var(--site-secondary-color, #111827);
  color: var(--site-secondary-color, #111827);
}

body.site-machine-customer-template .sm-coverage-note {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .75rem 0 0;
  padding: .75rem .9rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--site-primary-color, #6f42c1) 10%, #fff);
  color: #374151;
  font-size: .95rem;
}

body.site-machine-customer-template .sm-coverage-note i {
  color: var(--site-primary-color, #6f42c1);
  margin-top: .15rem;
}

.sm-manager-block,
.sm-manager-media-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}

.sm-manager-thumb {
  max-width: 160px;
  max-height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
}

.sm-manager-media-card {
  padding: .75rem;
  border-radius: 16px;
  height: 100%;
}

.sm-manager-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  margin-bottom: .5rem;
}

.sm-manager-media-card small {
  display: block;
  color: #cbd5e1;
  word-break: break-word;
}


body.site-machine-customer-template .sm-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
}

body.site-machine-customer-template .sm-location-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.1);
  color: var(--site-text-color, #111827);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

body.site-machine-customer-template .sm-location-card i,
body.site-machine-customer-template .sm-location-card:hover {
  color: var(--site-primary-color, #6f42c1);
}

body.site-machine-customer-template .sm-location-card span {
  font-weight: 800;
}

body.site-machine-customer-template .sm-location-card small,
body.site-machine-customer-template .sm-location-copy {
  color: #4b5563;
}

body.site-machine-customer-template .sm-location-copy {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.sm-manager-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Selectively published Events Hub and Media Hub viewport containment. */
.navbar .events-megamenu,
.navbar .media-hub-megamenu {
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
