/* ====== Melaju - Frontend Styles ====== */
:root {
    --melaju-primary: #2563EB;
    --melaju-primary-dark: #1d4ed8;
    --melaju-accent: #EF4444;
    --melaju-success: #22c55e;
    --melaju-warn: #f59e0b;
    --melaju-bg: #EEF2FF;
    --melaju-card: #fff;
    --melaju-border: #e2e8f0;
    --melaju-text: #1e293b;
    --melaju-muted: #64748b;
    --melaju-sidebar-w: 220px;
}

/* ── Checkout ── */
.melaju-checkout-wrap { max-width: 480px; margin: 40px auto; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.melaju-checkout-header { text-align: center; margin-bottom: 20px; color: var(--melaju-text); }
.melaju-checkout-header h2 { font-size: 1.3rem; margin: 4px 0; }
.melaju-checkout-header p { color: var(--melaju-muted); font-size: .85rem; margin: 0; }
.melaju-secure-icon { font-size: 1.4rem; }

.melaju-checkout-box { background: var(--melaju-card); border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }

.melaju-checkout-product { display: flex; align-items: center; gap: 14px; padding: 16px; background: #f8faff; border-radius: 10px; margin-bottom: 20px; }
.melaju-checkout-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.melaju-checkout-product-info { flex: 1; }
.melaju-checkout-product-info strong { font-size: 1rem; }
.melaju-checkout-product-price { text-align: right; }
.melaju-checkout-product-price .price { color: var(--melaju-primary); font-weight: 700; font-size: 1.1rem; display: block; }
.melaju-checkout-product-price .duration { color: var(--melaju-muted); font-size: .8rem; }

.melaju-checkout-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--melaju-border); }
.melaju-checkout-section:last-of-type { border-bottom: none; }
.melaju-checkout-section h3 { font-size: .95rem; color: var(--melaju-text); margin: 0 0 12px; font-weight: 600; }
.melaju-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.melaju-section-header h3 { margin: 0; }
.melaju-account-name { font-weight: 600; margin: 0 0 2px; }
.melaju-account-email { color: var(--melaju-muted); font-size: .9rem; margin: 0; }

.melaju-input { width: 100%; padding: 10px 14px; border: 1px solid var(--melaju-border); border-radius: 8px; font-size: .9rem; box-sizing: border-box; margin-bottom: 8px; }
.melaju-input:focus { outline: none; border-color: var(--melaju-primary); }
.melaju-login-note { font-size: .85rem; color: var(--melaju-muted); margin: 0 0 10px; }
.melaju-login-note a { color: var(--melaju-primary); }

