* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1A2332;
  --text-soft: #6B7785;
  --text-mute: #A0A8B3;
  --border: #E8E5DF;
  --border-soft: #F0EEE9;
  --navy: #2E4A6B;
  --navy-soft: #E6EBF1;
  --gold: #D4A44A;
  --teal: #5BA8A8;
  --radius: 14px;
  --radius-lg: 24px;
  --ref-bg: #faf8f2;
  --ref-text: #6B7785;
  --latar-bg: linear-gradient(135deg, #fafaf7 0%, #f3f1eb 100%);

  --read-scale: 1;
  --read-base: calc(14.5px * var(--read-scale));
  --read-title: calc(15px * var(--read-scale));
  --read-ref: calc(13.5px * var(--read-scale));
}

[data-theme="dark"] {
  --bg: #12161C;
  --surface: #1C222B;
  --text: #E8EBF0;
  --text-soft: #9BA5B4;
  --text-mute: #6B7785;
  --border: #2A323C;
  --border-soft: #232A34;
  --navy: #5B8AB8;
  --navy-soft: #1F2B3A;
  --gold: #E0B462;
  --teal: #6FBDBD;
  --ref-bg: #1A2230;
  --ref-text: #C8D1DD;
  --latar-bg: linear-gradient(135deg, #1C222B 0%, #202834 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.hidden { display: none !important; }

/* ===== TOP PROGRESS BAR ===== */
.top-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
  z-index: 99999; opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(46, 74, 107, 0.4);
  pointer-events: none;
}
.top-progress.active { opacity: 1; }
.top-progress.complete {
  width: 100% !important; opacity: 0;
  transition: width 0.2s ease, opacity 0.4s ease 0.2s;
}

/* ===== BOOT SCREEN ===== */
#bootScreen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #2E4A6B, #1e3a56);
  color: #fff; z-index: 9999;
  transition: opacity 0.4s ease;
}
#bootScreen.hidden { opacity: 0; pointer-events: none; }
.boot-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.boot-text { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.boot-sub { font-size: 12px; opacity: 0.65; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dots Animation */
.boot-dots { display: flex; gap: 6px; margin-top: 8px; }
.boot-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.4;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.boot-dots span:nth-child(1) { animation-delay: 0s; }
.boot-dots span:nth-child(2) { animation-delay: 0.2s; }
.boot-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40%           { opacity: 1;   transform: scale(1.3); }
}

/* ===== APP LAYOUT (WIDE DESKTOP) ===== */
#app { 
  max-width: 1024px; 
  margin: 0 auto; 
  padding: 40px 20px 80px; 
}
@media (max-width: 480px) { #app { padding: 28px 16px 60px; } }

/* ===== HERO ===== */
.hero { text-align: center; padding: 16px 0 24px; position: relative; }
.hero-top { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; text-decoration: none;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }

.hero-logo { width: 112px; height: 112px; object-fit: contain; margin: 0 auto 20px; display: block; }
.hero-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--navy); margin-bottom: 8px; text-transform: uppercase;
}
.hero-subtitle { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }

.hero-stats {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 12px; color: var(--text-mute); font-weight: 600;
}
.hero-stats .stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-stats strong { color: var(--text-soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stats .stat-sep { opacity: 0.6; }

@media (max-width: 480px) {
  .hero-logo { width: 92px; height: 92px; margin-bottom: 16px; }
  .hero-title { font-size: 21px; }
  .hero-stats { font-size: 11px; }
}

/* ===== TABS & DROPDOWN (DESKTOP) ===== */
.view-tabs { 
  display: flex; background: var(--bg); border: 1.5px solid var(--border-soft); 
  border-radius: 12px; padding: 4px; margin-bottom: 16px; gap: 4px; 
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.view-tab { 
  flex: 1; display: flex; align-items: center; justify-content: center; 
  gap: 8px; padding: 10px; border-radius: 8px; border: none; 
  background: transparent; font-family: inherit; font-size: 13.5px; 
  font-weight: 700; color: var(--text-soft); cursor: pointer; 
  transition: all 0.15s ease; 
}
.view-tab:hover:not(.active) { background: var(--navy-soft); color: var(--navy); }
.view-tab.active { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(46, 74, 107, 0.25); }

.collection-dropdown { 
  position: relative; margin-bottom: 24px; z-index: 100; 
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.coll-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.coll-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all 0.18s ease; max-height: 320px; overflow-y: auto; }
.collection-dropdown.open .coll-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.coll-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: none; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); cursor: pointer; text-align: left; }
.coll-item:hover, .coll-item.active { background: var(--navy-soft); color: var(--navy); }
.coll-item.active { font-weight: 700; }
.coll-item .check { opacity: 0; margin-left: auto; font-size: 11px; }
.coll-item.active .check { opacity: 1; }
.coll-divider { height: 1px; background: var(--border-soft); margin: 6px 4px; }

/* ===== SEARCH BAR & HISTORY ===== */
.search-wrapper {
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  z-index: 10;
}
.search-container { 
  display: flex; align-items: center; background: var(--surface); 
  border: 1.5px solid var(--border); border-radius: 28px; height: 56px; 
  padding: 0 12px 0 20px; transition: all 0.2s ease; 
}
.search-container:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-soft); }
.search-icon { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; margin-right: 12px; }
.search-input { flex: 1; border: none; background: transparent; outline: none; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--text); height: 100%; }
.search-input::placeholder { color: var(--text-mute); font-weight: 500; }
.search-clear { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-soft); border: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; }
.search-clear:hover { background: var(--border-soft); }

