/* Font imports */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap");

/* Font settings */
body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.card-header {
  font-family: "Inter", sans-serif;
}

.table th {
  font-family: "Inter", sans-serif;
}

/* Global Styles for Mikhmon PPPoE */
.highcharts-container.dark-chart {
  background-color: transparent;
}
.highcharts-background {
  fill: transparent;
  border: none;
}
.highcharts-plot-background {
  fill: transparent;
}
.bg-blue {
  background-color: #3498db;
}

/* Enhanced Box Styling */
.card1 {
  background: #1bc0a4;
  background: -webkit-linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
  background: linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
}
.card2 {
  background: #51a9e3;
  background: -webkit-linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
  background: linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
  display: grid;
  /* justify-content: center; */
  align-items: center;
  /* gap: 2px; */
}
.card2 .ppp-link {
  background: rgba(32, 168, 216, 0.25);
  border-radius: 5px;
  padding: 6px 4px;
}
.card3 {
  background: #e6a62c;
  background: -webkit-linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
  background: linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
}
.card4 {
  background: #eb4d4b;
  background: -webkit-linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
  background: linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
}
.box {
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #20a8d8;
  transition: all 0.5s ease;
  transform: translateX(-50%);
}

.box:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.box:hover::after {
  width: 90%;
}
/* Placeholder styling */
input[placeholder] {
  /* color: #f010bf; */
  opacity: 0.7;
}

textarea::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

select::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

/* Improved form elements */
input,
select,
textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 0.2rem rgba(32, 168, 216, 0.25);
}

/* Button enhancements */
.btn {
  transition: all 0.3s ease;
}

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

/* Table improvements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* Enhanced Card Styling */
.card {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 10px 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  /* transform: translateY(-3px); */
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #20a8d8, #4dbd74);
  transition: height 0.5s ease;
}

.card:hover::after {
  height: 100%;
}

.card-header {
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 15px;
}

