/* AI-ANCHOR: CSS_ONB_ACCOUNT — kartu akun (daftar/masuk) + pasang PWA & notifikasi di dalam onboarding (TASK-037).
   Dipakai js/onboarding-account.js saja; token warna/motion dari css/brand.css, ritme spasi 4/8 px, target sentuh >= 44 px.
   Dimuat SETELAH css/onboarding.css supaya bisa menumpang kelas kartu (.cx-card, .cx-card-t) tanpa mengubahnya. */

.oa { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.oa * { min-width: 0; }

/* --- kepala kartu --- */
.oa-head { display: flex; align-items: flex-start; gap: 12px; }
.oa-ico { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(var(--brand-rgb), .15); color: var(--brand2); }
.oa-ico svg { width: 20px; height: 20px; }
.oa-htxt { display: flex; flex-direction: column; gap: 4px; }
.oa-t { margin: 0; font: 800 16px/1.2 var(--font-ui); letter-spacing: -.01em; color: var(--txt); overflow-wrap: anywhere; }
.oa-s { margin: 0; max-width: 46ch; color: var(--mut); font-size: 14px; line-height: 1.5; }
.oa-lead { margin: 0; max-width: 46ch; color: var(--txt); font-size: 14px; line-height: 1.5; }

/* --- link toko yang ditahan --- */
.oa-slug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(var(--brand-rgb), .45); border-radius: var(--radius-md); background: rgba(var(--brand-rgb), .08); }
.oa-slug svg { flex: none; width: 16px; height: 16px; color: var(--brand2); }
.oa-slug b { flex: 1 1 140px; overflow: hidden; color: var(--brand2); font: 700 12px/1.3 var(--font-data); white-space: nowrap; text-overflow: ellipsis; }
.oa-hold { flex: none; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface-btn-primary); color: var(--on-brand); font: 800 10px/1.2 var(--font-data); letter-spacing: .06em; text-transform: uppercase; }
/* TASK-068 B9: baris urgensi jujur di bawah nama toko (nama siapa cepat dia dapat) */
.oa-urg { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--mut); font-size: 12px; line-height: 1.45; }
.oa-urg svg { flex: none; width: 16px; height: 16px; color: var(--brand2); }

/* --- Google --- */
.oa-g { display: flex; justify-content: center; min-height: 44px; }
.oa-g > div { max-width: 100%; }
.oa-gskel { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1px solid var(--line2); border-radius: var(--radius-md); background: var(--card); color: var(--mut); font-size: 12px; }
.oa-or { display: flex; align-items: center; gap: 12px; color: var(--mut); font: 700 10px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.oa-or::before, .oa-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* --- in-app browser (Google OAuth diblokir di WebView) --- */
.oa-inapp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--radius-md); background: var(--card); }
.oa-inapp > svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand2); }
.oa-inapp-t b { display: block; color: var(--txt); font: 700 14px/1.35 var(--font-ui); }
.oa-inapp-t p { margin: 4px 0 0; color: var(--mut); font-size: 12px; line-height: 1.5; }
.oa-copy { grid-column: 2; justify-self: start; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(var(--brand-rgb), .55); border-radius: var(--radius-md); background: transparent; color: var(--brand2); font: 600 14px/1.2 var(--font-ui); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oa-copy:active { transform: scale(.98); }

/* --- form email + password --- */
.oa-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.oa-f { display: flex; flex-direction: column; gap: 8px; }
.oa-lab { color: var(--mut); font: 700 10px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.oa-box { position: relative; display: flex; align-items: center; }
.oa-box input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line2); border-radius: var(--radius-md); background: var(--card); color: var(--txt); font: 500 14px/1.3 var(--font-ui); -webkit-appearance: none; appearance: none; }
.oa-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }
.oa-box input::placeholder { color: var(--mut); }
.oa-eye { position: absolute; right: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--mut); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oa-eye svg { width: 18px; height: 18px; }
.oa-err { margin: 0; padding: 8px 12px; border-left: 3px solid var(--bad); background: rgba(var(--bad-rgb), .1); color: var(--txt); font-size: 12px; line-height: 1.45; }

/* --- tombol utama --- */
.oa-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 24px; border: 0; border-radius: var(--radius-md); background: var(--surface-btn-primary); color: var(--on-brand); font: 800 14px/1.2 var(--font-ui); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease); }
.oa-cta:active { transform: scale(.98); }
.oa-cta:disabled { opacity: .6; cursor: progress; }
.oa-cta.ghost { border: 1px solid var(--line2); background: var(--card2); color: var(--txt); font-weight: 700; }
.oa-cta.busy::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(var(--on-brand-rgb), .35); border-top-color: var(--on-brand); border-radius: 50%; animation: oa-spin .8s linear infinite; }
@keyframes oa-spin { to { transform: rotate(360deg); } }

.oa-note { margin: 0; max-width: 46ch; color: var(--mut); font-size: 12px; line-height: 1.5; }
.oa-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.oa-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--brand2); font: 600 14px/1.2 var(--font-ui); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oa-link.mut { color: var(--mut); font-weight: 500; }
.oa-link:active { opacity: .7; }

/* --- selesai --- */
.oa-done { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--brand2); font: 700 14px/1.4 var(--font-ui); animation: oa-pop .4s var(--motion-ease) both; }
.oa-done svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
@keyframes oa-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* --- kartu PWA --- */
.oa-body { display: flex; flex-direction: column; gap: 12px; }
.oa-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.oa-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; color: var(--txt); font-size: 14px; line-height: 1.5; }
.oa-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brand2); }

.oa-ios { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.oa-phone { position: relative; width: 88px; height: 136px; padding: 8px; border: 2px solid var(--line2); border-radius: 10px; background: var(--bg); }
.oa-phone-bar { display: block; overflow: hidden; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--card2); color: var(--mut); font: 600 10px/1.2 var(--font-data); white-space: nowrap; text-overflow: ellipsis; }
.oa-phone-scr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 88px; }
.oa-phone-scr b { color: var(--brand2); font: 800 10px/1 var(--font-ui); letter-spacing: .06em; }
.oa-phone-ico { width: 24px; height: 24px; border-radius: 6px; background: var(--surface-btn-primary); }
.oa-share { position: absolute; right: 8px; bottom: 6px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--brand-rgb), .18); color: var(--brand2); animation: oa-tap 2.4s var(--motion-ease) infinite; }
@keyframes oa-tap { 0%, 60%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .5); } 30% { transform: translateY(-3px); box-shadow: 0 0 0 8px rgba(var(--brand-rgb), 0); } }
.oa-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: oa; }
.oa-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--txt); font-size: 12px; line-height: 1.45; }
.oa-steps i { display: flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--brand-rgb), .18); color: var(--brand2); font: 800 10px/1 var(--font-data); font-style: normal; }

/* --- layar sempit (320 px) --- */
@media (max-width: 359px) {
	.oa-t { font-size: 16px; }
	.oa-ios { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; }
	.oa-phone { width: 76px; height: 118px; }
	.oa-foot { flex-direction: column; align-items: stretch; }
	.oa-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.oa-share, .oa-cta.busy::after { animation: none; }
	.oa-done { animation: none; }
	.oa-cta { transition: none; }
}

/* TASK-070 L7: baris persetujuan Terms & Privacy di kartu daftar */
.oa-legal { display: flex; flex-direction: column; gap: 4px; }
.oa-legal-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.oa-legal-links .oa-link { display: inline-flex; align-items: center; min-height: 44px; }
