/* =====================================================================
   jr-accessibility - style.css
   Combined stylesheet: accessibility menu + floating sidebar
   + Google Translate widget.
   ===================================================================== */

/* =====================================================================
   0. GOOGLE TRANSLATE WIDGET
   ===================================================================== */
.gtw-container {
  position: relative;
  display: block;
  width: 100%;
}

#gtwBtn {
  background: #fff;
  border: 1px solid rgba(16, 83, 213, 0.2);
  border-radius: 13.60px;
  padding: 11.20px 14.40px;
  display: flex;
  align-items: center;
  gap: 9.60px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #2c3e50;
  width: 100%;
  font-size: 14.40px;
  font-weight: 600;
  text-align: left;
}

.jr-menu-card--translate #gtwBtn {
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
}

.jr-menu-card--translate #gtwFlag {
  width: 32px;
  height: 22px;
}

.jr-menu-card--translate .gtw-chevron {
  width: 22px;
  height: 22px;
}

.jr-menu-card--translate #gtwDropdown {
  border-radius: 16px;
  padding: 8px;
}

.jr-menu-card--translate .gtw-item {
  border-radius: 10px;
  font-size: 16px;
  padding: 11px 12px;
}

.jr-menu-card--translate .gtw-item img {
  width: 24px;
  height: 16px;
}

#gtwBtn:hover {
  background: rgba(16, 83, 213, 0.08);
  border-color: rgba(16, 83, 213, 0.3);
}

#gtwBtn.active {
  background: rgba(16, 83, 213, 0.12);
  border-color: #1053d5;
  color: #1053d5;
}

#gtwFlag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}

#gtwLabel {
  flex: 1;
}

.gtw-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  margin-left: auto;
  color: #5d6d8a;
}

#gtwBtn.active .gtw-chevron {
  transform: rotate(180deg);
}

#gtwDropdown {
  position: absolute;
  top: calc(100% + 8.00px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(16, 83, 213, 0.1);
  border-radius: 13.60px;
  padding: 8.00px;
  box-shadow: 0 24px 60px rgba(15, 32, 62, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 50;
}

#gtwDropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gtw-item {
  display: flex;
  align-items: center;
  gap: 12.00px;
  padding: 8.80px 11.20px;
  border-radius: 8.80px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #2c3e50;
  font-size: 13.60px;
}

.gtw-item:hover {
  background: rgba(16, 83, 213, 0.1);
  color: #1053d5;
}

.gtw-item[aria-selected="true"] {
  background: rgba(16, 83, 213, 0.15);
  color: #1053d5;
  font-weight: 600;
}

.gtw-item img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}

.gtw-reset {
  border-top: 1px solid rgba(16, 83, 213, 0.1);
  margin-top: 6.40px;
  padding-top: 6.40px;
  color: #e74c3c;
}

.gtw-reset:hover {
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
}

.gtw-reset span {
  margin-left: 0;
}

#gtwOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#gtwOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hide Google Translate default UI */
.goog-te-banner-frame { display: none !important; }
.goog-te-gadget { display: none !important; }
#goog-gt-tt, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
body { top: 0 !important; }
.goog-logo-link, .goog-te-balloon-frame { display: none !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { display: none !important; }

@media (max-width: 575.98px) {
  #gtwDropdown {
    max-height: 50vh;
    overflow-y: auto;
  }
}

/* =====================================================================
   1. ACCESSIBILITY MENU (drawer, cards, toggles, magnifier, keyboard...)
   ===================================================================== */

/* Wrapper konten agar Monokrom tidak ganggu overlay/panel */
.jr-page-root {}

/* Accessibility Menu (fixed, di luar filter) */
.jr-accessibility-menu {
    position: fixed;
    top: 0;
    left: -420px;
    right: auto;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, .1);
    z-index: 9999;
    overflow-y: auto;
    transition: left .3s ease
}

.jr-menu-open .jr-accessibility-menu {
    left: 0;
    right: auto;
}

.landing-page .jr-accessibility-menu {
    right: auto;
    left: -440px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, .1);
    transition: left .3s ease;
}