.card-footer {
  padding: 10px 15px;
  border-top: 1px solid rgba(240, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: flex-end;
}

/* Card variations */
.card-primary::after {
  background: linear-gradient(to bottom, #20a8d8, #63c2de);
}

.card-success::after {
  background: linear-gradient(to bottom, #4dbd74, #20c997);
}

.card-warning::after {
  background: linear-gradient(to bottom, #ffc107, #f8cb00);
}

.card-danger::after {
  background: linear-gradient(to bottom, #f86c6b, #e83e8c);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .box {
    margin: 3px;
    padding: 8px;
  }

  .box-group-icon {
    font-size: 30px;
  }

  .card {
    margin: 5px 2px;
  }

  .card-header {
    padding: 8px 12px;
  }

  .card-body {
    padding: 10px;
  }
}

/* =========================================================
   Dashboard UI & UX Enhancements
   ========================================================= */
.dash-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 5px 12px 5px;
}

.dash-sys-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-info-card {
  background-color: var(--primary-color, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.24);
  border-radius: 10px;
  padding: 14px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.dash-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-info-head-text {
  min-width: 0;
  flex: 1;
}

.dash-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.dash-pill-blue {
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
}

.dash-pill-teal {
  background: rgba(20, 184, 166, 0.16);
  color: #14b8a6;
}

.dash-pill-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-pill-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.dash-pill-danger {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
}

.dash-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.68;
  font-weight: 600;
}

.dash-info-primary {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(128, 128, 128, 0.16);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-chip-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-chip-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.dash-chip-danger {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
}

.dash-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.18);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.dash-fill-success {
  background: linear-gradient(90deg, #059669, #34d399);
}

.dash-fill-warning {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.dash-fill-danger {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.dash-spec-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(128, 128, 128, 0.16);
  padding-top: 8px;
}

.dash-spec-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: none;
  padding-top: 0;
}

.dash-spec-chip {
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.14);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dash-spec-chip .dash-spec-value {
  text-align: left;
}

.dash-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-spec-label {
  opacity: 0.7;
  font-size: 11.5px;
  white-space: nowrap;
}

.dash-spec-value {
  font-weight: 600;
  font-size: 12.5px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dash-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.dash-main-col {
  grid-column: span 2;
}

.dash-side-col {
  grid-column: span 1;
}

.dash-main-col,
.dash-side-col,
.dash-logs-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dash-card {
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(128, 128, 128, 0.24) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.dash-card::after {
  display: none !important;
}

.dash-card-header {
  padding: 10px 16px !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18) !important;
}

.dash-card-header h3 {
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dash-header-link {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit !important;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.dash-header-link:hover {
  opacity: 1;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-body {
  padding: 14px 16px !important;
  margin-bottom: 0 !important;
}

.dash-card-body-flush {
  padding: 0 !important;
}

.dash-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dash-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dash-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.dash-tile-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.dash-tile-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.dash-tile-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.dash-tile-rose {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
}

.dash-tile-sky {
  background: linear-gradient(135deg, #0369a1 0%, #06b6d4 100%);
}

.dash-tile-teal {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.dash-tile-indigo {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.dash-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-tile-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dash-tile-arrow {
  font-size: 12px;
  opacity: 0.72;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dash-tile:hover .dash-tile-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.dash-tile-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.dash-tile-unit {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 2px;
}

.dash-tile-cta {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.dash-tile-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.94;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-tile-split {
  cursor: default;
}

.dash-tile-split:hover {
  transform: none;
  filter: none;
}

.dash-tile-split-title {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.96;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-split-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-split-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dash-split-pill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(2px);
}

.dash-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.dash-dot-online {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.85);
}

.dash-dot-offline {
  background: #fca5a5;
}

/* Traffic Toggle & Empty State */
.dash-iface-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, 0.38);
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
}

.dash-iface-pill i {
  font-size: 11px;
  opacity: 0.85;
}

.dash-iface-select {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 2px;
  cursor: pointer;
  outline: none;
  max-width: 130px;
}

select.dash-iface-select option {
  background-color: var(--primary-color, #ffffff);
  color: var(--body-color, #3e3e3e);
}

#trafficToggle.traffic-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, 0.38);
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.traffic-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(156, 163, 175, 0.85);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.traffic-toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

#trafficToggle.traffic-toggle.on {
  background: #059669;
  border-color: #10b981;
  color: #ffffff;
}

#trafficToggle.traffic-toggle.on .traffic-toggle-dot {
  background: #86efac;
  box-shadow: 0 0 6px #86efac;
}

#trafficToggle.traffic-toggle.on .traffic-toggle-knob {
  transform: translateX(2px);
  background: #ffffff;
}

.dash-traffic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: 6px;
  border: 1px dashed rgba(128, 128, 128, 0.26);
  background: rgba(128, 128, 128, 0.04);
}

.dash-traffic-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(32, 168, 216, 0.14);
  color: #20a8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.dash-traffic-empty-title {
  font-size: 13.5px;
  font-weight: 700;
}

.dash-traffic-empty-sub {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 3px;
}

.dash-traffic-start-btn {
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  background: #20a8d8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.dash-traffic-start-btn:hover {
  background: #1b94c0;
}

/* Income Card */
.dash-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dash-income-stat {
  background: rgba(128, 128, 128, 0.07);
  border: 1px solid rgba(128, 128, 128, 0.16);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}

.dash-income-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.dash-income-label {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.72;
}

.dash-vcr-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
  white-space: nowrap;
}

.dash-income-amount {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Log Tables */
.dash-log-scroll {
  overflow-y: auto;
  overflow-x: auto;
}

.dash-log-table {
  margin: 0;
  font-size: 12px;
}

.dash-log-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--primary-color, #f5f6f7);
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.22) !important;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 7px 10px !important;
}

.dash-log-table tbody td {
  padding: 7px 10px !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12) !important;
  vertical-align: middle;
}

.dash-log-table tbody tr:last-child td {
  border-bottom: none !important;
}

.dash-log-time {
  white-space: nowrap;
}

.dash-time-date {
  display: block;
  font-size: 10.5px;
  opacity: 0.65;
}

.dash-time-clock {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dash-user-name {
  display: block;
  font-weight: 600;
  word-break: break-word;
}

.dash-user-ip {
  display: block;
  font-size: 10.5px;
  opacity: 0.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dash-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.dash-badge-success {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.dash-badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.dash-badge-danger {
  background: rgba(244, 63, 94, 0.16);
  color: #f43f5e;
}

.dash-badge-neutral {
  background: rgba(128, 128, 128, 0.16);
  color: inherit;
}

.dash-loading-inline,
.dash-loading-cell,
.dash-empty-cell {
  padding: 14px 10px !important;
  opacity: 0.75;
  font-size: 12.5px;
}

@media (max-width: 1140px) {
  .dash-main-col,
  .dash-side-col {
    grid-column: span 3;
  }
}

@media (max-width: 960px) {
  .dash-sys-grid {
    grid-template-columns: 1fr;
  }
  .dash-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dash-tile-grid,
  .dash-income-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Top Navbar UI & UX Enhancements
   ========================================================= */
.navbar.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 0;
  height: 50px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 50px;
  flex-shrink: 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.top-brand:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.top-nav-toggle {
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  color: #f2f2f2;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.top-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  min-width: 0;
  overflow: hidden;
}

.top-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82) !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.top-nav-item i {
  font-size: 12px;
  opacity: 0.88;
}

.top-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

.top-nav-item.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.top-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.top-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 6px 0 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f2f2;
}

.top-control-pill i {
  font-size: 12px;
  opacity: 0.85;
}

.top-select.ses {
  float: none;
  margin: 0 !important;
  padding: 0 4px 0 2px !important;
  height: 26px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  max-width: 120px;
}

.top-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f2f2 !important;
  font-size: 13px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.42);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.top-logout-btn:hover {
  background: rgba(244, 63, 94, 0.42);
  border-color: rgba(244, 63, 94, 0.7);
}

@media (max-width: 1240px) {
  .top-nav-links {
    display: none;
  }
}

@media (max-width: 750px) {
  .navbar.top-navbar {
    padding: 0 8px;
  }
  .top-select.ses {
    max-width: 92px;
  }
}

@media (max-width: 520px) {
  .top-logout-btn span,
  .top-timer-pill {
    display: none !important;
  }
}

/* =========================================================
   Admin Settings Page UI & UX
   ========================================================= */
.adm-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 5px 16px 5px;
}

.adm-page-header {
  background-color: var(--primary-color, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.24);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.adm-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.adm-subheading {
  display: block;
  font-size: 12px;
  opacity: 0.72;
  margin-top: 2px;
}

.adm-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.adm-alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.adm-alert-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.adm-alert-content {
  min-width: 0;
  flex: 1;
}

.adm-alert-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.adm-alert-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
}

.adm-alert-list code,
.adm-guide-panel code,
.adm-tip-box code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.18);
  font-size: 12px;
}

.adm-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.adm-router-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-router-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  background: rgba(128, 128, 128, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  flex-wrap: wrap;
}

.adm-router-item:hover {
  border-color: rgba(32, 168, 216, 0.55);
  background: rgba(128, 128, 128, 0.1);
}

.adm-router-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.adm-router-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.adm-router-icon:hover {
  background: rgba(32, 168, 216, 0.26);
  transform: translateY(-1px);
}

.adm-router-meta {
  min-width: 0;
  flex: 1;
}

.adm-router-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-router-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.adm-meta-pill {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(128, 128, 128, 0.14);
  opacity: 0.9;
}

.adm-meta-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.adm-router-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.adm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: 8px;
  border: 1px dashed rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.04);
  gap: 6px;
}

