/* ── Reset & base ─────────────────────────────────────────────────────────── */
.kiam-card, .kiam-dashboard { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; box-sizing: border-box; }
.kiam-card *, .kiam-dashboard * { box-sizing: border-box; }

/* ── Card container ───────────────────────────────────────────────────────── */
.kiam-card {
    max-width: 520px; margin: 32px auto; background: #fff;
    border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.10);
    position: relative; z-index: 1;
}
.kiam-card-header {
    background: linear-gradient(135deg, #e85d04 0%, #f97316 100%);
    color: #fff; padding: 32px 36px 24px; text-align: center;
    border-radius: 20px 20px 0 0;
}
.kiam-logo-icon { font-size: 40px; margin-bottom: 8px; }
.kiam-card-header h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.kiam-card-header p  { margin: 0; opacity: .85; font-size: 14px; }

/* ── Step ─────────────────────────────────────────────────────────────────── */
.kiam-step { padding: 28px 36px 32px; }
.kiam-step-title {
    font-size: 14px; font-weight: 700; color: #6b7280; text-transform: uppercase;
    letter-spacing: .5px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.kiam-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: #e85d04;
    color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.kiam-form { display: flex; flex-direction: column; gap: 14px; }
.kiam-field { display: flex; flex-direction: column; gap: 5px; }
.kiam-field label { font-size: 13px; font-weight: 600; color: #374151; }
.kiam-field input[type=text],
.kiam-field input[type=email],
.kiam-field input[type=password] {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e5e7eb;
    border-radius: 10px; font-size: 14px; outline: none; transition: border-color .2s;
    background: #fafafa; color: #111;
}
.kiam-field input:focus { border-color: #e85d04; background: #fff; box-shadow: 0 0 0 3px rgba(232,93,4,.08); }
.kiam-input-wrap { position: relative; }
.kiam-input-wrap input { padding-right: 44px; }
.kiam-toggle-pw {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; opacity: .6;
}
.kiam-toggle-pw:hover { opacity: 1; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.kiam-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none; transition: all .2s; line-height: 1;
}
.kiam-btn-primary { background: linear-gradient(135deg,#e85d04,#f97316); color: #fff; }
.kiam-btn-primary:hover { background: linear-gradient(135deg,#c94e03,#e85d04); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,93,4,.35); color:#fff; }
.kiam-btn-secondary { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }
.kiam-btn-secondary:hover { background: #e5e7eb; color:#111; }
.kiam-btn-outline { background: transparent; color: #e85d04; border: 2px solid #e85d04; padding: 8px 16px; font-size: 13px; }
.kiam-btn-outline:hover { background: #e85d04; color: #fff; }
.kiam-btn-full { width: 100%; }
.kiam-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Paket selection ──────────────────────────────────────────────────────── */
.kiam-paket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.kiam-paket-card {
    border: 2px solid #e5e7eb; border-radius: 14px; padding: 18px 16px; cursor: pointer;
    text-align: center; position: relative; transition: all .2s; background: #fafafa;
}
.kiam-paket-card:hover { border-color: #f97316; }
.kiam-paket-selected { border-color: #e85d04 !important; background: #fff7f0 !important; box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
.kiam-paket-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: #22c55e; color: #fff; font-size: 10px; font-weight: 800;
    padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.kiam-paket-name { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.kiam-paket-harga { font-size: 20px; font-weight: 800; color: #e85d04; margin-bottom: 2px; }
.kiam-paket-durasi { font-size: 12px; color: #6b7280; }

/* ── Metode bayar ─────────────────────────────────────────────────────────── */
.kiam-metode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kiam-metode-card {
    border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px 12px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center; transition: all .2s; background: #fafafa;
}
.kiam-metode-card input[type=radio] { display: none; }
.kiam-metode-card:has(input:checked),
.kiam-metode-selected { border-color: #e85d04 !important; background: #fff7f0 !important; }
.kiam-metode-icon { font-size: 22px; }
.kiam-metode-name { font-size: 13px; font-weight: 700; color: #374151; }
.kiam-metode-desc { font-size: 11px; color: #9ca3af; }

/* ── Payment info ─────────────────────────────────────────────────────────── */
.kiam-payment-info { padding: 0; }
.kiam-payment-success-icon { font-size: 48px; text-align: center; margin-bottom: 8px; }
.kiam-payment-info h3 { text-align: center; font-size: 20px; color: #111; margin: 0 0 6px; }
.kiam-payment-info > p { text-align: center; color: #6b7280; font-size: 14px; margin-bottom: 16px; }
.kiam-bank-info { background: #f8fafc; border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.kiam-bank-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 14px; gap: 8px; flex-wrap: wrap; }
.kiam-bank-row:last-child { border: none; }
.kiam-bank-row span { color: #6b7280; }
.kiam-bank-row strong { color: #111; }
.kiam-bank-total { background: #fff7f0; border-radius: 8px; padding: 10px 12px !important; margin-top: 8px; border: none !important; }
.kiam-bank-total strong { color: #e85d04; font-size: 18px; }
.kiam-copy-btn { background: #e85d04; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; font-weight: 700; }
.kiam-copy-btn:hover { background: #c94e03; }
.kiam-note { font-size: 12px; color: #d97706; background: #fef9c3; padding: 10px 14px; border-radius: 8px; margin: 8px 0; }

/* ── Upload area ──────────────────────────────────────────────────────────── */
.kiam-upload-area {
    border: 2px dashed #d1d5db; border-radius: 12px; padding: 24px;
    text-align: center; cursor: pointer; transition: all .2s; background: #fafafa;
}
.kiam-upload-area:hover, .kiam-upload-area.kiam-drag-over { border-color: #e85d04; background: #fff7f0; }
.kiam-upload-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; color: #9ca3af; font-size: 13px; }
.kiam-upload-placeholder span:first-child { font-size: 28px; }
.kiam-upload-hint { font-size: 11px; }

/* ── Notice ───────────────────────────────────────────────────────────────── */
.kiam-notice {
    padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 14px;
}
.kiam-notice-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.kiam-notice-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.kiam-notice-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.kiam-notice-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }

/* ── Locked box ───────────────────────────────────────────────────────────── */
.kiam-locked-box {
    text-align: center; padding: 48px 32px; background: linear-gradient(135deg,#fff7f0,#fff);
    border: 2px dashed #f97316; border-radius: 20px; margin: 20px 0;
}
.kiam-lock-icon { font-size: 52px; margin-bottom: 12px; }
.kiam-locked-box h3 { font-size: 20px; color: #1a1a2e; margin: 0 0 8px; }
.kiam-locked-box p  { color: #6b7280; font-size: 14px; margin: 0 0 20px; }
.kiam-locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Form footer ──────────────────────────────────────────────────────────── */
.kiam-form-footer { text-align: center; font-size: 13px; color: #6b7280; margin: 16px 0 0; padding: 0 36px 24px; }
.kiam-form-footer a { color: #e85d04; text-decoration: none; font-weight: 600; }
.kiam-form-footer a:hover { text-decoration: underline; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.kiam-dashboard { max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.kiam-dashboard-header {
    display: flex; align-items: center; gap: 16px; background: #fff;
    border-radius: 16px; padding: 20px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 20px;
}
.kiam-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,#e85d04,#f97316);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; flex-shrink: 0;
}
.kiam-dashboard-header h2 { margin: 0 0 4px; font-size: 18px; color: #1a1a2e; }
.kiam-dashboard-header p  { margin: 0; color: #6b7280; font-size: 13px; }
.kiam-dashboard-header .kiam-btn-outline { margin-left: auto; }
.kiam-dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 20px; }
.kiam-stat-card { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-top: 3px solid #e85d04; }
.kiam-status-active { border-top-color: #22c55e; }
.kiam-status-inactive { border-top-color: #ef4444; }
.kiam-stat-label { font-size: 12px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.kiam-stat-value { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.kiam-renew-banner { background: #fff7f0; border: 2px solid #f97316; border-radius: 14px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.kiam-renew-banner p { margin: 0; color: #c94e03; font-size: 14px; font-weight: 500; }
.kiam-section { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.kiam-section h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 16px; }
.kiam-table-wrap { overflow-x: auto; }
.kiam-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kiam-table th { background: #f8fafc; color: #374151; font-weight: 700; font-size: 12px; padding: 10px 12px; text-align: left; border-bottom: 2px solid #e5e7eb; }
.kiam-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.kiam-table tr:last-child td { border: none; }
.kiam-table code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.kiam-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.kiam-badge-success { background: #dcfce7; color: #166534; }
.kiam-badge-warning { background: #fef9c3; color: #854d0e; }
.kiam-badge-danger  { background: #fee2e2; color: #991b1b; }
.kiam-empty { color: #9ca3af; text-align: center; padding: 20px 0; font-size: 14px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .kiam-step { padding: 20px 20px 24px; }
    .kiam-paket-grid { grid-template-columns: 1fr; }
    .kiam-metode-grid { grid-template-columns: 1fr; }
    .kiam-card { margin: 12px; border-radius: 16px; }
    .kiam-bank-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .kiam-dashboard-header { flex-wrap: wrap; }
    .kiam-dashboard-header .kiam-btn-outline { margin-left: 0; }
}

/* ── Trial banner ─────────────────────────────────────────────────────────── */
.kiam-trial-banner {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    background:linear-gradient(135deg,#fef9c3,#fef3c7);
    border:2px solid #f59e0b;border-radius:14px;padding:16px 20px;margin-bottom:20px;flex-wrap:wrap;
}
.kiam-trial-banner strong { font-size:15px;color:#92400e; }

/* ── Promo result ─────────────────────────────────────────────────────────── */
#kiam-harga-final { transition: all .3s; }

/* ── Force full width untuk halaman KiaMember ────────────────────────────── */
/* Override sidebar GeneratePress agar tidak overlap konten */
.kiam-card,
.kiam-dashboard,
.kiam-locked-box {
    position: relative;
    z-index: 100;
    pointer-events: all !important;
}

.kiam-card a,
.kiam-card button,
.kiam-dashboard a,
.kiam-dashboard button {
    position: relative;
    z-index: 101;
    pointer-events: all !important;
}

/* Pastikan tidak ada elemen di atas yang memblokir */
.kiam-card * {
    pointer-events: auto;
}
