* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0e14;
  --bg2: #121820;
  --bg3: #1a2430;
  --bg4: #243040;
  --bd: #304050;
  --bd2: #405060;
  --tx: #fff;
  --tx2: #d0e0f0;
  --tx3: #90a8c0;

  --ac: #ff1493; /* Pink */
  --p: #c080ff; /* Purple */
  --g: #00ff90; /* Green */
  --r: #ff4060; /* Red */
  --y: #ffc000; /* Yellow */
  --o: #ff9000; /* Orange */

  --text-main: var(--tx);
  --text-muted: var(--tx3);
  --pink: var(--ac);
  --purple: var(--p);
  --pink-glow: rgba(255, 20, 147, 0.4);
  --purple-glow: rgba(192, 128, 255, 0.4);

  /* Aliases used throughout the CSS */
  --c: #f472b6;
  --txt: #f0f2f5;
  --txt2: #d0dae8;
  --txt3: #98a8bc;
  --pink-light: #f9a8d4;
  --r2: 8px;
  --glass2: rgba(15, 17, 22, 0.92);
  --glass: rgba(12, 14, 18, 0.95);
  --brd: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --cyan: #38bdf8;
  --green: #4ade80;
  --orange: #fb923c;
}
html,
body {
  height: 100%;
  overflow: hidden;
  font:
    12px/1.5 -apple-system,
    "SF Pro Display",
    "Segoe UI",
    system-ui,
    sans-serif;
  color: #e4e6ea;
  background: #111622;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  letter-spacing: 0.01em;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 4px;
  box-shadow: 0 0 5px var(--pink-glow);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ac);
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 6px;
  gap: 6px;
}

/* TOPBAR NAV — SHARP + WHITE GLOW */
.topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  background: linear-gradient(180deg, #191c24, #14161e);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  flex-shrink: 0;
  padding: 0 14px;
  animation: slideDown 0.4s ease;
  backdrop-filter: none;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.4);
}
.topbar:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.12),
    0 3px 14px rgba(0, 0, 0, 0.45);
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  flex-shrink: 0;
}
.top-logo .icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.15);
  animation: none;
}
.top-logo span {
  font-size: 15px;
  font-weight: 800;
  color: #f472b6;
  -webkit-text-fill-color: unset;
  background: none;
  text-shadow: none;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  justify-content: center;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.nav-btn:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
.nav-btn:active {
  transform: scale(0.96);
  transition: all 0.1s;
}
.nav-btn.active {
  background: transparent;
  color: #f9a8d4;
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.1);
  font-weight: 800;
  text-shadow: none;
  animation: none;
}
.nav-btn .ic {
  font-size: 13px;
}
.nav-btn .num {
  margin-left: 2px;
  background: #f472b6;
  color: #fff;
  border: none;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  min-width: 14px;
  text-align: center;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.top-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.15s;
}
.top-chip:hover {
  background: rgba(255, 255, 255, 0.07);
}
.top-chip b {
  color: #eef0f2;
  font-weight: 700;
}
.top-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g);
  box-shadow:
    0 0 10px var(--g),
    0 0 20px var(--g);
}
.top-dot.off {
  background: var(--r);
  box-shadow: 0 0 10px var(--r);
}

/* MAIN — CLEAN */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.main:hover {
  border-color: transparent;
}

/* METRICS - 8 BOXES IN 1 ROW */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
  backdrop-filter: blur(15px);
}
.metric-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
}
.metric-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: none;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
}
.metric-card .ic {
  font-size: 12px;
}
.metric-card .val {
  font-weight: 700;
  color: #e8eaed;
  font-size: 12px;
  text-shadow: none;
  margin-left: auto;
}
.metric-card .lbl {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.3px;
}
.metric-card.glow {
  border-color: rgba(244, 114, 182, 0.25);
  box-shadow: 0 0 4px rgba(244, 114, 182, 0.08);
  background: rgba(244, 114, 182, 0.04);
}
.metric-card.glow .val {
  color: #f9a8d4;
  text-shadow: none;
}

.content {
  flex: 1;
  overflow: hidden;
  padding: 0px;
}
.tab {
  display: none;
}
.tab.active {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
  }
  50% {
    box-shadow:
      0 0 35px rgba(255, 42, 133, 0.5),
      0 0 50px rgba(168, 85, 247, 0.3);
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 42, 133, 0.6);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes borderGlow {
  0%,
  100% {
    border-color: var(--bd);
  }
  50% {
    border-color: var(--ac);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* CARDS — CLEAN + WHITE GLOW */
.card {
  background: #14161e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: none;
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 3px 14px rgba(0, 0, 0, 0.4);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  flex-shrink: 0;
  gap: 10px;
}
.card-title {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  color: #eef0f3;
  letter-spacing: 0.4px;
  text-shadow: none;
}
.card-title .ic {
  width: 24px;
  height: 24px;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: none;
}
.card-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FORMS */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 9px;
  font-weight: 700;
  color: #b0b8c4;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.4px;
}
.form-group .hint {
  font-size: 9px;
  color: var(--txt3);
  font-style: italic;
  text-align: center;
}
input,
textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 8px 10px;
  color: #f0f2f5;
  font-size: 12px;
  outline: none;
  transition: all 0.15s;
  backdrop-filter: none;
  height: auto;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
  text-align: center;
}
input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.05);
}
input:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
textarea {
  text-align: left;
}
select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #f0f2f5;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: none;
  outline: none;
  height: auto;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
  text-align: center;
}
select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.05);
}
select:focus,
select:active {
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1) !important;
}
select option {
  background: #14161e;
  color: #eef0f2;
  padding: 4px;
}
/* DATALIST — EDITABLE COMBOBOX STYLING */
input[list],
input.combo-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #f0f2f5;
  font-size: 12px;
  padding: 8px 20px 8px 10px;
  transition: all 0.15s;
  height: auto;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
  text-align: center;
}
input[list]:hover,
input.combo-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
input[list]:focus,
input.combo-input:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}
input[list]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 30px;
  height: 100%;
  cursor: pointer;
}
.filter-group .combo-input {
  min-width: 70px;
  font-size: 10px;
  padding: 2px 18px 2px 4px;
  height: 22px;
}

