:root {
  --bg: #000000;
  --panel: rgba(28, 28, 30, 0.72);
  --panel-2: rgba(44, 44, 46, 0.6);
  --panel-3: rgba(58, 58, 60, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #9a9aa2;
  --accent: #0a84ff;
  --accent-2: #5ac8fa;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.14);
  --radius: 22px;
  --radius-sm: 15px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient cinematic light */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(46% 34% at 20% 0%, rgba(10, 132, 255, 0.22), transparent 70%),
    radial-gradient(40% 30% at 90% 12%, rgba(191, 90, 242, 0.18), transparent 72%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate3d(0, 6%, 0) scale(1.08);
    opacity: 1;
  }
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 18px calc(60px + env(safe-area-inset-bottom));
}

/* Page transition */
.app.page-anim {
  animation: pageIn 0.34s var(--ease);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(90, 200, 250, 0.16), transparent 46%),
    linear-gradient(155deg, rgba(30, 30, 34, 0.85), rgba(18, 18, 22, 0.85));
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%);
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(160deg, #0a84ff, #5ac8fa);
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.38);
  flex: none;
}

.hero h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hero .sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  margin-top: 5px;
}

.pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill.ok {
  color: var(--success);
  background: rgba(48, 209, 88, 0.14);
  border-color: rgba(48, 209, 88, 0.26);
}

.pill.warn {
  color: var(--warning);
  background: rgba(255, 214, 10, 0.14);
  border-color: rgba(255, 214, 10, 0.26);
}

/* ---------- Cards & rows ---------- */

.card {
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 20px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.card-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  transition: background 0.18s;
}

.row:first-of-type {
  border-top: 0;
}

@media (hover: hover) {
  .row:hover {
    background: rgba(255, 255, 255, 0.03);
  }
}

.row .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  flex: none;
}

.row .tile svg {
  width: 20px;
  height: 20px;
}

.row .grow {
  flex: 1;
  min-width: 0;
}

.row .title {
  font-size: 15px;
  font-weight: 600;
}

.row .desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.55;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  flex: none;
}

/* ---------- Menu ---------- */

.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 15px;
  border-radius: 17px;
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  font-size: 14px;
  transition: transform 0.16s var(--ease), border-color 0.2s, background 0.2s;
}

@media (hover: hover) {
  .menu-item:hover {
    border-color: rgba(10, 132, 255, 0.35);
    background: rgba(10, 132, 255, 0.08);
  }
}

.menu-item:active {
  transform: scale(0.965);
}

.menu-item:disabled {
  opacity: 0.4;
  cursor: default;
}

.menu-item .mi-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex: none;
}

.menu-item .mi-icon svg {
  width: 24px;
  height: 24px;
}

.menu-item .mi-label {
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 18px 20px;
}

.stat {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.stat-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.stat-value {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-top: 6px;
}

/* ---------- Switch ---------- */

.switch {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.32);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}

.switch.on {
  background: var(--success);
}

.switch.on::after {
  transform: translateX(20px);
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s var(--ease), opacity 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.32);
}

.btn-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 69, 58, 0.36);
}