.melaju-gateways { display: flex; flex-direction: column; gap: 8px; }
.melaju-gateway-option { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid var(--melaju-border); border-radius: 10px; cursor: pointer; transition: border-color .2s; }
.melaju-gateway-option:has(input:checked) { border-color: var(--melaju-primary); background: #eff6ff; }
.melaju-gateway-option input { accent-color: var(--melaju-primary); }
.melaju-gateway-option span:first-of-type { flex: 1; font-weight: 500; }
.melaju-gateway-arrow { color: var(--melaju-muted); }

.melaju-coupon-row { display: flex; gap: 8px; }
.melaju-coupon-field { flex: 1; margin: 0; }
.melaju-btn-dark { background: #1e293b; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.melaju-coupon-msg { font-size: .85rem; margin-top: 6px; }

.melaju-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .95rem; }
.melaju-duration-badge { color: var(--melaju-primary); font-size: .75rem; display: block; }
.melaju-discount { color: var(--melaju-success); font-weight: 600; }
.melaju-divider { border: none; border-top: 1px dashed var(--melaju-border); margin: 12px 0; }
.melaju-total-row strong { font-size: 1rem; }
.melaju-total-amount { color: var(--melaju-accent); font-size: 1.2rem !important; }

.melaju-btn-checkout { width: 100%; background: var(--melaju-primary); color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 1rem; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: background .2s; margin-top: 8px; }
.melaju-btn-checkout:hover { background: var(--melaju-primary-dark); }
.melaju-btn-checkout:disabled { opacity: .7; cursor: not-allowed; }
.melaju-checkout-terms { font-size: .75rem; color: var(--melaju-muted); text-align: center; margin-top: 12px; line-height: 1.5; }
.melaju-checkout-terms a { color: var(--melaju-primary); }
.melaju-error { color: var(--melaju-accent); font-size: .9rem; margin: 8px 0; padding: 10px; background: #fef2f2; border-radius: 8px; }

.melaju-btn-outline { background: #fff; border: 1.5px solid var(--melaju-border); color: var(--melaju-text); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: .85rem; }
.melaju-btn-outline-sm { background: #fff; border: 1.5px solid var(--melaju-border); color: var(--melaju-text); padding: 6px 12px; border-radius: 6px; font-size: .8rem; text-decoration: none; cursor: pointer; }
.melaju-btn-primary { background: var(--melaju-primary); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.melaju-btn-primary:hover { background: var(--melaju-primary-dark); }
.melaju-btn-primary-sm { background: var(--melaju-primary); color: #fff; border: none; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .82rem; text-decoration: none; display: inline-block; }
.melaju-btn-block { width: 100%; display: block; }

/* ── Thank You ── */
.melaju-thankyou-wrap { max-width: 460px; margin: 40px auto; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.melaju-thankyou-hero { text-align: center; padding: 30px 0 20px; }
.melaju-thankyou-icon { font-size: 3rem; }
.melaju-thankyou-hero h2 { font-size: 1.3rem; margin: 8px 0 4px; }
.melaju-thankyou-hero p { color: var(--melaju-muted); font-size: .85rem; margin: 0; }
.melaju-thankyou-box { background: var(--melaju-card); border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.melaju-amount-display { text-align: center; margin-bottom: 24px; }
.melaju-amount-display h1 { font-size: 2rem; margin: 0 0 10px; }
.melaju-order-meta { background: #f8faff; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.melaju-meta-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.melaju-meta-row .label { color: var(--melaju-muted); font-size: .82rem; }
.melaju-status-badge { padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.melaju-status-pending,.melaju-badge-pending { background: #fef3c7; color: #92400e; }
.melaju-status-paid,.melaju-badge-paid { background: #d1fae5; color: #065f46; }
.melaju-status-expired,.melaju-badge-expired,.melaju-status-cancelled,.melaju-badge-cancelled { background: #fee2e2; color: #991b1b; }
.melaju-status-active,.melaju-badge-active { background: #d1fae5; color: #065f46; }

.melaju-bacs-section { margin: 20px 0; }
.melaju-bacs-section h3 { text-align: center; font-size: 1rem; margin-bottom: 16px; }
.melaju-bank-row { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: #f8faff; border-radius: 10px; margin-bottom: 8px; }
.bank-person { font-weight: 600; font-size: .9rem; }
.bank-number { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--melaju-text); }
.bank-label { font-weight: 700; color: var(--melaju-primary); font-size: .85rem; }
.melaju-copy-btn { background: none; border: none; cursor: pointer; color: var(--melaju-primary); font-size: 1rem; padding: 0 2px; }
.melaju-copy-amount-btn { margin-top: 6px; }
.melaju-confirm-section { margin: 20px 0; }
.melaju-paid-notice { text-align: center; padding: 14px; background: #d1fae5; border-radius: 8px; color: #065f46; margin: 16px 0; }
.melaju-paid-notice a { color: #065f46; font-weight: 600; }
.melaju-terms-note { font-size: .72rem; color: var(--melaju-muted); text-align: center; line-height: 1.5; margin-top: 16px; }
.melaju-success-msg { color: var(--melaju-success); font-size: .85rem; margin-top: 6px; }

/* ── Member Dashboard ── */
.melaju-member-wrap { display: flex; min-height: 100vh; background: var(--melaju-bg); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

.melaju-sidebar { width: var(--melaju-sidebar-w); background: #fff; border-right: 1px solid var(--melaju-border); display: flex; flex-direction: column; position: fixed; height: 100vh; overflow-y: auto; z-index: 100; }
.melaju-site-brand { padding: 20px 20px 16px; font-weight: 700; font-size: 1rem; color: var(--melaju-text); border-bottom: 1px solid var(--melaju-border); }
.melaju-sidenav { flex: 1; padding: 12px 0; }
.melaju-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--melaju-muted); text-decoration: none; font-size: .88rem; transition: all .15s; }
.melaju-nav-item:hover,.melaju-nav-item.active { color: var(--melaju-primary); background: #eff6ff; }
.melaju-nav-icon { font-size: 1rem; width: 18px; text-align: center; }
.melaju-nav-arrow { margin-left: auto; color: var(--melaju-muted); font-size: .75rem; }
.melaju-subnav { padding: 0 0 0 48px; }
.melaju-subnav a { display: block; padding: 6px 0; font-size: .83rem; color: var(--melaju-muted); text-decoration: none; }
.melaju-subnav a:hover { color: var(--melaju-primary); }
.melaju-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--melaju-border); }
.melaju-logout { color: var(--melaju-muted); text-decoration: none; font-size: .85rem; }

.melaju-main { margin-left: var(--melaju-sidebar-w); flex: 1; display: flex; flex-direction: column; }
.melaju-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--melaju-border); }
.melaju-avatar { font-size: 1.4rem; cursor: pointer; }
.melaju-content { padding: 28px; }

.melaju-products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.melaju-products-header h2 { margin: 0; font-size: 1.1rem; }
.melaju-search-bar { display: flex; }
.melaju-search-input { padding: 8px 14px; border: 1px solid var(--melaju-border); border-radius: 8px 0 0 8px; font-size: .88rem; min-width: 220px; }
.melaju-search-btn { background: var(--melaju-primary); color: #fff; border: none; padding: 8px 14px; border-radius: 0 8px 8px 0; cursor: pointer; }

.melaju-product-list { display: flex; flex-direction: column; gap: 12px; }
.melaju-product-card { background: #fff; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.melaju-product-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.melaju-thumb-placeholder { width: 52px; height: 52px; background: #e2e8f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.melaju-product-info { flex: 1; }
.melaju-product-info strong { display: block; margin-bottom: 4px; }
.melaju-product-price { color: var(--melaju-accent); font-weight: 600; font-size: .95rem; }
.melaju-product-price small { color: var(--melaju-muted); font-weight: 400; font-size: .78rem; margin-left: 4px; }
.melaju-product-actions { display: flex; gap: 8px; align-items: center; }
.melaju-owned-badge { color: var(--melaju-success); font-size: .85rem; font-weight: 600; }

.melaju-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.melaju-stat-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-label { display: block; color: var(--melaju-muted); font-size: .8rem; margin-bottom: 4px; }
.stat-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--melaju-text); }
.melaju-ref-code { font-size: 1rem; font-family: monospace; }

.melaju-ref-generator { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.melaju-ref-generator h3 { margin: 0 0 12px; }
.melaju-ref-link-box { display: flex; gap: 8px; margin-top: 10px; }
.melaju-copy-field-btn { background: var(--melaju-primary); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap; }

.melaju-section-table { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; overflow-x: auto; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.melaju-section-table h3 { margin: 0 0 14px; }
.melaju-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.melaju-table th { text-align: left; padding: 8px 12px; color: var(--melaju-muted); border-bottom: 1px solid var(--melaju-border); font-weight: 600; font-size: .82rem; }
.melaju-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }

.melaju-payout-section { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.melaju-payout-section h3 { margin: 0 0 6px; }
.melaju-payout-section p { color: var(--melaju-muted); font-size: .85rem; margin: 0 0 12px; }
.melaju-payout-section .melaju-input { margin-bottom: 8px; }

.melaju-badge { padding: 3px 9px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.melaju-empty { color: var(--melaju-muted); text-align: center; padding: 20px 0; }
.melaju-notice { color: var(--melaju-muted); font-size: .88rem; }

.melaju-become-affiliate { text-align: center; padding: 40px 20px; background: #fff; border-radius: 12px; }
.melaju-become-affiliate h2 { font-size: 1.4rem; margin-bottom: 8px; }
.melaju-become-affiliate p { color: var(--melaju-muted); margin-bottom: 20px; }
#melaju-aff-msg { margin-top: 10px; font-size: .9rem; }
.melaju-shield { margin-right: 6px; }

@media (max-width: 768px) {
    .melaju-sidebar { width: 100%; height: auto; position: relative; }
    .melaju-main { margin-left: 0; }
    .melaju-member-wrap { flex-direction: column; }
    .melaju-checkout-wrap,.melaju-thankyou-wrap { margin: 20px 16px; }
}


/* ====== Melaju Standalone Page (Route tanpa tema) ====== */
body.melaju-page {
    margin: 0;
    padding: 0;
    background: #EEF2FF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#melaju-app {
    min-height: 100vh;
}

/* Dashboard standalone - full screen */
body.melaju-page-dashboard #melaju-app {
    background: #EEF2FF;
}

/* Checkout & Thankyou standalone - centered */
body.melaju-page-checkout #melaju-app,
body.melaju-page-thankyou #melaju-app {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px 40px;
    min-height: 100vh;
    box-sizing: border-box;
}

body.melaju-page-checkout .melaju-checkout-wrap,
body.melaju-page-thankyou .melaju-thankyou-wrap {
    margin: 0;
    width: 100%;
}

/* Error page */
.melaju-error-page {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}
.melaju-error-page h2 { font-size: 1.5rem; margin-bottom: 16px; color: #1e293b; }
.melaju-error-page a  { color: #2563EB; text-decoration: none; }

/* Login standalone page */
body.melaju-page-login {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}
body.melaju-page-login #melaju-app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ── Checkout Auth Form (Sejoli style) ── */
.mlj-co-auth { margin-top: 4px; }

.mlj-co-has-account {
    text-align: center;
    font-size: .9rem;
    color: #64748b;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.mlj-co-switch-link {
    color: #e85d26;
    font-weight: 700;
    text-decoration: none;
    margin-left: 2px;
}
.mlj-co-switch-link:hover { text-decoration: underline; }

.mlj-co-desc {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0 0 16px;
}
.mlj-co-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.mlj-co-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.mlj-co-field label {
    font-size: .88rem;
    font-weight: 600;
    color: #1e293b;
}
.mlj-req { color: #ef4444; }

.mlj-co-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: .92rem;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.mlj-co-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.mlj-co-input::placeholder { color: #cbd5e1; }

.mlj-co-pass-wrap { position: relative; }
.mlj-co-pass-wrap .mlj-co-input { padding-right: 48px; }
.mlj-co-eye {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #94a3b8; padding: 4px;
    display: flex; align-items: center;
}
.mlj-co-eye:hover { color: #475569; }

.mlj-co-login-submit {
    width: 100%; padding: 13px;
    background: #1e293b; color: #fff;
    border: none; border-radius: 12px;
    font-size: .95rem; font-weight: 700;
    cursor: pointer; margin-top: 4px;
    transition: opacity .2s;
}
.mlj-co-login-submit:hover { opacity: .88; }
.mlj-co-login-submit:disabled { opacity: .6; cursor: not-allowed; }

.mlj-co-back-reg {
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
    margin: 14px 0 0;
}
.mlj-co-back-reg a { color: #2563EB; font-weight: 600; text-decoration: none; }

.mlj-co-msg { font-size: .83rem; margin-top: 6px; min-height: 18px; }
.mlj-co-msg.error   { color: #ef4444; }
.mlj-co-msg.success { color: #22c55e; }

/* ── Affiliate Link Generator ── */
.melaju-aff-link-row { }
.melaju-aff-link-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.melaju-aff-link-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.melaju-aff-hint {
    font-size: .78rem;
    color: #94a3b8;
    margin: 12px 0 0;
    line-height: 1.7;
    background: #f8faff;
    border-radius: 8px;
    padding: 10px 12px;
}
.melaju-aff-hint strong { color: #475569; }

/* ═══════════════════════════════════════════════
   CHECKOUT 2-COLUMN LAYOUT
═══════════════════════════════════════════════ */
.mlj-co-page {
    min-height: 100vh;
    background: #F1F5F9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Topbar */
.mlj-co-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.mlj-co-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mlj-co-logo { height: 36px; object-fit: contain; }
.mlj-co-sitename { font-size: 1.2rem; font-weight: 800; color: #1e293b; }
.mlj-co-secure-badge { font-size: .82rem; color: #64748b; font-weight: 500; }

/* 2-column grid — 60% / 40% */
.mlj-co-layout {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 24px;
    align-items: start;
}

/* Card base */
.mlj-co-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.mlj-co-card:last-child { margin-bottom: 0; }
.mlj-co-card-sticky {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
}

/* Card header */
.mlj-co-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.mlj-co-card-num {
    width: 28px; height: 28px;
    background: #2563EB;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.mlj-co-card-icon {
    width: 36px; height: 36px;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mlj-co-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}
.mlj-co-logout-link {
    font-size: .8rem;
    color: #94a3b8;
    text-decoration: none;
    margin-left: auto;
}
.mlj-co-logout-link:hover { color: #ef4444; }

/* Card 1: Produk */
.mlj-co-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mlj-co-product-img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.mlj-co-product-img-placeholder {
    width: 64px; height: 64px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}
.mlj-co-product-meta { flex: 1; min-width: 0; }
.mlj-co-product-name { display: block; font-size: .95rem; color: #1e293b; margin-bottom: 4px; }
.mlj-co-product-duration {
    font-size: .78rem;
    color: #2563EB;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.mlj-co-product-price-tag { text-align: right; flex-shrink: 0; }
.mlj-co-price-amount { font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.mlj-co-price-free { font-size: 1.1rem; font-weight: 800; color: #16a34a; }

/* Card 2: User info (sudah login) */
.mlj-co-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mlj-co-user-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.mlj-co-user-name { font-weight: 600; font-size: .95rem; color: #1e293b; }
.mlj-co-user-email { font-size: .83rem; color: #64748b; margin-top: 2px; }

/* Form grid — 1 kolom */
.mlj-co-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Card 3: Summary */
.mlj-co-summary { margin-bottom: 16px; }
.mlj-co-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .9rem;
    color: #475569;
}
.mlj-co-summary-label { flex: 1; margin-right: 8px; }
.mlj-co-summary-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 8px 0;
}
.mlj-co-summary-total { padding-top: 12px; }
.mlj-co-summary-total strong { color: #1e293b; font-size: 1rem; }
.mlj-co-total-val { color: #2563EB; font-size: 1.15rem !important; }
.mlj-co-discount-val { color: #16a34a; font-weight: 600; }

/* Kupon */
.mlj-co-coupon { margin-bottom: 16px; }
.mlj-co-coupon-row { display: flex; gap: 8px; }
.mlj-co-coupon-input { flex: 1; margin-bottom: 0 !important; }
.mlj-co-coupon-btn {
    background: #f1f5f9; color: #475569;
    border: 1.5px solid #e2e8f0;
    padding: 0 14px; border-radius: 10px;
    font-size: .88rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all .2s;
}
.mlj-co-coupon-btn:hover { background: #e2e8f0; }

/* Payment methods */
.mlj-co-payment-section { margin-bottom: 16px; }
.mlj-co-payment-label {
    font-size: .82rem; font-weight: 600;
    color: #64748b; margin: 0 0 10px;
    text-transform: uppercase; letter-spacing: .04em;
}
.melaju-gateway-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px; cursor: pointer;
    transition: all .2s; margin-bottom: 8px;
    background: #fafafa;
}
.melaju-gateway-option:has(input:checked) {
    border-color: #2563EB; background: #eff6ff;
}
.melaju-gateway-option input { accent-color: #2563EB; flex-shrink: 0; }
.melaju-gateway-name { flex: 1; font-weight: 500; font-size: .9rem; color: #1e293b; }
.melaju-gateway-arrow { color: #94a3b8; font-size: .9rem; }

/* CTA Button */
.mlj-co-cta-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    color: #fff; border: none;
    border-radius: 12px;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; margin-bottom: 12px;
    transition: opacity .2s, transform .1s;
    letter-spacing: .01em;
}
.mlj-co-cta-btn:hover   { opacity: .92; }
.mlj-co-cta-btn:active  { transform: scale(.98); }
.mlj-co-cta-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Terms & Trust */
.mlj-co-terms {
    font-size: .74rem; color: #94a3b8;
    text-align: center; margin: 0 0 14px;
    line-height: 1.5;
}
.mlj-co-terms a { color: #64748b; }
.mlj-co-trust {
    display: flex; justify-content: center;
    gap: 14px; flex-wrap: wrap;
}
.mlj-co-trust span { font-size: .74rem; color: #94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .mlj-co-layout {
        grid-template-columns: 1fr;
        margin: 16px auto;
        padding: 0 16px 40px;
        gap: 0;
    }
    .mlj-co-left { order: 1; }
    .mlj-co-right { order: 2; }
    .mlj-co-card-sticky { position: static; }
    .mlj-co-field-grid { grid-template-columns: 1fr; }
    .mlj-co-topbar-inner { padding: 0 16px; }
}