/* SUFFIX INPUT - CLEAN WHITE GLOW */
.suffix-group {
  margin-bottom: 4px;
}
.suffix-group label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: none;
  text-align: center;
  display: block;
}
#s-suffix {
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: rgba(10, 16, 28, 0.85) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1) !important;
  transition: all 0.15s !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
}
#s-suffix:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.08) !important;
}
#s-suffix:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.05) !important;
  animation: none !important;
}
#s-suffix::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}
@keyframes glowPulseInput {
  0%,
  100% {
    box-shadow:
      0 0 25px rgba(255, 42, 133, 0.25),
      inset 0 0 20px rgba(255, 42, 133, 0.05);
  }
  50% {
    box-shadow:
      0 0 45px rgba(168, 85, 247, 0.4),
      inset 0 0 30px rgba(255, 42, 133, 0.08);
  }
}
textarea {
  resize: none;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  height: auto;
}

/* CYBER-SELECT — custom dropdown with white glow */
.cyber-select {
  position: relative;
  width: 100%;
}
.cyber-select > input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #eef0f2;
  font-size: 11px;
  padding: 7px 24px 7px 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s;
  text-align: center;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23f472b6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.cyber-select > input:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}
.cyber-select > input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.05);
}
.cyber-select > input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.cyber-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #181a26;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 500;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 4px rgba(255, 255, 255, 0.08);
  padding: 3px;
}
.cyber-select.open .cyber-dropdown {
  display: block;
}
.cyber-option {
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
  text-align: center;
  justify-content: center;
}
.cyber-option:hover {
  background: rgba(244, 114, 182, 0.08);
  color: #fff;
}
.cyber-option.selected {
  background: rgba(244, 114, 182, 0.12);
  color: #f9a8d4;
  font-weight: 600;
}
.cyber-option .opt-icon {
  font-size: 12px;
  flex-shrink: 0;
}
.cyber-option .opt-count {
  margin-left: auto;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

/* BUTTONS — CLEAN OUTLINE */
.btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 7px 12px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #d8dade;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.btn-primary {
  color: #f9a8d4;
  border: 1px solid rgba(244, 114, 182, 0.4);
  background: transparent;
  box-shadow: 0 0 4px rgba(244, 114, 182, 0.1);
}
.btn-primary:hover {
  border-color: rgba(244, 114, 182, 0.6);
  color: #fbc7e0;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.18);
  transform: translateY(-1px);
  background: rgba(244, 114, 182, 0.06);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: #d5d7db;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}
.btn-secondary:active {
  transform: scale(0.96);
}
.btn-danger {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
  background: transparent;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.12);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* SPEED — CLEAN */
.speed-row {
  display: flex;
  gap: 4px;
}
.speed-btn {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.speed-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  transform: none;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
.speed-btn:active {
  transform: scale(0.95);
}
.speed-btn.active {
  border-color: rgba(244, 114, 182, 0.4);
  color: #f9a8d4;
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.12);
  background: transparent;
}
.speed-btn[data-s="10"].active {
  border-color: rgba(0, 255, 144, 0.5);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(0, 255, 144, 0.2);
  background: transparent;
}
.speed-btn[data-s="30"].active {
  border-color: rgba(236, 72, 153, 0.5);
  color: #f472b6;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.2);
  background: transparent;
}
.speed-btn[data-s="50"].active {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
  background: transparent;
}
.speed-btn[data-s="100"].active {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.2);
  background: transparent;
}
.speed-btn .sub {
  font-size: 7px;
  opacity: 0.8;
  font-weight: 400;
}

