:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #0b0d10; color: #f5f7fa; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
.wrap { max-width: 860px; margin: 0 auto; padding: 1.2rem 1rem 3rem; padding-top: max(1.2rem, env(safe-area-inset-top)); }
h1 { font-size: 1.6rem; margin: .4rem 0; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.card h2 { margin-top: 0; }
.lead { color: #c9d1d9; line-height: 1.5; }
.muted { color: #8b949e; }
.small { font-size: .85rem; }
a { color: #58a6ff; }
input, select, button, .btn { font: inherit; color: inherit; background: #161b22; border: 1px solid #2a313b; border-radius: 8px; padding: .55rem .8rem; }
button, .btn { cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .5; }
.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.card { background: #11151a; border: 1px solid #1c2128; border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0; }
#authCard { max-width: 380px; }
#authForm, #resetForm { display: flex; flex-direction: column; gap: .7rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: #c9d1d9; }
.tabs { display: flex; gap: .4rem; margin-bottom: .9rem; }
.tabs button { flex: 1; }
.tabs button.on { background: #21262d; border-color: #58a6ff; }
.or { text-align: center; color: #8b949e; font-size: .85rem; margin: .8rem 0; }
#googleBtn { display: flex; justify-content: center; }
.msg { color: #f0883e; min-height: 1.2em; margin: 0; font-size: .9rem; }
.notice { background: #0d2a17; border: 1px solid #238636; border-radius: 10px; padding: .7rem 1rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; padding-top: 12px; }
.plan { position: relative; background: linear-gradient(180deg, #141a22 0%, #10141a 100%); border: 1px solid #222a35;
  border-radius: 16px; padding: 1.3rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.plan:hover { transform: translateY(-2px); border-color: #2f3a48; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.plan h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #c9d1d9; letter-spacing: .02em; }
.plan p { margin: .1rem 0; color: #e6edf3; }
.plan p.small { color: #8b949e; }
.plan button { margin-top: auto; width: 100%; padding: .65rem; border-radius: 10px; font-weight: 600; }
.plan .price { margin: .2rem 0 .4rem; }
.plan p.small { margin-bottom: .9rem; }
/* Paket unggulan: sorotan lembut, bukan kotak biru polos */
.plan.best { background: linear-gradient(180deg, #16233a 0%, #111826 100%); border-color: #2d4a7a;
  box-shadow: 0 0 0 1px rgba(56,139,253,.15), 0 12px 32px rgba(31,111,235,.18); }
.badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: linear-gradient(90deg, #1f6feb, #8957e5); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .03em; padding: .22rem .7rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(31,111,235,.35); }
.plan:not(.best) button.primary { background: #21262d; border-color: #30363d; }
.plan:not(.best) button.primary:hover { background: #2b323b; }
.price { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.price span { font-size: .85rem; font-weight: 400; color: #8b949e; }
.top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.spacer { flex: 1; }
.big { font-size: 2rem; font-weight: 700; }
.bar { height: 10px; background: #21262d; border-radius: 6px; overflow: hidden; margin: .6rem 0; }
#barFill { height: 100%; background: #3fb950; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.orders { width: 100%; border-collapse: collapse; font-size: .9rem; }
.orders th, .orders td { text-align: left; padding: .5rem; border-bottom: 1px solid #1c2128; }
.orders th { color: #8b949e; font-weight: 600; }
.st-paid { color: #3fb950; } .st-failed { color: #f85149; } .st-pending { color: #d29922; }
.foot { margin-top: 2.5rem; font-size: .85rem; color: #8b949e; }
.doc { line-height: 1.6; color: #c9d1d9; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: 1rem 0 .4rem; }
.use { display: flex; gap: .8rem; align-items: flex-start; background: #11151a; border: 1px solid #1c2128; border-radius: 12px; padding: .9rem 1rem; line-height: 1.45; }
.use .ico { font-size: 1.5rem; line-height: 1; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.steps > li { counter-increment: s; position: relative; padding: .8rem 1rem .8rem 3.2rem; background: #11151a; border: 1px solid #1c2128; border-radius: 12px; line-height: 1.5; color: #c9d1d9; }
.steps > li::before { content: counter(s); position: absolute; left: 1rem; top: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: linear-gradient(135deg, #1f6feb, #8957e5); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.steps ul { margin: .4rem 0 0; padding-left: 1.1rem; color: #8b949e; font-size: .92rem; }

/* Riwayat rekaman */
.rec { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: inherit; background: #11151a; border: 1px solid #1c2128;
  border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0; }
.rec:hover { border-color: #30363d; }
.rec .t { flex: 1; min-width: 0; }
.rec .p { color: #8b949e; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: .75rem; padding: .15rem .5rem; border-radius: 99px; background: #1c2a3d; color: #79b8ff; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.danger { background: transparent; border-color: #5a1e1e; color: #f85149; }
.summary { line-height: 1.55; }
.summary h3 { font-size: 1rem; margin: 1rem 0 .3rem; color: #79b8ff; }
.summary h3:first-child { margin-top: 0; }
.summary ul { margin: .2rem 0; padding-left: 1.2rem; }
.summary li { margin: .2rem 0; }
.tx { overflow-x: auto; }
.tx table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tx th, .tx td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid #1c2128; }
.tx th { color: #8b949e; font-weight: 500; }
.tx td:first-child { color: #8b949e; width: 2.5rem; }
.tx td:nth-child(3) { color: #c9d1d9; }

/* Halaman masuk: laptop = berdampingan (A), HP = logo di tengah (B) */
.hero { display: grid; gap: 1.2rem; grid-template-areas: "intro" "card" "uses"; margin: .6rem 0 1rem; }
.hero .intro { grid-area: intro; } .hero #authCard { grid-area: card; } .hero .uses { grid-area: uses; margin: 0; }
.brand { font-weight: 800; font-size: .95rem; letter-spacing: .04em; background: linear-gradient(90deg, #58a6ff, #a371f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbrand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: .6rem; }
.topbrand .logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #1f6feb, #8957e5); box-shadow: 0 10px 30px rgba(137,87,229,.35); }
.topbrand h1 { margin: .7rem 0 .2rem; font-size: 1.8rem; }
.topbrand p { color: #8b949e; margin: 0; max-width: 340px; }
.d-only { display: none; }
#authCard.auth2 { max-width: 420px; width: 100%; margin: 0 auto; border-radius: 20px; padding: 1.4rem;
  background: rgba(22,27,34,.8); border: 1px solid #2a313b; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth2 input { background: #0d1117; border: 1px solid #2a313b; border-radius: 10px; padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; }
.auth2 input:focus { outline: none; border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(88,166,255,.18); }
.auth2 .tabs { background: #0d1117; border: 1px solid #222a35; border-radius: 12px; padding: 4px; gap: 4px; }
.auth2 .tabs button { border: 0; background: transparent; border-radius: 9px; padding: .55rem; color: #8b949e; font-weight: 600; }
.auth2 .tabs button.on { background: linear-gradient(135deg, #1f6feb, #8957e5); color: #fff; border: 0; }
.auth2 button.primary { background: linear-gradient(135deg, #1f6feb, #8957e5); border: 0; border-radius: 10px; padding: .8rem; font-weight: 700; box-shadow: 0 8px 24px rgba(31,111,235,.35); }
body.masuk { background: radial-gradient(700px 360px at 50% -80px, rgba(31,111,235,.25), transparent), #0b0d10; background-repeat: no-repeat; }
@media (min-width: 860px) {
  .m-only { display: none; } .d-only { display: block; }
  body.masuk { background: #0b0d10; }
  .wrap.wide { max-width: 1040px; }
  .hero { grid-template-columns: 1.15fr .85fr; grid-template-areas: "intro card" "uses card"; column-gap: 2.2rem; row-gap: 1rem; align-items: center; margin: 1.5rem 0 1rem; }
  .hero .intro h1 { font-size: 2.4rem; line-height: 1.15; margin: .4rem 0 .6rem; }
  .hero .uses { align-self: start; }
  #authCard.auth2 { max-width: none; border: 1px solid transparent; border-radius: 18px;
    background-image: linear-gradient(180deg, #141a22, #10141a), linear-gradient(135deg, #1f6feb, #8957e5);
    background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 20px 60px rgba(31,111,235,.18); }
}
