/* Portal gantiwifi.gopoh.net — warna sama dengan acsbo/vpn.gopoh.net */
:root {
  --navy: #0F2A44; --biru: #1A6FB5; --biru-muda: #EEF4FB; --latar: #F4F7FB; --putih: #FFFFFF;
  --teks: #0F2A44; --teks-2: #3C4D63; --redup: #52637A; --garis: #DCE3EC; --garis-2: #9DB3CC;
  --hijau: #1E8E4F; --hijau-teks: #1E6B3E; --hijau-latar: #E3F4EA;
  --kuning-latar: #FFF6E5; --kuning-teks: #6B4A00; --kuning-ikon: #8A6100;
  --merah: #B3261E; --merah-latar: #FDECEA;
  --tampilan: 'Space Grotesk', Inter, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--latar); color: var(--teks); font: 400 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--biru); }
button { font: inherit; }
:focus-visible { outline: 3px solid #9CC6F0; outline-offset: 2px; }

.tata { min-height: 100vh; display: flex; }
.samping { display: none; }
.kolom { flex: 1; display: flex; justify-content: center; }
.layar { width: 100%; max-width: 460px; min-height: 100vh; display: flex; flex-direction: column; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

.atas { display: flex; align-items: center; gap: 8px; padding: 16px 16px 0; min-height: 60px; }
.atas.pisah { justify-content: space-between; padding: 16px 20px 0; }
.merek { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.merek b { font-family: var(--tampilan); font-size: 17px; display: block; }
.merek small { display: block; font-size: 12px; color: var(--redup); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.dua-baris b { display: block; font-size: 15px; }
.dua-baris small { display: block; font-size: 12px; color: var(--redup); }
.kembali { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--teks); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kembali svg { width: 22px; height: 22px; }

.isi { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 28px 20px 24px; }
.judul { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font-family: var(--tampilan); font-size: 28px; line-height: 1.18; font-weight: 700; text-wrap: balance; }
.judul p { margin: 0; color: var(--teks-2); }
.sub { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.redup { color: var(--redup); }
.kecil { font-size: 13px; margin: 0; }
.tengah { text-align: center; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.kaki { padding: 0 20px 24px; font-size: 12px; color: var(--redup); text-align: center; }

.kartu { background: var(--putih); border: 1px solid var(--garis); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
label, legend { font-size: 14px; font-weight: 600; }
legend { padding: 0; margin-bottom: 10px; }
input { width: 100%; height: 52px; border: 1.5px solid var(--garis-2); border-radius: 12px; padding: 0 14px; font: 500 17px Inter, system-ui, sans-serif; color: var(--teks); background: var(--putih); }
input:focus { outline: none; border-color: var(--biru); box-shadow: 0 0 0 4px #D6E6F6; }
input[aria-invalid="true"] { border-color: var(--merah); }
#nomor { font-size: 18px; letter-spacing: .4px; }
.bantu { font-size: 13px; color: var(--redup); line-height: 1.45; }
.isian { display: flex; flex-direction: column; gap: 8px; }

.tombol { height: 52px; border: 0; border-radius: 12px; background: var(--biru); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; width: 100%; }
.tombol:hover { background: #155C97; }
.tombol:disabled { opacity: .6; cursor: wait; }
.tombol.gelap { background: var(--navy); }
.tautan { border: 0; background: none; color: var(--biru); font-weight: 600; font-size: 14px; padding: 12px 4px; cursor: pointer; }

.galat { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--merah-latar); color: var(--merah); font-size: 14px; }
.info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.info.kuning { background: var(--kuning-latar); color: var(--kuning-teks); }
.info.kuning svg { color: var(--kuning-ikon); margin-top: 1px; }
.info a { color: inherit; }

.ikon-besar { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.ikon-besar svg { width: 28px; height: 28px; }
.ikon-besar.bulat { width: 72px; height: 72px; border-radius: 50%; }
.ikon-besar.bulat svg { width: 36px; height: 36px; stroke-width: 2.4; }
.hijau { background: var(--hijau-latar); color: var(--hijau); }

.kotak-kode { border: 0; margin: 0; padding: 0; }
.enam { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.enam input { height: 58px; padding: 0; text-align: center; font: 700 24px var(--tampilan); min-width: 0; }
#f-kode { display: flex; flex-direction: column; gap: 14px; }
.baris-antara { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }

.daftar { display: flex; flex-direction: column; gap: 14px; }
.modem { background: var(--putih); border: 1px solid var(--garis); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.modem.utama { border: 1.5px solid var(--biru); }
.modem-atas { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.label-kecil { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--redup); }
.ssid { display: block; font-family: var(--tampilan); font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.nyala { background: var(--hijau-latar); color: var(--hijau-teks); }
.status.mati { background: #EEF1F5; color: var(--redup); }
.angka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.angka div { background: var(--latar); border-radius: 12px; padding: 10px 12px; }
.angka small { display: block; font-size: 12px; color: var(--redup); }
.angka b { font-size: 16px; }

#f-atur { display: flex; flex-direction: column; gap: 18px; }
.sandi { display: flex; align-items: center; border: 1.5px solid var(--garis-2); border-radius: 12px; background: var(--putih); padding-left: 14px; }
.sandi:focus-within { border-color: var(--biru); box-shadow: 0 0 0 4px #D6E6F6; }
.sandi input { border: 0; padding: 0; height: 50px; box-shadow: none; }
.sandi input:focus { box-shadow: none; }
.sandi button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--redup); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kekuatan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kekuatan i { height: 5px; border-radius: 3px; background: var(--garis); }
.kekuatan[data-n="1"] i:nth-child(-n+1), .kekuatan[data-n="2"] i:nth-child(-n+2) { background: #D9822B; }
.kekuatan[data-n="3"] i:nth-child(-n+3), .kekuatan[data-n="4"] i { background: var(--hijau); }

.ringkas { gap: 10px; padding: 14px 18px; }
.baris { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.baris b { overflow-wrap: anywhere; text-align: right; }
.garis { height: 1px; background: #E6EBF1; }
.salin { display: flex; align-items: center; gap: 2px; }
.salin button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--biru); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.langkah, .langkah-samping { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--teks-2); font-size: 14px; }
.langkah li, .langkah-samping li { display: flex; gap: 12px; align-items: flex-start; }
.langkah span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); }

@media (min-width: 960px) {
  .samping { display: flex; flex-direction: column; gap: 36px; flex: 0 0 42%; max-width: 560px; background: var(--navy); color: #fff; padding: 48px 5%; }
  .merek-terang b { font-family: var(--tampilan); font-size: 20px; }
  .merek-terang .logo { background: var(--biru); width: 40px; height: 40px; }
  .samping h2 { margin: 0; font-family: var(--tampilan); font-size: 40px; line-height: 1.12; text-wrap: balance; }
  .langkah-samping { color: #D5E1EE; font-size: 16px; gap: 20px; }
  .langkah-samping span { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #5E86B0; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .kolom { align-items: flex-start; padding: 40px 24px; }
  .layar { min-height: 0; background: var(--putih); border: 1px solid var(--garis); border-radius: 20px; }
  .layar .merek { display: none; }
  .layar > .atas:has(> .merek:only-child) { display: none; }
  .atas.pisah { justify-content: flex-end; }
  .isi { padding: 28px 32px 28px; }
  .kaki { padding: 0 32px 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