/* PROGRESS — PANEL V27 STYLE */
.progress-box {
  background: #14161e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 6px;
  display: none;
  flex-shrink: 0;
  backdrop-filter: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
}
.progress-box.show {
  display: block;
  animation: fadeIn 0.3s;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-pct {
  font-size: 20px;
  font-weight: 800;
  color: var(--c);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 0 10px var(--pink-glow);
  transition: width 0.3s;
  border-radius: 4px;
}
@keyframes progressShimmer {
  0% {
    background-position: 300% 0;
  }
  100% {
    background-position: -300% 0;
  }
}
.progress-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.progress-stat {
  text-align: center;
  padding: 6px 4px;
  background: transparent;
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: none;
  transition: all 0.3s;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.progress-stat:hover {
  border-color: var(--ac);
  transform: translateY(-2px);
}
.progress-stat .n {
  font-size: 22px;
  font-weight: 800;
  color: var(--c);
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.progress-stat .l {
  font-size: 11px;
  color: var(--txt3);
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   BẢNG DOMAIN CHUYÊN NGHIỆP - ĐẦY ĐỦ CỘT CHỈ SỐ VÀ BỘ LỌC
═══════════════════════════════════════════════════════════════════ */

/* BỘ LỌC DOMAIN — GLASS */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.03);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.filter-bar .search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.filter-bar .search-box input {
  width: 100%;
  padding-left: 32px;
  font-size: 11px;
}
.filter-bar .search-box::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
}
.filter-group {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-group label {
  font-size: 10px;
  color: #b0b4bc;
  white-space: nowrap;
  font-weight: 600;
}
.filter-group select {
  padding: 6px 8px;
  font-size: 10px;
  min-width: 85px;
}
.filter-count {
  font-size: 11px;
  color: var(--txt2);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.filter-count b {
  color: var(--pink);
  font-size: 11px;
  font-weight: 600;
}

/* BẢNG CHÍNH — GLASS */
.table-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
th {
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 6px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  color: #e0e2e6;
  font-weight: 800;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
th:hover {
  color: var(--pink);
  background: rgba(255, 42, 133, 0.06);
}
th.sorted {
  color: var(--pink);
  border-bottom-color: var(--pink);
}
th.sorted::after {
  content: " ▼";
  font-size: 9px;
  color: var(--pink);
}
th.sorted.asc::after {
  content: " ▲";
}
th:not(.sorted)::after {
  content: " ⇅";
  font-size: 8px;
  color: var(--txt3);
  opacity: 0.4;
}
td {
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  font-size: 11px;
}
tr {
  cursor: pointer;
  transition: background 0.15s;
}
tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
tr.hot-row td {
  background: rgba(255, 20, 118, 0.1);
}
tr.available-row td {
  background: rgba(255, 20, 118, 0.05);
}
tr.selected td {
  background: rgba(255, 20, 118, 0.2) !important;
  outline: 1px solid var(--pink);
}

/* TAGS */
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.tag-ok {
  background: rgba(255, 20, 118, 0.1);
  color: var(--pink-light);
  border: 1px solid rgba(255, 20, 118, 0.4);
}
.tag-err {
  background: rgba(255, 20, 118, 0.05);
  color: var(--txt3);
  border: 1px solid rgba(255, 20, 118, 0.2);
}
.tag-warn {
  background: rgba(255, 20, 118, 0.15);
  color: var(--txt);
  border: 1px solid rgba(255, 20, 118, 0.3);
}

/* ĐIỂM SEO */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}
.score-hot {
  background: linear-gradient(135deg, var(--pink), #ff66a3);
  color: #fff;
  box-shadow: 0 0 10px var(--pink-glow);
  border: none;
}
.score-good {
  background: rgba(255, 20, 118, 0.2);
  color: #fff;
  border: 1px solid var(--pink-glow);
}
.score-mid {
  background: rgba(255, 20, 118, 0.05);
  color: var(--txt2);
  border: 1px solid rgba(255, 20, 118, 0.2);
}
.score-low {
  background: rgba(0, 0, 0, 0.5);
  color: var(--txt3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* DOMAIN NAME */
.domain-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.domain-name {
  font-weight: 600;
  color: var(--c);
  font-size: 11px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.domain-name:hover {
  text-decoration: underline;
  cursor: pointer;
  color: var(--ac);
}
.domain-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.domain-meta span {
  font-size: 10px;
  color: var(--txt3);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* CỘT CHỈ SỐ */
.num-cell {
  text-align: center;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 11px;
}
.num-cell.high {
  color: var(--g);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 144, 0.3);
}
.num-cell.mid {
  color: var(--y);
}
.num-cell.low {
  color: var(--txt3);
}

/* STT COLUMN */
.stt-cell {
  text-align: center;
  font-weight: 600;
  color: var(--txt3);
  font-size: 10px;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  min-width: 40px;
}

/* HÀNH ĐỘNG */
.action-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.action-btn {
  width: 30px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--txt2);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.action-btn:hover {
  background: transparent;
  color: var(--ac);
  border-color: var(--ac);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.25);
}

/* SUMMARY BOXES — 8 BOXES IN 1 ROW */
.summary-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 15px;
}
.summary-box {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: none;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.04);
}
.summary-box:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.3);
}
.summary-box .k {
  font-size: 11px;
  color: #b0b4bc;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.summary-box .v {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 15px currentColor;
}
.summary-box.green .v {
  color: var(--g);
}
.summary-box.pink .v {
  color: var(--ac);
}
.summary-box.orange .v {
  color: var(--y);
}
.summary-box.cyan .v {
  color: var(--c);
}
.summary-box.gold .v {
  color: var(--y);
}
.summary-box.purple .v {
  color: var(--p);
}

.ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  align-items: center;
  justify-content: center;
}
.ops-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r2);
  font-size: 11px;
  color: var(--txt2);
  backdrop-filter: none;
  transition: all 0.3s;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.ops-chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}
.ops-chip b {
  color: var(--c);
  font-size: 11px;
  font-weight: 700;
}
.ops-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* SPLIT — RESULTS LEFT (wider), CONFIG RIGHT */
.split {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: visible;
}
.split > .card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.split > .card .card-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CONFIG SECTION BLOCKS — SHARP + WHITE GLOW */
.cfg-section {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
.cfg-section:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
.cfg-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #b0b4bc;
}

/* SCAN RESULTS MINI TABLE */
.rt-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  padding: 6px 8px;
}
.rt-filter select,
.rt-filter input {
  padding: 4px 14px;
  font-size: 11px;
  border-radius: var(--r2);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--txt);
  backdrop-filter: none;
  height: 38px;
  transition: all 0.3s;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.rt-filter select:hover,
.rt-filter input:hover {
  border-color: var(--ac);
}
.rt-filter select:focus,
.rt-filter input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.2);
}
.rt-filter input {
  flex: 1;
  min-width: 150px;
}
.rt-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex-shrink: 0;
}
.rt-stat {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.04);
}
.rt-stat:hover {
  border-color: var(--ac);
  transform: translateY(-2px);
}
.rt-stat .n {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 0 5px var(--pink-glow);
}
.rt-stat .l {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.rt-table-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  min-height: 0;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
}
.rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
.rt-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 6px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  color: #e0e2e6;
  font-weight: 800;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.rt-table th:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.rt-table td {
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  font-size: 11px;
}
.rt-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.rt-table .dm {
  color: var(--c);
  font-weight: 600;
  text-align: left;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}

