*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: #e8eaed; color: #1a1f2e; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 20px 60px; }
.card { background: #fff; border-radius: 24px; padding: 32px 28px 36px; width: 100%; max-width: 420px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.site-title { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 1px; color: #1a1f2e; line-height: 1; margin-bottom: 4px; }
.site-sub { font-size: 13px; font-weight: 300; color: #9aa0ad; border-left: 2px solid #c8cdd6; padding-left: 10px; margin-bottom: 20px; }
.top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9aa0ad; margin-top: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #1a1f2e; animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.limit-badge { display: inline-flex; align-items: center; gap: 6px; background: #f4f5f7; border: 1px solid #e2e4e9; border-radius: 20px; padding: 5px 14px; font-size: 11px; font-weight: 500; color: #4a5060; margin-bottom: 22px; cursor: default; transition: all .3s; }
.lbdot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; transition: background .3s; }
.limit-badge.low .lbdot { background: #f59e0b; }
.limit-badge.low { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.limit-badge.empty .lbdot { background: #ef4444; }
.limit-badge.empty { border-color: #fecaca; background: #fff5f5; color: #dc2626; }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #1a1f2e; margin-bottom: 10px; }
#dict-loading { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 300; color: #9aa0ad; margin-bottom: 24px; }
.spin { width: 12px; height: 12px; border: 1.5px solid #ddd; border-top-color: #1a1f2e; border-radius: 50%; animation: spin .55s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#form-area { display: none; }
textarea { width: 100%; min-height: 68px; background: #f4f5f7; border: 1.5px solid transparent; border-radius: 14px; color: #1a1f2e; font-family: 'Outfit', sans-serif; font-size: 14px; padding: 13px 16px; resize: none; outline: none; transition: border-color .2s; line-height: 1.7; margin-bottom: 20px; }
textarea::placeholder { color: #b8bdc8; }
textarea:focus { border-color: #1a1f2e; }
.bar { display: none; height: 2px; background: #eee; border-radius: 2px; margin: -14px 0 20px; overflow: hidden; }
.bar.on { display: block; }
.bar::after { content: ''; display: block; width: 28%; height: 100%; background: #1a1f2e; animation: slide .85s ease-in-out infinite; }
@keyframes slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(450%)} }
.btns { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 8px; }
@media(max-width:400px){ .btns { grid-template-columns: 1fr; } }
.btn { border: 1.5px solid #e2e4e9; background: #f4f5f7; border-radius: 12px; padding: 12px 8px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500; color: #4a5060; cursor: pointer; transition: all .15s; }
.btn:hover { background: #1a1f2e; border-color: #1a1f2e; color: #fff; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .3; pointer-events: none; }
.divider { height: 1px; background: #f0f1f3; margin: 24px 0; }
#res { display: none; }
.r-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.r-title { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #1a1f2e; }
.r-meta { font-size: 11px; color: #9aa0ad; }
.r-meta b { color: #1a1f2e; font-weight: 600; }
.kw-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.kw-chip { font-size: 11px; color: #9aa0ad; background: #f4f5f7; border-radius: 6px; padding: 3px 10px; }
.kw-chip b { color: #1a1f2e; font-weight: 600; }
.r-box { background: #1a1f2e; border-radius: 14px; max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2e3548 transparent; }
.r-box::-webkit-scrollbar { width: 3px; }
.r-box::-webkit-scrollbar-thumb { background: #2e3548; border-radius: 2px; }
.group { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.group:last-child { border-bottom: none; }
.g-lbl { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #3e4558; margin-bottom: 8px; }
.words { display: flex; flex-wrap: wrap; gap: 5px; }
.w { background: #222840; border: 1.5px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: #8892a8; transition: all .12s; animation: pop .2s ease both; cursor: pointer; }
@keyframes pop { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.w:hover { background: #2e3548; border-color: rgba(255,255,255,0.12); color: #fff; }
.hl-d { color: #a78bfa; font-weight: 600; }
.hl-b { color: #a78bfa; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hl-s { color: #a78bfa; font-weight: 600; font-style: italic; }
.empty { padding: 36px; text-align: center; font-size: 13px; font-weight: 300; color: #3e4558; }
.btn-lihat { display: none; width: 100%; margin-top: 10px; border: 1.5px solid #e2e4e9; background: #f4f5f7; border-radius: 12px; padding: 12px; font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 500; color: #4a5060; cursor: pointer; transition: all .15s; }
.btn-lihat:hover { background: #1a1f2e; border-color: #1a1f2e; color: #fff; }
footer { margin-top: 28px; text-align: center; font-size: 12px; font-weight: 300; color: #b8bdc8; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.f-name { font-size: 12px; color: #c0c4cc; font-weight: 400; }
.f-tt { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #b0b5bf; font-size: 11px; border: 1px solid #dde0e5; border-radius: 8px; padding: 5px 12px; transition: color .15s, border-color .15s; }
.f-tt:hover { color: #6a7080; border-color: #c0c4cc; }
.f-tt svg { width: 12px; height: 12px; fill: currentColor; }
.f-dict { font-size: 11px; color: #ccc; }
.limit-overlay { display: none; position: fixed; inset: 0; background: rgba(26,31,46,0.6); backdrop-filter: blur(8px); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.limit-overlay.show { display: flex; }
.limit-popup { background: #fff; border-radius: 24px; padding: 36px 28px 28px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.18); animation: popIn .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from{opacity:0;transform:scale(.82)} to{opacity:1;transform:scale(1)} }
.popup-icon { font-size: 48px; margin-bottom: 14px; display: block; line-height: 1; }
.popup-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 1px; color: #1a1f2e; margin-bottom: 10px; }
.popup-desc { font-size: 13px; font-weight: 300; color: #9aa0ad; line-height: 1.75; margin-bottom: 16px; }
.popup-reward { display: inline-flex; align-items: center; gap: 7px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 9px 18px; font-size: 12px; font-weight: 600; color: #16a34a; margin-bottom: 22px; }
.btn-unlock { width: 100%; background: #1a1f2e; color: #fff; border: none; border-radius: 14px; padding: 15px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.btn-unlock:hover { opacity: .82; }
.popup-note { font-size: 10px; color: #c8cdd6; font-weight: 300; line-height: 1.6; }
