:root {
    --biru: #1e3a8a;
    --biru-mid: #2563eb;
    --biru-light: #eff6ff;
    --merah: #dc2626;
    --merah-dark: #b91c1c;
    --hijau: #16a34a;
    --kuning: #facc15;
    --kuning-dark: #ca8a04;
    --orange: #ea580c;
    --text: #1f2937;
    --muted: #64748b;
    --white: #fff;
    --font: 'Poppins', system-ui, sans-serif;
    --pad: clamp(16px, 4vw, 40px);
    --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: #f1f5f9;
    line-height: 1.5;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.inner { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* HEADER */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--biru);
    padding: 12px 0;
}
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(12px, 3vw, 24px);
    align-items: center;
}
.logo-kota, .logo-kemendikbud {
    width: clamp(56px, 12vw, 88px);
    height: clamp(56px, 12vw, 88px);
    object-fit: contain;
}
.header-center { text-align: center; }
.header-center h1 {
    font-size: clamp(.75rem, 2.8vw, 1.15rem);
    font-weight: 800;
    color: var(--biru);
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.25;
}
.header-center p {
    font-size: clamp(.58rem, 2vw, .75rem);
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}
/* HERO */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f2744 0%, var(--biru) 50%, var(--biru-mid) 100%);
    overflow: hidden;
    min-height: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: .45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,39,68,.92) 0%, rgba(30,58,138,.75) 45%, rgba(30,58,138,.35) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(280px, 1.35fr) minmax(180px, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 48px);
    padding: clamp(8px, 1.5vw, 16px) clamp(16px, 4vw, 56px) clamp(8px, 1.2vw, 14px);
    min-height: 0;
    width: 100%;
    max-width: 100%;
}
.hero-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    justify-self: start;
    align-self: center;
    padding-top: 0;
    margin-top: clamp(-8px, -1vw, 0px);
    width: 100%;
}
.hero-center {
    text-align: center;
    justify-self: center;
    align-self: center;
    padding-bottom: 0;
}
.hero-spmb {
    font-size: clamp(3rem, 14vw, 7rem);
    font-weight: 900;
    color: var(--white);
    line-height: .85;
    letter-spacing: -4px;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-spmb .accent { color: var(--kuning); }
.hero-sub {
    font-size: clamp(.55rem, 2.2vw, .85rem);
    color: rgba(255,255,255,.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.hero-year {
    font-size: clamp(.6rem, 2vw, .8rem);
    color: var(--kuning);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: clamp(.62rem, 2.2vw, .78rem);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .3px;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 2px solid transparent;
}
.hero-btn:hover {
    transform: translateY(-2px);
}
.hero-btn-tutorial {
    background: linear-gradient(135deg, #06D6A0, #118AB2);
    color: #fff;
    box-shadow: 0 8px 22px rgba(6, 214, 160, .35);
}
.hero-btn-rundown {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
}
.hero-btn-rundown:hover {
    background: rgba(255, 255, 255, .22);
}
.hero-siswa {
    height: clamp(200px, 38vw, 360px);
    width: auto;
    max-width: clamp(200px, 38vw, 340px);
    object-fit: contain;
    object-position: top left;
    margin-top: 0;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .22));
}
.hero-slides {
    width: clamp(180px, 22vw, 340px);
    justify-self: end;
    align-self: center;
    margin-right: 0;
}
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity .7s ease;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}
.hero-slide-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transition: background .3s ease, transform .3s ease;
}
.hero-slide-dots .dot.active {
    background: var(--kuning);
    transform: scale(1.15);
}

/* SECTION HEADING — pengganti stripe hazard, selaras tema biru-emas */
.section-heading {
    text-align: center;
    padding: clamp(14px, 3vw, 20px) var(--pad);
    position: relative;
}
.section-heading-accent {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kuning), #fde68a);
    margin: 0 auto 10px;
    box-shadow: 0 0 12px rgba(250, 204, 21, .45);
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(.82rem, 3.2vw, 1.12rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: clamp(1px, .4vw, 2px);
    line-height: 1.35;
}
.section-heading-jalur {
    background: linear-gradient(135deg, var(--biru) 0%, #1d4ed8 50%, var(--biru-mid) 100%);
    box-shadow: 0 10px 28px rgba(30, 58, 138, .18);
}
.section-heading-jalur::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, transparent 40%);
    pointer-events: none;
}
.section-heading-jalur h2 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.section-heading-timeline {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: clamp(14px, 3vw, 20px);
    padding-top: clamp(18px, 4vw, 26px);
}
.section-heading-timeline h2 {
    color: #fff;
}