/* TIP — GLASS */
.tip {
  background: rgba(255, 42, 133, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r2);
  padding: 14px 18px;
  font-size: 11px;
  color: var(--txt2);
  line-height: 1.7;
  backdrop-filter: none;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
.tip b {
  color: var(--c);
}

/* LOG — GLASS */
.log-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  font-family:
    "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--g);
  backdrop-filter: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
}
.log-box .info {
  color: var(--c);
}
.log-box .warn {
  color: var(--y);
}
.log-box .err {
  color: var(--r);
}

/* FOOTER — GLASS */
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #14161e;
  font-size: 11px;
  color: var(--txt3);
  flex-shrink: 0;
  gap: 6px;
  animation: slideUp 0.4s ease 0.3s both;
  border-radius: 0 0 10px 10px;
  backdrop-filter: none;
}
.foot-brand {
  background: linear-gradient(135deg, var(--c), var(--g));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 11px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  animation: glowPulse 4s ease-in-out infinite;
}

/* SPLASH SCREEN — DARK GRAY */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0e14;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-logo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--ac), var(--c));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  box-shadow:
    0 0 60px rgba(255, 42, 133, 0.4),
    0 0 120px rgba(168, 85, 247, 0.2);
  animation: splashPulse 2s ease-in-out infinite;
}
.splash-title {
  font-size: 38px;
  font-weight: 900;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--c), var(--g));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.splash-sub {
  font-size: 10px;
  color: var(--txt2);
  margin-top: 12px;
  letter-spacing: 2px;
}
.splash-bar {
  width: 240px;
  height: 4px;
  background: var(--bg4);
  border-radius: 4px;
  margin-top: 28px;
  overflow: hidden;
  position: relative;
}
.splash-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ac), var(--c));
  border-radius: 4px;
  transition: width 0.3s ease;
}
.splash-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--c);
  border-right-color: var(--ac);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 24px;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.splash-status {
  font-size: 11px;
  color: var(--txt2);
  margin-top: 18px;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}
.splash-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--c);
  margin-top: 10px;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
.splash-ver {
  position: absolute;
  bottom: 24px;
  font-size: 10px;
  color: var(--txt3);
}
@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 50px rgba(255, 42, 133, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 80px rgba(255, 42, 133, 0.6);
  }
}

/* MODAL — GLASS */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-bg.show {
  display: flex;
}
.modal {
  background: #191c24;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  width: min(520px, 95%);
  max-height: 90vh;
  overflow: hidden;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(255, 255, 255, 0.08);
  animation: modalIn 0.25s;
  backdrop-filter: none;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* GATE LOGIN — CLEAN */
.gate-card {
  background: linear-gradient(180deg, #181a24, #12141c);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 16px;
  width: min(440px, 92%);
  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(244, 114, 182, 0.08);
  overflow: hidden;
  animation: none;
  backdrop-filter: none;
}
.gate-header {
  padding: 16px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 18px;
  color: #f0f0f2;
  text-shadow: none;
  background: rgba(0, 0, 0, 0.15);
}
.gate-body {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-icon-big {
  font-size: 48px;
  margin-bottom: 4px;
  line-height: 1;
}
.gate-h {
  font-size: 18px;
  font-weight: 800;
  color: #f0f0f2;
  margin-bottom: 4px;
  text-shadow: none;
}
.gate-p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 16px;
}
.gate-btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: transparent;
  color: #f9a8d4;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 4px rgba(244, 114, 182, 0.08);
}
.gate-btn-tg:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.15);
  border-color: rgba(244, 114, 182, 0.5);
  color: #fbc7e0;
  background: rgba(244, 114, 182, 0.04);
}
.gate-btn-tg:active {
  transform: translateY(0);
}
.gate-btn-tg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.gate-btn-tg svg {
  flex-shrink: 0;
}
.gate-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}
.gate-btn-alt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.gate-wait-spin {
  width: 55px;
  height: 55px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--c);
  border-right-color: var(--ac);
  border-radius: 50%;
  animation: spinGlow 1s linear infinite;
  margin: 0 auto 28px;
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.2);
}
@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
  }
  100% {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.4));
  }
}
.tg-user-chip {
  background: linear-gradient(
    135deg,
    rgba(255, 42, 133, 0.1),
    rgba(168, 85, 247, 0.08)
  ) !important;
  border-color: var(--ac) !important;
}
.tg-user-chip b {
  color: var(--c) !important;
}
.gate-step {
  display: none;
  flex-direction: column;
  align-items: center;
}
.gate-step.active {
  display: flex;
}
.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--txt2);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.06);
}
.modal-close:hover {
  background: transparent;
  border-color: var(--r);
  color: var(--r);
  box-shadow: 0 0 15px rgba(255, 64, 96, 0.25);
}
.modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

/* TOAST — GLASS */
.toast-wrap {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toast {
  background: var(--glass2);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 6px 16px;
  min-width: 260px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 42, 133, 0.08);
  backdrop-filter: blur(20px);
}
.toast-head {
  font-weight: 700;
  font-size: 10px;
  margin-bottom: 3px;
}
.toast-body {
  font-size: 10px;
  color: var(--txt2);
}

