/* ==========================================================================
   SANLAT — halaman sistem publik (formulir, selesai, Data Saya, tutup)
   Warna utama diisi dari pengaturan lewat variabel --p* pada <html>.
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../vendor/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../vendor/fonts/plus-jakarta-sans-latin-ext-wght.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --p: #0f766e;
    --p-600: #0d6861;
    --p-700: #0b554f;
    --p-rgb: 15, 118, 110;
    --p-soft: #e7f1f1;
    --emas: #d97706;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e5e8ee;
    --text: #0f172a;
    --muted: #64748b;
    --danger: #dc2626;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);

    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--p);
    --bs-link-hover-color: var(--p-700);
    --bs-link-color-rgb: var(--p-rgb);
    --bs-primary-rgb: var(--p-rgb);
}

body.publik {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(var(--p-rgb), .10), transparent 60%),
        radial-gradient(700px 380px at -10% 0%, rgba(217, 119, 6, .07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, .h1, .h2, .h3, .h4, .h5 {
    font-weight: 800;
    letter-spacing: -.02em;
}

.p-muted { color: var(--muted) !important; }

/* ---------- Header ---------- */
.p-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.p-header-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.p-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px;
}

.p-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--p), var(--p-700));
}

.p-brand {
    font-weight: 800;
    line-height: 1.15;
    font-size: .98rem;
}

.p-brand-sub {
    font-size: .74rem;
    color: var(--muted);
}

/* ---------- Wadah ---------- */
.p-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.25rem 1rem 6rem;
}

@media (min-width: 768px) {
    .p-wrap { padding-top: 2rem; }
}

.p-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.p-card-body { padding: 1.25rem; }

@media (min-width: 768px) {
    .p-card-body { padding: 1.75rem; }
}

/* ---------- Hero kegiatan ---------- */
.p-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .2), transparent 45%),
        linear-gradient(135deg, var(--p) 0%, var(--p-700) 100%);
    box-shadow: 0 20px 40px -22px rgba(var(--p-rgb), .9);
}

.p-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M36 4l9 23 23 9-23 9-9 23-9-23-23-9 23-9z'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: linear-gradient(to left, #000, transparent 80%);
    -webkit-mask-image: linear-gradient(to left, #000, transparent 80%);
    pointer-events: none;
}

.p-hero > * { position: relative; z-index: 1; }

.p-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.p-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
}

/* ---------- Stepper ---------- */
.p-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin: 1.25rem 0 1rem;
}

.p-step {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
}

.p-step-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.p-step-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--p), var(--p-600));
    transition: width .35s ease;
}

.p-step.selesai .p-step-bar::after,
.p-step.aktif .p-step-bar::after {
    width: 100%;
}

.p-step.aktif { color: var(--text); }
.p-step.selesai { color: var(--p); }

.p-step .p-step-label {
    display: none;
}

@media (min-width: 576px) {
    .p-step .p-step-label { display: inline; }
}

.p-step-num {
    font-variant-numeric: tabular-nums;
}

.p-panel { display: none; }
.p-panel.aktif { display: block; animation: p-muncul .3s ease-out; }
.no-js .p-panel { display: block; }

@keyframes p-muncul {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.p-panel-title {
    font-size: 1.15rem;
    margin-bottom: .2rem;
}

.p-panel-sub {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

/* ---------- Form ---------- */
.form-label {
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: .4rem;
}

.form-label .opsional {
    font-weight: 500;
    color: var(--muted);
}

.form-control,
.form-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem .95rem;
    font-size: 1rem;
    background-color: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}

.form-select {
    padding-right: 2.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--p-rgb), .7);
    box-shadow: 0 0 0 4px rgba(var(--p-rgb), .14);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger);
    background-image: none;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--surface-2);
    opacity: .75;
}

.form-text {
    font-size: .8rem;
    color: var(--muted);
}

.p-error {
    display: none;
    font-size: .8rem;
    color: var(--danger);
    margin-top: .35rem;
    font-weight: 600;
}

.p-error.tampil,
.is-invalid ~ .p-error,
.was-validated :invalid ~ .p-error {
    display: block;
}

/* Kartu pilihan (radio) */
.p-pilih {
    position: relative;
}

.p-pilih input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.p-pilih label {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    height: 100%;
}

.p-pilih label:hover {
    border-color: rgba(var(--p-rgb), .45);
}

.p-pilih .p-pilih-ikon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    background: var(--surface-2);
    color: var(--muted);
    transition: inherit;
}

.p-pilih input:checked + label {
    border-color: var(--p);
    background: var(--p-soft);
    box-shadow: 0 0 0 3px rgba(var(--p-rgb), .12);
}

.p-pilih input:checked + label .p-pilih-ikon {
    background: var(--p);
    color: #fff;
}

