/* ============================================================
   FILE    : public_assets/css/app.css
   STYLE   : Modern compact — Vercel/Linear inspired
   ============================================================ */

/* ---------- Font lokal (tidak butuh internet) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../vendor/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --c-bg: #faf5ec;
  --c-surface: #fffdf8;
  --c-border: #e8deca;
  --c-border-soft: #f3eada;
  --c-text: #224421;
  --c-text-2: #2e5a2c;
  --c-text-3: #57664f;

  --c-primary: #3c7339;
  --c-primary-hover: #2e5a2c;
  --c-accent: #6fae6b;

  --grad-brand: linear-gradient(135deg, #2e5a2c 0%, #4e8f4a 60%, #6fae6b 100%);
  --grad-1: linear-gradient(135deg, #3c7339 0%, #6fae6b 100%);
  --grad-2: linear-gradient(135deg, #4e8f4a 0%, #eadcc3 100%);
  --grad-3: linear-gradient(135deg, #224421 0%, #4e8f4a 100%);
  --grad-4: linear-gradient(135deg, #6fae6b 0%, #3c7339 100%);

  --shadow-xs: 0 1px 2px rgba(34,68,33,.05);
  --shadow-sm: 0 1px 3px rgba(34,68,33,.07), 0 1px 2px rgba(34,68,33,.04);
  --shadow-md: 0 4px 12px rgba(34,68,33,.08), 0 2px 4px rgba(34,68,33,.04);
  --shadow-lg: 0 12px 32px rgba(34,68,33,.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ==================== NAVBAR ==================== */
.navbar-brand img { height: 24px; width: auto; margin-right: 8px; }
.navbar-brand { font-size: 0.95rem; font-weight: 700; letter-spacing: -.01em; }
.navbar .nav-link { font-weight: 500; font-size: 0.85rem; padding: 6px 12px; }
.navbar .btn { font-weight: 600; font-size: 0.8rem; padding: 6px 14px; }

/* ==================== HERO V2 ==================== */
.hero-v2 {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(79,70,229,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 100%, rgba(168,85,247,.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(59,130,246,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-v2-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero-v2-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
  letter-spacing: .01em;
}

.hero-v2-badge .dot {
  width: 6px; height: 6px;
  background: #6fae6b;
  border-radius: 50%;
  box-shadow: 0 0 8px #6fae6b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-v2-title {
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}

.hero-v2-title .gradient-text {
  background: linear-gradient(135deg, #224421 0%, #4e8f4a 60%, #6fae6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-v2-sub {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: rgba(255,255,255,.65);
  margin: 0 auto 28px;
  max-width: 480px;
  line-height: 1.6;
}

/* Search */
.hero-v2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  margin: 0 auto 28px;
  transition: all .2s;
}

.hero-v2-search:focus-within {
  border-color: rgba(129,140,248,.5);
  box-shadow: 0 0 0 4px rgba(79,70,229,.15);
  background: rgba(255,255,255,.08);
}

.hero-v2-search .search-icon {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-v2-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
  min-width: 0;
  font-family: inherit;
}

.hero-v2-search input::placeholder { color: rgba(255,255,255,.4); }

.hero-v2-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0a0a0a;
  border: 0;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}

.hero-v2-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,255,255,.15);
}

/* Meta strip */
.hero-v2-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-v2-meta .meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.hero-v2-meta .meta-item strong {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.hero-v2-meta .meta-item span {
  font-size: 0.68rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

.hero-v2-meta .meta-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.12);
}

.hero-v2-meta .meta-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}

.hero-v2-meta .meta-cta:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

/* ==================== CONTENT ==================== */
.content-v2 {
  padding-top: 32px;
  padding-bottom: 40px;
}

.block-v2 { margin-bottom: 36px; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.block-head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--c-text);
}

