/* Halaman pengguna (Riwayat, Bookmark, Akun) — 2026-11-07 */
.up-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.up-head h1 { font-size: 22px; margin: 0; letter-spacing: -.2px; }
.up-head h1 span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.up-btn, .up-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap; border: 0;
}
.up-btn { background: var(--accent-grad, #ff7a3d); color: #1a0d05; }
.up-btn:hover { text-decoration: none; filter: brightness(1.06); }
.up-ghost { background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid rgba(255,255,255,0.1); }
.up-ghost:hover { text-decoration: none; border-color: rgba(255,122,61,0.45); }
.up-ghost.danger { color: #ff9b8a; }
.up-ghost.danger:hover { border-color: rgba(255,107,107,0.6); }
.up-btn.sm, .up-ghost.sm { padding: 7px 13px; font-size: 12.5px; }
.up-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(255,255,255,0.08); color: var(--muted); cursor: pointer; padding: 0;
}
.up-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.up-ico:hover { color: var(--ink); border-color: rgba(255,255,255,0.2); }
.up-ico.hist-del:hover { color: #ff8a80; border-color: rgba(255,107,107,0.5); }
.up-ico.bm-toggle.is-bookmarked { color: #ff8a4c; border-color: rgba(255,122,61,0.5); }
.up-ico.bm-toggle.is-bookmarked svg { fill: rgba(255,122,61,0.35); }

.up-tools { display: flex; gap: 8px; margin: 0 0 18px; }
.up-tools input[type=search] {
  flex: 1; min-width: 0; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: var(--ink); font-size: 14px;
}
.up-tools input[type=search]:focus { outline: none; border-color: var(--accent); }
.up-tools select {
  height: 40px; padding: 0 14px; border-radius: 999px; background: #151821; color: var(--ink);
  border: 1px solid rgba(255,255,255,0.09); font: inherit; font-size: 13.5px;
}
.up-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.up-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-grad, #ff7a3d); }

.up-empty { text-align: center; padding: 48px 16px; color: var(--muted); max-width: 420px; margin: 0 auto; }
.up-empty svg { width: 44px; height: 44px; fill: none; stroke: #ff8a4c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.up-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.up-empty p { margin: 0 0 16px; font-size: 14px; }
.up-empty-act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.up-more { display: block; margin: 18px auto 0; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid rgba(255,255,255,0.1); font: inherit; font-size: 13.5px; cursor: pointer; grid-column: 1 / -1; }
.up-more:hover { border-color: rgba(255,122,61,0.45); }

/* Riwayat */
.hist-list { display: flex; flex-direction: column; }
.hist-grp { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; letter-spacing: .1px; }
.hist-grp:first-child { margin-top: 0; }
.hist-row {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px;
}
.hist-cover img, .hist-cover .ph { width: 52px; height: 74px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #1a1e27; color: var(--muted); }
.hist-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hist-title { color: var(--ink); font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-title:hover { color: #ffb380; text-decoration: none; }
.hist-meta { font-size: 12.5px; color: var(--muted); }
.hist-info .up-bar { max-width: 220px; }
.hist-act { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* Bookmark */
.fchip-new { border-color: rgba(255,122,61,0.5) !important; color: #ffb380 !important; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 14px; }
.bm-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: opacity .18s ease, transform .18s ease; }
.bm-card.gone { opacity: 0; transform: scale(.96); }
.bm-cover { position: relative; display: block; aspect-ratio: 160 / 228; border-radius: 12px; overflow: hidden; background: #1a1e27; }
.bm-cover img, .bm-cover .ph { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 28px; }
.bm-new { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--accent-grad, #ff7a3d); color: #1a0d05; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.bm-title { color: var(--ink); font-weight: 700; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-title:hover { color: #ffb380; text-decoration: none; }
.bm-meta { font-size: 12px; color: var(--muted); }
.bm-card .up-btn, .bm-card .up-ghost { align-self: flex-start; margin-top: 2px; }
.bm-done { font-size: 12px; color: #7fd49b; font-weight: 600; }
.bm-more { position: absolute; top: 6px; right: 6px; z-index: 2; }
.bm-more summary {
  list-style: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,12,18,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff;
}
.bm-more summary::-webkit-details-marker { display: none; }
.bm-more summary svg { width: 16px; height: 16px; fill: currentColor; }
.bm-pop {
  position: absolute; right: 0; top: 36px; width: 200px; padding: 10px; border-radius: 12px;
  background: #151821; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 14px 36px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 8px;
}
.bm-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.bm-pop select { height: 34px; border-radius: 8px; background: #0f1218; color: var(--ink); border: 1px solid rgba(255,255,255,0.1); font: inherit; font-size: 13px; padding: 0 8px; }
.bm-pop .bm-del { position: static; width: auto; height: auto; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,107,107,0.35); background: none; color: #ff9b8a; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }

@media (max-width: 720px) {
  .up-head h1 { font-size: 19px; }
  .bm-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .bm-title { font-size: 12.5px; }
  .bm-card .up-btn.sm, .bm-card .up-ghost.sm { padding: 6px 10px; font-size: 11.5px; }
  .hist-row { gap: 10px; padding: 8px; flex-wrap: wrap; }
  .hist-info { flex: 1 1 calc(100% - 64px); }
  .hist-act { flex: 1 1 100%; justify-content: flex-end; padding-left: 62px; }
  .hist-act .up-btn, .hist-act .up-ghost { margin-right: auto; }
  .hist-info .up-bar { max-width: none; }
}
@media (max-width: 380px) { .bm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bm-card { transition: none; } }
.bm-pop select { width: 100%; }
@media (max-width: 720px) {
  .folder-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-right: -12px; padding-right: 12px; }
  .folder-chips::-webkit-scrollbar { display: none; }
  .folder-chips > * { flex: 0 0 auto; }
  .bm-more[open] summary::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 89; }
  .bm-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; z-index: 90; padding: 14px; gap: 10px; }
  .bm-pop select { height: 42px; font-size: 15px; }
  .bm-pop .bm-del { padding: 12px; font-size: 15px; }
}

/* Akun */
.acc2 { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.acc-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  padding: 20px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,122,61,0.16), rgba(255,122,61,0) 60%), rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}
.acc-ava { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #1a0d05; background: var(--accent-grad, #ff7a3d); }
.acc-id { min-width: 0; }
.acc-id h1 { margin: 0; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.acc-stats a { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.25); color: var(--ink); text-decoration: none; }
.acc-stats a:hover { background: rgba(255,122,61,0.12); text-decoration: none; }
.acc-stats b { font-size: 20px; font-weight: 800; }
.acc-stats span { font-size: 12px; color: var(--muted); }
.acc-card2 { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); }
.acc-card2 h2 { margin: 0 0 4px; font-size: 16px; }
.acc-sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.pref-row:first-of-type { border-top: 0; }
.pref-row > span { font-size: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pref-row > span small { font-size: 12.5px; color: var(--muted); }
.pref-row output { color: var(--muted); font-size: 12.5px; margin-left: 6px; display: inline; }
.pref-row.col { flex-direction: column; align-items: stretch; }
.pref-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07); flex: 0 0 auto; }
.pref-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pref-seg button[aria-pressed=true] { background: rgba(255,122,61,0.18); color: #ffb380; box-shadow: inset 0 0 0 1px rgba(255,122,61,0.35); }
.pref-sw { width: 46px; height: 26px; flex: 0 0 46px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.14); position: relative; cursor: pointer; transition: background .15s ease; }
.pref-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.pref-sw[aria-checked=true] { background: var(--accent-grad, #ff7a3d); }
.pref-sw[aria-checked=true]::after { transform: translateX(20px); }
.pref-range { width: 180px; accent-color: #ff7a3d; }
.pref-saved { margin: 4px 0 0; font-size: 12.5px; color: #7fd49b; min-height: 18px; }
.acc-backup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.acc-imp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-imp-name { font-size: 12.5px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-f { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-top: 8px; }
.acc-f label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.acc-f input { height: 42px; padding: 0 14px; border-radius: 10px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: var(--ink); font-size: 14.5px; }
.acc-f input:focus { outline: none; border-color: var(--accent); }
.acc-f input:disabled { opacity: .6; }
.acc-f .up-btn { align-self: flex-start; }
.acc-out { align-self: center; color: var(--muted); font-size: 14px; padding: 10px 18px; margin-bottom: 8px; }
.acc-out:hover { color: #ff9b8a; text-decoration: none; }
.up-ghost[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 720px) {
  .acc-hero { padding: 16px; }
  .acc-ava { width: 52px; height: 52px; font-size: 22px; }
  .acc-id h1 { font-size: 19px; }
  .acc-card2 { padding: 14px 16px; }
  .pref-row { flex-wrap: wrap; gap: 8px 16px; }
  .pref-row > .pref-seg, .pref-range { margin-left: auto; }
  .pref-range { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pref-sw, .pref-sw::after { transition: none; } }

.up-btn[hidden], .up-ghost[hidden], .dt-more[hidden] { display: none !important; }