@media (max-width: 900px) {
  .top-nav {
    gap: 1px;
  }
  .nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--r2);
    color: var(--txt2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
  }
  .nav-btn span:not(.ic):not(.num) {
    display: none;
  }
  .metrics-bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--panel-border);
    flex-shrink: 0;
    backdrop-filter: blur(15px);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .filter-row {
    gap: 6px;
  }
  .summary-row {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 38px;
    padding: 0 6px;
  }
  .top-logo span {
    display: none;
  }
  .nav-btn span:not(.ic):not(.num) {
    display: none;
  }
  .nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--r2);
    color: var(--txt2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
  }
  .top-right {
    display: none;
  }
  .filter-row {
    flex-direction: column;
    gap: 6px;
  }
  .summary-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .metrics-bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--panel-border);
    flex-shrink: 0;
    backdrop-filter: blur(15px);
  }
}

/* Checkbox toggle btn — checked state (subtle highlight, NO fill) */
.btn-secondary:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaed;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════
   DEV-SPECIFIC ADDITIONS (not in production inline CSS)
   ═══════════════════════════════════════════════════════ */

/* Display Mode Bar */
.display-mode-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.dm-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--tx3);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.dm-btn:hover {
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--tx2);
}
.dm-btn.active {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--ac);
  background: rgba(0, 212, 255, 0.04);
}

/* Datalist dropdown cursor */
input[list] {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   CONFIG SECTION — alias for .cfg-section / .cfg-label
   HTML uses .config-section & .config-label
   ═══════════════════════════════════════════════════════ */
.config-section {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}
.config-section:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
.config-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #b0b4bc;
}

/* Result Status Bar */
.result-status-bar {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 10px;
  color: var(--tx3);
  justify-content: center;
  flex-wrap: wrap;
}
.result-status-bar span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.result-status-bar b {
  color: var(--tx2);
  font-weight: 700;
}

/* Filter Inline Groups */
.fi-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fi-label {
  font-size: 9px;
  font-weight: 700;
  color: #d0d8e4;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fi-chk {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

/* Form Control — generic input class used in HTML */
.form-control {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 8px 10px;
  color: #f0f2f5;
  font-size: 12px;
  outline: none;
  transition: all 0.15s;
  height: auto;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.05);
}
.form-control:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}

/* Config Card — full height, no scroll */
.config-card {
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.config-card .card-body {
  flex: 1;
  overflow-y: visible;
  overflow-x: hidden;
  min-height: 0;
}

/* Status chips — inline trong metrics-bar */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.status-chip b {
  color: #fff;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   🍎 macOS / iOS 26 GLASS THEME — Agent #0620
   Liquid glass, glow borders, neon accents, floating depth
═══════════════════════════════════════════════════════════════════ */

/* ── 0. FONT CHUẨN — SF Pro giống macOS ── */
html,
body,
input,
select,
textarea,
button,
.btn,
.form-control {
  font-family:
    -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui,
    sans-serif !important;
}

/* ── Ẩn mũi tên spinner trên input number ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* ── Ẩn scrollbar trên select + datalist ── */
select::-webkit-scrollbar,
datalist::-webkit-scrollbar {
  display: none !important;
}
select {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* ════════════════════════════════════════════════════════════
   🍎 macOS / iOS 26 — LIQUID GLASS THEME
   ════════════════════════════════════════════════════════════ */

/* ── 1. NỀN SÁNG HƠN — gradient depth ── */
html,
body {
  background: linear-gradient(
    170deg,
    #141824 0%,
    #0e1220 40%,
    #111826 100%
  ) !important;
  color: #f4f6fb !important;
}
.app {
  background: transparent !important;
}

/* ── 2. CARD — LIQUID GLASS với viền glow ── */
.card {
  background: rgba(20, 26, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.3) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 12px rgba(244, 114, 182, 0.04) !important;
  border-radius: 14px !important;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.1) inset,
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(244, 114, 182, 0.06) !important;
}
.card-body {
  background: transparent !important;
}
.config-section,
.cfg-section {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  padding: 10px 12px !important;
}
.config-section:hover,
.cfg-section:hover {
  border-color: rgba(244, 114, 182, 0.15) !important;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.04) !important;
}

/* ── 3. TEXT SIÊU SÁNG ── */
.config-label,
.cfg-label {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.15) !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.form-group label {
  color: #e0e8f4 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}
.card-title {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.12) !important;
  text-align: center !important;
  width: 100% !important;
  justify-content: center !important;
}
.card-title .ic {
  background: rgba(244, 114, 182, 0.12) !important;
  border: 1px solid rgba(244, 114, 182, 0.2) !important;
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.08) !important;
}
.suffix-group label {
  color: #f9a8d4 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.2) !important;
}
.fi-label {
  color: #e8f0ff !important;
  font-weight: 600 !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.08) !important;
}

/* ── 4. INPUTS — Glass + Glow border ── */
input,
select,
textarea,
.form-control,
input[list],
input.combo-input,
.cyber-select > input {
  background: rgba(12, 16, 28, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.04) inset !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
}
input:hover,
select:hover,
textarea:hover,
.form-control:hover,
input[list]:hover,
input.combo-input:hover,
.cyber-select > input:hover {
  border-color: rgba(244, 114, 182, 0.3) !important;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.06) !important;
}
input:focus,
select:focus,
textarea:focus,
.form-control:focus,
input[list]:focus,
input.combo-input:focus,
.cyber-select > input:focus {
  border-color: rgba(244, 114, 182, 0.5) !important;
  box-shadow:
    0 0 20px rgba(244, 114, 182, 0.1),
    0 0 0 2px rgba(244, 114, 182, 0.08) !important;
  outline: none !important;
}
select option {
  background: #1a2234 !important;
  color: #fff !important;
  padding: 6px 10px !important;
  text-align: center !important;
}