.block-count {
  font-size: 0.72rem;
  color: var(--c-text-3);
  background: var(--c-border-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.block-link {
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.block-link:hover { gap: 7px; }

/* ==================== CHIPS ==================== */
.chips-v2 {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips-v2::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}

.chip i { font-size: 0.75rem; opacity: .8; }

.chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.chip.active {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}
.chip.active i { opacity: 1; }

/* ==================== GRID & CARD V2 ==================== */
.grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card-v2 {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.card-v2:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  color: rgba(255,255,255,.9);
  font-size: 1.75rem;
  overflow: hidden;
  text-decoration: none;
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card-v2:hover .card-cover img { transform: scale(1.06); }

.card-cover > i { position: relative; z-index: 1; }

.card-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  z-index: 2;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.card-body h3 a:hover { color: var(--c-primary); }

.card-addr {
  font-size: 0.75rem;
  color: var(--c-text-3);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-addr i { color: var(--c-primary); margin-right: 4px; font-size: 0.7rem; }

.card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--c-border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-author {
  font-size: 0.7rem;
  color: var(--c-text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}

.card-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--c-border-soft);
  color: var(--c-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-decoration: none;
  transition: all .15s;
}

.card-btn:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateX(2px);
}

/* ==================== MORE BUTTON ==================== */
.grid-more {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 0 4px;
}

.btn-more-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all .15s;
}

.btn-more-v2:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

.btn-more-v2 i { transition: transform .2s; }
.btn-more-v2:hover i { transform: translateY(2px); }

.grid-more small {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--c-text-3);
}

/* ==================== EMPTY ==================== */
.empty-v2 {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-lg);
}

.empty-v2 > i {
  font-size: 1.75rem;
  color: var(--c-text-3);
  margin-bottom: 12px;
  display: block;
}

.empty-v2 h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.empty-v2 p {
  font-size: 0.8rem;
  color: var(--c-text-2);
  margin: 0 0 16px;
}

.btn-primary-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary-v2:hover { background: var(--c-primary-hover); color: #fff; }

/* ==================== CTA V2 ==================== */
.cta-v2 {
  position: relative;
  background: #0a0a0a;
  border-radius: var(--r-xl);
  padding: 24px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(79,70,229,.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(168,85,247,.3) 0%, transparent 60%);
  pointer-events: none;
}

.cta-v2-left {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 240px;
}

.cta-v2-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cta-v2-left h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 3px;
  letter-spacing: -.01em;
}

.cta-v2-left p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.4;
}

.cta-v2-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0a0a0a;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.cta-v2-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,255,255,.15);
}

/* ==================== DETAIL PAGE ==================== */
/* Teks hero harus selalu putih: jangan bergantung pada inheritance karena
   Tabler/utility lain bisa menimpa warna judul di atas foto cover. */
.detail-hero {
  padding: 24px 0 28px;
  color: #fff;
  border-radius: 0;
  margin-bottom: 20px;
}
.detail-hero h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(2, 6, 23, .45);
}
.detail-hero h1 i { color: #fff; -webkit-text-fill-color: #fff; }
.detail-hero a {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.detail-hero .meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,.9);
  -webkit-text-fill-color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(2, 6, 23, .4);
}
.detail-hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-hero .meta i { color: rgba(255,255,255,.9); }

/* ==================== GALLERY ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: #f3eada;
  transition: transform .2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .delete-btn {
  position: absolute;
  top: 5px; right: 5px;
  background: rgba(220,38,38,.92);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity .15s;
  cursor: pointer;
}
.gallery-item:hover .delete-btn { opacity: 1; }

/* ==================== STICKY ACTION BAR ==================== */
.sticky-action-bar {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 100;
  display: flex;
  gap: 8px;
}
.sticky-action-bar .btn {
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767.98px) {
  .hero-v2 { padding: 44px 0 52px; }
  .hero-v2-meta { gap: 14px; }
  .hero-v2-meta .meta-item strong { font-size: 0.95rem; }
  .hero-v2-meta .meta-cta {
    order: 99;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
  .grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: 0.8rem; }
  .card-addr { font-size: 0.7rem; }
  .card-author { display: none; }
  .cta-v2 { padding: 20px; }
  .cta-v2-btn { width: 100%; justify-content: center; }
  .content-v2 { padding-top: 24px; }
}

@media (max-width: 480px) {
  .hero-v2-search {
    padding: 5px 5px 5px 12px;
    border-radius: 12px;
  }
  .hero-v2-search button {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .grid-v2 { gap: 8px; }
  .card-cover { aspect-ratio: 4 / 3; }
  .chip { padding: 5px 11px; font-size: 0.72rem; }
}

/* ==================== ANIMATION ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-v2-inner > * { animation: fadeUp .5s ease both; }
.hero-v2-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-v2-inner > *:nth-child(2) { animation-delay: .1s; }
.hero-v2-inner > *:nth-child(3) { animation-delay: .15s; }
.hero-v2-inner > *:nth-child(4) { animation-delay: .2s; }
.hero-v2-inner > *:nth-child(5) { animation-delay: .25s; }

.card-v2 { animation: fadeUp .4s ease both; }

/* ============================================================
   BASE: AKSESIBILITAS & PREFERENSI SISTEM
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   NAVBAR PUBLIK
   ============================================================ */
.app-navbar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 1010;
}

