:root {
    --p-blue: #2f6bff;
    --p-purple: #7a4dff;
    --p-teal: #0ea5b7;
    --p-orange: #ff8a00;
    --p-yellow: #ffb020;
    --p-ink: #17233a;
    --p-muted: #4d5e7a;
    --p-glass: rgba(255, 255, 255, 0.72);
    --p-line: rgba(255, 255, 255, 0.85);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.ptop {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(36, 80, 216, 0.1);
    font-family: Poppins, Inter, sans-serif;
}
.ptop-inner {
    width: min(1180px, calc(100% - 1.4rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 68px;
}
.ptop-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--p-ink); margin-right: auto; }
.ptop-brand strong { display: block; font-family: Nunito, Poppins, sans-serif; font-size: 1.08rem; line-height: 1.1; }
.ptop-brand small { color: var(--p-muted); font-size: 0.78rem; }
.ptop-logo {
    width: 42px; height: 42px; border-radius: 14px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--p-blue), var(--p-purple) 55%, var(--p-teal));
    box-shadow: 0 8px 18px rgba(122, 77, 255, 0.3);
}
.ptop-nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.ptop-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    color: var(--p-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.ptop-link:hover, .ptop-link:focus-visible { background: rgba(47, 107, 255, 0.1); color: var(--p-blue); }
.ptop-menu { position: relative; }
.ptop-menu > summary { list-style: none; }
.ptop-menu > summary::-webkit-details-marker { display: none; }
.ptop-menu > summary::after { content: "▾"; font-size: 0.75rem; opacity: 0.7; }
.ptop-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 290px;
    padding: 0.45rem;
    display: grid;
    gap: 0.15rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 44px rgba(30, 20, 80, 0.18);
    animation: pdrop 0.18s ease;
}
@keyframes pdrop { from { opacity: 0; transform: translateY(-6px); } }
.ptop-drop .ptop-link { font-weight: 500; }
.ptop-drop .ptop-drop-main { font-weight: 800; color: var(--p-blue); }
.ptop-drop .is-locked { color: #8a93a6; }
.ptop-toggle {
    display: none;
    border: 0; border-radius: 12px;
    padding: 0.55rem 0.8rem;
    background: rgba(47, 107, 255, 0.1);
    color: var(--p-blue);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Kad modul */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.mod-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    background: var(--p-glass);
    border: 1px solid var(--p-line);
    box-shadow: 0 18px 44px rgba(70, 40, 160, 0.12);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mod-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(70, 40, 160, 0.2); }
.mod-head { padding: 1.4rem 1.4rem 1.2rem; color: #fff; position: relative; }
.mod-head::after {
    content: "";
    position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}
.mod-emoji { font-size: 2.6rem; line-height: 1; display: block; }
.mod-head h3 { margin: 0.5rem 0 0.25rem; font-family: Nunito, Poppins, sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; color: #fff; }
.mod-head p { margin: 0; max-width: 30rem; color: rgba(255, 255, 255, 0.92); }
.mod-body { padding: 1.1rem 1.4rem 1.4rem; display: grid; gap: 0.9rem; flex: 1; align-content: start; }
.mod-body h4 { margin: 0 0 0.35rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6d5bd0; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.mod-list li { display: flex; gap: 0.45rem; align-items: baseline; }
.mod-list li.is-locked { color: #8a93a6; }
.mod-go { margin-top: auto; justify-self: start; }

/* Bar kemajuan */
.pbar { height: 12px; border-radius: 999px; background: rgba(36, 80, 216, 0.1); overflow: hidden; }
.pbar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--p-yellow), var(--p-purple), var(--p-teal)); transition: width 0.8s ease; }
.pbar-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--p-muted); margin-top: 0.3rem; }

/* Butang */
.pbtn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border: 0; border-radius: 999px;
    text-decoration: none;
    font: inherit; font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--p-blue), var(--p-purple));
    box-shadow: 0 10px 24px rgba(36, 80, 216, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pbtn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36, 80, 216, 0.3); }
.pbtn.ghost { background: rgba(255, 255, 255, 0.8); color: var(--p-blue); border: 1px solid rgba(36, 80, 216, 0.16); box-shadow: none; }

.feat-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.feat-row li {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(80, 60, 160, 0.08);
    font-weight: 600;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .ptop-toggle { display: inline-flex; }
    .ptop-inner { flex-wrap: wrap; }
    .ptop-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
    .ptop-nav.is-open { display: flex; }
    .ptop-drop { position: static; box-shadow: none; background: rgba(47, 107, 255, 0.05); min-width: 0; }
}
@media (max-width: 760px) {
    .mod-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .mod-card, .pbtn, .pbar > span, .ptop-drop { transition: none; animation: none; }
    .mod-card:hover, .pbtn:hover { transform: none; }
}
