@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --bg:#f4f1fd; --card:#ffffff;
  --ink:#1e1a2e; --ink-soft:#6b6480; --ink-faint:#a49dba;
  --line:#ece8f7; --line-soft:#f5f2fc;
  --violet:#7c5cdb; --violet-deep:#5f3fc4; --violet-soft:#efeafc;
  --bg-grad-start: #f4f1fd;
  --bg-grad-end: #e9e4f7;
  --robot-stroke: #1e1a2e;
  --robot-fill: rgba(30, 26, 46, 0.08);
  --robot-screen: #1e1a2e;
  --peach:#ff9f6b; --peach-soft:#fff0e6;
  --mint:#3fc48a; --mint-soft:#e4f7ee;
  --rose:#f0648a; --rose-soft:#fde8ee;
  --sky:#4db6e8; --sky-soft:#e2f2fb;
  --grad: linear-gradient(135deg,#8b6cf0 0%,#6f4bd8 55%,#5a37c9 100%);
  --shadow: 0 8px 30px -12px rgba(90,55,201,0.28);
  --shadow-lg: 0 20px 50px -20px rgba(90,55,201,0.45);
  --r-lg:26px; --r-md:18px; --r-sm:13px;
}

body[data-theme="gelap"] {
  --bg:#141220; --card:#211d33;
  --ink:#f2effa; --ink-soft:#b0a9c8; --ink-faint:#7a7296;
  --line:#302a45; --line-soft:#282338;
  --bg-grad-start: #141220;
  --bg-grad-end: #211d33;
  --robot-stroke: #fff;
  --robot-fill: rgba(255, 255, 255, 0.1);
  --robot-screen: #000;
  --violet-soft:#2e2749; --peach-soft:#3a2a24; --mint-soft:#20362c; --rose-soft:#3a222c; --sky-soft:#1f2f3a;
  --shadow:0 8px 30px -12px rgba(0,0,0,0.5); --shadow-lg:0 20px 50px -20px rgba(0,0,0,0.65);
}