.app-navbar .navbar-brand {
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-navbar .navbar-brand .brand-text {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-2);
  border-radius: 8px;
}

.app-navbar .nav-link:hover { color: var(--c-text); background: var(--c-border-soft); }

.app-navbar .nav-link.active {
  color: var(--c-primary);
  background: #eaf4e8;
  font-weight: 600;
}

.app-navbar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4338ca;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-navbar .user-meta { line-height: 1.15; }
.app-navbar .user-meta strong { font-size: .8rem; display: block; }
.app-navbar .user-meta span { font-size: .68rem; color: var(--c-text-3); text-transform: capitalize; }

@media (max-width: 767.98px) {
  .app-navbar .navbar-collapse {
    border-top: 1px solid var(--c-border);
    margin-top: 10px;
    padding-top: 10px;
    max-height: 72vh;
    overflow-y: auto;
  }

  .app-navbar .navbar-nav {
    width: 100%;
    align-items: stretch !important;
  }

  .app-navbar .nav-link {
    width: 100%;
    padding: 10px 12px;
    font-size: .85rem;
  }

  .app-navbar .nav-cta {
    width: 100%;
    justify-content: center;
    margin: 6px 0 0;
  }
}

/* ============================================================
   HALAMAN UMUM (panel user, auth, header halaman)
   ============================================================ */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 0 0 4px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-head h1 i { color: var(--c-primary); font-size: 1rem; }
.page-head p { margin: 0; font-size: .8rem; color: var(--c-text-2); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Kartu ringkas untuk dashboard user */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.quick-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 13px 14px;
  text-decoration: none;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .15s, box-shadow .15s;
}

.quick-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  color: var(--c-text);
}

.quick-card i { color: var(--c-primary); font-size: .9rem; margin-bottom: 4px; }
.quick-card strong { font-size: .84rem; font-weight: 650; }
.quick-card span { font-size: .72rem; color: var(--c-text-3); }

/* Auth */
.auth-wrap {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
  padding: 28px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.auth-card h1 { font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; margin: 0 0 4px; }
.auth-card .auth-sub { font-size: .8rem; color: var(--c-text-2); margin: 0 0 18px; }
.auth-card .auth-foot { margin-top: 16px; font-size: .78rem; color: var(--c-text-2); text-align: center; }
.auth-card .auth-foot a { color: var(--c-primary); font-weight: 600; }

/* Footer */
.app-footer {
  border-top: 1px solid var(--c-border);
  background: #fff;
  margin-top: 24px;
  padding: 22px 0;
  font-size: .78rem;
  color: var(--c-text-2);
}

.app-footer a { color: var(--c-text-2); text-decoration: none; }
.app-footer a:hover { color: var(--c-primary); }
.app-footer .footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.app-footer .footer-note { font-size: .72rem; color: var(--c-text-3); }

@media (max-width: 575.98px) {
  .page-head h1 { font-size: 1.06rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .auth-card { padding: 22px 18px; }
}

/* ==========================================================
   Galeri foto kuburan (halaman detail)
   ========================================================== */
.gallery-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e2e8f0;
  aspect-ratio: 1 / 1;
}
.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.gallery-tile:hover .gallery-img { transform: scale(1.04); }
.gallery-img:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

.gallery-caption,
.gallery-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 20px 10px 8px;
  font-size: .7rem;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(to top, rgba(15, 23, 42, .84), rgba(15, 23, 42, 0));
}
.gallery-note {
  top: 8px;
  right: auto;
  bottom: auto;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(180, 83, 9, .94);
}

.gallery-empty {
  padding: 26px 16px;
  text-align: center;
  border: 1px dashed #e8deca;
  border-radius: 14px;
  background: #fffdf8;
}
.gallery-empty > i {
  display: block;
  margin-bottom: 10px;
  font-size: 1.9rem;
  color: #57664f;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-img { transition: none; }
}

/* ============================================================
   TIPOGRAFI DISPLAY — mengikuti halaman status Kubunda
   Inter ExtraBold + tracking rapat. Warna tetap memakai token
   :root di atas (cream 50–300, leaf 400–800) yang memang identik
   dengan palet halaman status, jadi tidak ada warna baru.
   ============================================================ */

/* Wordmark & judul display: ekstra tebal, huruf rapat.
   Specificity ganda agar menang atas .font-display hasil build Tailwind. */
.font-display.font-display {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -.025em;
}

h1,
.h1 {
  font-weight: 800;
  letter-spacing: -.025em;
}

h2,
.h2 {
  font-weight: 700;
  letter-spacing: -.018em;
}