/* ============================================================
   JasaSuper Client - Tema Hijau Pear & Lime
   ============================================================ */
:root {
    --lime: #3aa76d;
    --lime-dark: #2f8f5b;
    --lime-darker: #26744a;
    --lime-soft: #eef7f1;
    --pear: #7cc49a;
    --pear-dark: #5fa37f;
    --pear-soft: #f2f8f4;
    --deep: #22312a;
    --deep-2: #1a2620;
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #23272e;
    --muted: #667085;
    --border: #e5e7eb;
    --amber: #b25e09;
    --red: #c23b3b;
    --blue: #2b62c9;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--lime-darker); text-decoration: none; }
a:hover { color: var(--lime-dark); }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.app-wrap { display: flex; min-height: 100vh; }

.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 9px 16px;
}

.burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
}

.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.topbar-brand .t-name { font-weight: 800; color: var(--deep); font-size: 15px; white-space: nowrap; }
.topbar-brand .t-tag { font-size: 11px; color: var(--muted); white-space: nowrap; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lime-soft);
    border: 1px solid #d4e8db;
    border-radius: 999px;
    padding: 5px 12px 5px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lime-darker);
}
.user-chip .avatar {
    width: 25px; height: 25px;
    border-radius: 50%;
    background: var(--lime);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px;
    text-transform: uppercase;
}

.page-body { padding: 18px 18px 40px; flex: 1; }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: #fff;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .25s ease;
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(16, 24, 40, .02);
}

.sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-head img { width: 34px; height: 34px; }
.sidebar-head .s-name { font-weight: 800; font-size: 15.5px; color: #fff; line-height: 1.2; }
.sidebar-head .s-tag { font-size: 11px; color: var(--pear); letter-spacing: .4px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 10px 12px; }
.sidebar-nav .nav-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #98a2b3;
    padding: 12px 10px 6px;
}
.sidebar-nav a.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #475467;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 3px;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease;
}
.sidebar-nav a.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.ico-svg { width: 17px; height: 17px; }
.sidebar-nav a.nav-item .lock { margin-left: auto; font-size: 12px; opacity: .7; display: inline-flex; }
.sidebar-nav a.nav-item .lock .ico-svg { width: 12px; height: 12px; }
.topbar-cart .ico-svg { width: 18px; height: 18px; }
.sidebar-nav a.nav-item:hover { background: #f2f4f7; color: #1f2328; }
.sidebar-nav a.nav-item.active {
    background: #eaf5ee;
    color: #26744a;
    border-left: 3px solid #3aa76d;
    font-weight: 600;
}
.sidebar-nav a.nav-item .lock { margin-left: auto; font-size: 12px; opacity: .7; }

.nav-badge {
    margin-left: auto;
    background: #eaf5ee;
    color: #26744a;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 8px;
    line-height: 1.5;
}
.sidebar-nav a.nav-item.active .nav-badge { background: #3aa76d; color: #fff; }

.topbar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 17px;
    color: var(--lime-darker);
}
.topbar-cart:hover { background: var(--pear-soft); color: var(--lime-dark); }
.topbar-cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--lime);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ---------- Bank / pembayaran ---------- */
.bank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bank-item {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 13px;
}
.bank-name { font-weight: 800; color: var(--deep); font-size: 14px; margin-bottom: 2px; }
.bank-num { font-family: 'Consolas', 'Menlo', monospace; font-size: 17px; font-weight: 700; color: var(--lime-darker); letter-spacing: 1px; }
.bank-owner { font-size: 12px; color: var(--muted); margin-top: 2px; }

.sidebar-foot {
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: #98a2b3;
    text-align: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 12, .5);
    z-index: 90;
}

