/* Footer, cookie panel, and footer utility controls. */

.footer {
  flex: 0 0 auto !important;
  padding: 0 !important;
  background: #e2e8f1 !important;
  color: var(--txt-2, #475569);
  border-top: 1px solid #cbd5e1 !important;
}

html[data-theme="dark"] .footer {
  background: #0f172a !important;
  color: #cbd5e1;
  border-top-color: rgba(148, 163, 184, .18) !important;
}

.footer a {
  text-decoration: none;
}

.footer-inner {
  width: min(var(--evc-shell-max, 1320px), calc(100% - var(--evc-page-gutter, 32px))) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 46px 0 22px !important;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(34px, 5vw, 70px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, .42);
}

html[data-theme="dark"] .footer-top {
  border-bottom-color: rgba(148, 163, 184, .18);
}

.footer-brand {
  align-items: flex-start;
  gap: 5px;
}

.footer-brand .brand-logo {
  height: 34px;
}

.footer-brand-caption {
  max-width: 260px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .footer-brand-caption {
  color: #94a3b8;
}

.footer-desc {
  max-width: 430px;
  margin: 18px 0 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
}

html[data-theme="dark"] .footer-desc {
  color: #cbd5e1;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #334155;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

html[data-theme="dark"] .footer-badges span {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: #e5edf8;
}

.footer-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-share-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  color: #334155;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.footer-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .34);
  background: rgba(255, 255, 255, .86);
  color: var(--c-primary, #2563eb);
}

.footer-share-btn i,
.footer-share-btn svg {
  font-size: 14px;
  line-height: 1;
}

.footer-share-instagram { color: #c13584; }
.footer-share-x { color: #111827; }
.footer-share-facebook { color: #1877f2; }
.footer-share-linkedin { color: #0a66c2; }
.footer-share-bluesky { color: #0285ff; }
.footer-share-threads { color: #111827; }
html[data-theme="dark"] .footer-share-threads { color: #e5edf8; }
.footer-share-mastodon { color: #563acc; }
html[data-theme="dark"] .footer-share-mastodon { color: #6364ff; }
.footer-share-googlenews { color: #4285f4; }
.footer-share-reddit { color: #ff4500; }
.footer-share-tumblr { color: #35465c; }
.footer-share-pinterest { color: #bd081c; }
.footer-share-telegram { color: #229ed9; }
.footer-share-whatsapp { color: #25d366; }
.footer-share-link { color: #475569; }
.footer-share-email { color: #7f8c8d; }
.footer-share-rss { color: #ea580c; }

.footer-share-btn.is-copied {
  border-color: rgba(16, 185, 129, .45);
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

html[data-theme="dark"] .footer-share-btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: #e5edf8;
}

html[data-theme="dark"] .footer-share-btn:hover {
  background: rgba(96, 165, 250, .14);
  border-color: rgba(96, 165, 250, .32);
  color: #93c5fd;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.footer-col h4 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 13px;
  padding-bottom: 7px;
  border-bottom: 2px solid rgba(15, 23, 42, .16);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[data-theme="dark"] .footer-col h4 {
  color: #dbeafe;
  border-bottom-color: rgba(219, 234, 254, .24);
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.footer-col a:hover {
  color: var(--c-primary, #2563eb);
}

html[data-theme="dark"] .footer-col a {
  color: #cbd5e1;
}

html[data-theme="dark"] .footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100%;
  padding-top: 18px !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

.footer-copy {
  min-width: 0 !important;
  color: #334155 !important;
  font-size: 13px;
  line-height: 1.45 !important;
}

html[data-theme="dark"] .footer-copy {
  color: #cbd5e1 !important;
}

.footer-bottom-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  min-width: 0;
  margin-left: auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

.footer-bottom-links .evc-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.footer-tool {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none;
  box-sizing: border-box;
  opacity: 0.85 !important;
  transition: opacity 0.15s ease, color 0.15s ease !important;
}

.footer-tool:hover,
.footer-tool.is-open,
.footer-tool[aria-expanded="true"] {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--c-primary, #2563eb) !important;
  opacity: 1 !important;
}

.footer-tool i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 13px !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  color: var(--c-primary, #2563eb) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.footer-tool-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: max-content !important;
  color: inherit !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] .footer-tool {
  background: transparent !important;
  border-color: transparent !important;
  color: #e5edf8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .footer-tool:hover,
html[data-theme="dark"] .footer-tool.is-open,
html[data-theme="dark"] .footer-tool[aria-expanded="true"] {
  background: transparent !important;
  border-color: transparent !important;
  color: #bfdbfe !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .footer-tool i {
  color: #60a5fa !important;
}

.pwa-only,
.footer-tool.pwa-only,
.mobile-top-actions .pwa-only,
.pwa-control.pwa-only,
html.is-browser .pwa-only,
html.is-browser .footer-tool.pwa-only,
html.is-browser .mobile-top-actions .pwa-only,
html.is-browser .pwa-control.pwa-only,
html:not(.is-pwa):not(.is-pwa-shell) .pwa-only {
  display: none !important;
}

html.is-pwa .pwa-only,
html.is-pwa-shell .pwa-only,
html.is-pwa .footer-tool.pwa-only,
html.is-pwa-shell .footer-tool.pwa-only,
html.is-pwa .mobile-top-actions .pwa-only,
html.is-pwa-shell .mobile-top-actions .pwa-only,
html.is-pwa .pwa-control.pwa-only,
html.is-pwa-shell .pwa-control.pwa-only {
  display: inline-flex !important;
}

html.is-pwa .browser-only,
html.is-pwa-shell .browser-only,
html.is-pwa .footer-tool.browser-only,
html.is-pwa-shell .footer-tool.browser-only,
html.is-pwa .mobile-top-actions .browser-only,
html.is-pwa-shell .mobile-top-actions .browser-only,
html.is-pwa .pwa-control.browser-only,
html.is-pwa-shell .pwa-control.browser-only,
[data-pwa-install][data-pwa-state="hidden"] {
  display: none !important;
}

@media not all and (display-mode: standalone) {
  html.is-browser .browser-only,
  html.is-browser .footer-tool.browser-only,
  html.is-browser .mobile-top-actions .browser-only,
  html.is-browser .pwa-control.browser-only,
  html:not(.is-pwa):not(.is-pwa-shell) .browser-only {
    display: inline-flex !important;
  }
}

@media (display-mode: standalone) {
  .browser-only,
  .footer-tool.browser-only,
  .mobile-top-actions .browser-only,
  .pwa-control.browser-only {
    display: none !important;
  }

  .pwa-only,
  .footer-tool.pwa-only,
  .mobile-top-actions .pwa-only,
  .pwa-control.pwa-only {
    display: inline-flex !important;
  }
}

.footer-bottom-links .evc-dropdown {
  position: relative;
}

.footer-bottom-links .evc-dropdown-panel {
  display: none !important;
  position: absolute;
  z-index: 10050;
  right: 0;
  left: auto;
  bottom: calc(100% + 10px);
  top: auto;
  min-width: 180px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 13px;
  background: var(--surf, #fff);
  color: var(--txt, #0f172a);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.footer-bottom-links .evc-dropdown-panel.is-open {
  display: grid !important;
}

html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel {
  background: #101f36;
  border-color: rgba(148, 163, 184, .22);
  color: #e5edf8;
}

.footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"] {
  width: min(88vw, 278px) !important;
  min-width: 220px !important;
  max-height: min(var(--vh-58), 320px) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 5px;
}

.footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"] {
  width: 168px !important;
  min-width: 168px !important;
  max-height: min(var(--vh-54), 220px) !important;
  grid-template-columns: 1fr;
  gap: 3px;
}

.footer-bottom-links .evc-dropdown-panel a,
.footer-bottom-links .evc-dropdown-panel button {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  box-sizing: border-box;
}

.footer-bottom-links .evc-dropdown-panel a:hover,
.footer-bottom-links .evc-dropdown-panel button:hover,
.footer-bottom-links .evc-dropdown-panel .is-active,
.footer-bottom-links .evc-dropdown-panel button.is-active,
.footer-bottom-links .evc-dropdown-panel button[aria-pressed="true"] {
  background: rgba(37, 99, 235, .10);
  color: var(--txt, #0f172a);
}

html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel a:hover,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button:hover,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel .is-active,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button.is-active,
html[data-theme="dark"] .footer-bottom-links .evc-dropdown-panel button[aria-pressed="true"] {
  background: rgba(96, 165, 250, .16);
  color: #eff6ff;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] a {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 7px;
  direction: ltr;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] .evc-lang-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] .evc-lang-name[dir="rtl"] {
  direction: rtl;
  text-align: left;
  unicode-bidi: isolate;
}

.footer-bottom-links [data-evc-menu-panel="footer-lang"] small {
  justify-self: end;
  min-width: 20px;
  color: inherit;
  font-size: 9.5px;
  opacity: .62;
  text-align: right;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button {
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button::after {
  content: "";
  flex: 0 0 14px;
  margin-left: auto;
  color: var(--c-primary, #2563eb);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.footer-bottom-links [data-evc-menu-panel="footer-theme"] button.is-active::after,
.footer-bottom-links [data-evc-menu-panel="footer-theme"] button[aria-pressed="true"]::after {
  content: "\2713";
}

[data-evc-theme-icon].evc-theme-icon-light,
#themeIcon.evc-theme-icon-light,
#themeIconMob.evc-theme-icon-light,
[data-evc-theme-choice="light"] .fa-sun {
  color: #f59e0b !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-light,
html[data-theme="dark"] #themeIcon.evc-theme-icon-light,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-light,
html[data-theme="dark"] [data-evc-theme-choice="light"] .fa-sun {
  color: #fbbf24 !important;
}

[data-evc-theme-icon].evc-theme-icon-dark,
#themeIcon.evc-theme-icon-dark,
#themeIconMob.evc-theme-icon-dark,
[data-evc-theme-choice="dark"] .fa-moon {
  color: #2563eb !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-dark,
html[data-theme="dark"] #themeIcon.evc-theme-icon-dark,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-dark,
html[data-theme="dark"] [data-evc-theme-choice="dark"] .fa-moon {
  color: #60a5fa !important;
}

[data-evc-theme-icon].evc-theme-icon-system-light,
[data-evc-theme-icon].evc-theme-icon-system-dark,
#themeIcon.evc-theme-icon-system-light,
#themeIconMob.evc-theme-icon-system-light,
#themeIcon.evc-theme-icon-system-dark,
#themeIconMob.evc-theme-icon-system-dark,
[data-evc-theme-choice="system"] .fa-desktop {
  color: #64748b !important;
}
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-system-light,
html[data-theme="dark"] [data-evc-theme-icon].evc-theme-icon-system-dark,
html[data-theme="dark"] #themeIcon.evc-theme-icon-system-light,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-system-light,
html[data-theme="dark"] #themeIcon.evc-theme-icon-system-dark,
html[data-theme="dark"] #themeIconMob.evc-theme-icon-system-dark,
html[data-theme="dark"] [data-evc-theme-choice="system"] .fa-desktop {
  color: #94a3b8 !important;
}

@media (max-height: 560px) {
  .footer-bottom-links .evc-dropdown-panel {
    max-height: calc(var(--vh-100) - 92px) !important;
  }
}

@media (max-width: 920px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-inner {
    width: min(var(--evc-shell-max, 1320px), calc(100% - var(--evc-page-gutter-mobile, 18px))) !important;
    padding: 38px 0 20px !important;
  }

  .footer-top {
    padding-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 13px !important;
    text-align: center !important;
  }

  .footer-bottom-links {
    order: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .footer-copy {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"].is-open,
  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"].is-open {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"].is-open {
    width: min(92vw, 320px) !important;
    min-width: 0 !important;
    max-height: min(var(--vh-58), 380px) !important;
  }

  .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"].is-open {
    width: min(72vw, 184px) !important;
    min-width: 0 !important;
    max-height: min(var(--vh-46), 220px) !important;
  }
}

@media (max-width: 540px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-desc {
    font-size: 14px;
  }

  .footer-tool {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
  }

  .footer-tool-label {
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .footer-bottom-links {
    gap: 6px !important;
  }

  .footer-tool {
    padding: 0 8px !important;
  }

  .footer-tool-label {
    font-size: 10.5px !important;
  }
}

/* Cookie bar */
#cookie-bar {
  display: none;
  opacity: 0;
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10000;
  width: 400px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border-radius: 18px;
  background: rgba(240, 244, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  color: #475569;
  font-family: inherit;
  transition: opacity .3s ease, transform .3s ease;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.cb-left {
  flex: none;
  width: 100%;
  padding-right: 0;
  box-sizing: border-box;
}

.cb-title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.cb-desc {
  margin: 0;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.5;
}

.cb-desc a {
  display: block;
  margin-top: 6px;
  margin-left: 0;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.cb-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.cb-btn {
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  box-sizing: border-box;
}

.cb-cst {
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  background: transparent;
  color: #475569;
}

.cb-cst:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cb-nec {
  border: 1px solid transparent !important;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.cb-nec:hover {
  background: rgba(15, 23, 42, 0.1);
}

.cb-all {
  background: #2563eb;
  color: #fff;
}

.cb-all:hover {
  background: #1d4ed8;
}

/* Dark theme overrides for cookie-bar */
html[data-theme="dark"] #cookie-bar {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  color: #94a3b8;
}

html[data-theme="dark"] .cb-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .cb-desc {
  color: #94a3b8;
}

html[data-theme="dark"] .cb-desc a {
  color: #60a5fa;
}

html[data-theme="dark"] .cb-cst {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #e2eaf5;
}

html[data-theme="dark"] .cb-cst:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cb-nec {
  background: rgba(255, 255, 255, 0.08);
  color: #e2eaf5;
}

html[data-theme="dark"] .cb-nec:hover {
  background: rgba(255, 255, 255, 0.16);
}

#cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}

#cookie-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10002;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
  color: #1e293b;
  font-family: inherit;
  transform: translate(-50%, -50%);
}

#cookie-panel.open {
  display: block;
  animation: cpIn .22s ease;
}

@keyframes cpIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.cp-title {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
}

.cp-close {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cp-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.cp-intro {
  padding: 12px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  font-size: .84rem;
  line-height: 1.65;
}

.cp-intro a {
  margin-left: 4px;
  color: var(--c-primary, #2563eb);
  text-decoration: underline;
}

.cp-accept-all {
  display: block;
  width: calc(100% - 44px);
  margin: 14px 22px 4px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--c-primary, #2563eb);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s ease;
}

.cp-accept-all:hover {
  background: var(--c-primary-dark, #1d4ed8);
}

.cp-cat {
  border-top: 1px solid #f1f5f9;
}

.cp-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
}

.cp-cat-head:hover {
  background: #f8fafc;
}

.cp-expand {
  flex-shrink: 0;
  width: 16px;
  color: #94a3b8;
  font-size: .75rem;
  text-align: center;
  transition: transform .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-cat.open .cp-expand {
  transform: rotate(90deg);
}

.cp-cat-name {
  flex: 1;
  color: #1e293b;
  font-size: .88rem;
  font-weight: 600;
}

.cp-always {
  padding: 3px 10px;
  border-radius: 20px;
  background: #d1fae5;
  color: #059669;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cp-toggle {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.cp-toggle input {
  width: 0;
  height: 0;
  opacity: 0;
}

.cp-slider {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #cbd5e1;
  transition: background .2s ease;
}

.cp-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cp-toggle input:checked + .cp-slider {
  background: var(--c-primary, #2563eb);
}

.cp-toggle input:checked + .cp-slider::before {
  transform: translateX(20px);
}

.cp-cat-body {
  display: none;
  padding: 0 22px 14px 48px;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.6;
}

.cp-cat.open .cp-cat-body {
  display: block;
}

.cp-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
}

.cp-btn-rej,
.cp-btn-save {
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cp-btn-rej {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}

.cp-btn-rej:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cp-btn-save {
  border: 0;
  background: var(--c-primary, #2563eb);
  color: #fff;
}

.cp-btn-save:hover {
  background: var(--c-primary-dark, #1d4ed8);
}

html[data-theme="dark"] #cookie-panel {
  background: #1e293b;
  color: #e2eaf5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}

html[data-theme="dark"] .cp-title,
html[data-theme="dark"] .cp-cat-name {
  color: #f1f5f9;
}

html[data-theme="dark"] .cp-close {
  color: #94a3b8;
}

html[data-theme="dark"] .cp-close:hover,
html[data-theme="dark"] .cp-cat-head:hover {
  background: #263548;
  color: #f1f5f9;
}

html[data-theme="dark"] .cp-intro,
html[data-theme="dark"] .cp-cat-body {
  color: #94a3b8;
}

html[data-theme="dark"] .cp-intro,
html[data-theme="dark"] .cp-cat,
html[data-theme="dark"] .cp-foot {
  border-color: #334155;
}

html[data-theme="dark"] .cp-slider {
  background: #475569;
}

html[data-theme="dark"] .cp-btn-rej {
  background: #263548;
  border-color: #334155;
  color: #94a3b8;
}

html[data-theme="dark"] .cp-btn-rej:hover {
  background: #334155;
}

@media (max-width: 600px) {
  #cookie-bar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    padding: 20px 16px 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .cb-actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .cb-btn {
    padding: 7px 4px;
    font-size: .68rem;
  }

  #cookie-panel {
    width: calc(100% - 24px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .cp-head {
    padding: 14px 16px 0;
  }

  .cp-intro,
  .cp-cat-head {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cp-accept-all {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .cp-cat-body {
    padding-left: 16px;
  }

  .cp-foot {
    padding: 12px 16px;
  }
}

/* Scroll-to-top */
.evc-scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--evc-scroll-top-bottom, 18px) + env(safe-area-inset-bottom));
  z-index: 9998;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--c-primary, #2563eb);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}

/* Scroll progress SVG hallow overlay styles */
.scroll-progress-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.scroll-progress-svg .circle-bg {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.4; /* Sleek thinner track */
  fill: none;
}
.scroll-progress-svg .circle-progress {
  stroke: #38bdf8; /* Cyan */
  stroke-width: 2.2; /* Slightly thicker active line */
  stroke-linecap: round;
  fill: none;
  transition: stroke-dasharray 0.08s linear, stroke-width 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}

.evc-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover: Smooth scale up and background glow */
.evc-scroll-top.is-visible:hover {
  transform: scale(1.02) !important;
  background: var(--c-primary-dark, #1d4ed8) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .28) !important;
}

/* Hover: Thicken and glow active progress ring */
.evc-scroll-top:hover .scroll-progress-svg .circle-progress {
  stroke-width: 2.6;
  stroke: #67e8f9; /* Brighter neon cyan */
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.7));
}

.evc-scroll-top:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-primary, #2563eb) 35%, transparent);
  outline-offset: 3px;
}

/* Hover: Arrow micro-nudge upward */
.evc-scroll-top i {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.evc-scroll-top:hover i {
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .evc-scroll-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(var(--evc-scroll-top-bottom, 14px) + env(safe-area-inset-bottom));
    width: 36px;
    height: 36px;
  }

  .evc-scroll-top i {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evc-scroll-top {
    transition: none;
  }
}

/* EVC RTL Footer Dropdown Positions: Prevent overflow in Arabic */
@media (min-width: 761px) {
  html[dir="rtl"] .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-lang"],
  html[dir="rtl"] .footer-bottom-links .evc-dropdown-panel[data-evc-menu-panel="footer-theme"] {
    left: 0 !important;
    right: auto !important;
  }
  html[dir="rtl"] .footer-bottom-links {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* RTL overrides for Cookie Bar & Scroll to Top */
html[dir="rtl"] #cookie-bar {
  left: auto;
  right: 24px;
}

html[dir="rtl"] .evc-scroll-top {
  right: auto;
  left: max(16px, env(safe-area-inset-left));
}

/* Footer mobile accordion styles (collapsible navigation on mobile) */
@media (max-width: 760px) {
  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .footer-col {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  html[data-theme="dark"] .footer-col {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .footer-col h4 {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 14px 0 !important;
    border-bottom: none !important;
    cursor: pointer;
    user-select: none;
  }
  .footer-col-chevron {
    display: inline-block !important;
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.25s ease-out;
  }
  .footer-col-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease-out;
  }
  .footer-col.is-active .footer-col-content {
    max-height: 350px;
    padding-bottom: 14px;
  }
  .footer-col.is-active .footer-col-chevron {
    transform: rotate(180deg);
  }
}
@media (min-width: 761px) {
  .footer-col-chevron {
    display: none !important;
  }
}

/* Newsletter CSS Styling */
.footer-newsletter {
  margin-top: 25px;
  max-width: 320px;
}

.footer-newsletter h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #475569;
}

html[data-theme="dark"] .footer-newsletter h4 {
  color: #94a3b8;
}

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

.newsletter-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 3px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .newsletter-input-group {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}

.newsletter-input-group:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

html[data-theme="dark"] .newsletter-input-group:focus-within {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, .08);
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 12px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  width: 100%;
}

html[data-theme="dark"] .newsletter-form input[type="email"] {
  color: #e5edf8;
}

.newsletter-form button[type="submit"] {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.newsletter-form button[type="submit"]:hover {
  background: #2563eb;
}

.newsletter-form button[type="submit"]:active {
  transform: scale(0.98);
}

html[data-theme="dark"] .newsletter-form button[type="submit"] {
  background: #0284c7;
}

html[data-theme="dark"] .newsletter-form button[type="submit"]:hover {
  background: #0369a1;
}

.newsletter-message {
  font-size: 12.5px;
  margin-top: 8px;
  line-height: 1.4;
  display: none;
}

.newsletter-message.is-success {
  display: block;
  color: #15803d;
}

html[data-theme="dark"] .newsletter-message.is-success {
  color: #4ade80;
}

.newsletter-message.is-error {
  display: block;
  color: #b91c1c;
}

html[data-theme="dark"] .newsletter-message.is-error {
  color: #f87171;
}

.newsletter-privacy {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px !important;
  line-height: 1.35;
  color: #64748b;
  max-width: 320px;
}

html[data-theme="dark"] .newsletter-privacy {
  color: #94a3b8;
}

.newsletter-privacy input[type="checkbox"] {
  width: 12px !important;
  height: 12px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}

.newsletter-privacy label {
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #64748b !important;
  cursor: pointer;
  user-select: none;
}

html[data-theme="dark"] .newsletter-privacy label {
  color: #94a3b8 !important;
}

.newsletter-privacy label a {
  color: inherit !important;
  text-decoration: underline !important;
  transition: opacity 0.2s;
}

.newsletter-privacy label a:hover {
  opacity: 0.8;
}

/* Newsletter Modal Overlay */
.newsletter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  padding: 16px;
}

.newsletter-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal-card {
  background: var(--surf, #ffffff);
  border: 1px solid var(--brd, #e2e8f0);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.newsletter-modal-overlay.is-open .newsletter-modal-card {
  transform: scale(1);
}

.newsletter-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.newsletter-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

html[data-theme="dark"] .newsletter-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

html[data-theme="dark"] .newsletter-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.newsletter-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px auto;
}

html[data-theme="dark"] .newsletter-modal-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.newsletter-modal-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--txt, #0f172a);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.newsletter-modal-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--txt3, #64748b);
  margin: 0 0 24px 0;
}

/* Modal Form Custom Width */
.newsletter-modal-card .newsletter-form {
  max-width: 100%;
}
.newsletter-modal-card .newsletter-privacy {
  max-width: 100%;
  text-align: left;
}
/* cache buster */
/* final fix cache buster */