.landing-page.jr-menu-open .jr-accessibility-menu {
    right: auto;
    left: 0;
}

.jr-menu-header {
    padding: 22px 24px;
    background: #1053d5;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.jr-menu-header h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
}

.jr-close-btn {
    width: 42px;
    height: 42px;
    background: #0d4ac0;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.jr-menu-item-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #f7f9ff;
    border-bottom: 1px solid rgba(16, 83, 213, 0.08);
}

.jr-menu-item-toggle__label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-grow: 1;
}

.jr-menu-item-toggle__icon {
    font-size: 22px;
    color: #1053d5;
}

.jr-menu-item-toggle__text {
    font-size: 16px;
    font-weight: 700;
    color: #1b2444;
}

.jr-menu-content {
    padding: 22px 24px;
}

.jr-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.jr-menu-card {
    background: #f7f9ff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(15, 32, 62, 0.08);
    border: 1px solid rgba(16, 83, 213, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.jr-menu-card--translate {
    min-height: auto;
    margin-bottom: 0;
}

.jr-menu-card--translate .jr-menu-card__icon {
    margin-bottom: 18px;
}

.jr-menu-card--translate .jr-menu-card__note {
    margin-bottom: 18px;
}

.jr-menu-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(16, 83, 213, 0.12);
    color: #1053d5;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.jr-menu-card__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 10px;
    color: #1b2444;
}

.jr-menu-card__note {
    font-size: 12.5px;
    line-height: 1.45;
    color: #5d6d8a;
    margin-bottom: 18px;
}

/* When "Hide Descriptions" is enabled, hide all note paragraphs inside the accessibility menu */
.jr-accessibility-menu.jr-hide-description .jr-menu-card__note {
    display: none;
}

.jr-menu-card__control {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jr-menu-item {
    margin-bottom: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.jr-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0
}

.jr-menu-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px
}

.jr-menu-item-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: #1053d5
}

.jr-menu-item-title {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    font-size: 14px;
}

.jr-menu-item-note {
    margin: 6px 0 12px 36px;
    font-size: 12px;
    color: #5d6d8a;
    line-height: 1.4;
}

.jr-toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: #ddd;
    border-radius: 999px;
    cursor: pointer
}

.jr-toggle-switch.jr-active {
    background: #1053d5
}

.jr-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s ease
}

.jr-toggle-switch.jr-active .jr-toggle-slider {
    transform: translateX(20px)
}

.jr-control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px
}

.jr-control-buttons {
    display: flex;
    gap: 10px
}

.jr-menu-card .jr-control-group,
.jr-menu-card .jr-option-buttons,
.jr-menu-card .jr-line-height-options {
    margin-bottom: 0;
    padding-bottom: 0;
}

.jr-control-btn {
    width: 26px;
    height: 26px;
    border: 3px solid #1053d5;
    background: #fff;
    color: #1053d5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center
}

.jr-control-btn:hover {
    background: #1053d5;
    color: #fff
}

.jr-control-value {
    font-size: 14px;
    font-weight: 800;
    color: #2c3e50;
    min-width: 60px;
    text-align: center
}

.jr-option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    font-size: 13.12px;
}

.jr-option-btn {
    padding: 7px 7px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #666
}

.jr-option-btn.jr-active {
    border-color: #1053d5;
    background: #1053d5;
    color: #fff
}