.p-pilih input:focus-visible + label {
    box-shadow: 0 0 0 4px rgba(var(--p-rgb), .25);
}

/* Chip pilihan sumber info */
.p-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.p-chip-pilih input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.p-chip-pilih label {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.p-chip-pilih input:checked + label {
    border-color: var(--p);
    background: var(--p);
    color: #fff;
}

.p-chip-pilih input:focus-visible + label {
    box-shadow: 0 0 0 4px rgba(var(--p-rgb), .25);
}

/* Pratinjau nomor WA */
.p-wa-pratinjau {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .4rem;
    font-size: .8rem;
    color: var(--muted);
}

.p-wa-pratinjau.ok { color: #15803d; }
.p-wa-pratinjau.salah { color: var(--danger); }

/* ---------- Pas foto ---------- */
.p-foto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .p-foto-grid { grid-template-columns: 1.15fr 1fr; }
}

.p-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    min-height: 260px;
    padding: 1.25rem;
    border: 2px dashed rgba(var(--p-rgb), .35);
    border-radius: var(--radius);
    background: rgba(var(--p-rgb), .03);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.p-drop:hover,
.p-drop.seret {
    border-color: var(--p);
    background: rgba(var(--p-rgb), .07);
}

.p-drop.is-invalid {
    border-color: var(--danger);
    background: rgba(220, 38, 38, .04);
}

.p-drop-ikon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--p);
    background: var(--p-soft);
}

.p-drop input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.p-foto-hasil {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.p-foto-hasil.tampil { display: flex; }

.p-foto-hasil img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.p-contoh {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: 1rem;
}

.p-contoh-gambar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.p-contoh-gambar figure {
    margin: 0;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
}

.p-contoh-gambar figure > div {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: .35rem;
}

.p-contoh-gambar img,
.p-contoh-gambar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-contoh-tanda {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .75rem;
}

.p-contoh-tanda.benar { background: #16a34a; }
.p-contoh-tanda.salah { background: var(--danger); }

/* Modal crop */
.p-crop-area {
    height: min(62vh, 520px);
    background: #0b1120;
    border-radius: 12px;
    overflow: hidden;
}

.p-crop-area img {
    display: block;
    max-width: 100%;
}

.cropper-view-box,
.cropper-face {
    border-radius: 6px;
}

.cropper-view-box {
    outline: 2px solid #fff;
    outline-color: rgba(255, 255, 255, .9);
}

.modal-content {
    border: 0;
    border-radius: var(--radius);
}

/* ---------- Tombol ---------- */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: 12px;
    --bs-btn-padding-y: .7rem;
    --bs-btn-padding-x: 1.2rem;
    transition: transform .08s ease, box-shadow .15s, background-color .15s, border-color .15s;
}

.btn:active { transform: translateY(1px); }

.btn-p {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--p);
    --bs-btn-border-color: var(--p);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--p-600);
    --bs-btn-hover-border-color: var(--p-600);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--p-700);
    --bs-btn-active-border-color: var(--p-700);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--p);
    --bs-btn-disabled-border-color: var(--p);
    box-shadow: 0 10px 20px -10px rgba(var(--p-rgb), .8);
}

.btn-lembut {
    --bs-btn-color: var(--text);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: var(--surface-2);
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-active-bg: var(--surface-2);
    --bs-btn-active-border-color: #cbd5e1;
}

.btn-wa {
    --bs-btn-color: #fff;
    --bs-btn-bg: #16a34a;
    --bs-btn-border-color: #16a34a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #15803d;
    --bs-btn-hover-border-color: #15803d;
}

/* Bar navigasi langkah (menempel di bawah di HP) */
.p-nav {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .p-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        margin: 0;
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
    }

    .p-nav .btn { flex: 1; }
}

/* ---------- Ringkasan error ---------- */
.p-alert {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    border: 1px solid;
}

.p-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.p-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.p-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ---------- Halaman selesai ---------- */
.p-sukses-ikon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, .15), 0 18px 30px -12px rgba(21, 128, 61, .7);
    animation: p-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}

.p-sukses-ikon.tunggu {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, .15), 0 18px 30px -12px rgba(217, 119, 6, .7);
}

@keyframes p-pop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.p-tiket {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--p) 0%, var(--p-700) 100%);
    color: #fff;
    padding: 1.4rem 1.5rem;
    overflow: hidden;
}

.p-tiket::before,
.p-tiket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--bg);
}

.p-tiket::before { left: -11px; }
.p-tiket::after { right: -11px; }

.p-kode {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: clamp(2rem, 9vw, 2.8rem);
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
}

.p-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .18);
}

.p-info-bayar {
    line-height: 1.7;
}