.search-history {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeUp 0.2s ease;
}
.search-history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
  transition: background 0.15s;
}
.search-history-item:last-child { border-bottom: none; }
.search-history-item:hover { background: var(--navy-soft); color: var(--navy); }
.search-history-item svg { flex-shrink: 0; color: var(--text-mute); }
.search-history-item:hover svg { color: var(--navy); }

/* ===== CONTINUE READING CARD ===== */
.continue-reading-wrap {
  max-width: 800px;
  margin: 0 auto 24px;
}
.continue-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.continue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46,74,107,0.08);
  border-color: var(--teal);
}

/* ===== BROWSE & STATUS ===== */
.browse-toolbar { 
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; 
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.browse-search-wrap { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; transition: all 0.2s; }
.browse-search-wrap:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.browse-search-icon { width: 14px; height: 14px; color: var(--text-mute); margin-right: 8px; flex-shrink: 0; }
.browse-search { flex: 1; border: none; background: transparent; padding: 11px 0; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text); outline: none; }
.browse-sort { padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); outline: none; cursor: pointer; }

.status { 
  text-align: center; 
  padding: 0 20px; 
  margin: 8px auto 20px; 
  color: var(--text-soft); 
  font-size: 13.5px; 
  font-weight: 500; 
  grid-column: 1 / -1; 
}
.status strong { color: var(--navy); }

/* ===== CARDS (DEFAULT MOBILE = 1 COL) ===== */
.snippet-card, .browse-card { 
  background: var(--surface); border: 1.5px solid var(--border); 
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px; 
  cursor: pointer; transition: all 0.15s ease; animation: fadeUp 0.25s ease; 
  display: flex; flex-direction: column;
}
.snippet-card:hover, .browse-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,74,107,0.1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.snippet-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; background: rgba(46,74,107,0.12); color: var(--navy); margin-bottom: 8px; align-self: flex-start; }
[data-theme="dark"] .snippet-badge { background: rgba(91, 138, 184, 0.2); }
.snippet-title, .browse-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.snippet-meta, .browse-meta { font-size: 12px; color: var(--text-soft); font-weight: 500; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.snippet-content { font-size: 13.5px; line-height: 1.6; color: var(--text); font-weight: 500; margin-bottom: 10px; flex: 1; }
.snippet-pertanyaan { font-size: 13px; line-height: 1.6; padding: 10px 12px; background: var(--bg); border-radius: 10px; border-left: 3px solid var(--gold); }
.snippet-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-mute); display: block; margin-bottom: 4px; }
.browse-q-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--navy-soft); color: var(--navy); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 8px; align-self: flex-start; }
mark.kw-hl { background: rgba(212,164,74,0.28); color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 700; }
[data-theme="dark"] mark.kw-hl { background: rgba(224, 180, 98, 0.35); color: #fff; }

/* ===== GRID 2 KOLOM UNTUK DESKTOP ===== */
@media (min-width: 850px) {
  #results, #browseResults, #savedResults {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
  }
  .snippet-card, .browse-card { margin-bottom: 0; }
}

/* TOMBOL BOOKMARK DI LATAR BELAKANG */
.btn-bm-topic {
  width: 34px; height: 34px; border-radius: 8px;
  border: none; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s;
}
.btn-bm-topic:hover { transform: scale(1.1); }

