/* ==========================================================
   AKUN TMOST.ID — gaya tampilan
   Sistem desain keluarga tmost.id: latar putih, Plus Jakarta Sans, teks navy,
   kartu putih radius 16px. Identitas: logo THE MOST IDN (glitch magenta/cyan)
   di atas navy #051336. Logo tiap tools di assets/brand/apps/.
   Ganti warna cukup di :root.
   ========================================================== */
:root {
  color-scheme: light;
  --navy:    #051336;   /* panel brand, tombol utama */
  --navy-2:  #0B1F55;
  --ink:     #06174B;   /* teks */
  --magenta: #FF00BF;
  --cyan:    #00E6F6;
  --grad: linear-gradient(120deg, var(--magenta) 0%, var(--cyan) 100%);

  --bg: #FFFFFF;
  --muted: #55607F;
  --line: #E6E8F0;
  --soft: #F4F6FA;
  --radius: 16px;
  --ok: #0C6B46;
  --danger: #A3173A;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: rgba(5, 19, 54, .35); }
a:hover { color: #9E0076; text-decoration-color: currentColor; }
h1, h2 { line-height: 1.2; margin: 0 0 .35em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 800; }
h2 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   Tata letak 'auth' — panel brand navy + panel form
   ========================================================== */
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 42%) 1fr; }

.side {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(520px 420px at 0% 0%, rgba(255, 0, 191, .22), transparent 60%),
    radial-gradient(560px 460px at 100% 100%, rgba(0, 230, 246, .18), transparent 60%),
    var(--navy);
}
/* garis glitch tipis di tepi kanan */
.side::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--magenta), var(--cyan));
}
.side-in { position: relative; height: 100%; display: flex; flex-direction: column; gap: 32px; padding: 44px 48px 28px; max-width: 560px; margin-left: auto; }
.side-brand { display: inline-block; width: 210px; }
.brand-logo { display: block; width: 100%; height: auto; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.side-title { margin: 0 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.side-text { margin: 0; color: #C9D1EA; max-width: 420px; }
.side-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-tools li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.side-tools span { display: flex; flex-direction: column; line-height: 1.3; }
.side-tools b { font-size: .92rem; letter-spacing: .02em; }
.side-tools small { color: #AEB8D6; font-size: .8rem; }
.side-tools .app-icon { width: 34px; height: 34px; }
.side-foot { margin: auto 0 0; font-size: .78rem; color: #8C97BB; }

.panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.panel-in { width: 100%; max-width: 420px; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side::after { top: auto; left: 0; width: auto; height: 4px; }
  .side-in { max-width: none; margin: 0; padding: 22px 20px 26px; gap: 14px; }
  .side-brand { width: 150px; }
  .side-title { font-size: 1.25rem; margin-bottom: 0; }
  .side-text, .side-tools, .side-foot, .eyebrow { display: none; }
  .panel { align-items: flex-start; padding: 28px 18px 40px; }
}

/* ==========================================================
   Tata letak 'page' — bilah atas navy + kartu lebar (profil)
   ========================================================== */
.l-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--soft); }
.topbar { background: var(--navy); border-bottom: 4px solid transparent; border-image: var(--grad) 1; }
.topbar-in { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar-brand .brand-logo { width: 132px; }
.brand-label { color: #C9D1EA; font-weight: 600; font-size: .92rem; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(6, 23, 75, .06); padding: 28px; }
.foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 0 16px 28px; }
@media (max-width: 560px) { .card { padding: 20px 16px; } .topbar-brand .brand-logo { width: 112px; } }

/* ---------- "Lanjut ke <logo tools>" ---------- */
.app-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); font-weight: 600;
}
.app-wordmark { display: block; height: 22px; width: auto; flex: none; }
.app-wordmark-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.app-icon { width: 26px; height: 26px; border-radius: 8px; flex: none; display: inline-grid; place-items: center; object-fit: contain; }
.app-icon-letter { background: var(--app, var(--navy)); color: #fff; font-weight: 800; font-size: .8rem; }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: #7C8BEA; box-shadow: 0 0 0 4px rgba(0, 230, 246, .18); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.row-between h1, .row-between h2 { margin: 0; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .inline-form { flex-direction: column; } }

/* ---------- Tombol ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  border-radius: 12px; padding: 12px 18px; transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--navy-2); color: #fff; box-shadow: -2px 2px 0 var(--cyan), 2px -2px 0 var(--magenta); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 10px; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-danger { background: #fff; color: var(--danger); border-color: #F3C9D2; }
.btn-danger:hover { background: #FFF4F6; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }

/* ---------- Pesan ---------- */
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #EDFAF4; border-color: #BDE9D5; color: var(--ok); }
.alert-error   { background: #FFF4F6; border-color: #F3C9D2; color: var(--danger); }
.alert-info    { background: #E9FCFE; border-color: #B5F3F8; color: #0A4F5C; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-head h1 { margin: 0; font-size: 1.5rem; }
.profile-head p { margin: 0; overflow-wrap: anywhere; }
.avatar {
  width: 58px; height: 58px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.5rem;
  box-shadow: -3px 3px 0 var(--cyan), 3px -3px 0 var(--magenta);
}
.section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; }
.info dt { color: var(--muted); font-size: .88rem; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; margin: 0 4px; vertical-align: 1px; }
.tag-ok   { background: #EDFAF4; color: var(--ok); }
.tag-warn { background: #FFF6DB; color: #7A5A00; }
.tag-pro  { background: #FFE5F7; color: #9E0076; }
.tag-lg   { font-size: .85rem; padding: 4px 12px; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sessions li:last-child { border-bottom: 0; }
.device-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tool {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.tool:hover { border-color: #C9D0E6; box-shadow: 0 6px 18px rgba(6, 23, 75, .08); color: var(--ink); }
.tool .app-wordmark { height: 24px; width: auto; align-self: flex-start; }  /* jangan ikut meregang */
.tool small { font-size: .8rem; }
@media (max-width: 560px) {
  .info { grid-template-columns: 1fr; gap: 2px; } .info dd { margin-bottom: 10px; }
  .avatar { width: 48px; height: 48px; font-size: 1.25rem; }
}

/* ---------- Admin (v.02) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; background: #fff; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.6rem; line-height: 1.2; }
.kpi small { font-size: .78rem; color: var(--muted); }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-filter input { flex: 1; min-width: 180px; }
select { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.acc-off { opacity: .65; }
.acc-main { flex: 1; min-width: 240px; overflow-wrap: anywhere; }
.acc-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.acc-actions form { display: flex; gap: 6px; }
.pro-form input { width: 170px; padding: 7px 10px; font-size: .85rem; border-radius: 10px; }
.tag-admin { background: #E8ECFA; color: var(--navy); }
.tag-off { background: #FFF4F6; color: var(--danger); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.topbar-actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .acc-actions { align-items: stretch; width: 100%; } .pro-form input { flex: 1; width: auto; } }
.pro-form input[type=date] { font: inherit; font-size: .85rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.pro-form { flex-wrap: wrap; justify-content: flex-end; }
