/* =========================
   BOOKMARK PAGE BACKGROUND
========================= */
body.bookmark-page {
  background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 25%, #14b8a6 50%, #0d9488 75%, #115e59 100%);
  background-attachment: fixed;
}

body.bookmark-page::before {
  display: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* kasih jarak konten dari navbar */
.page,
.page-container {
  padding-top: 40px;
}

.bookmark-nav {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;
  background: #051b51;
  color: #e5e7eb;
}

body.bookmark-page .navbar .logo{
  background: linear-gradient(135deg, #38bdf8, #2563eb, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 10px 26px rgba(2,6,23,0.16);
}

body.bookmark-page.dark .navbar .logo,
body.dark.bookmark-page .navbar .logo{
  background: linear-gradient(135deg, #7dd3fc, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 18px rgba(56,189,248,0.18),
    0 10px 30px rgba(0,0,0,0.55);
}

.bookmark-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* === CONTAINER === */
.bookmark-container {
  max-width: 720px;
  margin: 30px auto;
  padding: 0 16px;
}

/* === ITEM === */
.bookmark-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px;
  margin-bottom: 14px;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);

  cursor: pointer;
}

/* === CONTENT === */
.bookmark-content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.bookmark-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* === ICON AREA === */
.bookmark-actions {
  display: flex;
  gap: 10px;
}

/* === ICON BACA === */
.read-icon {
  font-size: 1.2rem;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
}

.read-icon:hover {
  background: rgba(0,0,0,0.06);
}

/* === ICON HAPUS === */
.remove-icon {
  border: none;
  background: #ef4444;
  color: #fff;

  width: 28px;
  height: 28px;
  border-radius: 50%;

  font-size: 0.9rem;
  cursor: pointer;
}

.remove-icon:hover {
  background: #dc2626;
}

/* === EMPTY === */
.bookmark-empty {
  text-align: center;
  color: #64748b;
  margin-top: 60px;
}

.export-btn {
  margin: 16px 0;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #059669;
  color: white;
  font-size: .85rem;
  cursor: pointer;
}

.export-btn:hover {
  background: #047857;
}

body.dark .export-btn {
  background: #10b981;
}

.bookmark-search {
  padding: 14px 18px;
}

.bookmark-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

body.dark .bookmark-search input {
  background: #1e293b;
  color: #fff;
  border-color: #334155;
}

.not-found {
  margin: 30px auto;
  text-align: center;
  color: #ef4444;
  font-weight: 600;
  font-size: 15px;
}

body.dark .not-found {
  color: #f87171;
}


.clear-bookmark {
  margin: 12px 18px;
  padding: 10px 14px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.clear-bookmark:hover {
  background: #dc2626;
}

/* =====================
   NAV ICON (HOME)
===================== */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  margin-left: 10px;

  font-size: 18px;
  text-decoration: none;

  color: #fff;
  background: rgba(255, 255, 255, 0.12);

  border-radius: 50%;
  transition: all 0.25s ease;
}

/* hover */
.nav-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px) scale(1.05);
}

/* active */
.nav-icon:active {
  transform: scale(0.95);
}

/* dark mode */
body.dark .nav-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffd369;
}

/* mobile */
@media (max-width: 768px) {
  .nav-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

.nav-icon.active {
  background: #ffd369;
  color: #000;
}

.prefooter-inner {
  flex-wrap: wrap;
}

.bookmark-stats {
  margin: 12px 0 18px;
  font-weight: 600;
  color: #111827;
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}


.bookmark-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.bookmark-controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
}

.continue-reading {
  margin: 20px 0 30px;
  padding: 18px;
  background: #f8fafc;
  border-radius: 14px;
}

.bookmark-saved-title{
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111827;
}

body.dark .bookmark-saved-title{
  color: #f1f5f9;
}

.continue-reading h2 {
  margin-bottom: 10px;
}

.continue-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.continue-item a {
  text-decoration: none;
  color: #047857;
  font-weight: 600;
}

.reading-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 8px 0 4px;
  overflow: hidden;
}

.reading-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.reading-percent {
  font-size: 12px;
  color: #64748b;
}


/* =========================
   BOOKMARK CARD MODERN
========================= */
.bookmark-card {
  display: flex;
  gap: 16px;
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  transition: all 0.25s ease;
  margin-bottom: 18px;
}

.bookmark-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.bookmark-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.bookmark-body {
  flex: 1;
}

.bookmark-category {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 6px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #047857;
  font-weight: 800;
}

.bookmark-body h3 {
  font-size: 16px;
  margin: 4px 0;
}

.bookmark-body p {
  font-size: 13px;
  color: #6b7280;
}

.bookmark-body {
  flex: 1;
}

.bookmark-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #047857;
  font-weight: 800;
  width: fit-content;
}

