@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --ink: #05060b;
  --text-primary: #e3f6ff;
  --text-muted: rgba(220, 242, 255, 0.7);
  --neon-cyan: #67f8ff;
  --neon-mint: #44ffb4;
  --neon-amber: #ffb347;
  --neon-pink: #ff76d6;
  --panel: rgba(6, 12, 24, 0.65);
  --panel-strong: rgba(6, 12, 24, 0.85);
  --panel-border: rgba(103, 248, 255, 0.18);
  --panel-border-strong: rgba(103, 248, 255, 0.35);
  --danger: #ff6b6b;
  --warning: #ffb347;
  --success: #44ffb4;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text-primary);
  font-family: var(--font-body);
  background: radial-gradient(circle at top, rgba(26, 42, 68, 0.9), var(--ink)),
    radial-gradient(circle at 20% 20%, rgba(103, 248, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(68, 255, 180, 0.15), transparent 45%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
      120deg,
      rgba(103, 248, 255, 0.08),
      rgba(103, 248, 255, 0.08) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      60deg,
      rgba(68, 255, 180, 0.06),
      rgba(68, 255, 180, 0.06) 1px,
      transparent 1px,
      transparent 90px
    );
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: grid-shift 14s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0.4;
  pointer-events: none;
}

@keyframes grid-shift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-120px);
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text-muted);
}

