* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
  color: white;
  background: #061420;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, .35), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(0, 100, 255, .35), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(0, 255, 170, .25), transparent 35%),
    linear-gradient(135deg, #05111f, #073b5d, #03121d);
  z-index: -1;
}

.app {
  width: min(960px, 94vw);
  margin: 0 auto;
  padding: 40px 0;
}

.card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 28px;
}

.hidden {
  display: none;
}

.logo {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo.small {
  font-size: 30px;
}

.muted {
  color: rgba(255,255,255,.7);
}

input {
  width: 100%;
  margin: 10px 0;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.22);
  color: white;
  outline: none;
  font-size: 16px;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 8px 6px 8px 0;
  color: #022;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #70ffff, #38a7ff);
}

button.secondary {
  background: rgba(255,255,255,.18);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
}

button.danger {
  background: rgba(255, 70, 90, .9);
  color: white;
}

.smallbtn {
  padding: 10px 14px;
}

.msg {
  margin-top: 12px;
  color: #ffe0e0;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.traffic {
  margin: 26px 0;
  padding: 18px;
  background: rgba(0,0,0,.22);
  border-radius: 20px;
}

.trafficTop {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bar {
  height: 16px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  overflow: hidden;
}

#barFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #76ffff, #42ff9e);
}

.subbox {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.11);
}

.subrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.actions {
  margin: 20px 0;
}

.key {
  margin: 12px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.16);
}

.keyTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.key code {
  display: block;
  margin-top: 10px;
  padding: 12px;
  white-space: nowrap;
  overflow-x: auto;
  background: rgba(0,0,0,.35);
  border-radius: 12px;
  color: #bff;
}

.nlflag {
  display: inline-block;
  width: 34px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.55);
  vertical-align: -3px;
  background: linear-gradient(
    to bottom,
    #ae1c28 0 33.33%,
    #ffffff 33.33% 66.66%,
    #21468b 66.66% 100%
  );
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
