:root {
  
  --bg: #070910;         
  --surface: #0c1020;
  --card: #121a2f;
  --border: #1f2a44;

  --text: #e6eeff;
  --text-muted: #9aa9c7;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --focus: rgba(59, 130, 246, 0.45);

  --success: #22c55e;
  --warning: #f59e0b;
  --critical: #ef4444;

  --radius: 12px;
  --radius-sm: 10px;
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.22);
  --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 15% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(900px 600px at 110% 10%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 16, 0.9) 0%, rgba(7, 9, 16, 1) 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
  border-radius: 8px;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 42, 68, 0.7);
  margin-bottom: 0.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
  transform-origin: left center;
}

.sidebar__brand:hover {
  background: rgba(18, 26, 47, 0.55);
  transform: scale(1.01);
}

.sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar__logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  animation: sidebar-logo-glitch 5s ease-in-out infinite;
}

@keyframes sidebar-logo-glitch {
  0%, 94%, 100% { transform: translate(0, 0) skew(0deg); opacity: 1; }
  95% { transform: translate(-2px, 1px) skew(-0.5deg); opacity: 0.92; }
  96% { transform: translate(2px, -1px) skew(0.5deg); opacity: 0.95; }
  97% { transform: translate(-1px, 0) skew(0deg); opacity: 1; }
}

.sidebar__brandtext-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.sidebar__brandtext {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
  color: var(--primary);
  animation: sidebar-brand-glitch 4s ease-in-out infinite;
}

@keyframes sidebar-brand-glitch {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 1; text-shadow: none; }
  93% { transform: translate(-1px, 0); opacity: 0.9; text-shadow: 2px 0 rgba(59, 130, 246, 0.5), -2px 0 rgba(255,255,255,0.1); }
  94% { transform: translate(1px, 0); opacity: 0.95; text-shadow: -1px 0 rgba(59, 130, 246, 0.6), 1px 0 rgba(255,255,255,0.08); }
  95% { transform: translate(0, 0); opacity: 1; text-shadow: none; }
}

@keyframes sidebar-ash-float {
  0% { transform: translate(0, 8px) scale(1); opacity: 0.15; }
  25% { transform: translate(3px, -8px) scale(1.1); opacity: 0.5; }
  50% { transform: translate(-2px, -22px) scale(0.9); opacity: 0.35; }
  75% { transform: translate(4px, -38px) scale(1); opacity: 0.2; }
  100% { transform: translate(-3px, -55px) scale(0.8); opacity: 0; }
}

.sidebar__brandtext-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: sidebar-ash-float 4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.4) 50%, transparent 70%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}
.sidebar__brandtext-particle:nth-child(1)  { top: 60%; left: 20%; width: 5px; height: 5px; animation-duration: 3.2s; animation-delay: 0s; }
.sidebar__brandtext-particle:nth-child(2)  { top: 80%; left: 45%; width: 6px; height: 6px; animation-duration: 4.5s; animation-delay: 0.4s; }
.sidebar__brandtext-particle:nth-child(3)  { top: 70%; left: 75%; width: 5px; height: 5px; animation-duration: 3.8s; animation-delay: 0.8s; }
.sidebar__brandtext-particle:nth-child(4)  { top: 50%; left: 10%; width: 5px; height: 5px; animation-duration: 4.2s; animation-delay: 1.2s; }
.sidebar__brandtext-particle:nth-child(5)  { top: 90%; left: 55%; width: 6px; height: 6px; animation-duration: 3.5s; animation-delay: 0.2s; }
.sidebar__brandtext-particle:nth-child(6)  { top: 65%; left: 85%; width: 5px; height: 5px; animation-duration: 4.8s; animation-delay: 1.5s; }
.sidebar__brandtext-particle:nth-child(7)  { top: 75%; left: 30%; width: 5px; height: 5px; animation-duration: 3.3s; animation-delay: 0.6s; }
.sidebar__brandtext-particle:nth-child(8)  { top: 55%; left: 60%; width: 6px; height: 6px; animation-duration: 4s; animation-delay: 1s; }
.sidebar__brandtext-particle:nth-child(9)  { top: 85%; left: 15%; width: 5px; height: 5px; animation-duration: 4.3s; animation-delay: 0.3s; }
.sidebar__brandtext-particle:nth-child(10) { top: 45%; left: 90%; width: 5px; height: 5px; animation-duration: 3.6s; animation-delay: 1.8s; }
.sidebar__brandtext-particle:nth-child(11) { top: 70%; left: 5%; width: 6px; height: 6px; animation-duration: 4.6s; animation-delay: 0.5s; }
.sidebar__brandtext-particle:nth-child(12) { top: 60%; left: 50%; width: 5px; height: 5px; animation-duration: 3.9s; animation-delay: 1.3s; }
.sidebar__brandtext-particle:nth-child(13) { top: 95%; left: 35%; width: 5px; height: 5px; animation-duration: 4.1s; animation-delay: 0.7s; }
.sidebar__brandtext-particle:nth-child(14) { top: 40%; left: 70%; width: 6px; height: 6px; animation-duration: 3.4s; animation-delay: 1.6s; }
.sidebar__brandtext-particle:nth-child(15) { top: 80%; left: 95%; width: 5px; height: 5px; animation-duration: 4.4s; animation-delay: 0.1s; }
.sidebar__brandtext-particle:nth-child(16) { top: 50%; left: 40%; width: 5px; height: 5px; animation-duration: 3.7s; animation-delay: 1.1s; }

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar__user {
  position: relative;
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.sidebar__user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: rgba(18, 26, 47, 0.5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  transform-origin: left center;
}

.sidebar__user-trigger:hover {
  background: var(--card);
  border-color: rgba(59, 130, 246, 0.25);
  transform: scale(1.01);
}

.sidebar__user-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.sidebar__user-name {
  flex: 1;
  min-width: 2ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.sidebar__user-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.sidebar__user-trigger[aria-expanded="true"] .sidebar__user-chevron {
  transform: rotate(180deg);
}

.sidebar__user-dropdown {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0.5rem;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  padding: 0.35rem;
  z-index: 20;
}

.sidebar__user-dropdown--above {
  left: 50%;
  top: auto;
  bottom: 100%;
  margin-left: 0;
  margin-bottom: 0.5rem;
  transform: translateX(-50%);
}

.sidebar__user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar__user-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
}

.sidebar__user-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--critical);
}

