/* =========================================
   INSTANSI PROFILE - Global Design System
   Inspired by Filament v5 Aesthetic
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* === CSS VARIABLES === */
:root {
  --color-bg:          #FAF7F2;
  --color-bg-card:     #F0EBE3;
  --color-bg-card-2:   #E8E2D9;
  --color-surface:     #FFFFFF;
  --color-text:        #1C1A17;
  --color-text-muted:  #6B6456;
  --color-text-light:  #9B9186;
  --color-primary:     #D97706;
  --color-primary-h:   #B45309;
  --color-accent:      #C084FC;
  --color-accent-soft: #F3E8FF;
  --color-border:      #DDD5C8;
  --color-border-soft: #EDE8E0;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(28,26,23,.06), 0 1px 2px rgba(28,26,23,.04);
  --shadow-md:  0 4px 16px rgba(28,26,23,.08), 0 2px 6px rgba(28,26,23,.04);
  --shadow-lg:  0 12px 40px rgba(28,26,23,.12), 0 4px 12px rgba(28,26,23,.06);
  --shadow-glow: 0 0 0 3px rgba(217,119,6,.18);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --nav-height: 68px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--color-text-muted); line-height: 1.75; }

a  { text-decoration: none; color: inherit; transition: color var(--transition); }

img, svg { display: block; max-width: 100%; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section--sm { padding: 4rem 0; }

/* === GRID === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* === CARD COMPONENT === */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Filament-style corner markers */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card--corner::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
}

/* === ICON CONTAINER (Filament-style) === */
.icon-wrap {
  width: 64px; height: 64px;
  background: var(--color-bg-card-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition), background var(--transition);
}

.icon-wrap svg {
  width: 28px; height: 28px;
  stroke: var(--color-text);
  stroke-width: 1.5;
  fill: none;
}

.card:hover .icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  background: var(--color-primary);
}

.card:hover .icon-wrap svg { stroke: white; }

/* === BUTTON === */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217,119,6,.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(217,119,6,.05);
}

.btn-accent {
  background: var(--color-accent-soft);
  color: #7C3AED;
  border: 1.5px solid #DDD6FE;
}
.btn-accent:hover {
  background: #EDE9FE;
  transform: translateY(-2px);
}

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-new {
  background: var(--color-primary);
  color: white;
}

.badge-dark {
  background: var(--color-text);
  color: var(--color-bg);
}

/* === NAVIGATION === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(250,247,242,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border-soft);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex; align-items: center;
  height: 100%;
  gap: 2rem;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text);
  margin-right: auto;
  display: flex; align-items: center; gap: .6rem;
}

.navbar__logo-mark {
  width: 36px; height: 36px;
  background: var(--color-text);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.navbar__logo-mark svg { width: 20px; height: 20px; stroke: var(--color-bg); fill: none; }

.navbar__nav {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}

.navbar__nav a {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition);
  position: relative;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--color-text);
  background: var(--color-bg-card);
}

/* Dropdown */
.navbar__nav .has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .5rem); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: .875rem;
}
.dropdown a:hover { color: var(--color-text); background: var(--color-bg-card); }

.navbar__cta { margin-left: 1rem; }

/* Mobile hamburger */
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem;
  background: none; border: none;
}
.navbar__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .75rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-weight: 500; color: var(--color-text-muted);
}
.mobile-nav a:last-child { border: none; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(217,119,6,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(192,132,252,.07) 0%, transparent 70%);
}

/* Filament-style grid pattern */
.hero__grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(var(--color-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem .9rem;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '✦';
  font-size: .65rem;
  color: var(--color-primary);
}

.hero__title { margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--color-primary); }

.hero__desc {
  font-size: 1.125rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
  line-height: 1;
}

.hero__stat-label {
  font-size: .85rem;
  color: var(--color-text-light);
  margin-top: .25rem;
}

/* === SECTION HEADER === */
.section-header { margin-bottom: 3rem; }
.section-header p {
  margin-top: .75rem;
  max-width: 520px;
  font-size: 1.05rem;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-card-2);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: white; font-weight: 600; font-size: .9rem;
}

/* === TABLE / REPORT === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  background: var(--color-bg-card-2);
  padding: .85rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}
.data-table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
}
.data-table tr:hover td { background: rgba(217,119,6,.03); }
.data-table tr:last-child td { border-bottom: none; }

/* === FORM === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .5rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.form-control::placeholder { color: var(--color-text-light); }

textarea.form-control { resize: vertical; min-height: 140px; }

/* === ACCORDION === */
.accordion-item {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--color-surface);
}

.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none; border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.accordion-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-body__inner { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); line-height: 1.75; }

