:root {
    --g: #16a34a;
    --gd: #15803d;
    --bg: #f6f8fa;
    --tx: #111827;
    --mu: #6b7280;
    --bd: #e5e7eb;
    --red: #dc2626;
    --amb: #d97706
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--tx);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

a {
    color: var(--g)
}

.nav {
    background: #fff;
    border-bottom: 1px solid var(--bd);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5vw
}

.brand {
    font-weight: 700;
    color: var(--g);
    text-decoration: none;
    font-size: 1.1rem
}

.nav a.l {
    margin-left: 20px;
    color: var(--mu);
    text-decoration: none;
    font-size: .9rem
}

.nav a.l.on {
    color: var(--g)
}

main {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
}

main.center {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.narrow {
    max-width: 960px;
    margin: 0 auto
}

.foot {
    text-align: center;
    padding: 20px;
    font-size: .8rem;
    color: var(--mu);
    background: #fff;
    border-top: 1px solid var(--bd)
}

.foot b {
    display: block;
    color: var(--g)
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 24px;
    margin-bottom: 20px
}

h1 {
    font-size: 1.8rem;
    margin: 0 0 6px
}

h2 {
    font-size: 1.1rem;
    margin: 0 0 10px
}

.sub,
.mu {
    color: var(--mu);
    font-size: .9rem
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px 0
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15
}

.hero h1 span {
    color: var(--g);
    display: block
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px
}

.chip {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: .75rem;
    color: var(--mu)
}

label {
    font-size: .85rem;
    font-weight: 600
}

input[type=text] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--bd);
    border-radius: 8px;
    font-size: .95rem;
    margin: 6px 0 10px
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary, #03ac0e);
  box-shadow: 0 0 0 3px rgba(3, 172, 14, 0.15);
}

.btn {
    display: inline-block;
    background: var(--g);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
    text-align: center
}

.btn:hover {
    background: var(--gd);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(22, 163, 74, .25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(22, 163, 74, .15);
}

.btn:disabled {
    opacity: .6;
    cursor: wait
}

.btn.full {
    width: 100%
}

.btn.out {
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 500
}

.flash {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 16px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: .9rem
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 20px 0
}

.stat {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.stat small {
    color: var(--mu);
    font-size: .78rem
}

.stat b {
    display: block;
    font-size: 1.8rem
}

.ok {
    color: var(--g)
}

.bad {
    color: var(--red)
}

.banner {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 8px;
    border: 1px solid
}

.banner h2 {
    margin: 0 0 4px
}

.banner p {
    margin: 0;
    font-size: .88rem
}

.t-ok {
    background: #f0fdf4;
    border-color: #bbf7d0
}

.t-ok h2 {
    color: var(--gd)
}

.t-mid {
    background: #fffbeb;
    border-color: #fde68a
}

.t-mid h2 {
    color: var(--amb)
}

.t-bad {
    background: #fef2f2;
    border-color: #fecaca
}

.t-bad h2 {
    color: var(--red)
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px
}

.rev {
    padding: 14px 0;
    border-bottom: 1px solid var(--bd)
}

.rev:last-child {
    border: 0
}

.rev .top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: .9rem
}

.rev p {
    margin: 4px 0 8px;
    font-size: .88rem;
    color: #374151
}

.badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px
}

.badge.asli {
    background: #dcfce7;
    color: var(--gd)
}

.badge.palsu {
    background: #fee2e2;
    color: var(--red)
}

.pager {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    font-size: .9rem
}

.box {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .92rem
}

.hl {
    line-height: 2.3;
    font-size: 1rem
}

.hl span {
    padding: 2px 3px;
    border-radius: 4px
}

.note {
    border-left: 3px solid var(--bd);
    background: #f9fafb;
    padding: 10px 14px;
    font-size: .82rem;
    color: var(--mu);
    margin: 14px 0
}

.legend {
    display: flex;
    gap: 18px;
    font-size: .8rem;
    color: var(--mu);
    margin-bottom: 12px
}

.legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px
}

.bar {
    height: 10px;
    border-radius: 5px
}

ol.steps {
    padding-left: 20px
}

ol.steps li {
    margin-bottom: 12px
}

table.t {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem
}

table.t td,
table.t th {
    padding: 8px;
    border-bottom: 1px solid var(--bd);
    text-align: left
}

.tabbar {
    display: flex;
    gap: 24px;
    margin: -16px 0 0;
}

.tabbtn {
    font: inherit;
    font-size: .9rem;
    padding: 12px 4px;
    margin-bottom: 10px;
    cursor: pointer;
    background: transparent;
    color: var(--mu);
    border: 0;
    border-radius: 0;
}

.tabbtn:hover {
    color: var(--g);
}

.tabbtn[aria-selected=true] {
    color: var(--g);
    border-bottom: 2px solid var(--g);
    font-weight: 600;
    background: transparent;
}

.tabbtn:focus-visible {
    outline: 2px solid var(--g);
    outline-offset: 3px;
}

.kata {
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
    line-height: 1.9
}

.chipk {
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem
}

.tbl th,
.tbl td {
    text-align: left;
    padding: 8px 5px;
    border-bottom: 1px solid color-mix(in srgb, var(--tx) 10%, transparent);
    font-weight: 400
}

.tbl th {
    font-size: .75rem;
    opacity: .7
}

.stat-shap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 6px
}

.stat-shap div {
    background: color-mix(in srgb, var(--tx) 5%, transparent);
    border-radius: 8px;
    padding: 10px 12px
}

.stat-shap small {
    display: block;
    font-size: .75rem;
    opacity: .7
}

.stat-shap b {
    font-size: 1.2rem;
    font-weight: 500
}

.prob-label {
    font-weight: 600;
    color: var(--tx)
}