.p-info-bayar p:last-child { margin-bottom: 0; }
.p-info-bayar .ql-align-center { text-align: center; }
.p-info-bayar .ql-align-right { text-align: right; }

.p-langkah {
    counter-reset: langkah;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-langkah li {
    counter-increment: langkah;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: .9rem;
    font-size: .92rem;
}

.p-langkah li::before {
    content: counter(langkah);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 800;
    color: var(--p);
    background: var(--p-soft);
}

/* ---------- Halaman tutup ---------- */
.p-ilustrasi {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    color: var(--p);
    background: var(--p-soft);
}

.p-footer {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    padding: 2rem 1rem;
}

.visually-hidden-focusable:focus {
    position: fixed !important;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    background: var(--surface);
    padding: .5rem 1rem;
    border-radius: 8px;
}

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

.min-w-0 { min-width: 0; }

/* Di HP bilah navigasi menempel di bawah: sisakan ruang agar field yang difokus tidak tertutup. */
@media (max-width: 575.98px) {
    html {
        scroll-padding-bottom: 110px;
        scroll-padding-top: 80px;
    }
}

/* ---------- Data Saya ---------- */
.p-input-kode {
    font-family: ui-monospace, Consolas, monospace;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
}

.p-input-empat {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .6em;
    text-align: center;
    padding-left: 1.6em;
}

.js .p-empat {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
}

.js .p-empat.tampil {
    max-height: 200px;
    opacity: 1;
}

.p-foto-profil {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    background: var(--surface-2);
}

.p-data {
    margin: 0;
    border-top: 1px solid var(--border);
}

.p-data-baris {
    display: grid;
    grid-template-columns: 1fr;
    gap: .1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 576px) {
    .p-data-baris { grid-template-columns: 11rem 1fr; gap: 1rem; }
}

.p-data-baris dt {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}

.p-data-baris dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.p-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
    position: relative;
}

.p-timeline::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .4rem;
    bottom: .4rem;
    width: 2px;
    background: var(--border);
}

.p-timeline li {
    position: relative;
    padding-bottom: 1rem;
}

.p-timeline li:last-child { padding-bottom: 0; }

.p-timeline li::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: .3rem;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid #cbd5e1;
}

.p-timeline li.kini::before {
    border-color: var(--p);
    background: var(--p);
    box-shadow: 0 0 0 4px rgba(var(--p-rgb), .18);
}

.p-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* ---------- Coming Soon (tanpa tema aktif) ---------- */
.cs-body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(150deg, var(--p-700), var(--p) 55%, var(--p-600));
    overflow-x: hidden;
}

.cs-latar { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.cs-pola { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2756%27 height=%2756%27 viewBox=%270 0 56 56%27%3E%3Cpath d=%27M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z%27 fill=%27none%27 stroke=%27%23fff%27 stroke-opacity=%27.09%27 stroke-width=%271%27/%3E%3C/svg%3E"); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%); }
.cs-bulatan { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); animation: cs-apung 14s ease-in-out infinite; }
.cs-b1 { width: 420px; height: 420px; right: -120px; top: -100px; }
.cs-b2 { width: 280px; height: 280px; left: -80px; bottom: 8%; animation-delay: -5s; background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, .28), rgba(251, 191, 36, 0) 70%); }
.cs-b3 { width: 160px; height: 160px; right: 18%; bottom: -40px; animation-delay: -9s; }

@keyframes cs-apung { 50% { transform: translateY(-24px) scale(1.04); } }

.cs-isi {
    position: relative;
    flex: 1;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 3.5rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: cs-muncul .8s ease-out both;
}

@keyframes cs-muncul { from { opacity: 0; transform: translateY(16px); } }

.cs-merek { display: flex; align-items: center; gap: .75rem; font-weight: 700; margin-bottom: 2.25rem; }
.cs-merek img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.cs-merek-ikon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 1.5rem; }

.cs-label { display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(6px); }
.cs-judul { margin: 1rem 0 .75rem; font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cs-pesan { max-width: 560px; font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.cs-pesan a { color: #fff; }
.cs-pesan p:last-child { margin-bottom: 0; }

.cs-hitung { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; width: min(100%, 460px); margin-top: 2.25rem; }
.cs-kotak { padding: 1rem .25rem; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.cs-angka { display: block; font-size: clamp(1.5rem, 6vw, 2.3rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cs-satuan { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }

.cs-aksi { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }
.cs-btn-kaca { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.cs-btn-kaca:hover, .cs-btn-kaca:focus-visible { color: var(--p-700); background: #fff; }
.cs-kaki { position: relative; padding: 1.25rem; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .7); }

@media (prefers-reduced-motion: reduce) {
    .cs-bulatan, .cs-isi { animation: none; }
}

/* ---------- 404 ---------- */
.p-404-angka {
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--p), var(--emas));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