.sidebar__link {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.03rem;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  cursor: pointer;
}

.sidebar__link:hover {
  color: var(--text);
  background: var(--card);
}

.sidebar__link--active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid var(--primary);
  padding-left: calc(1.25rem - 3px);
}

.sidebar__link--disabled {
  cursor: default;
  pointer-events: none;
}

.sidebar__link-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pnl-app {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1;
  position: relative;
}

.header {
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.92) 0%, rgba(22, 34, 58, 0.86) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__discord {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 0.5rem;
  color: #5865F2;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.header__discord:hover {
  color: #7289da;
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.45);
}

.header__discord-icon {
  flex-shrink: 0;
}

.btn--ghost {
  background: rgba(18, 26, 47, 0.6);
  color: var(--text);
  border: 1px solid rgba(31, 42, 68, 0.9);
}

.btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.btn--ghost:active {
  transform: scale(0.99);
}

.btn--secondary {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn--secondary:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}

.btn--secondary:active {
  transform: scale(0.99);
}

.page-submissions {
  padding: 1.5rem;
}

.submissions-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-logs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.page-users {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.users-panel {
  max-width: 100%;
}

.users-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.users-panel__header .clients-title {
  margin: 0;
}

.users-filters-row th {
  padding: 0.35rem 0.5rem;
  vertical-align: bottom;
  border-bottom: none;
}
.users-filter-input {
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  box-sizing: border-box;
}
.users-filter-input::placeholder {
  color: var(--text-muted);
}
.users-filter-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.clients-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clients-header__right .clients-header__include-deleted {
  margin: 0;
}

.clients-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.keys-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.keys-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.keys-panel__header .clients-title {
  margin: 0;
}

.keys-add {
  margin-bottom: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.keys-add .modal__input,
.keys-add select.modal__input {
  min-width: 140px;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-badge--used {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.status-badge--available {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.status-badge--revoked {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.keys-add__form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.keys-add__form .modal__input {
  flex: 1;
  min-width: 0;
}

.keys-panel .clients-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.logs-table-wrap {
  max-height: 60vh;
  overflow-y: auto;
}

.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 0.25rem;
}

.clients-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.clients-header__include-deleted {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.clients-header__include-deleted input {
  cursor: pointer;
}

.clients-panel__header,
.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.clients-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
}

.clients-filter {
  min-width: 120px;
  max-width: 160px;
}

.users-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.users-panel__actions {
  display: flex;
  gap: 0.5rem;
}

.users-panel__action-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.users-panel__action-btns .btn-icon {
  padding: 0.3rem;
}

.clients-row--disabled {
  opacity: 0.7;
}

.settings-password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

.settings-password-form .btn {
  align-self: flex-start;
}

.clients-row--deleted {
  opacity: 0.75;
}

.clients-deleted-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
  background: rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
  border-radius: 4px;
  margin-right: 0.35em;
}

.clients-map-wrap {
  padding: 0 !important;
  overflow: hidden;
  min-height: 440px;
  height: 440px;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.page-logs.page--visible .clients-map-wrap:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  min-height: 440px !important;
}

.clients-map-wrap .clients-map {
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  display: block;
}

.clients-map-wrap .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  border-radius: var(--radius);
  font: inherit;
}

.clients-map .client-marker path,
.clients-map .client-marker circle {
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
  animation: marker-glow 2.5s ease-in-out infinite;
}
.clients-map .client-marker:hover path,
.clients-map .client-marker:hover circle {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 1)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}
.clients-map .client-marker--focus path,
.clients-map .client-marker--focus circle {
  animation: marker-glow-focus 2s ease-in-out infinite;
}
@keyframes marker-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.9)) drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.95)) drop-shadow(0 0 24px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 36px rgba(59, 130, 246, 0.25));
  }
}
@keyframes marker-glow-focus {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 1)) drop-shadow(0 0 14px rgba(59, 130, 246, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(59, 130, 246, 1)) drop-shadow(0 0 28px rgba(59, 130, 246, 0.6)) drop-shadow(0 0 42px rgba(59, 130, 246, 0.3));
  }
}

