/* ==========================================================================
   DocsDown — base.css v1
   Design tokens + komponen bersama (header, footer, tombol, slot iklan, modal).
   Di-load oleh: semua halaman publik. Jangan definisikan style khusus halaman.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #1a73e8;
  --primary-dark: #0d5bbd;
  --success: #34a853;
  --danger: #d93025;
  --warning-bg: #fff3cd;
  --warning-border: #ffe69c;
  --warning-text: #664d03;
  /* Surface */
  --bg: #f8f9fa;
  --surface: #ffffff;
  --footer-bg: #f1f3f4;
  --border: #e8eaed;
  --input-border: #dadce0;
  --danger-soft: #fef3f2;
  /* Text */
  --text: #202124;
  --muted: #5f6368;
  --placeholder: #999;
  /* Motion */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 25px 60px rgba(0, 0, 0, 0.25);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

/* --- Reset minimal --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Breadcrumb Navigation (Modern & Responsive) --- */
.uc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.uc-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.uc-breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.uc-breadcrumb .sep {
  color: #94a3b8;
  font-size: 0.8rem;
  user-select: none;
}
.uc-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .uc-breadcrumb {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }
  .uc-breadcrumb .current {
    max-width: 180px;
  }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 860px; }
.container--slim { max-width: 840px; }

/* --- Header Glassmorphism & Mega Menu --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-width: 0; }
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo img { height: 36px; width: auto; display: block; flex-shrink: 0; }

.header-right { display: flex; align-items: center; gap: 1rem; }
.header-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover, .nav-item:hover > .nav-btn {
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary);
}
.nav-chevron { font-size: 0.65rem; transition: transform 0.2s; opacity: 0.7; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 1; }

/* Mega Menu Dropdown Panel */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  opacity: 0;
  visibility: hidden;
  content-visibility: hidden;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
  padding: 1rem;
  transition: opacity 0.18s ease, visibility 0.18s, transform 0.18s ease;
  transform: translateY(6px);
  z-index: 120;
  /* Responsive: never overflow the viewport */
  max-width: min(680px, calc(100vw - 2rem));
  box-sizing: border-box;
}
.mega-dropdown.align-right {
  left: auto;
  right: 0;
}
/* Prevent dropdown from going off left edge */
.mega-dropdown:not(.align-right) {
  left: 0;
  right: auto;
}
.nav-item:hover .mega-dropdown,
.nav-item:focus-within .mega-dropdown {
  opacity: 1;
  visibility: visible;
  content-visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mega grid — fluid, no fixed pixel widths */
.mega-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: clamp(300px, 50vw, 520px);
}
.mega-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: clamp(320px, 60vw, 660px);
}

/* Judul seksi di dalam mega dropdown (full-width row) */
.mega-section-title {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.25rem 0.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
}
.mega-section-title:first-child { border-top: none; margin-top: 0; padding-top: 0.15rem; }

/* Responsive collapse for medium screens */
@media (max-width: 1100px) {
  .mega-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: clamp(300px, 50vw, 460px);
  }
}

