html {
  font-size: 80%;
}

.app-content-header {
  padding: 0.85rem 0;
}

.app-content {
  padding: 0.75rem 0 1.25rem;
}

.app-content-header h3 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card {
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 26px rgba(0, 0, 0, 0.06);
}

.modal-content {
  border-radius: 14px;
}

.modal-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.modal-footer {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.abuydom-embedded .app-content {
  padding: 0;
}

.abuydom-embedded .container-fluid {
  max-width: none;
}

.abuydom-embedded .app-content > .container-fluid {
  padding: 0.85rem !important;
}

.abuydom-embedded .row.g-3 {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

.abuydom-embedded h3 {
  font-size: 1.12rem;
}

.abuydom-embedded .card {
  border-radius: 12px;
}

.abuydom-embedded .card-header {
  padding: 0.62rem 0.8rem;
}

.abuydom-embedded .card-body {
  padding: 0.8rem;
}

.abuydom-embedded .btn.btn-sm,
.abuydom-embedded .form-control-sm,
.abuydom-embedded .form-select-sm {
  --bs-btn-padding-y: 0.24rem;
  --bs-btn-padding-x: 0.62rem;
}

.abuydom-embedded .table > :not(caption) > * > * {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.abuydom-embedded .badge {
  font-size: 0.78rem;
}

.abuydom-embedded .form-label,
.abuydom-embedded .text-secondary.small,
.abuydom-embedded .small {
  font-size: 0.82rem !important;
}

.abuydom-window-workspace {
  min-width: 0;
  display: flex;
  align-items: center;
}

.abuydom-window-workspace__rail {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding: 0.18rem 0;
}

.abuydom-window-workspace__rail::-webkit-scrollbar {
  height: 6px;
}

.abuydom-window-workspace__rail::-webkit-scrollbar-thumb {
  background: rgba(127, 138, 156, 0.4);
  border-radius: 999px;
}

.abuydom-window-workspace__empty {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--bs-secondary-color);
  background: rgba(127, 138, 156, 0.08);
  border: 1px dashed rgba(127, 138, 156, 0.24);
  white-space: nowrap;
}

.abuydom-window-tab {
  min-width: 0;
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  max-width: 300px;
  border-radius: 12px;
  background: rgba(127, 138, 156, 0.08);
  border: 1px solid rgba(127, 138, 156, 0.24);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.abuydom-window-tab:hover {
  background: rgba(127, 138, 156, 0.14);
  border-color: rgba(127, 138, 156, 0.34);
}

.abuydom-window-tab.is-active {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.18);
}

.abuydom-window-tab__main,
.abuydom-window-tab__close {
  border: 0;
  background: transparent;
  color: inherit;
}

.abuydom-window-tab__main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.55rem 0.34rem 0.7rem;
}

.abuydom-window-tab__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.abuydom-window-tab__state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 1.15rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(127, 138, 156, 0.16);
  color: var(--bs-secondary-color);
}

.abuydom-window-tab__state.is-open {
  background: rgba(104, 211, 145, 0.16);
  color: #6ad89d;
}

.abuydom-window-tab__state.is-min {
  background: rgba(255, 208, 92, 0.16);
  color: #ffd05c;
}

.abuydom-window-tab__state.is-max {
  background: rgba(88, 166, 255, 0.16);
  color: #7ab7ff;
}

.abuydom-window-tab__close {
  flex: 0 0 auto;
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
}

.abuydom-window-tab__close:hover {
  opacity: 1;
}

.alert {
  border-radius: 14px;
}

