:root {
  --bg: #07090f;
  --panel: rgba(255, 255, 255, .05);
  --panel2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .1);
  --text: #e8ecf4;
  --dim: #8b93a7;
  --accent: #7c5cff;
  --accent2: #00d4ff;
  --ok: #2ee59d;
  --danger: #ff5470;
  --grad: linear-gradient(135deg, #7c5cff, #00d4ff);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
  min-height: 100vh; padding-bottom: 30px;
}
.glow { position: fixed; border-radius: 50%; filter: blur(100px); z-index: 0; pointer-events: none; }
.glow-a { width: 420px; height: 420px; left: -140px; top: -160px; background: rgba(124, 92, 255, .25); }
.glow-b { width: 460px; height: 460px; right: -160px; bottom: -180px; background: rgba(0, 212, 255, .15); }

header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 12px 0; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(20px);
}
.brand { font-weight: 700; letter-spacing: .05em; display: flex; gap: 8px; align-items: center; }
.logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: inline-block; }
.pill {
  display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--dim);
  padding: 5px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.pill.ok .dot { background: var(--ok); box-shadow: 0 0 10px rgba(46,229,157,.8); }

main { position: relative; z-index: 2; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(20px); padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.card-title {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; margin-bottom: 12px; font-size: 14px;
}
.hero { text-align: center; }
.hero.active { border-color: rgba(46,229,157,.4); box-shadow: 0 0 40px rgba(46,229,157,.12) inset; }
.hero-state { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-sub { color: var(--dim); font-size: 12.5px; margin-top: 4px; }

.chlist { display: flex; flex-direction: column; gap: 8px; }
.chan {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); transition: .18s;
}
.chan:hover { border-color: rgba(124,92,255,.55); }
.chan.active { border-color: rgba(46,229,157,.5); }
.chan .cname { font-weight: 600; }
.chan .join { color: var(--accent2); font-size: 12.5px; }

.btn {
  border: none; border-radius: 14px; padding: 13px 16px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  background: var(--panel2); border: 1px solid var(--line); width: 100%;
  transition: transform .08s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-hangup { background: linear-gradient(135deg,#ff5470,#ff7a3d); color: #fff; border: none;
  box-shadow: 0 10px 26px rgba(255,84,112,.25); margin-top: 12px; }
.btn-call { background: linear-gradient(135deg,#0ec98b,#00b8d9); color: #04120d; border: none;
  box-shadow: 0 10px 26px rgba(14,201,139,.3); width: auto; padding: 11px 20px; }
.hidden { display: none !important; }

.urec { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px;
  border-bottom: 1px solid var(--line); }
.urec:last-child { border-bottom: none; }
.urec .uname { display: flex; gap: 8px; align-items: center; }
.urec .tag { font-size: 10px; padding: 1px 7px; border-radius: 6px; background: var(--panel2); color: var(--dim); }
.urec .tag.me { color: var(--ok); border: 1px solid rgba(46,229,157,.4); }
.urec input { accent-color: var(--accent); width: 18px; height: 18px; }

.seg { display: flex; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: none; background: none; color: var(--dim); font-size: 11.5px;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.seg button.active { color: #fff; background: linear-gradient(135deg, rgba(124,92,255,.5), rgba(0,212,255,.4)); }
.seg.mini button { padding: 4px 8px; font-size: 10.5px; }

.numrow { display: flex; gap: 8px; }
.number { flex: 1; font-size: 17px; padding: 11px 14px; color: var(--text);
  background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 13px; outline: none; }
.number:focus { border-color: rgba(124,92,255,.65); }

.badge { font-size: 10px; color: var(--warn); border: 1px solid rgba(255,176,32,.4);
  border-radius: 6px; padding: 1px 8px; font-weight: 500; }
.hint { color: var(--dim); font-size: 11px; margin-top: 10px; }
.dim { color: var(--dim); }
.recrow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--line);
}
.recrow:last-child { border-bottom: none; }
.recrow .rname { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recrow .rsize { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.recrow .mp3btn {
  border: 1px solid rgba(0, 212, 255, .45); color: var(--accent2); background: none;
  border-radius: 9px; padding: 4px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.recrow .mp3btn:hover { background: rgba(0, 212, 255, .1); }
.minibtn {
  border: 1px solid var(--line); color: var(--dim); background: var(--panel2);
  border-radius: 8px; padding: 3px 10px; font-size: 11px; cursor: pointer;
}
.minibtn:hover { color: var(--text); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #1c2230; border: 1px solid var(--line); color: var(--text);
  padding: 11px 20px; border-radius: 13px; z-index: 10; font-size: 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
