:root {
    --obpg-bg: #08111f;
    --obpg-panel: #111d31;
    --obpg-panel-2: #172640;
    --obpg-text: #f5f7fb;
    --obpg-muted: #9dacbf;
    --obpg-accent: #ffd84d;
    --obpg-accent-ink: #1b1600;
    --obpg-danger: #ff6b79;
    --obpg-success: #55d98d;
    --obpg-border: rgba(255,255,255,.1);
}
.obpg-page { min-height: 70vh; padding: 48px 18px; background: var(--obpg-bg); color: var(--obpg-text); }
.obpg-page *, .obpg-dashboard *, .obpg-purchase-form * { box-sizing: border-box; }
.obpg-checkout-card, .obpg-profile-card, .obpg-dashboard-card, .obpg-plan-card, .obpg-purchase-form { width: min(100%, 720px); margin: 0 auto; padding: 28px; border: 1px solid var(--obpg-border); border-radius: 24px; background: linear-gradient(180deg, var(--obpg-panel-2), var(--obpg-panel)); box-shadow: 0 24px 80px rgba(0,0,0,.32); color: var(--obpg-text); }
.obpg-checkout-card { text-align: center; }
.obpg-checkout-brand { display:inline-flex; padding:8px 12px; border-radius:999px; background:var(--obpg-accent); color:var(--obpg-accent-ink); font-weight:800; }
.obpg-eyebrow { margin:18px 0 6px; color:var(--obpg-accent); font-size:.8rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.obpg-checkout-card h1, .obpg-profile-card h1, .obpg-dashboard h2 { color:var(--obpg-text); }
.obpg-order-number, .obpg-muted, .obpg-profile-handle, .obpg-profile-bio, .obpg-checkout-note, .obpg-expiry { color:var(--obpg-muted); }
.obpg-checkout-buyer { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:24px 0; text-align:left; }
.obpg-checkout-buyer div { padding:14px; border:1px solid var(--obpg-border); border-radius:14px; background:rgba(255,255,255,.03); }
.obpg-checkout-buyer span, .obpg-amount-box span { display:block; color:var(--obpg-muted); font-size:.78rem; }
.obpg-checkout-buyer strong { display:block; overflow-wrap:anywhere; }
.obpg-amount-box { margin:20px 0; padding:20px; border-radius:18px; background:rgba(255,216,77,.1); border:1px solid rgba(255,216,77,.25); }
.obpg-amount-box strong { display:block; margin:4px 0; color:var(--obpg-accent); font-size:clamp(1.7rem,5vw,2.6rem); }
.obpg-amount-box small { color:var(--obpg-muted); }
.obpg-qr-wrap { margin:22px auto; }
.obpg-qr-wrap img { display:block; width:min(100%,320px); height:auto; margin:auto; padding:12px; background:#fff; border-radius:20px; }
.obpg-qr-wrap figcaption { margin-top:10px; color:var(--obpg-muted); font-size:.88rem; }
.obpg-payment-status { display:inline-flex; margin:12px 0; padding:10px 14px; border-radius:999px; font-weight:800; background:rgba(255,255,255,.08); }
.obpg-payment-status--paid { color:var(--obpg-success); background:rgba(85,217,141,.12); }
.obpg-payment-status--failed, .obpg-payment-status--expired, .obpg-payment-status--cancelled { color:var(--obpg-danger); background:rgba(255,107,121,.12); }
.obpg-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 18px; border:0; border-radius:12px; background:var(--obpg-accent); color:var(--obpg-accent-ink)!important; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; }
.obpg-button:disabled { opacity:.55; cursor:wait; }
.obpg-button--secondary { background:transparent; border:1px solid var(--obpg-border); color:var(--obpg-text)!important; }
.obpg-button--danger { background:var(--obpg-danger); color:#190207!important; }
.obpg-button--small { min-height:36px; padding:7px 12px; font-size:.86rem; }
.obpg-public-profile { display:flex; justify-content:center; }
.obpg-profile-card { text-align:center; }
.obpg-avatar { display:flex; width:112px; height:112px; margin:0 auto 16px; border-radius:50%; object-fit:cover; border:3px solid var(--obpg-accent); }
.obpg-avatar--placeholder { align-items:center; justify-content:center; background:var(--obpg-panel-2); color:var(--obpg-accent); font-size:2.5rem; font-weight:900; }
.obpg-premium-badge { display:inline-flex; padding:7px 11px; border-radius:999px; background:rgba(255,216,77,.12); color:var(--obpg-accent); font-size:.8rem; font-weight:800; }
.obpg-link-list { display:grid; gap:12px; margin:24px 0; }
.obpg-public-link { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border:1px solid var(--obpg-border); border-radius:14px; background:rgba(255,255,255,.04); color:var(--obpg-text)!important; text-decoration:none; }
.obpg-public-link:hover { transform:translateY(-1px); border-color:rgba(255,216,77,.45); }
.obpg-support-link { display:inline-flex; color:var(--obpg-muted)!important; font-size:.88rem; }
.obpg-dashboard { display:grid; gap:20px; width:min(100%,960px); margin:0 auto; }
.obpg-dashboard-card { width:100%; }
.obpg-dashboard-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.obpg-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.obpg-field { display:grid; gap:7px; }
.obpg-field--full { grid-column:1/-1; }
.obpg-field label { font-weight:700; }
.obpg-field input, .obpg-field textarea, .obpg-field select { width:100%; padding:12px 13px; border:1px solid var(--obpg-border); border-radius:10px; background:rgba(0,0,0,.22); color:var(--obpg-text); font:inherit; }
.obpg-field small { color:var(--obpg-muted); overflow-wrap:anywhere; }
.obpg-checkbox { display:inline-flex; align-items:center; gap:8px; margin:12px 0; }
.obpg-dashboard-links { display:grid; gap:14px; }
.obpg-dashboard-link { padding:16px; border:1px solid var(--obpg-border); border-radius:15px; background:rgba(255,255,255,.025); }
.obpg-dashboard-link > form:last-child { margin-top:10px; }
.obpg-notice { margin:14px 0; padding:13px 15px; border-radius:12px; background:rgba(255,255,255,.08); }
.obpg-notice--error { background:rgba(255,107,121,.12); color:#ffd9dd; }
.obpg-notice--success { background:rgba(85,217,141,.12); color:#c8ffe0; }
.obpg-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.obpg-plan-card { width:100%; }
.obpg-purchase-form { width:100%; margin-top:18px; padding:18px; box-shadow:none; }
.obpg-plan-summary { display:flex; justify-content:space-between; gap:12px; margin:14px 0; }
@media (max-width:640px) {
    .obpg-page { padding:24px 12px; }
    .obpg-checkout-card, .obpg-profile-card, .obpg-dashboard-card { padding:20px; border-radius:18px; }
    .obpg-checkout-buyer, .obpg-form-grid { grid-template-columns:1fr; }
    .obpg-field--full { grid-column:auto; }
    .obpg-dashboard-heading { align-items:flex-start; flex-direction:column; }
}

/* Otakubio authentication */
.obpg-auth-page { min-height:70vh; display:grid; place-items:center; }
.obpg-auth-card { width:min(100%,480px); padding:28px; border:1px solid var(--obpg-border); border-radius:22px; background:var(--obpg-panel); box-shadow:0 18px 60px rgba(0,0,0,.25); }
.obpg-auth-brand { display:inline-flex; margin-bottom:18px; color:var(--obpg-accent)!important; font-weight:900; font-size:1.15rem; text-decoration:none; }
.obpg-auth-card h1 { margin:0 0 8px; }
.obpg-auth-form { display:grid; gap:15px; margin-top:22px; }
.obpg-auth-form .obpg-button { width:100%; }
.obpg-auth-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:18px; font-size:.92rem; }
.obpg-auth-links a { color:var(--obpg-accent)!important; }
.obpg-auth-resend { margin-top:14px; text-align:center; }
.obpg-link-button { border:0; padding:8px; background:transparent; color:var(--obpg-accent); font:inherit; cursor:pointer; text-decoration:underline; }
.obpg-otp-input { text-align:center; font-size:1.8rem!important; letter-spacing:.45em; font-weight:800; }

.obpg-sandbox-box {
    padding: 16px;
    margin: 18px 0;
    background: #fff8d8;
    border: 1px solid #e7ca55;
    border-radius: 12px;
}
.obpg-sandbox-box > strong { color: #725200; }
.obpg-sandbox-box form,
[data-obpg-refresh-form] { margin: 12px 0 0; }
[data-obpg-feedback][data-type="error"] { color: #b4233f; }

.obpg-sandbox-badge{display:inline-flex;margin:0 0 12px;padding:6px 10px;border:1px solid rgba(245,158,11,.35);border-radius:999px;background:rgba(245,158,11,.12);color:#92400e;font-size:11px;font-weight:900;letter-spacing:.08em}.obpg-sandbox-box{border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.08)}

/* v0.4.3 - Aksi checkout berdasarkan sumber transaksi */
.obpg-return-box{margin-top:18px;padding:16px;border:1px solid rgba(99,102,241,.22);border-radius:16px;background:rgba(238,242,255,.78)}
.obpg-return-box strong{display:block;margin-bottom:6px;color:#111827}
.obpg-return-box p{margin:6px 0;color:#52617a;line-height:1.6}
.obpg-return-box--warning{border-color:rgba(245,158,11,.28);background:rgba(255,247,237,.92)}
.obpg-return-box--warning strong{color:#9a3412}