/* ---------- Komponen ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--deep);
    margin-bottom: 2px;
    letter-spacing: -.01em;
}
.section-sub { color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 9px;
    padding: 8px 15px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
    line-height: 1.4;
    text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--lime); color: #fff; }
.btn-primary:hover { background: var(--lime-dark); color: #fff; }

.btn-pear { background: var(--pear-soft); color: var(--lime-darker); border: 1px solid #cfe3d7; }
.btn-pear:hover { background: #e4f1e9; color: var(--lime-darker); }

.btn-outline { background: #fff; color: var(--lime-darker); border: 1.5px solid #d0d5dd; }
.btn-outline:hover { background: var(--lime-soft); border-color: var(--lime); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.badge-green  { background: #e8f5ee; color: #217648; }
.badge-amber  { background: #fdf3e3; color: #a05c0c; }
.badge-blue   { background: #e8f1fd; color: #2b5fbe; }
.badge-red    { background: #fdeaea; color: #b63636; }
.badge-gray   { background: #f0f1f3; color: #5b6470; }
.badge-pear   { background: #e8f5ee; color: #26744a; }

.alert {
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.alert-success { background: #e8f5ee; border-color: #c9e6d4; color: #1f6b45; }
.alert-error   { background: #fdeaea; border-color: #f3c3c3; color: #a83a3a; }
.alert-info    { background: #e8f1fd; border-color: #c3d8f5; color: #2b5fbe; }
.alert-warning { background: #fdf3e3; border-color: #f0d9ae; color: #96620f; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.form-group .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(58, 167, 109, .16);
}
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input-icon { position: relative; }
.input-icon .ico {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
}
.input-icon .form-control { padding-left: 36px; }

/* ---------- Grid Produk ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(18,57,31,.12); }

.product-card .thumb {
    aspect-ratio: 16 / 10;
    background: var(--lime-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--lime-darker);
    margin-bottom: 4px;
}
.product-card h3 { font-size: 13.5px; font-weight: 700; color: var(--deep); line-height: 1.35; margin-bottom: 4px; }
.product-card .price { font-size: 14px; font-weight: 800; color: var(--lime-darker); margin-bottom: 5px; }
.product-card .desc {
    font-size: 11.5px;
    color: var(--muted);
    flex: 1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .btn { width: 100%; }

.badge-top {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
}

/* ---------- Produk detail ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(380px, 460px) 1fr;
    gap: 24px;
    align-items: start;
}
.detail-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fafbfc;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-info h1 { font-size: 20px; font-weight: 800; color: var(--deep); line-height: 1.3; margin: 6px 0 0; }
.detail-price { font-size: 22px; font-weight: 800; color: var(--lime-darker); margin-top: 4px; }
.detail-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.detail-desc {
    color: #374151;
    font-size: 13.5px;
    white-space: pre-line;
    padding: 15px 17px;
    line-height: 1.7;
    margin: 14px 0 0;
}

/* Kotak order */
.order-box { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ob-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.period-pills { display: grid; grid-template-columns: 1fr; gap: 6px; }
.period-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color .15s ease, background .15s ease;
}
.period-pill:hover { border-color: var(--lime); }
.period-pill input { accent-color: var(--lime-dark); }
.period-pill .pp-lbl { font-weight: 700; color: var(--deep); }
.period-pill .pp-price { margin-left: auto; font-weight: 700; color: var(--lime-darker); font-size: 12.5px; }
.period-pill:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); }

.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-row .ob-label { margin: 0; }
.ob-subtotal { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--lime-darker); }
.ob-wa { display: block; text-align: center; font-size: 12.5px; margin-top: 2px; }

