/* Arion workspace: deep navy, electric blue, and the original full-color crest. */
:root {
  --font-arionfont: "Poppins";
  --font-arion: "Poppins";
  --bg: #080d16;
  --surface: #0e1725;
  --text: #edf5ff;
  --muted: #a9b8ca;
  --dim: #899bb1;
  --cyan: #47b7ff;
  --border: #23374d;
  --radius: 20px;
  color-scheme: dark;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: radial-gradient(ellipse at 12% 0, #1475bc16, transparent 48rem), var(--bg);
  color: var(--text);
}
button, input, select, textarea, code, kbd, pre, svg text { font-family: inherit; }
.brand > span { font-family: "Baloo 2", "Poppins", sans-serif; font-weight: 800; letter-spacing: -.045em; }
.brand small { font-family: "Poppins", system-ui, sans-serif; }
.brand img { filter: none; }
::selection { background: #47b7ff40; color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1 { letter-spacing: -.045em; }
h2, h3 { letter-spacing: -.025em; }
.eyebrow { color: #90a8c2; letter-spacing: .14em; }
.text-link, .cyan { color: var(--cyan); }
.skip-link { background: #80d8ff; color: #041523; border-radius: 10px; }

.button, .icon-button, .copy-button, .discord-link, .legal-nav > a:last-child {
  border: 1px solid #2d465f;
  border-radius: 14px;
  background: #15263b;
  color: #d9eaff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button { min-height: 46px; padding: 12px 19px; font-weight: 600; }
.button.primary { background: linear-gradient(110deg, #47b7ff, #80d8ff); color: #041523; border-color: #62caff; box-shadow: 0 4px 16px #0089e51a; }
.button.small { min-height: 36px; padding: 8px 13px; border-radius: 12px; }
.button.danger { color: #ffb6c1; border-color: #ff87992e; background: #ff87990c; }
.icon-button { width: 42px; height: 42px; }
.copy-button { padding: 10px; }
.discord-link { padding: 10px 15px; min-height: 44px; }
.discord-link:before { background: #1c3853; }
.discord-link:hover, .discord-link:focus-visible { color: #fff; border-color: #47b7ff80; }
.text-link { font-weight: 500; }

.card, .auth-card, .legal-fallback, .modal {
  background: linear-gradient(145deg, #1a385526, transparent 70%), #0e1725f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px #01071026, inset 0 1px 0 #80d8ff08;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.card { padding: 24px; }
.card-heading h2 svg { color: #80d8ff; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(28px, 2.6vw, 36px); }
.page-heading .lead { color: var(--muted); }

.dashboard-login { max-width: 480px; padding: 54px 24px; gap: 26px; }
.dashboard-login-brand { margin-bottom: 8px; }
.dashboard-login .auth-card, .public-page > .auth-card {
  padding: 36px 32px;
  border-radius: 24px;
  border-color: #27415a;
}
.auth-card h1 { font-size: 32px; margin-bottom: 10px; font-weight: 600; }
.auth-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.auth-card .form { margin-top: 30px; gap: 20px; }
.auth-card .button.primary { min-height: 49px; margin-top: 7px; }
.auth-footer { margin-top: 25px; color: var(--muted); font-size: 12px; }
.auth-footer a { color: #80d8ff; }
.auth-back { color: #98abc1; font-size: 11px; margin-top: 22px; }
.auth-legal { gap: 10px; color: #7d94ae; }
.auth-legal a { color: #a9b8ca; }
.dashboard-login-note { color: #8299b1; letter-spacing: .02em; }

/* Preserve the existing authentication routes as a clear two-part mode control. */
.dashboard-login:has(> .dashboard-login-brand) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  align-items: center;
  column-gap: clamp(48px, 7vw, 110px);
  row-gap: 20px;
  width: 100%;
  max-width: 1480px;
  min-height: 100svh;
  padding: 64px clamp(32px, 5vw, 80px);
}
.dashboard-login:has(> .dashboard-login-brand)::before {
  content: '';
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: url('/art/auth-energy.svg?v=arion-20261020-motion') 38% 48% / cover no-repeat, #080d16;
  transform: translate3d(-4vw, 4vh, 0) rotate(-1.5deg) scale(1.32);
  transform-origin: 50% 50%;
  will-change: transform;
  animation: arion-auth-aurora 11s cubic-bezier(.37, 0, .63, 1) infinite alternate;
}
.dashboard-login:has(> .dashboard-login-brand)::after {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 28px 80px, #a4e8ffa6 0 1.2px, transparent 2.3px), radial-gradient(circle at 120px 210px, #47b7ff99 0 1.2px, transparent 2.3px), radial-gradient(circle at 245px 155px, #c2f0ff8c 0 1.4px, transparent 2.6px), radial-gradient(circle at 320px 40px, #6acfff66 0 1px, transparent 2px);
  background-size: 420px 340px, 590px 460px, 760px 610px, 470px 550px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000c 48%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 0%, #000c 48%, transparent 88%);
  transform: translate3d(-2vw, 5vh, 0) scale(1.18);
  will-change: transform;
  animation: arion-auth-particles 16s linear infinite alternate;
}
.dashboard-login:has(> .dashboard-login-brand) > .dashboard-login-brand {
  grid-column: 1;
  grid-row: 1 / -1;
  margin: 0;
  min-width: 0;
  position: relative;
  isolation: isolate;
}
.dashboard-login:has(> .dashboard-login-brand) > .dashboard-login-brand::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse, #47b7ff12, transparent 70%); pointer-events: none; }
@keyframes arion-auth-aurora {
  0% { transform: translate3d(-4vw, 4vh, 0) rotate(-1.5deg) scale(1.32); }
  50% { transform: translate3d(1vw, -5vh, 0) rotate(1deg) scale(1.38); }
  100% { transform: translate3d(5vw, 2vh, 0) rotate(2deg) scale(1.34); }
}
@keyframes arion-auth-particles {
  from { transform: translate3d(-2vw, 5vh, 0) scale(1.18); }
  to { transform: translate3d(3vw, -10vh, 0) scale(1.18); }
}
.dashboard-login-brand .brand { flex-direction: column; text-align: center; gap: 25px; }
.dashboard-login-brand .brand img { width: clamp(150px, 19vw, 265px); height: auto; filter: drop-shadow(0 0 42px #47b7ff26); }
.dashboard-login-brand .brand > span { font-size: clamp(35px, 4vw, 58px); letter-spacing: -.045em; }
.dashboard-login-brand .brand .cyan { color: #47b7ff; }
.dashboard-login-brand .brand small { color: #a9b8ca; font-size: 12px; margin-top: 17px; letter-spacing: .03em; }
.dashboard-login:has(> .dashboard-login-brand) > .auth-card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  padding: 32px 36px;
  border-radius: 26px;
  border-color: #2b425b;
  border-top: 2px solid #47b7ff99;
  background: linear-gradient(160deg, #17304b30, transparent 45%), #0c1523f5;
  box-shadow: 0 24px 80px #0005, 0 -3px 24px #47b7ff08;
}
.dashboard-login:has(> .dashboard-login-brand) > .auth-card:has(.auth-footer)::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 36px;
  right: 36px;
  height: 52px;
  border: 1px solid #233e58;
  border-radius: 999px;
  background: #08111e;
  pointer-events: none;
}
.dashboard-login:has(> .dashboard-login-brand) .auth-card:has(.auth-footer) > h1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 4px);
  min-height: 44px;
  margin: 4px 0 26px 4px;
  padding: 8px;
  border: 1px solid #47b7ff45;
  border-radius: 999px;
  background: #15344e;
  box-shadow: 0 3px 12px #020a1433, inset 0 1px 0 #80d8ff14;
  color: #a5e5ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.2px;
}
.dashboard-login:has(> .dashboard-login-brand) .auth-card:has(.auth-footer a[href="/login"]) > h1 { margin-left: 50%; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card > p:not(.eyebrow) { font-size: 14px; line-height: 1.85; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card .form { margin-top: 28px; gap: 20px; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card input { min-height: 48px; border-radius: 16px; font-size: 13px; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card .field > span { font-size: 12px; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card .button.primary { border-radius: 14px; font-size: 13px; }
.dashboard-login:has(> .dashboard-login-brand) .auth-card > p.auth-footer { margin: 0; font-size: 0; line-height: 0; }
.dashboard-login:has(> .dashboard-login-brand) .auth-footer a {
  position: absolute;
  top: 36px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 40px);
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  color: #a9b8ca;
}
.dashboard-login:has(> .dashboard-login-brand) .auth-footer a[href="/login"] { left: 40px; right: auto; }
.dashboard-login:has(> .dashboard-login-brand) .auth-footer a:hover { background: #13304a; color: #b6eaff; }
.dashboard-login:has(> .dashboard-login-brand) .auth-back { font-size: 10px; line-height: 1.9; margin-top: 22px; }
.dashboard-login:has(> .dashboard-login-brand) > .auth-community { grid-column: 2; grid-row: 2; }
.dashboard-login:has(> .dashboard-login-brand) > .auth-legal { grid-column: 2; grid-row: 3; font-size: 11px; gap: 6px; }
.dashboard-login:has(> .dashboard-login-brand) > .dashboard-login-note { grid-column: 2; grid-row: 4; font-size: 11px; }

.field > span, label { color: #c5d6e9; font-size: 12px; }
.field { gap: 9px; }
.input, input:not([type=checkbox]):not([type=range]), select, textarea {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #2a4059;
  border-radius: 14px;
  background: #0a1422;
  color: #edf5ff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input::placeholder, textarea::placeholder { color: #8ba0b8; }
input:focus, textarea:focus, select:focus { border-color: #47b7ff99; box-shadow: 0 0 0 3px #47b7ff14; background: #0d1c2e; }
input[type=checkbox], input[type=range], .ban-mode input { accent-color: #47b7ff; }
option { background: #0e1725; }
.notice { border-color: #2a4560; background: #11243a; border-radius: 12px; color: #c8def5; }
.notice.error { color: #ffbbc6; background: #ff87990a; border-color: #ff87992e; }
.notice.warning, .demo-banner { color: #eccc99; background: #eccc9909; border-color: #eccc9929; border-radius: 14px; }
.notice.success { color: var(--success); }

.app-shell { max-width: 1600px; padding: 24px 34px; column-gap: 30px; row-gap: 30px; }
.workspace-header {
  padding: 14px 20px;
  min-height: 86px;
  border: 1px solid #263c55;
  border-radius: 20px;
  background: #0d1929e6;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.workspace-mode { color: #a9b8ca; border-color: #2a4059; }
.workspace-profile { padding: 5px 8px; border-radius: 14px; }
.workspace-profile:hover { background: #17324c; }
.workspace-profile strong { color: #e0efff; }
.avatar { border-radius: 12px; background: #16344e; border-color: #2b6085; color: #a5e5ff; }
.app-sidebar { padding-top: 1px; }
.app-nav { gap: 8px; }
.app-nav a { border-radius: 999px; min-height: 46px; padding: 11px 15px; color: #a9b8ca; }
.app-nav a svg { stroke-width: 1.65; }
.app-nav a.active { color: #9fe1ff; background: #12304a; border-color: #2e5d7d; box-shadow: inset 0 1px 0 #80d8ff12; }
.app-nav a:hover:not(.active) { background: #112239; color: #d9eeff; border-color: #203a54; }
.app-nav a.nav-admin { border-top-color: transparent; margin-top: 22px; }
.nav-label { font-size: 11px; }
.app-topbar { margin-bottom: 28px; }
.server-select select, .search-input input:not([type=checkbox]):not([type=range]) { background-color: #0d1b2c; }
.search-input svg { top: 15px; }
.workspace-footer { padding: 10px 0; }

.metric { padding: 23px; }
.metric-icon { border-radius: 12px; background: #14344f; border: 1px solid #245173; }
.metric-icon svg { color: #80d8ff; }
.metric-icon .alert-icon { color: var(--danger); }
.metric strong { margin: 9px 0; font-size: 29px; letter-spacing: -.05em; }
.metric-label { color: #a9b8ca; }
.data-item, .code-row, .connection-config, .ban-target {
  border: 1px solid #21384f;
  border-radius: 12px;
  background: #0b1625;
}
.tabs { gap: 7px; border-bottom: 0; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; background: #0b1727; border: 1px solid #233d57; }
.tabs a, .tabs button { padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; color: #a9b8ca; }
.tabs .active { color: #a5e5ff; border-color: #2a5778; background: #15344e; box-shadow: inset 0 1px 0 #80d8ff12; }
.tabs a:hover, .tabs button:hover { color: #fff; }
th { color: #91a9c2; border-color: #233b54; padding-block: 14px; font-size: 10px; }
td { border-color: #1c3046; color: #a9b8ca; padding-block: 16px; }
tbody tr:hover { background: #132c42; }
.badge { border-color: #2d4b67; border-radius: 7px; background: #13273c; padding: 4px 9px; }
.badge.success, .badge.stable { background: #72dcb10a; border-color: #72dcb12e; }
.badge.beta { color: #a5e5ff; background: #47b7ff0a; border-color: #47b7ff2e; }
.badge.warning, .badge.hotfix { background: #e9c88f0a; border-color: #e9c88f2e; }
.badge.danger, .badge.security { background: #ffb6c10a; border-color: #ffb6c12e; }
.health-bar { background: #233e58; }
.chart-empty { border-color: #2d4964; border-radius: 12px; background: #0b1625; }
.antixray-status { border-color: #72dcb126; border-radius: 14px; background: #72dcb106; }
.status-list > div { background: #0b1625; border-radius: 12px; }
.code-row { padding: 16px; }
.skeleton { border-color: #243c55; background: #1a3046; border-radius: 12px; }
.workspace-navigation-status { background: #10243aeb; border-radius: 10px; border-color: #2a597c; }

.modal { border-radius: 24px; background-color: #0e1b2cf5; box-shadow: 0 28px 100px #0009; }
.modal::backdrop { background: #000b; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.ban-mode label { background: #102339; border-radius: 11px; }
.ban-mode input[type=radio] { width: 18px; height: 18px; min-height: 18px; padding: 0; flex-shrink: 0; }
.ban-mode label:has(input:checked) { border-color: #47b7ff66; background: #47b7ff0c; }
.profile-avatar { border-radius: 14px; background: #16344e; border-color: #2b6085; color: #a5e5ff; }
.profile-stats { background: #0b1727; }
.profile-event-list li { border-color: #263f59; border-radius: 10px; background: #12273d; }
.profile-action-list li { border-color: #263f59; }

.legal-nav { max-width: 1120px; padding-block: 32px; }
.legal-nav > a:last-child { padding: 11px 20px; }
.legal-fallback { max-width: 860px; padding: 48px; margin-top: 26px; }
.legal-fallback h1 { letter-spacing: -.05em; }
.legal-fallback h2 { color: #e0efff; }
.legal-fallback p { color: #a9b8ca; }
.legal-fallback a { color: #80d8ff; }
.legal-bottom { padding: 9px; gap: 4px; border-radius: 12px; border-color: #233d57; background: #0e1b2c; }
.legal-bottom a { padding: 9px 16px; border-radius: 8px; }
.legal-bottom a[aria-current] { color: #a5e5ff; background: #15344e; box-shadow: inset 0 -2px 0 #47b7ff; }

@media (hover: hover) {
  .button:hover:not(:disabled), .icon-button:hover:not(:disabled), .copy-button:hover:not(:disabled), .legal-nav > a:last-child:hover { background: #1b3c58; border-color: #47b7ff80; color: #fff; }
  .button.primary:hover:not(:disabled) { background: linear-gradient(110deg, #6bc7ff, #a1e4ff); border-color: #91dfff; color: #041523; box-shadow: 0 5px 22px #47b7ff30; }
  .button.danger:hover:not(:disabled) { color: #ffd4dc; background: #ff87991a; border-color: #ff879955; }
  .text-link:hover, .auth-footer a:hover, .auth-legal a:hover { color: #fff; }
  .legal-bottom a:hover { color: #d9f3ff; background: #17344e; }
}
@media (min-width: 1700px) { .app-shell { padding: 30px 40px; column-gap: 40px; } }
@media (max-width: 1150px) {
  .app-shell { padding: 24px; column-gap: 22px; }
  .app-nav a { padding: 12px; }
  .workspace-header { padding: 14px 18px; }
  .workspace-header .discord-link { padding: 10px; }
}
@media (max-width: 900px) {
  .dashboard-login:has(> .dashboard-login-brand) {
    display: flex;
    flex-direction: column;
    max-width: 486px;
    justify-content: center;
    gap: 22px;
    padding: 36px 24px;
  }
  .dashboard-login:has(> .dashboard-login-brand)::before { background-size: auto 145%; background-position: 32% 100%; opacity: .92; animation-name: arion-auth-aurora-mobile; animation-duration: 10s; }
  .dashboard-login:has(> .dashboard-login-brand)::after { opacity: .75; -webkit-mask-image: linear-gradient(#000, #0008 55%, transparent 92%); mask-image: linear-gradient(#000, #0008 55%, transparent 92%); animation-duration: 13s; }
  .dashboard-login-brand .brand { flex-direction: row; gap: 12px; text-align: left; }
  .dashboard-login-brand .brand img { width: 52px; }
  .dashboard-login-brand .brand > span { font-size: 32px; }
  .dashboard-login-brand .brand small { margin-top: 9px; font-size: 9px; }
  .dashboard-login:has(> .dashboard-login-brand) > .auth-card { width: 100%; }
}
@keyframes arion-auth-aurora-mobile {
  0% { transform: translate3d(-7vw, 7vh, 0) rotate(-2deg) scale(1.4); }
  50% { transform: translate3d(2vw, -6vh, 0) rotate(1deg) scale(1.48); }
  100% { transform: translate3d(8vw, 2vh, 0) rotate(2deg) scale(1.42); }
}
@media (max-width: 700px) {
  .app-shell { padding: 16px; gap: 22px; }
  .workspace-header { min-height: 76px; padding: 13px; border-radius: 18px; }
  .workspace-actions { gap: 7px; }
  .workspace-header .discord-link { min-height: 34px; padding: 7px; border-radius: 12px; }
  .workspace-actions > .icon-button { border-radius: 12px; }
  .app-sidebar { padding: 7px; top: 0; border: 1px solid #27435e; border-radius: 999px; background: #0d1b2ced; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .app-nav { gap: 5px; }
  .app-nav a { min-height: 40px; height: 40px; flex-basis: 40px; width: 40px; padding: 9px; }
  .app-nav a.nav-admin { margin-top: 0; }
  .card { padding: 20px; border-radius: 18px; }
  .metric { padding: 17px; }
  .metric strong { font-size: 27px; }
  .metric-icon { border-radius: 10px; }
  .page-heading h1 { font-size: 28px; }
  .tabs a, .tabs button { padding: 9px 13px; font-size: 11px; }
  .legal-fallback { padding: 28px 24px; margin-top: 12px; border-radius: 14px; }
  .legal-nav { padding-block: 22px; }
  .legal-bottom { border-radius: 12px; flex-wrap: wrap; }
  .legal-bottom a { padding: 8px 12px; }
}
@media (max-width: 380px) {
  .app-shell { padding: 12px; gap: 18px; }
  .workspace-header { padding: 11px; gap: 8px; }
  .workspace-actions { gap: 5px; }
  .app-sidebar { padding: 5px; }
  .app-nav { gap: 3px; }
  .app-nav a { min-height: 36px; height: 36px; flex-basis: 36px; width: 36px; padding: 8px; }
  .card { padding: 16px; }
  .metric { padding: 13px; }
  .dashboard-login { padding: 32px 16px; }
  .dashboard-login .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 28px; }
  .dashboard-login:has(> .dashboard-login-brand) { padding: 30px 16px; }
  .dashboard-login:has(> .dashboard-login-brand) > .auth-card { padding: 28px 22px; }
  .dashboard-login:has(> .dashboard-login-brand) > .auth-card:has(.auth-footer)::before { top: 28px; left: 22px; right: 22px; }
  .dashboard-login:has(> .dashboard-login-brand) .auth-footer a { top: 32px; right: 26px; width: calc(50% - 26px); font-size: 12px; }
  .dashboard-login:has(> .dashboard-login-brand) .auth-footer a[href="/login"] { left: 26px; right: auto; }
  .dashboard-login:has(> .dashboard-login-brand) .auth-card:has(.auth-footer) > h1 { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .dashboard-login:has(> .dashboard-login-brand)::before,
  .dashboard-login:has(> .dashboard-login-brand)::after { animation: none !important; transform: none; will-change: auto; }
  .dashboard-login:has(> .dashboard-login-brand)::before { background-image: url('/art/auth-energy-still.svg?v=arion-20261020-motion'); }
}
