.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(33, 25, 21, .92), rgba(27, 20, 17, .92));
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 36px 30px 26px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 106, 43, .06);
  animation: rise .7s var(--ease) both;
  opacity: 0;
  transform: translateY(20px);
}
.login-card .lock { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(135deg, var(--gold), var(--ember)); box-shadow: 0 12px 30px -10px var(--ember); margin-bottom: 18px; }
.login-card h1 { font-family: var(--display); font-weight: 900; font-size: 2rem; margin: 0; letter-spacing: -.02em; }
.login-card > p { color: var(--muted); margin: 4px 0 22px; }
.login-card label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.login-card input { display: block; width: 100%; margin-top: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; transition: border-color .2s; }
.login-card input:focus { outline: none; border-color: var(--ember); }
.login-card .back { display: block; text-align: center; margin-top: 18px; color: var(--dim); font-size: .9rem; text-decoration: none; }
.login-card .back:hover { color: var(--text); }

.dash { padding: 26px 0 60px; }
.dash .topbar { flex-wrap: wrap; }
.brand { color: var(--text); text-decoration: none; }
.brand small { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-2); margin-left: 4px; font-weight: 800; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: .85rem; margin-right: 6px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; position: relative; overflow: hidden; opacity: 0; animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms); transform: translateY(16px); }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat .v { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1.05; letter-spacing: -.02em; margin-top: 6px; }
.stat .v small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat .s { color: var(--dim); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.hot { background: linear-gradient(135deg, rgba(246, 185, 59, .18), rgba(255, 106, 43, .14)); border-color: rgba(255, 106, 43, .35); }
.stat .ico { position: absolute; right: -6px; bottom: -14px; width: 110px; opacity: .55; transform: rotate(-12deg); }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.bar-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bar-row:last-child { border-bottom: 0; }
.bar-row svg { width: 56px; }
.bar-row .nm { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .95rem; }
.bar-row .nm span { color: var(--dim); font-weight: 600; font-size: .85rem; }
.bar { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--ember)); width: 0; transition: width 1s var(--ease); }
.bar-row .tot { text-align: right; min-width: 74px; }
.bar-row .tot b { font-family: var(--display); font-size: 1.4rem; display: block; line-height: 1; }
.bar-row .tot span { color: var(--muted); font-size: .8rem; font-weight: 700; }

.mini-bars .r { display: grid; grid-template-columns: 130px 1fr 30px; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; font-weight: 600; }
.mini-bars .r b { text-align: right; }

.alg { padding: 10px 12px; border-radius: 12px; background: rgba(226, 68, 58, .1); border: 1px solid rgba(226, 68, 58, .3); margin-top: 8px; font-size: .92rem; }
.alg b { color: #ffb4a8; }

.empty { text-align: center; color: var(--dim); padding: 40px 10px; }
.empty .big { font-size: 2.6rem; margin-bottom: 8px; }

.search { background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; min-width: 220px; }
.search:focus { outline: none; border-color: var(--ember); }
.danger { color: #ff9a8a; }
.danger:hover { box-shadow: inset 0 0 0 1.5px var(--red) !important; }

.resp { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: start; animation: rise .5s var(--ease) both; }
.resp:last-child { border-bottom: 0; }
.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-family: var(--display); font-size: 1.25rem; color: #1a0b04; }
.resp .who { font-weight: 800; font-size: 1.05rem; }
.resp .when { color: var(--dim); font-size: .82rem; font-weight: 600; margin-left: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 10px 4px 4px; font-size: .85rem; font-weight: 700; }
.pill svg { width: 30px; }
.pill b { color: var(--ember-2); }
.meta-line { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.meta-line b { color: var(--text); font-weight: 700; }
.del { background: none; border: 1px solid transparent; color: var(--dim); border-radius: 10px; padding: 6px 10px; font-size: .85rem; font-weight: 700; }
.del:hover { color: #ff9a8a; border-color: rgba(226, 68, 58, .4); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat .v { font-size: 2rem; }
  .search { min-width: 0; width: 100%; }
  .resp { grid-template-columns: 40px 1fr; }
  .resp .del { grid-column: 2; justify-self: start; }
  .mini-bars .r { grid-template-columns: 100px 1fr 26px; }
  .live { display: none; }
}