/* ── 5. SUFFIX INPUT NỔI BẬT ── */
#s-suffix {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(10, 14, 24, 0.7) !important;
  border: 1.5px solid rgba(244, 114, 182, 0.3) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  box-shadow:
    0 0 16px rgba(244, 114, 182, 0.06),
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset !important;
}
#s-suffix:focus {
  border-color: rgba(244, 114, 182, 0.6) !important;
  box-shadow:
    0 0 24px rgba(244, 114, 182, 0.12),
    0 0 0 3px rgba(244, 114, 182, 0.06) !important;
}
#s-suffix::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}

/* ── 6. DROPDOWN POPUP — Glass frosted ── */
.cyber-dropdown {
  background: rgba(16, 20, 34, 0.95) !important;
  border: 1px solid rgba(244, 114, 182, 0.2) !important;
  border-radius: 12px !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(244, 114, 182, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  scrollbar-width: none !important;
}
.cyber-dropdown::-webkit-scrollbar {
  display: none !important;
}
.cyber-option {
  color: #e0e8f4 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}
.cyber-option:hover {
  background: rgba(244, 114, 182, 0.08) !important;
  color: #fff !important;
}
.cyber-option.selected {
  background: rgba(244, 114, 182, 0.12) !important;
  color: #f9a8d4 !important;
}

/* ── Scrollbar Slim ── */
.card-body::-webkit-scrollbar {
  width: 3px !important;
}
.card-body::-webkit-scrollbar-track {
  background: transparent !important;
}
.card-body::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.2) !important;
  border-radius: 3px !important;
}
.card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 114, 182, 0.35) !important;
}
.card-body {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(244, 114, 182, 0.15) transparent !important;
  scroll-behavior: smooth !important;
}
.filter-inline::-webkit-scrollbar {
  display: none !important;
}

/* ── Smooth Animations ── */
.tab.active {
  animation: fadeInSmooth 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
@keyframes fadeInSmooth {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 7. CARD HEAD — Glass bar ── */
.card-head {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 10px 16px !important;
  justify-content: center !important;
}

/* ── 8. TOPBAR — FLOATING GLASS + PINK ACCENT + HOVER GLOW ── */
.topbar {
  background: linear-gradient(
    180deg,
    rgba(24, 28, 40, 0.92),
    rgba(18, 22, 34, 0.92)
  ) !important;
  border: 1px solid rgba(244, 114, 182, 0.15) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
    0 6px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(244, 114, 182, 0.04) !important;
}
.topbar:hover {
  border-color: rgba(244, 114, 182, 0.25) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(244, 114, 182, 0.06) !important;
}
.top-logo span {
  color: #f9a8d4 !important;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.2) !important;
}
.nav-btn {
  color: rgba(255, 255, 255, 0.65) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 10px !important;
}
.nav-btn:hover {
  color: #fff !important;
  background: rgba(244, 114, 182, 0.06) !important;
  border-color: rgba(244, 114, 182, 0.2) !important;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.06) !important;
  transform: translateY(-1px) !important;
}
.nav-btn.active {
  color: #f9a8d4 !important;
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
  background: rgba(244, 114, 182, 0.06) !important;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.08) !important;
}

/* ── 9. FOOTER — GLASS + GLOW ── */
.foot {
  background: rgba(16, 20, 32, 0.9) !important;
  border-top: 1px solid rgba(244, 114, 182, 0.1) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow:
    0 -2px 16px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(244, 114, 182, 0.03) !important;
}

/* ── 10. GATE LOGIN — GLASS PINK ── */
.gate-card {
  background: linear-gradient(
    180deg,
    rgba(20, 24, 40, 0.96),
    rgba(14, 18, 30, 0.96)
  ) !important;
  border: 1px solid rgba(244, 114, 182, 0.3) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow:
    0 0 40px rgba(244, 114, 182, 0.08),
    0 0 80px rgba(244, 114, 182, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.5) !important;
  animation: gateGlowPink 3s ease-in-out infinite !important;
}
@keyframes gateGlowPink {
  0%,
  100% {
    box-shadow:
      0 0 40px rgba(244, 114, 182, 0.08),
      0 0 80px rgba(244, 114, 182, 0.04),
      0 24px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 50px rgba(244, 114, 182, 0.12),
      0 0 100px rgba(244, 114, 182, 0.06),
      0 24px 60px rgba(0, 0, 0, 0.5);
  }
}
.gate-header {
  background: rgba(244, 114, 182, 0.04) !important;
  border-bottom: 1px solid rgba(244, 114, 182, 0.12) !important;
  color: #f9a8d4 !important;
}
.gate-h {
  color: #ffffff !important;
}
.gate-p {
  color: rgba(255, 255, 255, 0.7) !important;
}
.gate-btn-tg {
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
  color: #f9a8d4 !important;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.08) !important;
  background: rgba(244, 114, 182, 0.04) !important;
  border-radius: 12px !important;
}
.gate-btn-tg:hover {
  border-color: rgba(244, 114, 182, 0.6) !important;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.15) !important;
  color: #fbc7e0 !important;
  background: rgba(244, 114, 182, 0.08) !important;
  transform: translateY(-2px) !important;
}