.clients-map .leaflet-tooltip.clients-map-tooltip {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.clients-map .leaflet-tooltip.clients-map-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.95);
}
.clients-map .leaflet-tooltip.clients-map-tooltip--focus {
  background: rgba(37, 99, 235, 0.9);
  border-color: rgba(147, 197, 253, 0.9);
  font-weight: 600;
}
.clients-map .leaflet-tooltip.clients-map-tooltip--focus::before {
  border-top-color: rgba(37, 99, 235, 0.9);
}

.clients-map .leaflet-control-attribution {
  display: none;
}

.clients-map .leaflet-tile-pane {
  filter: brightness(0.88) contrast(1.08);
}

.clients-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-1);
}

.clients-map .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 1.25rem !important;
  font-weight: 600;
  color: var(--text) !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.clients-map .leaflet-control-zoom a:hover {
  color: var(--primary) !important;
  background: rgba(18, 26, 47, 0.95) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.clients-map .leaflet-control-zoom a.leaflet-disabled {
  color: var(--text-muted) !important;
  opacity: 0.6;
  cursor: default;
}

.clients-map .leaflet-control-zoom-in {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: none !important;
}

.clients-map .leaflet-control-zoom-out {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.clients-panel {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.roblox-section {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.roblox-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.roblox-section__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.roblox-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.roblox-status--ready {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.roblox-status--pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.roblox-status--inactive {
  background: rgba(156, 163, 175, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.clients-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.clients-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.clients-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(31, 42, 68, 0.4);
  color: var(--text);
  vertical-align: middle;
}

.clients-row td:first-child {
  transition: box-shadow 0.2s ease;
}

.clients-row:hover td {
  background: rgba(18, 26, 47, 0.35);
}

.clients-row:hover td:first-child {
  box-shadow: inset 2px 0 0 0 rgba(59, 130, 246, 0.35);
}

.clients-cell--hostname {
  font-weight: 500;
}

.clients-cell--num {
  font-variant-numeric: tabular-nums;
}

.clients-cell--date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.clients-cell--actions {
  white-space: nowrap;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.clients-cell--actions .btn-icon {
  pointer-events: auto;
  cursor: pointer;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-icon:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-icon__svg {
  flex-shrink: 0;
}

.btn-icon--view:hover {
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-icon--download:hover {
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.5);
}

.btn-icon--delete:hover {
  color: var(--critical);
  border-color: rgba(239, 68, 68, 0.5);
}

.modal__box--wide {
  max-width:  min(90vw, 720px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal--client-view .modal__box {
  padding: 0;
  overflow: hidden;
  max-width: min(96vw, 1200px);
  width: min(96vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal--client-view .modal__backdrop--blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(7, 9, 16, 0.5);
}

.modal__box--client-window {
  padding: 0;
  overflow: hidden;
  max-width: min(96vw, 1200px);
  width: min(96vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.client-window__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}

.client-window__title {
  margin: 0;
  font-size: 1.1rem;
}

.client-window__meta {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.client-window__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.client-window__close:hover {
  background: var(--surface);
  color: var(--text);
}

.client-window__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.client-window__nav {
  flex-shrink: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  border-right: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.client-window__nav-btn {
  display: inline-block;
  width: auto;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.client-window__nav-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.client-window__nav-btn--active {
  background: var(--bg);
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.client-window__content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 1rem 1.25rem;
  background: var(--bg);
}

.client-window__panel {
  height: 100%;
}

.client-window__panel.hidden {
  display: none !important;
}

.client-window__content-inner {
  padding: 0;
}

.client-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.client-detail__row {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}

.client-detail__row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(59, 130, 246, 0.2);
}

.client-detail__label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.client-detail__value {
  color: var(--text);
  word-break: break-word;
  min-width: 0;
}

.client-detail__value .client-detail__nested {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
}

.client-detail__nested .client-detail__row {
  background: var(--card);
  margin-bottom: 0.25rem;
}

.client-detail__nested .client-detail__row:last-child {
  margin-bottom: 0;
}

.client-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-detail__card {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Rows/lines inside a card: no extra box, only the card is the box */
.client-detail__card .client-detail__row {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.client-detail__card .client-detail__row:last-child {
  border-bottom: none;
}

.client-detail__card .client-detail__row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.client-detail__card .client-detail__line--full {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.client-detail__card .client-detail__line--full:last-child {
  border-bottom: none;
}

/* Section title (e.g. BASIC INFORMATION, ACCOUNT INFORMATION) – same box as content */
.client-detail__section-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  border-bottom: 1px solid var(--border);
}

.client-detail__card .client-detail__section-title:not(:first-child) {
  margin-top: 2rem;
}

/* Fallback: first line in card when no section-title class */
.client-detail__card .client-detail__line--full:first-child {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.client-detail--discord .client-detail__card--user {
  margin-bottom: 1rem;
}

.client-detail--discord .client-detail__card--user:last-child {
  margin-bottom: 0;
}

.client-detail__line {
  padding: 0.4rem 1rem;
  color: var(--text);
}

.client-detail__line--full {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.client-detail__muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.client-detail__num {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.client-detail__bool {
  color: var(--primary);
  font-weight: 500;
}

.client-detail__empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.client-window__pre {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.modal-client-empty {
  color: var(--text-muted);
  margin: 0;
  padding: 1.5rem;
}

.clients-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 0;
}

.btn--danger-inline {
  color: var(--critical);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn--danger-inline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.log-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.45;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(31, 42, 68, 0.35);
  transition: background 0.15s ease;
}

.log-line:last-child {
  border-bottom: none;
}

.log-line:hover {
  background: rgba(18, 26, 47, 0.4);
}

.log-line--ok {
  border-left-color: rgba(34, 197, 94, 0.5);
}

.log-line--err {
  border-left-color: rgba(239, 68, 68, 0.5);
}

.log-line--info {
  border-left-color: rgba(59, 130, 246, 0.4);
}

.log-line__time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 120px;
}

.log-line__badge {
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.log-line__badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.log-line__badge--err {
  background: rgba(239, 68, 68, 0.15);
  color: var(--critical);
}

.log-line__badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
}

.log-line__msg {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
  font-weight: 450;
}

.main.page-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.page-dashboard .card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.10) 0%, rgba(18, 26, 47, 0.55) 100%);
}

.dash-hero__title {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.dash-hero__sub {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.dash-hero__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dash-metrics {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-metrics .metric {
  flex: 1;
  min-width: 120px;
}

.metric {
  padding: 1.25rem 1.35rem;
}

.metric__label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.metric__value {
  margin-top: 0.5rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric__value--muted {
  color: var(--text-muted);
  font-weight: 650;
}

.metric__meta {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.dash-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-row .dash-activity,
.dash-row .dash-countries {
  flex: 1;
  min-width: 240px;
}

.dash-activity {
  padding: 1.25rem 1.35rem;
}

.dash-activity__list {
  position: relative;
}

.dash-activity__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dash-activity__item {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.dash-activity__item:last-child {
  border-bottom: none;
}

.dash-activity__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dash-activity__item-host {
  display: block;
  font-weight: 600;
}

.dash-activity__item-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dash-countries {
  padding: 1.25rem 1.35rem;
}

.dash-countries__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dash-country-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-activity__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.dash-activity__title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.btn--sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card__desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.hint {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.activity {
  display: grid;
  gap: 0.6rem;
}

.activity__empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.activity__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 42, 68, 0.8);
  background: rgba(12, 16, 32, 0.6);
}

.activity__title {
  font-weight: 600;
  font-size: 0.92rem;
}

.activity__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
}

.main {
  flex: 1;
  min-height: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  width: 100%;
  display: grid;
  gap: 1.5rem;
}

.main.page-logs {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard {
  padding: 2rem;
}

.dashboard__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.dashboard__text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dashboard__hint strong {
  color: var(--primary);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.module__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.module__desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.btn:active,
.btn:hover:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--critical);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: var(--critical);
}

.page-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.page-settings .profile-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 720px) {
  .page-settings .profile-cards {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  max-width: 420px;
}

.page-settings .profile-card {
  max-width: none;
  min-height: 0;
}

.profile-card--danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.profile-card--danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
}

.page-profile .profile-card--danger {
  margin-top: -0.75rem;
  min-height: 115px;
}

.profile-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--critical);
}

.profile-card:not(.profile-card--danger) .profile-card__title {
  color: var(--text);
}

.profile-card__desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-card__user {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text);
}

.profile-card__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-card__meta {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-username-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.profile-input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
}

.profile-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
}

.profile-card__error {
  margin: 0.5rem 0 0;
  color: var(--critical);
  font-size: 0.88rem;
}

.profile-stats {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}

.profile-stats dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-stats dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.profile-card--overview {
  grid-column: 1 / -1;
}

.profile-overview {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 2rem;
}

.profile-overview dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-overview dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.page-profile .profile-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.page-profile .profile-card {
  max-width: none;
  width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .page-profile .profile-cards {
    grid-template-columns: 1fr;
  }
}

.page-settings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-token-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: var(--surface);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  word-break: break-all;
  max-width: 100%;
}

.settings-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.settings-checkbox input {
  cursor: pointer;
}

.settings-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.btn--block {
  width: 100%;
}

.modal__box--danger .modal__title {
  color: var(--critical);
}

.modal__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading {
  color: var(--text-muted);
  margin-top: 1rem;
}

.error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--critical);
  border-radius: 6px;
  color: var(--critical);
  font-size: 0.9rem;
}

.result {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.result-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.result-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.result-row:last-child {
  margin-bottom: 0;
}

.result-label {
  color: var(--text-muted);
  min-width: 140px;
}

.result-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

.result-value--success {
  color: var(--success);
}

.result-value--warning {
  color: var(--warning);
}

.result-value--critical {
  color: var(--critical);
}

.result-adapter {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.result-adapter:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.result-adapter__name {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.module--placeholder .module__title {
  color: var(--text-muted);
}

.module--placeholder .module__desc {
  margin-bottom: 0;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-dashboard.page--visible .dash-metrics .metric,
.page-builder.page--visible .builder__title,
.page-builder.page--visible .builder-tile,
.page-builder.page--visible .builder-soon__title,
.page-builder.page--visible .builder__options,
.page-builder.page--visible .builder__footer,
.page-logs.page--visible .clients-header,
.page-logs.page--visible .clients-map-wrap,
.page-logs.page--visible .clients-panel,
.page-logs.page--visible .roblox-section,
.page-settings.page--visible .builder__title,
.page-settings.page--visible .profile-cards .profile-card,
.page-profile.page--visible .builder__title,
.page-profile.page--visible .profile-cards .profile-card {
  animation: pageEnter 0.4s ease-out both;
}

.page--visible .dash-metrics .metric:nth-child(1) { animation-delay: 0.04s; }
.page--visible .dash-metrics .metric:nth-child(2) { animation-delay: 0.08s; }
.page--visible .dash-metrics .metric:nth-child(3) { animation-delay: 0.12s; }

.page--visible.page-builder .builder__title { animation-delay: 0s; }
.page--visible.page-builder .builder-tile:nth-child(1) { animation-delay: 0.04s; }
.page--visible.page-builder .builder-tile:nth-child(2) { animation-delay: 0.08s; }
.page--visible.page-builder .builder-tile:nth-child(3) { animation-delay: 0.12s; }
.page--visible.page-builder .builder-tile:nth-child(4) { animation-delay: 0.16s; }
.page--visible.page-builder .builder-tile:nth-child(5) { animation-delay: 0.2s; }
.page--visible.page-builder .builder-tile:nth-child(6) { animation-delay: 0.24s; }
.page--visible.page-builder .builder-soon__title { animation-delay: 0.28s; }
.page--visible.page-builder .builder-tiles--soon .builder-tile:nth-child(1) { animation-delay: 0.3s; }
.page--visible.page-builder .builder-tiles--soon .builder-tile:nth-child(2) { animation-delay: 0.34s; }
.page--visible.page-builder .builder-tiles--soon .builder-tile:nth-child(3) { animation-delay: 0.38s; }
.page--visible.page-builder .builder-tiles--soon .builder-tile:nth-child(4) { animation-delay: 0.42s; }
.page--visible.page-builder .builder__footer { animation-delay: 0.46s; }

.page--visible.page-logs .clients-header { animation-delay: 0s; }
.page--visible.page-logs .clients-map-wrap { animation-delay: 0.06s; }
.page--visible.page-logs .clients-panel { animation-delay: 0.12s; }
.page--visible.page-logs .roblox-section { animation-delay: 0.18s; }

.page--visible.page-settings .builder__title { animation-delay: 0s; }
.page--visible.page-settings .profile-cards .profile-card:nth-child(1) { animation-delay: 0.05s; }
.page--visible.page-settings .profile-cards .profile-card:nth-child(2) { animation-delay: 0.1s; }
.page--visible.page-settings .profile-cards .profile-card:nth-child(3) { animation-delay: 0.15s; }
.page--visible.page-settings .profile-cards .profile-card:nth-child(4) { animation-delay: 0.2s; }

.page--visible.page-profile .builder__title { animation-delay: 0s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(1) { animation-delay: 0.05s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(2) { animation-delay: 0.1s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(3) { animation-delay: 0.15s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(4) { animation-delay: 0.2s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(5) { animation-delay: 0.25s; }
.page--visible.page-profile .profile-cards .profile-card:nth-child(6) { animation-delay: 0.3s; }

.page-builder {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.page-marketplace {
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 200px;
}

.page-marketplace__box {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.page-marketplace__placeholder {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.builder__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.builder__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.builder-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.builder-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 0.75rem;
  width: 172px;
  height: 165px;
  min-width: 172px;
  min-height: 165px;
  max-width: 172px;
  max-height: 165px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.builder-tile__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.builder-tile:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.12);
}

.builder-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.builder-tile__img--virus {
  width: 28px;
  height: 28px;
  display: inline-block;
  -webkit-mask: url(/img/virus.svg) no-repeat center;
  mask: url(/img/virus.svg) no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background: currentColor;
}

.builder-tile:hover .builder-tile__icon {
  color: var(--primary);
}

.builder-tile__icon--discord {
  color: #5865f2;
}

.builder-tile:hover .builder-tile__icon--discord {
  color: #7983f5;
}

.builder-tile__icon--roblox {
  color: #e2231a;
}

.builder-tile:hover .builder-tile__icon--roblox {
  color: #ff4538;
}

.builder-tile__icon--minecraft {
  color: #8b8b8b;
}

.builder-tile:hover .builder-tile__icon--minecraft {
  color: #a8a8a8;
}

.builder-tile__icon--steam {
  color: #2a475e;
}

.builder-tile:hover .builder-tile__icon--steam {
  color: #3d6b8a;
}

.builder-soon__title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.builder-tiles--soon {
  margin-bottom: 0.5rem;
}

.builder-tile--soon {
  cursor: default;
  opacity: 0.85;
}

.builder-tile--soon:hover {
  transform: none;
  background: var(--card);
  border-color: var(--border);
  box-shadow: none;
}

.builder-tile--soon:hover .builder-tile__icon {
  color: inherit;
}

.builder-tile__soon {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.builder-tile__toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.slider__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider__track {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  transition: background 0.2s, border-color 0.2s;
}

.slider__track:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.slider__input:focus-visible + .slider__track {
  box-shadow: 0 0 0 3px var(--focus);
}

.slider__input:checked + .slider__track {
  background: var(--primary);
  border-color: var(--primary);
}

.slider__track::after {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.slider__input:checked + .slider__track::after {
  transform: translateX(22px);
}

.builder__server-url {
  margin-top: 1rem;
  padding: 1rem;
}

.builder__server-url-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.builder__server-url-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  box-sizing: border-box;
}

.builder__server-url-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted, #666);
}

.builder__options {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.builder-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.builder-option .slider__input:checked + .slider__track { background: rgba(59, 130, 246, 0.5); }
.builder-option__label { user-select: none; }

.builder__footer {
  padding-top: 2rem;
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.builder-explanations {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-explanations__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.builder-explanations__list {
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.builder-explanations__list dt {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.builder-explanations__list dt:first-child {
  margin-top: 0;
}

.builder-explanations__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.builder-explanations__icon--virus {
  width: 20px;
  height: 20px;
  -webkit-mask: url(/img/virus.svg) no-repeat center;
  mask: url(/img/virus.svg) no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background: currentColor;
}

.builder-explanations__icon--discord {
  color: #5865f2;
}

.builder-explanations__list dd {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.builder__server-wrap {
  width: 100%;
  margin-bottom: 0.25rem;
}

.builder__server-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.builder__server-input {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.builder__server-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.builder__server-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.builder__user-select-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.35rem;
}
.builder__user-select {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 180px;
}
.pnl-builder-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn--build, .btn--build-jar, .btn--download {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
}

.builder-stager__title { margin: 0 0 0.35rem; font-size: 1rem; }
.builder-stager__label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }
.builder-stager__input {
  width: 100%; padding: 0.6rem 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  resize: vertical; min-height: 3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.builder-stager__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}
.builder-stager__actions { margin-top: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.build-output {
  margin-top: 0.5rem;
}

.build-output__title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.build-output__content {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(16, 26, 46, 0.65);
  border: 1px solid rgba(36, 50, 74, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.build-output__line {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.build-output__line--ok {
  color: var(--text);
}

.build-output__line--err {
  color: var(--text);
}

.build-output__line--info {
  color: var(--text);
}

.build-output__badge {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 50, 74, 0.9);
  background: rgba(22, 34, 58, 0.75);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.build-output__badge--ok {
  border-color: rgba(34, 197, 94, 0.55);
  color: rgba(34, 197, 94, 0.95);
}

.build-output__badge--err {
  border-color: rgba(239, 68, 68, 0.55);
  color: rgba(239, 68, 68, 0.95);
}

.build-output__badge--info {
  border-color: rgba(59, 130, 246, 0.45);
  color: rgba(59, 130, 246, 0.95);
}

.build-output__msg {
  flex: 1 1 auto;
  min-width: 0;
}

.build-output__status {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(36, 50, 74, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.flag-display {
  margin-top: 0.5rem;
  border-color: var(--primary);
}

.flag-display__title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.flag-display__value {
  margin: 0 0 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-all;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: 6px;
}

.flag-display .btn {
  margin-right: 0.5rem;
}

@media (min-width: 640px) {
  .main {
    grid-template-columns: 1fr 1fr;
  }
  .main .card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
  .content {
    margin-left: 220px;
  }
  .dash-head {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .dash-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  position: relative;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 650px at 15% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(900px 600px at 110% 10%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 16, 0.9) 0%, rgba(7, 9, 16, 1) 60%),
    var(--bg);
}

/* Binary rain: columns of 0/1 falling in blue */
.login-binary-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(59, 130, 246, 0.35);
  display: block;
  padding: 0 2%;
}

.login-binary-rain .binary-stream {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: binary-rain-fall 7s linear infinite;
  white-space: pre;
  letter-spacing: 0.05em;
}

@keyframes binary-rain-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

.login-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
}
.login-header__discord {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: #5865F2;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.login-header__discord:hover {
  color: #7289da;
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.45);
}
.login-header__discord-icon {
  flex-shrink: 0;
}

@keyframes auth-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-start-hero {
  width: 100%;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2.5rem 4rem;
  text-align: center;
}
.auth-start-hero__logo {
  margin: 0 0 1.25rem;
  width: 88px;
  height: 88px;
  display: block;
  animation: auth-fade-in 0.5s ease-out forwards;
}

.auth-start-hero__title-wrap {
  position: relative;
  display: inline-block;
  cursor: default;
}
.auth-start-hero__title {
  position: relative;
  z-index: 1;
  transition: filter 0.4s ease, text-shadow 0.4s ease;
}
.auth-start-hero__title-wrap:hover .auth-start-hero__title {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 24px rgba(59, 130, 246, 0.5));
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
}

.auth-start-hero__title-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0) scale(0);
  transition: opacity 0.2s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle {
  opacity: 1;
}
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(1) { transform: translate(0, -42px) scale(1); transition-delay: 0.05s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(2) { transform: translate(30px, -30px) scale(1); transition-delay: 0.1s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(3) { transform: translate(42px, 0) scale(1); transition-delay: 0.15s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(4) { transform: translate(30px, 30px) scale(1); transition-delay: 0.2s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(5) { transform: translate(0, 42px) scale(1); transition-delay: 0.25s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(6) { transform: translate(-30px, 30px) scale(1); transition-delay: 0.3s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(7) { transform: translate(-42px, 0) scale(1); transition-delay: 0.35s; }
.auth-start-hero__title-wrap:hover .auth-start-hero__title-particle:nth-child(8) { transform: translate(-30px, -30px) scale(1); transition-delay: 0.4s; }

.auth-start-hero__title {
  animation: auth-fade-in 0.5s ease-out 0.06s forwards;
  opacity: 0;
}
.auth-start-hero__subtitle {
  animation: auth-fade-in 0.5s ease-out 0.12s forwards;
  opacity: 0;
}
.auth-start-hero__tagline {
  animation: auth-fade-in 0.5s ease-out 0.18s forwards;
  opacity: 0;
}
.auth-start-hero__actions {
  animation: auth-fade-in 0.5s ease-out 0.24s forwards;
  opacity: 0;
}
.auth-start-hero__features {
  animation: auth-fade-in 0.5s ease-out 0.32s forwards;
  opacity: 0;
}
.auth-start-hero__title {
  margin: 0 0 0.35rem;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.auth-start-hero__subtitle {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
}
.auth-start-hero__tagline {
  margin: 0 0 2.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.9;
}
.auth-start-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}
.auth-start-hero__btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.auth-start-hero__btn:hover {
  transform: translateY(-1px);
}
.auth-start-hero__features {
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.auth-feature-box {
  min-width: 0;
  padding: 2rem 2rem;
  background: rgba(18, 26, 47, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-feature-box:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(18, 26, 47, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.auth-feature-box__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--primary);
}
.auth-feature-box__icon svg {
  width: 38px;
  height: 38px;
}
.auth-feature-box__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.auth-feature-box__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.auth-feature-box--performance .auth-feature-box__icon--blitz {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}
.auth-feature-box--performance:hover .auth-feature-box__icon--blitz {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.35));
}
.auth-feature-box--performance:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
}

.auth-forms-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-bg .login-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24vh;
  min-height: 150px;
  overflow: hidden;
  pointer-events: none;
  perspective: 520px;
}
.login-grid::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 150%;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(59, 130, 246, 0.42) 0,
      rgba(59, 130, 246, 0.42) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      to right,
      rgba(59, 130, 246, 0.35) 0,
      rgba(59, 130, 246, 0.35) 1px,
      transparent 1px,
      transparent 48px
    );
  transform-origin: bottom center;
  transform: rotateX(56deg);

  mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 15%, rgba(0, 0, 0, 0.6) 45%, black 95%, black 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 5%, black 18%, black 82%, rgba(0, 0, 0, 0.15) 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 15%, rgba(0, 0, 0, 0.6) 45%, black 95%, black 100%),
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 5%, black 18%, black 82%, rgba(0, 0, 0, 0.15) 95%, transparent 100%);
  -webkit-mask-composite: source-in;
}
.login-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 45%, rgba(7, 9, 16, 0.2) 100%);
  pointer-events: none;
}

.login-footer {
  padding: 0.75rem 2rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.login-community {
  width: 100%;
  max-width: 840px;
  padding: 4rem 2.5rem 3rem;
  text-align: center;
}
.login-community__title {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}
.login-community__boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.login-community-box {
  padding: 1.75rem 1.25rem;
  background: rgba(18, 26, 47, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.login-community-box:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(18, 26, 47, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.login-community-box__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.login-community-box__icon svg {
  width: 30px;
  height: 30px;
}
.login-community-box__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.login-community-box__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .auth-start-hero__title {
    font-size: 2.5rem;
  }
  .auth-start-hero {
    padding: 4rem 1.5rem 3rem;
  }
  .auth-start-hero__actions {
    max-width: 100%;
  }
  .auth-start-hero__features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .auth-feature-box {
    min-width: 0;
  }
  .login-header {
    padding: 0.75rem 1rem;
  }
  .login-grid {
    height: 22vh;
    min-height: 120px;
  }
  .login-footer {
    padding: 0.5rem 1rem 1.5rem;
    font-size: 0.75rem;
  }
  .login-community {
    padding: 3rem 1.25rem 2rem;
  }
  .login-community__boxes {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .login-community__boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.login-page .login-section {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.login-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.login-card__title {
  margin: 0 0 1.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.login-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.login-tab:hover {
  color: var(--text);
  background: var(--card);
}
.login-tab--active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}
.auth-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  color: var(--critical);
  font-size: 0.9rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.login-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.login-input {
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.login-submit {
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  cursor: pointer;
}

.auth-start__logo {
  display: block;
  width: 100%;
  max-width: 88px;
  height: auto;
  margin: 0 auto 0.75rem;
}
.auth-start__title {
  margin-bottom: 0.25rem;
}
.auth-start__accent {
  width: 48px;
  height: 0;
  border: none;
  border-top: 2px solid var(--primary);
  margin: 0.5rem auto 0.75rem;
}
.auth-start__subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.auth-start__desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.auth-start__footer {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.8;
}
.auth-start__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0;
}
.auth-start__btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-back {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.auth-back:hover {
  color: var(--primary);
}

.auth-switch {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch__link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
}
.auth-switch__link:hover {
  text-decoration: underline;
}
.auth-switch__link:focus-visible {
  outline: none;
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 16, 0.75);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal.modal--open .modal__backdrop {
  opacity: 1;
}

.modal--confirm .modal__backdrop--blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: transparent;
}

.modal--confirm.modal--confirm-danger .modal__backdrop--blur {
  background: transparent;
}

.modal__confirm-hold {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.modal__confirm-hold-progress {
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, 0.6);
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

.modal__confirm-hold .btn--danger {
  position: relative;
  z-index: 1;
  background: rgba(239, 68, 68, 0.25);
  transition: background 0.1s ease;
}

.modal__confirm-hold.holding .btn--danger {
  background: rgba(239, 68, 68, 0.35);
}

.modal__text--warning {
  color: var(--text-muted);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 1.5rem;
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.modal.modal--open .modal__box {
  opacity: 1;
  transform: scale(1);
}

.modal__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal__error {
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  color: var(--critical);
  font-size: 0.9rem;
}

.modal__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal__input {
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