.adm-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(32, 168, 216, 0.14);
  color: #20a8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.adm-empty-title {
  font-size: 14px;
  font-weight: 700;
}

.adm-empty-sub {
  font-size: 12.5px;
  opacity: 0.72;
  margin-bottom: 8px;
}

.adm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adm-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.85;
}

.adm-input {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.08);
  color: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.adm-input option {
  background-color: var(--primary-color, #ffffff);
  color: inherit;
}

.adm-input:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 2px rgba(32, 168, 216, 0.22);
}

.adm-input-group {
  display: flex;
  align-items: stretch;
}

.adm-input-group .adm-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.adm-eye-btn {
  width: 38px;
  height: 36px;
  border-radius: 0 7px 7px 0;
  border: 1px solid rgba(128, 128, 128, 0.28);
  border-left: none;
  background: rgba(128, 128, 128, 0.14);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.adm-eye-btn:hover {
  background: rgba(128, 128, 128, 0.24);
}

.adm-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.adm-ver-notice {
  font-size: 12.5px;
  font-weight: 600;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

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

.adm-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.adm-btn-primary {
  background: #20a8d8;
  color: #ffffff !important;
}

.adm-btn-primary:hover {
  background: #1b94c0;
}

.adm-btn-secondary {
  background: rgba(128, 128, 128, 0.15);
  border-color: rgba(128, 128, 128, 0.24);
  color: inherit !important;
}

.adm-btn-secondary:hover {
  background: rgba(128, 128, 128, 0.24);
}

.adm-btn-danger {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e !important;
}

.adm-btn-danger:hover {
  background: rgba(244, 63, 94, 0.28);
}

.adm-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.adm-guide-panel {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: rgba(128, 128, 128, 0.05);
}

.adm-guide-panel h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-guide-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
}

.adm-guide-steps ul {
  padding-left: 18px;
  margin-top: 4px;
}

.adm-guide-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  opacity: 0.9;
}

