/* Ruang Seru global chat (Tuan Putri 2026-10-21). Colours come from the site tokens so light and night both work. */
.seru-chat-page{max-width:880px}
.seru-chat{display:flex;flex-direction:column;background:var(--card,#fff);border:1px solid var(--line,#e7eaf6);border-radius:28px;box-shadow:var(--shadow-card,0 8px 24px rgba(6,26,95,.07));overflow:hidden;min-height:min(78vh,760px)}
.seru-chat__head{position:relative;padding:22px 22px 16px;border-bottom:1px solid var(--line,#e7eaf6)}
.seru-chat__ride{position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(110deg,#01a2fe,#0160fe 22%,#7d2dfc 45%,#fb05c4 68%,#fd6c4c 84%,#fed535)}
.seru-chat__title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.seru-chat__title{margin:0;font-size:clamp(26px,4vw,34px);line-height:1.1;background:linear-gradient(110deg,#0160fe,#7d2dfc 45%,#fb05c4 80%);-webkit-background-clip:text;background-clip:text;color:transparent}
.seru-chat__lead{margin:6px 0 0;color:var(--ink-500,#5b6690);font-size:15px;max-width:52ch}
.seru-chat__status{margin:4px 0 0;display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;font-size:12.5px;font-weight:800;background:var(--tint-violet,#efe7ff);color:var(--ink-700,#26347c);white-space:nowrap}
.seru-chat__status::before{content:"";width:8px;height:8px;border-radius:50%;background:#fe9723}
.seru-chat__status.is-open::before{background:#10c98a}
.seru-chat__body{display:flex;flex-direction:column;flex:1;min-height:0}
.seru-chat__log{flex:1;min-height:320px;max-height:62vh;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.seru-chat__older{align-self:center;border:1px solid var(--line,#e7eaf6);background:transparent;color:var(--ink-700,#26347c);border-radius:999px;padding:6px 14px;font-weight:700;font-size:13px;cursor:pointer}
.seru-chat__empty{margin:auto;color:var(--ink-500,#5b6690);font-weight:600}
.seru-chat__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.seru-msg{display:flex;gap:10px;align-items:flex-end;max-width:100%}
.seru-msg.is-mine{flex-direction:row-reverse}
.seru-msg__avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(150deg,#7d2dfc,#fb05c4)}
.seru-msg__svg,.seru-msg__svg svg{display:block;width:36px;height:36px}
.seru-msg__initial{font-family:var(--display,inherit);font-weight:800;font-size:14px;color:#fff}
.seru-msg__bubble{min-width:0;max-width:min(78%,560px);padding:9px 13px;border-radius:18px 18px 18px 6px;background:var(--tint-violet,#efe7ff);color:var(--ink-900,#061a5f)}
.seru-msg.is-mine .seru-msg__bubble{border-radius:18px 18px 6px 18px;background:#0160fe;color:#fff}
.seru-msg.is-staff .seru-msg__bubble{background:var(--tint-mint,#ddf8ee)}
.seru-msg__meta{margin:0 0 2px;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:12px}
.seru-msg__meta strong{font-size:13px}
.seru-msg__meta time{opacity:.7}
.seru-msg.is-mine .seru-msg__meta{justify-content:flex-end}
.seru-msg__badge{padding:1px 8px;border-radius:999px;background:#10c98a;color:#fff;font-weight:800;font-size:10.5px}
.seru-msg__text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.45}
.seru-msg__report{margin-top:4px;padding:0;border:0;background:none;color:inherit;opacity:.6;font-size:11.5px;font-weight:700;cursor:pointer}
.seru-msg__report:hover:not(:disabled){opacity:1;text-decoration:underline}
/* Report reason picker (Tuan Putri 2026-10-28): small chips under the message. */
.seru-msg__report-pick{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;padding:8px;border-radius:12px;background:rgba(125,45,252,.08)}
.seru-msg__report-pick p{flex-basis:100%;margin:0;font-size:12px;font-weight:800}
.seru-msg__report-pick button{border:1px solid rgba(125,45,252,.35);border-radius:999px;background:#fff;color:#3b1a8a;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer}
.seru-msg__report-pick button.is-cancel{border-color:transparent;background:none;color:inherit;opacity:.7}
:root[data-theme="night"] .seru-msg__report-pick{background:rgba(255,255,255,.08)}
:root[data-theme="night"] .seru-msg__report-pick button:not(.is-cancel){background:#1b1460;color:#fff;border-color:rgba(255,255,255,.25)}
.seru-chat__compose{border-top:1px solid var(--line,#e7eaf6);padding:14px 18px 16px;display:flex;flex-direction:column;gap:8px}
.seru-chat__guest{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:var(--tint-violet,#efe7ff);color:var(--ink-700,#26347c);font-weight:600}
.seru-chat__guest p{margin:0}
.seru-chat__form{display:flex;gap:10px;align-items:flex-end}
.seru-chat__form textarea{flex:1;min-width:0;resize:none;max-height:140px;padding:11px 14px;border-radius:18px;border:1.5px solid var(--line,#e7eaf6);background:var(--card,#fff);color:var(--ink-900,#061a5f);font:inherit;font-size:15px;line-height:1.4;field-sizing:content}
.seru-chat__form textarea:focus{outline:2px solid #7d2dfc;outline-offset:1px}
.seru-chat__form textarea:disabled{opacity:.6}
.seru-chat__send{flex-shrink:0}
.seru-chat__notice{margin:0;padding:10px 12px;border-radius:12px;background:#fff0d6;color:#8a4b00;font-size:14px;font-weight:600}
.seru-chat__notice.is-ban{background:#ffe3ea;color:#a3123d}
.seru-chat__error{margin:0;color:#c2264b;font-size:13.5px;font-weight:700}
.seru-chat__success{margin:0;padding:9px 12px;border-radius:12px;background:var(--tint-mint,#ddf8ee);color:#087653;font-size:13.5px;font-weight:700}
.seru-chat__rules{margin:0;color:var(--ink-500,#5b6690);font-size:12.5px}
.seru-chat__privacy{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ruru-history-delete{padding:0;border:0;background:none;color:#b32149;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ruru-history-delete:disabled{opacity:.55;cursor:wait}
.ruru-delete-prompt{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(7,11,46,.62);backdrop-filter:blur(3px)}
.ruru-delete-prompt__card{width:min(410px,100%);padding:28px 24px 22px;border-radius:26px;background:var(--card,#fff);color:var(--ink-900,#061a5f);text-align:center;box-shadow:0 25px 80px rgba(7,11,46,.42)}
.ruru-delete-prompt__card h2{margin:0 0 10px;font-size:22px;line-height:1.25}
.ruru-delete-prompt__card p{margin:0 0 22px;color:var(--ink-500,#5b6690);font-size:14px;line-height:1.5}
.ruru-delete-prompt__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ruru-delete-prompt__actions .btn{width:100%;justify-content:center}
:root[data-theme="night"] .seru-chat__notice{background:#3d2c10;color:#ffc46b}
:root[data-theme="night"] .seru-chat__notice.is-ban{background:#4a1530;color:#ff8aa5}
:root[data-theme="night"] .seru-chat__error{color:#ff8aa5}
:root[data-theme="night"] .seru-chat__success{background:#123c31;color:#83e6c2}
:root[data-theme="night"] .ruru-history-delete{color:#ff9bb6}
@media (max-width:640px){
  .seru-chat{border-radius:20px;min-height:72vh}
  .seru-chat__head{padding:18px 16px 12px}
  .seru-chat__log{padding:12px;max-height:58vh}
  .seru-chat__compose{padding:12px}
  .seru-msg__bubble{max-width:82%}
  .ruru-delete-prompt{padding:18px}
  .ruru-delete-prompt__card{padding:24px 18px 18px}
}
@media (max-width:359px){.ruru-delete-prompt__actions{grid-template-columns:1fr}}

/* Tanya Ruru */
.ruru-hero{display:flex;gap:12px;align-items:center}
.ruru-hero__mark{width:52px;height:52px;flex-shrink:0;border-radius:16px;display:grid;place-items:center;font-family:var(--display,inherit);font-weight:800;font-size:24px;color:#fff;background:linear-gradient(150deg,#7d2dfc,#fb05c4 60%,#fe9723);box-shadow:0 8px 18px rgba(251,5,196,.25)}
.seru-msg.is-ruru .seru-msg__avatar{background:linear-gradient(150deg,#7d2dfc,#fb05c4 60%,#fe9723)}
.seru-msg.is-mine .seru-msg__avatar{background:linear-gradient(135deg,#01a2fe,#0160fe)}
.ruru-welcome{margin:auto 0;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:20px 8px}
.ruru-welcome__hi{margin:0;font-size:17px;color:var(--ink-700,#26347c)}
.ruru-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.ruru-chip{padding:8px 14px;border-radius:999px;border:1.5px solid var(--line,#e7eaf6);background:var(--card,#fff);color:var(--ink-900,#061a5f);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.ruru-chip:hover:not(:disabled){border-color:#7d2dfc;color:#7d2dfc}
.ruru-typing{display:inline-flex;gap:4px;padding:4px 2px}
.ruru-typing i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.5;animation:ruru-dot 1s infinite ease-in-out}
.ruru-typing i:nth-child(2){animation-delay:.15s}.ruru-typing i:nth-child(3){animation-delay:.3s}
@keyframes ruru-dot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:.9}}
@media (prefers-reduced-motion:reduce){.ruru-typing i{animation:none}}

/* Chat list like WhatsApp (Tuan Putri 2026-10-29): list on the left, the open chat on the right; on phones the list is
   its own screen (/ngobrol) and a chat opens full width with a back arrow. */
.seru-chat-page.wa-shell{max-width:1180px;display:grid;grid-template-columns:minmax(260px,330px) 1fr;gap:16px;align-items:stretch}
.wa-list{background:var(--card,#fff);border:1px solid var(--line,#e7eaf6);border-radius:28px;box-shadow:var(--shadow-card,0 8px 24px rgba(6,26,95,.07));overflow:hidden;align-self:start;position:sticky;top:90px}
.wa-list__title{margin:0;padding:18px 18px 10px;font-family:var(--display,inherit);font-size:20px;font-weight:800;color:var(--ink-900,#061a5f)}
.wa-list ul{list-style:none;margin:0;padding:0 8px 10px}
.wa-chat{display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:18px;color:var(--ink-900,#061a5f);text-decoration:none;position:relative}
.wa-list li+li .wa-chat::before{content:"";position:absolute;left:66px;right:10px;top:0;border-top:1px solid var(--line,#e7eaf6)}
.wa-chat:hover{background:var(--tint-violet,#efe7ff)}
.wa-chat[aria-current="page"]{background:var(--tint-violet,#efe7ff);box-shadow:inset 3px 0 0 #fb05c4}
.wa-chat[aria-current="page"]::before,.wa-list li:has(.wa-chat[aria-current="page"])+li .wa-chat::before{display:none}
.wa-ava{width:46px;height:46px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-family:var(--display,inherit);font-weight:800;font-size:20px;color:#fff}
.wa-ava img{width:44px;height:44px;object-fit:contain}
.wa-ava--ruru{background:linear-gradient(150deg,#7d2dfc,#fb05c4)}
.wa-ava--cs{background:linear-gradient(150deg,#10c98a,#01a2fe);font-size:22px}
.wa-ava--seru{background:linear-gradient(150deg,#01a2fe,#0160fe 50%,#7d2dfc);font-size:22px}
.wa-ava--loreng{background:linear-gradient(150deg,#ffe08a,#ff6fae);box-shadow:0 0 0 2px #fff,0 2px 8px rgba(255,111,174,.45)}
.wa-ava--loreng img{width:100%;height:100%;object-fit:cover}
.wa-chat__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wa-chat__text strong{font-size:15.5px;font-weight:800}
/* Descriptions wrap instead of being cut off (Tuan Putri 2026-11-03: "deskripsinya kepotong"). */
.wa-chat__text small{font-size:13px;line-height:1.35;color:var(--ink-500,#5b6690);overflow-wrap:anywhere}
.wa-chat__tag{flex:none;white-space:nowrap;align-self:flex-start;margin-top:3px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:800;background:var(--tint-violet,#efe7ff);color:#7d2dfc}
.wa-chat[aria-current="page"] .wa-chat__tag{background:#fb05c4;color:#fff}
.wa-back{display:none;flex-shrink:0;width:38px;height:38px;border-radius:50%;place-items:center;font-size:22px;font-weight:800;text-decoration:none;color:var(--ink-900,#061a5f);background:var(--tint-violet,#efe7ff)}
.wa-grow{flex:1;min-width:0}
.wa-pick{justify-content:center}
.wa-pick__inner{margin:auto;padding:32px 24px;text-align:center;max-width:460px}
.wa-pick__icon{display:inline-grid;place-items:center;width:84px;height:84px;margin-bottom:14px;border-radius:50%;font-size:40px;background:linear-gradient(150deg,#01a2fe,#7d2dfc 55%,#fb05c4)}
.wa-pick .seru-chat__lead{margin-inline:auto}
.seru-msg__text a{color:inherit;font-weight:800;text-decoration:underline}
.wa-cs-mail{align-self:flex-start}
:root[data-theme="night"] .wa-chat:hover,:root[data-theme="night"] .wa-chat[aria-current="page"]{background:rgba(255,255,255,.08)}
:root[data-theme="night"] .wa-chat__tag{background:rgba(255,255,255,.1);color:#d8c4ff}
:root[data-theme="night"] .wa-chat[aria-current="page"] .wa-chat__tag{background:#fb05c4;color:#fff}
:root[data-theme="night"] .wa-back{background:rgba(255,255,255,.1);color:#fff}
@media (max-width:860px){
  .seru-chat-page.wa-shell{grid-template-columns:1fr}
  .wa-shell.is-chat .wa-list,.wa-shell.is-home .wa-pick{display:none}
  .wa-list{position:static;border-radius:20px}
  .wa-back{display:inline-grid}
  .wa-shell .seru-chat__title-row{flex-wrap:nowrap;align-items:center}
}

/* Compact chat room header (Tuan Putri 2026-11-07): avatar + room name + green light only; the description sits in a
   bubble behind the (i) button in the top-right corner. */
.chat-head{padding:14px 16px 12px}
.chat-head__row{display:flex;align-items:center;gap:10px;padding-right:40px}
.chat-head .wa-ava{width:42px;height:42px;font-size:19px}
.chat-head__title{margin:0;min-width:0;font-size:clamp(20px,3vw,24px);line-height:1.15;background:linear-gradient(110deg,#0160fe,#7d2dfc 45%,#fb05c4 80%);-webkit-background-clip:text;background-clip:text;color:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-head__dot{flex-shrink:0;width:10px;height:10px;border-radius:50%;background:#fe9723;box-shadow:0 0 0 3px rgba(254,151,35,.2)}
.chat-head__dot.is-open{background:#10c98a;box-shadow:0 0 0 3px rgba(16,201,138,.22)}
.chat-head__info-btn{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--line,#e7eaf6);display:grid;place-items:center;padding:0;cursor:pointer;font:italic 800 15px/1 Georgia,'Times New Roman',serif;color:#7d2dfc;background:var(--card,#fff)}
.chat-head__info-btn[aria-expanded="true"]{background:#7d2dfc;border-color:#7d2dfc;color:#fff}
.chat-head__info{position:absolute;z-index:5;top:54px;right:12px;width:min(300px,calc(100% - 24px));margin:0;padding:12px 14px;border-radius:16px 4px 16px 16px;font-size:14px;line-height:1.45;color:var(--ink-700,#26347c);background:var(--card,#fff);border:1px solid var(--line,#e7eaf6);box-shadow:0 12px 30px rgba(6,26,95,.18)}
:root[data-theme="night"] .chat-head__info-btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#d8c4ff}
:root[data-theme="night"] .chat-head__info-btn[aria-expanded="true"]{background:#7d2dfc;color:#fff}
:root[data-theme="night"] .chat-head__info{background:#22296b;border-color:rgba(255,255,255,.14);color:#e6e9ff}.wa-ava--bagio{background:linear-gradient(150deg,#b6f0c2,#10c98a);box-shadow:0 0 0 2px #fff,0 2px 8px rgba(16,201,138,.4)}.wa-ava--bagio img{width:100%;height:100%;object-fit:cover}

/* Mama Loreng chat (Tuan Putri 2026-11-13): her head by the message box wiggles left-right once every 5 seconds;
   holding it 3 seconds fills the ring and opens the Kata-Kata Hari Ini shortcut. */
.mama-form{position:relative}
.mama-kata{position:relative;flex:none;align-self:flex-end}
.mama-kata__head{position:relative;display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:linear-gradient(150deg,#ffe08a,#ff6fae);box-shadow:0 0 0 2px #fff,0 4px 12px rgba(255,111,174,.45);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;animation:mama-wiggle 5s ease-in-out infinite;transform-origin:50% 90%}
.mama-kata__head img{width:40px;height:40px;border-radius:50%;object-fit:cover;pointer-events:none}
.mama-kata__head:focus-visible{outline:3px solid #fed535;outline-offset:3px}
.mama-kata__ring{position:absolute;inset:-4px;width:54px;height:54px;transform:rotate(-90deg);pointer-events:none}
.mama-kata__ring circle{fill:none;stroke:#fb05c4;stroke-width:3;stroke-linecap:round;stroke-dasharray:138.2;stroke-dashoffset:138.2;opacity:0}
.mama-kata__head.is-holding{animation:none;transform:scale(1.06)}
.mama-kata__head.is-holding .mama-kata__ring circle{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset 2s linear}
/* Smooth left-right sway like the check-in "Tap!" bob (Tuan Putri 2026-11-13): eased over 2.5 s, then still until the next 5 s. */
@keyframes mama-wiggle{0%{transform:rotate(0);animation-timing-function:ease-in-out}12%{transform:rotate(-9deg);animation-timing-function:ease-in-out}30%{transform:rotate(9deg);animation-timing-function:ease-in-out}46%{transform:rotate(-5deg);animation-timing-function:ease-in-out}58%,100%{transform:rotate(0)}}
.mama-kata__hint{position:absolute;left:0;bottom:calc(100% + 10px);margin:0;padding:6px 12px;border-radius:12px;background:#101d59;color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap;box-shadow:0 8px 20px rgba(6,26,95,.25);z-index:5}
.mama-kata__pop{position:absolute;left:0;bottom:calc(100% + 12px);display:grid;gap:4px;min-width:220px;padding:12px 14px;border-radius:18px;background:var(--card,#fff);border:1.5px solid #fb05c4;box-shadow:0 14px 30px rgba(125,45,252,.3);z-index:6}
.mama-kata__link{display:block;padding:10px 14px;border-radius:14px;background:linear-gradient(135deg,#7d2dfc,#fb05c4);color:#fff;font-weight:800;text-align:center;text-decoration:none}
.mama-kata__link:hover{color:#fff;text-decoration:none;filter:brightness(1.06)}
.mama-kata__pop small{font-size:12px;font-weight:700;color:var(--ink-500,#5b6488);text-align:center}
:root[data-theme="night"] .mama-kata__pop{background:#1c2470}
:root[data-theme="night"] .mama-kata__pop small{color:#c9cdf5}
@media(prefers-reduced-motion:reduce){.mama-kata__head{animation:none}.mama-kata__head.is-holding .mama-kata__ring circle{transition:none}}

/* Precision pass for phones (Tuan Putri 2026-11-13: "presisi di semua device"): the send button becomes a 44px round
   paper-plane button (its text stays for screen readers), so the message box keeps room for the whole placeholder down
   to 320px; the placeholder is a little smaller than typed text, which stays 15px. */
@media(max-width:560px){
  .seru-chat__form{gap:8px}
  .seru-chat__form textarea{padding:11px 12px}
  .seru-chat__form textarea::placeholder{font-size:13.5px}
  .seru-chat__form .seru-chat__send{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:0;line-height:0;color:#fff}
  .seru-chat__form .seru-chat__send::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.4 20.4 21 12 3.4 3.6l-.01 6.53L15 12 3.39 13.87z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.4 20.4 21 12 3.4 3.6l-.01 6.53L15 12 3.39 13.87z'/%3E%3C/svg%3E") center/contain no-repeat;
    transform:translateX(1px)}
  .mama-kata__head{width:42px;height:42px}
  .mama-kata__head img{width:36px;height:36px}
  .mama-kata__ring{inset:-4px;width:50px;height:50px}
  .mama-kata__ring circle{stroke-dasharray:138.2}
}
/* Precision pass 2: chat names never end in "…" on phones. Unbounded is a wide face, so the title is a little smaller
   and may take a second line on the narrowest screens; placeholders shrink a touch more below 360px. */
@media(max-width:480px){.chat-head__title{font-size:17px;line-height:1.12;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal}}
@media(max-width:360px){.seru-chat__form textarea::placeholder{font-size:12px}}
/* No progress ring on Mama's head (Tuan Putri 2026-11-13): just hold it and the popup appears. */
.mama-kata__ring{display:none}
.mama-kata__head.is-holding{transform:scale(1.06)}