.jr-line-height-options {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.jr-line-height-btn {
    width: 38px;
    height: 38px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50
}

.jr-line-height-btn.jr-active {
    border-color: #1053d5;
    background: #1053d5;
    color: #fff
}

.jr-reset-btn {
    width: 100%;
    padding: 15px;
    background: #1053d5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8.00px;
}

.jr-reset-btn:hover {
    background: #4C5ED6
}

.jr-menu-footer {
    text-align: center;
    padding: 12px 20px;
    font-size: 12.80px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.jr-menu-footer__link {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6.40px;
}

.jr-menu-footer__link:hover {
    color: #1053d5;
}

/* Overlay */
.jr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease
}

.jr-menu-open .jr-overlay {
    opacity: 1;
    visibility: visible
}

/* Voice Mode Indicator */
body.jr-voice-mode::before {
    content: "Voice Mode Active - Hover text to listen";
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1002;
    animation: jr-pulse 2s infinite;
}

/* Magnify Mode Indicator */
body.jr-magnify-mode::after {
    content: "Magnify Mode Active - Move cursor to magnify content";
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1002;
    animation: jr-pulse 2s infinite;
    max-width: 250px;
    text-align: center;
}

/* Handle both indicators when active */
body.jr-voice-mode.jr-magnify-mode::before {
    bottom: 60px;
}

@keyframes jr-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.jr-voice-selection {
    background: rgba(231, 76, 60, .1);
    border: 2px solid #e74c3c;
    border-radius: 4px;
    transition: all .3s ease
}

/* Magnifier Styles */
.jr-magnifier {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    border: 3px solid #1053d5;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
    display: none;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: #fff;
    transition: opacity 0.2s ease;
}

.jr-magnifier.jr-active { display: block; }
.jr-magnifier.is-visible { opacity: 1; }

.jr-magnifier-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 50%;
    transform-origin: top left;
    will-change: transform;
}

.jr-magnifier-snapshot { pointer-events: none !important; }

.jr-magnifier::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border: 2px solid rgba(7, 71, 153, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

/* Magnify crosshair cursor when active */
body.jr-magnify-mode { cursor: crosshair !important; }
body.jr-magnify-mode * { cursor: crosshair !important; }

body.jr-magnify-mode .jr-accessibility-menu,
body.jr-magnify-mode .jr-accessibility-menu * {
    cursor: default !important;
}

body.jr-magnify-mode .jr-clickable,
body.jr-magnify-mode button,
body.jr-magnify-mode a,
body.jr-magnify-mode .jr-control-btn,
body.jr-magnify-mode .jr-option-btn,
body.jr-magnify-mode .jr-line-height-btn,
body.jr-magnify-mode .jr-toggle-switch {
    cursor: pointer !important;
}

/* Visual modes: affect page content, keep accessibility UI readable. */
body.jr-high-contrast {
    background: #000 !important;
    background-image: none !important;
}

body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
    filter: none !important;
}

body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) * {
    background: #000 !important;
    background-image: none !important;
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) *::before,
body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) *::after {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) a,
body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) [role="link"] {
    color: #ffeb3b !important;
    text-decoration: underline !important;
}

body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) img,
body.jr-high-contrast > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) video {
    filter: contrast(130%) brightness(110%) !important;
}

body.jr-monochrome > :not(.jr-accessibility-menu):not(.jr-overlay):not(.floating-right):not(.jr-virtual-keyboard):not(.jr-reading-guide):not(.jr-magnifier):not(script):not(style) {
    filter: grayscale(100%) !important;
}

body.jr-high-contrast .jr-magnifier,
body.jr-monochrome .jr-magnifier,
body.jr-high-contrast .jr-accessibility-menu,
body.jr-monochrome .jr-accessibility-menu {
    filter: none !important;
}

.jr-voice-hover {
    outline: 2px dashed #84cc16;
    outline-offset: 4px;
}

.jr-voice-speaking {
    background: rgba(132, 204, 22, .08);
    transition: background .2s;
}

/* Kursor besar (scoped).
   Catatan: path cursor diatur via --jr-big-cursor di :root.
   Sesuaikan path sesuai lokasi public/ di project tujuan. */
:root {
    --jr-big-cursor: url("../cursor/big-cursor.png") 2 2, auto;
    --jr-big-pointer: url("../cursor/big-cursor.png") 2 2, pointer;
}

.jr-cursor-large { cursor: var(--jr-big-cursor) }
.jr-cursor-large * { cursor: var(--jr-big-cursor) !important }

.jr-cursor-large .jr-clickable,
.jr-cursor-large .jr-control-btn,
.jr-cursor-large .jr-option-btn,
.jr-cursor-large .jr-line-height-btn,
.jr-cursor-large .jr-toggle-switch,
.jr-cursor-large .jr-accessibility-btn,
.jr-cursor-large .jr-close-btn,
.jr-cursor-large .jr-reset-btn {
    cursor: var(--jr-big-pointer) !important
}