.qty-box { display: flex; align-items: center; }
.qty-box button {
    width: 36px; height: 36px;
    border: 1.5px solid #d0d5dd;
    background: #fff;
    color: var(--lime-darker);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.qty-box button:first-child { border-radius: 9px 0 0 9px; }
.qty-box button:last-child { border-radius: 0 9px 9px 0; }
.qty-box input {
    width: 58px; height: 36px;
    border: 1.5px solid #d0d5dd;
    border-left: none; border-right: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--deep);
    -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
    text-align: left;
    padding: 9px 12px;
    background: #f7f8f9;
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .empty { text-align: center; color: var(--muted); padding: 30px; }

.mono { font-family: 'Consolas', 'Menlo', monospace; font-size: 12px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-weight: 700;
    color: var(--deep);
    font-size: 13.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--lime-darker); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 15px 13px; color: #4b5563; font-size: 13px; white-space: pre-line; }

/* ---------- Auth ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(58,167,109,.10), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(124,196,154,.10), transparent 60%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 410px;
    padding: 26px 24px;
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 14px; object-fit: cover; }
.auth-logo h1 { font-size: 19px; font-weight: 800; color: var(--deep); }
.auth-logo p { font-size: 12.5px; color: var(--muted); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Profile ---------- */
.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.profile-avatar {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--lime);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
}
.profile-name { font-size: 17px; font-weight: 800; color: var(--deep); }
.profile-sub { color: var(--muted); font-size: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.profile-stats .ps {
    background: #fff;
    padding: 16px;
    text-align: center;
}
.profile-stats .ps .pv { font-size: 20px; font-weight: 800; color: var(--lime-darker); }
.profile-stats .ps .pl { font-size: 12px; color: var(--muted); }

/* ---------- Detail gaya Shopee ---------- */
.d-title { font-size: 18px; font-weight: 700; color: var(--deep); line-height: 1.35; margin: 2px 0 4px; }
.d-price { font-size: 24px; font-weight: 800; color: var(--lime-darker); }
.d-price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.d-vlabel { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 8px; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.v-chip:hover { border-color: var(--lime); }
.v-chip input { accent-color: var(--lime-dark); }
.v-chip .vc-price { color: var(--lime-darker); font-weight: 700; }
.v-chip:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); color: var(--lime-darker); }
.d-qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; }
.d-qty-row .ob-label { margin: 0; }
.d-subtotal { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.d-subtotal strong { color: var(--lime-darker); font-size: 15px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .btn { padding: 11px 12px; font-size: 14px; }
.d-wa { display: block; text-align: center; font-size: 12.5px; margin-top: 10px; }
.detail-sec-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: .4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.detail-sec-body { font-size: 13.5px; color: #374151; white-space: pre-line; line-height: 1.7; }

/* ---------- Checkout ---------- */
.checkout-card { width: 100%; }
.co-section { padding: 11px 14px; }
.co-sec-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.co-link { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.co-divider { border-top: 1px solid var(--border); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ci-img { width: 44px; height: 36px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13.5px; font-weight: 600; color: var(--deep); }
.ci-qty { font-size: 12px; color: var(--muted); margin-top: 1px; }
.ci-sub { font-weight: 700; color: var(--deep); font-size: 13.5px; white-space: nowrap; }
.co-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-kv .k { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.co-kv .v { font-size: 13.5px; margin-top: 1px; word-break: break-word; }
.co-total {
    padding: 11px 14px;
    background: #fafbfc;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
}
@media (max-width: 560px) { .co-kv { grid-template-columns: 1fr; } }
.checkout-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: start;
    max-width: 1020px;
}
.checkout-main { display: flex; flex-direction: column; gap: 16px; }
.checkout-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 70px; }
.checkout-sum { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.sum-row span:last-child { font-weight: 700; color: var(--text); }
.sum-row.sum-total { font-size: 15px; font-weight: 800; color: var(--deep); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 2px; }
.sum-row.sum-total span:last-child { color: var(--lime-darker); font-size: 16px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pay-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    color: var(--deep);
    transition: border-color .15s ease, background .15s ease;
}
.pay-opt:hover { border-color: var(--lime); }
.pay-opt input { accent-color: var(--lime-dark); }
.pay-opt:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); }

/* ---------- Pagination (user) ---------- */
.pagination { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    color: var(--lime-darker);
    font-size: 13px;
    font-weight: 700;
}
.pg-btn:hover { background: var(--lime-soft); border-color: var(--lime); }
.pg-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pg-info { font-size: 12.5px; color: var(--muted); }

/* ---------- Halaman marketing (home) ---------- */
.hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    margin-bottom: 22px;
    background: linear-gradient(120deg, #eef7f1 0%, #f7fbf8 55%, #ffffff 100%);
    border: 1px solid #d8e9de;
    flex-wrap: wrap;
}
.hero-main { flex: 1; min-width: 280px; }
.hero h1 { font-size: 23px; font-weight: 800; color: var(--deep); line-height: 1.3; margin: 10px 0 8px; letter-spacing: -.01em; }
.hero-sub { font-size: 13.5px; color: var(--muted); max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.hero-actions .ico-svg { width: 16px; height: 16px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; }
.hs .hv { font-size: 19px; font-weight: 800; color: var(--lime-darker); line-height: 1.2; }
.hs .hl { font-size: 11.5px; color: var(--muted); }
.hero-art { display: flex; flex-direction: column; gap: 12px; }
.hero-art .ico-svg {
    width: 54px; height: 54px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d8e9de;
    color: var(--lime);
    box-shadow: var(--shadow);
}

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.cat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    transition: border-color .15s ease, transform .12s ease;
}
.cat-card:hover { border-color: var(--lime); transform: translateY(-2px); color: inherit; }
.cat-ico {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-soft);
    color: var(--lime-darker);
    border-radius: 9px;
    margin-bottom: 4px;
}
.cat-ico .ico-svg { width: 18px; height: 18px; }
.cat-name { font-weight: 700; font-size: 13.5px; color: var(--deep); }
.cat-count { font-size: 11.5px; color: var(--muted); }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.feat-card { padding: 14px; }
.feat-card strong { font-size: 13.5px; color: var(--deep); display: block; margin-bottom: 3px; }
.feat-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6px; margin-bottom: 22px; }
.step { display: flex; gap: 10px; padding: 12px 14px; align-items: flex-start; }
.step-num {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--lime);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.step strong { font-size: 13px; color: var(--deep); }
.step p { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.cta {
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #eef7f1, #ffffff);
    border: 1px solid #d8e9de;
}
.cta h2 { font-size: 18px; color: var(--deep); margin-bottom: 4px; }
.cta p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.cta .ico-svg { width: 16px; height: 16px; }

/* ---------- Kredensial server ---------- */
.cred-list { display: flex; flex-direction: column; gap: 8px; }
.cred-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 12px;
}
.cred-key { width: 130px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cred-val { flex: 1; font-size: 13.5px; color: var(--deep); word-break: break-all; min-width: 140px; }

/* ---------- Update pengerjaan ---------- */
.update-list { display: flex; flex-direction: column; gap: 12px; }
.update-item {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--lime);
    border-radius: 9px;
    padding: 10px 12px;
}
.update-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--deep);
    margin-bottom: 4px;
}
.update-time { font-size: 11.5px; color: var(--muted); }
.update-msg { font-size: 13.5px; color: #374151; white-space: pre-line; }

.info-box {
    background: #f4faf6;
    border: 1px solid #d8e9de;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #33463c;
    white-space: pre-line;
}
.info-box.empty-info { background: #f8fafc; border-color: var(--border); color: var(--muted); font-style: italic; }

/* ---------- Status page ---------- */
.status-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    color: var(--text);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.status-hero h1 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--deep); }
.status-hero p { color: var(--muted); font-size: 13px; }
.status-hero .form-inline { display: flex; gap: 10px; margin-top: 16px; }
.status-hero .form-inline .form-control { flex: 1; background: #fff; }

.timeline { list-style: none; }
.timeline li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline li::before {
    content: '';
    position: absolute;
    left: 11px; top: 26px; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.timeline li.done .dot { background: var(--lime); border-color: var(--lime); color: #fff; }
.timeline li.current .dot { background: var(--pear); border-color: var(--pear-dark); color: #fff; }
.timeline .t-title { font-weight: 700; font-size: 14px; color: var(--deep); }
.timeline .t-desc { font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.page-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 13px 16px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .feat-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-thumb { max-width: 560px; }
}
@media (max-width: 860px) {
    :root { --sidebar-w: 250px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .sidebar-overlay.show { display: block; }
    .main-area { margin-left: 0; }
    .burger { display: inline-flex; }
    .topbar { padding: 10px 14px; }
    .page-body { padding: 18px 14px 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 20px; }
    .hero h1 { font-size: 19px; }
    .hero-art { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .t-name { display: none; }
    .bank-list { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr !important; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-side { position: static; }
    .pay-options { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .status-hero .form-inline { flex-direction: column; }
    .auth-card { padding: 26px 20px; }
    .user-chip .u-name { display: none; }
}
