/* =====================================================================
   SIDEBAR FUTURISTIK — TranscribX
   Simpan di: public/css/sidebar-futuristik.css  (dimuat SETELAH css/style.css)
   Tidak mengubah ID apa pun — semua fungsi lama tetap jalan.
   ===================================================================== */
.sidebar {
    --sfx-acc: #38bdf8;           /* aksen utama (ikut status profil) */
    --sfx-acc2: #818cf8;
    --sfx-glass: rgba(15, 23, 42, .55);
    --sfx-line: rgba(56, 189, 248, .22);
    position: relative;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(56, 189, 248, .10), transparent 60%),
        radial-gradient(120% 50% at 100% 100%, rgba(129, 140, 248, .10), transparent 60%),
        linear-gradient(180deg, #0b1224 0%, #0a0f1f 55%, #070b17 100%) !important;
    border-right: 1px solid rgba(56, 189, 248, .18) !important;
    isolation: isolate;
}
/* grid halus + garis neon berjalan di tepi kanan */
.sidebar::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.sidebar::after {
    content: ""; position: absolute; top: 0; right: -1px; width: 2px; height: 30%; pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--sfx-acc), transparent);
    filter: drop-shadow(0 0 6px var(--sfx-acc));
    animation: sfx-edge 5s linear infinite;
}
@keyframes sfx-edge { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }

/* ---------- header: AI Assistant + lonceng ---------- */
.sidebar > div:first-child h3 {
    font-family: 'Orbitron', system-ui, sans-serif !important; font-size: 11px !important; letter-spacing: .18em;
    text-transform: uppercase; color: #7dd3fc !important; display: flex; align-items: center; gap: 8px;
    text-shadow: 0 0 10px rgba(56,189,248,.5);
}
.sidebar > div:first-child h3::after {
    content: "ONLINE"; font: 700 8px/1 system-ui, sans-serif; letter-spacing: .12em; color: #34d399;
    border: 1px solid rgba(52,211,153,.45); background: rgba(16,185,129,.12); padding: 3px 6px; border-radius: 999px;
}
#btn-notification {
    width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,.7); border: 1px solid var(--sfx-line); box-shadow: inset 0 0 12px rgba(56,189,248,.12);
}
#btn-notification > span:first-child { font-size: 16px !important; filter: drop-shadow(0 0 6px rgba(250,204,21,.6)); }
#notif-panel { background: rgba(10,15,31,.96) !important; border-color: rgba(56,189,248,.3) !important; backdrop-filter: blur(10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(56,189,248,.1) !important; }
#notif-panel > div:first-child, #notif-panel > div:last-child { background: rgba(15,23,42,.9) !important; border-color: rgba(56,189,248,.18) !important; }