/* SECTION */
.section { padding: clamp(24px, 5vw, 40px) 0; background: var(--white); }
.section-jalur {
    padding-top: clamp(20px, 3.5vw, 30px);
    margin-top: 0;
    background: linear-gradient(180deg, #f1f5f9 0%, var(--white) 100px);
    border-top: 1px solid rgba(30, 58, 138, .06);
}
.section.alt { background: var(--biru-light); }
.section-title {
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 800;
    color: var(--biru);
    text-transform: uppercase;
    margin-bottom: 20px;
    border-left: 5px solid var(--merah);
    padding-left: 14px;
}

/* JALUR */
.jalur-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 16px);
}
.jalur-card {
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    border: 2px solid;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.jalur-card.domisili { border-color: #bfdbfe; background: #eff6ff; }
.jalur-card.afirmasi { border-color: #bbf7d0; background: #f0fdf4; }
.jalur-card.mutasi { border-color: #fde68a; background: #fefce8; }
.jalur-card.prestasi { border-color: #fed7aa; background: #fff7ed; }
.jalur-card img {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    object-fit: contain;
    margin: 0 auto 10px;
}
.jalur-name {
    font-size: clamp(.68rem, 2.5vw, .82rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.jalur-desc { font-size: clamp(.58rem, 2vw, .68rem); color: var(--muted); margin-bottom: 12px; min-height: 2.5em; }
.jalur-quota { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.quota-box {
    border-radius: 8px;
    padding: 6px 4px;
    color: var(--white);
    font-weight: 800;
}
.quota-box.sd { background: var(--merah); }
.quota-box.smp { background: var(--biru); }
.quota-box .lbl { font-size: .45rem; font-weight: 600; opacity: .9; text-transform: uppercase; }
.quota-box .pct { font-size: clamp(.85rem, 3vw, 1rem); line-height: 1; }

/* SYARAT */
.syarat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 20px); }
.syarat-card { border-radius: 14px; overflow: hidden; border: 2px solid; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.syarat-card.sd { border-color: #fca5a5; }
.syarat-card.smp { border-color: #bfdbfe; }
.syarat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--white);
}
.syarat-head.sd { background: linear-gradient(135deg, var(--merah), var(--merah-dark)); }
.syarat-head.smp { background: linear-gradient(135deg, var(--biru), var(--biru-mid)); }
.syarat-age {
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
}
.syarat-head h3 { font-size: clamp(.65rem, 2.2vw, .78rem); font-weight: 700; }
.syarat-head small { font-size: .55rem; opacity: .85; display: block; }
.syarat-body { padding: 14px 16px; background: var(--white); }
.syarat-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: clamp(.65rem, 2.3vw, .75rem);
    align-items: flex-start;
}
.syarat-item:last-child { margin-bottom: 0; }
.syarat-item img { width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; }

/* TIMELINE */
.timeline-wrap {
    background: linear-gradient(165deg, #0f2744, var(--biru));
    padding: 0 0 clamp(24px, 5vw, 36px);
}
.tl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 14px);
    padding: 0 var(--pad);
    max-width: var(--max);
    margin: 0 auto;
}
.tl-phase {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    background: var(--white);
}
.tl-head { padding: 10px 12px; text-align: center; color: var(--white); }
.tl-head.sos { background: #475569; }
.tl-head.g1 { background: var(--merah); }
.tl-head.g2 { background: var(--hijau); }
.tl-head.akhir { background: var(--kuning-dark); }
.tl-head .lbl { font-size: .55rem; text-transform: uppercase; opacity: .9; }
.tl-head .name { font-size: clamp(.62rem, 2.2vw, .75rem); font-weight: 800; }
.tl-body { padding: 10px 12px; }
.tl-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}
.tl-row:last-child { margin-bottom: 0; }
.tl-row img { width: 22px; height: 22px; flex-shrink: 0; }
.tl-date { font-size: clamp(.62rem, 2.2vw, .72rem); font-weight: 700; color: var(--biru); }
.tl-act { font-size: clamp(.55rem, 2vw, .65rem); color: var(--muted); }

.stop-bar {
    max-width: var(--max);
    margin: 16px auto 0;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - var(--pad) * 2);
}
.stop-bar img { width: 56px; height: 56px; object-fit: contain; }
.stop-bar p { color: var(--white); font-size: clamp(.72rem, 2.5vw, .85rem); font-weight: 700; }
.stop-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stop-pills span {
    font-size: .58rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 999px;
}

/* PROGRAM */
.program-box {
    background: linear-gradient(135deg, #0f2744, var(--biru));
    padding: clamp(24px, 5vw, 36px) 0;
    color: var(--white);
}
.program-box h2 {
    font-size: clamp(.9rem, 3.5vw, 1.1rem);
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.program-list { display: flex; flex-direction: column; gap: 10px; }
.program-list li {
    list-style: none;
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: clamp(.68rem, 2.4vw, .78rem);
}
.program-list .num {
    width: 26px;
    height: 26px;
    background: var(--merah);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .75rem;
    flex-shrink: 0;
}
.program-list strong { color: var(--kuning); }

/* RUNDOWN + COUNTDOWN + JALUR HEADER */
.rundown-block {
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 42%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}
.rundown-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, .14), transparent 70%),
        radial-gradient(ellipse 40% 30% at 100% 100%, rgba(250, 204, 21, .08), transparent 60%);
    pointer-events: none;
}
.rundown-block > * { position: relative; z-index: 1; }

.countdown {
    background: transparent;
    padding: clamp(20px, 4vw, 28px) 0 clamp(16px, 3vw, 22px);
    text-align: center;
}
.countdown-panel {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(30, 58, 138, .1);
    border-radius: 20px;
    padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 24px);
    box-shadow:
        0 16px 40px rgba(30, 58, 138, .1),
        0 2px 8px rgba(30, 58, 138, .05);
    position: relative;
    overflow: hidden;
}
.countdown-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--biru), var(--biru-mid), var(--kuning));
}
.countdown-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.countdown-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(30, 58, 138, .1), rgba(37, 99, 235, .12));
    border: 1px solid rgba(30, 58, 138, .14);
    color: var(--biru);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.countdown h3 {
    font-size: clamp(.72rem, 2.5vw, .82rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin: 0;
}
.countdown .target {
    font-size: clamp(.74rem, 2.5vw, .9rem);
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.55;
    padding: 0 4px;
}
.countdown .target strong { color: var(--biru); }

.cd-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--biru), var(--biru-mid));
    border-radius: 14px;
    padding: 14px 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 8px 22px rgba(30, 58, 138, .2);
}
.cd-item {
    position: relative;
    padding: 4px 2px;
}
.cd-item + .cd-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, .18);
}
.cd-item .num {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.cd-item .unit {
    font-size: .55rem;
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.rundown-daftar {
    text-align: center;
    padding: 0 var(--pad) clamp(14px, 3vw, 20px);
    max-width: 620px;
    margin: -4px auto 0;
}
.rundown-daftar-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 12px;
}
.rundown-daftar-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, .22), transparent);
    border-radius: 2px;
}
.rundown-daftar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biru-mid), var(--biru));
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    flex-shrink: 0;
}
.rundown-daftar-box {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(30, 58, 138, .1);
    border-radius: 18px;
    padding: clamp(16px, 3.5vw, 22px) clamp(14px, 3vw, 20px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, .08);
}
.rundown-daftar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.btn-daftar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    padding: 15px 36px;
    border-radius: 999px;
    font-size: clamp(.9rem, 3vw, 1.08rem);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .7px;
    border: 2px solid rgba(255, 255, 255, .55);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.btn-daftar svg {
    flex-shrink: 0;
    opacity: .9;
}
.btn-daftar:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Tombol Buat Akun — emas (CTA utama) */
.btn-akun {
    background: linear-gradient(135deg, #fde047 0%, var(--kuning) 45%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow:
        0 10px 28px rgba(245, 158, 11, .38),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-akun:hover {
    color: #1a1a1a;
    box-shadow:
        0 16px 36px rgba(245, 158, 11, .48),
        inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* Tombol Login — biru/teal (aksi sekunder) */
.btn-login {
    background: linear-gradient(135deg, #22d3ee 0%, #2563eb 55%, #1e3a8a 100%);
    color: #fff;
    box-shadow:
        0 10px 28px rgba(37, 99, 235, .38),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-login:hover {
    color: #fff;
    box-shadow:
        0 16px 36px rgba(37, 99, 235, .5),
        inset 0 1px 0 rgba(255, 255, 255, .3);
}

.rundown-daftar.is-live .btn-akun {
    animation: cd-pulse 2s ease-in-out infinite;
}
.rundown-daftar .cd-daftar-hint {
    margin: 12px 0 0;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(239, 246, 255, .9);
    border: 1px solid rgba(30, 58, 138, .08);
    font-size: clamp(.72rem, 2.4vw, .82rem);
    color: var(--biru);
    font-weight: 600;
    line-height: 1.5;
}
@keyframes cd-pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(245, 158, 11, .4); }
    50% { box-shadow: 0 10px 36px rgba(245, 158, 11, .65); }
}

/* LIVE + FOOTER */
.live-bar {
    background: var(--merah);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: clamp(.75rem, 2.8vw, .9rem);
}
.site-footer {
    background: var(--biru);
    padding: 20px 0;
    color: var(--white);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-sosmed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-sosmed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
}
.footer-sosmed a img { width: 22px; height: 22px; }
.footer-handle { font-size: .72rem; font-weight: 600; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-badges img { height: 44px; width: auto; object-fit: contain; }
.copyright {
    text-align: center;
    font-size: .62rem;
    color: var(--muted);
    padding: 12px;
    background: var(--white);
}

/* RESPONSIVE */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 32% 36% 32%;
        padding-top: clamp(6px, 1vw, 12px);
        padding-bottom: clamp(6px, 1vw, 12px);
        padding-left: clamp(28px, 5vw, 88px);
        padding-right: clamp(28px, 5vw, 88px);
        column-gap: clamp(28px, 6vw, 80px);
    }
    .hero-left {
        justify-self: start;
        align-self: start;
        padding-left: 0;
        padding-top: 0;
        margin-top: 0;
    }
    .hero-siswa {
        margin-left: clamp(-16px, -1.5vw, 0px);
    }
    .hero-slides {
        justify-self: end;
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .jalur-grid { grid-template-columns: repeat(2, 1fr); }
    .tl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .header-grid { grid-template-columns: auto 1fr auto; }
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }
    .hero-left { justify-content: center; }
    .hero-center { order: -1; }
    .hero-siswa {
        height: clamp(210px, 50vw, 320px);
        max-width: min(90vw, 360px);
        object-position: bottom center;
    }
    .hero-slides {
        width: min(100%, 320px);
        margin: 0 auto;
        justify-self: center;
    }
    .syarat-grid { grid-template-columns: 1fr; }
    .jalur-grid { grid-template-columns: 1fr; }
    .tl-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1281px) {
    .inner, .tl-grid, .stop-bar { padding-left: calc((100vw - var(--max)) / 2 + var(--pad)); padding-right: calc((100vw - var(--max)) / 2 + var(--pad)); }
    .tl-grid { padding-left: calc((100vw - var(--max)) / 2 + var(--pad)); padding-right: calc((100vw - var(--max)) / 2 + var(--pad)); }
}

#devblock {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--biru);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
#devblock.show { display: flex; }
#devblock .devblock-msg {
    color: var(--white);
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    line-height: 1.75;
    max-width: 560px;
    letter-spacing: 0.01em;
}

.copyright-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, .45);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.copyright-popup.show { display: flex; }
.copyright-popup-box {
    background: var(--white);
    border: 3px solid var(--biru);
    border-radius: 12px;
    padding: 1.4rem 1.8rem;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    animation: popup-in .25s ease;
}
.copyright-popup-box p {
    font-size: clamp(.85rem, 2.5vw, 1rem);
    font-weight: 700;
    color: var(--biru);
    line-height: 1.65;
}
@keyframes popup-in {
    from { opacity: 0; transform: scale(.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.spmb-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99990;
    max-width: min(360px, calc(100vw - 32px));
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: var(--white);
    border-radius: 14px;
    padding: 16px 40px 16px 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
    border: 2px solid var(--kuning);
    transform: translateY(120%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}
.spmb-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.spmb-toast p {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.55;
}
.spmb-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