.card-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.table > :not(caption) > * > * {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.table thead th {
  font-weight: 600;
}

.badge.text-bg-light.border {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.badge.text-bg-light.border > i {
  opacity: 0.85;
}

.cf-chip {
  background: transparent !important;
  color: var(--bs-body-color) !important;
  border: 1px solid rgba(127, 138, 156, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cf-chip > i {
  opacity: 0.9;
}

.cf-chip--muted {
  border-color: rgba(127, 138, 156, 0.5);
  box-shadow: 0 0 0 1px rgba(127, 138, 156, 0.14);
}

.cf-chip--primary {
  border-color: rgba(102, 163, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(102, 163, 255, 0.16), 0 0 9px rgba(102, 163, 255, 0.18);
}

.cf-chip--info {
  border-color: rgba(99, 226, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(99, 226, 255, 0.16), 0 0 8px rgba(99, 226, 255, 0.16);
}

.cf-chip--ok {
  border-color: rgba(95, 233, 146, 0.6);
  box-shadow: 0 0 0 1px rgba(95, 233, 146, 0.15), 0 0 8px rgba(95, 233, 146, 0.16);
}

.cf-chip--warn {
  border-color: rgba(255, 208, 92, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 208, 92, 0.16), 0 0 8px rgba(255, 208, 92, 0.16);
}

.cf-chip--bad {
  border-color: rgba(255, 120, 126, 0.66);
  box-shadow: 0 0 0 1px rgba(255, 120, 126, 0.16), 0 0 8px rgba(255, 120, 126, 0.16);
}

.app-header {
  backdrop-filter: saturate(140%) blur(8px);
}

:root[data-bs-theme="dark"] .card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.42);
}

:root[data-bs-theme="dark"] .badge.text-bg-light.border {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--bs-body-color) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

:root[data-bs-theme="dark"] .cf-chip {
  background: rgba(255, 255, 255, 0.02) !important;
}

.winbox.abuydom-domain-window {
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  z-index: 12000 !important;
}

.winbox.abuydom-domain-window.focus {
  z-index: 12020 !important;
}

.wb-min,
.wb-min.abuydom-domain-window {
  z-index: 12005 !important;
}

.winbox.abuydom-domain-window .wb-header {
  background: linear-gradient(135deg, rgba(31, 59, 87, 0.98), rgba(18, 32, 47, 0.96));
  min-height: 34px;
}

.winbox.abuydom-domain-window .wb-body {
  background: var(--bs-body-bg);
}

.winbox.abuydom-domain-window .wb-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.winbox.abuydom-domain-window iframe {
  background: var(--bs-body-bg);
}

:root[data-bs-theme="dark"] .btn-outline-dark {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: rgba(255, 255, 255, 0.22);
  --bs-btn-hover-color: #0b1020;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.9);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.9);
  --bs-btn-active-color: #0b1020;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.78);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.78);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.info-box {
  border-radius: 14px;
  overflow: hidden;
}

.info-box-icon {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.info-box {
  min-height: 82px;
}

.info-box-icon {
  width: 64px;
  font-size: 1.4rem;
}

.info-box-content {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.info-box-text {
  font-size: 0.9rem;
}

.info-box-number {
  font-size: 1.45rem;
  line-height: 1.1;
}

.info-box .btn.btn-sm {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.6rem;
}

.font-monospace {
  font-variant-ligatures: none;
}

.log-box {
  background: #0b1020;
  color: #d7e1ff;
  border-radius: 8px;
  padding: 12px;
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.cf-setting-switch {
  min-height: 1.8rem;
  padding-top: 0.15rem;
}

.cf-setting-switch .form-check-input {
  cursor: pointer;
}

.cf-setting-switch .form-check-label {
  cursor: pointer;
  user-select: none;
}

.domains-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
}

.domains-filter-form .form-label {
  margin-bottom: 0.28rem;
  font-size: 0.92rem;
}

.domains-filter-item {
  flex: 0 0 auto;
  width: 170px;
}

.domains-filter-item--search {
  width: 320px;
}

.domains-filter-item--xs {
  width: 130px;
}

.domains-filter-item--sm {
  width: 190px;
}

.domains-filter-item--account {
  width: 240px;
}

.domains-filter-item--date {
  width: 170px;
}

.domains-filter-item--date-match {
  width: 260px;
}

.domains-filter-item--per-page {
  width: 120px;
}

.domains-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.domains-filter-submit {
  min-width: 46px;
}

.domains-filter-reset {
  white-space: nowrap;
}

.domains-filter-meta {
  flex: 1 1 100%;
}

/* Domains list: keep checkbox/actions columns away from table edges */
.domains-table > :not(caption) > * > th:first-child,
.domains-table > :not(caption) > * > td:first-child {
  padding-left: 0.75rem;
}

.domains-table > :not(caption) > * > th:last-child,
.domains-table > :not(caption) > * > td:last-child {
  padding-right: 0.75rem;
}

.domain-title-row__link {
  overflow-wrap: anywhere;
}

.domain-actions-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.domain-icon-btn {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(222, 230, 244, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.domain-icon-btn > i {
  font-size: 0.8rem;
  pointer-events: none;
}

.domain-icon-btn:hover,
.domain-icon-btn:focus-visible {
  transform: translateY(-1px);
  color: #f5f8ff;
  outline: none;
}

.domain-icon-btn:active {
  transform: translateY(0);
}

.domain-icon-btn:disabled,
.domain-icon-btn.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.domain-icon-btn:focus-visible {
  box-shadow:
    0 0 0 0.18rem rgba(89, 153, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.domain-icon-btn--copy:hover,
.domain-icon-btn--copy:focus-visible {
  border-color: rgba(171, 184, 201, 0.55);
  background: rgba(171, 184, 201, 0.12);
  box-shadow: 0 0 0 1px rgba(171, 184, 201, 0.12), 0 0 8px rgba(171, 184, 201, 0.08);
}

.domain-icon-btn--copy.is-copied {
  border-color: rgba(95, 233, 146, 0.62);
  background: rgba(95, 233, 146, 0.14);
  color: #dfffea;
  box-shadow: 0 0 0 1px rgba(95, 233, 146, 0.18), 0 0 10px rgba(95, 233, 146, 0.12);
}

.domain-icon-btn--visit:hover,
.domain-icon-btn--visit:focus-visible {
  border-color: rgba(102, 163, 255, 0.62);
  background: rgba(102, 163, 255, 0.14);
  color: #e9f2ff;
  box-shadow: 0 0 0 1px rgba(102, 163, 255, 0.18), 0 0 10px rgba(102, 163, 255, 0.12);
}

:root[data-bs-theme="light"] .domain-icon-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.78);
}

.domain-a-records {
  min-width: 148px;
}

.domain-a-records__item + .domain-a-records__item {
  margin-top: 0.18rem;
}

.ab-tag-badge {
  --ab-tag-color: #4f8cff;
  background: color-mix(in srgb, var(--ab-tag-color) 18%, transparent) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid color-mix(in srgb, var(--ab-tag-color) 62%, transparent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ab-tag-color) 16%, transparent), 0 0 10px color-mix(in srgb, var(--ab-tag-color) 12%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ab-tag-badge > i {
  opacity: 0.92;
}

.abuse-report-row.is-resolved > * {
  background: color-mix(in srgb, #198754 12%, transparent) !important;
}

.abuse-report-row.is-resolved:hover > * {
  background: color-mix(in srgb, #198754 18%, transparent) !important;
}

.ab-resolved-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(25, 135, 84, 0.16) !important;
  color: #8ce0b3 !important;
  border: 1px solid rgba(25, 135, 84, 0.38) !important;
  box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.14), 0 0 10px rgba(25, 135, 84, 0.1);
}

:root[data-bs-theme="light"] .ab-resolved-badge {
  color: #146c43 !important;
  background: rgba(25, 135, 84, 0.12) !important;
}

.tag-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.55rem;
}

.tag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(127, 138, 156, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.tag-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
  transform: translateY(-1px);
}

.tag-card--selected {
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 0 10px rgba(96, 165, 250, 0.12);
}

.tag-card__main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.tag-card__label {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.tag-card__count {
  flex: 0 0 auto;
}

.tag-preview {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
}

.tag-preview__empty {
  padding-top: 0.1rem;
}

.tag-workbench-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.tag-workbench-stat {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(127, 138, 156, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.tag-workbench-stat__label {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  margin-bottom: 0.18rem;
}

.tag-workbench-stat__value {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.tag-action-grid {
  display: grid;
  gap: 0.55rem;
}

.tag-style-list {
  display: grid;
  gap: 0.6rem;
  max-height: 560px;
  overflow: auto;
}

.tag-style-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(127, 138, 156, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.tag-style-item:hover {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
  transform: translateY(-1px);
}

.tag-style-item--active {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 0 12px rgba(96, 165, 250, 0.12);
}

.tag-style-item__main {
  min-width: 0;
}

.tag-style-item__meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-style-preview-panel {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.02);
}

.tag-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.55rem;
}

.tag-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.tag-icon-btn i {
  font-size: 1rem;
}

.proxy-check-col {
  min-width: 260px;
}

.proxy-check-status {
  max-width: 360px;
}

.proxy-check-status .text-danger.small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-actions {
  white-space: nowrap;
}

.bp-params-grid {
  --bs-gutter-y: 0.65rem;
}

.bp-params-body .form-label {
  margin-bottom: 0.3rem;
}

.bp-params-body .form-text {
  margin-top: 0.2rem;
}

.bp-params-divider hr {
  margin: 0.55rem 0 0.4rem;
  opacity: 0.2;
}

.bp-params-divider .fw-semibold {
  margin-bottom: 0.1rem;
}

@media (max-width: 1199.98px) {
  .domains-filter-item--search {
    width: 280px;
  }

  .domains-filter-item--account {
    width: 220px;
  }

  .domains-filter-item--date-match {
    width: 240px;
  }
}

@media (max-width: 991.98px) {
  .domains-filter-actions {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .domains-filter-item,
  .domains-filter-item--search,
  .domains-filter-item--xs,
  .domains-filter-item--sm,
  .domains-filter-item--account,
  .domains-filter-item--date,
  .domains-filter-item--date-match,
  .domains-filter-item--per-page {
    width: 100%;
  }

  .domains-filter-actions {
    flex: 1 1 100%;
  }

  .domains-filter-submit,
  .domains-filter-reset {
    flex: 0 0 auto;
  }

  .tag-workbench-stats {
    grid-template-columns: 1fr;
  }

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

.abuydom-global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.22);
  backdrop-filter: blur(1px);
}

.abuydom-global-loader.d-none {
  display: none !important;
}

.abuydom-global-loader__panel {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 34, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  gap: 10px;
}

:root[data-bs-theme="light"] .abuydom-global-loader {
  background: rgba(245, 247, 252, 0.42);
}

:root[data-bs-theme="light"] .abuydom-global-loader__panel {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
}
