body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.table td, .table th {
  vertical-align: middle;
}

.table.table-hover > tbody > tr:hover > * {
  background-color: #b3d6ff;
}

.status-icon {
  font-size: 1.1rem;
}

[data-lang-switch].active {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

#systemNoticeModal [data-lang-switch] {
  color: #212529;
  border-color: #212529;
}

#systemNoticeModal [data-lang-switch].active {
  background: #212529;
  border-color: #212529;
  color: #fff;
}

/* Loading overlay bem visível */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(1px);
}

.details-modal {
  max-width: 900px;
  width: min(96vw, 900px);
}

.lot-prices {
  white-space: nowrap;
  overflow-x: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fafafa;
  font-size: 0.9rem;
}

.price-badge {
  padding: 0.35rem 0.6rem;
}

.currency-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.details-loading {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
}

.details-loading-steps {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.loading-step-text {
  font-size: 0.95rem;
  max-width: 420px;
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}

.btn-discord:hover,
.btn-discord:focus {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fafafa;
}

.plan-box:hover {
  border-color: #0d6efd;
  background: #f5f9ff;
}

.plan-box input[type="radio"] {
  margin: 0;
}

.plan-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.plan-price {
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.plan-price-usd {
  color: #198754;
  font-weight: 600;
}

.plan-discount {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #e7f1ff;
  color: #0d6efd;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-period {
  color: #6c757d;
  font-size: 0.9rem;
}

.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.success-icon {
  font-size: 3rem;
  line-height: 1;
}


.btn-run-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 132px;
}

.btn-run-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.35);
}

.btn-run-search:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.28);
}

.search-toolbar {
  flex-wrap: nowrap !important;
}

.search-toolbar-search {
  width: 220px;
  min-width: 220px;
}

.search-toolbar-select {
  width: 170px;
  min-width: 170px;
}

.server-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.server-tab {
  border: 1px solid #ced4da;
  background: #ffffff;
  color: #495057;
  border-radius: 0.375rem;
  padding: 0.36rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.server-tab:hover {
  background: #e9ecef;
  color: #212529;
  border-color: #adb5bd;
}

.server-tab.is-active {
  background: #0d6efd;
  color: #fff;
  border-color: #0a58ca;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.market-session-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 124px;
  justify-content: center;
  font-size: 0.86rem;
}

.market-session-trigger.is-connected {
  color: #146c43;
  background: #d1e7dd;
  border-color: #badbcc;
}

.market-session-trigger.is-connected:hover {
  color: #0f5132;
  background: #c3ddcf;
  border-color: #a8cfbc;
}

.market-session-trigger.is-disconnected {
  color: #856404;
  background: #fff3cd;
  border-color: #ffecb5;
}

.market-session-trigger.is-disconnected:hover {
  color: #664d03;
  background: #ffe69c;
  border-color: #ffda6a;
}

.install-help-trigger {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-run-search,
.market-session-trigger {
  min-height: 38px;
}

@media (max-width: 1199.98px) {
  .search-toolbar {
    flex-wrap: wrap !important;
  }
}
