/* ============================================================
   LitDigi Mobile Bridge & Reader Pro Styles (v1.2.0 Full Parity)
   - AMOLED Dark Mode (reading-amoled)
   - Webtoon Vertical Scroll Mode
   - Zen Reading 2.0 Floating Dock (Auto-Scroll, TTS, Offline)
   - Anti-Plagiat Lapis 2 (anti-copy) & Lapis 4 (Dynamic Watermark)
   - Native Android Bottom Navigation Bar & Live Offline Banner
   ============================================================ */

/* AMOLED Pure Black Theme for OLED Android Devices */
.page-section.reading-amoled {
  background-color: #000000 !important;
  color: #d4d4d8 !important;
}
.page-section.reading-amoled .reading-container,
.page-section.reading-amoled .reading-content-area {
  background: #050505 !important;
  color: #d4d4d8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
.page-section.reading-amoled .reading-text,
.page-section.reading-amoled .chapter-reading-title {
  color: #e4e4e7 !important;
}
.page-section.reading-amoled .chapter-story-name,
.page-section.reading-amoled .reading-subtitle {
  color: #a1a1aa !important;
}
.page-section.reading-amoled .reading-controls-bar {
  background: rgba(10, 10, 10, 0.94) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.theme-ctrl-btn.ta {
  background: #000000;
  border: 2px solid #38bdf8;
}
.theme-ctrl-btn.ta.active {
  box-shadow: 0 0 0 2px #00e1ff;
}

/* Anti-Plagiat Lapis 2: Non-selectable protected reading area */
.litdigi-protected-reader {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}
.litdigi-protected-reader input,
.litdigi-protected-reader textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* Anti-Plagiat Lapis 4: Dynamic Session Watermark */
#litdigi-dynamic-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.065;
  background-repeat: repeat;
}

/* Webtoon Vertical Scroll Mode */
#reading.webtoon-mode .reading-container,
#chapterDetail.webtoon-mode .reading-container {
  max-width: 720px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#reading.webtoon-mode .reading-content-area,
#chapterDetail.webtoon-mode .reading-content-area {
  padding-left: 12px !important;
  padding-right: 12px !important;
  border-radius: 0 !important;
}
#reading.webtoon-mode .reading-text img,
#chapterDetail.webtoon-mode .reading-text img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
#reading.webtoon-mode .reading-text p,
#chapterDetail.webtoon-mode .reading-text p {
  margin-bottom: 0.9em;
}

