/* ============================================================
   PORTAL PENERBANGAN & AKADEMIK — Versi PHP
   Desain: replika versi Next.js (navy #0a1c3f + aksen sky)
   ============================================================ */

:root {
  --navy: #0a1c3f;
  --navy-2: #12295a;
  --navy-deep: #06122b;
  --navy-footer: #081733;
  --sky: #0ea5e9;
  --sky-soft: #e0f2fe;
  --sky-mid: #7dd3fc;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --amber: #fef3c7;
  --amber-text: #b45309;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 18px rgba(2, 8, 23, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- ikon ---------- */
.ic { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }
.ic svg { width: 100%; height: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 28, 63, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 8, 23, .35);
}
.brand-logo .ic { width: 20px; height: 20px; color: #fff; }
.brand-text { min-width: 0; display: block; }
.brand-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; color: #7dd3fc; line-height: 1.2; }

.nav { display: none; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 6px 11px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: rgba(226, 232, 240, .85); transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.nav a.active { background: rgba(14, 165, 233, .22); color: #fff; }
@media (min-width: 1100px) { .nav { display: flex; } }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: #fff; padding: 6px 10px; border-radius: 8px;
  transition: background .15s;
}
.lang-btn:hover { background: rgba(255, 255, 255, .10); }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-btn b { font-size: 12px; letter-spacing: .05em; }
.menu-btn {
  display: inline-flex; background: none; border: 0; color: #fff;
  padding: 8px; border-radius: 8px; transition: background .15s;
}
.menu-btn:hover { background: rgba(255, 255, 255, .10); }
.menu-btn .ic { width: 20px; height: 20px; }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* Menu mobile */
.mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu nav { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 11px 14px; border-radius: 10px; font-weight: 500; color: #334155; }
.mobile-menu a:hover { background: #f1f5f9; }
.mobile-menu a.active { background: var(--sky-soft); color: #075985; }
.mobile-menu .divider { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.mobile-menu .admin-link { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mobile-menu .admin-link .ic { width: 16px; height: 16px; }
@media (min-width: 1100px) { .mobile-menu { display: none !important; } }

/* ============================================================
   HERO (Beranda)
   ============================================================ */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden;
  background: var(--navy);
}
@media (min-width: 640px) { .hero { min-height: 600px; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,43,.95) 0%, rgba(10,28,63,.72) 45%, rgba(10,28,63,.28) 100%); }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,18,43,.9) 0%, transparent 40%); }
.hero-inner { position: relative; z-index: 2; max-width: 1152px; margin: 0 auto; width: 100%; padding: 80px 16px; }
@media (min-width: 640px) { .hero-inner { padding: 80px 24px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(125, 211, 252, .4); background: rgba(56, 189, 248, .15);
  color: #bae6fd; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 16px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-badge .ic { width: 14px; height: 14px; }
.hero h1 {
  margin-top: 20px; max-width: 760px;
  font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
@media (min-width: 640px) { .hero h1 { font-size: 48px; } }
.hero-sub { margin-top: 16px; max-width: 640px; color: #e2e8f0; font-size: 16px; line-height: 1.7; }
@media (min-width: 640px) { .hero-sub { font-size: 18px; } }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { margin-top: 48px; max-width: 640px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1024px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px); padding: 12px 16px; border-radius: 14px;
}
.stat-tile .ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(56, 189, 248, .25); color: #7dd3fc;
  display: flex; align-items: center; justify-content: center;
}
.stat-tile .ico .ic { width: 20px; height: 20px; }
.stat-tile b { display: block; font-size: 20px; color: #fff; line-height: 1.2; }
.stat-tile span { display: block; font-size: 12px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   TOMBOL
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all .18s; line-height: 1.2;
}
.btn .ic { width: 16px; height: 16px; }
.btn-sky { background: var(--sky); color: #fff; box-shadow: 0 8px 20px rgba(2, 8, 23, .35); }
.btn-sky:hover { background: #38bdf8; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.10); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.20); color: #fff; }
.btn-outline-navy { border-color: rgba(10,28,63,.25); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--sky-soft); }
.btn-outline-sky { border-color: #bae6fd; color: #075985; background: transparent; }
.btn-outline-sky:hover { background: var(--sky-soft); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #ef4444; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* ============================================================
   KONTEN / SECTION
   ============================================================ */
.container { max-width: 1152px; margin: 0 auto; width: 100%; padding: 40px 16px; }
@media (min-width: 640px) { .container { padding: 56px 24px; } }

.section-header { margin-bottom: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #bae6fd; background: var(--sky-soft); color: #0369a1;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px;
}
.eyebrow .ic { width: 14px; height: 14px; }
.section-header h2 { margin-top: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
@media (min-width: 640px) { .section-header h2 { font-size: 30px; } }
.section-header p { margin-top: 8px; max-width: 640px; color: var(--muted); font-size: 15px; }

.section-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-split h2 { font-size: 20px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
@media (min-width: 640px) { .section-split h2 { font-size: 22px; } }
.section-split h2 .ic { width: 20px; height: 20px; color: #0284c7; }
.section-split p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.view-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #0369a1; flex-shrink: 0; }
.view-all:hover { color: #075985; }
.view-all .ic { width: 16px; height: 16px; }

.band-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  transition: all .15s;
}
.chip:hover { border-color: #7dd3fc; color: #0369a1; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 4px 10px rgba(148, 163, 184, .5); }

/* ---------- kartu app ---------- */
.apps-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); background: #fff; padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.app-card:hover { transform: translateY(-4px); border-color: #7dd3fc; box-shadow: 0 12px 24px rgba(186, 230, 253, .5); }
.app-card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff); color: #0369a1;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.app-card .ico .ic { width: 24px; height: 24px; }
.app-card:hover .ico { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; }
.app-card h3 { margin-top: 14px; font-size: 15px; font-weight: 700; padding-right: 64px; }
.app-card p { margin-top: 6px; flex: 1; font-size: 14px; color: var(--muted); line-height: 1.6; }
.app-card .open { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #0369a1; }
.app-card .open .ic { width: 14px; height: 14px; }
.app-card:hover .open { color: #0284c7; }
.badge-featured {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--amber); color: var(--amber-text); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px;
}
.badge-featured .ic { width: 12px; height: 12px; color: #f59e0b; fill: #f59e0b; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .quick-grid { grid-template-columns: repeat(6, 1fr); } }
.quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  border: 1px solid var(--border); background: #fff; padding: 16px; border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.quick-card:hover { transform: translateY(-2px); border-color: #7dd3fc; box-shadow: var(--shadow-md); }
.quick-card .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff); color: #0369a1;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.quick-card .ico .ic { width: 20px; height: 20px; }
.quick-card:hover .ico { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; }
.quick-card span { font-size: 12px; font-weight: 600; color: #1e293b; line-height: 1.35; }

/* ---------- kartu publikasi ---------- */
.pubs-list { display: flex; flex-direction: column; gap: 16px; }
.pub-card {
  border: 1px solid var(--border); background: #fff; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.pub-card:hover { border-color: #7dd3fc; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-type {
  background: var(--sky-soft); color: #075985; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px;
}
.badge-navy { background: var(--navy); color: #7dd3fc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.badge-amber-inline { background: var(--amber); color: var(--amber-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.pub-year { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.pub-card h3 { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.pub-authors { margin-top: 6px; font-size: 14px; font-style: italic; color: var(--muted); }
.pub-venue { margin-top: 2px; font-size: 14px; font-weight: 500; color: #075985; }
.pub-abstract { margin-top: 16px; }
.pub-abstract h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.pub-abstract p { margin-top: 6px; font-size: 14px; color: #475569; line-height: 1.7; }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #f1f5f9; color: #475569; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pub-links { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; display: flex; flex-wrap: wrap; gap: 12px; }
.pub-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #0369a1; }
.pub-links a:hover { color: #075985; }
.pub-links .ic { width: 16px; height: 16px; }

/* ---------- kartu story ---------- */
.stories-list { display: flex; flex-direction: column; gap: 12px; }
.story-card {
  border: 1px solid var(--border); background: #f8fafcc; background: rgba(248,250,252,.6);
  padding: 20px; border-radius: var(--radius); transition: border-color .2s; display: block;
}
.story-card:hover { border-color: #7dd3fc; }
.story-card h3 { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.45; color: #0f172a; }
.story-card p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.story-meta { margin-top: 8px; font-size: 12px; color: var(--muted-2); }

/* ---------- galeri ---------- */
.gal-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm);
  cursor: zoom-in; padding: 0; text-align: left; width: 100%;
}
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-cap { padding: 14px 16px; }
.gal-cap b { display: block; font-size: 14px; color: var(--text); }
.gal-cap span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gal-cat { position: absolute; top: 10px; left: 10px; background: rgba(10,28,63,.85); color: #7dd3fc; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 23, .9); align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 960px; max-height: 85vh; display: flex; flex-direction: column; }
.lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 12px; color: #e2e8f0; font-size: 14px; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1);
  border: 0; color: #fff; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close .ic { width: 20px; height: 20px; }

/* ---------- video ---------- */
.video-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-card { border: 1px solid var(--border); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 16px 18px; }
.video-body h3 { font-size: 15px; font-weight: 700; line-height: 1.45; }
.video-body p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.video-body a { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #dc2626; }
.video-body a .ic { width: 14px; height: 14px; }

/* ---------- regulasi ---------- */
.regs-list { display: flex; flex-direction: column; gap: 12px; }
.reg-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); background: #fff; padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.reg-card:hover { border-color: #7dd3fc; }
.reg-ico {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--navy); color: #7dd3fc; display: flex; align-items: center; justify-content: center;
}
.reg-ico .ic { width: 20px; height: 20px; }
.reg-body { flex: 1; min-width: 0; }
.reg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reg-num { font-size: 13px; font-weight: 700; color: var(--navy); }
.reg-year { font-size: 12px; color: var(--muted-2); }
.reg-body h3 { margin-top: 4px; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.reg-issuer { margin-top: 2px; font-size: 13px; color: var(--muted); }
.reg-summary { margin-top: 8px; font-size: 13.5px; color: #475569; line-height: 1.65; }
.reg-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0369a1; }
.reg-link .ic { width: 14px; height: 14px; }
.reg-note { margin-top: 24px; padding: 12px 16px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 13px; color: #92400e; }

/* ---------- dua dunia / CTA banner ---------- */
.two-worlds { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .two-worlds { grid-template-columns: repeat(2, 1fr); } }
.illus-frame {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 448px; margin: 0 auto;
  overflow: hidden; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(148, 163, 184, .4);
}
.illus-frame img { width: 100%; height: 100%; object-fit: cover; }
.two-worlds h2 { font-size: 24px; font-weight: 700; color: var(--navy); }
@media (min-width: 640px) { .two-worlds h2 { font-size: 30px; } }
.two-worlds p { margin-top: 16px; color: #475569; line-height: 1.7; }
.two-worlds .cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.cta-banner {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(90deg, var(--navy), #173a7a); padding: 40px 24px;
}
@media (min-width: 640px) { .cta-banner { padding: 40px; } }
.cta-banner .deco { position: absolute; right: -24px; top: -24px; width: 160px; height: 160px; color: rgba(255,255,255,.06); }
.cta-banner h2 { position: relative; font-size: 20px; font-weight: 700; color: #fff; }
@media (min-width: 640px) { .cta-banner h2 { font-size: 24px; } }
.cta-banner p { position: relative; margin-top: 8px; max-width: 560px; color: #cbd5e1; font-size: 14px; line-height: 1.7; }
.cta-banner .cta-row { position: relative; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- tentang ---------- */
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 3fr; } }
.profile-card {
  margin: 0 auto 24px; max-width: 384px; width: 100%;
  border: 1px solid var(--border); background: #fff; padding: 24px; border-radius: 18px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center;
}
.profile-photo {
  width: 160px; height: 160px; border-radius: 999px; overflow: hidden;
  border: 4px solid var(--sky-soft); box-shadow: var(--shadow-md); background: #f1f5f9;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card b { margin-top: 16px; font-size: 14px; color: var(--text); }
.profile-card span { margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.about-illus { position: relative; aspect-ratio: 1; max-width: 384px; width: 100%; margin: 0 auto; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(148,163,184,.4); }
.about-illus img { width: 100%; height: 100%; object-fit: cover; }
.yt-card {
  margin-top: 24px; display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border); background: #fff; padding: 16px; border-radius: 14px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.yt-card:hover { transform: translateY(-2px); border-color: #fecaca; box-shadow: var(--shadow-md); }
.yt-ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.yt-ico .ic { width: 24px; height: 24px; }
.yt-card b { display: block; font-size: 14px; color: var(--text); }
.yt-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.about-bio p { margin-bottom: 16px; font-size: 15px; color: #334155; line-height: 1.75; }
.about-sub { margin-top: 32px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.focus-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.focus-chips span { border: 1px solid #bae6fd; background: var(--sky-soft); color: #075985; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.roles-grid { margin-top: 12px; display: grid; gap: 16px; }
@media (min-width: 640px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
.role-card { border: 1px solid var(--border); background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.role-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.role-ico.navy { background: var(--navy); color: #7dd3fc; }
.role-ico.sky { background: var(--sky); color: #fff; }
.role-card h4 { margin-top: 12px; font-size: 15px; font-weight: 700; }
.role-card p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- dashboard (publik) ---------- */
.dash-grid { display: grid; gap: 40px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.footer { margin-top: auto; background: var(--navy-footer); border-top: 1px solid rgba(255,255,255,.10); color: #cbd5e1; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 40px 16px; display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); padding: 40px 24px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { width: 36px; height: 36px; }
.footer-brand b { font-size: 14px; color: #fff; }
.footer p.desc { margin-top: 12px; max-width: 400px; font-size: 14px; color: #94a3b8; line-height: 1.7; }
.footer h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #7dd3fc; }
.footer ul { margin-top: 12px; list-style: none; }
.footer ul.nav2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; }
.footer ul li a { font-size: 14px; color: #94a3b8; transition: color .15s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 16px; }
.footer-bottom-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-bottom p { font-size: 12px; color: #64748b; }
.admin-foot {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: #64748b;
}
.admin-foot:hover { background: rgba(255,255,255,.05); color: #7dd3fc; }
.admin-foot .ic { width: 12px; height: 12px; }

/* ---------- kotak kosong ---------- */
.empty-box {
  border: 1px dashed #cbd5e1; background: #fff; padding: 40px; border-radius: var(--radius);
  text-align: center; font-size: 14px; color: var(--muted);
}

/* ---------- pemberitahuan database ---------- */
.db-notice {
  max-width: 1152px; margin: 20px auto 0; padding: 14px 18px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.db-notice .ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.db-notice code { background: #fef3c7; padding: 1px 6px; border-radius: 4px; }

/* ---------- pencarian ---------- */
.search-wrap { position: relative; max-width: 560px; margin-bottom: 16px; }
.search-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search-wrap input {
  width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; outline: none;
}
.search-wrap input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14, 165, 233, .18); }

/* ============================================================
   HALAMAN ADMIN
   ============================================================ */
.admin-shell { background: #f1f5f9; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { background: var(--navy); color: #fff; }
.admin-topbar-inner { max-width: 1152px; margin: 0 auto; padding: 0 16px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-topbar .brand-name { font-size: 15px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-topbar-actions a, .admin-topbar-actions button {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #e2e8f0; padding: 6px 12px; border-radius: 8px; border: 0; background: transparent;
}
.admin-topbar-actions a:hover, .admin-topbar-actions button:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-topbar-actions .ic { width: 15px; height: 15px; }

.admin-main { flex: 1; max-width: 1152px; margin: 0 auto; width: 100%; padding: 28px 16px 56px; }
@media (min-width: 640px) { .admin-main { padding: 32px 24px 56px; } }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-title h1 { font-size: 22px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.admin-title h1 .ic { width: 24px; height: 24px; color: #0284c7; }
.admin-title .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.admin-title .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(6, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
}
.stat-card .ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--sky-soft); color: #0369a1; display: flex; align-items: center; justify-content: center;
}
.stat-card .ico .ic { width: 20px; height: 20px; }
.stat-card b { display: block; font-size: 20px; line-height: 1.2; color: var(--text); }
.stat-card span { display: block; font-size: 12px; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.panel-head h2 .ic { width: 18px; height: 18px; color: #0284c7; }
.panel-head .hint { font-size: 12.5px; color: var(--muted); }
.panel-head .sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.admin-version { text-align: center; font-size: 12px; color: var(--muted-2); padding: 6px 0 18px; }
.panel-body { padding: 20px; }

.entity-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .entity-cards { grid-template-columns: repeat(3, 1fr); } }
.entity-card {
  border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow-sm); transition: all .2s; display: flex; flex-direction: column; gap: 4px;
}
.entity-card:hover { border-color: #7dd3fc; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.entity-card .ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--sky-soft); color: #0369a1;
  display: flex; align-items: center; justify-content: center;
}
.entity-card .ico .ic { width: 20px; height: 20px; }
.entity-card b { margin-top: 10px; font-size: 15px; color: var(--text); }
.entity-card span { font-size: 13px; color: var(--muted); }
.entity-card .row2 { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entity-card .count { font-size: 20px; font-weight: 700; color: var(--navy); }

/* tabel data */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; padding: 10px 14px; background: #f8fafc; color: var(--muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.data tr:hover td { background: #f8fafc; }
table.data .thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
table.data .actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all .15s;
}
.icon-btn:hover { color: #0369a1; border-color: #7dd3fc; background: var(--sky-soft); }
.icon-btn.danger:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.icon-btn .ic { width: 15px; height: 15px; }

/* form */
/* minmax(0,1fr): cegah kolom melar karena konten/URL sangat panjang */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.form-field label .req { color: #dc2626; }
.form-field input[type=text], .form-field input[type=url], .form-field input[type=number],
.form-field input[type=password], .form-field input[type=date], .form-field select,
.form-field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 44px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}
.form-field .hint { margin-top: 5px; font-size: 12px; color: var(--muted-2); }
.form-field .preview { margin-top: 8px; }
.form-field .preview img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.switch-row { display: flex; align-items: center; gap: 10px; padding-top: 26px; }
.switch-row input { width: 18px; height: 18px; accent-color: #0ea5e9; }
.switch-row label { margin: 0; font-weight: 600; font-size: 14px; color: #334155; }
.form-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Bilah Simpan menonjol di area admin */
.admin-main .form-actions {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-top: 22px;
}
.admin-main .form-actions .hint { margin-left: auto; }
/* Tombol Simpan "menyala" saat ada perubahan yang belum disimpan */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, .55); }
  50%      { box-shadow: 0 0 0 9px rgba(2, 132, 199, 0); }
}
.btn-attention {
  animation: btnPulse 1.5s ease-in-out infinite;
  transform: scale(1.04);
  outline: 2px solid #0284c7; outline-offset: 2px;
}

/* login */
.login-page {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 40px 16px; overflow: hidden;
}
.login-page .glow { position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(14,165,233,.25), transparent 55%); pointer-events: none; }
.login-page .dots { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 24px 60px rgba(2,8,23,.5); }
.login-card .logo { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: linear-gradient(135deg, #38bdf8, #0284c7); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(14,165,233,.4); }
.login-card .logo .ic { width: 28px; height: 28px; color: #fff; }
.login-card h1 { margin-top: 16px; text-align: center; font-size: 20px; color: var(--text); }
.login-card .sub { margin-top: 4px; text-align: center; font-size: 14px; color: var(--muted); }
.login-card form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.input-wrap input { padding-left: 38px !important; }
.alert-error { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.alert-ok { border: 1px solid #86efac; background: #f0fdf4; color: #15803d; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.login-note { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted-2); text-align: center; }
.login-note .ic { width: 14px; height: 14px; flex-shrink: 0; }
.login-back { margin-top: 20px; text-align: center; }
.login-back a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #7dd3fc; }
.login-back a:hover { color: #fff; }
.login-back .ic { width: 16px; height: 16px; }

.flash-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

/* backup buttons */
.backup-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .backup-grid { grid-template-columns: 1fr; } }
.backup-tile {
  border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; transition: all .2s;
}
.backup-tile:hover { border-color: #7dd3fc; box-shadow: var(--shadow-md); }
.backup-tile b { font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.backup-tile b .ic { width: 18px; height: 18px; color: #0369a1; }
.backup-tile span { font-size: 12.5px; color: var(--muted); flex: 1; }
.backup-tile .btn { align-self: flex-start; }

@media print { .topbar, .footer, .admin-topbar { display: none; } }