.adm-cli-box {
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: #1a2026;
  color: #f3f4f5;
  overflow: hidden;
  margin-bottom: 10px;
}

.adm-cli-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
}

.adm-cli-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-copy-status {
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
}

.adm-cli-pre {
  margin: 0;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  color: #f3f4f5;
}

.adm-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.16);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .adm-main-grid,
  .adm-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Sidebar UI & UX Enhancements
   ========================================================= */
.sidenav.snav {
  padding: 0 8px 72px 8px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidenav.snav .snav-identity {
  margin: 10px 0 8px 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: rgba(128, 128, 128, 0.08);
  box-sizing: border-box;
}

.sidenav.snav .snav-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidenav.snav .snav-id-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(32, 168, 216, 0.16);
  color: #20a8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sidenav.snav .snav-id-text {
  min-width: 0;
  flex: 1;
}

.sidenav.snav .snav-id-text h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidenav.snav .snav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.75);
  flex-shrink: 0;
}

.sidenav.snav .snav-sub {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidenav.snav i {
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.sidenav.snav a,
.sidenav.snav .dropdown-btn {
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sidenav.snav .snav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sidenav.snav .snav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(128, 128, 128, 0.12);
  font-size: 12.5px;
  transition: background-color 0.18s ease;
}

.sidenav.snav .snav-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidenav.snav .snav-chevron {
  font-size: 10px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
  float: none;
}

.sidenav.snav .dropdown-btn.active .snav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.sidenav.snav .dropdown-container {
  margin: 2px 0 4px 18px;
  padding-left: 8px;
  border-left: 1px solid rgba(128, 128, 128, 0.22);
}

.sidenav.snav .dropdown-container a,
.sidenav.snav .dropdown-container .dropdown-btn {
  padding: 6px 8px;
  font-size: 12.5px;
}

.sidenav.snav .dropdown-container .snav-icon {
  width: 20px;
  height: 20px;
  background: transparent;
  font-size: 12px;
}

.sidenav.snav a.active,
.sidenav.snav .dropdown-btn.active {
  font-weight: 600;
}

.sidenav.snav a.active .snav-icon,
.sidenav.snav .dropdown-btn.active .snav-icon {
  background: rgba(255, 255, 255, 0.18);
}

.sidenav.snav .snav-divider {
  height: 1px;
  background: rgba(128, 128, 128, 0.18);
  margin: 8px 4px;
}

/* =========================================================
   Login Page UI & UX
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 390px;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14) !important;
}

.login-accent-bar {
  height: 4px;
  width: 100%;
}

.login-brand {
  text-align: center;
  padding: 28px 24px 16px 24px;
}

.login-logo-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px auto;
  border-radius: 16px;
  background: rgba(32, 168, 216, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  opacity: 0.7;
}

.login-form {
  padding: 6px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.82;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  font-size: 13.5px;
  opacity: 0.55;
  pointer-events: none;
}

.login-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.07);
  color: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #20a8d8;
  background: rgba(128, 128, 128, 0.04);
  box-shadow: 0 0 0 3px rgba(32, 168, 216, 0.18);
}

.login-input-pass {
  padding-right: 40px;
}

.login-eye-btn {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.login-eye-btn:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.14);
}

.login-error {
  font-size: 12.5px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.login-error .bg-danger {
  padding: 9px 12px !important;
  border-radius: 8px !important;
}

.login-submit-btn {
  width: 100%;
  height: 42px;
  margin-top: 4px;
  border-radius: 8px;
  border: none;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.login-submit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-footer {
  padding: 12px 24px 16px 24px;
  border-top: 1px solid rgba(128, 128, 128, 0.14);
  text-align: center;
  font-size: 11.5px;
  opacity: 0.65;
}

/* =========================================================
   Hotspot Users Page UI & UX
   ========================================================= */
.usr-wrapper {
  padding: 6px 5px 14px 5px;
}

.usr-card-header {
  flex-wrap: wrap;
}

.usr-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usr-loader {
  font-size: 12px;
  opacity: 0.85;
}

.usr-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.usr-hbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.usr-hbtn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.usr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.usr-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
  flex-wrap: wrap;
}

.usr-search-box,
.usr-select-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 155px;
}