.mega-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.mega-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}
.mega-card-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.mega-card-body { display: flex; flex-direction: column; min-width: 0; }
.mega-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-card-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.3; margin-top: 0.1rem; }
.mega-card-new { background: linear-gradient(135deg, #eaf3ff, #f5f0ff); border-color: #bcd7fb; }
.mega-card-new:hover { border-color: var(--primary); }
.nav-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 4px;
  padding: 0.08rem 0.32rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.nav-badge-sm {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 4px;
  padding: 0.05rem 0.28rem;
  margin-left: 0.35rem;
  vertical-align: 1px;
}

/* Mobile Navigation Hamburger */
.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.7rem 0.65rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.mobile-toggle:hover { background: #f1f5f9; }

/* Mobile Drawer — full-screen overlay + slide-in panel */
.mobile-drawer {
  display: none;
  content-visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-drawer.is-open {
  opacity: 1;
  content-visibility: visible;
  pointer-events: auto;
}
.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85%, 360px);
  background: var(--surface);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  padding: 1.25rem 1rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Item drawer tidak boleh menyusut — biarkan overflow & scroll internal */
.mobile-drawer-content > * { flex-shrink: 0; }
/* Kunci scroll body saat drawer terbuka (anti konten ikut scroll, incl. iOS) */
body.drawer-open { overflow: hidden; position: fixed; width: 100%; left: 0; }
.mobile-drawer.is-open .mobile-drawer-content {
  transform: translateX(0);
}
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}
.mobile-close-btn {
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
  flex-shrink: 0;
}
.mobile-close-btn:hover { background: #e2e8f0; }

.mobile-nav-group { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  padding: 0 0.5rem;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  background: #f8fafc;
  transition: background 0.15s, color 0.15s;
}
.mobile-link span { flex-shrink: 0; font-size: 1.1rem; }
.mobile-link:hover, .mobile-link:active { background: #eff6ff; color: var(--primary); }
.mobile-link[aria-current="page"] { background: #e0edff; color: var(--primary); font-weight: 800; }
.mobile-link-home { background: linear-gradient(135deg, #1a73e8, #0d5bbd); color: #fff; font-weight: 800; }
.mobile-link-home:hover, .mobile-link-home:active { background: linear-gradient(135deg, #0d5bbd, #0d5bbd); color: #fff; }
.mobile-link-home[aria-current="page"] { background: linear-gradient(135deg, #1a73e8, #0d5bbd); color: #fff; outline: 2px solid #93c5fd; outline-offset: -2px; }
.mobile-link-all { border: 1.5px dashed #bcd7fb; background: #f0f7ff; color: var(--primary); font-weight: 800; }

/* --- Mobile accordion (tanpa JS, pakai <details>) --- */
.mobile-acc { background: #f8fafc; border-radius: var(--radius-md); overflow: hidden; }
.mobile-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-acc > summary::-webkit-details-marker { display: none; }
.mobile-acc > summary:hover { background: #eff6ff; color: var(--primary); }
.mobile-acc > summary .ma-ico { font-size: 1.15rem; flex-shrink: 0; }
.mobile-acc > summary .ma-title { flex: 1; }
.mobile-acc > summary .ma-chev {
  font-size: 0.7rem; color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mobile-acc[open] > summary { background: #e0edff; color: var(--primary); }
.mobile-acc[open] > summary .ma-chev { transform: rotate(180deg); }
.mobile-acc-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.35rem 0.35rem 0.55rem; }
.mobile-acc-body .mobile-link { background: #fff; border: 1px solid #eef2f7; }

/* --- Mobile language grid --- */
.mobile-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.mobile-lang {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e8edf3; border-radius: var(--radius-md);
  background: #fff; color: var(--text); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; min-height: 48px;
}
.mobile-lang span { font-size: 1.15rem; flex-shrink: 0; }
.mobile-lang:hover { border-color: var(--primary); color: var(--primary); }
.mobile-lang[aria-current="true"] { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 800; }

/* Show hamburger, hide desktop nav on ≤840px */
@media (max-width: 840px) {
  .header-nav { display: none !important; }
  .mobile-toggle { display: inline-flex; }
  .mobile-drawer { display: block; }
  .header-right { gap: 0.5rem; }
}

/* Extra-small: lang switcher jadi globe saja (tetap terlihat & bisa diklik) */
@media (max-width: 480px) {
  .lang-switch > summary b { display: none; }
  .lang-switch > summary { padding: 0.5rem 0.65rem; }
  .header-inner { gap: 0.5rem; }
  .logo { font-size: 1.15rem; }
  .logo img { height: 28px; }
}

/* Safe-area untuk ponsel berponi */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.mobile-drawer-content { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }

/* --- Tombol --- */
.btn {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary {
  background: var(--success);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  margin: 0.5rem;
}
.btn-primary:hover { background: #2d9247; }
.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  margin: 0.5rem;
}
.btn-outline:hover { background: #e8f0fe; }

/* --- Slot iklan (HTML polos = aman tanpa JS) --- */
.ad-label {
  font-size: 0.7rem;
  color: var(--placeholder);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.ad-header-container { max-width: 728px; margin: 1rem auto; }
.ad-slot {
  text-align: center;
  margin: 0 auto;
  min-height: 90px;
  background: #eee;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder);
  font-size: 0.8rem;
  max-width: 728px;
  border-radius: var(--radius-sm);
  contain-intrinsic-size: auto 90px;
}
/* Slot 300px = medium-rectangle 300x250 standar AdSense: cadangkan penuh anti-CLS */
.ad-slot[data-ad-slot="below_form"] { min-height: 250px; max-width: 336px; contain-intrinsic-size: auto 250px; }
/* Mobile: iklan responsif sering 300x250+ walau slot header → cadangkan 250px */
@media (max-width: 640px) {
  .ad-header-container .ad-slot { min-height: 250px; contain-intrinsic-size: auto 250px; }
}
.ad-rect {
  width: 300px;
  height: 250px;
  background: #eee;
  border: 1px dashed #ccc;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder);
  font-size: 0.8rem;
  margin: 0 auto;
}
.ad-rects-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

/* --- Footer (modern dark) --- */
.site-footer {
  background: linear-gradient(180deg, #0a1628 0%, #0d2242 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary);
}
.footer-inner { width: 100%; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem 1.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-brand .footer-logo img { height: 30px; width: auto; }
.footer-tagline { margin: 0.75rem 0 1rem; line-height: 1.55; max-width: 280px; font-size: 0.875rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.footer-badges span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s, transform 0.15s;
  width: fit-content;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.fc-ico { font-size: 0.95rem; line-height: 1; width: 1.1rem; text-align: center; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.fb-right { opacity: 0.8; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 0.82rem;
}
.legal-nav a:hover { color: var(--primary); text-decoration: underline; }

/* --- Modal validasi modern --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-card {
  background: var(--surface);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-pop);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s;
  position: relative;
  border-top: 5px solid var(--primary);
}
.modal-overlay.show .modal-card { transform: scale(1) translateY(0); }
.modal-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}
.modal-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.modal-card .modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.modal-card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.modal-host {
  display: inline-block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px dashed var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-family: monospace;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  word-break: break-all;
}
.sup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}
.sup-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: #fafbfc;
}
.sup-item:hover {
  border-color: var(--success);
  color: var(--success);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.18);
}
.sup-item span { font-size: 1.4rem; display: block; margin-bottom: 0.2rem; }
.modal-actions { display: flex; gap: 0.6rem; }
.modal-actions button {
  flex: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.btn-primary-m { background: var(--primary); color: #fff; }
.btn-primary-m:hover { background: var(--primary-dark); }
.btn-ghost-m { background: #f1f3f4; color: var(--text); }
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #9aa0a6;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* --- Language switcher --- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 0.4rem;
  min-width: 200px;
  z-index: 60;
  display: grid;
  gap: 0.15rem;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
}
.lang-menu a:hover { background: #f1f3f4; color: var(--primary); }
.lang-menu a[aria-current="true"] { background: #e8f0fe; color: var(--primary); font-weight: 700; }
[data-lang-switcher] select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}
[data-lang-switcher] select:hover { border-color: var(--primary); color: var(--primary); }

/* --- Animasi --- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Home Converters Section */
.uc-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.uc-home-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.uc-home-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.uc-home-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 10px;
  flex-shrink: 0;
}
.uc-home-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.uc-home-desc {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .uc-home-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer di bawah fold: tunda render --- */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