strong {
  color: var(--text-primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

h3 {
  font-size: 1.1rem;
}

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  min-height: 100vh;
  min-height: 100svh;
}

.container {
  width: min(960px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-body .container {
  width: min(420px, 100%);
}

.login-container,
.forgot-container {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 3.2rem 2.2rem 2.4rem;
  box-shadow: 0 0 35px rgba(103, 248, 255, 0.18);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 1.1rem;
  text-align: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 2rem;
}

.brand-lockup--sidebar {
  margin-bottom: 0;
  letter-spacing: 0.14em;
}


.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(130deg, var(--neon-cyan), var(--neon-mint));
  box-shadow: 0 0 18px rgba(103, 248, 255, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

.auth-title {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  margin: 0;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.4rem;
  text-align: left;
}

.form-group--spaced {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.label-center {
  display: block;
  text-align: center;
}

.login-container .form-group label {
  color: var(--text-primary);
}


.login-container .form-control::placeholder {
  color: rgba(227, 246, 255, 0.85);
}

.login-container .form-group {
  width: 100%;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(5, 8, 18, 0.8);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: rgba(227, 246, 255, 0.45);
}

.form-control:focus {
  outline: none;
  border-color: rgba(103, 248, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(103, 248, 255, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.login-container .btn,
.forgot-container .btn {
  width: 100%;
}

.login-container .btn--compact {
  width: auto;
  justify-self: center;
  padding: 0.6rem 1.4rem;
}

.btn--compact {
  width: auto;
  padding: 0.55rem 1.2rem;
}

.btn--inline {
  justify-self: flex-start;
}

.form--narrow {
  max-width: 635px;
}

.form--tight {
  max-width: 360px;
}

.form--narrow .btn {
  width: auto;
}

.btn-primary {
  background: linear-gradient(120deg, var(--neon-cyan), var(--neon-mint));
  color: var(--ink);
  box-shadow: 0 0 30px rgba(68, 255, 180, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(68, 255, 180, 0.6);
}

.btn-secondary {
  background: rgba(6, 12, 24, 0.65);
  border-color: var(--panel-border-strong);
  color: var(--text-primary);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-success {
  background: linear-gradient(120deg, #44ffb4, #67f8ff);
  color: var(--ink);
}

.btn-danger {
  background: linear-gradient(120deg, #ff6b6b, #ffb347);
  color: var(--ink);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(6, 12, 24, 0.65);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert--narrow {
  max-width: 280px;
}

.alert--wide {
  max-width: 660px;
}

.alert--wait {
  max-width: 360px;
}
.alert-success {
  border-color: rgba(68, 255, 180, 0.45);
  color: rgba(191, 255, 227, 0.95);
}

.alert-danger {
  border-color: rgba(255, 107, 107, 0.4);
  color: rgba(255, 199, 199, 0.95);
}

.alert-warning {
  border-color: rgba(255, 179, 71, 0.45);
  color: rgba(255, 224, 178, 0.95);
}

.alert-info {
  border-color: rgba(103, 248, 255, 0.35);
  color: rgba(191, 245, 255, 0.95);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.text-light {
  color: var(--text-primary);
}

.password-requirements {
  color: #ffffff;
}

.bg-dark {
  background: rgba(6, 12, 24, 0.85);
}

.card {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: var(--panel);
}

.card.bg-dark {
  background: rgba(6, 12, 24, 0.85);
}

.card-header {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-body {
  display: grid;
  gap: 0.4rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.dashboard-body {
  display: flex;
  gap: 2rem;
  padding: 1.4rem 2.2rem 2.2rem;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-start;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.sidebar {
  width: 260px;
  padding: 2rem 1.6rem 1rem;
  background: linear-gradient(160deg, rgba(8, 18, 36, 0.95), rgba(6, 12, 24, 0.8));
  border: 1px solid var(--panel-border-strong);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(2, 6, 18, 0.55);
  position: sticky;
  top: 1rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: auto;
}

.sidebar img {
  display: block;
  margin: 0 auto 1rem;
}

.sidebar__brand {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}

.brand-lockup--sidebar .brand-mark {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  border-radius: 0.65rem;
}

.brand-lockup--sidebar .brand-name {
  font-size: 0.9rem;
}

.sidebar__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar__nav {
  display: grid;
  gap: 0.32rem;
}

.sidebar a,
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  color: rgba(220, 242, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(6, 12, 24, 0.55);
  border: 1px solid rgba(103, 248, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active,
.sidebar__link:hover,
.sidebar__link.active {
  background: rgba(103, 248, 255, 0.12);
  border-color: rgba(103, 248, 255, 0.35);
  color: var(--text-primary);
  transform: translateX(3px);
}

.sidebar__footer {
  margin-top: 0.7rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(103, 248, 255, 0.12);
}

.sidebar__link--logout {
  color: rgba(255, 199, 199, 0.95);
  border-color: rgba(255, 107, 107, 0.25);
}


.main {
  flex: 1;
  min-width: 0;
  padding: 1.2rem 2.2rem 2.2rem;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.65), rgba(6, 12, 24, 0.35));
  border: 1px solid rgba(103, 248, 255, 0.16);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(2, 6, 18, 0.55);
  display: block;
}

.main > * {
  min-width: 0;
}

.main h1 {
  margin: 0;
}

.main h2 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.1rem;
}

.section-title {
  margin-bottom: 2rem;
}

.main h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 0.95rem;
}

.info-card {
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(103, 248, 255, 0.18);
  border-radius: 22px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: inset 0 0 20px rgba(103, 248, 255, 0.06);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card--split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.info-card--split p {
  color: #ffffff;
}

.info-card--split strong {
  color: var(--neon-cyan);
}

.info-card__col {
  min-width: 0;
}

.info-card__col--map {
  display: grid;
  gap: 0.8rem;
}

.info-card--stack {
  display: grid;
  gap: 1rem;
}

.info-card--details p {
  color: #ffffff;
}

.info-card--details strong {
  color: var(--neon-cyan);
}

.info-card.form--narrow {
  margin-left: 0;
}

.info-card__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card__mono {
  margin: 1rem 0 0;
  color: #ffffff;
  font-family: var(--font-body);
  word-break: break-all;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.action-row form {
  margin: 0;
}

.rdns-prefix {
  margin: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rdns-warning-value {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rdns-prefix--value {
  margin-top: 0.4rem;
}

.rdns-hextets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rdns-hextets__fixed {
  color: var(--neon-cyan);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rdns-hextets__sep {
  color: var(--text-muted);
  font-size: 1rem;
}

.rdns-hextet-input {
  width: 5.2rem;
  text-transform: lowercase;
  text-align: center;
  font-family: var(--font-body);
}

.rdns-target-input {
  max-width: 257px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rdns-table__mono {
  font-family: var(--font-body);
  color: #ffffff;
  white-space: nowrap;
}

.rdns-delete-form {
  display: inline-block;
}

.rdns-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18ch;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rdns-status--active {
  color: #c9ffe9;
  background: rgba(68, 255, 180, 0.2);
  border: 1px solid rgba(68, 255, 180, 0.45);
}

.rdns-status--pending {
  color: #ffe2bf;
  background: rgba(255, 179, 71, 0.2);
  border: 1px solid rgba(255, 179, 71, 0.45);
}

.rdns-status--failed {
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.rdns-countdown {
  display: inline-block;
  min-width: 11ch;
  text-align: center;
  color: var(--neon-amber);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rdns-error {
  margin-top: 0.35rem;
  color: #ffd3d3;
  font-size: 0.76rem;
  line-height: 1.35;
}

.rdns-table th:nth-child(4),
.rdns-table td:nth-child(4) {
  width: 11.5ch;
  min-width: 11.5ch;
  white-space: nowrap;
}

.rdns-table th:nth-child(3),
.rdns-table td:nth-child(3) {
  width: 20ch;
  min-width: 20ch;
}

.bgp-prefixes-panel {
  margin-top: 0.35rem;
}

.bgp-prefixes-panel[hidden] {
  display: none !important;
}

.bgp-prefixes-table {
  table-layout: fixed;
}

.bgp-prefixes-table th:nth-child(1),
.bgp-prefixes-table td:nth-child(1) {
  width: 22ch;
  min-width: 22ch;
}

.bgp-prefixes-table th:nth-child(2),
.bgp-prefixes-table td:nth-child(2) {
  width: 10ch;
  min-width: 10ch;
  white-space: nowrap;
}

.bgp-prefixes-table th:nth-child(3),
.bgp-prefixes-table td:nth-child(3) {
  width: 8ch;
  min-width: 8ch;
  white-space: nowrap;
  text-align: center;
}

.bgp-prefixes-table th:nth-child(4),
.bgp-prefixes-table td:nth-child(4) {
  width: 13ch;
  min-width: 13ch;
  white-space: nowrap;
}

.bgp-prefixes-table td {
  overflow-wrap: anywhere;
}


.bgp-communities-panel {
  margin-top: 0.35rem;
}

.bgp-communities-panel[hidden] {
  display: none !important;
}

.bgp-communities-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.bgp-communities-head h3 {
  margin: 0;
}

.bgp-communities-pop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9ffe9;
  border: 1px solid rgba(68, 255, 180, 0.45);
  background: rgba(68, 255, 180, 0.16);
  animation: bgp-pill-pulse 1.8s ease-in-out infinite;
}

.bgp-communities-table {
  table-layout: fixed;
}

.bgp-communities-table th:nth-child(1),
.bgp-communities-table td:nth-child(1) {
  width: 14ch;
  min-width: 14ch;
  white-space: nowrap;
}

.bgp-communities-table th:nth-child(2),
.bgp-communities-table td:nth-child(2) {
  width: auto;
}

.bgp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2ch;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  animation: bgp-pill-pulse 1.8s ease-in-out infinite;
}

.bgp-pill--ok {
  color: #c9ffe9;
  background: rgba(68, 255, 180, 0.2);
  border-color: rgba(68, 255, 180, 0.5);
  box-shadow: 0 0 0 0 rgba(68, 255, 180, 0.35);
}

.bgp-pill--bad {
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.32);
}

@keyframes bgp-pill-pulse {
  0% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.95;
  }
  50% {
    transform: translateZ(0) scale(1.03);
    box-shadow: 0 0 0 5px transparent;
    opacity: 1;
  }
  100% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 0 0 0 transparent;
    opacity: 0.95;
  }
}

table,
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

table thead,
.table thead {
  background: rgba(8, 16, 32, 0.9);
}

table th,
.table th,
table td,
.table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(103, 248, 255, 0.12);
  text-align: left;
  color: var(--text-primary);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
  background: rgba(8, 16, 32, 0.6);
}

.table .btn,
table .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.62rem;
}

pre {
  background: rgba(5, 8, 18, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.75rem;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer {
  margin-top: 2.5rem;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border-top: 1px solid rgba(103, 248, 255, 0.2);
  background: rgba(5, 6, 11, 0.8);
  position: relative;
  z-index: 1;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2.6rem 1.8rem;
  border-radius: 26px;
  border: 1px solid rgba(103, 248, 255, 0.2);
  background: radial-gradient(
      circle at 10% 20%,
      rgba(103, 248, 255, 0.2),
      transparent 50%
    ),
    rgba(6, 12, 24, 0.78);
  box-shadow: inset 0 0 30px rgba(103, 248, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.site-footer__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 0 24px rgba(103, 248, 255, 0.4);
}

.site-footer__brand h2 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.site-footer__brand p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.site-footer__grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__grid h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
}

.site-footer__grid p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.site-footer__grid {
  color: #ffffff;
}

.site-footer__grid p:last-child {
  margin-bottom: 0;
}

.site-footer__grid a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.site-footer__accent {
  color: #ffffff;
  font-weight: 600;
}

.site-footer__grid a:hover {
  color: var(--neon-mint);
}

.site-footer__grid strong {
  color: rgba(227, 246, 255, 0.85);
}

.site-footer__legal {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(103, 248, 255, 0.6),
    0 0 28px rgba(103, 248, 255, 0.35);
  animation: neon-shimmer 3.2s ease-in-out infinite;
}

.dashboard-footer {
  margin-top: auto;
}

.auth-body footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

.lg-pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}

.lg-pop-select {
  margin: 0.8rem 0 1.4rem;
  display: inline-block;
}

.lg-pop-dropdown {
  width: fit-content;
  border-radius: 16px;
  border: 1px solid rgba(103, 248, 255, 0.28);
  background: linear-gradient(
      135deg,
      rgba(6, 12, 24, 0.95),
      rgba(10, 24, 40, 0.75)
    );
  box-shadow: inset 0 0 18px rgba(103, 248, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.lg-pop-dropdown[open] {
  border-color: rgba(255, 179, 71, 0.8);
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.3);
}

.lg-pop-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.lg-pop-summary::-webkit-details-marker {
  display: none;
}

.lg-pop-summary__label {
  color: var(--text-muted);
}

.lg-pop-summary__value {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  flex: 1;
}

.lg-pop-summary__chevron {
  font-size: 0.9rem;
  color: var(--neon-amber);
  transition: transform 0.2s ease;
}

.lg-pop-dropdown[open] .lg-pop-summary__chevron {
  transform: rotate(180deg);
}

.lg-pop-options {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(103, 248, 255, 0.2);
  background: rgba(6, 12, 24, 0.9);
  max-height: 260px;
  overflow: auto;
  min-width: 100%;
}

.lg-pop-option {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(103, 248, 255, 0.18);
  background: rgba(5, 9, 18, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lg-pop-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lg-pop-option:hover,
.lg-pop-option:has(input:checked) {
  border-color: rgba(255, 179, 71, 0.7);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.25);
  transform: translateY(-1px);
}

.lg-pop-option__name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lg-pop-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(103, 248, 255, 0.2);
  background: linear-gradient(
      135deg,
      rgba(6, 12, 24, 0.95),
      rgba(10, 24, 40, 0.65)
    );
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  overflow: hidden;
}

.lg-pop-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(103, 248, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 179, 71, 0.35),
      transparent 55%
    );
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
  z-index: 0;
  animation: lg-pulse 3.2s ease-in-out infinite;
}

.lg-pop-card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(103, 248, 255, 0.15),
    rgba(255, 179, 71, 0.08),
    rgba(103, 248, 255, 0.15)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.lg-pop-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lg-pop-card__name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.lg-pop-card--active,
.lg-pop-card:has(input:checked) {
  border-color: rgba(255, 179, 71, 0.8);
  box-shadow: 0 0 28px rgba(255, 179, 71, 0.35);
  transform: translateY(-2px);
}

.lg-pop-card--active::before,
.lg-pop-card:has(input:checked)::before,
.lg-pop-card:hover::before {
  opacity: 1;
}

.lg-pop-card--active .lg-pop-card__glow,
.lg-pop-card:has(input:checked) .lg-pop-card__glow,
.lg-pop-card:hover .lg-pop-card__glow {
  opacity: 1;
}

.lg-flag {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(103, 248, 255, 0.3);
}

.lg-pop-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--neon-mint);
  box-shadow: 0 0 12px rgba(68, 255, 180, 0.8);
  position: relative;
  z-index: 1;
}

.lg-form {
  display: grid;
  gap: 1rem;
}

.lg-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.lg-target {
  width: 100%;
}

.lg-target-group {
  width: 100%;
  max-width: 26ch;
  justify-self: start;
}

.lg-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(6, 12, 24, 0.5);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.lg-tool input {
  accent-color: var(--neon-amber);
}

.lg-output pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  background: rgba(5, 9, 18, 0.85);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(103, 248, 255, 0.15);
}

.lg-version {
  margin-left: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-amber);
}

@keyframes lg-pulse {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes neon-shimmer {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes nav-scan {
  0% {
    transform: translate(-45%);
  }
  100% {
    transform: translate(45%);
  }
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  padding: calc(1rem + env(safe-area-inset-top)) 1.5rem 1rem;
  display: block;
}

.navbar--mobile {
  display: none !important;
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 11, 0.85);
  border-bottom: 1px solid rgba(103, 248, 255, 0.2);
  backdrop-filter: blur(18px);
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(103, 248, 255, 0.9),
    rgba(68, 255, 180, 0.85),
    transparent
  );
  opacity: 0.8;
  animation: nav-scan 6s linear infinite;
}

.navbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 24px rgba(103, 248, 255, 0.45);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}


.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(103, 248, 255, 0.35);
  background: rgba(6, 12, 24, 0.8);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(103, 248, 255, 0.25);
}

.navbar__toggle-line {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mint));
  border-radius: 999px;
  display: block;
}

.navbar__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  transition: color 0.25s ease;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: var(--text-primary);
}

.navbar__links a:hover::after,
.navbar__links a.is-active::after {
  transform: scaleX(1);
}

.navbar__menu-spacer {
  height: 1rem;
  pointer-events: none;
}

.navbar__cta {
  padding: 0.75rem 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  border-radius: 999px;
  border: 1px solid rgba(103, 248, 255, 0.35);
  background: rgba(6, 12, 24, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.social-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  align-items: center;
}

.social-auth {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.social-auth__title {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.social-label {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.social-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 1rem;
  align-items: start;
  justify-items: center;
}

.social-auth__item {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(103, 248, 255, 0.35));
}

.social-icon--auth {
  width: 44px;
  height: 44px;
}

.social-icon--circle {
  border-radius: 50%;
  background: rgba(5, 8, 18, 0.75);
  border: 1px solid var(--panel-border);
  padding: 6px;
}

.captcha-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 8px;
  background: rgba(6, 12, 24, 0.75);
}
.captcha-wrap > div,
.captcha-wrap iframe {
  border-radius: 14px;
  overflow: hidden;
}

.captcha-wrap .g-recaptcha {
  border-radius: 14px;
}

.field-status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 164, 185, 0.6);
  box-shadow: 0 0 8px rgba(148, 164, 185, 0.4);
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-status--valid {
  background: var(--success);
  box-shadow: 0 0 10px rgba(68, 255, 180, 0.7),
    0 0 18px rgba(68, 255, 180, 0.4);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.field-status--error {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.75),
    0 0 18px rgba(255, 107, 107, 0.45);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.field-label .field-status {
  margin-left: 0;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field .form-control {
  padding-right: 4.2rem;
}

.password-toggle {
  position: absolute;
  top: 0.15rem;
  right: -0.4rem;
  bottom: 0.15rem;
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.password-toggle:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(103, 248, 255, 0.35);
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.forgot-link,
.back-link {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  display: inline-block;
  margin-top: 0.4rem;
}

#map {
  height: 300px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  margin-bottom: 1rem;
}

.wiki-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.wiki-card {
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid var(--neon-amber, #ffb347);
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  box-shadow: inset 0 0 20px rgba(255, 179, 71, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.wiki-card__title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-amber, #ffb347);
}

.wiki-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-card__pre {
  margin: 0;
  padding: 1rem;
  background: rgba(5, 9, 18, 0.9);
  border: 1px solid rgba(103, 248, 255, 0.18);
  border-radius: 16px;
  color: rgba(199, 247, 255, 0.9);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-card__pre code {
  font-family: 'Space Grotesk', monospace;
  white-space: inherit;
}

@media (max-width: 768px) {
  .navbar {
    display: block !important;
  }

  .navbar--mobile {
    display: block !important;
  }

  .navbar__inner {
    align-items: center;
  }

  .navbar__links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(103, 248, 255, 0.25);
    background: rgba(6, 12, 24, 0.95);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }

  .navbar--open .navbar__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar__links a {
    font-size: 0.82rem;
  }

  .navbar__menu-spacer {
    height: 1.2rem;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .sidebar-desktop {
    display: none;
  }

  .dashboard-body {
    display: block;
    gap: 0;
    padding: 0 0.4rem 2rem;
  }

  .info-card--split {
    grid-template-columns: 1fr;
  }

  .main {
    margin-top: 0;
    padding: 0 0.4rem 1.8rem;
  }

  .alert,
  .card,
  .info-card,
  .table-wrap,
  pre {
    min-width: 0;
  }

  .dashboard-content {
    margin-top: 0;
    padding-top: calc(5.5rem + env(safe-area-inset-top));
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bgp-prefixes-table {
    min-width: 540px;
  }

  .bgp-prefixes-table th:nth-child(1),
  .bgp-prefixes-table td:nth-child(1) {
    width: 19ch;
    min-width: 19ch;
  }

  .bgp-prefixes-table th,
  .bgp-prefixes-table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.8rem;
  }


  .bgp-communities-table {
    min-width: 480px;
  }

  .bgp-communities-table th,
  .bgp-communities-table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.8rem;
  }

  .rdns-table__mono,
  .rdns-status,
  .rdns-countdown,
  .table .btn,
  table .btn {
    white-space: normal;
    min-width: 0;
  }

  .wiki-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wiki-card {
    padding: 1rem 1.1rem;
  }

  .wiki-card__title {
    font-size: 0.9rem;
  }

  .wiki-card__pre {
    font-size: 0.72rem;
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  .auth-body {
    padding-left: 5%;
    padding-right: 5%;
  }

  .auth-body .container {
    width: 100%;
  }

  .login-container,
  .forgot-container {
    justify-items: stretch;
    padding-left: 5%;
    padding-right: 5%;
  }

  .login-container form,
  .forgot-container form {
    width: 100%;
    justify-self: stretch;
  }

  .lg-pop-select {
    display: block;
  }

  .lg-pop-dropdown {
    width: 100%;
  }

  .lg-pop-summary {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .lg-pop-summary__value {
    flex: 1 1 100%;
  }

  .lg-target {
    width: 100%;
  }

  .lg-target-group {
    max-width: 100%;
  }

  .lg-output {
    margin-left: -0.4rem;
    margin-right: -0.4rem;
    border-radius: 20px;
  }

  .lg-output pre {
    font-size: 0.85rem;
    padding: 0.9rem;
  }

  .rdns-hextets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.45rem;
  }

  .rdns-hextets__fixed {
    width: 100%;
    grid-column: 1 / -1;
  }

  .rdns-hextets__sep {
    display: none;
  }

  .rdns-hextet-input {
    width: 100%;
    min-width: 0;
  }

  .rdns-target-input {
    max-width: 100%;
  }

  .alert--narrow .rdns-warning-value {
    font-size: 80%;
  }
}