/* Zen Reading 2.0 Floating Dock */
.ld-reader-pro-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(35, 166, 213, 0.35);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}
.ld-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ld-pro-btn:active {
  transform: scale(0.96);
}
.ld-pro-btn.active {
  background: linear-gradient(135deg, #23a6d5, #0284c7);
  border-color: #38bdf8;
  color: #ffffff;
}
.ld-pro-select {
  padding: 6px 8px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.78rem;
}
.ld-shield-pill {
  font-size: 0.72rem;
  color: #7dd3fc;
  background: rgba(14, 116, 144, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Offline Library Modal */
.ld-offline-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(2, 6, 23, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ld-offline-modal.active {
  display: flex;
}
.ld-offline-card {
  width: 100%;
  max-width: 620px;
  max-height: 84vh;
  overflow-y: auto;
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid rgba(35, 166, 213, 0.4);
  border-radius: 16px;
  padding: 18px;
}
.ld-offline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ld-offline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.ld-offline-item:last-child {
  border-bottom: none;
}

/* Biometric Draft Lock Overlay */
.ld-draft-lock-overlay {
  position: relative;
  margin: 14px 0;
  padding: 24px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f1f5f9;
  text-align: center;
}

/* Native APK & Mobile Bottom Navigation Bar */
.ld-bottom-nav {
  display: none;
}

body.litdigi-native-apk .ld-bottom-nav {
  display: grid;
}

@media (max-width: 768px) {
  .ld-bottom-nav {
    display: grid;
  }
  body:not(.ld-in-reader):not(.zen-mode) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #ldDiscordFab,
  .ld-discord-fab {
    display: none !important;
  }
}

body.litdigi-native-apk:not(.ld-in-reader):not(.zen-mode) {
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
}
body.litdigi-native-apk #ldDiscordFab,
body.litdigi-native-apk .ld-discord-fab {
  display: none !important;
}
.ld-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9400;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(12px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}
body.dark-mode .ld-bottom-nav,
body.theme-merdeka2026 .ld-bottom-nav {
  background: rgba(15, 23, 42, 0.97);
  border-top-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}
body.ld-app-amoled,
body.ld-app-amoled .page-section {
  background-color: #000000 !important;
}
body.ld-app-amoled .ld-bottom-nav {
  background: rgba(5, 5, 5, 0.98);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.reading-text {
  font-size: var(--ld-reader-font-size, 1.06rem);
}
.ld-bnav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}
.ld-bnav-btn:active {
  transform: scale(0.95);
}
body.dark-mode .ld-bnav-btn,
body.theme-merdeka2026 .ld-bnav-btn {
  color: #94a3b8;
}
.ld-bnav-btn.active {
  color: #0284c7;
  background: rgba(35, 166, 213, 0.1);
}
body.dark-mode .ld-bnav-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}
.ld-bnav-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  line-height: 1.1;
}
.ld-bnav-badge {
  position: absolute;
  top: -6px;
  right: -12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body.zen-mode .ld-bottom-nav,
body.ld-in-reader .ld-bottom-nav {
  display: none !important;
}

/* All-in-One Mobile Settings & APK Display Hub Sheet */
.ld-settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 9850;
  background: rgba(2, 6, 23, 0.62);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.ld-settings-sheet.active {
  display: flex;
}
.ld-settings-panel {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.dark-mode .ld-settings-panel,
body.ld-app-amoled .ld-settings-panel,
body.theme-merdeka2026 .ld-settings-panel {
  background: #0f172a;
  color: #f8fafc;
  border-top-color: rgba(56, 189, 248, 0.24);
}
body.ld-app-amoled .ld-settings-panel {
  background: #050505;
  color: #f8fafc;
  border-top-color: rgba(255, 255, 255, 0.14);
}
.ld-settings-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.ld-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}
.ld-settings-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ld-settings-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ld-settings-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ld-set-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
body.dark-mode .ld-set-profile-card,
body.ld-app-amoled .ld-set-profile-card,
body.theme-merdeka2026 .ld-set-profile-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.18);
}
.ld-set-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #0284c7;
}
.ld-set-profile-meta {
  min-width: 0;
  flex: 1;
}
.ld-set-profile-name {
  font-weight: 800;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-set-profile-sub {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dark-mode .ld-set-profile-sub {
  color: #94a3b8;
}
.ld-set-role-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.14);
  color: #0369a1;
}
body.dark-mode .ld-set-role-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}
.ld-set-admin-cta {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: #0369a1;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.ld-set-section {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
}
body.dark-mode .ld-set-section,
body.ld-app-amoled .ld-set-section,
body.theme-merdeka2026 .ld-set-section {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
}
.ld-set-section-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 10px;
}
body.dark-mode .ld-set-section-title {
  color: #94a3b8;
}
.ld-set-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ld-set-tile {
  position: relative;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
body.dark-mode .ld-set-tile,
body.ld-app-amoled .ld-set-tile,
body.theme-merdeka2026 .ld-set-tile {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}
.ld-set-tile.is-primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.ld-set-pill {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ld-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.ld-set-row + .ld-set-row {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.ld-set-row-text {
  min-width: 0;
  flex: 1;
}
.ld-set-row-label {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ld-set-row-sub {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}
body.dark-mode .ld-set-row-sub {
  color: #94a3b8;
}
.ld-set-switch {
  min-width: 50px;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.ld-set-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  display: block;
}
.ld-set-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.ld-set-chip-btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #ffffff;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
body.dark-mode .ld-set-chip-btn,
body.ld-app-amoled .ld-set-chip-btn,
body.theme-merdeka2026 .ld-set-chip-btn {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.25);
}
.ld-set-pref-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ld-set-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.ld-set-cat-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0284c7;
}
.ld-set-control-group {
  margin-bottom: 10px;
}
.ld-set-control-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.ld-set-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ld-set-seg-btn {
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
body.dark-mode .ld-set-seg-btn,
body.ld-app-amoled .ld-set-seg-btn,
body.theme-merdeka2026 .ld-set-seg-btn {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}
.ld-set-seg-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.ld-set-list {
  display: flex;
  flex-direction: column;
}
.ld-set-list-item {
  min-height: 46px;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.ld-set-list-item:last-child {
  border-bottom: none;
}
.ld-set-list-item span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.ld-set-list-item.is-danger {
  color: #dc2626;
}
body.dark-mode .ld-set-list-item.is-danger {
  color: #f87171;
}
.ld-set-muted {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
body.dark-mode .ld-set-muted {
  color: #94a3b8;
}
.ld-set-footer-ver {
  text-align: center;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 8px;
}

/* Instant Zero-Delay Live Broadcast Banner */
.ld-live-broadcast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 10090;
  width: min(94vw, 480px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.45);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.ld-live-broadcast.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.ld-lb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.24);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.ld-lb-body {
  min-width: 0;
  flex: 1;
}
.ld-lb-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-lb-msg {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.ld-lb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ld-lb-open {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.ld-lb-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
}

/* Inbox Delete Toolbar & Per-Item Delete Button */
.ld-pesan-del-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ld-pesan-del-btn {
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.ld-pesan-del-btn.is-danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.ld-pesan-item-del {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  margin-left: auto;
  align-self: center;
}
.ld-pesan-item-del:active {
  transform: scale(0.94);
}

/* Live Network Offline Banner */
.ld-net-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10060;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  max-width: 94vw;
}
.ld-net-banner.active {
  display: flex;
}

/* Paket C: Eye-Care Warm Tint, Brightness Gesture Pill & Tap-to-Hide HUD */
#ldEyeCareOverlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9985;
  background: rgba(255, 159, 67, 0);
  transition: background-color 0.2s ease;
}

.ld-brightness-hud {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 10070;
  background: rgba(15, 23, 42, 0.88);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  display: none;
}
.ld-brightness-hud.active {
  display: block;
}

body.ld-hud-hidden header,
body.ld-hud-hidden .reading-controls-bar,
body.ld-hud-hidden .ld-reader-pro-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}


/* Light Mode Parity, Focus States & Reduced Motion */
body:not(.dark-mode):not(.theme-merdeka2026) .ld-reader-pro-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body:not(.dark-mode):not(.theme-merdeka2026) .ld-pro-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: #1e293b;
}

body:not(.dark-mode):not(.theme-merdeka2026) .ld-pro-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

body:not(.dark-mode):not(.theme-merdeka2026) .ld-offline-card {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

.ld-pro-btn:focus-visible,
.ld-bnav-btn:focus-visible,
.ld-offline-card button:focus-visible,
.ld-offline-card input:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ld-pro-btn,
  #ldEyeCareOverlay,
  body.ld-hud-hidden header,
  body.ld-hud-hidden .reading-controls-bar,
  body.ld-hud-hidden .ld-reader-pro-bar {
    transition: none !important;
  }
}