/* ---------- kotak robot (HUD) — warna aksen ikut waktu (pagi/siang/sore/malam) ---------- */
.sidebar .germic-hero-section {
    background:
        radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--hero-particle, #38bdf8) 26%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(10,16,34,.92), rgba(6,10,22,.96)) !important;
    border: 1px solid color-mix(in srgb, var(--hero-particle, #38bdf8) 45%, transparent) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 18px 35px -18px color-mix(in srgb, var(--hero-particle, #38bdf8) 70%, transparent) !important;
    border-radius: 18px !important;
}
.sidebar .cyber-grid-bg {
    background-image: linear-gradient(to right, color-mix(in srgb, var(--hero-particle, #38bdf8) 16%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--hero-particle, #38bdf8) 16%, transparent) 1px, transparent 1px) !important;
    background-size: 18px 18px !important;
    mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 78%);
}
.sidebar .germic-hero-section #digital-clock-hero {
    font-family: 'Orbitron', system-ui, sans-serif !important; font-size: 22px !important; letter-spacing: .08em !important;
    color: #f8fafc !important; text-shadow: 0 0 10px var(--hero-particle, #38bdf8), 0 0 22px color-mix(in srgb, var(--hero-particle, #38bdf8) 60%, transparent);
}
.sidebar .germic-hero-section #digital-date-hero { color: #94a3b8 !important; letter-spacing: .22em !important; }
.sidebar .germic-hero-section #robot-greeting { color: var(--hero-particle, #38bdf8) !important; text-shadow: 0 0 8px var(--hero-particle, #38bdf8); }
/* sudut HUD, garis pindai & cincin (elemen ditambahkan oleh sidebar-futuristik.js) */
.sfx-corner { position: absolute; width: 14px; height: 14px; z-index: 25; pointer-events: none; border-color: var(--hero-particle, #38bdf8); border-style: solid; filter: drop-shadow(0 0 4px var(--hero-particle, #38bdf8)); }
.sfx-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.sfx-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.sfx-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.sfx-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }
.sfx-scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; z-index: 5; pointer-events: none;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-particle, #38bdf8) 14%, transparent), transparent);
    animation: sfx-scan 4.5s linear infinite; }
@keyframes sfx-scan { to { top: 100%; } }
.sfx-ring { position: absolute; left: 50%; bottom: 6px; width: 150px; height: 150px; transform: translateX(-50%); z-index: 1; pointer-events: none; border-radius: 50%; }
.sfx-ring::before, .sfx-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.sfx-ring::before { border: 1px dashed color-mix(in srgb, var(--hero-particle, #38bdf8) 45%, transparent); animation: sfx-spin 18s linear infinite; }
.sfx-ring::after { inset: 14px; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--hero-particle, #38bdf8) 75%, transparent) 85%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
    animation: sfx-spin 3.2s linear infinite; }
@keyframes sfx-spin { to { transform: rotate(360deg); } }
.sfx-tag { position: absolute; z-index: 25; font: 700 8px/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: color-mix(in srgb, var(--hero-particle, #38bdf8) 85%, white); opacity: .8; pointer-events: none; }
.sfx-tag.l { left: 26px; bottom: 12px; } .sfx-tag.r { right: 26px; bottom: 12px; }

/* ---------- kartu profil: kaca gelap + garis neon sesuai status ---------- */
.sidebar .profile-card {
    --sfx-st: #38bdf8;
    background: linear-gradient(160deg, rgba(15,23,42,.9), rgba(10,15,31,.95)) padding-box,
                linear-gradient(135deg, var(--sfx-st), transparent 45%, color-mix(in srgb, var(--sfx-st) 70%, #818cf8)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    box-shadow: 0 0 22px -6px color-mix(in srgb, var(--sfx-st) 70%, transparent), inset 0 0 24px -12px var(--sfx-st) !important;
    padding: 16px !important;
    width: 100%;
}
.sidebar .profile-card.admin { --sfx-st: #fbbf24; }
.sidebar .profile-card.user-active { --sfx-st: #22d3ee; }
.sidebar .profile-card.user-inactive { --sfx-st: #f87171; }
.sidebar .profile-card.admin, .sidebar .profile-card.user-active { animation: sfx-beat 1.8s ease-in-out infinite !important; }
.sidebar .profile-card.user-inactive { animation: none !important; }
@keyframes sfx-beat { 0%, 100% { box-shadow: 0 0 18px -8px var(--sfx-st), inset 0 0 22px -14px var(--sfx-st); } 15% { box-shadow: 0 0 28px -4px var(--sfx-st), inset 0 0 26px -10px var(--sfx-st); } }
/* garis detak jantung mengikuti warna status */
.sidebar .profile-card svg path[stroke="#ffffff"] { stroke: var(--sfx-st); }
.sidebar .profile-card > div:first-child { opacity: .35 !important; }
/* isi kartu */
.sidebar .profile-card > div:last-child > div:first-child {
    display: inline-flex; align-items: center; gap: 6px; font: 800 9px/1 'Orbitron', system-ui, sans-serif !important; letter-spacing: .2em !important;
    color: var(--sfx-st); opacity: 1 !important; padding: 5px 9px; border-radius: 999px; margin-bottom: 10px !important;
    border: 1px solid color-mix(in srgb, var(--sfx-st) 50%, transparent); background: color-mix(in srgb, var(--sfx-st) 12%, transparent);
}
.sidebar .profile-card > div:last-child > div:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sfx-st); box-shadow: 0 0 8px var(--sfx-st); }
.sidebar #profile-email { color: #f8fafc; font-size: 13px !important; margin-bottom: 12px !important; text-shadow: 0 0 12px rgba(255,255,255,.15); }
.sidebar .profile-card > div:last-child > div:nth-child(3) {
    background: rgba(2,6,23,.55) !important; border: 1px solid rgba(148,163,184,.14); border-radius: 12px !important; padding: 4px 10px !important; backdrop-filter: none !important;
}
.sidebar #profile-paket, .sidebar #profile-ai, .sidebar #profile-upload, .sidebar #profile-mulai, .sidebar #profile-exp {
    margin: 0 !important; padding: 7px 0; font-size: 11.5px; color: #cbd5e1; border-bottom: 1px dashed rgba(148,163,184,.16);
}
.sidebar .profile-card > div:last-child > div:nth-child(3) p:last-of-type { border-bottom: 0; }
.sidebar #profile-mulai { color: #6ee7b7 !important; }
.sidebar #profile-exp { color: #fca5a5 !important; }
.sidebar #profile-countdown { margin: 8px 0 6px !important; font-family: ui-monospace, Consolas, monospace; border-radius: 8px !important; }

/* ---------- jam digital ---------- */
.sidebar .digital-clock {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(8,14,30,.95), rgba(12,20,40,.9)) !important;
    border: 1px solid rgba(56,189,248,.35) !important; border-radius: 14px !important;
    box-shadow: inset 0 0 22px rgba(56,189,248,.12), 0 10px 24px -14px rgba(56,189,248,.6) !important;
    padding: 14px 10px 16px !important;
}
.sidebar .digital-clock::before { content: "SYS • TIME"; position: absolute; left: 10px; top: 7px; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .16em; color: rgba(125,211,252,.6); }
.sidebar .time-display { font-size: 26px !important; letter-spacing: .12em !important; color: #e0f2fe !important; text-shadow: 0 0 8px #38bdf8, 0 0 22px rgba(56,189,248,.65); margin-top: 6px; }
.sidebar .time-display #second { color: #a5b4fc; text-shadow: 0 0 8px #818cf8, 0 0 20px rgba(129,140,248,.6); }
.sidebar .date-display { letter-spacing: .16em !important; color: #64748b !important; font-size: 10px !important; }
.sfx-secbar { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #38bdf8, #818cf8); box-shadow: 0 0 8px #38bdf8; transition: width .9s linear; }

/* ---------- widget statistik & kesehatan sistem ---------- */
.sidebar #sidebar-extra-widgets > div:not(:last-child) {
    position: relative;
    background: linear-gradient(160deg, rgba(10,16,34,.85), rgba(8,12,26,.9)) !important;
    border: 1px solid rgba(56,189,248,.16) !important; border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sidebar #sidebar-extra-widgets h4 { font-family: 'Orbitron', system-ui, sans-serif; color: #7dd3fc !important; font-size: 9px !important; letter-spacing: .18em !important; }
.sidebar #sidebar-extra-widgets > div:not(:last-child) > div > span:first-child { color: #94a3b8 !important; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; }
.sidebar #ping-latency { font-family: ui-monospace, Consolas, monospace; text-shadow: 0 0 8px currentColor; }
.sidebar #pb-ai-bar, .sidebar #pb-up-bar { position: relative; border-radius: 4px; }
.sidebar #pb-ai-bar { background: linear-gradient(90deg, #6366f1, #a855f7) !important; box-shadow: 0 0 10px rgba(168,85,247,.7); }
.sidebar #pb-up-bar { background: linear-gradient(90deg, #10b981, #22d3ee) !important; box-shadow: 0 0 10px rgba(34,211,238,.6); }
.sidebar #pb-ai-bar::after, .sidebar #pb-up-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: sfx-shine 2.2s linear infinite; }
@keyframes sfx-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sidebar #usage-stats-widget [style*="background-color: #334155"] { background: rgba(51,65,85,.55) !important; }
.sfx-spark { display: block; width: 100%; height: 30px; margin-top: 8px; }
.sidebar #sidebar-extra-widgets > div:last-child p { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.sidebar #sidebar-extra-widgets { scrollbar-width: thin; scrollbar-color: rgba(56,189,248,.35) transparent; }

/* ---------- tombol ---------- */
.sidebar #btnTour, .sidebar #btnLogout {
    position: relative; overflow: hidden; border-radius: 12px !important; padding: 11px !important;
    font-family: 'Orbitron', system-ui, sans-serif; font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase;
    transition: transform .2s, box-shadow .2s, background .2s !important;
}
.sidebar #btnTour {
    background: linear-gradient(90deg, rgba(16,185,129,.16), rgba(34,211,238,.12)) !important; color: #6ee7b7 !important;
    border: 1px solid rgba(52,211,153,.55) !important; box-shadow: inset 0 0 18px rgba(16,185,129,.18), 0 0 18px -8px #10b981 !important;
}
.sidebar #btnTour:hover { background: linear-gradient(90deg, rgba(16,185,129,.32), rgba(34,211,238,.24)) !important; box-shadow: inset 0 0 18px rgba(16,185,129,.3), 0 0 24px -4px #10b981 !important; transform: translateY(-2px); }
.sidebar #btnLogout {
    background: linear-gradient(90deg, rgba(239,68,68,.14), rgba(244,63,94,.10)) !important; color: #fda4af !important;
    border: 1px solid rgba(248,113,113,.55) !important; box-shadow: inset 0 0 18px rgba(239,68,68,.16), 0 0 18px -8px #ef4444 !important;
}
.sidebar #btnLogout:hover { background: linear-gradient(90deg, rgba(239,68,68,.32), rgba(244,63,94,.24)) !important; box-shadow: inset 0 0 18px rgba(239,68,68,.3), 0 0 24px -4px #ef4444 !important; transform: translateY(-2px); }
.sidebar #btnTour::after, .sidebar #btnLogout::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg);
    animation: sfx-sweep 4s ease-in-out infinite;
}
.sidebar #btnLogout::after { animation-delay: 2s; }
@keyframes sfx-sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
    .sidebar::after, .sfx-scan, .sfx-ring::before, .sfx-ring::after, .sidebar #btnTour::after, .sidebar #btnLogout::after,
    .sidebar #pb-ai-bar::after, .sidebar #pb-up-bar::after, .sidebar .profile-card { animation: none !important; }
}

/* =====================================================================
   TAB NAVIGASI DASHBOARD — v2 "dok" rapi: ubin seragam (ikon di atas, label
   di bawah), satu baris, lebar sama; bila tidak muat → geser dengan tombol ‹ ›
   ===================================================================== */
#app-view .tfx-navwrap { position: relative; margin-bottom: 18px; }
#app-view .stTabs-container {
    position: relative; display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important;
    gap: 6px !important; margin: 0 !important; padding: 12px 20px 0 !important;
    overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; scroll-behavior: smooth;
    background: linear-gradient(180deg, rgba(8,13,28,.96), rgba(11,18,36,.92)) !important;
    border-bottom: 1px solid rgba(56,189,248,.22) !important;
    box-shadow: 0 10px 30px -18px rgba(56,189,248,.45);
    isolation: isolate;
}
#app-view .stTabs-container::-webkit-scrollbar { display: none; }
#app-view .stTabs-container::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}
#app-view .stTab-btn {
    position: relative; flex: 1 0 112px; min-width: 112px; max-width: 150px;
    display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
    padding: 9px 8px 10px !important; margin: 0 !important; min-height: 74px;
    border-radius: 12px 12px 0 0 !important; clip-path: none !important;
    background: linear-gradient(180deg, rgba(30,41,59,.55), rgba(15,23,42,.75)) !important;
    border: 0 !important; color: #94a3b8 !important; cursor: pointer;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.22; text-align: center; white-space: normal !important;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.12) !important;
    transition: color .25s, background .25s, box-shadow .25s, transform .25s !important;
}
#app-view .stTab-btn:hover {
    color: #e2e8f0 !important; transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(56,189,248,.14), rgba(15,23,42,.8)) !important;
    box-shadow: inset 0 0 0 1px rgba(56,189,248,.45), inset 0 -14px 24px -18px rgba(56,189,248,.8) !important;
}
#app-view .stTab-btn.active {
    color: #f0f9ff !important;
    background: linear-gradient(180deg, rgba(56,189,248,.28), rgba(59,130,246,.16) 55%, rgba(15,23,42,.9)) !important;
    box-shadow: inset 0 0 0 1px rgba(125,211,252,.75), inset 0 -18px 30px -16px rgba(56,189,248,.95), 0 0 22px -6px rgba(56,189,248,.8) !important;
    text-shadow: 0 0 10px rgba(125,211,252,.8);
}
#app-view .stTab-btn.active::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, #38bdf8, #a78bfa); box-shadow: 0 0 10px #38bdf8;
}
#app-view .tfx-ico {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; background: rgba(2,6,23,.6); box-shadow: inset 0 0 0 1px rgba(148,163,184,.2);
    transition: box-shadow .25s, background .25s;
}
#app-view .stTab-btn:hover .tfx-ico { box-shadow: inset 0 0 0 1px rgba(56,189,248,.6), 0 0 10px -2px rgba(56,189,248,.8); }
#app-view .stTab-btn.active .tfx-ico { background: rgba(56,189,248,.18); box-shadow: inset 0 0 0 1px rgba(125,211,252,.9), 0 0 14px -2px #38bdf8; }
#app-view .tfx-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
/* penanda aktif yang meluncur */
.tfx-ind {
    position: absolute; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; pointer-events: none; z-index: 3;
    background: linear-gradient(90deg, #22d3ee, #818cf8, #f472b6); box-shadow: 0 0 12px #38bdf8, 0 0 24px rgba(129,140,248,.6);
    transition: left .45s cubic-bezier(.2,.9,.2,1.15), width .45s cubic-bezier(.2,.9,.2,1.15), opacity .3s;
}
/* tab khusus: Admin (emas), PPT (beta) */
#app-view .stTab-btn[data-tab="tab-admin"].active { box-shadow: inset 0 0 0 1px rgba(251,191,36,.8), inset 0 -18px 30px -16px rgba(251,191,36,.9), 0 0 22px -6px rgba(251,191,36,.8) !important; background: linear-gradient(180deg, rgba(251,191,36,.22), rgba(15,23,42,.9)) !important; text-shadow: 0 0 10px rgba(251,191,36,.7); }
#app-view .stTab-btn[data-tab="tab-admin"].active::before { background: linear-gradient(90deg, #fbbf24, #f97316); box-shadow: 0 0 10px #fbbf24; }
#app-view .stTab-btn[data-tab="tab-ppt"]::after {
    content: "BETA"; position: absolute; top: 6px; right: 6px; font: 800 7px/1 system-ui, sans-serif; letter-spacing: .1em;
    color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); padding: 2px 4px; border-radius: 4px;
}
/* tombol geser ‹ › + bayangan tepi (muncul hanya bila tab tidak muat) */
#app-view .tfx-nav {
    position: absolute; top: 12px; bottom: 1px; width: 44px; z-index: 5; display: flex; align-items: center; border: 0; padding: 0; cursor: pointer;
    color: #e0f2fe; font-size: 22px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s;
}
#app-view .tfx-nav span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,42,.95); box-shadow: inset 0 0 0 1px rgba(56,189,248,.6), 0 0 14px -2px rgba(56,189,248,.8); line-height: 1; }
#app-view .tfx-nav:hover span { background: rgba(56,189,248,.25); }
#app-view .tfx-nav.l { left: 0; justify-content: flex-start; padding-left: 6px; background: linear-gradient(90deg, rgba(8,13,28,1) 30%, rgba(8,13,28,0)); }
#app-view .tfx-nav.r { right: 0; justify-content: flex-end; padding-right: 6px; background: linear-gradient(270deg, rgba(8,13,28,1) 30%, rgba(8,13,28,0)); }
#app-view .tfx-navwrap.can-l .tfx-nav.l, #app-view .tfx-navwrap.can-r .tfx-nav.r { opacity: 1; pointer-events: auto; }
@media (max-width: 768px) {
    #app-view .stTabs-container { padding: 10px 10px 0 !important; gap: 4px !important; }
    #app-view .stTab-btn { flex-basis: 86px; min-width: 86px; min-height: 64px; font-size: 10.5px; padding: 7px 6px 8px !important; gap: 4px; }
    #app-view .tfx-ico { width: 26px; height: 26px; font-size: 14px; }
    #app-view .tfx-nav { width: 36px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tfx-ind { transition: none; } #app-view .stTab-btn:hover { transform: none; } #app-view .stTabs-container { scroll-behavior: auto; } }

/* ---------- MODE KATEGORI: tombol asli disembunyikan, diganti kategori + menu ---------- */
#app-view .stTabs-container.tfx-catmode > .stTab-btn { display: none !important; }
#app-view .stTabs-container.tfx-catmode { padding: 10px 20px 0 !important; }
#app-view .tfx-cats { display: flex; gap: 8px; align-items: stretch; flex: 0 0 auto; }
#app-view .tfx-cat {
    position: relative; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 58px; padding: 8px 14px 10px 10px;
    border: 0; border-radius: 12px 12px 0 0; cursor: pointer; text-align: left; color: #94a3b8;
    background: linear-gradient(180deg, rgba(30,41,59,.55), rgba(15,23,42,.75));
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.12); transition: color .25s, background .25s, box-shadow .25s, transform .25s;
}
#app-view .tfx-cat:hover, #app-view .tfx-cat[aria-expanded="true"] { color: #e2e8f0; transform: translateY(-2px); background: linear-gradient(180deg, rgba(56,189,248,.14), rgba(15,23,42,.8)); box-shadow: inset 0 0 0 1px rgba(56,189,248,.45), inset 0 -14px 24px -18px rgba(56,189,248,.8); }
#app-view .tfx-cat.on { color: #f0f9ff; background: linear-gradient(180deg, rgba(56,189,248,.28), rgba(59,130,246,.16) 55%, rgba(15,23,42,.9)); box-shadow: inset 0 0 0 1px rgba(125,211,252,.75), inset 0 -18px 30px -16px rgba(56,189,248,.95), 0 0 22px -6px rgba(56,189,248,.8); }
#app-view .tfx-cat.on::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, #38bdf8, #a78bfa); box-shadow: 0 0 10px #38bdf8; }
#app-view .tfx-cat.gold.on { background: linear-gradient(180deg, rgba(251,191,36,.22), rgba(15,23,42,.9)); box-shadow: inset 0 0 0 1px rgba(251,191,36,.8), inset 0 -18px 30px -16px rgba(251,191,36,.9), 0 0 22px -6px rgba(251,191,36,.8); }
#app-view .tfx-cat.gold.on::before { background: linear-gradient(90deg, #fbbf24, #f97316); box-shadow: 0 0 10px #fbbf24; }
#app-view .tfx-cat .tfx-ico { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
#app-view .tfx-cat:hover .tfx-ico { box-shadow: inset 0 0 0 1px rgba(56,189,248,.6), 0 0 10px -2px rgba(56,189,248,.8); }
#app-view .tfx-cat.on .tfx-ico { background: rgba(56,189,248,.18); box-shadow: inset 0 0 0 1px rgba(125,211,252,.9), 0 0 14px -2px #38bdf8; }
#app-view .tfx-ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#app-view .tfx-ct b { font-size: 13px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
#app-view .tfx-ct small { font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
#app-view .tfx-cat.on .tfx-ct small { color: #7dd3fc; }
#app-view .tfx-chev { font-size: 11px; margin-left: 2px; opacity: .7; transition: transform .25s; }
#app-view .tfx-cat[aria-expanded="true"] .tfx-chev { transform: rotate(180deg); }
/* menu tarik-turun (ditempel di body) */
.tfx-menu {
    position: fixed; z-index: 9999; box-sizing: border-box; padding: 10px; border-radius: 16px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,13,28,.98)); box-shadow: 0 0 0 1px rgba(56,189,248,.35), 0 24px 50px -12px rgba(0,0,0,.7), 0 0 30px -10px rgba(56,189,248,.5);
    backdrop-filter: blur(8px); transition: opacity .18s, transform .18s; font-family: inherit;
}
.tfx-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.tfx-menu-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; border-bottom: 1px solid rgba(148,163,184,.15); margin-bottom: 6px; }
.tfx-menu-g { display: grid; gap: 4px; }
.tfx-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: #e2e8f0; cursor: pointer; text-align: left; transition: background .2s, box-shadow .2s; }
.tfx-mi:hover, .tfx-mi:focus-visible { background: rgba(56,189,248,.12); box-shadow: inset 0 0 0 1px rgba(56,189,248,.4); outline: none; }
.tfx-mi.on { background: rgba(56,189,248,.18); box-shadow: inset 0 0 0 1px rgba(125,211,252,.6); }
.tfx-mi-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: rgba(2,6,23,.6); box-shadow: inset 0 0 0 1px rgba(148,163,184,.2); }
.tfx-mi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tfx-mi-t b { font-size: 13.5px; font-weight: 800; color: #f1f5f9; }
.tfx-mi-t small { font-size: 11.5px; color: #94a3b8; line-height: 1.35; }
.tfx-mi-ok { color: #38bdf8; font-size: 10px; text-shadow: 0 0 8px #38bdf8; }
.tfx-beta { font: 800 8px/1 system-ui, sans-serif; letter-spacing: .1em; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); padding: 2px 5px; border-radius: 4px; vertical-align: 2px; margin-left: 4px; font-style: normal; }
@media (max-width: 768px) {
    #app-view .stTabs-container.tfx-catmode { padding: 8px 10px 0 !important; }
    #app-view .tfx-cat { min-height: 50px; padding: 6px 10px 8px 8px; gap: 8px; }
    #app-view .tfx-cat .tfx-ico { width: 28px; height: 28px; font-size: 14px; }
    #app-view .tfx-ct b { font-size: 12px; } #app-view .tfx-ct small { max-width: 120px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tfx-menu { transition: none; } #app-view .tfx-cat:hover { transform: none; } }

/* =====================================================================
   TAB LIVE CAPTURE — studio transkripsi (dirapikan oleh sidebar-futuristik.js)
   ===================================================================== */
#tab-live.tfx-live { --lv-c: #38bdf8; --lv-v: #a78bfa; --lv-r: #f43f5e; --lv-g: #10b981; }
/* header */
#tab-live .tfx-lv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2px 0 16px; }
#tab-live .tfx-lv-title { display: flex; align-items: center; gap: 14px; }
#tab-live .tfx-lv-logo { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(167,139,250,.25)); box-shadow: inset 0 0 0 1px rgba(125,211,252,.5), 0 0 24px -6px rgba(56,189,248,.8); }
#tab-live.tfx-rec .tfx-lv-logo { background: linear-gradient(135deg, rgba(244,63,94,.35), rgba(251,113,133,.2)); box-shadow: inset 0 0 0 1px rgba(251,113,133,.7), 0 0 26px -4px rgba(244,63,94,.9); }
#tab-live.tfx-rec .tfx-lv-logo::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid rgba(244,63,94,.6); animation: tfxlv-ring 1.6s ease-out infinite; }
@keyframes tfxlv-ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
#tab-live .tfx-lv-title h3 { margin: 0 !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.01em; background: linear-gradient(90deg, #f0f9ff, #7dd3fc 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
#tab-live .tfx-lv-title p { margin: 3px 0 0; font-size: 12.5px; color: #94a3b8; }
#tab-live .tfx-lv-chips { display: flex; gap: 8px; flex-wrap: wrap; }
#tab-live .tfx-lv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #cbd5e1; background: rgba(15,23,42,.7); box-shadow: inset 0 0 0 1px rgba(148,163,184,.2); }
#tab-live .tfx-lv-chip b { color: #f8fafc; font-variant-numeric: tabular-nums; }
/* langkah */
#tab-live .instruction-box.tfx-steps { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 !important; margin: 0 0 16px !important; background: none !important; border: 0 !important; box-shadow: none !important; color: inherit !important; }
#tab-live .tfx-step { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(30,41,59,.75), rgba(15,23,42,.75)); box-shadow: inset 0 0 0 1px rgba(148,163,184,.14); overflow: hidden; }
#tab-live .tfx-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--lv-c), var(--lv-v)); }
#tab-live .tfx-step-n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: rgba(2,6,23,.65); box-shadow: inset 0 0 0 1px rgba(125,211,252,.35); }
#tab-live .tfx-step small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #7dd3fc; text-transform: uppercase; margin-bottom: 2px; }
#tab-live .tfx-step div { font-size: 13px; line-height: 1.45; color: #cbd5e1; }
#tab-live .tfx-step b { color: #fde68a; }
/* panel kontrol */
#tab-live .controls-wrapper { position: relative; padding: 18px !important; border-radius: 20px !important; background: linear-gradient(180deg, rgba(30,41,59,.72), rgba(15,23,42,.88)) !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(56,189,248,.18), 0 20px 40px -24px rgba(0,0,0,.8) !important; overflow: hidden; }
#tab-live .controls-wrapper::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
#tab-live.tfx-rec .controls-wrapper { box-shadow: inset 0 0 0 1px rgba(244,63,94,.45), 0 0 40px -18px rgba(244,63,94,.8) !important; }
#tab-live .controls-row { position: relative; gap: 10px !important; }
#tab-live .btn-custom { border: 0 !important; border-radius: 12px !important; font-weight: 800 !important; letter-spacing: .01em; padding: 11px 18px !important; transition: transform .2s, box-shadow .2s, filter .2s, opacity .2s !important; }
#tab-live .btn-custom:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }
#tab-live #langSelect { background: rgba(2,6,23,.7) !important; color: #e2e8f0 !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.3) !important; padding-right: 30px !important; }
#tab-live #langSelect option { background: #0f172a; color: #e2e8f0; }
#tab-live #startBtn { background: linear-gradient(135deg, #0ea5e9, #6366f1) !important; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(14,165,233,.9), inset 0 1px 0 rgba(255,255,255,.25) !important; }
#tab-live #startVoiceBtn { background: linear-gradient(135deg, #10b981, #0d9488) !important; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(16,185,129,.9), inset 0 1px 0 rgba(255,255,255,.25) !important; }
#tab-live #stopBtn { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(244,63,94,.9) !important; }
#tab-live #stopBtn:not(:disabled) { animation: tfxlv-glow 1.6s ease-in-out infinite; }
@keyframes tfxlv-glow { 50% { box-shadow: 0 0 0 4px rgba(244,63,94,.25), 0 10px 28px -8px rgba(244,63,94,1); } }
#tab-live .btn-custom:disabled, #tab-live #startBtn:disabled, #tab-live #startVoiceBtn:disabled, #tab-live #stopBtn:disabled { background: rgba(51,65,85,.6) !important; color: #64748b !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.15) !important; cursor: not-allowed; animation: none !important; }
/* peringatan berjalan */
#tab-live .controls-row > .overflow-hidden { position: relative; border-radius: 10px !important; background: rgba(245,158,11,.08) !important; border: 1px solid rgba(245,158,11,.25) !important; padding: 9px 12px 9px 36px !important; }
#tab-live .controls-row > .overflow-hidden::before { content: "⚠️"; position: absolute; left: 0; top: 0; bottom: 0; width: 30px; display: grid; place-items: center; font-size: 13px; background: rgba(245,158,11,.18); z-index: 1; }
/* status */
#tab-live .status-badge { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px !important; border-radius: 999px !important; background: rgba(2,6,23,.75) !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.25) !important; font-weight: 800; font-size: 12.5px; }
#tab-live .status-badge #status { color: #94a3b8 !important; }
#tab-live .indicator-dot { width: 10px !important; height: 10px !important; border-radius: 50% !important; background: #64748b !important; box-shadow: none !important; }
#tab-live.tfx-rec .status-badge { box-shadow: inset 0 0 0 1px rgba(244,63,94,.7), 0 0 18px -4px rgba(244,63,94,.9) !important; }
#tab-live.tfx-rec .status-badge #status { color: #fecdd3 !important; }
#tab-live.tfx-rec .indicator-dot { background: var(--lv-r) !important; box-shadow: 0 0 0 0 rgba(244,63,94,.7) !important; animation: tfxlv-dot 1.2s infinite; }
@keyframes tfxlv-dot { 70% { box-shadow: 0 0 0 9px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
#tab-live .tfx-lv-timer { font-variant-numeric: tabular-nums; color: #f8fafc; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(148,163,184,.3); display: none; }
#tab-live.tfx-rec .tfx-lv-timer { display: inline; }
/* visualizer */
#tab-live .visualizer-container { position: relative; height: 96px !important; margin: 16px 0 !important; border-radius: 16px !important; overflow: hidden; background: radial-gradient(120% 140% at 50% 120%, rgba(56,189,248,.18), rgba(2,6,23,.95) 60%) !important; box-shadow: inset 0 0 0 1px rgba(56,189,248,.22) !important; border: 0 !important; }
#tab-live .visualizer-container::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(125,211,252,.45), transparent); }
#tab-live .visualizer-container canvas { position: relative; z-index: 1; display: block; width: 100%; height: 80px; margin-top: 8px; filter: hue-rotate(165deg) saturate(1.6) drop-shadow(0 0 6px rgba(56,189,248,.8)); }
#tab-live .tfx-lv-idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; z-index: 0; transition: opacity .3s; }
#tab-live .tfx-lv-idle i { width: 4px; height: 10px; border-radius: 4px; background: linear-gradient(180deg, var(--lv-c), var(--lv-v)); opacity: .55; animation: tfxlv-bar 1.6s ease-in-out infinite; }
#tab-live .tfx-lv-idle span { position: absolute; bottom: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: #64748b; text-transform: uppercase; }
@keyframes tfxlv-bar { 0%, 100% { height: 8px; } 50% { height: 34px; } }
#tab-live.tfx-rec .tfx-lv-idle { opacity: 0; }
#tab-live.tfx-rec .visualizer-container { box-shadow: inset 0 0 0 1px rgba(244,63,94,.45), 0 0 30px -10px rgba(244,63,94,.6) !important; }
/* bagian AI */
#tab-live .ai-section { padding: 12px 14px !important; border-radius: 16px !important; background: rgba(2,6,23,.45) !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(167,139,250,.22) !important; }
#tab-live #aiBtn { position: relative; overflow: hidden; background: linear-gradient(135deg, #8b5cf6, #ec4899) !important; color: #fff !important; padding: 12px 22px !important; box-shadow: 0 12px 28px -10px rgba(168,85,247,.9), inset 0 1px 0 rgba(255,255,255,.3) !important; }
#tab-live #aiBtn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); animation: tfxlv-shine 3.2s ease-in-out infinite; }
@keyframes tfxlv-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
/* kartu transkrip */
#tab-live .tfx-lv-tcard { margin-top: 18px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(30,41,59,.75), rgba(15,23,42,.9)); box-shadow: inset 0 0 0 1px rgba(148,163,184,.16), 0 20px 40px -26px rgba(0,0,0,.9); }
#tab-live .tfx-lv-thead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid rgba(148,163,184,.14); background: rgba(2,6,23,.35); }
#tab-live .tfx-lv-thead h4 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: #f1f5f9; }
#tab-live .tfx-lv-thead h4 small { font-size: 11.5px; font-weight: 700; color: #94a3b8; }
#tab-live .tfx-lv-thead .tfx-live-tag { display: none; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: #fff; background: var(--lv-r); padding: 3px 8px; border-radius: 6px; box-shadow: 0 0 12px rgba(244,63,94,.8); }
#tab-live.tfx-rec .tfx-lv-thead .tfx-live-tag { display: inline-block; animation: tfxlv-blink 1.4s steps(2, start) infinite; }
@keyframes tfxlv-blink { 50% { opacity: .55; } }
#tab-live .tfx-lv-thead > .flex { margin: 0 !important; flex-wrap: wrap; }
#tab-live .tfx-lv-thead .btn-custom { padding: 7px 13px !important; font-size: 12.5px !important; border-radius: 10px !important; }
#tab-live .tfx-lv-thead #copyBtn, #tab-live .tfx-lv-thead #clearBtn { background: rgba(2,6,23,.6) !important; color: #e2e8f0 !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.3) !important; }
#tab-live .tfx-lv-thead #downloadNotulensiBtn { background: linear-gradient(135deg, #10b981, #0d9488) !important; color: #fff !important; }
#tab-live .tfx-lv-thead #downloadDocxBtn { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; color: #fff !important; }
#tab-live .tfx-lv-tcard .transcript-box { min-height: 340px; max-height: 60vh; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 16px 18px !important; overflow-y: auto; box-shadow: none !important; }
#tab-live .transcript-box .line-final { position: relative; padding: 9px 12px 9px 14px !important; margin: 0 0 6px !important; border-radius: 10px; color: #e2e8f0 !important; line-height: 1.6; background: rgba(2,6,23,.35); border-left: 3px solid rgba(56,189,248,.55) !important; animation: tfxlv-in .35s ease-out; }
#tab-live .transcript-box .line-final:hover { background: rgba(56,189,248,.08); }
#tab-live .transcript-box .timestamp { display: inline-block; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: #7dd3fc !important; background: rgba(56,189,248,.12); padding: 1px 7px; border-radius: 6px; margin-right: 6px; }
#tab-live .transcript-box .line-interim { padding: 9px 12px !important; border-radius: 10px; color: #c4b5fd !important; font-style: italic; background: rgba(167,139,250,.08); border: 1px dashed rgba(167,139,250,.4) !important; }
#tab-live .transcript-box .line-interim::after { content: "▍"; margin-left: 2px; color: #a78bfa; animation: tfxlv-blink 1s steps(2, start) infinite; }
@keyframes tfxlv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#tab-live .transcript-box #placeholder { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 60px !important; font-size: 14px; }
#tab-live .transcript-box #placeholder::before { content: "🎙️"; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: radial-gradient(circle, rgba(56,189,248,.2), rgba(2,6,23,.6)); box-shadow: 0 0 0 10px rgba(56,189,248,.06), 0 0 0 22px rgba(56,189,248,.03), inset 0 0 0 1px rgba(125,211,252,.4); }
#tab-live.tfx-rec .transcript-box #placeholder::before { content: "🔴"; animation: tfxlv-pulse 1.6s infinite; }
@keyframes tfxlv-pulse { 50% { box-shadow: 0 0 0 14px rgba(244,63,94,.12), 0 0 0 28px rgba(244,63,94,.05), inset 0 0 0 1px rgba(251,113,133,.6); } }
/* arsip rekaman */
#tab-live .tfx-lv-arsip { background: linear-gradient(180deg, rgba(30,41,59,.75), rgba(15,23,42,.9)) !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.16) !important; border-radius: 20px !important; }
#tab-live .tfx-lv-arsip #audioContainer > div { background: rgba(2,6,23,.55) !important; border-radius: 12px !important; box-shadow: inset 0 0 0 1px rgba(56,189,248,.2); padding: 8px 10px !important; }
#tab-live .tfx-lv-arsip audio { height: 36px; filter: invert(.88) hue-rotate(180deg); border-radius: 999px; }
#tab-live .tfx-lv-arsip #audioPlaceholder { padding: 14px; border-radius: 12px; border: 1px dashed rgba(148,163,184,.25); }
@media (max-width: 900px) { #tab-live .instruction-box.tfx-steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    #tab-live .tfx-lv-title h3 { font-size: 19px !important; }
    #tab-live .controls-row > .btn-custom, #tab-live #langSelect { flex: 1 1 auto; }
    #tab-live .tfx-lv-chips { display: none; }
}
@media (prefers-reduced-motion: reduce) { #tab-live *, #tab-live *::before, #tab-live *::after { animation: none !important; } }

/* =====================================================================
   TABEL MANAJEMEN & KELOLA KLIEN (Admin Panel)
   Kartu diberi class "tfx-clients" oleh sidebar-futuristik.js
   ===================================================================== */
.tfx-clients {
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, rgba(10,16,34,.95), rgba(7,11,24,.97)) !important;
    border: 1px solid rgba(56,189,248,.22) !important;
    box-shadow: 0 20px 40px -24px rgba(56,189,248,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.tfx-clients::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(56,189,248,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.045) 1px, transparent 1px);
    background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 30%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 30%);
}
.tfx-clients > .tfx-corner { position: absolute; width: 16px; height: 16px; border: 2px solid #38bdf8; pointer-events: none; filter: drop-shadow(0 0 4px #38bdf8); }
.tfx-clients > .tfx-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.tfx-clients > .tfx-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }
.tfx-clients > h4 {
    position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: 'Orbitron', system-ui, sans-serif; font-size: 14px !important; letter-spacing: .08em; color: #7dd3fc !important;
    text-shadow: 0 0 12px rgba(56,189,248,.55);
}
.tfx-count { font: 700 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: #a5f3fc; padding: 5px 9px; border-radius: 999px;
    border: 1px solid rgba(34,211,238,.45); background: rgba(34,211,238,.1); text-shadow: none; }
.tfx-count b { color: #34d399; }
/* pencarian & filter */
.tfx-clients #search-user, .tfx-clients #filter-status {
    background: rgba(2,6,23,.7) !important; border: 1px solid rgba(56,189,248,.3) !important; border-radius: 12px !important; color: #e2e8f0 !important;
    box-shadow: inset 0 0 14px rgba(56,189,248,.06);
}
.tfx-clients #search-user:focus, .tfx-clients #filter-status:focus { border-color: #38bdf8 !important; box-shadow: 0 0 0 3px rgba(56,189,248,.18), 0 0 18px -4px #38bdf8 !important; }
/* tabel */
.tfx-clients table { border-collapse: separate !important; border-spacing: 0 8px; }
.tfx-clients thead tr { background: rgba(8,13,28,.96) !important; box-shadow: 0 1px 0 rgba(56,189,248,.35), 0 8px 18px -12px rgba(56,189,248,.6) !important; border: 0 !important; }
.tfx-clients thead th {
    font-family: 'Orbitron', system-ui, sans-serif; font-size: 9.5px !important; letter-spacing: .14em; text-transform: uppercase;
    color: #7dd3fc !important; font-weight: 700 !important; padding: 12px !important; white-space: nowrap;
}
.tfx-clients tbody tr {
    position: relative; border: 0 !important;
    background: linear-gradient(90deg, rgba(15,23,42,.9), rgba(17,26,48,.75)) !important;
    transition: background .25s, box-shadow .25s, transform .25s;
}
.tfx-clients tbody td { border-top: 1px solid rgba(148,163,184,.1); border-bottom: 1px solid rgba(148,163,184,.1); vertical-align: middle; }
.tfx-clients tbody td:first-child { border-left: 1px solid rgba(148,163,184,.1); border-radius: 12px 0 0 12px; box-shadow: inset 3px 0 0 var(--tfx-row, #38bdf8); }
.tfx-clients tbody td:last-child { border-right: 1px solid rgba(148,163,184,.1); border-radius: 0 12px 12px 0; }
.tfx-clients tbody tr:hover { background: linear-gradient(90deg, rgba(14,165,233,.12), rgba(17,26,48,.85)) !important; }
.tfx-clients tbody tr:hover td { border-color: rgba(56,189,248,.35); }
.tfx-clients tbody tr[data-st="aktif"] { --tfx-row: #34d399; }
.tfx-clients tbody tr[data-st="non-aktif"] { --tfx-row: #fb7185; }
.tfx-clients tbody tr[data-pkg="ADMIN"] { --tfx-row: #fbbf24; }
/* kolom email + avatar */
.tfx-mail { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.tfx-av { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font: 800 14px/1 'Orbitron', system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2));
    box-shadow: 0 0 14px -3px var(--a1), inset 0 0 0 1px rgba(255,255,255,.25); }
.tfx-mail-txt { display: flex; flex-direction: column; min-width: 0; }
.tfx-mail-txt b { color: #f1f5f9; font-weight: 700; font-size: 13px; word-break: break-all; }
.tfx-mail-txt small { color: #64748b; font: 600 10px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
/* status pill */
.tfx-clients tbody td:nth-child(2) > span:first-child {
    display: inline-flex !important; align-items: center; gap: 6px; border-radius: 999px !important; padding: 4px 10px !important;
    font: 800 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase;
}
.tfx-clients tbody td:nth-child(2) > span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: tfx-blink 1.6s ease-in-out infinite; }
.tfx-clients tbody td:nth-child(2) > span.text-emerald-400 { background: rgba(16,185,129,.14) !important; box-shadow: inset 0 0 0 1px rgba(52,211,153,.45); color: #34d399 !important; }
.tfx-clients tbody td:nth-child(2) > span.text-rose-400 { background: rgba(244,63,94,.12) !important; box-shadow: inset 0 0 0 1px rgba(251,113,133,.45); color: #fb7185 !important; }
@keyframes tfx-blink { 50% { opacity: .35; } }
.tfx-clients tbody td:nth-child(2) > div { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.tfx-clients .admin-countdown { color: #fde047 !important; text-shadow: 0 0 8px rgba(250,204,21,.6); font-family: ui-monospace, Consolas, monospace; }
.tfx-clients input[type="date"] { color-scheme: dark; width: 142px !important; max-width: 142px !important; font-family: ui-monospace, Consolas, monospace; background: rgba(2,6,23,.75) !important; border: 1px solid rgba(56,189,248,.3) !important; border-radius: 8px !important; color: #e2e8f0 !important; }
/* pilihan paket berwarna sesuai paket */
.tfx-clients select[id^="pkg-"] {
    --pk: #94a3b8; background: rgba(2,6,23,.75) !important; color: var(--pk) !important; font-weight: 800; letter-spacing: .06em;
    border: 1px solid color-mix(in srgb, var(--pk) 55%, transparent) !important; border-radius: 10px !important;
    box-shadow: 0 0 14px -6px var(--pk), inset 0 0 12px -8px var(--pk);
}
.tfx-clients select[data-pkg="BASIC"] { --pk: #cbd5e1; }
.tfx-clients select[data-pkg="EXECUTIVE"] { --pk: #22d3ee; }
.tfx-clients select[data-pkg="MASTER"] { --pk: #c084fc; }
.tfx-clients select[data-pkg="NON-AKTIF"] { --pk: #fb7185; }
.tfx-clients select[id^="pkg-"] option { background: #0f172a; color: #e2e8f0; }
/* sakelar hak akses */
.tfx-clients input.peer + div { width: 32px !important; height: 17px !important; background: rgba(51,65,85,.9) !important; box-shadow: inset 0 0 0 1px rgba(148,163,184,.25); }
.tfx-clients input.peer + div::after { top: 2px !important; height: 13px !important; width: 13px !important; background: #94a3b8 !important; border: 0 !important; }
.tfx-clients input.peer:checked + div { background: linear-gradient(90deg, #0ea5e9, #6366f1) !important; box-shadow: 0 0 12px -2px #38bdf8, inset 0 0 0 1px rgba(125,211,252,.6); }
.tfx-clients input.peer:checked + div::after { background: #fff !important; box-shadow: 0 0 8px #fff; }
.tfx-clients input.peer + div + span { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px !important; color: #64748b !important; transition: color .2s; }
.tfx-clients input.peer:checked + div + span { color: #e2e8f0 !important; }
/* kuota */
.tfx-clients input[id^="edit-ai-"], .tfx-clients input[id^="edit-up-"] {
    width: 64px !important; font-family: 'Orbitron', system-ui, sans-serif; font-size: 15px !important; border-radius: 12px !important; background: rgba(2,6,23,.8) !important;
}
.tfx-clients input[id^="edit-ai-"] { color: #38bdf8 !important; border: 1px solid rgba(56,189,248,.5) !important; box-shadow: 0 0 16px -6px #38bdf8, inset 0 0 12px -6px #38bdf8; text-shadow: 0 0 8px rgba(56,189,248,.8); }
.tfx-clients input[id^="edit-up-"] { color: #34d399 !important; border: 1px solid rgba(52,211,153,.5) !important; box-shadow: 0 0 16px -6px #10b981, inset 0 0 12px -6px #10b981; text-shadow: 0 0 8px rgba(52,211,153,.8); }
/* tombol aksi */
.tfx-clients tbody td:last-child button {
    border-radius: 10px !important; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; transition: all .2s !important; position: relative; overflow: hidden;
}
.tfx-clients tbody td:last-child button.bg-blue-600 { background: linear-gradient(90deg, rgba(14,165,233,.25), rgba(99,102,241,.25)) !important; color: #bae6fd !important; box-shadow: inset 0 0 0 1px rgba(56,189,248,.7), 0 0 16px -6px #38bdf8 !important; }
.tfx-clients tbody td:last-child button.bg-purple-600 { background: rgba(168,85,247,.16) !important; color: #e9d5ff !important; box-shadow: inset 0 0 0 1px rgba(192,132,252,.6) !important; }
.tfx-clients tbody td:last-child button.bg-rose-600 { background: rgba(244,63,94,.12) !important; color: #fecdd3 !important; box-shadow: inset 0 0 0 1px rgba(251,113,133,.55) !important; }
.tfx-clients tbody td:last-child button:hover { transform: translateY(-1px); filter: brightness(1.25); }
.tfx-clients tbody td:last-child button.bg-blue-600:hover { box-shadow: inset 0 0 0 1px #7dd3fc, 0 0 20px -2px #38bdf8 !important; }
.tfx-clients tbody td:last-child button.bg-rose-600:hover { background: rgba(244,63,94,.3) !important; }
.tfx-clients tbody td:last-child button:disabled, .tfx-clients tbody td:last-child button.bg-slate-600 { opacity: .6; cursor: wait; filter: grayscale(.5); }
/* area gulir */
.tfx-clients .overflow-y-auto { scrollbar-color: rgba(56,189,248,.4) transparent !important; }

/* =====================================================================
   DASHBOARD ADMIN (Enterprise Control) — panel HUD, angka bercahaya, tabel & filter
   ===================================================================== */
#tab-admin { --acc: #38bdf8; }
#tab-admin > .flex:first-child h3 {
    font-family: 'Orbitron', system-ui, sans-serif; letter-spacing: .06em; font-size: 22px !important;
    background: linear-gradient(90deg, #fde68a, #38bdf8 45%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 12px rgba(56,189,248,.35));
}
/* panel kaca HUD (semua kartu admin kecuali tabel klien yang punya gaya sendiri) */
#tab-admin .metric-card,
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) {
    position: relative; isolation: isolate; overflow: hidden;
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 55%),
                linear-gradient(165deg, rgba(12,19,38,.94), rgba(7,11,24,.96)) !important;
    border: 1px solid color-mix(in srgb, var(--acc) 38%, transparent) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--acc) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.05) !important;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
#tab-admin .metric-card::before,
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients)::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(color-mix(in srgb, var(--acc) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--acc) 7%, transparent) 1px, transparent 1px);
    background-size: 22px 22px; mask-image: linear-gradient(160deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%);
}
#tab-admin .metric-card::after,
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients)::after {
    content: ""; position: absolute; top: 10px; left: 10px; width: 14px; height: 14px; pointer-events: none;
    border-top: 2px solid var(--acc); border-left: 2px solid var(--acc); border-radius: 5px 0 0 0; filter: drop-shadow(0 0 4px var(--acc)); opacity: .9;
}
/* panel peta: biarkan peta layar-penuh (position:fixed) & panel Leaflet tetap di atas segalanya */
#tab-admin .bg-\[\#1e293b\].tfx-free { isolation: auto; overflow: visible; transform: none !important; }
#tab-admin .bg-\[\#1e293b\].tfx-free::before { display: none; }
#tab-admin .bg-\[\#1e293b\]:has(.xm-wrap) { isolation: auto; overflow: visible; }
#tab-admin .bg-\[\#1e293b\]:has(.xm-wrap)::before { display: none; }
#tab-admin .metric-card:hover,
#tab-admin .grid > .bg-\[\#1e293b\]:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -22px var(--acc), inset 0 1px 0 rgba(255,255,255,.06) !important; border-color: color-mix(in srgb, var(--acc) 65%, transparent) !important; }
/* label kecil & angka besar */
#tab-admin .metric-card > p, #tab-admin .bg-\[\#1e293b\] > p.uppercase, #tab-admin .bg-\[\#1e293b\] p.tracking-wider {
    font-family: ui-monospace, Consolas, monospace !important; letter-spacing: .16em !important; color: #7d8fae !important; padding-left: 14px;
}
#tab-admin .metric-card h2, #tab-admin .bg-\[\#1e293b\] h2 {
    font-family: 'Orbitron', system-ui, sans-serif !important; letter-spacing: .04em; text-shadow: 0 0 14px currentColor, 0 0 30px color-mix(in srgb, currentColor 40%, transparent);
}
.tfx-bar { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(148,163,184,.12); overflow: hidden; pointer-events: none; }
.tfx-bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 40%, transparent), var(--acc)); box-shadow: 0 0 10px var(--acc); transition: width 1s cubic-bezier(.2,.9,.2,1); }
/* judul seksi */
#tab-admin h4.text-lg, #tab-admin .bg-\[\#1e293b\] h4 {
    font-family: 'Orbitron', system-ui, sans-serif; letter-spacing: .06em; font-size: 14px !important;
    text-shadow: 0 0 12px color-mix(in srgb, currentColor 55%, transparent);
}
#tab-admin > h4.text-lg { display: flex; align-items: center; gap: 12px; }
#tab-admin > h4.text-lg::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .45; }
/* tombol */
#tab-admin button.bg-blue-600:not(.tfx-clients *), #tab-admin button.bg-emerald-600:not(.tfx-clients *) {
    border-radius: 11px !important; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; transition: all .2s !important;
}
#tab-admin button.bg-blue-600:not(.tfx-clients *) { background: linear-gradient(90deg, rgba(14,165,233,.22), rgba(99,102,241,.22)) !important; color: #bae6fd !important; box-shadow: inset 0 0 0 1px rgba(56,189,248,.7), 0 0 16px -6px #38bdf8 !important; }
#tab-admin button.bg-emerald-600:not(.tfx-clients *) { background: linear-gradient(90deg, rgba(16,185,129,.22), rgba(34,211,238,.18)) !important; color: #a7f3d0 !important; box-shadow: inset 0 0 0 1px rgba(52,211,153,.7), 0 0 16px -6px #10b981 !important; }
#tab-admin button.bg-blue-600:not(.tfx-clients *):hover, #tab-admin button.bg-emerald-600:not(.tfx-clients *):hover { transform: translateY(-1px); filter: brightness(1.3); }
#tab-admin #btnAdminRegister { border-radius: 12px !important; font-family: 'Orbitron', system-ui, sans-serif; letter-spacing: .08em; font-size: 12px; background: linear-gradient(90deg, #0ea5e9, #6366f1) !important; box-shadow: 0 0 22px -6px #38bdf8, inset 0 0 0 1px rgba(255,255,255,.2) !important; }
/* sakelar maintenance */
#tab-admin #admin-toggle-maintenance + div { box-shadow: inset 0 0 0 1px rgba(251,113,133,.45); }
#tab-admin #admin-toggle-maintenance:checked + div { background: linear-gradient(90deg, #f43f5e, #f97316) !important; box-shadow: 0 0 16px -2px #f43f5e; }
/* input, select, tanggal */
#tab-admin input.input-custom, #tab-admin select.input-custom, #tab-admin .bg-\[\#0f172a\].rounded-lg.border, #tab-admin select.bg-\[\#0f172a\] {
    background: rgba(2,6,23,.72) !important; border: 1px solid rgba(56,189,248,.28) !important; border-radius: 11px !important; color: #e2e8f0 !important;
}
#tab-admin input.input-custom:focus, #tab-admin select:focus { border-color: #38bdf8 !important; box-shadow: 0 0 0 3px rgba(56,189,248,.16), 0 0 16px -4px #38bdf8 !important; }
#tab-admin input[type="date"] { color-scheme: dark; font-family: ui-monospace, Consolas, monospace; }
#tab-admin .bg-\[\#0f172a\].rounded-lg.border span { font-family: ui-monospace, monospace; letter-spacing: .08em; color: #7dd3fc !important; }
/* pilihan 24h / 7d / 30d */
#tab-admin .flex.bg-\[\#0f172a\].rounded-lg.p-1 { background: rgba(2,6,23,.8) !important; border-color: rgba(129,140,248,.35) !important; }
#tab-admin .flex.bg-\[\#0f172a\].rounded-lg.p-1 button { font-family: ui-monospace, monospace; }
#tab-admin .flex.bg-\[\#0f172a\].rounded-lg.p-1 button.bg-slate-700 { background: linear-gradient(90deg, #6366f1, #8b5cf6) !important; box-shadow: 0 0 12px -2px #818cf8; }
/* tabel log (selain tabel klien) */
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table thead tr { background: rgba(4,8,20,.95) !important; border-color: rgba(56,189,248,.3) !important; }
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table thead th { font-family: 'Orbitron', system-ui, sans-serif; font-size: 9px !important; letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc; }
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table thead th.text-amber-400 { color: #fbbf24; } #tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table thead th.text-purple-400 { color: #c084fc; }
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table tbody tr { transition: background .2s; }
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table tbody tr:hover { background: rgba(56,189,248,.07) !important; }
#tab-admin .bg-\[\#1e293b\]:not(.tfx-clients) table tbody td { font-family: ui-monospace, Consolas, monospace; border-color: rgba(148,163,184,.08) !important; }
#tab-admin .border.border-slate-700.rounded-lg { border-color: rgba(56,189,248,.22) !important; border-radius: 14px !important; background: rgba(2,6,23,.35); }
/* daftar klien online */
#tab-admin #online-users-list li { border-radius: 10px; padding: 6px 8px; transition: background .2s; font-family: ui-monospace, Consolas, monospace; }
#tab-admin #online-users-list li:hover { background: rgba(52,211,153,.08); }
/* wadah grafik: cahaya lembut di bawah garis/batang */
#tab-admin #chart-traffic, #tab-admin #chart-status, #tab-admin #chart-paket { filter: drop-shadow(0 0 8px rgba(56,189,248,.15)); }
@media (prefers-reduced-motion: reduce) { #tab-admin .metric-card:hover, #tab-admin .grid > .bg-\[\#1e293b\]:hover { transform: none; } .tfx-bar i { transition: none; } }