.shap-empty {
    padding: 16px;
    background: color-mix(in srgb, var(--tx) 5%, transparent);
    border-radius: 8px;
    font-size: .85rem
}

.shap-plot {
    overflow-x: auto;
    text-align: center;
    margin: 8px 0
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loading-card {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #dcfce7;
    border-top-color: var(--g);
    border-radius: 50%;
    animation: reviewSpin .75s linear infinite;
}

@keyframes reviewSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--tx);
}

body.loading-active {
    overflow: hidden;
}

.rev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px
}

.rev-grid .rev {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease
}

.rev-grid .rev:last-child {
    border: 1px solid var(--bd)
}

.rev-grid .rev:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.rev-grid .rev p {
    flex: 1;
    margin: 8px 0 12px;
    display: -webkit-box;
    overflow: hidden
}

.rev-grid .btn.out {
    align-self: flex-start
}

.perpage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--mu)
}

.perpage select {
    padding: 6px 10px;
    border: 1px solid var(--bd);
    border-radius: 8px;
    font-size: .85rem;
    background: #fff
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px
}

.toolbar .pager {
    margin-top: 0;
    justify-content: flex-end
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 10px;
}

.field-row label {
  margin: 0;
}

input[type="number"] {
  padding: 8px 6px;
  text-align: center;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: .95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--primary, #03ac0e);
  box-shadow: 0 0 0 3px rgba(3, 172, 14, 0.15);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.estimasi {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted, #475467);
  background: var(--soft-bg, #f2f4f7);
  border-left: 3px solid var(--primary, #03ac0e);
  border-radius: 6px;
}

.estimasi:empty {
  display: none;
}

.about-hero {
    background: linear-gradient(135deg, var(--gd), var(--g) 60%, #4ade80);
    color: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .25)
}

.about-hero h1 {
    font-size: 2.2rem;
    margin-top: -10px;
}

.about-hero p {
    max-width: 620px;
    margin: 0;
    opacity: .95
}

.chip.on-dark {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .35);
    color: #fff
}

.judul {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--g);
    background: #f0fdf4;
    border-radius: 0 8px 8px 0;
    font-style: italic
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #dcfce7
}

.timeline li {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    position: relative
}

.timeline li:last-child {
    margin-bottom: 0
}

.timeline .n {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--g);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff
}

.timeline p {
    margin: 2px 0 0;
    font-size: .88rem;
    color: var(--mu)
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px
}

.tech {
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 14px 16px;
    transition: box-shadow .15s ease, transform .15s ease
}

.tech:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.tech h3 {
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: .04em
}

.tech p {
    margin: 4px 0 2px;
    font-weight: 700;
    color: var(--g);
    font-size: 1.05rem
}

.tech small {
    color: var(--mu);
    font-size: .78rem
}

.limits {
    list-style: none;
    margin: 0;
    padding: 0
}

.limits li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--bd);
    font-size: .9rem
}

.limits li:last-child {
    border: 0
}

.limits li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fef3c7;
    color: var(--amb);
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

.cta-panduan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0px;
}

.cta-panduan p {
    margin: 0
}

.profile {
    display: flex;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #fff, #f0fdf4)
}

.avatar {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--g), var(--gd));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(22, 163, 74, .3)
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pinfo h2 {
    font-size: 1.4rem;
    margin: 2px 0 6px
}

.pinfo p {
    margin: 0 0 6px
}

.plinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.plinks .btn.out {
    background: #fff;
    color: var(--g);
    border: 1px solid var(--g)
}

.plinks .btn.out:hover {
    background: var(--g);
    color: #fff
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.tier {
    border: 1px solid;
    border-radius: 12px;
    padding: 14px 16px
}

.tier b {
    display: block;
    font-size: 1.4rem
}

.tier span {
    font-size: .85rem
}

.tier.t-ok b {
    color: var(--gd)
}

.tier.t-mid b {
    color: var(--amb)
}

.tier.t-bad b {
    color: var(--red)
}

.sec {
    margin: 8px 0 14px;
    font-size: 1.3rem
}

.gstep {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    align-items: center
}

.gnum {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--g);
    color: #fff;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, .3)
}

.gtext h3 {
    margin: 0 0 6px;
    font-size: 1.1rem
}

.gtext p {
    margin: 0;
    color: #374151;
    font-size: .92rem
}

.gfig {
    margin: 0
}

.gfig img {
    display: block;
    width: 100%;
    border: 1px solid var(--bd);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    cursor: zoom-in;
    transition: transform .15s ease
}

.gfig img:hover {
    transform: scale(1.01)
}

.gfig figcaption {
    margin-top: 8px;
    font-size: .78rem;
    color: var(--mu);
    text-align: center
}

.gfig.kosong img {
    display: none
}

.gfig.kosong::before {
    content: attr(data-label) " (belum diunggah)";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 2px dashed var(--bd);
    border-radius: 10px;
    background: #f9fafb;
    color: var(--mu);
    font-size: .85rem
}

.guide details {
    border-bottom: 1px solid var(--bd);
    padding: 10px 0
}

.guide details:last-child {
    border: 0
}

.guide summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem
}

.guide details p {
    margin: 8px 0 2px;
    font-size: .88rem;
    color: var(--mu)
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 24, 39, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    cursor: zoom-out
}

.lightbox.show {
    opacity: 1;
    visibility: visible
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px
}

@media(max-width:760px) {
    .hero {
        grid-template-columns: 1fr
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero h1 {
        font-size: 2rem
    }

    .about-hero h1 {
        font-size: 1.8rem
    }

    .tiers {
        grid-template-columns: 1fr
    }

    .gstep {
        grid-template-columns: 1fr
    }

    .profile {
        flex-direction: column;
        text-align: center
    }

    .plinks {
        justify-content: center
    }
}