/* ========================================
   Premium Footer — Platform-Matching Design
   All variables scoped to footer wrapper only
   ======================================== */
.premium-footer-wrapper {
  --pf-bg-page: #f6f6f6;
  --pf-bg-card: #ffffff;
  --pf-border: rgba(0, 0, 0, 0.08);
  --pf-border-soft: rgba(0, 0, 0, 0.04);
  --pf-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --pf-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
  --pf-radius: 24px;
  --pf-accent: var(--main-color);
  --pf-accent-dark: var(--half-main-color);
  --pf-accent-light: var(--main-bright-color);
  --pf-accent-glow: var(--main-half-bright-color);
  --pf-text-dark: #1a1a2e;
  --pf-text-body: #433e42;
  --pf-text-muted: #8a7f88;
  --pf-text-link: #6b5f67;
  --pf-bg-hover: var(--half-50-50opacity-color);
  --pf-transition: 200ms ease;
  --pf-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--pf-bg-page);
  padding: 48px 24px 0;
  font-family: var(--pf-font);
  width: 100%;
}

/* Floating card container */
.premium-footer-card {
  max-width: 1500px;
  margin: 0 auto;
  background: var(--pf-bg-card);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow);
  padding: 44px 40px 28px;
  position: relative;
  transition: box-shadow var(--pf-transition);
}

.premium-footer-card:hover {
  box-shadow: var(--pf-shadow-hover);
}

/* Top accent border */
.premium-footer-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pf-accent-light),
    var(--pf-accent),
    var(--pf-accent-dark),
    transparent
  );
  border-radius: 0 0 3px 3px;
  opacity: 0.6;
}

/* ========================================
   Grid Layout — 4 columns
   ======================================== */
.premium-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

/* ========================================
   Column Styles
   ======================================== */
.premium-footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--pf-text-dark);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Brand Column */
.premium-footer-brand .premium-footer-logo {
  margin-bottom: 14px;
}

.premium-footer-brand .premium-footer-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.premium-footer-brand .premium-footer-logo img {
  height: 40px;
  width: auto;
}

/* Social Icons */
.premium-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pf-bg-hover);
  color: var(--pf-accent);
  transition: all var(--pf-transition);
  text-decoration: none;
}

.premium-footer-social a:hover {
  background: var(--pf-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--half-50-50opacity-color);
}

.premium-footer-social a svg {
  width: 17px;
  height: 17px;
}

/* Link Lists */
.premium-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-footer-links li {
  line-height: 1;
}

.premium-footer-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-text-link);
  text-decoration: none;
  transition: all var(--pf-transition);
  display: inline-block;
  position: relative;
  padding: 2px 0;
}

.premium-footer-links li a:hover {
  color: var(--pf-accent);
  transform: translateX(4px);
}

/* ========================================
   Newsletter Column
   ======================================== */
.premium-footer-newsletter p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--pf-text-muted);
  margin: 0 0 18px;
}

.premium-footer-newsletter-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.premium-footer-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--pf-border);
  border-radius: 10px;
  background: var(--pf-bg-page);
  color: var(--pf-text-dark);
  font-size: 14px;
  font-family: var(--pf-font);
  outline: none;
  transition: border-color var(--pf-transition);
}

.premium-footer-newsletter-form input[type="email"]::placeholder {
  color: var(--pf-text-muted);
}

.premium-footer-newsletter-form input[type="email"]:focus {
  border-color: var(--pf-accent);
}

.premium-footer-newsletter-form .premium-footer-subscribe-btn {
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-dark));
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--pf-font);
  cursor: pointer;
  transition: all var(--pf-transition);
  white-space: nowrap;
  position: relative;
}

.premium-footer-newsletter-form .premium-footer-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--half-50-50opacity-color);
}

.premium-footer-newsletter-form .premium-footer-subscribe-btn:active {
  transform: translateY(0);
}

/* ========================================
   Divider
   ======================================== */
.premium-footer-divider {
  height: 1px;
  background: var(--pf-border);
  margin: 36px 0 24px;
}

/* ========================================
   Bottom Bar
   ======================================== */
.premium-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.premium-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.premium-footer-bottom-left .dt_foot_langs > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pf-text-muted);
  text-decoration: none;
  transition: color var(--pf-transition);
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--pf-bg-hover);
}

