/* === 100x Accessibility Widget === */
.a11y-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.a11y-fab:hover,
.a11y-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 8px 20px rgba(58, 218, 188, 0.45));
  outline: none;
}
.a11y-fab img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 768px) {
  .a11y-fab {
    bottom: 14px;
    left: 14px;
    width: 48px;
    height: 48px;
  }
}

/* Panel */
.a11y-panel {
  position: fixed;
  bottom: 88px;
  left: 20px;
  z-index: 9998;
  width: 280px;
  background: rgba(20, 20, 24, 0.95);
  color: #fff;
  border: 1px solid rgba(58, 218, 188, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Heebo", Arial, sans-serif;
  direction: rtl;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.a11y-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.a11y-panel__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #3adabc;
  letter-spacing: 0.3px;
  text-align: center;
}
.a11y-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.a11y-btn:hover,
.a11y-btn:focus-visible {
  background: rgba(58, 218, 188, 0.15);
  border-color: rgba(58, 218, 188, 0.6);
  outline: none;
}
.a11y-btn.is-active {
  background: rgba(58, 218, 188, 0.22);
  border-color: #3adabc;
  color: #3adabc;
}
.a11y-btn__icon {
  font-size: 16px;
  line-height: 1;
}
.a11y-btn--wide { grid-column: 1 / -1; }
.a11y-reset {
  grid-column: 1 / -1;
  margin-top: 4px;
  background: transparent;
  color: #ff7676;
  border-color: rgba(255, 118, 118, 0.4);
}
.a11y-reset:hover {
  background: rgba(255, 118, 118, 0.12);
  border-color: #ff7676;
}

/* === Applied States === */
html.a11y-fs-1 body, html.a11y-fs-1 body * { font-size: 110% !important; }
html.a11y-fs-2 body, html.a11y-fs-2 body * { font-size: 120% !important; }
html.a11y-fs-3 body, html.a11y-fs-3 body * { font-size: 135% !important; }
html.a11y-fs--1 body, html.a11y-fs--1 body * { font-size: 90% !important; }
html.a11y-fs--2 body, html.a11y-fs--2 body * { font-size: 80% !important; }

html.a11y-contrast body,
html.a11y-contrast body * {
  background-color: #000 !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html.a11y-contrast a,
html.a11y-contrast a * { color: #ffd400 !important; }
html.a11y-contrast img,
html.a11y-contrast video,
html.a11y-contrast .a11y-fab,
html.a11y-contrast .a11y-fab * { background-color: transparent !important; }
html.a11y-contrast .a11y-panel,
html.a11y-contrast .a11y-panel * { background-color: #000 !important; color: #fff !important; }
html.a11y-contrast .a11y-panel { border-color: #ffd400 !important; }
html.a11y-contrast .a11y-btn { border-color: rgba(255,255,255,0.4) !important; }
html.a11y-contrast .a11y-btn.is-active { color: #ffd400 !important; border-color: #ffd400 !important; }

html.a11y-links a,
html.a11y-links a * {
  text-decoration: underline !important;
  font-weight: 700 !important;
  color: #ffd400 !important;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}