/* ── 11. TABLE HEADER — SÁNG TRẮNG ── */
th,
.rt-table th {
  background: rgba(22, 28, 44, 0.8) !important;
  color: #e8f0ff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  font-size: 11px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
th:hover,
.rt-table th:hover {
  color: #ffffff !important;
  background: rgba(30, 38, 58, 0.85) !important;
}
td {
  color: #e8f0ff !important;
  font-size: 11px !important;
}
tr:hover td {
  background: rgba(244, 114, 182, 0.03) !important;
}
.domain-name {
  color: #f9a8d4 !important;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.15) !important;
  font-weight: 600 !important;
}

/* ── 12. SPEED BUTTONS — MỖI NÚT 1 MÀU ── */
.speed-btn {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(6px) !important;
}
.speed-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
.speed-btn[data-s="10"] {
  border-color: rgba(74, 222, 128, 0.2) !important;
  color: rgba(74, 222, 128, 0.7) !important;
}
.speed-btn[data-s="10"]:hover {
  border-color: rgba(74, 222, 128, 0.4) !important;
  color: #4ade80 !important;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.1) !important;
}
.speed-btn[data-s="10"].active {
  border-color: rgba(74, 222, 128, 0.6) !important;
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.06) !important;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.15) !important;
}
.speed-btn[data-s="30"] {
  border-color: rgba(56, 189, 248, 0.2) !important;
  color: rgba(56, 189, 248, 0.7) !important;
}
.speed-btn[data-s="30"]:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.1) !important;
}
.speed-btn[data-s="30"].active {
  border-color: rgba(56, 189, 248, 0.6) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.06) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15) !important;
}
.speed-btn[data-s="50"] {
  border-color: rgba(251, 191, 36, 0.2) !important;
  color: rgba(251, 191, 36, 0.7) !important;
}
.speed-btn[data-s="50"]:hover {
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.1) !important;
}
.speed-btn[data-s="50"].active {
  border-color: rgba(251, 191, 36, 0.6) !important;
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.06) !important;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.15) !important;
}
.speed-btn[data-s="100"] {
  border-color: rgba(248, 113, 113, 0.2) !important;
  color: rgba(248, 113, 113, 0.7) !important;
}
.speed-btn[data-s="100"]:hover {
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #f87171 !important;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.1) !important;
}
.speed-btn[data-s="100"].active {
  border-color: rgba(248, 113, 113, 0.6) !important;
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.06) !important;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.15) !important;
}

/* ── 13. CONFIG TOGGLE — MỖI NÚT 1 MÀU KHI CHỌN ── */
.config-section label.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(4px) !important;
}
.config-section label.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-1px) !important;
}
.config-section label.btn-secondary:nth-child(1):has(input:checked) {
  border-color: rgba(74, 222, 128, 0.5) !important;
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.06) !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(2):has(input:checked) {
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.06) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(3):has(input:checked) {
  border-color: rgba(192, 128, 255, 0.5) !important;
  color: #c080ff !important;
  background: rgba(192, 128, 255, 0.06) !important;
  box-shadow: 0 0 12px rgba(192, 128, 255, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(4):has(input:checked) {
  border-color: rgba(251, 146, 60, 0.5) !important;
  color: #fb923c !important;
  background: rgba(251, 146, 60, 0.06) !important;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(5):has(input:checked) {
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.06) !important;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(6):has(input:checked) {
  border-color: rgba(45, 212, 191, 0.5) !important;
  color: #2dd4bf !important;
  background: rgba(45, 212, 191, 0.06) !important;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(7):has(input:checked) {
  border-color: rgba(250, 204, 21, 0.5) !important;
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.06) !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(8):has(input:checked) {
  border-color: rgba(103, 232, 249, 0.5) !important;
  color: #67e8f9 !important;
  background: rgba(103, 232, 249, 0.06) !important;
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(9):has(input:checked) {
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.06) !important;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.1) !important;
}
.config-section label.btn-secondary:nth-child(10):has(input:checked) {
  border-color: rgba(251, 113, 133, 0.5) !important;
  color: #fb7185 !important;
  background: rgba(251, 113, 133, 0.06) !important;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.1) !important;
}

/* ── 14. BTN TỔNG THỂ — Glass + SÁNG ── */
.btn {
  color: #e0e8f4 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 600 !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 10px !important;
}
.btn:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) !important;
}
.btn-primary {
  color: #f9a8d4 !important;
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.08) !important;
}
.btn-primary:hover {
  color: #fbc7e0 !important;
  border-color: rgba(244, 114, 182, 0.55) !important;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.15) !important;
  background: rgba(244, 114, 182, 0.06) !important;
}

/* ── 15. CONFIG SUFFIX BUTTONS MÀU SẮC ── */
.config-section .btn-secondary {
  border: 1px solid rgba(244, 114, 182, 0.15) !important;
  color: #e0eaf4 !important;
  background: rgba(244, 114, 182, 0.03) !important;
  font-weight: 600 !important;
}
.config-section .btn-secondary:hover {
  border-color: rgba(244, 114, 182, 0.35) !important;
  color: #fff !important;
  background: rgba(244, 114, 182, 0.06) !important;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.08) !important;
}

/* ── 16. METRICS BAR — CÂN ĐỐI, DÒNG ĐƠN, SÁNG ── */
.metrics-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 6px 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  background: rgba(16, 22, 36, 0.6) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.metrics-bar::-webkit-scrollbar {
  display: none !important;
}
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  min-width: 50px !important;
  flex-shrink: 0 !important;
  backdrop-filter: blur(4px) !important;
}
.metric-card .val {
  color: #f4f8ff !important;
  font-size: 13px !important;
}
.metric-card .lbl {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 8px !important;
}
.metric-card .ic {
  font-size: 11px !important;
}
.metric-card.glow {
  border-color: rgba(244, 114, 182, 0.25) !important;
  background: rgba(244, 114, 182, 0.04) !important;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.06) !important;
}
.metric-card.glow .val {
  color: #f9a8d4 !important;
}
.metrics-bar .status-chip {
  color: #c8d4e0 !important;
  font-size: 10px !important;
  white-space: nowrap !important;
  padding: 2px 6px !important;
}
.metrics-bar .status-chip b {
  color: #f0f4fa !important;
}