.usr-search-box i,
.usr-select-box i {
  position: absolute;
  left: 10px;
  font-size: 12px;
  opacity: 0.6;
  pointer-events: none;
}

.usr-input,
.usr-select {
  width: 100%;
  height: 34px;
  padding: 6px 10px 6px 30px;
  border-radius: 7px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.08);
  color: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.usr-select option {
  background-color: var(--primary-color, #ffffff);
  color: var(--body-color, #3e3e3e);
}

.usr-input:focus,
.usr-select:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 2px rgba(32, 168, 216, 0.2);
}

.usr-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.usr-print-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.usr-table-wrap {
  max-height: 74vh;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.usr-table {
  margin: 0;
  font-size: 13px;
}

.usr-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--primary-color, #f5f6f7);
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.24) !important;
  padding: 9px 10px !important;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.usr-table tbody td {
  padding: 8px 10px !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.14) !important;
  vertical-align: middle;
}

.usr-table tbody tr:last-child td {
  border-bottom: none !important;
}

.usr-cell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.usr-act-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(128, 128, 128, 0.22);
  background: rgba(128, 128, 128, 0.08);
  color: inherit !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.usr-act-btn:hover {
  background: rgba(128, 128, 128, 0.2);
  transform: translateY(-1px);
}

.usr-act-del {
  color: #f43f5e !important;
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
}

.usr-act-del:hover {
  background: rgba(244, 63, 94, 0.22);
}

.usr-act-locked {
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.usr-name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.usr-name-link i {
  font-size: 12px;
  opacity: 0.72;
}

.usr-name-link:hover {
  text-decoration: underline !important;
}

.usr-server-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(128, 128, 128, 0.14);
}

.usr-profile-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(32, 168, 216, 0.14);
  color: #20a8d8;
}

.usr-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.usr-num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.usr-muted {
  opacity: 0.45;
}

.usr-comm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.12);
  font-size: 12px;
  transition: background-color 0.15s ease;
}

.usr-comm-pill:hover {
  background: rgba(128, 128, 128, 0.22);
}