.btn.success {
  color: #fff;
  background: var(--success);
  box-shadow: 0 10px 26px rgba(48, 209, 88, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

/* ---------- Banner ---------- */

.banner {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.banner.danger {
  background: var(--danger-soft);
  border-color: rgba(255, 69, 58, 0.24);
}

/* ---------- Forms ---------- */

label.field {
  display: block;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

label.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
  color: #63636e;
}

textarea {
  min-height: 200px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.back:active {
  transform: scale(0.92);
}

.topbar h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ---------- Log ---------- */

.log-box {
  margin: 0 20px 17px;
  height: 220px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-family: var(--mono);
  font-size: 11px;
  color: #6ee7a0;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

/* ---------- Misc ---------- */

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
  padding: 36px 20px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex: none;
  color: var(--muted);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  max-width: calc(100vw - 44px);
  background: rgba(44, 44, 46, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  z-index: 50;
  animation: toastIn 0.28s var(--ease);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------- Login ---------- */

.login-wrap {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 360px;
  padding: 32px 28px;
  background: var(--panel);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.login-box .brand {
  margin: 0 auto 18px;
}

.login-box h1 {
  font-size: 22px;
  margin: 0 0 22px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.login-box .field {
  padding: 0;
  border-top: 0;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .app {
    padding-top: 30px;
  }
}

/* ---------- Desktop split layout ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.shell .app {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
}

.sidebar {
  width: 248px;
  flex: none;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
}

.sidebar[hidden] {
  display: none !important;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 18px;
}

.side-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(160deg, #0a84ff, #5ac8fa);
  flex: none;
}

.side-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.side-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.side-item.active {
  background: var(--accent-soft);
  color: var(--text);
}

.side-item.danger {
  color: var(--danger);
}

.side-item-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.side-item-icon svg {
  width: 20px;
  height: 20px;
}

.side-item-label {
  font-weight: 500;
}

.side-foot {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.side-user {
  font-size: 12px;
  color: var(--muted);
  padding: 0 13px 10px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.page-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.page-head .btn {
  width: auto;
  padding: 10px 16px;
}

@media (max-width: 900px) {
  .shell {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    max-height: none;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .side-brand {
    padding: 0;
    gap: 8px;
  }

  .side-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 10px;
  }

  .side-brand-name {
    display: none;
  }

  .side-nav {
    flex-direction: row;
    gap: 6px;
    overflow: visible;
  }

  .side-item {
    width: auto;
    padding: 9px 12px;
    gap: 8px;
  }

  .side-item-label {
    display: none;
  }

  .side-foot {
    border: 0;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex: none;
  }

  .side-user {
    display: none;
  }

  .side-foot .side-item {
    padding: 9px 10px;
  }

  .shell .app {
    padding: 14px 14px calc(60px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Login polish ---------- */

.login-box {
  animation: loginIn 0.5s var(--ease);
}

@keyframes loginIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-sub {
  text-align: center;
  margin: -14px 0 20px;
  font-size: 13px;
}

.login-notice {
  margin-top: 20px;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 214, 10, 0.06);
  border: 1px solid rgba(255, 214, 10, 0.16);
}

.login-notice-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 7px;
}

.login-notice-head svg {
  width: 16px;
  height: 16px;
}

.login-notice-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ---------- Modal (pairing code) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.24s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 370px;
  background: var(--panel);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.34s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.modal-desc {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 18px;
  line-height: 1.55;
}

.pair-code {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  color: var(--accent);
  padding: 17px 12px;
  border-radius: 15px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px dashed rgba(10, 132, 255, 0.4);
}

.modal-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Toast variants ---------- */

.toast.success {
  background: rgba(18, 42, 28, 0.95);
  border-color: rgba(48, 209, 88, 0.4);
}

/* ---------- Status badges & monitoring ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 69, 58, 0.28);
}

.badge-warn {
  color: var(--warning);
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.24);
}

.badge-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.badge-ok {
  color: var(--success);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.24);
}

.banned-name {
  display: inline-block;
  color: var(--danger);
  font-weight: 600;
}

.monitor-warnings {
  border-top: 1px solid var(--line);
  padding: 10px 20px 14px;
}

.monitor-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.monitor-warning:last-child {
  border-bottom: 0;
}

.monitor-warning-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Login two-column layout ---------- */

.login-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 22px;
  width: 100%;
  max-width: 980px;
  align-items: start;
}

.login-grid .login-box {
  margin: 0;
}

.login-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.login-side .login-notice {
  margin: 0;
}

.ban-list {
  white-space: normal;
}

.login-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.ban-card {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ban-card:first-child {
  padding-top: 2px;
}

.ban-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ban-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ban-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.banned-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ban-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.ban-meta {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ban-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.ban-label {
  flex: none;
  width: 56px;
  color: var(--muted);
}

.ban-value {
  flex: 1;
  min-width: 0;
  color: var(--text);
  word-break: break-all;
}

.ban-ip {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--danger);
}

@media (max-width: 760px) {
  .login-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- Purchase links (sub-account) ---------- */

.buy-row {
  text-decoration: none;
  color: inherit;
}

.buy-row .buy-arrow {
  color: var(--muted);
  flex: none;
  transition: transform 0.18s var(--ease), color 0.18s;
}

.buy-row .buy-arrow svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .buy-row:hover .buy-arrow {
    color: var(--accent);
    transform: translateX(3px);
  }
}