body.jr-magnify-mode.jr-cursor-large { cursor: crosshair !important; }
body.jr-magnify-mode.jr-cursor-large * { cursor: crosshair !important; }

/* Animasi */
.jr-animations-disabled * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
}

.jr-animations-disabled .jr-magnifier { transition: none !important; }

/* Reading guide */
.jr-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 3px;
    background: #e74c3c;
    z-index: 999;
    display: none;
    pointer-events: none
}

.jr-reading-guide-active .jr-reading-guide { display: block }

/* Lindungi panel saat high contrast */
.jr-high-contrast .jr-accessibility-menu {
    background: #fff !important;
    color: #2c3e50 !important;
}
.jr-high-contrast .jr-accessibility-menu .jr-menu-item-title {
    color: #2c3e50 !important
}
.jr-high-contrast .jr-accessibility-menu .jr-menu-header h2 {
    color: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-line-height-btn {
    color: #2c3e50 !important;
    background: #fff !important;
    border-color: #ddd !important
}
.jr-high-contrast .jr-accessibility-menu .jr-line-height-btn.jr-active {
    color: #fff !important;
    background: #1053d5 !important;
    border-color: #1053d5 !important
}
.jr-high-contrast .jr-accessibility-menu .jr-control-btn {
    border-color: #1053d5 !important;
    color: #1053d5 !important;
    background: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-control-btn:hover {
    background: #1053d5 !important;
    color: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-option-btn {
    border-color: #ddd !important;
    color: #666 !important;
    background: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-option-btn.jr-active {
    border-color: #1053d5 !important;
    background: #1053d5 !important;
    color: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-toggle-switch { background: #ddd !important }
.jr-high-contrast .jr-accessibility-menu .jr-toggle-switch.jr-active { background: #1053d5 !important }
.jr-high-contrast .jr-accessibility-menu .jr-toggle-slider { background: #fff !important }
.jr-high-contrast .jr-accessibility-menu .jr-reset-btn {
    background: #1053d5 !important;
    color: #fff !important
}
.jr-high-contrast .jr-accessibility-menu .jr-reset-btn:hover { background: #4C5ED6 !important }
.jr-high-contrast .jr-accessibility-menu .jr-menu-item-icon,
.jr-high-contrast .jr-accessibility-menu .jr-menu-item-icon i {
    color: #1053d5 !important
}
.jr-high-contrast .jr-accessibility-menu .jr-menu-header i {
    color: #fff !important
}

/* Virtual keyboard */
.jr-virtual-keyboard {
    position: fixed;
    left: 50%;
    bottom: -120%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32.00px));
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: bottom .35s ease, opacity .3s ease;
    font-family: "Nunito", "Segoe UI", sans-serif;
}

.jr-virtual-keyboard.is-visible {
    bottom: 24.00px;
    opacity: 1;
    pointer-events: auto;
}

body.jr-virtual-keyboard-open {
    padding-bottom: 280px;
    scroll-padding-bottom: 320px;
}

.jr-virtual-keyboard__inner {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5ff 100%);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(15, 32, 62, 0.22), inset 0 0 0 1px rgba(16, 83, 213, 0.08);
    border: 1px solid rgba(16, 83, 213, 0.1);
}

.jr-virtual-keyboard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16.00px;
    margin-bottom: 20.00px;
}

.jr-virtual-keyboard__title { font-weight: 700; color: #132244; font-size: 16.80px; }
.jr-virtual-keyboard__subtitle { font-size: 13.60px; color: #5d6d8a; }
.jr-virtual-keyboard__actions { display: flex; gap: 5.60px; }

.jr-virtual-keyboard__action {
    border: none;
    background: rgba(16, 83, 213, 0.08);
    color: #0f3ea8;
    width: 36px; height: 36px;
    border-radius: 12px;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.jr-virtual-keyboard__action:hover,
.jr-virtual-keyboard__action:focus-visible {
    background: rgba(16, 83, 213, 0.18);
    transform: translateY(-1px);
}

.jr-virtual-keyboard__action:focus-visible {
    outline: 2px solid rgba(16, 83, 213, 0.3);
    outline-offset: 2px;
}

.jr-virtual-keyboard__rows { display: flex; flex-direction: column; gap: 12.00px; }

.jr-virtual-keyboard__row {
    display: flex;
    gap: 8.00px;
    justify-content: center;
    flex-wrap: nowrap;
}

.jr-virtual-keyboard__key {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(16, 83, 213, 0.1);
    border-radius: 16px;
    padding: 12.00px 5.60px;
    background: radial-gradient(circle at top, #ffffff 0%, #e8efff 100%);
    color: #1b264f;
    font-weight: 600;
    font-size: 16.00px;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 32, 62, 0.08);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
    user-select: none;
}

.jr-virtual-keyboard__key:hover,
.jr-virtual-keyboard__key:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(16, 83, 213, 0.18);
    border-color: rgba(16, 83, 213, 0.25);
}

.jr-virtual-keyboard__key:active {
    transform: translateY(1px);
    box-shadow: 0 6px 15px rgba(15, 32, 62, 0.12);
}

.jr-virtual-keyboard__key:focus-visible {
    outline: 2px solid rgba(16, 83, 213, 0.35);
    outline-offset: 2px;
}

.jr-virtual-keyboard__key--control { flex: 1.4; text-transform: uppercase; font-size: 13.60px; }
.jr-virtual-keyboard__key--space { flex: 3; font-size: 14.40px; text-transform: uppercase; letter-spacing: 1.92px; }

.jr-virtual-keyboard__key.is-active {
    background: radial-gradient(circle at top, #1053d5 0%, #2a68e5 100%);
    color: #fff;
    border-color: rgba(16, 83, 213, 0.6);
    box-shadow: 0 18px 32px rgba(16, 83, 213, 0.25);
}

.jr-virtual-keyboard__key .bi { font-size: 18.40px; }

/* Hide Images */
.jr-hide-images img[src^="data:image/"],
.jr-hide-images img[src^="blob:"],
.jr-hide-images img[src$=".jpg" i],
.jr-hide-images img[src$=".jpeg" i],
.jr-hide-images img[src$=".png" i],
.jr-hide-images img[src$=".gif" i],
.jr-hide-images img[src$=".webp" i],
.jr-hide-images img[src$=".avif" i],
.jr-hide-images img[src$=".svg" i],
.jr-hide-images img[src$=".bmp" i],
.jr-hide-images img[src$=".ico" i] {
    display: none !important
}

.jr-hide-images picture { display: none !important }

.jr-hide-images .navbar-brand .light-mode-item,
.jr-hide-images #footer img { display: inline !important }

/* =====================================================================
   2. FLOATING SIDEBAR (desktop)
   ===================================================================== */
.floating-right {
  position: fixed;
  top: 50%;
  left: 0;
  right: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1050;
}

.floating-right .fl-btn {
  background: #1830a3;
  color: #fff;
  border-radius: 0 46px 46px 0;
  padding: 0;
  width: 52px;
  height: 52px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .25s ease, box-shadow .25s ease;
  box-shadow: 12px 0 28px rgba(70, 103, 119, 0.14);
}

.floating-right .fl-btn:hover {
  background: #10216e;
  box-shadow: 14px 0 30px rgba(70, 103, 119, 0.18);
}

@keyframes jr-fl-btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 83, 213, 0.4), 0 0 0 0 rgba(16, 83, 213, 0.4), -8px 14px 26px rgba(16, 83, 213, 0.24);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 83, 213, 0), 0 0 0 16px rgba(16, 83, 213, 0), -8px 14px 26px rgba(16, 83, 213, 0.24);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 83, 213, 0), 0 0 0 0 rgba(16, 83, 213, 0), -8px 14px 26px rgba(16, 83, 213, 0.24);
  }
}

.floating-right .fl-btn i {
  font-size: 22px;
  line-height: 1;
  right: 4px;
  position: relative;
}

.floating-right .label {
  display: none;
}

.landing-page .floating-right {
  left: 0;
  right: auto;
  align-items: flex-start;
}

.landing-page .floating-right .fl-btn { justify-content: center; }

/* =====================================================================
   6. RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .jr-accessibility-menu { left: -100vw; width: 100vw; }
  .jr-menu-header { padding: 22px 24px; }
  .jr-menu-header h2 { font-size: 21px; }
  .jr-close-btn { width: 42px; height: 42px; font-size: 20px; }
  .jr-menu-item-toggle { padding: 16px 24px; }
  .jr-menu-item-toggle__text { font-size: 15px; }
  .jr-menu-content { padding: 22px 24px; }
  .jr-menu-grid { gap: 16px; }
  .jr-menu-card { border-radius: 18px; padding: 24px; }
  .jr-menu-card__icon { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; margin-bottom: 18px; }
  .jr-menu-card__title { font-size: 17px; line-height: 1.22; }
  .jr-menu-card__note { font-size: 13px; line-height: 1.45; }
  .jr-toggle-switch { width: 68px; height: 38px; }
  .jr-toggle-slider { width: 32px; height: 32px; }
  .jr-toggle-switch.jr-active .jr-toggle-slider { transform: translateX(30px); }
  .jr-control-btn { width: 46px; height: 46px; font-size: 24px; }
  .jr-control-value { font-size: 14px; }
  .jr-menu-card--translate #gtwBtn { padding: 16px 18px; font-size: 15px; border-radius: 16px; }
  .jr-menu-card--translate .gtw-item { font-size: 16px; padding: 11px 12px; }
  .jr-magnifier { width: 150px; height: 150px; }
  body.jr-voice-mode::before,
  body.jr-magnify-mode::after {
    font-size: 12px; padding: 6px 12px; max-width: 200px;
  }
  body.jr-voice-mode.jr-magnify-mode::before { bottom: 50px; }

  .jr-virtual-keyboard { width: calc(100% - 24.00px); }
  .jr-virtual-keyboard.is-visible { bottom: 12.00px; }
  body.jr-virtual-keyboard-open {
    padding-bottom: 360px; scroll-padding-bottom: 380px;
  }
  .jr-virtual-keyboard__inner { padding: 18px; }
  .jr-virtual-keyboard__key { padding: 10.40px 4.80px; font-size: 15.20px; }
  .jr-virtual-keyboard__key--control { font-size: 12.80px; }
}

@media (max-width: 991.98px) {
  .jr-menu-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  /* Removed feedback-modal__body media query */
}

@media (max-width: 575.98px) {
  .jr-magnifier { width: 120px; height: 120px; }
  body.jr-voice-mode::before,
  body.jr-magnify-mode::after {
    font-size: 11px; padding: 5px 10px; max-width: 160px;
  }
  .jr-virtual-keyboard__key { padding: 9.60px 4.00px; font-size: 14.40px; }
  .jr-virtual-keyboard__title { font-size: 15.20px; }
  .jr-virtual-keyboard__subtitle { font-size: 12.80px; }
  .jr-virtual-keyboard__actions { gap: 4.00px; }
  .jr-virtual-keyboard__action { width: 32px; height: 32px; }

  /* Removed feedback-modal__header, feedback-modal__body, feedback-rating media queries */
}

/* =====================================================================
   7. DARK MODE FIXES
   Keep the accessibility drawer readable when the page dark scheme is active.
   ===================================================================== */
html.dark-scheme .jr-accessibility-menu,
body.dark-scheme .jr-accessibility-menu {
  background: #0f172a !important;
  color: #e5edf8 !important;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.38);
}

html.dark-scheme .jr-menu-header,
body.dark-scheme .jr-menu-header {
  background: #1455d9 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.dark-scheme .jr-menu-header h2,
body.dark-scheme .jr-menu-header h2,
html.dark-scheme .jr-menu-header i,
body.dark-scheme .jr-menu-header i {
  color: #ffffff !important;
}

html.dark-scheme .jr-close-btn,
body.dark-scheme .jr-close-btn {
  background: rgba(10, 35, 98, 0.64) !important;
  color: #ffffff !important;
}

html.dark-scheme .jr-menu-item-toggle,
body.dark-scheme .jr-menu-item-toggle {
  background: #111c31 !important;
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

html.dark-scheme .jr-menu-item-toggle__text,
body.dark-scheme .jr-menu-item-toggle__text,
html.dark-scheme .jr-menu-card__title,
body.dark-scheme .jr-menu-card__title,
html.dark-scheme .jr-menu-item-title,
body.dark-scheme .jr-menu-item-title,
html.dark-scheme .jr-control-value,
body.dark-scheme .jr-control-value,
html.dark-scheme #gtwLabel,
body.dark-scheme #gtwLabel {
  color: #f8fafc !important;
}

html.dark-scheme .jr-menu-item-toggle__icon,
body.dark-scheme .jr-menu-item-toggle__icon,
html.dark-scheme .jr-menu-card__icon,
body.dark-scheme .jr-menu-card__icon,
html.dark-scheme .jr-menu-item-icon,
body.dark-scheme .jr-menu-item-icon {
  color: #8bbcff !important;
}

html.dark-scheme .jr-menu-card,
body.dark-scheme .jr-menu-card {
  background: #172238 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html.dark-scheme .jr-menu-card__icon,
body.dark-scheme .jr-menu-card__icon {
  background: rgba(96, 165, 250, 0.16) !important;
}

html.dark-scheme .jr-menu-card__note,
body.dark-scheme .jr-menu-card__note,
html.dark-scheme .jr-menu-item-note,
body.dark-scheme .jr-menu-item-note {
  color: #b7c5db !important;
}

html.dark-scheme #gtwBtn,
body.dark-scheme #gtwBtn,
html.dark-scheme #gtwDropdown,
body.dark-scheme #gtwDropdown,
html.dark-scheme .jr-control-btn,
body.dark-scheme .jr-control-btn,
html.dark-scheme .jr-option-btn,
body.dark-scheme .jr-option-btn,
html.dark-scheme .jr-line-height-btn,
body.dark-scheme .jr-line-height-btn {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #e5edf8 !important;
}

html.dark-scheme #gtwBtn:hover,
body.dark-scheme #gtwBtn:hover,
html.dark-scheme .gtw-item:hover,
body.dark-scheme .gtw-item:hover,
html.dark-scheme .jr-control-btn:hover,
body.dark-scheme .jr-control-btn:hover,
html.dark-scheme .jr-option-btn.jr-active,
body.dark-scheme .jr-option-btn.jr-active,
html.dark-scheme .jr-line-height-btn.jr-active,
body.dark-scheme .jr-line-height-btn.jr-active {
  background: #2563eb !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

html.dark-scheme .gtw-item,
body.dark-scheme .gtw-item {
  color: #e5edf8 !important;
}

html.dark-scheme .gtw-item[aria-selected="true"],
body.dark-scheme .gtw-item[aria-selected="true"] {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #93c5fd !important;
}

html.dark-scheme .gtw-reset,
body.dark-scheme .gtw-reset {
  border-top-color: rgba(148, 163, 184, 0.22);
  color: #fca5a5 !important;
}

html.dark-scheme .jr-toggle-switch,
body.dark-scheme .jr-toggle-switch {
  background: #475569 !important;
}

html.dark-scheme .jr-toggle-switch.jr-active,
body.dark-scheme .jr-toggle-switch.jr-active {
  background: #2563eb !important;
}

html.dark-scheme .jr-toggle-slider,
body.dark-scheme .jr-toggle-slider {
  background: #ffffff !important;
}

html.dark-scheme .jr-reset-btn,
body.dark-scheme .jr-reset-btn {
  background: #2563eb !important;
  color: #ffffff !important;
}

html.dark-scheme .jr-menu-footer,
body.dark-scheme .jr-menu-footer {
  background: #0b1220 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

html.dark-scheme .jr-menu-footer__link,
body.dark-scheme .jr-menu-footer__link {
  color: #cbd5e1 !important;
}
