/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080d;
  --surface:     #0f0f17;
  --surface2:    #16161f;
  --surface3:    #1c1c28;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --accent:      #FFD700;
  --accent-dim:  rgba(255,215,0,0.12);
  --accent2:     #00e5ff;
  --danger:      #ff4757;
  --success:     #2ed573;
  --text:        #e8e8f2;
  --text-muted:  rgba(232,232,242,0.4);
  --sidebar-w:   220px;
  --topbar-h:    56px;
  --footer-h:    40px;
  --radius:      10px;
  --font:        'Syne', sans-serif;
  --mono:        'Space Mono', monospace;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* ── LAYOUT ── */
/*
  🔵 Sidebar  = kiri, full tinggi
  🩵 Topbar   = atas (kanan sidebar)
  🟣 Content  = tengah
  🟡 Right    = kanan
  🔴 Footer   = bawah (kanan sidebar)
*/
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr var(--footer-h);
  height: 100vh;
  overflow: hidden;
}

/* Sidebar: full tinggi (span semua row) */
.leftside {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Right area: topbar + body-row + footer */
.main-wrapper {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--footer-h);
  overflow: hidden;
  min-width: 0;
}

/* ══ SIDEBAR ══ */
.leftside {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.leftside-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  color: #000;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, #00c8ff, #ff00e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sidebar Nav */
.leftside-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 8px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
  position: relative;
}

.nav-item:hover { background: var(--surface2); color: var(--text); }

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,215,0,0.2);
}

.nav-icon { font-size: 15px; flex-shrink: 0; }
.nav-text { flex: 1; }

.nav-badge {
  background: var(--danger);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar Stats */
.leftside-stats {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.ss-row { display: flex; gap: 6px; }

.ss-item {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ss-icon { font-size: 13px; }
.ss-val { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); }
.ss-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }



/* ── BODY ROW ── */
.body-row {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.rightside {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.rightside-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rightside-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Main area (tengah) */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ══ CHAT SIDEBAR (kanan) ══ */
.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-header {
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.chat-sidebar-stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.chat-sidebar-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 10px 10px;
}

.chat-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  animation: fadeUp 0.2s ease;
  transition: border-color 0.15s;
}

.chat-sidebar-item:hover { border-color: var(--border2); }

.chat-sidebar-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface3);
  border: 1px solid var(--border);
}

.chat-sidebar-body { flex: 1; min-width: 0; }

.chat-sidebar-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sidebar-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  word-break: break-word;
  line-height: 1.35;
}

/* Override right-area untuk 3-kolom */
.main-wrapper {
  flex-direction: row !important;
  flex-wrap: nowrap;
}

.main-area .header,
.main-area .footer {
  width: 100%;
}

/* ── MAIN AREA (content + chat sidebar) ── */
.main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.main-area .panel-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

/* ── CHAT SIDEBAR (kanan permanen) ── */
.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.chat-sidebar .feed {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── HEADER ── */
.header {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 10px; }

.tiktok-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.tiktok-status.connected { color: var(--success); }

.status-dot-sm {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot-sm.on {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: blink 1.5s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

.duration-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Login / User */
.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover { border-color: rgba(255,255,255,0.2); background: var(--surface3); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 5px 10px;
}

.user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border2);
}

.user-name { font-size: 12px; font-weight: 700; color: var(--text); }

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-logout:hover { color: var(--danger); background: rgba(255,71,87,0.1); }

/* ── PANEL AREA (tengah) ── */
.panel-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.panel {
  display: none;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  gap: 16px;
  overflow: hidden;
}

.panel.active { display: flex; }

.panel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-body.scroll { overflow-y: auto; }

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

input[type="text"], select, input[type="text"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

input[type="text"]:focus, select:focus { border-color: rgba(255,215,0,0.35); }
input[type="text"]::placeholder { color: var(--text-muted); }
select option { background: var(--surface2); }

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.97); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255,71,87,0.35);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-danger:hover { background: rgba(255,71,87,0.1); border-color: var(--danger); }

.btn-clear-sm {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-sm:hover { border-color: var(--danger); color: var(--danger); }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: rgba(255,215,0,0.2); }
.stat-val { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── SETTINGS ── */
.section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding-top: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
}

.setting-title { font-size: 13px; font-weight: 600; color: var(--text); }
.setting-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.tts-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.tts-hint code {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent2);
  font-size: 11px;
}

/* Toggle */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface3); border: 1px solid var(--border); border-radius: 22px; cursor: pointer; transition: all 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: var(--text-muted); border-radius: 50%; transition: all 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--accent-dim); border-color: rgba(255,215,0,0.35); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--accent); }

/* ── OVERLAY LIST ── */
.overlay-list { display: flex; flex-direction: column; gap: 8px; }

.overlay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  gap: 12px;
}