.premium-footer-bottom-left .dt_foot_langs > a:hover {
  color: var(--pf-accent);
  background: var(--half-50-50opacity-color);
}

.premium-footer-bottom-left .dt_foot_langs > a svg {
  width: 15px;
  height: 15px;
}

/* Legal company line separator */
.pf-legal-sep {
  opacity: 0.5;
  margin: 0 4px;
}

/* Language modal styling */
.premium-footer-wrapper #modal_langs .modal-content {
  border-radius: 16px;
  border: 1px solid var(--pf-border);
}

.premium-footer-wrapper #modal_langs .modal-content h6 {
  color: var(--pf-text-dark);
}

.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal li a {
  color: var(--pf-text-link);
}

.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal li.active a,
.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal li a:hover {
  color: var(--pf-accent);
}

.premium-footer-bottom-center {
  font-size: 13px;
  font-weight: 400;
  color: var(--pf-text-muted);
  text-align: center;
}

.premium-footer-bottom-right {
  display: flex;
  align-items: center;
}

.premium-footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.premium-footer-bottom-links li {
  display: inline-flex;
  align-items: center;
}

.premium-footer-bottom-links li + li::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pf-text-muted);
  margin: 0 10px;
  opacity: 0.4;
}

.premium-footer-bottom-links li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--pf-text-muted);
  text-decoration: none;
  transition: color var(--pf-transition);
}

.premium-footer-bottom-links li a:hover {
  color: var(--pf-accent);
}

/* Dark Mode Toggle Button in Footer */
.premium-footer-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pf-bg-hover);
  color: var(--pf-text-muted);
  margin-left: 12px;
  text-decoration: none;
  transition: all var(--pf-transition);
  position: relative;
}

.premium-footer-dark-toggle:hover {
  background: var(--pf-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--half-50-50opacity-color);
}