/* ===== DETAIL & ABOUT PAGE ===== */
.detail-page, .app-page { position: fixed; inset: 0; background: var(--bg); z-index: 999; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.detail-page.visible, .app-page.visible { transform: translateX(0); }
.detail-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); border-bottom: 1.5px solid var(--border); padding-top: calc(14px + env(safe-area-inset-top)); z-index: 10; }
.detail-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-soft); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.detail-back:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.detail-back span { display: none; }
@media (min-width: 480px) { .detail-back span { display: inline; } }
.detail-title { font-size: 14px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-actions { display: flex; gap: 8px; }

/* ===== FLOATING FONT SLIDER ===== */
.font-slider-wrapper {
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.font-slider-wrapper.hidden-slider {
  transform: translateY(-20px);
  opacity: 0;
}

.font-slider-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 6px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .font-slider-container {
  background: rgba(28, 34, 43, 0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.fs-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.fs-btn:hover { background: var(--navy-soft); color: var(--navy); }
.fs-btn:active { transform: scale(0.9); }

.fs-icon-sm { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.fs-icon-lg { font-size: 20px; font-weight: 800; color: var(--navy); }

#fontSlider {
  -webkit-appearance: none;
  width: 120px;
  background: transparent;
  cursor: pointer;
}
#fontSlider:focus { outline: none; }
#fontSlider::-webkit-slider-runnable-track { width: 100%; height: 4px; background: var(--border); border-radius: 2px; }
#fontSlider::-moz-range-track { width: 100%; height: 4px; background: var(--border); border-radius: 2px; }
#fontSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px; width: 18px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
#fontSlider::-webkit-slider-thumb:hover { transform: scale(1.15); }
#fontSlider::-moz-range-thumb {
  height: 18px; width: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
#fontSlider::-moz-range-thumb:hover { transform: scale(1.15); }

.detail-body { 
  flex: 1; overflow-y: auto; padding: 20px; 
  max-width: 1000px; width: 100%; margin: 0 auto; 
  animation: fadeUp 0.3s ease; padding-top: 85px; 
}

.latar-group-content, .q-preview, .q-answer-content, .q-ref-content, .detail-doc-title {
  transition: font-size 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== LATAR GROUP & ACCORDION ===== */
.latar-group { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 2px dashed var(--border-soft); animation: fadeUp 0.4s ease; padding-left: 10px; padding-right: 10px; }
.latar-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.latar-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.latar-group-num { font-family: 'Inter', monospace; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; }
.latar-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); white-space: nowrap; }
.latar-group-line { flex: 1; height: 1px; background: var(--border-soft); }

.latar-group-content { 
  font-size: var(--read-base); 
  line-height: 1.65; color: var(--text); font-weight: 500; 
  padding: 14px 16px; background: var(--latar-bg); 
  border-radius: 14px; border-left: 3px solid var(--gold); margin-bottom: 16px; 
}
.latar-group-questions { padding-left: 4px; }

.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s; }
.q-item.open { border-color: var(--navy); }
.q-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; cursor: pointer; user-select: none; transition: background 0.15s; }
.q-head:hover { background: var(--navy-soft); }
.q-item.open .q-head { background: var(--bg); border-bottom: 1px dashed var(--border-soft); }
.q-num { font-family: 'Inter', monospace; font-size: 12px; font-weight: 800; color: var(--gold); flex-shrink: 0; line-height: 1.4; padding-top: 2px; min-width: 20px; }
.q-preview { flex: 1; font-size: var(--read-title); font-weight: 700; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.q-chevron { width: 14px; height: 14px; color: var(--text-mute); transition: transform 0.3s ease; flex-shrink: 0; margin-top: 4px; }
.q-item.open .q-chevron { transform: rotate(180deg); color: var(--navy); }
.q-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.q-item.open .q-body { grid-template-rows: 1fr; }
.q-body-inner { overflow: hidden; min-height: 0; }
.q-answer { padding: 16px 20px; background: var(--bg); border-top: 1px dashed var(--border-soft); }
.q-answer-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #2f855a; margin-bottom: 6px; }
[data-theme="dark"] .q-answer-label { color: #68d391; }
.q-answer-content { font-size: var(--read-base); font-weight: 600; color: var(--text); line-height: 1.7; white-space: pre-wrap; }
.q-ref { padding: 16px 20px; background: var(--ref-bg); border-top: 1px dashed var(--border-soft); }
.q-ref-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #b7791f; margin-bottom: 6px; }
[data-theme="dark"] .q-ref-label { color: #f6ad55; }
.q-ref-content { font-size: var(--read-ref); color: var(--ref-text); line-height: 1.7; font-family: 'Traditional Arabic', 'Amiri', serif; white-space: pre-wrap; }
.arabic { font-family: 'Traditional Arabic', 'Amiri', serif; font-size: 1.4em; line-height: 1.8; }

.detail-doc-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.detail-doc-meta { font-size: 13px; color: var(--text-soft); font-weight: 500; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }

/* ===== ABOUT PAGE ===== */
.about-body { text-align: center; max-width: 600px; padding-top: 20px; }
.about-logo { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 16px; display: block; }
.about-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.about-desc { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); margin-bottom: 28px; }
.about-section { margin-bottom: 22px; }
.about-section-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-mute); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.about-section-title::before, .about-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.crew-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; background: var(--bg); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.crew-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 12px; background: #25D366; color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; border: none; margin-bottom: 12px; transition: transform 0.2s; }
.btn-wa:hover { transform: translateY(-1px); }
.bank-card { background: linear-gradient(135deg, var(--navy), #24395a); border-radius: 14px; padding: 18px; color: #fff; text-align: left; margin-bottom: 12px; }
.bank-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; opacity: 0.75; margin-bottom: 12px; font-weight: 600; }
.bank-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.bank-account-name { font-size: 12.5px; opacity: 0.75; margin-bottom: 14px; }
.bank-number-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,0.12); border-radius: 10px; padding: 11px 14px; }
.bank-number { font-family: 'Inter', monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.btn-copy-bank { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.2); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-saweria { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), #c89436); color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; border: none; transition: transform 0.2s; }
.btn-saweria:hover { transform: translateY(-1px); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13px; font-weight: 600; z-index: 99999; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); pointer-events: none; }
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ============================================================
 * TAMPILAN KHUSUS MOBILE (BOTTOM NAVIGATION)
 * ============================================================ */
@media (max-width: 600px) {
  #app { padding-bottom: 100px; }
  .view-tabs, .collection-dropdown, .search-wrapper, .browse-toolbar, .continue-reading-wrap { max-width: 100%; }
  .view-tabs {
    position: fixed; bottom: 0; left: 0; right: 0; margin-bottom: 0;
    border-radius: 0; border: none; border-top: 1.5px solid var(--border);
    background: var(--surface); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 100; box-shadow: 0 -4px 12px rgba(0,0,0,0.05); justify-content: space-around;
  }
  [data-theme="dark"] .view-tabs { box-shadow: 0 -4px 12px rgba(0,0,0,0.3); }
  .view-tab { flex-direction: column; gap: 4px; padding: 6px 12px; font-size: 10.5px; border-radius: 10px; color: var(--text-soft); flex: 0 1 auto; min-width: 70px; transition: all 0.2s ease; }
  .view-tab svg { width: 20px !important; height: 20px !important; transition: transform 0.2s; }
  .view-tab.active { background: var(--navy-soft); color: var(--navy); }
  .view-tab.active svg { color: var(--navy); transform: scale(1.1); }
  [data-theme="dark"] .view-tab.active { background: var(--navy); color: #fff; }
  [data-theme="dark"] .view-tab.active svg { color: #fff; }
}

/* ============================================================
 * CUSTOM MINIMALIST SCROLLBAR
 * ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(160, 168, 179, 0.3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(160, 168, 179, 0.6); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(155, 165, 180, 0.2); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(155, 165, 180, 0.4); }
* { scrollbar-width: thin; scrollbar-color: rgba(160, 168, 179, 0.3) transparent; }
[data-theme="dark"] * { scrollbar-color: rgba(155, 165, 180, 0.2) transparent; }
@media (max-width: 850px) { ::-webkit-scrollbar { display: none; } * { scrollbar-width: none; } }

/* ============================================================
 * PATCH FASE 1 — SPINNER, CONTRAST, MOTION, HIDDEN
 * ============================================================ */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .top-progress { transition: none !important; }
}

:root {
  --text-mute: #6B7280;
}

/* Tombol Hapus pada Kartu Lanjutkan Membaca */
.btn-dismiss-continue {
  background: transparent;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-dismiss-continue:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

/* Tombol Hapus di Riwayat Pencarian */
.history-del-btn {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.history-del-btn:hover {
  color: #c53030; /* Warna merah saat hover */
  background: rgba(197, 48, 48, 0.1);
}