/* STATUS */
.reading-status {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* PROGRESS BAR */
.reading-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}

.reading-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ACTIONS */
.bookmark-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.read-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.remove-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

/* =========================
   CONTINUE READING SECTION
========================= */
#continue-reading {
  background: linear-gradient(135deg, #f8fafc, #eef3ff);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

#continue-reading h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #047857;
}

/* Dark: kotak “Lanjutkan Membaca” — panel gelap hijau polos (tanpa pola garis) */
body.dark #continue-reading {
  background: linear-gradient(155deg, #022c22 0%, #020617 42%, #0f172a 100%);
  border: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(52, 211, 153, 0.12);
}

body.dark #continue-reading h2 {
  color: #6ee7b7;
  text-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

body.dark #continue-reading .reading-percent {
  color: #94a3b8;
}

/* item */
.continue-item {
  background: white;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.continue-item:hover {
  transform: translateY(-2px);
}

/* judul */
.continue-item a {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

/* progress bar */
.reading-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}

.reading-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.reading-percent {
  font-size: 12px;
  color: #6b7280;
}

/* =========================
   BOOKMARK HEADER
========================= */
.bookmark-header {
  background: linear-gradient(135deg, #0c4a6e 0%, #1d4ed8 45%, #2563eb 100%);
  padding: 26px;
  border-radius: 18px;
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.bookmark-header h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.bookmark-header p {
  opacity: 0.85;
  font-size: 14px;
}

/* ===============================
   MODERN BOOKMARK STATS
=============================== */
.bookmark-stats-modern {
  display: flex;
  gap: 18px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}

.bookmark-stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 20px;
  margin: 20px 0 30px;
}

.stat-box {
  flex: 1;
  min-width: 160px;
  background: linear-gradient(135deg, #0c4a6e 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s ease;
}

.stat-box b {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-box h3 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-box span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  letter-spacing: 0.4px;
}

/* Hover efek halus */
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
}

/* ===============================
   MODERN BOOKMARK CARDS
=============================== */
.bookmark-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.bookmark-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bookmark-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.bookmark-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Body */
.bookmark-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #047857;
  font-weight: 800;
  width: fit-content;
}

.bookmark-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 4px 0;
}

.bookmark-body p {
  font-size: 0.85rem;
  color: #555;
}

/* Progress bar */
.reading-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 6px;
}

.reading-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 20px;
  transition: width 0.4s ease;
}

.reading-percent {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

.reading-goal,
.reading-achievement {
  margin: 0 20px 30px;
}

/* Actions */
.bookmark-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.read-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.4);
}

.remove-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-icon:hover {
  color: #ef4444;
  transform: scale(1.1);
}

/* ===============================
   DARK MODE
=============================== */
body.dark .bookmark-card {
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

body.dark .bookmark-body p {
  color: #cbd5f5;
}

body.dark .bookmark-category {
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.35);
  color: #34d399;
  text-shadow: 0 0 14px rgba(16,185,129,0.25);
}