/* ── 17. CONFIG LABELS — MỖI MỤC 1 MÀU ── */
.card-body > .config-section:nth-of-type(1) > .config-label {
  color: #fb923c !important;
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.2) !important;
}
.card-body > .config-section:nth-of-type(2) > .config-label {
  color: #f9a8d4 !important;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.2) !important;
}
.card-body > .config-section:nth-of-type(3) > .config-label {
  color: #c084fc !important;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.2) !important;
}
.card-body > .config-section:nth-of-type(4) > .config-label {
  color: #4ade80 !important;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.2) !important;
}
.card-body > .config-section:nth-of-type(5) > .config-label {
  color: #67e8f9 !important;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.2) !important;
}

/* ── 18. CONFIG CARD — FLAT, no nested layers ── */
.config-card {
  background: rgba(20, 26, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) saturate(1.3) !important;
  border-radius: 14px !important;
  overflow: visible !important;
}
.config-card .card-body {
  overflow-y: visible !important;
  padding: 8px 10px !important;
  gap: 8px !important;
}

/* ── 19. PROGRESS BAR — Glass ── */
.progress-box {
  background: rgba(20, 24, 34, 0.75) !important;
  border: 1px solid rgba(244, 114, 182, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 12px !important;
}

/* ── 20. LOG BOX ── */
.log-box {
  background: rgba(8, 12, 20, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  color: #4ade80 !important;
}

/* ── 21. SPLASH — Glass gradient ── */
.splash-screen {
  background: linear-gradient(170deg, #0e1220, #141828, #0e1220) !important;
}
.splash-title {
  background: linear-gradient(135deg, #f9a8d4, #f472b6) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── 22. DM BUTTONS ── */
.dm-btn {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border-radius: 8px !important;
}
.dm-btn:hover {
  border-color: rgba(244, 114, 182, 0.25) !important;
  color: #fff !important;
}
.dm-btn.active {
  border-color: rgba(244, 114, 182, 0.4) !important;
  color: #f9a8d4 !important;
  background: rgba(244, 114, 182, 0.05) !important;
}

/* ── 23. TOP CHIPS — Glass ── */
.top-chip {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 8px !important;
}
.top-chip b {
  color: #f4f8ff !important;
}

/* ── 24. TOAST — Glass ── */
.toast {
  background: rgba(22, 28, 40, 0.92) !important;
  border: 1px solid rgba(244, 114, 182, 0.2) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 12px !important;
}

/* ── 25. MODAL ── */
.modal-bg {
  background: rgba(8, 10, 16, 0.85) !important;
  backdrop-filter: blur(12px) !important;
}
.modal {
  background: rgba(22, 26, 40, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) !important;
  border-radius: 18px !important;
}

/* ── 26. SUMMARY/OPS ── */
.summary-box {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
}
.summary-box .k {
  color: #b0bcc8 !important;
}
.ops-chip {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #c0c8d4 !important;
  border-radius: 10px !important;
}

/* ── 27. RT-TABLE WRAP ── */
.rt-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}
.rt-stat {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 10px !important;
}

/* ── 28. FILTER INLINE ── */
.filter-inline {
  background: rgba(16, 20, 30, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
}

/* ── 29. BTN-XS ── */
.btn-xs {
  padding: 4px 8px !important;
  font-size: 9px !important;
  border-radius: 8px !important;
}

/* ── 30. TIP BOX ── */
.tip {
  background: rgba(244, 114, 182, 0.03) !important;
  border: 1px solid rgba(244, 114, 182, 0.1) !important;
  border-radius: 10px !important;
  color: #d0d8e4 !important;
}
.tip b {
  color: #f9a8d4 !important;
}

/* ── 31. RESULT STATUS BAR ── */
.result-status-bar {
  background: rgba(22, 28, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #b0bcc8 !important;
  border-radius: 8px !important;
  backdrop-filter: blur(8px) !important;
}
.result-status-bar b {
  color: #e0e8f0 !important;
}

/* ── 32. SCROLLBAR TOÀN CỤC ── */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}
select::-ms-expand {
  display: none !important;
}
input[list]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0 !important;
}
.config-card select,
.config-card input[list],
.cyber-dropdown {
  overflow: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.config-card select::-webkit-scrollbar,
.config-card input[list]::-webkit-scrollbar,
.cyber-dropdown::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

/* ── 33. TEXT OVERALL ── */
body,
.main,
.card,
.result-card,
.split {
  color: #f4f8ff !important;
}

/* ── 34. PLACEHOLDER ── */
td[colspan] {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #8894a8 !important;
  font-style: italic !important;
}

/* ── 35. BODY FONT ── */
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}
.fi-group {
  color: #e4ecfa !important;
}
.fi-chk {
  accent-color: #f472b6 !important;
}

/* ── 36. TEXTAREA — Glass ── */
textarea,
textarea.form-control,
#out-lv3,
#out-lv2 {
  background: rgba(8, 12, 20, 0.65) !important;
  color: #dce4f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(6px) !important;
}
textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
  font-style: italic !important;
}

/* ── 37. LOG PANEL ── */
#s-log,
.log-panel,
.log-area {
  background: rgba(6, 10, 18, 0.7) !important;
  color: #c8d4e2 !important;
  border-radius: 10px !important;
}

/* ── 38. EMPTY STATES ── */
.empty-state,
.no-data,
.info-row {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #8b99ae !important;
  font-style: italic !important;
  border-radius: 8px !important;
  padding: 12px !important;
}

/* ── 39. SPLIT GAP ── */
.split {
  gap: 8px !important;
}