@media (max-width: 960px) {
  .usr-filter-group {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .usr-search-box,
  .usr-select-box {
    min-width: 100%;
  }
}

/* =========================================================
   Hotspot Submenu Forms, Filter Pills, Status & Modals
   ========================================================= */
.hs-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}

.hs-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hs-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hs-form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.hs-form-table td:first-child {
  width: 155px;
  padding: 6px 12px 6px 0;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
  opacity: 0.88;
}

.hs-form-table td:last-child {
  padding: 0;
  vertical-align: middle;
}

.hs-form-table .adm-input {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.08);
  color: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-form-table .adm-input:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 2px rgba(32, 168, 216, 0.2);
}

.hs-form-table select.adm-input option {
  background-color: var(--primary-color, #ffffff);
  color: var(--body-color, #3e3e3e);
}

.hs-input-split {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-input-split > :first-child {
  flex: 1;
}

.hs-input-split > select.adm-input {
  width: 88px;
  flex: 0 0 88px;
}

.hs-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hs-pass-wrap .adm-input {
  padding-right: 36px;
}

.hs-eye-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 5px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.hs-eye-btn:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.14);
}

.hs-info-list {
  display: flex;
  flex-direction: column;
}

.hs-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.14);
  font-size: 13px;
}

.hs-info-row:last-child {
  border-bottom: none;
}

.hs-info-label {
  font-weight: 600;
  opacity: 0.78;
  white-space: nowrap;
}

.hs-info-val {
  text-align: right;
  word-break: break-word;
}

.hs-readme-content {
  font-size: 13px;
  line-height: 1.65;
}

.hs-readme-content p {
  margin: 0 0 8px 0;
}

.hs-readme-content p:last-child {
  margin-bottom: 0;
}

.hs-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hs-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.08);
  color: inherit !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hs-filter-pill:hover {
  background: rgba(128, 128, 128, 0.18);
}

.hs-filter-pill.is-active {
  background: rgba(32, 168, 216, 0.16);
  border-color: #20a8d8;
  color: #20a8d8 !important;
}

.hs-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: middle;
}

.hs-dot-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.hs-dot-ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.usr-act-info {
  color: #20a8d8 !important;
  border-color: rgba(32, 168, 216, 0.32);
  background: rgba(32, 168, 216, 0.1);
}

.usr-act-info:hover {
  background: rgba(32, 168, 216, 0.22);
}

.usr-act-warn {
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
}

.usr-act-warn:hover {
  background: rgba(245, 158, 11, 0.22);
}

.dash-badge-info {
  background: rgba(32, 168, 216, 0.14);
  color: #20a8d8;
}

.modal-window > div.hs-modal-box {
  width: 440px;
  max-width: calc(100vw - 24px);
  padding: 0;
  border-radius: 12px;
  background: var(--primary-color, #ffffff);
  color: var(--body-color, #3e3e3e);
  border: 1px solid rgba(128, 128, 128, 0.24);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.hs-modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(128, 128, 128, 0.12);
  color: inherit !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hs-modal-close:hover {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e !important;
}

.hs-modal-body {
  padding: 16px 18px;
}

.hs-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 960px) {
  .hs-form-grid {
    grid-template-columns: 1fr;
  }
}

.hs-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.hs-tile {
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hs-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.hs-tile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  min-width: 0;
}

.hs-tile-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  opacity: 0.94;
}

.hs-tile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hs-tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hs-tile-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hs-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
}

.hs-listqp-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.7fr);
  gap: 14px;
  align-items: start;
}

.hs-input-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid rgba(128, 128, 128, 0.24);
  background: rgba(128, 128, 128, 0.12);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hs-grid-2,
  .hs-editor-grid,
  .hs-listqp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hs-form-table,
  .hs-form-table tbody,
  .hs-form-table tr,
  .hs-form-table td {
    display: block;
    width: 100%;
  }

  .hs-form-table td:first-child {
    width: 100%;
    padding: 4px 0 4px 0;
  }

  .hs-form-table td:last-child {
    margin-bottom: 6px;
  }
}
