/* 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; }
/* AI-ANCHOR: CSS_OA_TAP — TASK-092 (owner #201): visual "tangan mengetuk" + riak di tombol utama kartu akun
   (dipakai untuk "Yes, alert me" di layar pra-izin notifikasi). Kembaran ringkas dari CSS_TAP_HINT (css/start.css,
   TASK-079) yang disetel untuk tombol .oa-cta setinggi 52 px. Murni ::before/::after di luar alur layout
   (pointer-events:none), hanya transform/opacity. JS_OA_TAP menambah .tapx saat tombol di luar layar / tab
   tersembunyi → animasi dijeda. Tombol disabled & prefers-reduced-motion → tangan diam. */
.oa-tap { position: relative; animation: oa-press 2600ms cubic-bezier(.2, .8, .2, 1) infinite; }
.oa-tap:active, .oa-tap:disabled { animation: none; }
.oa-tap::before,
.oa-tap::after { content: ""; position: absolute; left: 50%; pointer-events: none; }
.oa-tap::before { top: calc(100% - 34px); width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95), 0 0 24px rgba(255, 255, 255, .45); opacity: 0; transform: scale(.2); animation: oa-ring 2600ms cubic-bezier(.2, .8, .2, 1) infinite; }
.oa-tap::after { top: calc(100% - 16px); width: 40px; height: 40px; margin-left: -19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.5 2a2 2 0 0 0-2 2v8.4L8.2 11A2 2 0 0 0 5 13.4l3.4 4.9A6.5 6.5 0 0 0 13.8 21h1A5.2 5.2 0 0 0 20 15.8V9.6a1.8 1.8 0 0 0-2.9-1.4 1.8 1.8 0 0 0-2.8-1.3 1.8 1.8 0 0 0-.8-.6V4a2 2 0 0 0-2-2Z' fill='%23FFFFFF' stroke='%230A1A4A' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E") 50% / contain no-repeat; filter: drop-shadow(0 6px 14px rgba(3, 10, 32, .55)); opacity: 0; transform: translate(10px, 14px); transform-origin: 48% 8%; animation: oa-hand 2600ms cubic-bezier(.2, .8, .2, 1) infinite; }
.oa-tap.tapx, .oa-tap.tapx::before, .oa-tap.tapx::after { animation-play-state: paused; }
.oa-tap:disabled::before, .oa-tap:disabled::after { opacity: 0; animation: none; }
@keyframes oa-hand {
	0% { opacity: 0; transform: translate(10px, 14px) scale(.9); }
	9% { opacity: 1; transform: translate(0, 0) scale(1); }
	17% { transform: translate(0, 3px) scale(.86); }
	25% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(0, 3px) scale(.86); }
	41%, 68% { opacity: 1; transform: translate(0, 0) scale(1); }
	82%, 100% { opacity: 0; transform: translate(10px, 14px) scale(.9); }
}
@keyframes oa-ring {
	0%, 15% { opacity: 0; transform: scale(.2); }
	21% { opacity: .95; transform: scale(.45); }
	48%, 100% { opacity: 0; transform: scale(1.9); }
}
@keyframes oa-press {
	0%, 12% { transform: scale(1); }
	17% { transform: scale(.975); }
	22% { transform: scale(1); }
	31% { transform: scale(.975); }
	38%, 100% { transform: scale(1); }
}
/* ruang untuk tangan supaya tidak menempel ke elemen berikutnya (tangan menjorok ~24 px di bawah tombol) */
.oa-body .oa-tap { margin-bottom: 24px; }

.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-tap { animation: none; }
	.oa-tap::before { display: none; }
	.oa-tap::after { opacity: 1; transform: none; 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; }
