/* Accessibility Styles */
.a11y-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0B192C;
  color: #D4AF37;
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}
.a11y-btn:hover, .a11y-btn:focus-visible {
  transform: scale(1.1);
  background: #132A4A;
  outline: 3px solid #D4AF37;
}
.a11y-modal {
  position: fixed;
  bottom: 85px;
  right: 24px;
  z-index: 9999;
  width: 310px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  border: 1px solid #cbd5e1;
  padding: 18px;
  display: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
}
.a11y-modal.active {
  display: block;
  animation: a11yFadeIn 0.2s ease-out;
}
@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.a11y-title {
  font-size: 15px;
  font-weight: 700;
  color: #0B192C;
}
.a11y-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
}
.a11y-close:hover { color: #0f172a; }
.a11y-grid {
  display: grid;
  grid-cols: 2;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.a11y-action-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.a11y-action-btn:hover, .a11y-action-btn.active {
  background: #0B192C;
  color: #ffffff;
  border-color: #0B192C;
}
.a11y-action-btn.active {
  box-shadow: inset 0 0 0 2px #D4AF37;
}
.a11y-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.a11y-reset-btn {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.a11y-statement-link {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 500;
}

/* Accessibility Modifications applied to Body */
body.a11y-font-large { font-size: 115% !important; }
body.a11y-font-large * { font-size: inherit; }
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.a11y-high-contrast * {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
body.a11y-grayscale {
  filter: grayscale(100%) !important;
}
body.a11y-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  background-color: #fef08a !important;
  color: #000000 !important;
}
body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}
body.a11y-stop-animations * {
  animation: none !important;
  transition: none !important;
}
