/* =====================================================================
   SMPN 2 Gebog - Tema segar & natural dengan aksen neon emerald + cyan
   ===================================================================== */
:root {
    --bg: #f2faf6;
    --bg-soft: #e7f6ee;
    --surface: #ffffff;
    --ink: #0b2b22;
    --ink-soft: #1f4a3d;
    --muted: #55736a;
    --line: #d5eadf;

    --emerald: #10b981;
    --emerald-d: #059669;
    --emerald-dd: #064e3b;
    --forest: #052e26;
    --cyan: #22d3ee;
    --cyan-d: #0891b2;
    --neon: #34f5b0;
    --amber: #f59e0b;
    --danger: #e11d48;

    --glow: 0 0 0 1px rgba(52, 245, 176, .35), 0 8px 28px rgba(16, 185, 129, .35), 0 0 42px rgba(34, 211, 238, .25);
    --glow-soft: 0 6px 24px rgba(16, 185, 129, .18);
    --shadow: 0 10px 30px rgba(6, 78, 59, .08);
    --radius: 18px;
    --radius-sm: 12px;

    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-d); text-decoration: none; }
a:hover { color: var(--cyan-d); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------------- Tombol ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .2s, box-shadow .25s, background .2s, color .2s; text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-glow {
    color: #032a21; background: linear-gradient(120deg, var(--neon), var(--cyan));
    box-shadow: var(--glow);
}
.btn-glow:hover { color: #032a21; box-shadow: 0 0 0 1px rgba(52,245,176,.6), 0 10px 36px rgba(16,185,129,.5), 0 0 60px rgba(34,211,238,.45); }
.btn-outline { color: var(--emerald-dd); border-color: var(--emerald); background: transparent; }
.btn-outline:hover { background: var(--emerald); color: #fff; }
.btn-light { background: #fff; color: var(--emerald-dd); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: #fff1f3; color: var(--danger); border-color: #fecdd3; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-wa { background: #25d366; color: #05331a; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn-wa:hover { color: #05331a; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6,78,59,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(52,245,176,.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: .76rem; }

.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: .5rem .75rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.main-nav a:not(.btn):hover { background: var(--bg-soft); color: var(--emerald-dd); }
.main-nav a.active { background: var(--bg-soft); color: var(--emerald-dd); box-shadow: inset 0 0 0 1px rgba(16,185,129,.35); }
.main-nav a.nav-cta { background: linear-gradient(120deg, var(--neon), var(--cyan)); color: #032a21; box-shadow: 0 0 18px rgba(52,245,176,.55); }
.main-nav a.nav-cta:hover { color: #032a21; background: linear-gradient(120deg, var(--neon), var(--cyan)); filter: brightness(1.05); }
.nav-admin { margin-left: .4rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--emerald-dd); border-radius: 3px; transition: transform .3s, opacity .2s, top .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(6,78,59,.15); padding: 1rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
    }
    .main-nav.open { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .main-nav a:not(.btn) { padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
    .nav-admin { margin: .5rem 0 0; }
    .nav-admin .btn { width: 100%; }
}
@media (max-width: 420px) { .brand-text small { display: none; } .brand-text strong { font-size: .92rem; } }

/* ---------------- Section umum ---------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-d);
    background: #fff; border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon), 0 0 18px var(--cyan); }
.lead { font-size: 1.12rem; color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.6rem; transition: transform .25s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(52,245,176,.7); box-shadow: var(--shadow), 0 0 26px rgba(34,211,238,.22); }
.card-flat:hover { transform: none; }
.icon-bubble {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem;
    background: linear-gradient(135deg, #d9fbe9, #d6f7fc); box-shadow: inset 0 0 0 1px rgba(16,185,129,.25), 0 0 18px rgba(52,245,176,.35);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative; overflow: hidden; color: #eafff6;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(34,211,238,.35), transparent 60%),
        radial-gradient(700px 420px at 0% 110%, rgba(52,245,176,.28), transparent 60%),
        linear-gradient(160deg, #052e26 0%, #064e3b 55%, #065f46 100%);
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero.hero-has-bg { background-color: #052e26; }
.hero.hero-has-bg::before { opacity: .25; }
.hero.hero-has-bg .glow-text { filter: drop-shadow(0 0 16px rgba(52,245,176,.55)) drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.hero.hero-has-bg h1, .hero.hero-has-bg p.lead { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(rgba(52,245,176,.28) 1px, transparent 1.5px); background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 20%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg);
    clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .glow-text { background: linear-gradient(100deg, var(--neon), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(52,245,176,.45)); }
.hero p.lead { color: #bfeedd; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.hero-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(52,245,176,.4); padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.orb {
    width: min(340px, 78vw); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(52,245,176,.9), rgba(34,211,238,.35) 55%, transparent 72%);
    filter: blur(2px); box-shadow: 0 0 80px rgba(52,245,176,.55), 0 0 140px rgba(34,211,238,.35); animation: float 7s ease-in-out infinite;
    display: grid; place-items: center;
}
.orb .brand-logo { width: 46%; height: 46%; filter: drop-shadow(0 0 24px rgba(255,255,255,.55)); }
.float-card {
    position: absolute; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 16px; padding: .8rem 1.1rem;
    box-shadow: 0 14px 40px rgba(0,0,0,.25), 0 0 26px rgba(52,245,176,.45); font-family: var(--font-head); font-weight: 700; font-size: .92rem;
    display: flex; align-items: center; gap: .6rem; animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .76rem; }
.float-card .dot { font-size: 1.4rem; }
.fc-1 { top: 6%; left: 0; animation-delay: -1s; }
.fc-2 { bottom: 14%; right: 0; animation-delay: -3s; }
.fc-3 { bottom: -2%; left: 8%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-visual { min-height: 280px; order: -1; }
    .fc-1 { left: 2%; } .fc-2 { right: 2%; }
}

.page-hero {
    position: relative; overflow: hidden; color: #eafff6; padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(3.4rem, 7vw, 5rem);
    background: radial-gradient(700px 320px at 90% 0%, rgba(34,211,238,.32), transparent 60%), linear-gradient(160deg, #052e26, #065f46);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: .4rem; }
.page-hero p { color: #bfeedd; margin: 0; max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: #8fe9c8; margin-bottom: .8rem; }
.breadcrumb a { color: #b6f5dc; }

/* ---------------- Stat strip ---------------- */
.stats-strip { margin-top: -3.2rem; position: relative; z-index: 5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow), 0 0 40px rgba(52,245,176,.22); }
.stat { text-align: center; padding: .4rem; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; background: linear-gradient(100deg, var(--emerald-d), var(--cyan-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 500; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Visi misi / sambutan ---------------- */
.vm-card { position: relative; overflow: hidden; }
.vm-card.visi { background: linear-gradient(145deg, #064e3b, #047857); color: #eafff6; border: none; box-shadow: var(--glow-soft), 0 0 40px rgba(34,211,238,.18); }
.vm-card.visi h3 { color: #fff; }
.vm-card.visi p { font-size: 1.15rem; line-height: 1.6; font-family: var(--font-head); font-weight: 600; margin: 0; }
.vm-card.visi::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(52,245,176,.55), transparent 70%); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
    font-size: .8rem; font-weight: 800; color: #032a21; background: linear-gradient(120deg, var(--neon), var(--cyan)); box-shadow: 0 0 12px rgba(52,245,176,.6);
}

.welcome { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.welcome-photo { position: relative; }
.welcome-photo .photo-frame {
    border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(145deg, #d9fbe9, #d6f7fc);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(52,245,176,.6), 0 20px 50px rgba(16,185,129,.3), 0 0 60px rgba(34,211,238,.28);
    display: grid; place-items: center;
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; }
.welcome-photo .avatar-fallback { width: 100%; height: 100%; font-size: 6rem; border-radius: 0; }
.welcome-name { margin-top: 1.4rem; text-align: center; }
.welcome-name strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.welcome-name span { color: var(--muted); font-size: .9rem; }
.welcome-text { position: relative; }
.welcome-text .quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: .5; color: var(--neon); text-shadow: 0 0 22px rgba(52,245,176,.7); display: block; height: 2.2rem; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; gap: 1.6rem; } .welcome-photo { max-width: 280px; margin-inline: auto; } }

/* ---------------- Berita ---------------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #bff3d8, #bdf0f8); overflow: hidden; display: grid; place-items: center; font-size: 3rem; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .8rem; font-weight: 600; color: var(--emerald-d); margin-bottom: .4rem; }
.news-body h3 { margin-bottom: .5rem; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--emerald-d); }
.news-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.read-more { font-weight: 700; font-family: var(--font-head); font-size: .92rem; }
.article { max-width: 820px; margin-inline: auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; box-shadow: var(--shadow), 0 0 40px rgba(34,211,238,.2); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.article-body { font-size: 1.08rem; line-height: 1.85; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.4rem; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .8rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-soft); }
.pagination a:hover { border-color: var(--emerald); color: var(--emerald-d); }
.pagination .current { background: linear-gradient(120deg, var(--neon), var(--cyan)); border-color: transparent; color: #032a21; box-shadow: 0 0 14px rgba(52,245,176,.55); }

/* ---------------- CTA band ---------------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.4rem); color: #eafff6; text-align: center;
    background: radial-gradient(500px 260px at 85% 0%, rgba(34,211,238,.4), transparent 60%), linear-gradient(135deg, #064e3b, #047857);
    box-shadow: var(--glow-soft), 0 0 60px rgba(52,245,176,.25);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9f5e4; max-width: 620px; margin-inline: auto; }

/* ---------------- Profil ---------------- */
.identity-table { width: 100%; border-collapse: collapse; }
.identity-table th, .identity-table td { text-align: left; padding: .8rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.identity-table th { width: 38%; color: var(--muted); font-weight: 600; font-size: .92rem; }
.prose p { margin-bottom: 1.1em; }
.staff-card { text-align: center; }
.avatar, .avatar-fallback { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(52,245,176,.7), 0 10px 26px rgba(16,185,129,.28); }
.avatar-fallback { display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: #032a21; background: linear-gradient(135deg, var(--neon), var(--cyan)); }
.staff-card h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.staff-role { color: var(--emerald-d); font-weight: 600; font-size: .9rem; }
.staff-mapel { color: var(--muted); font-size: .88rem; }
.staff-card.featured { background: linear-gradient(160deg, #ecfdf5, #ecfeff); }

/* ---------------- Fasilitas & prestasi ---------------- */
.facility-img { border-radius: 14px; overflow: hidden; margin: -.4rem -.4rem 1rem; aspect-ratio: 16/10; }
.facility-img img { width: 100%; height: 100%; object-fit: cover; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip { padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft); font-family: var(--font-body); }
.chip:hover { border-color: var(--emerald); }
.chip.active { background: linear-gradient(120deg, var(--neon), var(--cyan)); border-color: transparent; color: #032a21; box-shadow: 0 0 14px rgba(52,245,176,.5); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.achv { padding: 0; overflow: hidden; }
.achv-photo { aspect-ratio: 4/3; background: linear-gradient(135deg, #bff3d8, #bdf0f8); display: grid; place-items: center; font-size: 3.2rem; position: relative; overflow: hidden; }
.achv-photo img { width: 100%; height: 100%; object-fit: cover; }
button.achv-photo { border: 0; width: 100%; cursor: zoom-in; padding: 0; }
.achv-level { position: absolute; top: .8rem; left: .8rem; background: rgba(5,46,38,.88); color: var(--neon); font-size: .76rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; box-shadow: 0 0 12px rgba(52,245,176,.5); }
.achv-body { padding: 1.1rem 1.3rem 1.4rem; }
.achv-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.achv-year { color: var(--emerald-d); font-weight: 700; font-size: .85rem; }
.achv-body p { color: var(--muted); font-size: .92rem; margin: .4rem 0 0; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3, 25, 20, .92); display: none; align-items: center; justify-content: center; padding: 1.2rem; flex-direction: column; gap: .8rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(96vw, 1100px); border-radius: 14px; box-shadow: 0 0 60px rgba(52,245,176,.4); object-fit: contain; }
.lightbox p { color: #d6fff0; margin: 0; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 1.6rem; cursor: pointer; background: #fff; color: var(--ink); }

/* ---------------- Kontak ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-bubble { margin: 0; flex: none; width: 48px; height: 48px; font-size: 1.4rem; }
.contact-item strong { display: block; font-family: var(--font-head); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 40px rgba(52,245,176,.2); background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 440px; border: 0; display: block; }

/* ---------------- SPMB ---------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.2rem 1.3rem 1.2rem 5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
    content: counter(step); position: absolute; left: 1.2rem; top: 1.1rem; width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #032a21; background: linear-gradient(135deg, var(--neon), var(--cyan)); box-shadow: 0 0 18px rgba(52,245,176,.65);
}
.steps li strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .2rem; }
.steps li span { color: var(--muted); font-size: .96rem; }
.docs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.docs-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.docs-list li::before { content: "📄"; font-size: 1.2rem; }
.docs-list small { display: block; color: var(--muted); }
.wave { position: relative; text-align: center; }
.wave .wave-no { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; background: linear-gradient(120deg, var(--emerald-d), var(--cyan-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wave .wave-date { font-weight: 600; color: var(--ink-soft); margin: .6rem 0; }
.wave.is-open { border-color: var(--neon); box-shadow: var(--shadow), 0 0 0 2px rgba(52,245,176,.6), 0 0 40px rgba(52,245,176,.4); }
.badge { display: inline-block; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; font-family: var(--font-head); }
.badge-open { background: #d1fae5; color: #065f46; box-shadow: 0 0 12px rgba(52,245,176,.6); }
.badge-soon { background: #cffafe; color: #155e75; }
.badge-closed { background: #e5e7eb; color: #4b5563; }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-wait { background: #fef3c7; color: #92400e; }
.badge-no { background: #ffe4e6; color: #9f1239; }
.cta-big { position: relative; text-align: center; }
.cta-big .btn { animation: pulse-glow 2.4s ease-in-out infinite; }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(52,245,176,.35), 0 8px 28px rgba(16,185,129,.35), 0 0 30px rgba(34,211,238,.25); } 50% { box-shadow: 0 0 0 1px rgba(52,245,176,.6), 0 10px 36px rgba(16,185,129,.55), 0 0 64px rgba(34,211,238,.55); } }

/* ---------------- Formulir ---------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow), 0 0 50px rgba(52,245,176,.18); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #f8fdfa; border: 1.5px solid var(--line); border-radius: 12px;
    padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(52,245,176,.25), 0 0 20px rgba(34,211,238,.25); }
.field input[readonly] { background: #ecfdf5; color: var(--emerald-dd); font-weight: 800; letter-spacing: .06em; border-style: dashed; border-color: var(--emerald); cursor: default; font-family: var(--font-head); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.input-with-btn { display: flex; gap: .5rem; }
.input-with-btn input { flex: 1; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .95rem 1.2rem; border-radius: 14px; margin-bottom: 1.2rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.alert-info { background: #ecfeff; color: #155e75; border-color: #a5f3fc; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert ul { margin: .4rem 0 0; }

.success-box { text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 24px; background: linear-gradient(160deg, #ecfdf5, #ecfeff); border: 1px solid #a7f3d0; box-shadow: 0 0 50px rgba(52,245,176,.35); }
.success-box .tick { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #032a21; background: linear-gradient(135deg, var(--neon), var(--cyan)); box-shadow: 0 0 36px rgba(52,245,176,.8); }
.reg-code { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 4.5vw, 1.9rem); letter-spacing: .06em; padding: .7rem 1.4rem; margin: .6rem 0 1rem; border-radius: 14px; background: #fff; border: 2px dashed var(--emerald); color: var(--emerald-dd); word-break: break-all; }

/* ---------------- Hasil cek status ---------------- */
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 4vw, 2rem); box-shadow: var(--shadow); margin-bottom: 1.3rem; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.result-head .reg { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--emerald-dd); }
.status-big { padding: .5rem 1.2rem; font-size: .95rem; }
.data-list { display: grid; grid-template-columns: 200px 1fr; gap: .1rem 1rem; margin: 0; }
.data-list dt { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.data-list dd { margin: 0; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
@media (max-width: 560px) { .data-list { grid-template-columns: 1fr; } .data-list dt { border: 0; padding-bottom: 0; } }
.status-note { margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: 14px; font-size: .96rem; }
.status-note.ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.status-note.wait { background: #fffbeb; border: 1px solid #fde68a; }
.status-note.no { background: #fff1f2; border: 1px solid #fecdd3; }

/* ---------------- Footer ---------------- */
.site-footer { background: linear-gradient(170deg, #052e26, #03201a); color: #b6e7d4; margin-top: 3rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent); box-shadow: 0 0 18px var(--neon); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 2.4rem; padding: 3.2rem 0 2.2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #b6f5dc; }
.site-footer a:hover { color: var(--neon); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #8fd8bd; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(52,245,176,.18); padding: 1.1rem 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   ADMIN
   ===================================================================== */
.login-wrap { min-height: calc(100dvh - var(--header-h) - 120px); display: grid; place-items: center; padding: 2.5rem 0; }
.login-card { width: min(440px, 100%); }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; padding: 1.6rem 0 3rem; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 14px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .9rem; box-shadow: var(--shadow); }
.admin-side h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .4rem .8rem; margin: 0; }
.admin-side a, .admin-side button.link { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .65rem .8rem; border-radius: 12px; color: var(--ink-soft); font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.admin-side a:hover, .admin-side button.link:hover { background: var(--bg-soft); }
.admin-side a.active { background: linear-gradient(120deg, rgba(52,245,176,.3), rgba(34,211,238,.25)); color: var(--emerald-dd); box-shadow: inset 0 0 0 1px rgba(16,185,129,.4); }
.admin-main { min-width: 0; }
.admin-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.admin-title h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.1rem, 3vw, 1.7rem); box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.stat-card b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; background: linear-gradient(100deg, var(--emerald-d), var(--cyan-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: .88rem; font-weight: 600; }
@media (max-width: 960px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem; } .admin-side h2 { grid-column: 1 / -1; } .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .admin-side { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.table th { background: var(--bg-soft); text-align: left; padding: .75rem .9rem; font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #f8fdfa; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.inline-form { display: inline; }
.status-form { display: grid; gap: .4rem; min-width: 220px; }
.status-form select, .status-form input { width: 100%; font: inherit; padding: .45rem .6rem; border-radius: 10px; border: 1.5px solid var(--line); background: #f8fdfa; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; align-items: center; }
.toolbar input, .toolbar select { font: inherit; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.preview-img { max-width: 160px; border-radius: 12px; margin-top: .6rem; border: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