.premium-footer-dark-toggle svg {
  width: 17px;
  height: 17px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.premium-footer-dark-toggle .premium-footer-toggle-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.premium-footer-dark-toggle .premium-footer-toggle-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Night mode state — show moon, hide sun */
.premium-footer-dark-toggle.night .premium-footer-toggle-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.premium-footer-dark-toggle.night .premium-footer-toggle-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Dark-mode variant */
.premium-footer-wrapper.pf-dark .premium-footer-dark-toggle {
  background: var(--half-50-50opacity-color);
  color: var(--pf-text-muted);
}

.premium-footer-wrapper.pf-dark .premium-footer-dark-toggle:hover {
  background: var(--pf-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--half-50-50opacity-color);
}

/* custom-page "More" dropdown */
.premium-footer-bottom .dt_foot_langs .dropdown-content {
  border-radius: 12px;
  border: 1px solid var(--pf-border);
  box-shadow: var(--pf-shadow);
}

.premium-footer-bottom .dt_foot_langs .dropdown-content li a {
  color: var(--pf-text-link);
}

.premium-footer-bottom .dt_foot_langs .dropdown-content li a:hover {
  color: var(--pf-accent);
  background: var(--pf-bg-hover);
}

/* ========================================
   Newsletter message
   ======================================== */
.premium-footer-newsletter-message {
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

.premium-footer-newsletter-message.success {
  display: block;
  background: var(--half-50-50opacity-color);
  color: var(--pride-green);
  border: 1px solid var(--pride-green);
}

.premium-footer-newsletter-message.error {
  display: block;
  background: var(--half-50-50opacity-color);
  color: var(--pride-red);
  border: 1px solid var(--pride-red);
}

/* ========================================
   Focus styles for accessibility
   ======================================== */
.premium-footer-links li a:focus-visible,
.premium-footer-social a:focus-visible,
.premium-footer-bottom-links li a:focus-visible,
.premium-footer-newsletter-form input[type="email"]:focus-visible,
.premium-footer-newsletter-form .premium-footer-subscribe-btn:focus-visible,
.premium-footer-bottom-left .dt_foot_langs a:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 2px;
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 1024px) {
  .premium-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .premium-footer-brand {
    grid-column: 1 / -1;
  }

  .premium-footer-card {
    padding: 36px 28px 24px;
  }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 640px) {
  .premium-footer-wrapper {
    padding: 36px 16px 0;
  }

  .premium-footer-card {
    padding: 28px 20px 20px;
    border-radius: 18px;
  }

  .premium-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .premium-footer-heading {
    margin-bottom: 14px;
  }

  .premium-footer-desc {
    max-width: 100%;
  }

  .premium-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .premium-footer-bottom-left {
    justify-content: center;
  }

  .premium-footer-bottom-center {
    order: 3;
  }

  .premium-footer-divider {
    margin: 28px 0 18px;
  }

  .premium-footer-social {
    justify-content: center;
  }

  .premium-footer-bottom-right {
    justify-content: center;
    width: 100%;
  }

  .premium-footer-bottom-links {
    justify-content: center;
  }
}

/* ===== Footer: transparent & borderless ===== */
.premium-footer-wrapper {
  background: transparent !important;
}
.premium-footer-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 34px 12px 18px !important;
}
.premium-footer-card:hover {
  box-shadow: none !important;
}
.premium-footer-card::before,
.premium-footer-card::after {
  content: none !important;
}
.premium-footer-divider {
  display: none !important;
}
.premium-footer-bottom-links li + li::before {
  content: none !important;
}
.premium-footer-social a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.premium-footer-social a:hover {
  background: transparent !important;
  box-shadow: none !important;
}
.pf-cards img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ===== Mobile: clear the fixed bottom nav ===== */
@media (max-width: 768px) {
  .premium-footer-wrapper { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .premium-footer-card { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}

/* ===== Compact compliance billing block ===== */
.pf-billing { gap: 6px; font-size: 12px; line-height: 1.55; }
.pf-billing-label { font-size: 12px; }
.pf-billing-note { font-size: 12px; line-height: 1.5; color: var(--pf-text-muted); }
.pf-billing-links { font-size: 12px; line-height: 1.6; color: var(--pf-text-muted); }
.pf-billing-links a { color: var(--pf-accent); }
.pf-billing-contact { font-size: 12px; }
.pf-cards img { height: 26px; }

/* ===== Brand column legal/copyright ===== */
.pf-brand-legal { margin-top: 14px; font-size: 12px; line-height: 1.7; color: var(--pf-text-muted); }
.pf-brand-legal .pf-legal-sep { margin: 0 6px; }

/* ===== Footer pay methods row ===== */
.pay-methods-row-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.pay-methods-row-footer > img { height: 24px; width: auto; border-radius: 4px; }
.pay-methods-row-footer .pm-cycle { width: 42px; height: 26px; }
.pay-methods-row-footer .pm-cycle img { height: 24px; }
.pay-methods-row-footer .pm-cycle img[src*="amex"] { height: 24px; }

/* ===== Footer pay cycle (self-contained) ===== */
.pay-methods-row-footer .pm-cycle { position: relative; width: 42px; height: 26px; display: inline-block; }
.pay-methods-row-footer .pm-cycle img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 24px; width: auto; opacity: 0; transition: opacity .5s ease; margin: 0; display: block;
}
.pay-methods-row-footer .pm-cycle img.pm-on { opacity: 1; }

/* ===== Footer pay cycle: pure CSS (no JS needed) ===== */
@keyframes pmCycleFooter { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
.pay-methods-row-footer .pm-cycle { position: relative; width: 42px; height: 26px; display: inline-block; }
.pay-methods-row-footer .pm-cycle img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 24px; width: auto; margin: 0; display: block;
  opacity: 0; animation: pmCycleFooter 8s infinite;
}
.pay-methods-row-footer .pm-cycle img:nth-child(1) { animation-delay: 0s; }
.pay-methods-row-footer .pm-cycle img:nth-child(2) { animation-delay: 2s; }
.pay-methods-row-footer .pm-cycle img:nth-child(3) { animation-delay: 4s; }
.pay-methods-row-footer .pm-cycle img:nth-child(4) { animation-delay: 6s; }

/* ===== Footer language modal overrides ===== */
.premium-footer-wrapper #modal_langs .modal-content { background: #ffffff; border-color: rgba(20, 10, 40, 0.08); color: #333333; }
.premium-footer-wrapper #modal_langs .modal-content h6 { color: #1d1824; }
.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal { background: #f6f3f9; }
.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal li a { color: var(--main-color); border-color: var(--main-color); }
.premium-footer-wrapper #modal_langs .modal-content .dt_lang_modal li.active a { background: var(--half-50-50opacity-color); color: var(--main-color); }
