/* TGS Emerald UI — selaras screenshot referensi */
:root{
  --green-950:#053a2e; --green-900:#064e3b; --green-800:#065f46; --green-700:#047857;
  --green-600:#0d7a5f; --green-500:#10b981; --green-100:#dcfce7; --green-50:#ecfdf5;
  --gold:#a67c00; --gold-bg:#fef9e7;
  --bg:#eef4f2; --body:#f4f7f6; --card:#ffffff; --ink:#10231e; --muted:#647f78;
  --shadow:0 8px 28px rgba(6,78,59,.10); --r:20px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:var(--ink)}
body{display:flex;justify-content:center;min-height:100dvh}
#app{width:100%;max-width:430px;background:var(--body);min-height:100dvh;position:relative;box-shadow:0 0 40px rgba(0,0,0,.25);padding-bottom:96px}
[v-cloak]{display:none}

/* HERO — Masjid Nabawi (Madinah) seperti referensi */
.hero-top{position:relative;overflow:hidden;background:linear-gradient(100deg,#052e26 20%,#065f46 55%,#0d7a5f 100%);color:#fff;border-radius:22px 22px 0 0;min-height:232px}
.hero-top::before{content:"";position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1512632578888-169bbbc64f33?q=80&w=1200&auto=format&fit=crop') center 35%/cover no-repeat,url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?q=80&w=1200&auto=format&fit=crop') center 30%/cover no-repeat;opacity:.95;mask-image:linear-gradient(to right,transparent 8%,black 72%);-webkit-mask-image:linear-gradient(to right,transparent 8%,black 72%)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,47,38,.96) 30%,rgba(4,47,38,.55) 60%,rgba(4,47,38,.05) 100%)}
.hero-content{position:relative;z-index:2;padding:20px 18px 22px}
.hero-row{display:flex;align-items:flex-start;justify-content:space-between}
.brand{display:flex;gap:10px;align-items:flex-start}
.brand-ic{width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.brand-ic svg{width:42px!important;height:42px!important;stroke-width:2.2}
.brand h1{margin:0;font-size:38px;line-height:.9;letter-spacing:1px;font-weight:900}
.brand b{font-size:17px}
.hero-desc{margin:14px 0 0;font-size:15px;line-height:1.5;color:#d7e9e2}
.conn-pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:800;padding:8px 14px;border-radius:20px;background:var(--green-500);color:#052e26;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.conn-pill svg{width:16px!important;height:16px!important}
.conn-pill.off{background:rgba(255,255,255,.22);color:#fff}

/* BODY — kartu live menumpuk hero seperti referensi */
.app-body{padding:14px 14px 10px;margin-top:-34px;position:relative;z-index:3}

/* LIVE CARD */
.live-card{background:linear-gradient(135deg,#064e3b 0%,#047857 55%,#10b981 120%);border-radius:var(--r);color:#fff;padding:16px 16px 14px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.live-card::after{content:"";position:absolute;right:-40px;bottom:-60px;width:220px;height:220px;border:18px solid rgba(255,255,255,.07);border-radius:50%}
.live-card::before{content:"";position:absolute;right:20px;top:-50px;width:150px;height:150px;border:14px solid rgba(255,255,255,.06);border-radius:50%}
.live-card.mini{padding:15px 16px}
.live-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}
.live-label{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px}
.live-label svg{width:24px!important;height:24px!important}
.pulse-dot{width:10px;height:10px;border-radius:50%;background:#9ca3af;display:inline-block}
.pulse-dot.on{background:#22c55e;box-shadow:0 0 10px rgba(34,197,94,.8)}
.pulse-dot.on.speaking{background:#4ade80;box-shadow:0 0 12px #4ade80;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.45}}
/* Equalizer mini — diam saat hening, bergoyang saat bicara */
.eq{display:inline-flex;align-items:flex-end;gap:2.5px;height:22px;margin-right:2px}
.eq span{width:3.5px;border-radius:3px;background:#5eead4;height:5px;opacity:.55}
.live-timer.speaking .eq span{opacity:1;animation:eqb 0.9s ease-in-out infinite}
.live-timer.speaking .eq span:nth-child(2){animation-delay:.15s}
.live-timer.speaking .eq span:nth-child(3){animation-delay:.3s}
.live-timer.speaking .eq span:nth-child(4){animation-delay:.45s}
@keyframes eqb{0%,100%{height:5px}50%{height:20px}}
/* Voice bars di bawah mic — datar saat hening */
.voice-bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:26px;margin:4px 0 2px}
.voice-bars span{width:5px;border-radius:4px;background:#cbd8d3;height:5px;transition:height .12s}
.voice-bars.live span{background:#9db8af}
.voice-bars.speaking span{background:var(--green-600);animation:eqb 0.8s ease-in-out infinite}
.voice-bars.speaking span:nth-child(2){animation-delay:.1s}.voice-bars.speaking span:nth-child(3){animation-delay:.2s}
.voice-bars.speaking span:nth-child(4){animation-delay:.3s}.voice-bars.speaking span:nth-child(5){animation-delay:.4s}
.voice-bars.speaking span:nth-child(6){animation-delay:.5s}.voice-bars.speaking span:nth-child(7){animation-delay:.6s}
/* Meter level suara */
.voice-meter{height:6px;border-radius:6px;background:rgba(255,255,255,.22);margin-top:10px;overflow:hidden;position:relative;z-index:1}
.voice-fill{height:100%;width:0%;border-radius:6px;background:linear-gradient(90deg,#6ee7b7,#34d399,#fff);transition:width .12s}
.speak-txt{font-weight:800}
.speak-txt.speaking{color:#a7f3d0}
.badge.live-on.speaking{background:#22c55e;color:#fff}
.live-timer{display:flex;gap:8px;align-items:center;background:rgba(0,0,0,.28);padding:8px 14px;border-radius:16px;font-size:12px;line-height:1.35;text-align:left}
.live-timer svg{width:26px!important;height:26px!important;color:#5eead4}
.live-timer b{font-size:14px}
.live-card h2{margin:12px 0 2px;font-size:22px;line-height:1.25;position:relative;z-index:1}
.live-sub{margin:4px 0;opacity:.92;font-size:14.5px;position:relative;z-index:1}
.live-count{margin:8px 0 0;font-size:14px;display:flex;align-items:center;gap:6px;position:relative;z-index:1}
.live-count svg{width:18px!important;height:18px!important}

/* ROLE GRID */
.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.role-card{border:0;border-radius:18px;padding:16px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;cursor:pointer;text-align:left;min-height:128px;position:relative;box-shadow:var(--shadow)}
.role-card.light{background:#fff;color:var(--ink)}
.role-card.dark{background:linear-gradient(135deg,#064e3b,#047857);color:#fff}
.rc-ic svg{width:34px!important;height:34px!important}
.role-card.light .rc-ic{color:var(--green-700)}
.rc-txt b{display:block;font-size:18px}
.rc-txt small{font-size:12.5px;opacity:.75;line-height:1.4;display:block;margin-top:2px}
.rc-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);opacity:.9}
.rc-arrow svg,.rc-arrow{width:22px;height:22px}

/* CARDS */
.card{background:var(--card);border-radius:var(--r);padding:16px;margin:12px 0;box-shadow:var(--shadow)}
.card-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px}
.card-title.between{justify-content:space-between}
.howto-head{display:flex;gap:10px;margin-bottom:6px}
.howto-head b{font-size:19px;display:block}
.howto-head small{color:var(--muted);font-size:12.5px;display:block}
.howto-ic{width:38px;height:38px;min-width:38px;border-radius:12px;background:var(--green-50);color:var(--green-700);display:flex;align-items:center;justify-content:center}
.howto-ic svg{width:24px!important;height:24px!important}
.howto-ic.sm{width:32px;height:32px;min-width:32px}
.howto-ic.sm svg{width:19px!important;height:19px!important}

/* STEPS */
.step{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef3f1}
.step:last-of-type{border:0}
.step.link{cursor:pointer}
.num{width:34px;height:34px;min-width:34px;border-radius:50%;background:var(--green-100);color:var(--green-800);font-weight:900;display:flex;align-items:center;justify-content:center}
.step-ic{width:52px;height:52px;min-width:52px;border-radius:50%;background:#f1f7f5;display:flex;align-items:center;justify-content:center;color:var(--green-800)}
.step-ic svg{width:26px!important;height:26px!important}
.step-txt{flex:1}
.step-txt b{display:block;font-size:15px}
.step-txt small{color:var(--muted);font-size:12.5px;line-height:1.5}
.code-chip{background:var(--green-50);border-radius:12px;padding:8px 12px;font-size:12px;font-weight:800;color:var(--green-800);text-align:center;min-width:96px}
.code-chip b{display:block;color:var(--gold);font-size:17px;letter-spacing:2px;margin-top:2px}
.step-arrow{color:#9ca3af}
.in-ic{width:14px!important;height:14px!important;vertical-align:-2px}

/* TIP */
.tip{margin-top:10px;background:var(--green-50);border-radius:12px;padding:12px;display:flex;gap:8px;align-items:center;font-size:12.5px;color:#2a4a42}
.tip svg{width:20px!important;height:20px!important;min-width:20px;color:var(--green-700)}

/* FORM */
label{font-size:11.5px;font-weight:800;color:#3a4f4a;letter-spacing:.6px}
input,select{width:100%;padding:13px 14px;border-radius:12px;border:1.5px solid #dfe8e4;font-size:15px;margin:6px 0 10px;background:#fff;color:var(--ink)}
input:focus{outline:none;border-color:var(--green-600);box-shadow:0 0 0 3px rgba(16,185,129,.15)}
.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}
.btn{display:flex;width:100%;padding:14px;border-radius:14px;border:0;font-size:15px;font-weight:800;cursor:pointer;text-align:center;text-decoration:none;margin:8px 0;align-items:center;justify-content:center;gap:6px}
.btn-green{background:var(--green-600);color:#fff}.btn-dark{background:var(--green-950);color:#fff}.btn-grey{background:#edf3f0;color:#123}.btn-grey.sm{max-width:102px;flex:none;margin:6px 0 10px;border-radius:12px;padding:13px 0}
.btn-start{background:linear-gradient(135deg,#065f46,#0d7a5f 60%,#10b981 130%);color:#fff;box-shadow:0 8px 20px rgba(4,120,87,.35);transition:transform .15s ease,filter .2s}
.btn-start:hover{filter:brightness(1.06)}
.btn-start:active{transform:scale(.98)}
.btn-stop{background:linear-gradient(135deg,#d69a9a,#cf8a8a);color:#fff;box-shadow:0 6px 16px rgba(192,57,43,.25);transition:transform .15s ease,filter .2s}
.btn-stop:not(:disabled){background:linear-gradient(135deg,#b03a2e,#c0392b);box-shadow:0 8px 20px rgba(192,57,43,.4)}
.btn-stop:not(:disabled):hover{filter:brightness(1.07)}
.btn-stop:not(:disabled):active{transform:scale(.98)}
.btn-stop:disabled{opacity:1;cursor:not-allowed}
.stop-ic{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid rgba(255,255,255,.9);border-radius:7px;flex:none}
.stop-ic svg{width:12px!important;height:12px!important;margin:0!important}
.btn-ic.spin svg,.btn-ic.spin{animation:spin 1s linear infinite}
.info-box.muted{color:var(--muted)}
.btn:disabled{cursor:not-allowed}
.btn-stop:disabled{opacity:1}
.btn-ic{width:17px!important;height:17px!important}
.badge{display:inline-block;padding:5px 12px;border-radius:20px;font-size:11.5px;font-weight:800}
.live-on{background:#d1fae5;color:#065f46}.live-off{background:#fdeeee;color:#c0392b}
.code-big{font-size:32px;letter-spacing:8px;font-weight:900;text-align:center;background:var(--green-950);color:#fff;border-radius:14px;padding:14px;margin:10px 0}
.small{font-size:12.5px;color:var(--muted);line-height:1.6}.small.err{color:#c0392b}.center{text-align:center}
.info-box{background:#f2f6f4;border-radius:12px;padding:11px 13px;font-size:13px;margin:8px 0;line-height:1.6;color:#334}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px;vertical-align:1px}
.dot.g{background:#22c55e;box-shadow:0 0 8px #22c55e}.dot.gr{background:#9ca3af}
/* Mic — lingkaran + gelombang hanya saat bicara */
.mic-wrap{position:relative;width:132px;height:132px;margin:14px auto 6px;display:flex;align-items:center;justify-content:center}
.mic-wrap .ripple{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(13,122,95,.35);opacity:0;pointer-events:none}
.mic-wrap .ripple.r2{inset:12px}
.mic-wrap.speaking .ripple{opacity:1;animation:ripple 1.6s ease-out infinite}
.mic-wrap.speaking .ripple.r2{animation-delay:.5s}
@keyframes ripple{0%{transform:scale(.75);opacity:.9}100%{transform:scale(1.15);opacity:0}}
.mic-btn{position:relative;z-index:1;width:96px;height:96px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#e9f0ec;color:var(--green-900);transition:.2s;box-shadow:inset 0 0 0 6px rgba(255,255,255,.55),0 0 0 3px #d9e7e1,var(--shadow)}
.mic-btn svg{width:38px!important;height:38px!important}
.mic-btn:not(:disabled):hover{transform:scale(1.04)}
.mic-btn:not(:disabled):active{transform:scale(.96)}
.mic-btn.on{background:linear-gradient(135deg,#b03a2e,#c0392b);color:#fff;box-shadow:inset 0 0 0 5px rgba(255,255,255,.25),0 8px 22px rgba(192,57,43,.4)}
.mic-btn.on.speaking{animation:pulse 1.2s infinite}
.mic-btn:disabled{cursor:default}
.mic-title{margin:8px 0 2px;font-size:14.5px}
.mic-sub{margin:0;font-size:12px}
/* Titik-titik idle seperti referensi */
.voice-dots{display:flex;align-items:center;justify-content:center;gap:7px;height:26px;margin:2px 0}
.voice-dots span{width:6px;height:6px;border-radius:50%;background:#cfdbd6}
/* Muthawif page tweak */
.mw-live h2{font-size:21px}
.mw-form{padding:18px 16px}
/* Pendengar — lingkaran headset + gelombang saat suara masuk */
.ear-wrap{position:relative;width:132px;height:132px;margin:14px auto 6px;display:flex;align-items:center;justify-content:center}
.ear-wrap .ripple{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(13,122,95,.35);opacity:0;pointer-events:none}
.ear-wrap .ripple.r2{inset:12px}
.ear-wrap.speaking .ripple{opacity:1;animation:ripple 1.6s ease-out infinite}
.ear-wrap.speaking .ripple.r2{animation-delay:.5s}
.ear-btn{position:relative;z-index:1;width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9f0ec;color:var(--green-900);box-shadow:inset 0 0 0 6px rgba(255,255,255,.55),0 0 0 3px #d9e7e1,var(--shadow)}
.ear-btn svg{width:38px!important;height:38px!important}
.ear-wrap.live .ear-btn{background:linear-gradient(135deg,#064e3b,#0d7a5f);color:#fff;box-shadow:inset 0 0 0 5px rgba(255,255,255,.22),0 8px 22px rgba(4,120,87,.35)}
/* Tombol berhenti netral */
.btn-quiet{background:#edf3f0;color:#26423b;transition:transform .15s ease,filter .2s}
.btn-quiet:not(:disabled):hover{filter:brightness(.97)}
.btn-quiet:not(:disabled):active{transform:scale(.98)}
.btn-quiet:disabled{opacity:.6;cursor:not-allowed}
.stop-ic.dark{border-color:#26423b}
.stop-ic.dark svg{color:#26423b}
.jm-form{padding:18px 16px}
.jm-form audio{filter:saturate(.9)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(192,57,43,.5)}70%{box-shadow:0 0 0 18px rgba(192,57,43,0)}100%{box-shadow:0 0 0 0 rgba(192,57,43,0)}}
#jmAudio{display:none}
/* Pemutar live custom — ganti audio bawaan */
.player{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#f2f7f5,#e9f2ee);border:1.5px solid #dde8e3;border-radius:18px;padding:12px 14px;margin-top:12px;transition:border-color .2s,box-shadow .2s}
.player.live{border-color:#9fd8bb;background:linear-gradient(135deg,#064e3b,#0d7a5f);color:#fff;box-shadow:0 8px 22px rgba(4,120,87,.3)}
.player-btn{width:48px;height:48px;min-width:48px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--green-900);box-shadow:var(--shadow);transition:transform .15s}
.player-btn svg{width:22px!important;height:22px!important}
.player-btn:not(:disabled):hover{transform:scale(1.06)}
.player-btn:not(:disabled):active{transform:scale(.94)}
.player-btn:disabled{opacity:.5;cursor:not-allowed}
.player.live .player-btn{background:rgba(255,255,255,.16);color:#fff;box-shadow:none}
.player-mid{flex:1;min-width:0}
.player-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.player-live{font-size:11px;font-weight:900;letter-spacing:.5px;color:var(--muted)}
.player-live.on{color:var(--green-700)}
.player.live .player-live{color:#a7f3d0}
.player-live.speaking{animation:blink 1s infinite}
.player-time{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--muted)}
.player.live .player-time{color:#d7e9e2}
.player-eq{display:flex;align-items:flex-end;gap:3px;height:22px;margin-bottom:8px}
.player-eq span{flex:1;max-width:9px;border-radius:3px;background:#c3d2cc;height:4px}
.player.live .player-eq span{background:rgba(255,255,255,.35)}
.player-eq.speaking span{background:var(--green-500);animation:eqb .8s ease-in-out infinite}
.player.live .player-eq.speaking span{background:#5eead4}
.player-eq.speaking span:nth-child(2n){animation-delay:.12s}.player-eq.speaking span:nth-child(3n){animation-delay:.24s}
.player-eq.speaking span:nth-child(4n){animation-delay:.36s}.player-eq.speaking span:nth-child(5n){animation-delay:.48s}
.live-vol{width:100%;appearance:none;-webkit-appearance:none;height:6px;border-radius:6px;background:#cfddd7;outline:none;cursor:pointer;margin:0}
.player.live .live-vol{background:rgba(255,255,255,.25)}
.live-vol::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--green-700);border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer}
.player.live .live-vol::-webkit-slider-thumb{background:#fff;border-color:var(--green-700)}
.live-vol::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--green-700);border:3px solid #fff;cursor:pointer}
.live-vol:disabled{opacity:.5;cursor:not-allowed}
.player-status{font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}
.player.live .player-status{color:#fff;background:rgba(255,255,255,.16);padding:6px 10px;border-radius:12px}

/* DOA */
.tabs{display:flex;gap:8px;margin:12px 0;background:#eef4f2;padding:6px;border-radius:14px}
.tab{flex:1;padding:10px;border-radius:10px;background:transparent;border:0;font-weight:800;font-size:13px;cursor:pointer;color:var(--muted)}
.tab.active{background:var(--green-950);color:#fff}
.doa-item{padding:12px 0;border-bottom:1px solid #eef3f1}
.doa-item:last-child{border:0}
.doa-item b{color:var(--green-900)}
.arab{direction:rtl;text-align:right;font-size:21px;line-height:2.1;background:#f8faf9;padding:10px 12px;border-radius:12px;margin:8px 0}
.latin{font-style:italic;font-size:13px;color:#334}.arti{font-size:13px;color:var(--muted)}

/* Tombol utama — gradasi hangat + bayangan */
.btn-primary{background:linear-gradient(135deg,#065f46,#0d7a5f 60%,#10b981 130%);color:#fff;box-shadow:0 8px 20px rgba(4,120,87,.35);transition:transform .15s ease,box-shadow .2s ease,filter .2s}
.btn-primary:hover{filter:brightness(1.06);box-shadow:0 10px 24px rgba(4,120,87,.42)}
.btn-primary:active{transform:scale(.98)}
.btn-primary:disabled{opacity:.75;cursor:wait}
.btn-lg{padding:15px;font-size:15.5px;border-radius:16px}
.btn-soft{background:#edf3f0;color:#0b3d33}
.btn-soft:active{transform:scale(.98)}
.btn-wa{background:#e7f8ef;color:#057857;border:1.5px solid #bfe6cf}
.btn-wa:active{transform:scale(.98)}
/* Kotak sukses kode */
.created-box{background:#f2faf6;border:1.5px dashed #9fd8bb;border-radius:16px;padding:12px;margin-top:10px}
/* Tombol aksi room — pil ramah */
.room-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pill-btn{display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer;font-size:12.5px;font-weight:800;padding:9px 13px;border-radius:14px;transition:transform .15s ease}
.pill-btn svg{width:15px!important;height:15px!important}
.pill-btn:active{transform:scale(.95)}
.pill-btn.mw{background:#e6f4ee;color:#065f46}
.pill-btn.jm{background:#064e3b;color:#fff}
.pill-btn.del{background:#fdeeee;color:#c0392b}
/* Empty state ramah */
.empty-state{text-align:center;padding:18px 6px!important}
.empty-ic{width:64px;height:64px;border-radius:50%;background:var(--green-50);color:var(--green-700);display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.empty-ic svg{width:30px!important;height:30px!important}
.empty-state b{font-size:15.5px}
.empty-state p{margin:6px 0 12px}
/* ADMIN LIST */
.icon-btn{border:0;background:#e7efec;border-radius:10px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--green-900)}
/* Refresh dengan label */
.icon-btn.with-label{width:auto;height:auto;padding:9px 13px;gap:7px;font-size:12.5px;font-weight:800}
.icon-btn.with-label.spin svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.icon-btn svg{width:17px!important;height:17px!important}
.list{margin:0;padding:0;list-style:none}.list li{padding:12px 0;border-bottom:1px solid #eef3f1;font-size:14px}
.room-row{display:flex;align-items:center;justify-content:space-between}
.room-code{font-size:16px;letter-spacing:1px}
.room-name{font-weight:600;margin:2px 0}

/* BOTTOM NAV — full selebar layout, menempel bawah (bukan floating) */
#app{padding-bottom:104px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;z-index:30;padding:0;background:transparent;border:0;box-shadow:none}
.dock{background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:0;border-top:1px solid #e3ede9;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px rgba(6,78,59,.12);display:flex;gap:4px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));align-items:center}
.nav-item{flex:1 1 0;border:0;background:none;cursor:pointer;font-size:13px;font-weight:800;color:#8aa39c;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:0;padding:11px 0;border-radius:20px;position:relative;transition:flex .28s ease,background .22s ease,color .22s ease,padding .22s ease;min-width:0;overflow:hidden}
.nav-item:active{transform:scale(.94)}
.nav-ic{width:auto;height:auto;border-radius:0;display:flex;align-items:center;justify-content:center;position:relative;background:none;box-shadow:none;transform:none;flex:none}
.nav-ic svg{width:24px!important;height:24px!important;stroke-width:1.9}
.nav-lb{max-width:0;opacity:0;white-space:nowrap;overflow:hidden;transition:max-width .28s ease,opacity .2s ease,margin .28s ease;margin-left:0;line-height:1}
.nav-item.active{flex:2.2 1 0;background:linear-gradient(135deg,#064e3b,#0d7a5f 60%,#10b981 130%);color:#fff;padding:11px 18px;box-shadow:0 8px 20px rgba(4,120,87,.42)}
.nav-item.active .nav-ic svg{stroke-width:2.3}
.nav-item.active .nav-lb{max-width:90px;opacity:1;margin-left:8px}
.nav-item:not(.active):hover{background:#eef5f2;color:var(--green-800)}
/* indikator live / count */
.nav-dot{position:absolute;top:-2px;right:-6px;width:9px;height:9px;border-radius:50%;background:#ef4444;border:2px solid #fff}
.nav-dot.green{background:#22c55e}
.nav-dot.speaking{animation:blink 1s infinite}
.nav-count{position:absolute;top:-9px;right:-12px;min-width:17px;height:17px;border-radius:10px;background:var(--green-700);color:#fff;font-size:10px;font-weight:900;font-style:normal;display:flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff}
.nav-item.active .nav-dot,.nav-item.active .nav-count{border-color:#0b6e52}

@media(min-width:500px){body{padding:20px 0}#app{border-radius:28px;min-height:calc(100dvh - 40px);overflow:hidden}.bottom-nav{border-radius:0 0 28px 28px;overflow:hidden}.dock{border-radius:20px 20px 28px 28px}}
