/* ============================================================
   Paradox Network — page components
   Loaded after style.css; covers servers, connect, admin and the
   small shared utilities the page markup relies on.
   ============================================================ */

/* ── Buttons: extras ── */
.btn-xs { height: 1.8rem; padding: 0 0.6rem; font-size: 0.74rem; border-radius: 6px; }
.btn-disabled { opacity: 0.5; pointer-events: none; }
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.3);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.nav.nav-scrolled { background: rgba(5, 5, 7, 0.94); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
.nav-dashboard-btn { flex-shrink: 0; }
.sidebar-auth-btn { justify-content: flex-start; }
body.sidebar-collapsed .sidebar-auth-btn { justify-content: center; }

.card-hover { transition: border-color 0.18s var(--ease), transform 0.18s var(--ease); }
.card-hover:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); align-items: stretch; }
.grid-2 > .card { display: flex; flex-direction: column; gap: 0.5rem; }
.grid-2 > .card h3 { margin-bottom: 0.15rem; }
.grid-2 > .card .instruction-list { margin-top: auto; padding-top: 0.25rem; }
.field-flush { margin-bottom: 0; }
.icon-top { align-self: flex-start; margin-bottom: var(--sp-2); }
.feature-tag { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 0.72rem; color: var(--muted); }
.code-box-md { font-size: 1.05rem; letter-spacing: 0.1em; }
.dash-discord { display: flex; flex-direction: column; gap: var(--sp-3); }
@keyframes key-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 95, 208, 0); } 40% { box-shadow: 0 0 0 4px rgba(47, 95, 208, 0.35); } }
.dash-key-pulse { animation: key-pulse 1.2s var(--ease); }

/* ── Server cards ── */
.server-icon-wrap {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: rgba(47, 95, 208, 0.14);
  border: 1px solid rgba(47, 95, 208, 0.28);
  color: var(--blue-soft);
}
.server-icon-wrap .icon { width: 22px; height: 22px; }
.server-badge { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.server-desc { color: var(--muted); font-size: 0.88rem; }
.server-host { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); overflow-wrap: anywhere; }
.server-features { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.server-addr-list { display: grid; gap: 0.5rem; }
.server-addr-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.server-addr-tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); min-width: 56px; }

/* ── Connect page terminal chrome ── */
.terminal-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.85rem; margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
#connect-terminal-label { margin-left: 0.4rem; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }

/* ── Admin ── */
.admin-page { max-width: var(--max-admin); }
.admin-denied { max-width: 460px; margin: 0 auto; text-align: center; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.admin-stat { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-stat-val { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.admin-section { margin-bottom: var(--sp-6); }
.admin-toolbar { display: flex; align-items: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.admin-search { flex: 1 1 260px; margin-bottom: 0; }
.admin-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-3); }
.admin-tool-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.admin-tool-head { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.admin-tool-body { padding: var(--sp-4); display: grid; gap: var(--sp-2); }
.admin-tool-foot { padding: 0 var(--sp-4) var(--sp-4); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 720px; }
.admin-table th, .admin-table td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); background: #0c0c11; position: sticky; top: 0; }
.admin-table tbody tr:hover { background: var(--surface); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-th-actions { text-align: right; }
.admin-row-actions { display: flex; gap: 0.3rem; justify-content: flex-end; flex-wrap: wrap; }
.admin-user-cell { display: flex; flex-direction: column; gap: 0.1rem; }
.admin-user-email { font-size: 0.76rem; color: var(--dim); }
.admin-gamertag { font-family: var(--mono); font-size: 0.8rem; }
.admin-pill { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.admin-pill-life { border-color: rgba(52, 211, 153, 0.4); color: var(--success); background: rgba(52, 211, 153, 0.1); }
.admin-pill-month { border-color: rgba(47, 95, 208, 0.4); color: var(--blue-soft); background: rgba(47, 95, 208, 0.1); }
.admin-pill-muted { color: var(--dim); }
.admin-empty, .admin-ban-empty { padding: var(--sp-5); text-align: center; color: var(--muted); }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: var(--sp-3); flex-wrap: wrap; }
.admin-pager-label { font-size: 0.8rem; color: var(--muted); }
.admin-ban-section { margin-top: var(--sp-5); }
.admin-ban-list { display: grid; gap: 0.5rem; }
.admin-ban-item { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.86rem; }

@media (max-width: 720px) {
  .code-box, .code-box-md { font-size: 0.95rem; letter-spacing: 0.04em; word-break: break-all; padding-inline: 0.7rem; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tools, .grid-2 { grid-template-columns: 1fr; }
  .admin-toolbar .btn { flex: 1 1 100%; }
  .terminal-bar { margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-3); }
  .server-addr-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .server-addr-row .code-box { width: 100%; }
}


/* ── Hero mark ──
   The logo, presented plainly: one soft light behind it and a slow drift.
   No rings, no orbits — the art already carries the detail. */
.hero-visual {
  position: relative;
  display: none;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: min(480px, 38vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47, 95, 208, 0.28), rgba(47, 95, 208, 0.08) 45%, transparent 70%);
  filter: blur(30px);
  animation: hero-glow-breathe 9s ease-in-out infinite;
}
.hero-logo {
  position: relative;
  width: 78%;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(10, 30, 90, 0.6));
  animation: hero-logo-drift 9s ease-in-out infinite;
}
@keyframes hero-logo-drift {
  0%, 100% { transform: translateY(-1.5%); }
  50% { transform: translateY(1.5%); }
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
    gap: var(--sp-6);
  }
  .hero-visual { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-logo { animation: none !important; }
}