.overlay-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.overlay-url { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

.btn-copy {
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 6px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { border-color: var(--success); color: var(--success); }

/* ── FEED ── */
.feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 60px 0;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  animation: fadeUp 0.2s ease;
}

.comment-item:hover { border-color: var(--border2); }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.comment-body { flex: 1; min-width: 0; }
.comment-user { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.comment-text { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-word; line-height: 1.4; }
.comment-time { font-size: 10px; color: var(--text-muted); font-family: var(--mono); flex-shrink: 0; align-self: center; }

.gift-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,215,0,0.04), var(--surface2));
  border: 1px solid rgba(255,215,0,0.13);
  border-radius: var(--radius);
  padding: 11px 14px;
  animation: fadeUp 0.2s ease;
}

.gift-icon { font-size: 26px; flex-shrink: 0; }
.gift-body { flex: 1; }
.gift-user { font-size: 11px; font-weight: 700; color: var(--accent); }
.gift-name { font-family: var(--mono); font-size: 12px; color: var(--text); }
.gift-diamonds { font-size: 11px; color: var(--accent2); font-family: var(--mono); }
.gift-repeat { background: var(--surface3); border-radius: 20px; padding: 3px 10px; font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Leaderboard */
.leaderboard { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

.lb-item { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; }
.lb-rank { font-family: var(--mono); font-size: 16px; width: 28px; text-align: center; flex-shrink: 0; }
.lb-rank.gold { color: #FFD700; } .lb-rank.silver { color: #C0C0C0; } .lb-rank.bronze { color: #CD7F32; } .lb-rank.other { color: var(--text-muted); }
.lb-body { flex: 1; }
.lb-name { font-weight: 700; font-size: 13px; color: var(--text); }
.lb-sub { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }
.lb-diamonds { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); }

/* Activity */
.activity-item { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 13px; animation: fadeUp 0.2s ease; font-size: 12px; }
.activity-icon { font-size: 14px; flex-shrink: 0; }
.activity-text { flex: 1; color: var(--text); }
.activity-text strong { color: var(--accent); }
.activity-time { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

/* ── FOOTER ── */
.footer {
  height: var(--footer-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  grid-column: 1 / -1;
}

.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── LOGIN MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 36px 32px;
  width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: scaleIn 0.25s cubic-bezier(0.16,1,0.3,1);
}

@keyframes scaleIn { from{transform:scale(0.92);opacity:0} to{transform:scale(1);opacity:1} }

.modal-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 4px; }

.modal-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.btn-google {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: opacity 0.2s;
}

.btn-google:hover { opacity: 0.9; }

.btn-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-modal-close:hover { border-color: var(--border2); color: var(--text); }

/* ── TOAST ── */
#toastContainer { position: fixed; bottom: 50px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }

.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px;
  color: var(--text);
  min-width: 200px;
  animation: slideToast 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes slideToast { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }
.toast.success { border-color: rgba(46,213,115,0.3); }
.toast.error   { border-color: rgba(255,71,87,0.3); }
/* ════════════════════════════════════════════════════════
   PANEL: BALANCE & TRANSACTIONS
   ════════════════════════════════════════════════════════ */
.balance-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 4px;
}
.balance-row { display: flex; gap: 16px; flex-wrap: wrap; }
.balance-item { flex: 1; min-width: 100px; text-align: center; }
.balance-lbl { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.balance-val { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.balance-val.green { color: #2ed573; }
.balance-val.red { color: #ff4757; }

.trx-list { display: flex; flex-direction: column; gap: 6px; }
.trx-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; font-size: 12px;
}
.trx-type { font-size: 16px; flex-shrink: 0; }
.trx-body { flex: 1; }
.trx-desc { color: var(--text); }
.trx-date { color: var(--text-muted); font-size: 10px; margin-top: 2px; }
.trx-amount { font-family: var(--mono); font-weight: 700; }
.trx-amount.in { color: #2ed573; }
.trx-amount.out { color: #ff4757; }

/* ════════════════════════════════════════════════════════
   PANEL: PLANS / PRICE LISTS
   ════════════════════════════════════════════════════════ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px; text-align: center;
  transition: border-color 0.2s;
}
.plan-card.popular { border-color: rgba(255,215,0,0.4); }
.plan-card-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.plan-card-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.plan-card-price { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); }
.plan-card-period { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.plan-card-features { text-align: left; display: flex; flex-direction: column; gap: 7px; }
.plan-feat { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.plan-feat::before { content: '✓'; color: #2ed573; font-weight: 700; }

/* ════════════════════════════════════════════════════════
   PANEL: SOUNDBOARD
   ════════════════════════════════════════════════════════ */
.soundboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.sound-pad {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: all 0.15s; text-align: center;
}
.sound-pad:hover { border-color: rgba(255,215,0,0.3); background: var(--surface3); }
.sound-pad:active { transform: scale(0.96); }
.sound-pad.playing { border-color: var(--accent); background: var(--accent-dim); }
.sound-pad-icon { font-size: 22px; }
.sound-pad-name { font-size: 11px; color: var(--text); word-break: break-word; line-height: 1.3; }

/* ════════════════════════════════════════════════════════
   PANEL: TEXT TO SPEECH
   ════════════════════════════════════════════════════════ */
.tts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.tts-events { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tts-event-row { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.tts-tmpl { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; color: var(--text); font-family: var(--mono); font-size: 11px; }
.tts-tmpl:focus { outline: none; border-color: var(--border2); }
.toggle-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.toggle-wrap input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }

/* ════════════════════════════════════════════════════════
   PANEL: NOTIFICATIONS
   ════════════════════════════════════════════════════════ */
.notif-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; transition: border-color 0.15s; margin-bottom: 6px;
}
.notif-item.unread { border-color: rgba(255,215,0,0.25); background: rgba(255,215,0,0.04); }
.notif-item:hover { border-color: var(--border2); }
.notif-title { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.notif-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 5px; font-family: var(--mono); }

/* ════════════════════════════════════════════════════════
   PANEL: GIFT & STICKERS
   ════════════════════════════════════════════════════════ */
.gift-sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.gift-sticker-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 8px; text-align: center;
}
.gift-sticker-card:hover { border-color: rgba(255,215,0,0.2); }
.gift-sticker-icon { font-size: 26px; margin-bottom: 6px; }
.gift-sticker-name { font-size: 10px; color: var(--text); word-break: break-word; }
.gift-sticker-count { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   PLAN BADGE (user chip)
   ════════════════════════════════════════════════════════ */
.plan-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px; background: var(--surface2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.plan-badge.plan-pro { background: rgba(255,215,0,0.15); color: var(--accent); border-color: rgba(255,215,0,0.3); }
.plan-badge.plan-premium { background: rgba(0,229,255,0.15); color: var(--accent2); border-color: rgba(0,229,255,0.3); }

/* ════════════════════════════════════════════════════════
   MINECRAFT / SERVERTAP PANEL
   ════════════════════════════════════════════════════════ */

/* Status badge di panel title */
.mc-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  margin-left: 8px; vertical-align: middle;
}
.mc-badge.online  { background: rgba(46,213,115,0.15); color: #2ed573; border: 1px solid rgba(46,213,115,0.3); }
.mc-badge.offline { background: rgba(255,71,87,0.1);   color: #ff4757; border: 1px solid rgba(255,71,87,0.2); }

/* Config form */
.mc-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* Server info grid */
.mc-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 10px; margin-top: 12px;
}
.mc-info-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
}
.mc-info-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.mc-info-val { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 700; word-break: break-all; }

/* Players list */
.mc-players-list { display: flex; flex-direction: column; gap: 6px; }
.mc-player-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px;
}
.mc-player-icon { font-size: 18px; flex-shrink: 0; }
.mc-player-body { flex: 1; }
.mc-player-name { font-size: 13px; font-weight: 700; color: var(--text); }
.mc-player-sub  { font-size: 10px; color: var(--text-muted); font-family: var(--mono); margin-top: 2px; }

/* Command chip shortcuts */
.mc-cmd-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-cmd-chip {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-family: var(--mono); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.mc-cmd-chip:hover { border-color: rgba(255,215,0,0.3); color: var(--accent); background: var(--accent-dim); }

/* Server console */
.mc-console {
  background: #0a0a10; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  height: 220px; overflow-y: auto; font-family: var(--mono);
  font-size: 11px; line-height: 1.6;
  margin-top: 10px;
}
.mc-console::-webkit-scrollbar { width: 4px; }
.mc-console::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.mc-log-line { display: flex; gap: 8px; padding: 1px 0; }
.mc-log-time { color: rgba(255,255,255,0.2); flex-shrink: 0; }
.mc-log-msg  { color: rgba(255,255,255,0.7); word-break: break-all; }
.mc-log-line.mc-log-warn  .mc-log-msg { color: #ffa502; }
.mc-log-line.mc-log-error .mc-log-msg { color: #ff4757; }
.mc-log-line.mc-log-cmd   .mc-log-msg { color: var(--accent); font-weight: 700; }

.mc-hint {
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 10px;
}
.mc-hint strong { color: var(--accent2); }
.mc-hint code   { font-family: var(--mono); color: var(--accent); font-size: 11px; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }

/* ── Minecraft multi-command list ── */
.mc-cmd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mc-cmd-row  { display: flex; align-items: center; gap: 8px; }
.mc-cmd-num  { font-family: var(--mono); font-size: 11px; color: var(--text-muted); min-width: 18px; text-align: right; flex-shrink: 0; }
.mc-cmd-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; color: var(--text);
  font-family: var(--mono); font-size: 12px;
}
.mc-cmd-input:focus { outline: none; border-color: var(--border2); }