body.dark .reading-bar {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   DARK MODE BOOKMARK PAGE
========================= */
body.dark {
  color: #e5e7eb;
}

/* header */
body.dark .navbar {
  background: linear-gradient(135deg, #020617, #0f172a);
}

/* stat box */
body.dark .stat-box {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 40%, #1d4ed8 100%);
  color: #f8fafc;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25);
}

body.dark .stat-box b,
body.dark .stat-box span {
  color: #f8fafc !important;
}

body.dark .bookmark-stats {
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

body.dark .bookmark-empty {
  color: #cbd5e1;
}

body.dark .reading-goal,
body.dark .goal-info,
body.dark .goal-info strong {
  color: #f1f5f9;
}

body.dark .reading-achievement {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #2563eb 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #f8fafc;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.22);
}

/* header banner */
body.dark .bookmark-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  color: #f8fafc;
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.3);
}

/* control area */
body.dark .bookmark-controls {
  background: #020617;
  border: 1px solid #1e293b;
}

/* search input */
body.dark .bookmark-search input {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

body.dark .bookmark-search input::placeholder {
  color: #64748b;
}

/* select */
body.dark .bookmark-controls select {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

/* bookmark card */
body.dark .bookmark-card {
  background: #020617;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

body.dark .bookmark-card h3 {
  color: #f1f5f9;
}

body.dark .bookmark-card p {
  color: #94a3b8;
}

/* progress bar */
body.dark .reading-bar {
  background: #1e293b;
}

body.dark .reading-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* not found */
body.dark .not-found {
  background: #020617;
  color: #f87171;
  border: 1px solid #7f1d1d;
}

.reading-goal {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0 26px;
  box-shadow: var(--shadow-soft);
}

.goal-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.goal-bar {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.goal-bar div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.reading-achievement {
  background: linear-gradient(135deg, #0c4a6e 0%, #1d4ed8 50%, #2563eb 100%);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.28);
}

/* AUTO RTL SAAT GOOGLE SET ARAB */
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .hero,
html[lang="ar"] .navbar,
html[lang="ar"] .quick-menu,
html[lang="ar"] .article-content {
  text-align: right;
}

/* =========================
   BOOKMARK DARK MODE
========================= */

body.dark .bookmark-card{

background:linear-gradient(180deg,#0f172a,#020617);

border-radius:16px;

border:1px solid rgba(16,185,129,0.3);

box-shadow:
0 10px 30px rgba(0,0,0,0.7),
0 0 10px rgba(16,185,129,0.12);

color:#e5e7eb;

transition:all .35s ease;

}

/* hover */

body.dark .bookmark-card:hover{

transform:translateY(-5px);

border-color:rgba(16,185,129,0.5);

box-shadow:
0 18px 40px rgba(0,0,0,0.8),
0 0 18px rgba(16,185,129,0.25);

}

/* judul */

body.dark .bookmark-card h3{

color:#f1f5f9;

}

/* deskripsi */

body.dark .bookmark-card p{

color:#94a3b8;

}

/* category */

body.dark .bookmark-category{
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.35);
  color: #34d399;
  text-shadow: 0 0 14px rgba(16,185,129,0.25);
}

/* tombol baca */

body.dark .read-btn{

color:#34d399;

}

body.dark .read-btn:hover{

color:#6ee7b7;

}

/* progress bar */

body.dark .reading-bar{

background:rgba(255,255,255,0.1);

}

body.dark .reading-fill{

background:linear-gradient(90deg,#10b981,#34d399);

}

/* =========================
   CONTINUE READING DARK
========================= */

body.dark .continue-item{

background:linear-gradient(180deg,#0f172a,#020617);

border-radius:14px;

border:1px solid rgba(16,185,129,0.3);

box-shadow:
0 10px 25px rgba(0,0,0,0.7);

color:#e5e7eb;

padding:14px 16px;

transition:all .35s ease;

}

body.dark .continue-item:hover{

transform:translateY(-3px);

border-color:#34d399;

box-shadow:
0 16px 35px rgba(0,0,0,0.8),
0 0 12px rgba(16,185,129,0.25);

}

/* judul artikel */

body.dark .continue-item a{

color:#f1f5f9;

font-weight:500;

text-decoration:none;

}

body.dark .continue-item a:hover{

color:#34d399;

}

/* progress bar */

body.dark .reading-bar{

background:rgba(255,255,255,0.1);

}

body.dark .reading-fill{

background:linear-gradient(90deg,#10b981,#34d399);

}

/* legacy id tidak dipakai — gaya di body.dark #continue-reading */

/* =========================
   SCROLL TO TOP - LEFT SIDE
========================= */

.scroll-to-top{
  position: fixed;

  left: 18px;          /* pindah ke kiri */
  bottom: 26px;

  width: 42px;         /* lebih kecil */
  height: 36px;

  border: none;
  border-radius: 10px; /* bukan bulat */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: linear-gradient(135deg,#ef4444,#dc2626); /* merah modern */

  color: white;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    0 3px 8px rgba(239,68,68,0.35);

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px);
  transition: all 0.28s ease;

  z-index: 999;
  pointer-events: none;
}

/* icon */
.scroll-to-top svg{
  width: 16px;
  height: 16px;
}

/* muncul */
.scroll-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* hover */
.scroll-to-top:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.3),
    0 6px 14px rgba(239,68,68,0.45);
}

/* klik */
.scroll-to-top:active{
  transform: scale(0.95);
}

/* =========================
   RELATED & RECOMMENDED (GLASS)
========================= */
.bookmark-suggest-section {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.bookmark-suggest-section.is-hidden {
  display: none;
}

/* Dark: pembungkus Artikel terkait / direkomendasikan — polos */
body.dark.bookmark-page .bookmark-suggest-section {
  border-top: 1px solid rgba(16, 185, 129, 0.28);
  padding: 1.5rem 1rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2, 44, 34, 0.42) 0%, rgba(2, 6, 23, 0.88) 100%);
}

.bookmark-related-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.25rem;
}

.bookmark-related-category {
  margin: 0;
  padding: 1.2rem 1.05rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark .bookmark-related-category {
  background: linear-gradient(165deg, rgba(2, 44, 34, 0.28) 0%, rgba(15, 23, 42, 0.58) 100%);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(52, 211, 153, 0.08),
    0 0 0 1px rgba(16, 185, 129, 0.1);
}

.bookmark-related-category__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  color: #0f172a;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bookmark-related-category__title::before {
  content: "";
  width: 4px;
  height: 1.15em;
  border-radius: 4px;
  background: linear-gradient(180deg, #14b8a6, #0ea5e9);
  flex-shrink: 0;
}

body.dark .bookmark-related-category__title {
  color: #f1f5f9;
}

.bookmark-related-category__grid {
  margin: 0;
}

.bookmark-suggest-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}

body.dark .bookmark-suggest-heading {
  color: #f1f5f9;
}

.bookmark-suggest-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

body.dark .bookmark-suggest-sub {
  color: #94a3b8;
}

.bookmark-suggest-grid {
  display: grid;
  gap: 14px;
}

/* Dark: area kartu (related + recommended) — kotak polos */
body.dark.bookmark-page .bookmark-suggest-grid {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(2, 6, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.06);
}

.bookmark-suggest-grid--related {
  grid-template-columns: 1fr;
}

.bookmark-suggest-grid--recommended {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

@media (min-width: 880px) {
  .bookmark-suggest-grid--recommended {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 520px) {
  .bookmark-suggest-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .bookmark-suggest-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bookmark-glass-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.dark .bookmark-glass-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(52, 211, 153, 0.08),
    0 0 0 1px rgba(16, 185, 129, 0.08);
}

.bookmark-glass-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
}

body.dark .bookmark-glass-card:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bookmark-glass-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.bookmark-glass-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.bookmark-glass-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bookmark-glass-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.bookmark-glass-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
  align-self: flex-start;
}

body.dark .bookmark-glass-card__cat {
  color: #5eead4;
}

.bookmark-glass-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark .bookmark-glass-card__title {
  color: #f8fafc;
}

/* Rekomendasi: rotasi harian + stagger masuk (featured feel) */
@keyframes bookmark-card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bookmark-suggest-grid--recommended .bookmark-glass-card {
  animation: bookmark-card-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(1) {
  animation-delay: 0.02s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(2) {
  animation-delay: 0.06s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(3) {
  animation-delay: 0.1s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(4) {
  animation-delay: 0.14s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(5) {
  animation-delay: 0.18s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(6) {
  animation-delay: 0.22s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(7) {
  animation-delay: 0.26s;
}
.bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(8) {
  animation-delay: 0.3s;
}

/* Dark: cincin hijau mengelilingi semua grid kartu (stat, daftar bookmark, artikel terkait/rekomendasi) */
body.dark.bookmark-page .bookmark-stats-modern .stat-box {
  border-radius: 14px;
  animation: home-dark-green-pulse-home-stat 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark.bookmark-page .bookmark-stats-modern .stat-box:nth-child(1) {
  animation-delay: 0s;
}
body.dark.bookmark-page .bookmark-stats-modern .stat-box:nth-child(2) {
  animation-delay: 0.2s;
}
body.dark.bookmark-page .bookmark-stats-modern .stat-box:nth-child(3) {
  animation-delay: 0.4s;
}

body.dark.bookmark-page .bookmark-list .bookmark-card {
  animation: home-dark-green-pulse-reader-box 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark.bookmark-page .bookmark-list .bookmark-card:nth-child(3n + 1) {
  animation-delay: 0s;
}
body.dark.bookmark-page .bookmark-list .bookmark-card:nth-child(3n + 2) {
  animation-delay: 0.15s;
}
body.dark.bookmark-page .bookmark-list .bookmark-card:nth-child(3n + 3) {
  animation-delay: 0.3s;
}

body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card {
  animation: home-dark-green-pulse-reader-box 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(1) {
  animation-delay: 0s;
}
body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(2) {
  animation-delay: 0.12s;
}
body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(3) {
  animation-delay: 0.24s;
}
body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(4) {
  animation-delay: 0.36s;
}
body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(5) {
  animation-delay: 0.48s;
}
body.dark.bookmark-page .bookmark-suggest-grid--related .bookmark-glass-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Timpa rise ringan di grid rekomendasi — pakai pulse hijau saja di dark */
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card {
  animation: home-dark-green-pulse-reader-box 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(1) {
  animation-delay: 0s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(2) {
  animation-delay: 0.1s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(3) {
  animation-delay: 0.2s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(4) {
  animation-delay: 0.3s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(5) {
  animation-delay: 0.4s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(6) {
  animation-delay: 0.5s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(7) {
  animation-delay: 0.6s;
}
body.dark.bookmark-page .bookmark-suggest-grid--recommended .bookmark-glass-card:nth-child(8) {
  animation-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  body.dark.bookmark-page .bookmark-stats-modern .stat-box,
  body.dark.bookmark-page .bookmark-list .bookmark-card,
  body.dark.bookmark-page .bookmark-suggest-grid .bookmark-glass-card {
    animation: none !important;
  }
}