body[data-theme="peach"] {
  --bg:#fdf5f0; --card:#ffffff;
  --ink:#2e1e1a; --ink-soft:#806b64; --ink-faint:#bba79f;
  --line:#f6e9e2; --line-soft:#fcf4ef;
  --bg-grad-start: #fdf5f0;
  --bg-grad-end: #fbebe0;
  --robot-stroke: #2e1e1a;
  --robot-fill: rgba(46, 30, 26, 0.08);
  --robot-screen: #2e1e1a;
  --violet:#ff8a5c; --violet-deep:#e86a3a; --violet-soft:#ffeee4;
  --grad:linear-gradient(135deg,#ffab7a 0%,#ff8a5c 55%,#f26f3e 100%);
  --shadow:0 8px 30px -12px rgba(226,111,62,0.28); --shadow-lg:0 20px 50px -20px rgba(226,111,62,0.4);
}

body[data-theme="mint"] {
  --bg:#eefaf4; --card:#ffffff;
  --ink:#12261d; --ink-soft:#5e7168; --ink-faint:#9db8ac;
  --line:#dcf0e7; --line-soft:#edf9f3;
  --bg-grad-start: #eefaf4;
  --bg-grad-end: #e0f3ea;
  --robot-stroke: #12261d;
  --robot-fill: rgba(18, 38, 29, 0.08);
  --robot-screen: #12261d;
  --violet:#2eb87f; --violet-deep:#1f9c68; --violet-soft:#dcf5ea;
  --grad:linear-gradient(135deg,#4fd39a 0%,#2eb87f 55%,#1f9c68 100%);
  --shadow:0 8px 30px -12px rgba(31,156,104,0.26); --shadow-lg:0 20px 50px -20px rgba(31,156,104,0.4);
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  background:var(--bg);
  color:var(--ink);
  font-family:'Nunito','Segoe UI',-apple-system,system-ui,sans-serif;
  min-height:100vh; -webkit-font-smoothing:antialiased; padding-bottom:5rem;
  transition:background .3s;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 999px; opacity: 0.5; }

.wrap { max-width:940px; margin:0 auto; padding:0 1.25rem; }

.top { display:flex; align-items:center; justify-content:space-between; padding:1.75rem 0 1.25rem; }
.app-title { font-size:28px; font-weight:900; letter-spacing:-.03em; line-height: 1; color: var(--ink); display:flex; align-items:center; gap:8px; }
.title-robot-icon { width:28px; height:28px; }
.title-robot-icon .robot-body { stroke: var(--robot-stroke); fill: var(--robot-fill); }
.title-robot-icon .robot-screen { fill: var(--robot-screen); }
.title-robot-icon .robot-antenna, .title-robot-icon .robot-mouth { stroke: var(--robot-stroke); }
.title-robot-icon .robot-eye { fill: var(--violet); animation: none; }

.app-subtitle { font-size: 14px; font-weight: 700; color: var(--violet); margin-top: 4px; }
.greet .hi { font-size:13px; color:var(--ink-faint); font-weight:600; margin-top: 10px; }
.top-actions { display:flex; align-items:center; gap:12px; }
#theme-bar { display:flex; align-items:center; gap:8px; }
.theme-dot { width:30px; height:30px; border-radius:50%; cursor:pointer; border:2.5px solid transparent; transition:transform .12s; position:relative; }
.theme-dot:hover { transform:scale(1.12); }
.theme-dot.sel { border-color:var(--card); box-shadow:0 0 0 2.5px var(--violet); }

.moti { background:var(--grad); border-radius:var(--r-lg); padding:1.4rem 1.5rem; color:#fff; position:relative; overflow:hidden; box-shadow:var(--shadow-lg); margin-bottom:1.25rem; }
.moti::after { content:""; position:absolute; right:-40px; top:-40px; width:150px; height:150px; background:rgba(255,255,255,.13); border-radius:50%; }
.moti::before { content:""; position:absolute; right:30px; bottom:-50px; width:100px; height:100px; background:rgba(255,255,255,.09); border-radius:50%; }
.moti-top { display:flex; align-items:center; gap:8px; margin-bottom:.55rem; position:relative; z-index:1; }
.moti-tag { font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:rgba(255,255,255,.22); padding:4px 12px; border-radius:999px; }
.moti-shuffle { margin-left:auto; background:rgba(255,255,255,.2); border:none; width:32px; height:32px; border-radius:50%; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s,transform .3s; }
.moti-shuffle:hover { background:rgba(255,255,255,.32); }
.moti-shuffle:active { transform:rotate(180deg); }
.moti-q { font-size:16.5px; font-weight:700; line-height:1.5; position:relative; z-index:1; transition:opacity .25s; }
.moti.fade .moti-q { opacity:0; }

.tabs { display:flex; gap:6px; margin-bottom:1.25rem; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tab { flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:11px 18px; border-radius:999px; background:var(--card); color:var(--ink-soft); font-size:14px; font-weight:700; cursor:pointer; transition:all .18s; border:2px solid transparent; white-space:nowrap; }
.tab:hover { color:var(--ink); }
.tab.on { background:var(--grad); color:#fff; box-shadow:var(--shadow); }

.sub-tabs {
  display: flex;
  gap: 4px;
  background: var(--line-soft);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.sub-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all .15s;
}
.sub-tab-btn.on { background: var(--card); color: var(--violet); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sub-view { display: none; }
.sub-view.on { display: block; animation:pop .3s cubic-bezier(.34,1.3,.5,1); }

.view { display:none; }
.view.on { display:block; animation:pop .3s cubic-bezier(.34,1.3,.5,1); }
@keyframes pop { from{opacity:0;transform:translateY(10px) scale(.98);} to{opacity:1;transform:none;} }

.grid2 { display:grid; grid-template-columns:1fr; gap:1.1rem; }
@media(min-width:760px){ .grid2 { grid-template-columns:1fr 1fr; align-items:start; } }

.card { background:var(--card); border-radius:var(--r-lg); padding:1.5rem; box-shadow:var(--shadow); }
.card-h { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:1.1rem; }

.hero { background:var(--grad); color:#fff; text-align:center; position:relative; overflow:hidden; box-shadow:var(--shadow-lg); }
.hero::after { content:""; position:absolute; left:-50px; bottom:-60px; width:180px; height:180px; background:rgba(255,255,255,.1); border-radius:50%; }
.hero .card-h { color:rgba(255,255,255,.7); }
.ring-box { position:relative; width:230px; height:230px; margin:.5rem auto 1.3rem; z-index:1; }
.ring-box svg { transform:rotate(-90deg); width:100%; height:100%; }
.ring-bg { fill:none; stroke:rgba(255,255,255,.18); stroke-width:12; }
.ring-fg { fill:none; stroke:#fff; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset .5s linear; filter:drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.ring-fg.brk { stroke:#ffe08a; filter:drop-shadow(0 0 6px rgba(255,224,138,.6)); }
.ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.t-num { font-size:56px; font-weight:900; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.t-mode { font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.75); margin-top:6px; }
.t-task { font-size:14px; font-weight:700; color:rgba(255,255,255,.92); margin-bottom:1.2rem; min-height:20px; position:relative; z-index:1; }
.t-task em { font-style:normal; background:rgba(255,255,255,.2); padding:2px 10px; border-radius:999px; }
.t-btns { display:flex; gap:8px; justify-content:center; position:relative; z-index:1; flex-wrap:wrap; }

.stage-pill-badge { background:rgba(255,255,255,0.22); color:#fff; font-size:11px; font-weight:800; padding:4px 12px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; }
.fs-stage-pill { background:rgba(139,108,240,0.4); border:1px solid #8b6cf0; color:#fff; font-size:11px; font-weight:800; padding:3px 10px; border-radius:999px; letter-spacing:.05em; }

.btn { font-family:inherit; font-size:14px; font-weight:800; cursor:pointer; border-radius:999px; border:none; padding:11px 20px; transition:transform .12s,box-shadow .15s,background .15s; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.btn:active { transform:scale(.96); }
.btn-light { background:#fff; color:var(--violet-deep); box-shadow:0 6px 18px -6px rgba(0,0,0,.3); }
.btn-ghost-w { background:rgba(255,255,255,.18); color:#fff; }
.btn-ghost-w:hover { background:rgba(255,255,255,.28); }
.btn-primary { background:var(--grad); color:#fff; box-shadow:var(--shadow); }
.btn-soft { background:var(--violet-soft); color:var(--violet-deep); border:none; cursor:pointer; font-weight:800; border-radius:999px; transition:filter .15s; }
.btn-soft:hover { filter:brightness(.95); }
.btn-icon {
  background: var(--card);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all .15s;
}
.btn-icon:hover { color: var(--ink); transform: scale(1.05); }

.main-robot-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  cursor: grab;
  transition: top .5s, left .5s, transform .5s;
  width: 50px;
  height: 50px;
}

.main-robot-container::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -15px;
  top: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background: conic-gradient(from 0deg, transparent 0%, transparent 60%, var(--glow-color, var(--violet)) 100%);
  border-radius: 50%;
  animation: rotateGlow 3s linear infinite;
  filter: blur(12px);
  opacity: 0;
  transition: opacity .4s;
}

/* Tampilkan glow saat mode aktif */
.main-robot-container.mode-focus::before,
.main-robot-container.mode-break::before,
.main-robot-container.mode-paused::before {
  opacity: 0.9;
}

.main-robot-container.mode-focus { --glow-color: var(--violet); }
.main-robot-container.mode-break { --glow-color: var(--mint); }
.main-robot-container.mode-paused { --glow-color: var(--peach); }

.main-robot-container svg { pointer-events: none; }
.main-robot-container .robot-body { stroke: var(--robot-stroke); fill: var(--robot-fill); }
.main-robot-container .robot-screen { fill: var(--robot-screen); }
.main-robot-container .robot-antenna,
.main-robot-container .robot-mouth { stroke: var(--robot-stroke); }

.main-robot-container .pip-speech-balloon {
  top: -40px;
  font-size: 11px;
  padding: 6px 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.main-robot-container .pip-speech-balloon::after {
  border-color: var(--card) transparent transparent transparent;
}


.paused-session-card { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:14px; background:var(--line-soft); border:1.5px solid var(--line); margin-bottom:10px; transition:all 0.18s; }
.paused-session-card:last-child { margin-bottom:0; }
.paused-session-card.active-card { border-color:var(--violet); background:var(--violet-soft); }
.paused-info { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.paused-title { font-size:13.5px; font-weight:800; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:6px; }
.paused-time { font-size:12px; font-weight:700; color:var(--violet); }
.paused-actions { display:flex; align-items:center; gap:6px; margin-left:10px; }
.btn-resume { border:none; background:var(--grad); color:#fff; padding:6px 14px; border-radius:999px; font-size:12px; font-weight:800; cursor:pointer; transition:transform .1s; }
.btn-resume:hover { transform:scale(1.04); }
.btn-del-session { border:none; background:none; color:var(--ink-faint); padding:6px; cursor:pointer; font-size:14px; }
.btn-del-session:hover { color:var(--rose); }

.fs-paused-card { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; background:rgba(0,0,0,0.3); border-radius:12px; border:1px solid rgba(255,255,255,0.08); }

.today-panel { background:var(--card); border-radius:var(--r-lg); padding:1.4rem; box-shadow:var(--shadow); margin-top:1.1rem; }
.today-panel .head { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.8rem; }
.today-panel .title { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); }
.today-panel .reset-tag { font-size:11px; font-weight:700; color:var(--violet); background:var(--violet-soft); padding:3px 10px; border-radius:999px; }
.today-stats { display:flex; align-items:baseline; gap:8px; margin-bottom:0.8rem; }
.today-stats .val { font-size:32px; font-weight:900; color:var(--ink); line-height:1; }
.today-stats .lbl { font-size:13px; font-weight:700; color:var(--ink-faint); }
.today-list { font-size:13px; color:var(--ink-soft); display:flex; flex-direction:column; gap:6px; max-height:140px; overflow-y:auto; padding-right:4px; margin-top: .8rem; }
.today-item { display:flex; align-items:center; justify-content:space-between; padding:6px 10px; background:var(--line-soft); border-radius:10px; font-weight:700; }
.today-item .t-name { font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.today-item .t-time { font-size:11.5px; color:var(--ink-faint); }

.setup2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.setup-item label { display:block; font-size:12px; font-weight:800; color:var(--ink-faint); margin-bottom:8px; text-transform:uppercase; letter-spacing:.05em; }
.stepper { display:flex; align-items:center; background:var(--violet-soft); border-radius:var(--r-md); padding:5px; }
.stepper button { border:none; background:var(--card); width:38px; height:38px; border-radius:12px; font-size:20px; font-weight:700; color:var(--violet-deep); cursor:pointer; box-shadow:0 2px 6px -2px rgba(0,0,0,.12); transition:transform .1s; }
.stepper button:active { transform:scale(.9); }
.stepper .val { flex:1; text-align:center; font-size:22px; font-weight:900; color:var(--ink); }
.stepper .val small { font-size:12px; font-weight:700; color:var(--ink-faint); }

.mode-selector-box { background:var(--line-soft); padding:10px; border-radius:var(--r-md); margin-bottom: 1.1rem; }
.mode-options { display:flex; gap:8px; }
.mode-opt-btn { flex:1; padding:8px 12px; border:none; background:none; border-radius:10px; font-size:12px; font-weight:800; color:var(--ink-faint); cursor:pointer; transition:all .15s; }
.mode-opt-btn.active { background:var(--card); color:var(--violet); box-shadow:0 2px 8px rgba(0,0,0,.08); }

.field { display:flex; gap:10px; margin-bottom:1.1rem; }
.field input, .field select { flex:1; border:2px solid var(--line); border-radius:var(--r-md); padding:13px 16px; font-family:inherit; font-size:15px; font-weight:600; background:var(--card); color:var(--ink); transition:border-color .15s; }
.field input::placeholder { color:var(--ink-faint); }
.field input:focus, .field select:focus { outline:none; border-color:var(--violet); }
.opts { display:flex; gap:10px; margin-bottom:1.1rem; align-items:stretch; }
.opts select { flex:1; border:2px solid var(--line); border-radius:var(--r-md); padding:11px 14px; font-family:inherit; font-size:14px; font-weight:600; background:var(--card); color:var(--ink-soft); }
.pom-est { display:flex; align-items:center; gap:4px; background:var(--peach-soft); border-radius:var(--r-md); padding:4px 6px 4px 12px; }
.pom-est .em { font-size:15px; }
.pom-est button { border:none; background:var(--card); width:30px; height:30px; border-radius:10px; font-size:17px; font-weight:700; color:var(--peach); cursor:pointer; }
.pom-est .n { min-width:16px; text-align:center; font-weight:900; font-size:15px; color:var(--ink); }

.todo { display:flex; align-items:center; gap:13px; padding:14px; border-radius:var(--r-md); transition:background .15s; }
.todo:hover { background:var(--line-soft); }
.check { width:26px; height:26px; border-radius:50%; border:2.5px solid var(--line); flex-shrink:0; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.check:hover { border-color:var(--mint); }
.check.done { background:var(--mint); border-color:var(--mint); }
.check.done svg { width:14px; height:14px; stroke:#fff; }
.todo-mid { flex:1; min-width:0; }
.todo-text { font-size:15.5px; font-weight:700; }
.todo.done .todo-text { color:var(--ink-faint); text-decoration:line-through; }
.todo-sub { display:flex; align-items:center; gap:8px; margin-top:5px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; }
.chip .pd { width:8px; height:8px; border-radius:50%; }
.chip-pom { background:var(--peach-soft); color:var(--peach); }
.todo-act { display:flex; gap:4px; opacity:0; transition:opacity .15s; }
.todo:hover .todo-act { opacity:1; }
.ibtn { border:none; background:none; width:34px; height:34px; border-radius:11px; color:var(--ink-faint); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.ibtn:hover { background:var(--rose-soft); color:var(--rose); }
.ibtn.play:hover { background:var(--violet-soft); color:var(--violet); }
.ibtn svg { width:17px; height:17px; }
.empty { text-align:center; color:var(--ink-faint); font-size:14px; font-weight:600; padding:2rem 0; }
.empty .big { font-size:32px; margin-bottom:8px; }

.prow { display:flex; align-items:center; gap:13px; padding:13px 14px; border-radius:var(--r-md); transition:background .15s; }
.prow:hover { background:var(--line-soft); }
.pswatch { width:38px; height:38px; border-radius:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; font-size:16px; }
.pname { flex:1; font-weight:800; font-size:15px; }
.pmeta { font-size:12.5px; font-weight:700; color:var(--ink-faint); }
.colors { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 1.1rem; }
.copt { width:34px; height:34px; border-radius:12px; cursor:pointer; border:3px solid transparent; transition:transform .1s; }
.copt:hover { transform:scale(1.12); }
.copt.sel { border-color:var(--ink); }

.lg { display:flex; align-items:flex-start; gap:13px; padding:12px 0; }
.lgi { width:38px; height:38px; border-radius:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:16px; }
.lgi.focus { background:var(--violet-soft); } .lgi.task { background:var(--mint-soft); }
.lg-body { flex:1; }
.lg-main { font-size:14.5px; font-weight:700; }
.lg-meta { font-size:12px; font-weight:600; color:var(--ink-faint); margin-top:2px; }
.lg-time { font-size:12px; font-weight:700; color:var(--ink-faint); white-space:nowrap; }
.lg-day { font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--violet); margin:1.3rem 0 .3rem; }
.lg-day:first-child { margin-top:0; }

.stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:1.25rem; }
@media(min-width:760px){ .stats { grid-template-columns:repeat(4,1fr); } }
.stat { border-radius:var(--r-lg); padding:1.3rem 1.25rem; color:#fff; position:relative; overflow:hidden; box-shadow:var(--shadow); }
.stat::after { content:""; position:absolute; right:-20px; top:-20px; width:80px; height:80px; background:rgba(255,255,255,.15); border-radius:50%; }
.stat.v1 { background:linear-gradient(135deg,#8b6cf0,#6f4bd8); }
.stat.v2 { background:linear-gradient(135deg,#ffab7a,#f58150); }
.stat.v3 { background:linear-gradient(135deg,#4fd39a,#2eb87f); }
.stat.v4 { background:linear-gradient(135deg,#66c6ef,#3fa5dd); }
.stat .n { font-size:28px; font-weight:900; line-height:1; position:relative; z-index:1; }
.stat .n small { font-size:15px; font-weight:800; opacity:.85; }
.stat .l { font-size:12.5px; font-weight:700; margin-top:7px; opacity:.9; position:relative; z-index:1; }
.rtoggle { display:flex; gap:6px; margin-bottom:1.25rem; background:var(--card); padding:5px; border-radius:999px; box-shadow:var(--shadow); width:fit-content; }
.rtoggle button { border:none; background:none; padding:9px 20px; font-family:inherit; font-size:13.5px; font-weight:800; color:var(--ink-faint); border-radius:999px; cursor:pointer; transition:all .15s; }
.rtoggle button.on { background:var(--grad); color:#fff; }
.legend { display:flex; gap:18px; justify-content:center; margin-top:.9rem; font-size:13px; font-weight:700; color:var(--ink-soft); flex-wrap:wrap; }
.legend span { display:flex; align-items:center; gap:7px; }
.ld { width:11px; height:11px; border-radius:4px; }
.donut-wrap { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.dleg { flex:1; min-width:140px; }
.dleg-item { display:flex; align-items:center; gap:9px; font-size:13px; font-weight:700; padding:6px 0; }
.dleg-item .pd { width:11px; height:11px; border-radius:4px; }
.dleg-item .v { margin-left:auto; color:var(--ink-faint); font-size:12px; }
.reset { text-align:center; margin-top:1.5rem; }
.reset button { border:none; background:none; color:var(--ink-faint); font-size:13px; font-weight:700; cursor:pointer; padding:6px; }
.reset button:hover { color:var(--rose); }

.toast { position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(24px); background:var(--ink); color:var(--bg); padding:14px 24px; border-radius:999px; font-size:14px; font-weight:700; opacity:0; transition:all .3s cubic-bezier(.34,1.3,.5,1); z-index:10000; pointer-events:none; box-shadow:var(--shadow-lg); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* FULLSCREEN IMMERSIVE OVERLAY & REAL-TIME MOUSE SPOTLIGHT */
.fs-overlay {
  position:fixed; inset:0; z-index:9999; background:#080612; color:#fff;
  display:none; flex-direction:column; justify-content:space-between; padding:2rem;
  overflow:hidden;
}
.fs-overlay.active { display:flex; }

.fs-mouse-spotlight {
  position: absolute; width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(139,108,240,0.15) 35%, transparent 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out; opacity: 0; filter: blur(30px);
}
.fs-overlay.active .fs-mouse-spotlight { opacity: 1; }

.fs-bg-ambient {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  opacity: 0.88; z-index: 0; filter: blur(80px);
}
.fs-blob {
  position: absolute; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.65; transition: transform 0.3s ease-out;
}
.blob-1 {
  top: -15%; left: 10%; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--violet) 0%, rgba(124,92,219,0) 75%);
  animation: floatMorph1 14s ease-in-out infinite alternate;
}
.blob-2 {
  bottom: -15%; right: 5%; width: 550px; height: 550px;
  background: radial-gradient(circle, var(--peach) 0%, rgba(255,159,107,0) 75%);
  animation: floatMorph2 16s ease-in-out infinite alternate;
}
.blob-3 {
  top: 30%; right: 25%; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--mint) 0%, rgba(63,196,138,0) 75%);
  animation: floatMorph3 18s ease-in-out infinite alternate;
}
.blob-4 {
  bottom: 20%; left: 20%; width: 380px; height: 380px;
  background: radial-gradient(circle, var(--rose) 0%, rgba(240,100,138,0) 75%);
  animation: floatMorph4 20s ease-in-out infinite alternate;
}
.blob-5 {
  top: 10%; right: 10%; width: 350px; height: 380px;
  background: radial-gradient(circle, var(--sky) 0%, rgba(77,182,232,0) 75%);
  animation: floatMorph1 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatMorph1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { transform: translate(80px, 50px) scale(1.2) rotate(120deg); border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%; }
}
@keyframes floatMorph2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-70px, -80px) scale(1.15) rotate(-90deg); }
}
@keyframes floatMorph3 {
  0% { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-40px, 70px) scale(1.25); }
}
@keyframes floatMorph4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -50px) scale(1.1); }
}

.fs-top, .fs-main-body, .fs-moti-box, .fs-bottom-controls { position: relative; z-index: 2; }

.fs-top { display:flex; align-items:center; justify-content:space-between; }
.fs-task-pill {
  background:rgba(255,255,255,0.12); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  padding:8px 20px; border-radius:999px; font-size:14px; font-weight:700; color:#fff;
  display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,0.18);
}
.fs-minimize-btn {
  background:rgba(255,255,255,0.15); border:none; color:#fff; padding:8px 18px; border-radius:999px;
  font-size:13px; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
  transition:background 0.2s;
}
.fs-minimize-btn:hover { background:rgba(255,255,255,0.28); }

.fs-main-body { display:flex; flex:1; align-items:center; justify-content:center; gap:4rem; margin:1rem 0; }
@media(max-width:850px){ .fs-main-body { flex-direction:column; gap:1.5rem; overflow-y:auto; } }

.fs-timer-center { text-align:center; position:relative; }
.fs-ring-box { position:relative; width:310px; height:310px; margin:0 auto; }
@media(max-width:400px){ .fs-ring-box { width:240px; height:240px; } }
.fs-ring-box svg { transform:rotate(-90deg); width:100%; height:100%; }
.fs-ring-bg { fill:none; stroke:rgba(255,255,255,0.12); stroke-width:10; }
.fs-ring-fg { fill:none; stroke:#8b6cf0; stroke-width:10; stroke-linecap:round; transition:stroke-dashoffset .5s linear; filter:drop-shadow(0 0 10px rgba(139,108,240,0.6)); }
.fs-ring-fg.brk { stroke:#ffe08a; filter:drop-shadow(0 0 10px rgba(255,224,138,0.6)); }
.fs-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.fs-t-num { font-size:72px; font-weight:900; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1; }
@media(max-width:400px){ .fs-t-num { font-size:52px; } }
.fs-t-mode { font-size:13px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,0.6); margin-top:8px; }

.fs-sidebar {
  width:320px; background:rgba(255,255,255,0.06); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.08); border-radius:24px; padding:1.5rem; display:flex; flex-direction:column; gap:1.2rem;
}
@media(max-width:850px){ .fs-sidebar { width:100%; max-width:400px; } }
.fs-side-card { background:rgba(0,0,0,0.25); border-radius:16px; padding:1.1rem; }
.fs-side-lbl { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,0.5); margin-bottom:6px; }
.fs-side-val { font-size:36px; font-weight:900; color:#fff; line-height:1; }
.fs-side-sub { font-size:12px; font-weight:700; color:rgba(255,255,255,0.6); margin-top:6px; }

.fs-moti-box {
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 10px 24px;
  text-align: center; max-width: 680px; margin: 0 auto 12px;
}
.fs-moti-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2); padding: 2px 10px; border-radius: 999px; color: #fff; display: inline-block;
}
.fs-moti-q {
  font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, 0.95); margin-top: 4px; line-height: 1.4;
}

.fs-bottom-controls { display:flex; align-items:center; justify-content:center; gap:16px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1.25rem;
}
.modal-overlay.active { display: flex; animation: pop .25s cubic-bezier(.34,1.3,.5,1); }
.modal-card {
  background: var(--card); border-radius: var(--r-lg); padding: 1.8rem;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.modal-h { font-size: 16px; font-weight: 800; color: var(--ink); }

.setting-group:not(:last-child) { margin-bottom: 1rem; }

.modal-tab-btn { flex:1; padding:8px 12px; border:1.5px solid var(--line); background:var(--card); border-radius:10px; font-size:12px; font-weight:800; color:var(--ink-faint); cursor:pointer; }
.modal-tab-btn.active { border-color:var(--violet); background:var(--violet-soft); color:var(--violet-deep); }

/* --- GAYA BARU EKSKLUSIF UNTUK WIDGET MELAYANG (PIP) --- */

/* Chameleon Dynamic Background */
.pip-bg-dynamic {
  background-size: 400% 400% !important;
  animation: gradientCycle 15s ease infinite !important;
  transition: background-image 1s ease-in-out !important;
}
.pip-bg-dynamic.bg-focus {
  background-image: linear-gradient(-45deg, #1e1838, #3b2a75, #211545, #140d2b) !important;
}
.pip-bg-dynamic.bg-break {
  background-image: linear-gradient(-45deg, #1f3b2d, #3fc48a, #1a2e24, #2d5e44) !important;
}
.pip-bg-dynamic.bg-paused {
  background-image: linear-gradient(-45deg, #3a2212, #ff9f6b, #452718, #2e170a) !important;
}

@keyframes gradientCycle {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Robot Roaming System */
.pip-robot-roam {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-block; filter: drop-shadow(0 0 12px rgba(139,108,240,0.5));
  z-index: 10; cursor: pointer;
}
.robot-happy { animation: robotHappyBounce 0.6s ease-in-out; }
@keyframes robotHappyBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -70%) scale(1.15) rotate(10deg); }
}

.robot-led { fill: #8b6cf0; animation: ledPulse 2s infinite alternate; }
@keyframes ledPulse { 0% { opacity: 0.4; } 100% { opacity: 1; fill: #00f0ff; } }

.robot-eye { fill: #00f0ff; animation: eyeBlink 4s infinite; transform-origin: center; }
@keyframes eyeBlink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

.mode-focus .robot-eye { fill: #00f0ff; filter: drop-shadow(0 0 5px #00f0ff); }
.mode-break .robot-eye { fill: #3fc48a; filter: drop-shadow(0 0 5px #3fc48a); }
.mode-paused .robot-eye { fill: #ff9f6b; filter: drop-shadow(0 0 5px #ff9f6b); }

/* Balon Bicara Robot di PiP */
.pip-speech-balloon {
  position: absolute; top: -45px; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.9);
  background: rgba(255,255,255,0.95); color: #1e1838; font-size: 11px; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(.34,1.3,.5,1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 20;
}
.pip-speech-balloon::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  border-width: 5px 5px 0; border-style: solid; border-color: rgba(255,255,255,0.95) transparent transparent transparent;
}
.pip-speech-balloon.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

.pip-speech-balloon.pos-bottom { top: auto; bottom: -45px; transform: translateX(-50%) translateY(-10px) scale(0.9); }
.pip-speech-balloon.pos-bottom.show { transform: translateX(-50%) translateY(0) scale(1); }
.pip-speech-balloon.pos-bottom::after { bottom: auto; top: -4px; border-width: 0 5px 5px; border-color: transparent transparent rgba(255,255,255,0.95) transparent; }

.pip-speech-balloon.pos-left { top: 20px; left: auto; right: 100%; transform: translateX(-10px) scale(0.9); margin-right: 15px; }
.pip-speech-balloon.pos-left.show { transform: translateX(0) scale(1); }
.pip-speech-balloon.pos-left::after { left: auto; right: -4px; bottom: 50%; transform: translateY(50%); border-width: 5px 0 5px 5px; border-color: transparent transparent transparent rgba(255,255,255,0.95); }

.pip-speech-balloon.pos-right { top: 20px; left: 100%; transform: translateX(10px) scale(0.9); margin-left: 15px; }
.pip-speech-balloon.pos-right.show { transform: translateX(0) scale(1); }
.pip-speech-balloon.pos-right::after { left: -4px; right: auto; bottom: 50%; transform: translateY(50%); border-width: 5px 5px 5px 0; border-color: transparent rgba(255,255,255,0.95) transparent transparent; }

/* Action Bar Interaktif */
.pip-action-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.pip-action-bar button {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; width: 34px; height: 34px; font-size: 18px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.pip-action-bar button:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.pip-action-bar button.mic-active { background: rgba(255, 60, 60, 0.8); border-color: rgba(255, 100, 100, 1); animation: micPulse 1.5s infinite; color: white; }
@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 60, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0); }
}

/* Efek Klik Visual (Ripple & Particles) */
.pip-ripple {
  position: absolute; width: 20px; height: 20px; background: rgba(255,255,255,0.4);
  border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 1;
  pointer-events: none; animation: pipRippleAnim 0.6s ease-out forwards;
}
@keyframes pipRippleAnim { 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; } }

.pip-particle {
  position: absolute; font-size: 14px; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 1;
  animation: pipParticleAnim 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes pipParticleAnim {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); opacity: 0; }
}

/* Mini Game Overlay */
.pip-overlay-panel {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); z-index: 15; border-radius: 12px;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
}
.pip-game-btn {
  background: #fff; border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 20px; cursor: pointer; transition: transform 0.15s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); line-height: 1;
}
.pip-game-btn:hover { transform: scale(1.15); }

/* Chat Overlay inside PiP */
.pip-chat-overlay-content {
  width: 100%; height: 100%; padding: 10px;
  display: flex; flex-direction: column; color: #fff;
}
.pip-chat-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; flex-shrink: 0; font-size: 12px;
}
.pip-chat-header button {
  background: rgba(255,255,255,0.2); border: none; padding: 4px 12px;
  border-radius: 8px; color: #fff; font-weight: 800; cursor: pointer; font-size: 11px;
}
.pip-chat-log-wrapper { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent; padding-right: 5px; }
.pip-chat-log { display: flex; flex-direction: column; gap: 8px; }
.pip-chat-msg { display: flex; max-width: 85%; animation: pop .2s ease-out; }
.pip-chat-text {
  padding: 7px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 700; line-height: 1.5;
  word-break: break-word;
}
.msg-user { align-self: flex-end; }
.msg-user .pip-chat-text { background: #7c5cdb; color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; }
.msg-bot .pip-chat-text { background: rgba(255,255,255,0.9); color: #1e1a2e; border-bottom-left-radius: 4px; }

.pip-chat-overlay-content form {
  display: flex; gap: 6px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.pip-chat-overlay-content input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 0 12px; font-size: 12px; color: #fff; outline: none; height: 32px;
}
.pip-chat-overlay-content form button {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #7c5cdb;
  color: #fff; font-weight: 900; cursor: pointer; flex-shrink: 0;
}

/* Main Background Interactive Elements */
.main-mouse-spotlight {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--violet-soft) 0%, transparent 60%);
  pointer-events: none; z-index: -1; transform: translate(-50%, -50%);
  transition: opacity .3s; opacity: 0; filter: blur(50px);
}
body:hover .main-mouse-spotlight { opacity: 1; }
body[data-theme="gelap"] .main-mouse-spotlight { background: radial-gradient(circle, rgba(124,92,219,0.15) 0%, transparent 60%); }

.main-bg-ambient {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden;
  z-index: -2; filter: blur(120px); opacity: 0.6;
}
body[data-theme="gelap"] .main-bg-ambient { opacity: 0.4; }

.main-blob {
  position: absolute; transition: background .4s, transform 0.3s ease-out;
}
.main-blob.blob-1 {
  top: -15%; left: -10%; width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
  background: var(--violet); animation: floatMorph1 20s ease-in-out infinite alternate;
}
.main-blob.blob-2 {
  bottom: -15%; right: -10%; width: 55vw; height: 55vw; max-width: 600px; max-height: 600px;
  background: var(--peach); animation: floatMorph2 24s ease-in-out infinite alternate;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Efek partikel untuk robot utama */
.main-robot-particle {
  position: fixed; font-size: 18px; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 1; z-index: 99;
  animation: mainParticleAnim 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes mainParticleAnim {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); opacity: 0; }
}