/* === MODAL === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28,26,23,.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 90%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.modal-backdrop.open .modal { transform: translate(-50%, -50%); }

.modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--color-bg-card);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--color-bg-card-2); }

/* === TABS === */
.tabs { display: flex; gap: .25rem; margin-bottom: 2rem; border-bottom: 2px solid var(--color-border-soft); }
.tab-btn {
  padding: .75rem 1.25rem;
  border: none; background: none;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === NOTIFICATION / ALERT === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #F0FDF4; border-color: #22C55E; color: #166534; }
.alert-error   { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.alert-info    { background: #EFF6FF; border-color: #3B82F6; color: #1D4ED8; }

/* === FOOTER === */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
}
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.footer a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer a:hover { color: var(--color-primary); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem;
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-card-2) 50%, var(--color-bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* === ANIMATED ICON (SVG) === */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(217,119,6,.4); }
  100% { box-shadow: 0 0 0 16px rgba(217,119,6,0); }
}
@keyframes draw-path {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.icon-float { animation: float-y 3s ease-in-out infinite; }
.icon-spin  { animation: spin-slow 8s linear infinite; }
.icon-pulse { animation: pulse-ring 2s ease-out infinite; }

/* === DIVIDER === */
.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--color-text-light); font-size: .85rem;
  margin: 2rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--color-border);
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--color-text-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--color-border); }

/* === TOAST === */
.toast-container {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 3000;
  display: flex; flex-direction: column; gap: .75rem;
}
.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem;
  max-width: 340px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast.fade-out { animation: slideOut .3s ease forwards; }
@keyframes slideOut {
  to { transform: translateX(120%); opacity: 0; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }

  .hero__stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }

  .tabs { flex-wrap: wrap; }
  .section { padding: 4rem 0; }
  h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}


/* =========================================
   COMPONENTS — Additional UI pieces
   Import via @import in app.css if needed
   ========================================= */

/* === ARTICLE / RICH TEXT === */
.article-body { line-height: 1.85; color: var(--color-text-muted); font-size: 1rem; }
.article-body h2 { color: var(--color-text); margin: 2rem 0 .85rem; font-family: var(--font-display); font-size: 1.6rem; }
.article-body h3 { color: var(--color-text); margin: 1.75rem 0 .75rem; font-family: var(--font-display); font-size: 1.25rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--color-text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: .85rem 1.25rem;
  background: var(--color-bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text);
}
.article-body img { border-radius: var(--radius-md); margin: 1.5rem 0; width: 100%; }
.article-body a { color: var(--color-primary); text-decoration: underline; }
.article-body a:hover { color: var(--color-primary-h); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th { background: var(--color-bg-card-2); padding: .7rem 1rem; text-align: left; font-weight: 700; border-bottom: 2px solid var(--color-border); }
.article-body td { padding: .7rem 1rem; border-bottom: 1px solid var(--color-border-soft); }
.article-body code { background: var(--color-bg-card-2); padding: .15rem .4rem; border-radius: 4px; font-size: .875em; font-family: monospace; }
.article-body pre  { background: var(--color-text); color: var(--color-bg); padding: 1.25rem; border-radius: var(--radius-md); overflow-x: auto; margin: 1.5rem 0; }
.article-body pre code { background: none; padding: 0; color: inherit; }

/* === PAGINATION === */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 2.5rem;
}
.page-item {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.page-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-item.active { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.page-item.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* === SEARCH INPUT === */
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  stroke: var(--color-text-light);
  width: 18px; height: 18px; fill: none; stroke-width: 2;
  pointer-events: none;
}
.search-wrap input { padding-left: 2.8rem; }

/* === PROGRESS === */
.progress { height: 8px; background: var(--color-bg-card-2); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--color-primary); border-radius: 999px; transition: width 1s ease; }
.progress-bar--success { background: #22C55E; }
.progress-bar--warning { background: #F59E0B; }
.progress-bar--danger  { background: #EF4444; }

/* === STAT CARD === */
.stat-card {
  padding: 1.75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-text);
  line-height: 1;
}
.stat-card__label {
  font-size: .82rem;
  color: var(--color-text-light);
  margin-top: .35rem;
}
.stat-card__change {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 700;
  margin-top: .6rem;
  padding: .2rem .6rem;
  border-radius: 999px;
}
.stat-card__change--up   { background: #F0FDF4; color: #15803D; }
.stat-card__change--down { background: #FEF2F2; color: #991B1B; }

/* === CHIP / TAG === */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: var(--color-bg-card-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-soft);
  cursor: default;
  transition: all var(--transition);
}
.chip:hover, .chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-light);
}
.empty-state svg {
  width: 64px; height: 64px;
  stroke: var(--color-border);
  margin: 0 auto 1.25rem;
  display: block;
}
.empty-state h4 { color: var(--color-text-muted); margin-bottom: .5rem; }
.empty-state p  { font-size: .875rem; }

/* === LOADING SPINNER === */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin-slow .8s linear infinite;
  display: inline-block;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content:  center;
  cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* === COOKIE NOTICE === */
.cookie-notice {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-text);
  color: rgba(255,255,255,.8);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-size: .875rem;
  z-index: 999;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-notice.show { transform: translateY(0); }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline-item {
  position: relative; margin-bottom: 2rem; padding-left: 1.5rem;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -2.45rem; top: .5rem;
  width: 12px; height: 12px;
  background: var(--color-primary); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-border);
}
.timeline-item__year {
  font-family: var(--font-display); color: var(--color-primary);
  font-size: 1.05rem; margin-bottom: .35rem;
}
.timeline-item__text { font-size: .9rem; line-height: 1.65; }

/* Sembunyikan tombol scroll-to-top / back-to-top */
#back-to-top,
.back-to-top,
.scroll-top,
.btn-totop,
.btn-scroll-top {
  display: none !important;
}