/* ─── DNSDIAG Custom Styles (Bootstrap 5.3 supplement) ──────────────────── */

/* ── Root / theme tokens ──────────────────────────────────────────────────── */
:root {
  --app-sidebar-w: 240px;
  --app-topbar-h: 56px;
  --bs-border-radius-xl: 0.75rem;
  --bs-border-radius-2xl: 1rem;
  --app-accent: #2563eb;
  --app-accent-hover: #1d4ed8;
}

/* ── Body & background ────────────────────────────────────────────────────── */
body {
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
[data-bs-theme="dark"] body {
  background-color: #0d1117;
}

/* ── Page entrance animation ──────────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: pageFadeIn 0.25s ease both;
}

/* ── Loading / skeleton animations ───────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bounce-dots {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bs-tertiary-bg) 25%, var(--bs-secondary-bg) 50%, var(--bs-tertiary-bg) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 0.375rem;
}

/* Tool loading spinner */
.tool-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .875rem;
  color: var(--bs-secondary-color);
}
.tool-spinner::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--bs-border-color);
  border-top-color: var(--app-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Progress bar pulse when indeterminate */
.progress-bar.indeterminate {
  background: linear-gradient(90deg, var(--app-accent) 0%, #60a5fa 50%, var(--app-accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* Scan running state */
.scan-running .tool-spinner { display: inline-flex; }
.tool-spinner { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   SITE NAVIGATION  —  two-row, GitHub/Linear-style
   Row 1 (.snav-bar):  52px  — brand · secondary links · auth
   Row 2 (.snav-tabs): panel — two groups (DNS Tools / Analysis), icon+label+desc
   ══════════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
[data-bs-theme="light"] .site-nav {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
[data-bs-theme="dark"] .site-nav {
  background: rgba(10,12,16,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ── Row 1: brand · links · auth ─────────────────────────────────────────── */
.snav-bar {
  border-bottom: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .snav-bar { border-color: rgba(255,255,255,.06); }

.snav-bar-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: .5rem;
}

.snav-brand {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: .75rem;
}

/* Secondary nav links */
.snav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
@media (max-width: 991.98px) { .snav-links { display: none !important; } }

.snav-link {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bs-secondary-color) !important;
  text-decoration: none !important;
  padding: .3rem .7rem;
  border-radius: .375rem;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.snav-link:hover  { color: var(--bs-body-color) !important; background: var(--bs-tertiary-bg); }
.snav-link.active { color: var(--bs-body-color) !important; font-weight: 600; }

/* Right controls */
.snav-controls {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  flex-shrink: 0;
}
.snav-sep {
  width: 1px;
  height: 16px;
  background: var(--bs-border-color);
  margin: 0 .3rem;
  flex-shrink: 0;
  opacity: .6;
}

/* Icon-only button (dark toggle, hamburger) */
.snav-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: .375rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: background .12s, color .12s;
  padding: 0;
}
.snav-icon-btn:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }

/* Admin link */
.snav-admin {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  height: 30px;
  padding: 0 .55rem;
  border: none;
  background: none;
  border-radius: .375rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  text-decoration: none !important;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.snav-admin:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.snav-admin .admin-label { display: none; }
@media (min-width: 992px) { .snav-admin .admin-label { display: inline; } }

/* User button */
.snav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 32px;
  padding: 0 .4rem 0 .2rem;
  border: none;
  background: none;
  border-radius: .375rem;
  cursor: pointer;
  transition: background .12s;
}
.snav-user-btn:hover { background: var(--bs-tertiary-bg); }
.snav-user-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--bs-body-color);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 575.98px) { .snav-user-name { display: none; } }

/* User dropdown */
.snav-user-menu {
  border-radius: .75rem !important;
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06) !important;
  padding: .3rem !important;
  min-width: 220px;
}
[data-bs-theme="dark"] .snav-user-menu {
  background: #111418 !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.6) !important;
}
.snav-user-menu .dropdown-item {
  border-radius: .4375rem;
  font-size: .8125rem;
  padding: .475rem .7rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--bs-body-color);
  transition: background .1s;
}
.snav-user-menu .dropdown-item svg { opacity: .5; flex-shrink: 0; }
.snav-user-menu .dropdown-item:hover svg { opacity: .75; }
.snav-user-menu .dropdown-item:hover { background: var(--bs-tertiary-bg); }
.snav-user-menu .dropdown-item:active { background: rgba(37,99,235,.08); }
.snav-user-header {
  padding: .6rem .7rem .5rem;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: .25rem;
}
[data-bs-theme="dark"] .snav-user-header { border-color: rgba(255,255,255,.07); }

/* ── Row 2: Desktop tool strip (horizontal) ───────────────────────────────── */

/* Fixed-height strip — always visible on desktop and tablet */
.snav-tabs {
  overflow: hidden;
  border-bottom: 1px solid var(--bs-border-color);
  /* tall enough to cover both desktop (44px) and tablet (52px) */
  min-height: 0;
}
[data-bs-theme="dark"] .snav-tabs { border-color: rgba(255,255,255,.07); }

/* Inner container: fixed height, flex-centred, handles horizontal overflow */
.snav-tabs .container-xl {
  height: 44px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.snav-tabs .container-xl::-webkit-scrollbar { display: none; }

/* Panel: full-width flex row, no extra vertical padding (height handles it) */
.snav-dsk-panel {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: max-content;
}

/* Each group: items flow left to right, 4px gap */
.snav-dsk-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Thin vertical separator between DNS / Analysis groups */
.snav-dsk-sep {
  width: 1px;
  height: 20px;
  background: var(--bs-border-color);
  margin: 0 .625rem;
  flex-shrink: 0;
  align-self: center;
}
[data-bs-theme="dark"] .snav-dsk-sep { background: rgba(255,255,255,.1); }

/* Each tool: fixed 36px height, icon + label centred vertically */
.snav-dsk-tool {
  display: flex;
  align-items: center;
  gap: .4rem;
  height: 36px;
  padding: 0 .5rem;
  border-radius: .45rem;
  text-decoration: none !important;
  color: var(--bs-body-color) !important;
  transition: background .13s;
  flex-shrink: 0;
}
.snav-dsk-tool:hover  { background: var(--tc-bg, var(--bs-tertiary-bg)); }
.snav-dsk-tool.active { background: var(--tc-bg, var(--bs-tertiary-bg)); }
.snav-dsk-tool.active .snav-dsk-tool-label {
  color: var(--tc, var(--app-accent));
  font-weight: 600;
}

/* Colored icon box */
.snav-dsk-tool-icon {
  width: 24px;
  height: 24px;
  border-radius: .35rem;
  background: var(--tc-bg, var(--bs-tertiary-bg));
  color: var(--tc, var(--bs-secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Label */
.snav-dsk-tool-info  { display: flex; flex-direction: column; min-width: 0; }
.snav-dsk-tool-label {
  font-size: .775rem;
  font-weight: 500;
  color: var(--bs-body-color);
  white-space: nowrap;
  line-height: 1;
}
.snav-dsk-tool-desc { display: none; } /* description lives in mobile panel only */

/* ── Responsive tiers ────────────────────────────────────────────────────────
   ≥ 1200px   icon + label   (standard & wide desktops)
   768–1199   icon only      (tablets, small-screen laptops)
   < 768      strip hidden   (hamburger panel used instead)
   ──────────────────────────────────────────────────────────────────────────── */

/* 768–1199px — icon + label stacked (icon above, label below)
   Stacked items are ~55px wide vs ~115px side-by-side, so all 9 fit at 768px */
@media (max-width: 1199.98px) {
  .snav-tabs .container-xl { height: 52px; }
  .snav-dsk-tool-info  { display: flex; }
  .snav-dsk-tool {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 .4rem;
    gap: 3px;
  }
  .snav-dsk-tool-icon  { width: 20px; height: 20px; border-radius: .3rem; }
  .snav-dsk-tool-label { font-size: .6rem; text-align: center; line-height: 1; }
  .snav-dsk-sep        { margin: 0 .35rem; height: 24px; }
  .snav-dsk-group      { gap: 1px; }
}

/* No fade needed — stacked labels fit at all tablet widths ≥ 768px */

/* Strip hidden on mobile */
@media (max-width: 767.98px) { .snav-tabs { display: none; } }

/* Mobile top bar — tighten on very small screens */
@media (max-width: 399.98px) {
  .snav-bar-inner { gap: .1rem; }
  .snav-controls  { gap: .05rem; }
  .snav-sep       { display: none; }
}


/* ── Mobile collapse: full tool panel ─────────────────────────────────────── */
.snav-collapse {
  border-top: 1px solid var(--bs-border-color);
  padding: .5rem 0 .75rem;
  max-height: calc(100svh - 52px);
  overflow-y: auto;
}
[data-bs-theme="dark"] .snav-collapse { border-color: rgba(255,255,255,.06); }
@media (min-width: 768px) { .snav-collapse { display: none !important; } }

/* Section label */
.snav-mob-group {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding: .55rem 1rem .2rem;
  margin: 0;
  opacity: .55;
}

/* Tool row */
.snav-mob-tool {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .625rem;
  margin: 1px .375rem;
  border-radius: .5rem;
  text-decoration: none !important;
  color: var(--bs-body-color) !important;
  transition: background .12s;
}
.snav-mob-tool:hover  { background: var(--tc-bg, var(--bs-tertiary-bg)); }
.snav-mob-tool.active { background: var(--tc-bg, var(--bs-tertiary-bg)); }
.snav-mob-tool.active .snav-mob-tool-label {
  color: var(--tc, var(--app-accent));
  font-weight: 600;
}

/* Colored icon box */
.snav-mob-tool-icon {
  width: 34px;
  height: 34px;
  border-radius: .5rem;
  background: var(--tc-bg, var(--bs-tertiary-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tc, var(--bs-secondary-color));
}

/* Label + short desc stack */
.snav-mob-tool-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.snav-mob-tool-label {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--bs-body-color);
}
.snav-mob-tool-desc {
  font-size: .72rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider between tools and utility links */
.snav-mob-divider {
  height: 1px;
  background: var(--bs-border-color);
  margin: .5rem .375rem;
}
[data-bs-theme="dark"] .snav-mob-divider { background: rgba(255,255,255,.06); }

/* Utility links (API Docs, Contact, custom) */
.snav-mob-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  margin: 1px .375rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--bs-secondary-color) !important;
  text-decoration: none !important;
  border-radius: .4375rem;
  transition: background .12s;
}
.snav-mob-link svg { opacity: .45; flex-shrink: 0; }
.snav-mob-link:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color) !important; }
.snav-mob-link.active { color: var(--app-accent) !important; font-weight: 600; }

/* ── Page content container (consistent max-width) ────────────────────────── */
.page-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
@media (min-width: 768px) {
  .page-content { padding: 3rem 2rem; }
}

/* ── Flash / alerts ───────────────────────────────────────────────────────── */
.alert {
  border-radius: 0.625rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  border-radius: 0.875rem;
  border-color: var(--bs-border-color);
  transition: box-shadow 0.2s;
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.875rem 1.25rem;
  font-weight: 600;
}
[data-bs-theme="dark"] .card {
  background-color: #161b22;
  border-color: #30363d;
}
[data-bs-theme="dark"] .card-header {
  background-color: #161b22;
  border-color: #30363d;
}
.card-hover {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
  transform: translateY(-2px);
}
[data-bs-theme="dark"] .card-hover:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

/* ── Tool cards (home page) ───────────────────────────────────────────────── */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid var(--bs-border-color);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  background: var(--bs-body-bg);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, transparent 60%);
}
.tool-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.3);
  text-decoration: none;
}
.tool-card:hover::before {
  opacity: 1;
}
[data-bs-theme="dark"] .tool-card {
  background: #161b22;
  border-color: #30363d;
}
[data-bs-theme="dark"] .tool-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  border-color: rgba(96,165,250,.3);
}
.tool-card .tool-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-card .tool-title {
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.3;
  color: var(--bs-body-color);
}
.tool-card .tool-desc {
  font-size: .8125rem;
  color: var(--bs-secondary-color);
  line-height: 1.5;
}
.tool-card .tool-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  margin-left: auto;
  color: var(--bs-secondary-color);
}
.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table th {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bs-secondary-color);
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  white-space: nowrap;
}
.table td {
  font-size: .875rem;
  vertical-align: middle;
}
.table-card {
  border-radius: 0.875rem;
  border: 1px solid var(--bs-border-color);
  overflow: visible;
}
.table-card > .table-responsive,
.table-card > table {
  border-radius: 0.875rem;
  overflow: hidden;
}
.table-card .table {
  margin-bottom: 0;
}
[data-bs-theme="dark"] .table {
  --bs-table-striped-bg: rgba(255,255,255,.03);
  --bs-table-hover-bg:   rgba(255,255,255,.04);
}
[data-bs-theme="dark"] .table-light {
  --bs-table-bg: #1c2128;
  --bs-table-border-color: #30363d;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .02em;
  padding: .35em .65em;
}

/* ── Sidebar (admin) ──────────────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--app-sidebar-w);
  min-width: var(--app-sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--bs-border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow-y: auto;
  transition: transform 0.25s ease;
  z-index: 1040;
}
[data-bs-theme="dark"] .admin-sidebar {
  background: #0d1117;
  border-right-color: #21262d;
}
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.admin-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg);
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1039;
}
.sidebar-backdrop.show { display: block; }

/* Mobile: sidebar off-canvas */
@media (max-width: 767.98px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
  }
  .admin-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-content {
    width: 100%;
  }
}

/* Sidebar group labels */
.sidebar-group-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bs-secondary-color);
  padding: 1rem 0.75rem 0.3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bs-border-color);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border-left-color: var(--bs-border-color);
}
.sidebar-link.active {
  background: rgba(37,99,235,.08);
  color: var(--app-accent);
  font-weight: 600;
  border-left-color: var(--app-accent);
}
[data-bs-theme="dark"] .sidebar-link.active {
  background: rgba(37,99,235,.15);
  color: #60a5fa;
  border-left-color: #60a5fa;
}
.sidebar-link svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  opacity: .6;
}
.sidebar-link:hover svg {
  opacity: .82;
}
.sidebar-link.active svg {
  opacity: 1;
}
/* Admin panel brand badge */
.admin-badge {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--app-accent);
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .admin-badge {
  color: #60a5fa;
  background: rgba(37,99,235,.2);
  border-color: rgba(37,99,235,.35);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-sm {
  border-radius: 0.375rem;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(37,99,235,.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1e40af;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ── Form controls ────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  border-color: #2563eb;
}
.form-label {
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--bs-body-color);
}

/* ── Avatar initials ──────────────────────────────────────────────────────── */
.avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Code / pre ───────────────────────────────────────────────────────────── */
.code-block {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .8125rem;
  overflow-x: auto;
  white-space: pre;
}

/* ── Stat cards (dashboard) ───────────────────────────────────────────────── */
.stat-card {
  border-radius: 0.875rem;
  padding: 1.25rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: box-shadow 0.2s;
}
[data-bs-theme="dark"] .stat-card {
  background: #161b22;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  margin-top: .25rem;
}

/* ── Lookup result sections ───────────────────────────────────────────────── */
.result-section {
  border-radius: 0.875rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  overflow: hidden;
}
[data-bs-theme="dark"] .result-section {
  background: #161b22;
}
.result-section-header {
  background: var(--bs-tertiary-bg);
  padding: 0.75rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
}

/* ── Hero section (home page) ─────────────────────────────────────────────── */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.12) 0%, transparent 70%);
  pointer-events: none;
}
[data-bs-theme="dark"] .hero-section::before {
  background: radial-gradient(ellipse at center, rgba(37,99,235,.18) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.875rem;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--app-accent);
  margin-bottom: 1.25rem;
}
[data-bs-theme="dark"] .hero-badge {
  background: rgba(37,99,235,.15);
  border-color: rgba(96,165,250,.3);
  color: #60a5fa;
}
.hero-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--bs-secondary-color);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Quick lookup form (hero) ─────────────────────────────────────────────── */
.lookup-form {
  max-width: 560px;
  margin: 0 auto;
}
.lookup-form .input-group .form-control {
  border-radius: 0.625rem 0 0 0.625rem;
  height: 46px;
  font-size: .9375rem;
}
.lookup-form .input-group .btn {
  border-radius: 0 0.625rem 0.625rem 0;
  height: 46px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  margin-top: auto;
}
[data-bs-theme="dark"] .site-footer {
  background: #0d1117;
  border-top-color: #21262d;
}
.footer-brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 0.4375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-link {
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: .8125rem;
  transition: color 0.15s;
  display: block;
  padding: 0.2rem 0;
}
.footer-link:hover {
  color: var(--bs-body-color);
}
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.875rem;
  opacity: .7;
}


/* ── Dark mode toggle icon swap ───────────────────────────────────────────── */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-bs-theme="dark"] .icon-sun  { display: block; }
[data-bs-theme="dark"] .icon-moon { display: none; }

/* ── DNS scan animation ───────────────────────────────────────────────────── */
@keyframes scan-spin {
  to { transform: rotate(360deg); }
}
@keyframes scan-ping {
  0%   { transform: scale(1);   opacity: .6; }
  75%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes scan-dot {
  0%, 80%, 100% { transform: scale(0.4); opacity: .3; }
  40%           { transform: scale(1);   opacity: 1; }
}
.scan-card {
  border-radius: 0.875rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, transparent 60%);
  pointer-events: none;
}
[data-bs-theme="dark"] .scan-card {
  background: #161b22;
  border-color: #30363d;
}
.scan-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
}
.scan-ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  animation: scan-ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}
.scan-ping-ring.delay { animation-delay: .6s; }
.scan-icon-bg {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(37,99,235,.12);
  border: 2px solid rgba(37,99,235,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-bs-theme="dark"] .scan-icon-bg {
  background: rgba(37,99,235,.2);
  border-color: rgba(96,165,250,.3);
}
.scan-spinner-svg {
  animation: scan-spin 2s linear infinite;
  color: #2563eb;
}
[data-bs-theme="dark"] .scan-spinner-svg { color: #60a5fa; }
.scan-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: .75rem;
}
.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  animation: scan-dot 1.4s ease-in-out infinite;
}
[data-bs-theme="dark"] .scan-dot { background: #60a5fa; }
.scan-dot:nth-child(1) { animation-delay: 0s; }
.scan-dot:nth-child(2) { animation-delay: .2s; }
.scan-dot:nth-child(3) { animation-delay: .4s; }

/* ── DNS Diagnostic page animations ─────────────────────────────────────── */
@keyframes dns-row-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.dns-row-enter {
  animation: dns-row-in .22s cubic-bezier(.22,1,.36,1) both;
}

@keyframes dns-section-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dns-section-enter {
  animation: dns-section-in .28s cubic-bezier(.22,1,.36,1) both;
}

@keyframes dns-stat-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.dns-stat-pop {
  display: inline-block;
  animation: dns-stat-pop .25s ease;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.font-monospace-sm { font-family: ui-monospace, monospace; font-size: .8125rem; }
.min-w-0 { min-width: 0; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fw-650 { font-weight: 650; }
.opacity-60 { opacity: .6; }

/* ── Captcha challenge card ───────────────────────────────────────────────── */
@keyframes captcha-enter {
  from { opacity: 0; transform: translateY(-10px) scale(.99); }
  to   { opacity: 1; transform: translateY(0)      scale(1);  }
}
@keyframes captcha-glow {
  0%, 100% { box-shadow: 0 2px 14px rgba(234,88,12,.1),  0 1px 4px rgba(0,0,0,.06); }
  50%       { box-shadow: 0 2px 22px rgba(234,88,12,.22), 0 2px 8px rgba(0,0,0,.1);  }
}
@keyframes captcha-shake {
  0%, 100% { transform: translateX(0); }
  14%       { transform: translateX(-6px); }
  28%       { transform: translateX(6px); }
  42%       { transform: translateX(-4px); }
  57%       { transform: translateX(4px); }
  71%       { transform: translateX(-2px); }
  85%       { transform: translateX(2px); }
}
.captcha-challenge-card {
  border: 1.5px solid rgba(234,88,12,.4);
  border-left: 4px solid #ea580c;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 14px rgba(234,88,12,.1), 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
  animation: captcha-enter .35s cubic-bezier(.22,1,.36,1) both,
             captcha-glow 2.5s ease-in-out 2 .5s;
}
[data-bs-theme="dark"] .captcha-challenge-card {
  background: #1c1208;
  border-color: rgba(249,115,22,.4);
  border-left-color: #f97316;
  box-shadow: 0 2px 16px rgba(249,115,22,.14), 0 1px 4px rgba(0,0,0,.3);
}
.captcha-challenge-card.captcha-shake {
  animation: captcha-shake .5s cubic-bezier(.36,.07,.19,.97) both;
}
/* Header strip */
.captcha-challenge-hd {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  background: linear-gradient(to right, #fff7ed, #fefaf5);
  border-bottom: 1px solid rgba(234,88,12,.14);
}
[data-bs-theme="dark"] .captcha-challenge-hd {
  background: linear-gradient(to right, #1e1208, #221609);
  border-bottom-color: rgba(249,115,22,.18);
}
/* Body */
.captcha-challenge-bd {
  padding: .875rem 1rem;
}
.captcha-challenge-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(234,88,12,.12);
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-bs-theme="dark"] .captcha-challenge-icon {
  background: rgba(249,115,22,.18);
  color: #fb923c;
}
.captcha-challenge-title {
  font-weight: 700;
  font-size: .875rem;
  color: #c2410c;
  line-height: 1.2;
}
[data-bs-theme="dark"] .captcha-challenge-title { color: #fb923c; }
.captcha-required-badge {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(234,88,12,.1);
  color: #c2410c;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .captcha-required-badge {
  background: rgba(249,115,22,.18);
  color: #fb923c;
}
.captcha-challenge-desc {
  font-size: .8rem;
  color: #7c4a1e;
  line-height: 1.45;
  margin-bottom: .75rem;
}
[data-bs-theme="dark"] .captcha-challenge-desc { color: #c07040; }
.captcha-equation {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.captcha-math {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #c2410c;
  background: rgba(234,88,12,.08);
  padding: .35rem .875rem;
  border-radius: .5rem;
  letter-spacing: .04em;
  border: 1px solid rgba(234,88,12,.18);
  user-select: none;
}
[data-bs-theme="dark"] .captcha-math {
  color: #fb923c;
  background: rgba(249,115,22,.11);
  border-color: rgba(249,115,22,.22);
}
.captcha-answer-input {
  width: 5.25rem;
  padding: .45rem .65rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid rgba(234,88,12,.45);
  border-radius: .5rem;
  background: #fff;
  color: #1e293b;
  outline: none;
  font-family: ui-monospace, monospace;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.captcha-answer-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,.2);
  background: #fff7ed;
}
[data-bs-theme="dark"] .captcha-answer-input {
  background: #1a1008;
  color: #fde8d0;
  border-color: rgba(249,115,22,.45);
}
[data-bs-theme="dark"] .captcha-answer-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.22);
  background: #211408;
}
.captcha-hint {
  font-size: .75rem;
  color: #9a6236;
  font-style: italic;
}
[data-bs-theme="dark"] .captcha-hint { color: #a07040; }

/* Internal captcha image + refresh button */
.captcha-img {
  display: block;
  border-radius: .45rem;
  border: 1px solid rgba(234,88,12,.18);
  background: #f7f6f3;
  height: 54px;
  image-rendering: pixelated;
}
.captcha-img-text {
  display: inline-flex;
  align-items: center;
  padding: .3rem .75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: #f7f6f3;
  border-radius: .45rem;
  border: 1px solid rgba(234,88,12,.18);
  height: 54px;
}
[data-bs-theme="dark"] .captcha-img,
[data-bs-theme="dark"] .captcha-img-text {
  background: #1e1a14;
  border-color: rgba(249,115,22,.2);
}
.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  border: 1px solid rgba(234,88,12,.3);
  background: transparent;
  color: #ea580c;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, transform .25s cubic-bezier(.4,0,.2,1);
}
.captcha-refresh-btn:hover {
  background: rgba(234,88,12,.1);
  color: #c2410c;
  transform: rotate(180deg);
}
.captcha-refresh-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
[data-bs-theme="dark"] .captcha-refresh-btn { border-color: rgba(249,115,22,.3); color: #fb923c; }
[data-bs-theme="dark"] .captcha-refresh-btn:hover { background: rgba(249,115,22,.14); color: #fdba74; }

/* ── WHOIS / RDAP page ────────────────────────────────────────────────────── */
.whois-header-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: 1.25rem 1.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.whois-header-top {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
  margin-bottom: .875rem;
}
.whois-domain-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: var(--bs-body-color);
  word-break: break-all;
}
.whois-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 2rem;
  font-size: .78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.whois-status-registered  { background: #dcfce7; color: #15803d; }
.whois-status-available   { background: #fef9c3; color: #854d0e; }
[data-bs-theme="dark"] .whois-status-registered { background: #052e16; color: #4ade80; }
[data-bs-theme="dark"] .whois-status-available  { background: #1c1a08; color: #facc15; }

.whois-source-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.whois-proto-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 2rem;
  border: 1px solid;
}
.chip-available   { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.chip-unavailable { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.chip-neutral     { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }
[data-bs-theme="dark"] .chip-available   { background: #052e16; color: #4ade80; border-color: #166534; }
[data-bs-theme="dark"] .chip-unavailable { background: #2d0a0a; color: #f87171; border-color: #7f1d1d; }
[data-bs-theme="dark"] .chip-neutral     { background: #1e293b; color: #94a3b8; border-color: #334155; }

.whois-source-tabs {
  display: flex;
  background: var(--bs-tertiary-bg);
  border-radius: .5rem;
  padding: 3px;
  gap: 2px;
}
.whois-source-tab {
  padding: .3rem .875rem;
  border-radius: .375rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bs-secondary-color);
  transition: background .15s, color .15s;
}
.whois-source-tab:hover:not(.disabled):not(.active) {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}
.whois-source-tab.active {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.whois-source-tab.disabled {
  opacity: .4;
  pointer-events: none;
}
.whois-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
  padding: .3rem .6rem;
  border-radius: .375rem;
  transition: color .15s, background .15s;
}
.whois-refresh-btn:hover {
  color: var(--bs-body-color);
  background: var(--bs-secondary-bg);
}

.whois-dates-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.whois-date-card {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .625rem;
  padding: .875rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.whois-date-icon {
  width: 34px;
  height: 34px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whois-date-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bs-secondary-color);
  margin-bottom: .2rem;
}
.whois-date-value {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--bs-body-color);
  font-family: ui-monospace, monospace;
}
.whois-date-time {
  font-size: .7rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  font-family: ui-monospace, monospace;
  margin-top: .1rem;
}

.whois-card-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.whois-detail-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.whois-detail-row:last-child { border-bottom: none; }
.whois-detail-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  min-width: 10rem;
  flex-shrink: 0;
  margin-bottom: 0;
  padding-top: .125rem;
}
.whois-detail-value {
  font-size: .8125rem;
  color: var(--bs-body-color);
  margin-bottom: 0;
  word-break: break-all;
}

.whois-raw-toggle {
  background: none;
  border: none;
  color: var(--bs-body-color);
  cursor: pointer;
  transition: background .15s;
}
.whois-raw-toggle:hover { background: var(--bs-tertiary-bg); }
.whois-toggle-chevron { transition: transform .2s ease; flex-shrink: 0; }
.whois-raw-pre {
  padding: 1.25rem;
  font-size: .75rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 28rem;
  overflow-y: auto;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

/* Result section header (shared) */
.result-section-header {
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

/* ── WHOIS data-source toggle ─────────────────────────────────────────────── */
.whois-data-toggle {
  display: flex;
  gap: .5rem;
}
.wdt-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .7rem 1rem;
  border-radius: .625rem;
  border: 2px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  text-decoration: none;
  color: var(--bs-secondary-color);
  transition: border-color .15s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.wdt-option:hover {
  border-color: rgba(37,99,235,.4);
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  text-decoration: none;
}
.wdt-option.active {
  border-color: #2563eb;
  background: rgba(37,99,235,.06);
  color: var(--bs-body-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
[data-bs-theme="dark"] .wdt-option { background: #0d1117; border-color: #30363d; }
[data-bs-theme="dark"] .wdt-option:hover { background: #161b22; border-color: rgba(96,165,250,.4); }
[data-bs-theme="dark"] .wdt-option.active { border-color: #3b82f6; background: rgba(59,130,246,.1); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.wdt-option-disabled {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}
.wdt-top {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wdt-badge {
  font-size: .72rem;
  font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: .375rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  transition: background .15s;
}
.wdt-option.active .wdt-badge {
  background: #2563eb;
  color: #fff;
}
[data-bs-theme="dark"] .wdt-option.active .wdt-badge { background: #3b82f6; }
.wdt-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  line-height: 1.3;
}
.wdt-option.active .wdt-label { color: var(--bs-body-color); }

/* ── Cache Result Badge (.crb) ────────────────────────────────────────────── */
/* Shared entry animation */
@keyframes crb-in {
  from { opacity: 0; transform: translateY(5px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
/* Live-dot pulse for paid plans */
@keyframes crb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  50%       { opacity: .55; transform: scale(.72); box-shadow: 0 0 0 4px transparent; }
}
/* Re-run spin on hover */
@keyframes crb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.crb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .72rem .28rem .52rem;
  margin: .25rem 0;
  border-radius: 2rem;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  user-select: none;
}
/* Triggered by JS once results are ready */
.crb.crb-show {
  animation: crb-in .35s cubic-bezier(.22,.68,0,1.2) forwards;
}

/* Guest: muted / neutral */
.crb-guest {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .crb-guest {
  background: #161b22;
  border-color: #30363d;
  color: #8b949e;
}

/* Free plan: soft blue */
.crb-free {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
[data-bs-theme="dark"] .crb-free {
  background: #0d1b35;
  border-color: #1e3a6e;
  color: #93c5fd;
}

/* Pro plan: warm gold gradient */
.crb-pro {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  color: #78350f;
}
[data-bs-theme="dark"] .crb-pro {
  background: linear-gradient(135deg, #1c1200 0%, #2c1d00 100%);
  border-color: #d97706;
  color: #fcd34d;
}

/* Enterprise plan: purple gradient */
.crb-enterprise {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #8b5cf6;
  color: #4c1d95;
}
[data-bs-theme="dark"] .crb-enterprise {
  background: linear-gradient(135deg, #100825 0%, #1a0d3a 100%);
  border-color: #7c3aed;
  color: #c4b5fd;
}

/* Premium / custom paid plan: emerald */
.crb-premium {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  color: #064e3b;
}
[data-bs-theme="dark"] .crb-premium {
  background: linear-gradient(135deg, #061510 0%, #0a2218 100%);
  border-color: #059669;
  color: #6ee7b7;
}

/* Live pulse dot (Pro / Enterprise / Premium) */
.crb-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: crb-pulse 1.8s ease-in-out infinite;
}

/* Database icon wrapper (Guest / Free cached indicator) */
.crb-icon {
  flex-shrink: 0;
  opacity: .75;
}

/* Age / detail text */
.crb-sep { opacity: .35; margin: 0 .05rem; }
.crb-age { font-weight: 400; opacity: .8; }
.crb-detail { font-weight: 400; opacity: .85; }

/* Re-run button (paid plans only) */
.crb-rerun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: .2rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s, transform .25s cubic-bezier(.22,.68,0,1.4);
  flex-shrink: 0;
}
.crb-rerun:hover {
  opacity: 1;
  transform: rotate(200deg);
}
.crb-rerun.crb-rerun-spinning svg {
  animation: crb-spin .6s linear;
}

/* Responsive */
@media (max-width: 575px) {
  .crb { font-size: .68rem; padding: .24rem .6rem .24rem .44rem; gap: .35rem; }
  .crb-live-dot { width: 6px; height: 6px; }
  .crb-rerun { width: 18px; height: 18px; }
}

/* ── Result Meta Bar (.crb-bar) ─────────────────────────────────────────── */
@keyframes crb-bar-in {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.crb-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .875rem;
  margin-bottom: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-left: 3px solid #9ca3af;
  border-radius: .5rem;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
  animation: crb-bar-in .35s cubic-bezier(.22,.68,0,1.2) both;
  overflow: hidden;
}
[data-bs-theme="dark"] .crb-bar {
  background: #161b22;
  border-color: #30363d;
  border-left-color: #4b5563;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}
/* Plan-type accent: left border colour */
.crb-bar.crb-plan-pro                            { border-left-color: #3b82f6; }
.crb-bar.crb-plan-enterprise,
.crb-bar.crb-plan-premium                        { border-left-color: #8b5cf6; }
.crb-bar.crb-plan-free                           { border-left-color: #f59e0b; }
/* Tool icon circle */
.crb-bar-ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--bs-secondary-color);
}
.crb-plan-pro        .crb-bar-ic { background: #eff6ff; color: #3b82f6; }
.crb-plan-enterprise .crb-bar-ic,
.crb-plan-premium    .crb-bar-ic { background: #f5f3ff; color: #8b5cf6; }
.crb-plan-free       .crb-bar-ic { background: #fffbeb; color: #d97706; }
[data-bs-theme="dark"] .crb-plan-pro        .crb-bar-ic { background: rgba(59,130,246,.14); color: #60a5fa; }
[data-bs-theme="dark"] .crb-plan-enterprise .crb-bar-ic,
[data-bs-theme="dark"] .crb-plan-premium    .crb-bar-ic { background: rgba(139,92,246,.14); color: #a78bfa; }
[data-bs-theme="dark"] .crb-plan-free       .crb-bar-ic { background: rgba(245,158,11,.12); color: #fbbf24; }
/* Body: name + subtitle */
.crb-bar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crb-bar-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--bs-body-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crb-bar-sub {
  font-size: .7rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* DNS-specific: pills row below the name */
.crb-bar-dns-pills {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  margin-top: 1px;
}
/* Right: status section */
.crb-bar-status {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  text-align: right;
}
/* Status dot */
.crb-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9ca3af;
}
.crb-bar-dot-live {
  background: #22c55e;
  animation: crb-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes crb-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.crb-plan-free       .crb-bar-dot:not(.crb-bar-dot-live) { background: #f59e0b; }
.crb-plan-pro        .crb-bar-dot:not(.crb-bar-dot-live) { background: #3b82f6; }
.crb-plan-enterprise .crb-bar-dot:not(.crb-bar-dot-live),
.crb-plan-premium    .crb-bar-dot:not(.crb-bar-dot-live) { background: #8b5cf6; }
/* Status info block */
.crb-bar-info { display: flex; flex-direction: column; gap: 0; }
.crb-bar-plan-lbl {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bs-secondary-color);
}
.crb-plan-pro        .crb-bar-plan-lbl { color: #3b82f6; }
.crb-plan-enterprise .crb-bar-plan-lbl,
.crb-plan-premium    .crb-bar-plan-lbl { color: #8b5cf6; }
.crb-plan-free       .crb-bar-plan-lbl { color: #d97706; }
[data-bs-theme="dark"] .crb-plan-pro        .crb-bar-plan-lbl { color: #60a5fa; }
[data-bs-theme="dark"] .crb-plan-enterprise .crb-bar-plan-lbl,
[data-bs-theme="dark"] .crb-plan-premium    .crb-bar-plan-lbl { color: #a78bfa; }
[data-bs-theme="dark"] .crb-plan-free       .crb-bar-plan-lbl { color: #fbbf24; }
.crb-bar-plan-det {
  font-size: .67rem;
  color: var(--bs-secondary-color);
  line-height: 1.3;
}
/* Re-run button */
.crb-bar-rerun {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: none;
  color: var(--bs-secondary-color);
  cursor: pointer;
  transition: color .2s, background .2s, transform .32s;
  padding: 0; flex-shrink: 0;
}
.crb-bar-rerun:hover {
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  transform: rotate(180deg);
}
.crb-bar-rerun svg { pointer-events: none; }
@media (max-width: 575px) {
  .crb-bar { padding: .45rem .6rem; gap: .5rem; }
  .crb-bar-ic { width: 30px; height: 30px; }
  .crb-bar-ic svg { width: 14px; height: 14px; }
  .crb-bar-name { font-size: .8rem; }
  .crb-bar-plan-det { display: none; }
}

/* ── WHOIS mobile responsiveness ─────────────────────────────────────────── */
@media (max-width: 575px) {
  /* Stack toggle options vertically on small screens */
  .whois-data-toggle {
    flex-direction: column;
  }
  .wdt-option {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .6rem .875rem;
  }
  .wdt-top {
    flex-shrink: 0;
    gap: .4rem;
  }
  .wdt-label {
    flex: 1;
    font-size: .75rem;
  }

  /* Shrink domain name so long names don't overflow */
  .whois-domain-name {
    font-size: 1.1rem;
  }

  /* Stack label/value pairs in detail rows */
  .whois-detail-row {
    flex-direction: column;
    gap: .15rem;
    padding: .55rem 1rem;
  }
  .whois-detail-label {
    min-width: unset;
  }



  /* Date cards take full width on xs */
  .whois-date-card {
    min-width: 100%;
  }
}

@media (max-width: 399px) {
  .whois-header-card {
    padding: 1rem .875rem;
  }
}

/* ── DNSSEC Validator page ────────────────────────────────────────────────── */

/* Score ring */
.dnssec-score-ring {
  position: relative;
  width: 5rem;
  height: 5rem;
}
.dnssec-score-svg {
  width: 5rem;
  height: 5rem;
}
.dnssec-score-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* AD bit chip row */
.dnssec-ad-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.dnssec-ad-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-family: var(--bs-font-monospace);
  border: 1px solid;
}
.dnssec-ad-ok   { background: #f0fdf4; color: #16a34a; border-color: #86efac; }
.dnssec-ad-warn { background: #fffbeb; color: #ca8a04; border-color: #fde68a; }
.dnssec-ad-error{ background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border-color: var(--bs-border-color); }
.dnssec-ad-dot  { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

[data-bs-theme="dark"] .dnssec-ad-ok   { background: #052e16; color: #4ade80; border-color: #166534; }
[data-bs-theme="dark"] .dnssec-ad-warn { background: #1c1a08; color: #facc15; border-color: #713f12; }

/* Chain of trust links */
.dnssec-chain-link {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--link-bg, #f9fafb);
  border: 1px solid color-mix(in srgb, var(--link-color, #6b7280) 25%, transparent);
}
[data-bs-theme="dark"] .dnssec-chain-link {
  background: color-mix(in srgb, var(--link-color, #6b7280) 10%, #161b22);
}
.dnssec-chain-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--link-color, #6b7280) 15%, transparent);
  color: var(--link-color, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dnssec-chain-level-badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--link-color, #6b7280) 18%, transparent);
  color: var(--link-color, #6b7280);
}

/* Validation log rows */
.dnssec-log-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.dnssec-log-row:last-child { border-bottom: none; }
.dnssec-log-ok   { background: #f0fdf4; }
.dnssec-log-fail { background: #fef2f2; }
.dnssec-log-warn { background: #fffbeb; }
.dnssec-log-info { background: transparent; }
[data-bs-theme="dark"] .dnssec-log-ok   { background: #052e16; }
[data-bs-theme="dark"] .dnssec-log-fail { background: #3b0000; }
[data-bs-theme="dark"] .dnssec-log-warn { background: #1c1a08; }

/* Resolver radio picker */
.dnssec-resolver-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.dnssec-res-opt {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .85rem .45rem .6rem;
  border-radius: 999px;
  border: 1.5px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
}
.dnssec-res-opt:hover {
  border-color: #0d6efd;
  background: color-mix(in srgb, #0d6efd 6%, var(--bs-body-bg));
}
.dnssec-res-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* Custom radio circle */
.dnssec-res-mark {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid #adb5bd;
  background: var(--bs-body-bg);
  transition: border-color .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dnssec-res-mark::after {
  content: '';
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
/* Selected state */
.dnssec-res-opt:has(.dnssec-res-input:checked) {
  border-color: #0d6efd;
  background: color-mix(in srgb, #0d6efd 8%, var(--bs-body-bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, #0d6efd 18%, transparent);
}
.dnssec-res-opt:has(.dnssec-res-input:checked) .dnssec-res-mark {
  border-color: #0d6efd;
  background: #0d6efd;
}
.dnssec-res-opt:has(.dnssec-res-input:checked) .dnssec-res-mark::after {
  background: #fff;
}
/* Provider color dot */
.dnssec-res-dot {
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}
/* Text block */
.dnssec-res-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.dnssec-res-name {
  font-weight: 500;
  color: var(--bs-body-color);
}
.dnssec-res-ip {
  font-size: .75rem;
  color: var(--bs-secondary-color);
  font-family: var(--bs-font-monospace, monospace);
}
/* Dark mode tweaks */
[data-bs-theme="dark"] .dnssec-res-opt:hover {
  background: color-mix(in srgb, #0d6efd 10%, var(--bs-body-bg));
}
[data-bs-theme="dark"] .dnssec-res-opt:has(.dnssec-res-input:checked) {
  background: color-mix(in srgb, #0d6efd 15%, var(--bs-body-bg));
}
/* Custom resolver input row */
#customResolverWrap {
  display: none;
}
#customResolverWrap.visible {
  display: flex;
}

/* ── Propagation skeleton loaders ────────────────────────────────────────── */
@keyframes prop-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.prop-skeleton-card {
  border-radius: .5rem;
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
}
.prop-skeleton-bar {
  height: .85rem;
  border-radius: .3rem;
  background: linear-gradient(90deg,
    var(--bs-tertiary-bg) 25%,
    var(--bs-secondary-bg) 50%,
    var(--bs-tertiary-bg) 75%);
  background-size: 600px 100%;
  animation: prop-shimmer 1.5s ease-in-out infinite;
}
.prop-skeleton-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}
.prop-skeleton-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.prop-skeleton-row:last-child { border-bottom: none; }

/* ── Propagation live animations ─────────────────────────────────────────── */

/* Spinner pulse ring */
.prop-spinner-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@keyframes prop-spin-ring {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(2.6); opacity: 0;  }
}
.prop-strip-scanning .prop-spinner-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #0d6efd;
  animation: prop-spin-ring 1.6s ease-out infinite;
}

/* Live dot next to scan message */
@keyframes prop-live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.7); }
}
.prop-live-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #0d6efd;
  flex-shrink: 0;
  animation: prop-live-blink 1.2s ease-in-out infinite;
}
.prop-live-dot.prop-live-dot-done {
  background: #22c55e;
  animation: none;
}

/* Scanner beam on scan strip card */
@keyframes prop-beam {
  0%   { left: -35%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
.prop-strip-scanning {
  position: relative;
  overflow: hidden;
}
.prop-strip-scanning::after {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13,110,253,.07), transparent);
  animation: prop-beam 3s ease-in-out infinite;
  pointer-events: none;
}
[data-bs-theme="dark"] .prop-strip-scanning::after {
  background: linear-gradient(90deg, transparent, rgba(99,155,255,.09), transparent);
}

/* Hero card pulse border while scanning */
@keyframes prop-hero-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,110,253,.0),
               var(--bs-box-shadow-sm, 0 .125rem .25rem rgba(0,0,0,.075)); }
  50%       { box-shadow: 0 0 0 3px rgba(13,110,253,.14),
               var(--bs-box-shadow-sm, 0 .125rem .25rem rgba(0,0,0,.075)); }
}
.prop-hero-scanning {
  animation: prop-hero-glow 2.4s ease-in-out infinite;
}

/* Radar sweep inside the hero ring */
.prop-radar-wrap {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.prop-radar-wrap.prop-radar-done {
  opacity: 0;
}
@keyframes prop-radar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.prop-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, transparent 60%, rgba(13,110,253,.3) 100%);
  animation: prop-radar 2.2s linear infinite;
}

/* Row slide-in as resolver results arrive */
@keyframes prop-row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.prop-row-enter {
  animation: prop-row-in .2s ease both;
}

/* Stat counter pop on update */
@keyframes prop-stat-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.prop-stat-pop {
  display: inline-block;
  animation: prop-stat-pop .28s ease;
}

/* ── Propagation record-type selector ────────────────────────────────────── */
.prop-type-track {
  position: relative;
}
.prop-type-track::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 2px;
  width: 2.5rem;
  background: linear-gradient(to right, transparent, var(--bs-body-bg));
  pointer-events: none;
}
.prop-type-scroll {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.prop-type-scroll::-webkit-scrollbar { display: none; }
.prop-type-opt {
  position: relative;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.prop-type-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  padding: .45rem .75rem;
  border-radius: .5rem;
  border: 1.5px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: border-color .12s, background .12s, box-shadow .12s;
  cursor: pointer;
}
.prop-type-abbr {
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace, monospace);
  letter-spacing: .02em;
  color: var(--bs-body-color);
  line-height: 1;
  transition: color .12s;
}
.prop-type-hint {
  font-size: .58rem;
  color: var(--bs-secondary-color);
  line-height: 1;
  white-space: nowrap;
  transition: color .12s;
}
.prop-type-opt:hover .prop-type-label { border-color: #2563eb; background: rgba(37,99,235,.05); }
.prop-type-opt:hover .prop-type-abbr  { color: #2563eb; }
.prop-type-opt:has(.prop-type-input:checked) .prop-type-label {
  background: #2563eb; border-color: #2563eb;
  box-shadow: 0 1px 6px rgba(37,99,235,.4);
}
.prop-type-opt:has(.prop-type-input:checked) .prop-type-abbr { color: #fff; }
.prop-type-opt:has(.prop-type-input:checked) .prop-type-hint { color: rgba(255,255,255,.72); }
[data-bs-theme="dark"] .prop-type-opt:has(.prop-type-input:checked) .prop-type-label {
  box-shadow: 0 1px 8px rgba(37,99,235,.55);
}

/* ── IP Intelligence page ─────────────────────────────────────────────────── */
.ip-dnsbl-row {
  border-color: var(--bs-border-color) !important;
  transition: background .12s;
}
.ip-dnsbl-row:last-child { border-bottom: none !important; }
.ip-dnsbl-row:hover { background: var(--bs-tertiary-bg); }

.ip-dnsbl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ip-dnsbl-dot-clean  { background: #22c55e; }
.ip-dnsbl-dot-listed { background: #ef4444; }

[data-bs-theme="dark"] .ip-dnsbl-dot-clean  { background: #4ade80; }
[data-bs-theme="dark"] .ip-dnsbl-dot-listed { background: #f87171; }

/* ── DNIX Animated Logo ───────────────────────────────────────────────────── */
.dnix-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1;
  vertical-align: middle;
}

/* Letter base */
.dnix-logo .dl {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
  /* Fixed slot width prevents layout shift during scramble animation */
  width: 0.73em;
  text-align: center;
  overflow: hidden;
  will-change: color, text-shadow, transform;
  color: transparent;
  text-shadow: none;
  transition: color 0.2s, text-shadow 0.3s;
}
/* Middle dot — between D and NIX */
.dnix-logo .dnix-dot {
  width: 0.44em;
}
/* "I" is narrower — 4th child in new order: D · N I X */
.dnix-logo .dl:nth-child(4) {
  width: 0.36em;
}
/* "X" is slightly narrower */
.dnix-logo .dl:nth-child(5) {
  width: 0.70em;
}
/* Cursor dot at end — visibility:hidden reserves the slot without fighting the opacity animation */
.dnix-logo .dnix-cursor {
  width: 0.44em;
  visibility: hidden;
  opacity: 1;
}
.dnix-logo .dnix-cursor.active {
  visibility: visible;
  animation: dnix-cursor-blink 1.1s step-start infinite;
}

/* Size variants */
.dnix-logo-nav .dl { font-size: 2.15rem; }
.dnix-logo-sm  .dl { font-size: 1.6rem; }

/* Animations */
@keyframes dnix-flicker { 0% { opacity: 1; } 50% { opacity: 0.65; } }
@keyframes dnix-cursor-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes dnix-pop {
  0%   { transform: scale(1.07, 0.95); }
  45%  { transform: scale(0.97, 1.02); }
  72%  { transform: scale(1.01, 0.99); }
  100% { transform: scale(1, 1); }
}

/* Dark theme */
[data-bs-theme="dark"] .dnix-logo .dl.on  { color: #60a5fa; text-shadow: 0 0 2px rgba(96,165,250,.7), 0 0 5px rgba(59,130,246,.25), 0 0 10px rgba(59,130,246,.07); animation: dnix-flicker .09s step-start infinite; }
[data-bs-theme="dark"] .dnix-logo .dl.set { color: #ffffff;  text-shadow: 0 0 2px rgba(255,255,255,.85), 0 0 5px rgba(96,165,250,.38), 0 0 10px rgba(59,130,246,.12), 0 0 18px rgba(59,130,246,.03); animation: dnix-pop .35s cubic-bezier(.22,1,.36,1) forwards; }
[data-bs-theme="dark"] .dnix-logo .dl.out { color: #60a5fa; text-shadow: 0 0 2px rgba(96,165,250,.55), 0 0 5px rgba(59,130,246,.2), 0 0 10px rgba(59,130,246,.05); animation: dnix-flicker .09s step-start infinite; opacity: .7; }
[data-bs-theme="dark"] .dnix-logo .dnix-dot          { color: transparent; text-shadow: none; transition: color .3s, text-shadow .4s; }
[data-bs-theme="dark"] .dnix-logo .dnix-dot.set      { color: #3b82f6; text-shadow: 0 0 2px rgba(59,130,246,.9), 0 0 5px rgba(37,99,235,.45), 0 0 10px rgba(37,99,235,.14), 0 0 18px rgba(37,99,235,.03); }
[data-bs-theme="dark"] .dnix-logo .dnix-dot.out      { color: rgba(37,99,235,.4); text-shadow: none; transition: color .15s; }
[data-bs-theme="dark"] .dnix-logo .dnix-cursor       { color: #2563eb; text-shadow: 0 0 2px rgba(59,130,246,.9), 0 0 5px rgba(37,99,235,.45), 0 0 10px rgba(37,99,235,.14); }

/* Light theme */
[data-bs-theme="light"] .dnix-logo .dl.on  { color: #3b82f6; text-shadow: 0 0 2px rgba(59,130,246,.5), 0 0 5px rgba(37,99,235,.2), 0 0 10px rgba(37,99,235,.05); animation: dnix-flicker .09s step-start infinite; }
[data-bs-theme="light"] .dnix-logo .dl.set { color: #09090f; text-shadow: 0 0 2px rgba(59,130,246,.3), 0 0 5px rgba(37,99,235,.14), 0 0 10px rgba(37,99,235,.04), 0 0 18px rgba(37,99,235,.01); animation: dnix-pop .35s cubic-bezier(.22,1,.36,1) forwards; }
[data-bs-theme="light"] .dnix-logo .dl.out { color: #3b82f6; text-shadow: 0 0 2px rgba(59,130,246,.4), 0 0 5px rgba(37,99,235,.16), 0 0 10px rgba(37,99,235,.04); animation: dnix-flicker .09s step-start infinite; opacity: .7; }
[data-bs-theme="light"] .dnix-logo .dnix-dot         { color: transparent; text-shadow: none; transition: color .3s, text-shadow .4s; }
[data-bs-theme="light"] .dnix-logo .dnix-dot.set     { color: #2563eb; text-shadow: 0 0 2px rgba(37,99,235,.8), 0 0 5px rgba(37,99,235,.35), 0 0 10px rgba(37,99,235,.1), 0 0 18px rgba(37,99,235,.02); }
[data-bs-theme="light"] .dnix-logo .dnix-dot.out     { color: rgba(37,99,235,.35); text-shadow: none; transition: color .15s; }
[data-bs-theme="light"] .dnix-logo .dnix-cursor      { color: #2563eb; text-shadow: 0 0 2px rgba(37,99,235,.8), 0 0 5px rgba(37,99,235,.35), 0 0 10px rgba(37,99,235,.1); }

/* ── Status pills — shared across DNS summary bar, etc. ───────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 9999px; padding: .25rem .75rem;
  font-size: .78rem; font-weight: 600; border: 1px solid;
}
.status-pill-pass { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.status-pill-fail { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.status-pill-warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-pill-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
[data-bs-theme="dark"] .status-pill-pass { background: #052e16; color: #4ade80; border-color: #166534; }
[data-bs-theme="dark"] .status-pill-fail { background: #3b0000; color: #f87171; border-color: #7f1d1d; }
[data-bs-theme="dark"] .status-pill-warn { background: #1c1a08; color: #facc15; border-color: #713f12; }
[data-bs-theme="dark"] .status-pill-info { background: #172554; color: #93c5fd; border-color: #1e40af; }

/* ── DNS result-row status icon badge ─────────────────────────────────────── */
.dns-si {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: .375rem; font-weight: 700; margin-top: 1px;
  width: 1.5rem; height: 1.5rem; font-size: .7rem;
}
.dns-si-pass { background: #f0fdf4; color: #16a34a; }
.dns-si-fail { background: #fef2f2; color: #dc2626; }
.dns-si-warn { background: #fffbeb; color: #d97706; }
.dns-si-info { background: #eff6ff; color: #2563eb; }
.dns-si-skip { background: #f1f5f9; color: #94a3b8; }
[data-bs-theme="dark"] .dns-si-pass { background: #052e16; color: #4ade80; }
[data-bs-theme="dark"] .dns-si-fail { background: #3b0000; color: #f87171; }
[data-bs-theme="dark"] .dns-si-warn { background: #1c1a08; color: #fbbf24; }
[data-bs-theme="dark"] .dns-si-info { background: #172554; color: #93c5fd; }
[data-bs-theme="dark"] .dns-si-skip { background: #1e293b; color: #94a3b8; }

/* ── DNS quick-check category pills (pre-results form) ────────────────────── */
.dns-check-pill {
  display: inline-block; font-size: .72rem; font-weight: 500;
  background: var(--bs-tertiary-bg); color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  padding: .2rem .6rem; border-radius: 9999px;
}

/* ── Batch score-ring SVG track ───────────────────────────────────────────── */
.batch-ring-track { stroke: #e2e8f0; }
[data-bs-theme="dark"] .batch-ring-track { stroke: #30363d; }

/* ── Batch domain counter dark mode ───────────────────────────────────────── */
[data-bs-theme="dark"] .batch-domain-counter.ok   { background: #052e16; color: #4ade80; }
[data-bs-theme="dark"] .batch-domain-counter.warn { background: #1c1a08; color: #facc15; }
[data-bs-theme="dark"] .batch-domain-counter.over { background: #3b0000; color: #f87171; }

/* ── Batch breakdown table footer ─────────────────────────────────────────── */
.batch-tfoot-row {
  background: var(--bs-tertiary-bg);
  border-top: 2px solid var(--bs-border-color) !important;
}

/* ── DKIM selector header (email forensic) ────────────────────────────────── */
.dkim-sel-header { background: var(--bs-tertiary-bg) !important; }

/* ── Form submit button loading state ─────────────────────────────────────── */
.btn-loading { position: relative; pointer-events: none; opacity: .8; }
.btn-loading::after {
  content: '';
  position: absolute;
  right: .75rem; top: 50%;
  margin-top: -7px;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   Compare page — animations & score components
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes cmp-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cmp-fade-in { animation: cmp-fade-up .38s ease both; }
.cmp-ring-arc {
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1), stroke 1.1s ease;
}
.cmp-score-bar {
  width: 0% !important;
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}
@keyframes cmp-row-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cmp-row-enter { animation: cmp-row-in .22s ease both; }

/* ════════════════════════════════════════════════════════════════════════════
   Batch page — card animations & counters
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes batch-row-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.batch-card-animate { animation: batch-row-in .32s ease both; }
.batch-ring-fill {
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.2s cubic-bezier(.22,1,.36,1);
}
.batch-domain-counter {
  font-size: .72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  transition: background .2s, color .2s;
}
.batch-domain-counter.ok   { background: #dcfce7; color: #166534; }
.batch-domain-counter.warn { background: #fef9c3; color: #854d0e; }
.batch-domain-counter.over { background: #fee2e2; color: #991b1b; }

/* ════════════════════════════════════════════════════════════════════════════
   CT Logs page — loading card, results, host tags
   ════════════════════════════════════════════════════════════════════════════ */
.ctlog-loading-card {
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden;
}
.ctlog-loading-body { padding: 3rem 2rem; text-align: center; }
.ctlog-icon-wrap {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  width: 72px; height: 72px;
}
.ctlog-icon-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: #2563eb;
  animation: ctlog-ring-spin 1.1s linear infinite;
}
.ctlog-icon-ring-2 {
  inset: 8px; border-top-color: #93c5fd;
  animation-duration: 1.7s; animation-direction: reverse;
}
.ctlog-icon-cert { color: #2563eb; animation: ctlog-pulse 2s ease-in-out infinite; }
@keyframes ctlog-ring-spin { to { transform: rotate(360deg); } }
@keyframes ctlog-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.92)} }
.ctlog-steps { display: inline-flex; flex-direction: column; gap: .6rem; text-align: left; }
.ctlog-step {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: #1d4ed8; font-weight: 500;
  transition: opacity .4s, color .4s;
}
.ctlog-step-pending { color: var(--bs-secondary-color, #6c757d); font-weight: 400; }
.ctlog-step-done { color: #16a34a; }
.ctlog-step-done .ctlog-step-dot { background: #16a34a; }
.ctlog-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0; transition: background .4s;
}
.ctlog-step:not(.ctlog-step-pending):not(.ctlog-step-done) .ctlog-step-dot {
  animation: ctlog-dot-pulse 1s ease-in-out infinite;
}
@keyframes ctlog-dot-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:.5} }
.ctlog-progress-track {
  height: 5px; max-width: 22rem;
  background: var(--bs-border-color, #dee2e6);
  border-radius: 99px; overflow: hidden;
}
.ctlog-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 99px; transition: width .6s ease;
}
.ctlog-status-label { font-size: 1rem; color: var(--bs-body-color); }
@keyframes ctlog-fadein { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.ctlog-fade-in { animation: ctlog-fadein .4s ease both; }
.ctlog-ca-track { height: 5px; background: var(--bs-border-color, #e5e7eb); border-radius: 99px; overflow: hidden; }
.ctlog-ca-bar   { height: 100%; border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.4,0,.2,1); }
.ctlog-host-tag {
  display: inline-flex; align-items: center; gap: 1px;
  padding: .15rem .5rem; border-radius: 4px; font-size: .7rem;
  font-family: var(--bs-font-monospace, monospace);
  background: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-secondary-color, #6c757d);
  border: 1px solid var(--bs-border-color, #dee2e6);
}
.ctlog-host-wild { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ctlog-wild-star { font-weight: 700; color: #2563eb; }
.ctlog-domain-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .5rem;
  background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-bs-theme="dark"] .ctlog-loading-card                                      { background: var(--bs-body-bg); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .ctlog-icon-ring                                        { border-top-color: #60a5fa; }
[data-bs-theme="dark"] .ctlog-icon-ring-2                                       { border-top-color: #3b82f6; }
[data-bs-theme="dark"] .ctlog-icon-cert                                         { color: #60a5fa; }
[data-bs-theme="dark"] .ctlog-step:not(.ctlog-step-pending):not(.ctlog-step-done) { color: #93c5fd; }
[data-bs-theme="dark"] .ctlog-step-done                                         { color: #4ade80; }
[data-bs-theme="dark"] .ctlog-step-done .ctlog-step-dot                         { background: #4ade80; }
[data-bs-theme="dark"] .ctlog-progress-fill                                     { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
[data-bs-theme="dark"] .ctlog-host-wild   { background: rgba(29,78,216,.15); color: #93c5fd; border-color: rgba(147,197,253,.2); }
[data-bs-theme="dark"] .ctlog-wild-star   { color: #60a5fa; }
[data-bs-theme="dark"] .ctlog-domain-icon { background: rgba(96,165,250,.1); color: #60a5fa; }

/* ════════════════════════════════════════════════════════════════════════════
   Footer — India tricolor animation (layout/base.php)
   ════════════════════════════════════════════════════════════════════════════ */
.ip {
  display: inline-flex; align-items: center;
  gap: 9px; cursor: default; user-select: none;
}
.ip-blocks { display: inline-flex; gap: 0; flex-shrink: 0; }
@keyframes ip-block-in {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
.ip-block {
  width: 10px; height: 10px; border-radius: 0;
  animation: ip-block-in .4s cubic-bezier(.34,1.56,.64,1) both;
}
.ip-block:nth-child(1) { background: #FF9933; animation-delay: .5s; }
.ip-block:nth-child(2) { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); animation-delay: .65s; }
.ip-block:nth-child(3) { background: #138808; animation-delay: .8s; }
@keyframes ip-type {
  from { max-width: 0; }
  to   { max-width: 520px; }
}
.ip-label {
  font-size: .8125rem; letter-spacing: .015em;
  color: var(--bs-secondary-color); white-space: nowrap;
  overflow: hidden; width: max-content; max-width: 0;
  user-select: text;
  animation: ip-type 1.4s steps(53, end) .95s both;
}

/* ════════════════════════════════════════════════════════════════════════════
   Account Settings page
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes acctPaneIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.tab-pane.show.active { animation: acctPaneIn .2s ease both; }
@keyframes acctUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.au1 { animation: acctUp .26s ease .04s both; }
.au2 { animation: acctUp .26s ease .10s both; }
.au3 { animation: acctUp .26s ease .16s both; }
.au4 { animation: acctUp .26s ease .22s both; }
/* ── Hero card ─────────────────────────────────────────────── */
.acct-hero-card { border-radius: 1rem !important; }
.acct-hero-top {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
/* Avatar with gradient ring */
.acct-hero-avatar-wrap { position: relative; flex-shrink: 0; }
.acct-hero-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent,#2563eb) 0%, #6366f1 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -.02em;
  box-shadow: 0 0 0 3px var(--bs-body-bg), 0 0 0 5px rgba(99,102,241,.35);
  animation: acctAvatarPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes acctAvatarPop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.acct-hero-avatar-status {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bs-body-bg);
}
.acct-hero-avatar-status.is-active    { background: #22c55e; }
.acct-hero-avatar-status.is-suspended { background: #ef4444; }
/* Pills */
.acct-hero-pill {
  font-size: .7rem; font-weight: 600; padding: .2em .65em;
  border-radius: 20px; border: 1px solid transparent;
  animation: acctUp .3s ease both;
}
.acct-hero-pill-plan {
  background: rgba(99,102,241,.1); color: #6366f1;
  border-color: rgba(99,102,241,.25);
}
.acct-hero-pill-admin {
  background: rgba(234,179,8,.12); color: #a16207;
  border-color: rgba(234,179,8,.3);
}
[data-bs-theme="dark"] .acct-hero-pill-admin { color: #fde047; }
.acct-hero-pill-active {
  background: rgba(34,197,94,.1); color: #16a34a;
  border-color: rgba(34,197,94,.25);
}
[data-bs-theme="dark"] .acct-hero-pill-active { color: #4ade80; }
.acct-hero-pill-suspended {
  background: rgba(239,68,68,.1); color: #dc2626;
  border-color: rgba(239,68,68,.25);
}
/* Meta row */
.acct-hero-meta {
  font-size: .8rem; color: var(--bs-secondary-color);
  display: flex; align-items: center; gap: .35rem;
}
.acct-hero-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--bs-secondary-color); opacity: .5; flex-shrink: 0;
}
/* Stats row */
.acct-hero-stats {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.acct-hero-stat-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.25rem; flex: 1; min-width: 130px;
  border-right: 1px solid var(--bs-border-color);
  animation: acctUp .32s ease both;
}
.acct-hero-stat-item:last-child { border-right: 0; }
@media (max-width: 575px) {
  .acct-hero-stat-item {
    min-width: 50%; flex: 0 0 50%;
    border-right: 0; border-bottom: 1px solid var(--bs-border-color);
  }
  .acct-hero-stat-item:nth-child(odd)  { border-right: 1px solid var(--bs-border-color); }
  .acct-hero-stat-item:last-child, .acct-hero-stat-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.acct-hero-stat-icon { color: var(--bs-secondary-color); opacity: .7; flex-shrink: 0; }
.acct-hero-stat-label {
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--bs-secondary-color); margin-bottom: 1px;
}
.acct-hero-stat-val  { font-size: .92rem; font-weight: 700; color: var(--bs-body-color); line-height: 1.1; }
.acct-hero-stat-sub  { font-size: .75rem; font-weight: 400; color: var(--bs-secondary-color); }
/* ── Sidebar ────────────────────────────────────────────────── */
.acct-sidebar-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .875rem;
  overflow: hidden;
  box-shadow: var(--bs-box-shadow-sm);
}
.acct-sidebar-section-label {
  padding: .6rem 1rem .4rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--bs-secondary-color);
}
.acct-nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .52rem 1rem; font-size: .84rem; font-weight: 500;
  color: var(--bs-secondary-color); text-decoration: none;
  border-radius: .5rem; margin: 1px .4rem;
  transition: color .13s, background .13s;
  position: relative;
}
.acct-nav-link:hover {
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
}
.acct-nav-link.active {
  color: #6366f1;
  background: rgba(99,102,241,.1);
  font-weight: 600;
}
[data-bs-theme="dark"] .acct-nav-link.active { background: rgba(99,102,241,.18); }
.acct-nav-icon {
  width: 28px; height: 28px; border-radius: .4rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bs-tertiary-bg);
  transition: background .13s;
}
.acct-nav-link.active .acct-nav-icon {
  background: rgba(99,102,241,.15);
  color: #6366f1;
}
.acct-nav-link:hover .acct-nav-icon { background: var(--bs-border-color); }
.acct-nav-link-ext { font-weight: 400; opacity: .85; }
.acct-nav-link-ext:hover { opacity: 1; }

/* ── New API Key banner ── */
.newkey-banner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-body-bg) 88%, #8b5cf6), color-mix(in srgb, var(--bs-body-bg) 94%, #8b5cf6));
  border: 1.5px solid rgba(139,92,246,.45);
  border-radius: 12px;
  padding: 18px 20px 16px;
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: 0 0 0 4px rgba(139,92,246,.08), 0 4px 20px rgba(139,92,246,.12);
}
.newkey-banner-top {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.newkey-banner-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: rgba(139,92,246,.15); display: flex; align-items: center; justify-content: center;
}
.newkey-banner-text { flex: 1; min-width: 0; }
.newkey-banner-title {
  font-size: 1rem; font-weight: 700; color: var(--bs-body-color); margin-bottom: 4px;
}
.newkey-banner-sub {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: .82rem; color: var(--bs-secondary-color); line-height: 1.5;
}
.newkey-banner-close {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--bs-secondary-color); opacity: .5; flex-shrink: 0;
  transition: opacity .15s; border-radius: 5px;
}
.newkey-banner-close:hover { opacity: 1; background: var(--bs-tertiary-bg); }
.newkey-banner-key-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bs-body-bg); border: 1.5px solid rgba(139,92,246,.3);
  border-radius: 8px; padding: 10px 14px;
}
.newkey-banner-code {
  flex: 1; font-family: monospace; font-size: .88rem; letter-spacing: .04em;
  color: var(--bs-body-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: all; cursor: text;
}
.newkey-banner-copy {
  display: flex; align-items: center; gap: 6px;
  background: #8b5cf6; color: #fff; border: none; border-radius: 6px;
  font-size: .78rem; font-weight: 700; padding: .4rem .9rem;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.newkey-banner-copy:hover { background: #7c3aed; transform: translateY(-1px); }
.newkey-banner-copy:active { transform: translateY(0); }
.newkey-banner-copy-done { background: #22c55e !important; }
.acct-sidebar-divider {
  height: 1px; background: var(--bs-border-color);
  margin: .5rem .8rem;
  opacity: .6;
}
.acct-sidebar-footer {
  margin-top: .35rem;
  padding: .65rem .85rem;
  border-top: 1px solid var(--bs-border-color);
}
.acct-sidebar-back {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--bs-secondary-color); text-decoration: none;
  padding: .35rem .5rem; border-radius: .4rem;
  transition: color .13s, background .13s;
}
.acct-sidebar-back:hover { color: var(--bs-body-color); background: var(--bs-tertiary-bg); }
.acct-section-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}
/* ── Usage card (replaces old blue banner) ─────────────────── */
.acct-plan-strip {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .65rem 1.1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.acct-plan-icon {
  width: 26px; height: 26px; border-radius: .4rem;
  background: rgba(99,102,241,.12); color: #6366f1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-bs-theme="dark"] .acct-plan-icon { background: rgba(99,102,241,.22); }
.acct-plan-chip {
  font-size: .72rem; color: var(--bs-secondary-color);
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: 20px; padding: .15em .6em; white-space: nowrap;
}
.acct-upgrade-btn {
  font-size: .75rem; font-weight: 600; padding: .28rem .75rem;
  border: 1.5px solid rgba(99,102,241,.5); color: #6366f1;
  background: rgba(99,102,241,.07); border-radius: .45rem;
  transition: background .15s, border-color .15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.acct-upgrade-btn:hover { background: rgba(99,102,241,.14); border-color: #6366f1; color: #6366f1; }
.acct-usage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 575px) {
  .acct-usage-grid { grid-template-columns: 1fr; }
  .acct-usage-cell-mid {
    border-left: 0 !important; border-right: 0 !important;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
  }
}
.acct-usage-cell { padding: .9rem 1.1rem; }
.acct-usage-cell-mid {
  border-left: 1px solid var(--bs-border-color);
  border-right: 1px solid var(--bs-border-color);
}
.acct-usage-label {
  display: flex; align-items: center;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--bs-secondary-color);
}
.acct-usage-nums { display: flex; align-items: baseline; gap: .25rem; margin-top: 2px; }
.acct-usage-val  { font-size: 1.25rem; font-weight: 700; line-height: 1; color: var(--bs-body-color); }
.acct-usage-of   { font-size: .75rem; color: var(--bs-secondary-color); }
.acct-usage-sub-note { font-size: .72rem; color: var(--bs-secondary-color); opacity: .7; margin-top: 2px; }
.acct-nav-chevron { display: none; }
.acct-nav-link.active .acct-nav-chevron { display: inline; }
.acct-usage-pct  { font-size: .7rem; font-weight: 700; }
.acct-usage-track { height: 4px; border-radius: 4px; background: var(--bs-border-color); overflow: hidden; }
.acct-usage-fill  { height: 100%; border-radius: 4px; }
.acct-bar { transition: width .9s cubic-bezier(.4,0,.2,1); }
.acct-key-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--bs-border-color);
  transition: background .12s;
}
.acct-key-item:last-child { border-bottom: 0; }
.acct-key-item:hover { background: var(--bs-tertiary-bg); }
.acct-key-icon {
  width: 36px; height: 36px; border-radius: .5rem;
  background: rgba(37,99,235,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--app-accent,#2563eb); flex-shrink: 0;
}
[data-bs-theme="dark"] .acct-key-icon { background: rgba(37,99,235,.2); }
.acct-key-icon.revoked { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); }
.acct-stat-chip {
  flex: 1; padding: .75rem 1rem;
  border-right: 1px solid var(--bs-border-color);
}
.acct-stat-chip:last-child { border-right: 0; }
@media (max-width:575px) {
  .acct-stat-chip { flex:unset; width:50%; border-right:1px solid var(--bs-border-color); }
  .acct-stat-chip:nth-child(even) { border-right:0; }
  .acct-stat-chip:nth-child(2n-1) { border-right:1px solid var(--bs-border-color); }
}
.acct-plan-card { transition: transform .18s, box-shadow .18s; cursor:default; }
.acct-plan-card:not(.is-current):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1) !important;
}
[data-bs-theme="dark"] .acct-plan-card:not(.is-current):hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.45) !important;
}
.acct-form .form-control:focus,
.acct-form .form-select:focus {
  border-color: var(--app-accent,#2563eb);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.14);
}
.acct-mobile-tabs { border-bottom: 1px solid var(--bs-border-color); margin-bottom: 1.25rem; }
.acct-mobile-tabs .nav-link { font-size:.8125rem; padding:.5rem .875rem; white-space:nowrap; }
.acct-newkey {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: .875rem; color: #fff; padding: 1.25rem 1.5rem;
  border: 1px solid rgba(99,102,241,.4);
}
.acct-newkey-code {
  font-family: ui-monospace, Consolas, monospace; font-size: .82rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: .5rem; padding: .6rem 1rem;
  color: #c7d2fe; word-break: break-all;
}

/* ════════════════════════════════════════════════════════════════════════════
   Email Deliverability page — reference card, SPF/DKIM toggles
   ════════════════════════════════════════════════════════════════════════════ */
details[open] .spf-ref-arrow  { transform:rotate(90deg); }
details[open] .dkim-key-arrow { transform:rotate(90deg); }
details[open] .dkim-toggle-hint { display:none; }
.dkim-key-details > summary::-webkit-details-marker { display:none; }
.dkim-key-details > summary::marker { display:none; }
.email-ref-hint {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; font-size: .8rem; font-weight: 600;
  color: #fff; background: var(--bs-primary);
  border: 1px solid var(--bs-primary); border-radius: 0.375rem;
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.email-ref-hint:hover {
  background: #1d4ed8; border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.email-ref-tab {
  padding: .15rem .55rem; font-size: .72rem; font-weight: 600;
  border-radius: .4rem; border: 1px solid transparent;
  background: transparent; color: var(--bs-secondary-color, #6b7280);
  cursor: pointer; transition: background .14s, color .14s;
}
.email-ref-tab:hover { background: var(--bs-secondary-bg); }
.email-ref-tab.active {
  background: var(--bs-primary); color: #fff; border-color: var(--bs-primary);
}
.email-ref-panel { padding: .6rem .75rem .75rem; }
.email-ref-section-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--bs-secondary-color, #6b7280);
  margin: .6rem 0 .25rem;
}
.email-ref-section-label:first-child { margin-top: 0; }
.email-ref-table { width: 100%; font-size: .76rem; border-collapse: collapse; }
.email-ref-table thead tr { border-bottom: 1px solid var(--bs-border-color); }
.email-ref-table th {
  padding: .15rem .3rem; font-weight: 600;
  color: var(--bs-secondary-color, #6b7280);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
}
.email-ref-table td {
  padding: .18rem .3rem; vertical-align: top;
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.05));
  line-height: 1.35;
}
.email-ref-table tr:last-child td { border-bottom: none; }
.email-ref-table code {
  font-size: .75rem; background: var(--bs-secondary-bg);
  padding: .05em .3em; border-radius: .25rem; white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   Home page — hero, search card, tool cards, stats
   ════════════════════════════════════════════════════════════════════════════ */
/* Note: --hero-accent CSS variable is set dynamically per-page via inline <style> */
.hero-wrap {
  text-align: center; padding: 4rem 1rem 3rem; position: relative;
}
.hero-wrap::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(37,99,235,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124,58,237,.06) 0%, transparent 70%);
  pointer-events: none;
}
.dnix-logo-hero .dl { font-size: clamp(2.6rem, 7vw, 4rem); }
@keyframes hFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.h-in { opacity:0; animation: hFadeUp .5s cubic-bezier(.22,1,.36,1) forwards; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .85rem; border-radius: 999px;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  font-size: .75rem; font-weight: 500; color: var(--bs-secondary-color);
}
.hero-tagline {
  font-size: clamp(.9rem, 2.2vw, 1.05rem); color: var(--bs-secondary-color);
  max-width: 540px; margin: 0 auto; line-height: 1.6;
}
.hero-search-wrap { max-width: 680px; margin: 0 auto; position: relative; z-index: 50; }
.hero-search-card {
  display: flex; align-items: stretch; background: var(--bs-body-bg);
  border: 1.5px solid var(--bs-border-color); border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search-card:focus-within {
  border-color: var(--hero-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12), 0 4px 24px rgba(0,0,0,.07);
}
.hero-search-input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 1rem; color: var(--bs-body-color); padding: .8rem .5rem .8rem 1.1rem;
}
.hero-search-input::placeholder { color: var(--bs-secondary-color); opacity: .75; }
.hero-split-wrap { position: relative; display: flex; flex-shrink: 0; }
.hero-split-main {
  display: flex; align-items: center; gap: .42rem;
  padding: 0 .9rem; width: 11rem; flex-shrink: 0;
  border: none; background: var(--hero-accent, #2563eb); color: #fff;
  font-size: .875rem; font-weight: 600; cursor: pointer; overflow: hidden;
  transition: filter .15s;
}
.hero-split-main:hover  { filter: brightness(1.1); }
.hero-split-main:active { filter: brightness(.92); }
.hero-split-icon { display: flex; align-items: center; flex-shrink: 0; }
.hero-split-lbl-clip {
  position: relative; height: 1.25em; overflow: hidden;
  flex: 1; display: flex; align-items: center;
}
.hero-split-lbl { display: block; white-space: nowrap; line-height: 1; }
@keyframes spinBtn { to { transform: rotate(360deg); } }
.hero-btn-spinner {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spinBtn .65s linear infinite; flex-shrink: 0;
}
.hero-split-main.loading { opacity: .72; pointer-events: none; }
.hero-split-main.loading .hero-split-icon  { display: none; }
.hero-split-main.loading .hero-btn-spinner { display: block; }
.hero-split-chevron {
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; flex-shrink: 0; border: none;
  border-left: 1px solid rgba(255,255,255,.22);
  background: var(--hero-accent, #2563eb); color: #fff; cursor: pointer;
  border-radius: 0 calc(1rem - 2px) calc(1rem - 2px) 0; transition: filter .15s;
}
.hero-split-chevron:hover { filter: brightness(1.15); }
.hero-split-chevron svg { transition: transform .22s cubic-bezier(.22,1,.36,1); }
.hero-split-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
@keyframes chevPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.hero-split-chevron.hinting { animation: chevPulse .55s ease 3; }
@keyframes typeDropIn {
  from { opacity:0; transform:translateY(-5px) scale(.985); }
  to   { opacity:1; transform:translateY(0)    scale(1); }
}
.hero-type-panel {
  position: absolute; top: calc(100% + .45rem); right: 0; z-index: 1050;
  width: 344px; background: var(--bs-body-bg);
  border: 1.5px solid var(--bs-border-color); border-radius: .9rem;
  box-shadow: 0 18px 52px rgba(0,0,0,.14), 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden; animation: typeDropIn .2s cubic-bezier(.22,1,.36,1);
}
.hero-type-panel[hidden] { display: none; }
.hero-type-panel::before {
  content: ''; position: absolute; top: -8px; right: 1.05rem;
  border: 8px solid transparent; border-top: none; border-bottom-color: var(--bs-border-color);
}
.hero-type-panel::after {
  content: ''; position: absolute; top: -6px; right: calc(1.05rem + 1px);
  border: 7px solid transparent; border-top: none; border-bottom-color: var(--bs-body-bg);
}
.hero-panel-hint {
  padding: .55rem .85rem .4rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.07));
}
.hero-tile-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .25rem; padding: .35rem .4rem .45rem;
}
.hero-type-opt {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .6rem; border-radius: .55rem;
  border: 1px solid transparent; background: transparent;
  cursor: pointer; text-align: left; width: 100%;
  opacity: 0; transform: translateY(6px);
  transition: background .12s, border-color .12s, opacity .2s, transform .2s;
}
.hero-type-opt.tile-in { opacity: 1; transform: translateY(0); }
.hero-type-opt:hover   { background: var(--bs-secondary-bg); }
.hero-type-opt.active  { background: var(--bs-secondary-bg); border-color: var(--bs-border-color); }
.hero-type-opt-icon {
  width: 1.85rem; height: 1.85rem; border-radius: .42rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-type-opt-label { font-size: .78rem; font-weight: 600; color: var(--bs-body-color); line-height: 1.2; }
.hero-type-opt-sub   { font-size: .66rem; color: var(--bs-secondary-color); line-height: 1.3; margin-top: .07rem; }
.hero-scan-bar { height: 2px; border-radius: 2px; overflow: hidden; margin-top: .5rem; opacity: 0; transition: opacity .2s; }
.hero-scan-bar.active { opacity: 1; }
.hero-scan-bar-inner {
  height: 100%; width: 35%; border-radius: 2px;
  animation: scanMove 1s ease-in-out infinite alternate;
}
@keyframes scanMove { 0% { margin-left: 0; } 100% { margin-left: 65%; } }
.hero-examples {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem; justify-content: center; margin-top: .85rem;
}
.hero-ex-pill {
  font-size: .72rem; padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--bs-border-color); background: transparent;
  color: var(--bs-secondary-color); cursor: pointer;
  font-family: ui-monospace, monospace;
  transition: background .12s, color .12s, border-color .12s; line-height: 1.6;
}
.hero-ex-pill:hover {
  background: var(--bs-secondary-bg); color: var(--bs-body-color);
  border-color: var(--bs-secondary-color);
}
@media (max-width: 520px) {
  .hero-wrap { padding: 2.75rem .75rem 2.25rem; }
  .hero-search-card { flex-wrap: wrap; }
  .hero-search-input { padding: .72rem 1rem; width: 100%; }
  .hero-split-wrap { width: 100%; border-top: 1.5px solid var(--bs-border-color); }
  .hero-split-main {
    flex: 1; width: auto; justify-content: center;
    padding: .72rem .85rem; border-radius: 0 0 0 calc(1rem - 2px);
  }
  .hero-split-chevron { width: 3rem; border-radius: 0 0 calc(1rem - 2px) 0; }
  .hero-type-panel { width: calc(100vw - 1.5rem); right: 0; }
}
.stat-card {
  text-align: center; padding: 1rem .5rem; border-radius: .75rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.stat-num { font-size: 1.4rem; font-weight: 900; line-height: 1.1; margin-bottom: .2rem; }
.stat-lbl { font-size: .74rem; color: var(--bs-secondary-color); line-height: 1.3; }
.tool-card {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.1rem; border-radius: .875rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  text-decoration: none; color: var(--bs-body-color);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s;
  height: 100%;
}
.tool-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: transparent; color: var(--bs-body-color);
}
.tool-icon {
  width: 2.4rem; height: 2.4rem; border-radius: .6rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tool-title { font-weight: 600; font-size: .9rem; }
.tool-desc  { font-size: .78rem; color: var(--bs-secondary-color); line-height: 1.5; }
.tool-arrow {
  display: flex; align-items: center; gap: .3rem;
  font-size: .75rem; color: var(--bs-secondary-color);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s; margin-top: auto;
}
.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════════════════════════════════════════
   Admin — User Detail page
   ════════════════════════════════════════════════════════════════════════════ */
.ud-stat { background:#f8fafc; border:1px solid #e2e8f0; border-radius:.75rem; padding:.9rem 1.1rem; }
.ud-stat-val { font-size:1.4rem; font-weight:700; line-height:1; color:#1e293b; }
.ud-stat-lbl { font-size:.72rem; color:#64748b; margin-top:.2rem; }
.ud-card { background:#fff; border:1px solid #e2e8f0; border-radius:.85rem; margin-bottom:1.25rem; overflow:hidden; }
.ud-card-hd { padding:.65rem 1.1rem; background:#f8fafc; border-bottom:1px solid #e2e8f0; display:flex; align-items:center; justify-content:space-between; }
.ud-card-hd h6 { margin:0; font-size:.82rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:#475569; }
.ud-card-body { padding:1rem 1.1rem; }
.ud-field { display:flex; gap:.5rem; align-items:baseline; padding:.35rem 0; border-bottom:1px solid #f1f5f9; }
.ud-field:last-child { border-bottom:none; }
.ud-field-lbl { font-size:.75rem; color:#94a3b8; min-width:110px; flex-shrink:0; }
.ud-field-val { font-size:.85rem; color:#1e293b; word-break:break-all; }
.key-row-revoked { opacity:.55; }
.key-row-expired { opacity:.55; }
.ud-badge { display:inline-block; padding:.2em .55em; border-radius:.35em; font-size:.7rem; font-weight:600; }

/* ════════════════════════════════════════════════════════════════════════════
   IP Intelligence page — loading overlay, tabs, data rows, BGP, IX, RPKI
   ════════════════════════════════════════════════════════════════════════════ */
#ipOverlay { display:none; margin-bottom:1.5rem; }
#ipOverlay.show { display:block; }
.ip-scan-card {
  background:var(--bs-body-bg); border:1px solid var(--bs-border-color);
  border-radius:.875rem; box-shadow:0 2px 12px rgba(0,0,0,.06);
  padding:1.1rem 1.25rem; position:relative; overflow:hidden;
  animation:ipFadeUp .22s ease both;
}
.ip-scan-card::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(37,99,235,.04) 0%,transparent 60%);
  pointer-events:none;
}
[data-bs-theme="dark"] .ip-scan-card { background:#161b22; border-color:#30363d; }
@keyframes shimmer {
  0%   { background-position:200% center; }
  100% { background-position:-200% center; }
}
.ip-skel {
  border-radius:.4rem;
  background:linear-gradient(90deg,var(--bs-tertiary-bg) 25%,var(--bs-secondary-bg,#e9ecef) 50%,var(--bs-tertiary-bg) 75%);
  background-size:200% auto; animation:shimmer 1.6s linear infinite;
}
[data-bs-theme="dark"] .ip-skel {
  background:linear-gradient(90deg,#1e2329 25%,#2a3040 50%,#1e2329 75%);
  background-size:200% auto;
}
#ipSkeleton { display:none; }
#ipSkeleton.show { display:block; }
.ip-scan-icon { position:relative; }
.ip-ping-ring {
  position:absolute; inset:0; border-radius:50%;
  background:rgba(37,99,235,.14);
  animation:ipPing 1.9s cubic-bezier(0,0,.2,1) infinite;
}
.ip-ping-ring.d2 { animation-delay:.65s; }
.ip-icon-bg {
  position:absolute; inset:7px; border-radius:50%;
  background:rgba(37,99,235,.11); border:2px solid rgba(37,99,235,.22);
  display:flex; align-items:center; justify-content:center;
}
[data-bs-theme="dark"] .ip-icon-bg { background:rgba(37,99,235,.2); border-color:rgba(96,165,250,.3); }
.ip-icon-svg { animation:ipSpin 2.4s linear infinite; color:#2563eb; }
[data-bs-theme="dark"] .ip-icon-svg { color:#60a5fa; }
@keyframes ipPing {
  0%   { transform:scale(1);   opacity:.65; }
  75%  { transform:scale(2.2); opacity:0; }
  100% { transform:scale(2.2); opacity:0; }
}
@keyframes ipSpin { to { transform:rotate(360deg); } }
.ip-scan-title { font-size:.88rem; font-weight:700; margin-bottom:0; }
.ip-scan-target { color:var(--app-accent,#2563eb); font-family:var(--bs-font-monospace); }
.ip-scan-phase { font-size:.75rem; color:var(--bs-secondary-color); min-height:1rem; margin-bottom:0; }
.ip-scan-dots { display:flex; align-items:center; justify-content:center; gap:5px; }
.ip-scan-dot { width:7px; height:7px; border-radius:50%; background:#2563eb; animation:ipDot 1.4s ease-in-out infinite; }
[data-bs-theme="dark"] .ip-scan-dot { background:#60a5fa; }
.ip-scan-dot:nth-child(1) { animation-delay:0s; }
.ip-scan-dot:nth-child(2) { animation-delay:.2s; }
.ip-scan-dot:nth-child(3) { animation-delay:.4s; }
@keyframes ipDot {
  0%,80%,100% { transform:scale(.4); opacity:.35; }
  40%         { transform:scale(1);  opacity:1; }
}
.ip-scan-bar-wrap { background:var(--bs-tertiary-bg); border-radius:99px; height:5px; overflow:hidden; }
.ip-scan-bar { height:100%; border-radius:99px; width:0; transition:width .55s cubic-bezier(.4,0,.2,1); background:linear-gradient(90deg,#2563eb,#60a5fa); }
.ip-overlay-note { font-size:.71rem; color:var(--bs-secondary-color); }
@keyframes ipFadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.ip-anim { animation:ipFadeUp .32s ease both; }
.ip-anim-1 { animation-delay:.04s; }
.ip-anim-2 { animation-delay:.1s;  }
.ip-anim-3 { animation-delay:.16s; }
.ip-anim-4 { animation-delay:.22s; }
.ip-anim-5 { animation-delay:.28s; }
.ip-head {
  background:var(--bs-body-bg); border:1px solid var(--bs-border-color);
  border-radius:.875rem; box-shadow:0 1px 6px rgba(0,0,0,.05);
  padding:1.4rem 1.6rem 1rem; margin-bottom:1rem;
}
.ip-head-ip {
  font-family:var(--bs-font-monospace); font-weight:700;
  font-size:clamp(1.1rem,3vw,1.6rem); letter-spacing:-.01em; word-break:break-all;
}
.ip-chips { display:flex; flex-wrap:wrap; gap:.45rem; margin:.9rem 0; }
.ip-chip {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .8rem; border-radius:.5rem; font-size:.79rem; font-weight:500;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); cursor:default;
}
.ip-chip .cl { color:var(--bs-secondary-color); font-weight:400; margin-right:.1rem; }
.ip-chip .cv { font-family:var(--bs-font-monospace); font-weight:600; }
.ip-tabs-nav { display:flex; gap:.1rem; border-bottom:1px solid var(--bs-border-color); margin-bottom:-1px; flex-wrap:wrap; }
.ip-tab-btn {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.55rem 1.05rem; font-size:.83rem; font-weight:500;
  color:var(--bs-secondary-color); background:none; border:1px solid transparent;
  border-bottom:none; border-radius:.5rem .5rem 0 0; cursor:pointer;
  transition:color .15s, background .15s, border-color .15s;
}
.ip-tab-btn:hover { color:var(--bs-body-color); background:var(--bs-tertiary-bg); }
.ip-tab-btn.active {
  color:var(--app-accent,#2563eb); background:var(--bs-body-bg);
  border-color:var(--bs-border-color); border-bottom-color:var(--bs-body-bg); font-weight:600;
}
.ip-tab-pane { display:none; }
.ip-tab-pane.active { display:block; animation:ipFadeUp .18s ease both; }
.ip-tab-wrap {
  border:1px solid var(--bs-border-color); border-top:none;
  border-radius:0 0 .875rem .875rem; background:var(--bs-body-bg);
  box-shadow:0 1px 4px rgba(0,0,0,.04); overflow:hidden;
}
.ipr { display:flex; align-items:baseline; gap:.8rem; padding:.58rem 1.25rem; border-bottom:1px solid var(--bs-border-color-translucent); }
.ipr:last-child { border-bottom:none; }
.ipr dt { width:165px; min-width:130px; font-size:.78rem; font-weight:500; color:var(--bs-secondary-color); display:flex; align-items:center; gap:.3rem; flex-shrink:0; }
.ipr dd { margin:0; font-size:.84rem; word-break:break-all; }
.ip-section-head {
  display:flex; align-items:center; gap:.55rem; padding:.6rem 1.25rem;
  background:var(--bs-tertiary-bg); border-bottom:1px solid var(--bs-border-color);
  font-size:.85rem; font-weight:600;
}
.ip-section-head .ip-sh-badge { margin-left:auto; }
.ip-netsize { display:flex; align-items:center; gap:1rem; padding:.75rem 1.25rem; border-bottom:1px solid var(--bs-border-color-translucent); }
.ip-netsize-num { font-size:1.4rem; font-weight:700; font-family:var(--bs-font-monospace); color:var(--app-accent,#2563eb); line-height:1; }
.ip-netsize-label { font-size:.72rem; color:var(--bs-secondary-color); margin-top:.1rem; }
.irr-tbl { font-size:.79rem; }
.irr-tbl th { font-size:.73rem; font-weight:600; color:var(--bs-secondary-color); background:var(--bs-tertiary-bg); }
.irr-tbl td { font-family:var(--bs-font-monospace); vertical-align:middle; }
.irr-match { color:#16a34a; font-weight:700; }
.irr-mismatch { color:#dc2626; }
.irr-ref-strip { display:flex; flex-wrap:wrap; gap:.3rem; padding:.6rem .85rem; border-top:1px solid var(--bs-border-color); background:var(--bs-tertiary-bg,#f8f9fa); }
.irr-ref-link { display:inline-flex; align-items:center; gap:.28rem; font-size:.71rem; padding:.18rem .5rem; border-radius:.35rem; border:1px solid var(--bs-border-color); background:var(--bs-body-bg); color:var(--bs-body-color); text-decoration:none; white-space:nowrap; }
.irr-ref-link:hover { border-color:var(--app-accent,#2563eb); color:var(--app-accent,#2563eb); }
.irr-ref-link svg { opacity:.5; flex-shrink:0; }
.irr-ref-label { font-size:.65rem; color:var(--bs-secondary-color); padding:.6rem .85rem .2rem; }
[data-bs-theme="dark"] .irr-ref-strip { background:rgba(255,255,255,.03); }
.peer-cloud { display:flex; flex-wrap:wrap; gap:.25rem .2rem; padding:.75rem 1.25rem; }
.peer-tag {
  display:inline-flex; align-items:center; padding:.18rem .5rem; border-radius:.35rem;
  font-size:.72rem; font-family:var(--bs-font-monospace); font-weight:500;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  color:var(--bs-secondary-color); text-decoration:none;
  transition:background .12s, color .12s, border-color .12s;
}
.peer-tag:hover { background:var(--app-accent,#2563eb); color:#fff; border-color:var(--app-accent,#2563eb); }
.dbl-row { display:flex; align-items:center; gap:.6rem; padding:.42rem 1.25rem; border-bottom:1px solid var(--bs-border-color-translucent); }
.dbl-row:last-child { border-bottom:none; }
.dbl-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; transition:transform .2s; }
.dbl-row:hover .dbl-dot { transform:scale(1.4); }
.dbl-ok  { background:#22c55e; }
.dbl-bad { background:#ef4444; animation:ipPulse 2s ease-in-out infinite; }
.irr-valid    { background:#f0fdf4; color:#15803d; border-color:#86efac !important; }
.irr-invalid  { background:#fef2f2; color:#dc2626; border-color:#fca5a5 !important; }
.irr-notfound { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border-color:var(--bs-border-color) !important; }
.irr-unknown  { background:#fefce8; color:#a16207; border-color:#fde68a !important; }
.hb-cloud  { background:var(--bs-info-bg-subtle);    color:var(--bs-info-text-emphasis);    border-color:var(--bs-info)    !important; }
.hb-dc     { background:var(--bs-primary-bg-subtle); color:var(--bs-primary-text-emphasis); border-color:var(--bs-primary) !important; }
.hb-edu    { background:var(--bs-warning-bg-subtle); color:var(--bs-warning-text-emphasis); border-color:var(--bs-warning) !important; }
.hb-gov    { background:var(--bs-danger-bg-subtle);  color:var(--bs-danger-text-emphasis);  border-color:var(--bs-danger)  !important; }
.ip-raw-pre {
  font-size:.73rem; line-height:1.55; margin:0; padding:1rem 1.25rem;
  max-height:420px; overflow:auto; white-space:pre-wrap; word-break:break-all;
  background:var(--bs-tertiary-bg); color:var(--bs-body-color);
}
.ip-raw-toggle {
  background:none; border:none; width:100%; text-align:left;
  display:flex; align-items:center; gap:.6rem; padding:.75rem 1.25rem;
  font-size:.83rem; font-weight:500; color:var(--bs-body-color); cursor:pointer;
  transition:background .12s;
}
.ip-raw-toggle:hover { background:var(--bs-tertiary-bg); }
.ip-chevron { transition:transform .2s ease; flex-shrink:0; }
.fcr-ok   { color:#16a34a; }
.fcr-fail { color:#dc2626; }
.ip-refresh-strip { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:.75rem; padding-top:.7rem; border-top:1px solid var(--bs-border-color-translucent); }
.bgp-sum { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem 1.1rem; padding:.6rem .9rem; background:var(--bs-tertiary-bg,#f8f9fa); border-bottom:1px solid var(--bs-border-color); }
[data-bs-theme="dark"] .bgp-sum { background:rgba(255,255,255,.03); }
.bgp-sum-item { display:flex; align-items:center; gap:.3rem; min-width:0; }
.bgp-sum-grow { flex:1; min-width:120px; }
.bgp-sum-lbl { font-size:.68rem; font-weight:600; color:var(--bs-secondary-color); text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.bgp-sum-val { font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ip-nibble { display:inline-flex; gap:.1rem; flex-wrap:wrap; font-family:var(--bs-font-monospace); font-size:.78rem; }
.ip-nibble span { padding:.08rem .18rem; border-radius:.2rem; }
.ip-nibble .n-hi  { background:rgba(37,99,235,.12); color:var(--app-accent,#2563eb); }
.ip-nibble .n-lo  { background:var(--bs-tertiary-bg); }
.ip-nibble .n-sep { color:var(--bs-secondary-color); padding:0 .05rem; }
.ip-copy-btn {
  display:inline-flex; align-items:center; gap:.25rem;
  padding:.15rem .45rem; border-radius:.35rem; font-size:.68rem; font-weight:500;
  color:var(--bs-secondary-color); background:none;
  border:1px solid var(--bs-border-color); cursor:pointer;
  transition:color .12s, border-color .12s, background .12s;
  vertical-align:middle; margin-left:.4rem;
}
.ip-copy-btn:hover { color:var(--app-accent,#2563eb); border-color:var(--app-accent,#2563eb); background:rgba(37,99,235,.05); }
.ip-copy-btn.copied { color:#16a34a; border-color:#86efac; background:#f0fdf4; }
.asn-link { color:inherit; text-decoration:none; transition:color .12s; }
.asn-link:hover { color:var(--app-accent,#2563eb); }
.ip-empty-state {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:2.5rem 1.5rem; gap:.75rem; text-align:center; color:var(--bs-secondary-color);
}
.ip-empty-state svg { opacity:.4; }
.cc-badge {
  display:inline-flex; align-items:center; justify-content:center;
  padding:.08rem .38rem; border-radius:.3rem; font-size:.7rem; font-weight:700;
  font-family:var(--bs-font-monospace); letter-spacing:.04em;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  color:var(--bs-body-color); min-width:1.9rem; text-align:center; vertical-align:middle;
}
.rpki-valid   { background:#f0fdf4; color:#15803d; border-color:#86efac !important; }
.rpki-invalid { background:#fef2f2; color:#dc2626; border-color:#fca5a5 !important; }
.rpki-unknown { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border-color:var(--bs-border-color) !important; }
.hier-row { display:flex; align-items:flex-start; gap:.6rem; padding:.45rem 1.25rem; border-bottom:1px solid var(--bs-border-color-translucent); font-size:.8rem; }
.hier-row:last-child { border-bottom:none; }
.hier-level { width:12px; flex-shrink:0; margin-top:.25rem; }
.hier-level line { stroke:var(--bs-border-color); }
.hier-badge { display:inline-block; padding:.08rem .45rem; border-radius:.3rem; font-size:.66rem; font-weight:600; font-family:var(--bs-font-monospace); white-space:nowrap; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); color:var(--bs-secondary-color); margin-right:.25rem; }
.hier-badge.actual { background:rgba(37,99,235,.1); color:var(--app-accent,#2563eb); border-color:rgba(37,99,235,.3); }
.ix-tbl { font-size:.79rem; }
.ix-tbl th { font-size:.73rem; font-weight:600; color:var(--bs-secondary-color); background:var(--bs-tertiary-bg); }
.ix-tbl td { vertical-align:middle; }
.irr-cards { display:flex; flex-direction:column; gap:0; }
.irr-card { display:flex; align-items:center; gap:.85rem; padding:.6rem 1rem .6rem .85rem; border-bottom:1px solid var(--bs-border-color-translucent); border-left:3px solid transparent; position:relative; transition:background .15s; min-width:0; }
.irr-card:last-child { border-bottom:none; }
.irr-card:hover { background:var(--bs-tertiary-bg); }
.irr-card.irr-row-valid   { border-left-color:#16a34a; }
.irr-card.irr-row-invalid { border-left-color:#dc2626; }
.irr-card-prefix { font-size:.88rem; font-weight:700; letter-spacing:-.01em; font-family:var(--bs-font-monospace); flex-shrink:0; min-width:130px; }
.irr-card-badge { font-size:.6rem; font-weight:700; padding:.1rem .38rem; border-radius:20px; white-space:nowrap; flex-shrink:0; }
.irr-card-valid   { background:rgba(22,163,74,.12); color:#16a34a; }
.irr-card-invalid { background:rgba(220,38,38,.12);  color:#dc2626; }
.irr-card-src { font-size:.62rem; font-weight:600; padding:.1rem .38rem; border-radius:20px; background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border:1px solid var(--bs-border-color); white-space:nowrap; flex-shrink:0; }
.irr-card-asn { font-size:.75rem; font-weight:600; font-family:var(--bs-font-monospace); color:var(--bs-secondary-color); flex-shrink:0; }
.irr-card-descr { font-size:.72rem; color:var(--bs-secondary-color); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.pdb-chip { display:flex; flex-direction:column; gap:.05rem; padding:.35rem .75rem; border:1px solid var(--bs-border-color); border-radius:7px; background:var(--bs-tertiary-bg); }
.pdb-chip-lbl { font-size:.58rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; color:var(--bs-secondary-color); }
.pdb-chip-val { font-size:.82rem; font-weight:600; line-height:1.25; }
.pdb-chip-link { text-decoration:none; color:inherit; border-color:rgba(37,99,235,.25); background:rgba(37,99,235,.04); }
.pdb-chip-link .pdb-chip-lbl { color:var(--app-accent,#2563eb); opacity:.8; }
.pdb-chip-link .pdb-chip-val { color:var(--app-accent,#2563eb); font-size:.78rem; }
.pdb-chip-link:hover { background:rgba(37,99,235,.1); }
.upstream-tag { display:inline-flex; align-items:center; padding:.2rem .55rem; border-radius:.35rem; font-size:.74rem; font-family:var(--bs-font-monospace); font-weight:500; background:rgba(37,99,235,.07); border:1px solid rgba(37,99,235,.2); color:var(--app-accent,#2563eb); text-decoration:none; transition:background .12s, color .12s, border-color .12s; }
.upstream-tag:hover { background:var(--app-accent,#2563eb); color:#fff; }
.downstream-tag { display:inline-flex; align-items:center; padding:.2rem .55rem; border-radius:.35rem; font-size:.74rem; font-family:var(--bs-font-monospace); font-weight:500; background:rgba(22,163,74,.07); border:1px solid rgba(22,163,74,.2); color:#15803d; text-decoration:none; transition:background .12s, color .12s; }
.downstream-tag:hover { background:#15803d; color:#fff; }
.ip-vbar { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.ip-vcard { flex:1; min-width:130px; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-left-width:3px; border-left-style:solid; border-radius:.625rem; padding:.55rem .85rem; box-shadow:0 1px 3px rgba(0,0,0,.04); animation:ipFadeUp .3s ease both; }
.ip-vcard:nth-child(1){animation-delay:.05s} .ip-vcard:nth-child(2){animation-delay:.1s}
.ip-vcard:nth-child(3){animation-delay:.15s} .ip-vcard:nth-child(4){animation-delay:.2s}
.ip-vcard:nth-child(5){animation-delay:.25s}
.ip-vcard-label { font-size:.67rem; color:var(--bs-secondary-color); font-weight:500; margin-bottom:.12rem; text-transform:uppercase; letter-spacing:.04em; }
.ip-vcard-value { font-size:.83rem; font-weight:700; line-height:1.2; }
.ip-vcard-sub { font-size:.68rem; color:var(--bs-secondary-color); margin-top:.1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ip-score-wrap { display:flex; flex-direction:column; align-items:center; gap:.25rem; }
.ip-score-ring { position:relative; width:52px; height:52px; flex-shrink:0; }
.ip-score-ring svg { transform:rotate(-90deg); }
.ip-score-ring-bg { fill:none; stroke:var(--bs-tertiary-bg); stroke-width:4.5; }
.ip-score-ring-val { fill:none; stroke-width:4.5; stroke-linecap:round; transition:stroke-dashoffset .9s cubic-bezier(.4,0,.2,1) .3s; }
.ip-score-num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:.62rem; font-weight:800; font-family:var(--bs-font-monospace); }
.ip-score-label { font-size:.63rem; font-weight:600; text-align:center; white-space:nowrap; }
.ip-op-card { border-left:3px solid #6366f1; background:rgba(99,102,241,.04); border-radius:.5rem; margin:.75rem 1rem 0; padding:.85rem 1rem; }
[data-bs-theme="dark"] .ip-op-card { background:rgba(99,102,241,.09); }
.ip-op-name { font-size:.93rem; font-weight:700; }
.ip-op-handle { font-size:.73rem; color:var(--bs-secondary-color); font-family:var(--bs-font-monospace); }
.ip-op-row { display:flex; align-items:center; gap:.4rem; font-size:.79rem; color:var(--bs-secondary-color); margin-top:.3rem; }
.ip-op-row strong { color:var(--bs-body-color); }
.ip-threat-strip { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; padding:1rem 1.25rem; border-bottom:1px solid var(--bs-border-color); }
.ip-threat-facts { display:flex; gap:1.25rem; flex-wrap:wrap; flex:1; align-items:center; }
.ip-threat-fact { display:flex; flex-direction:column; gap:.05rem; }
.ip-threat-fact-lbl { font-size:.67rem; color:var(--bs-secondary-color); text-transform:uppercase; letter-spacing:.04em; }
.ip-threat-fact-val { font-size:.84rem; font-weight:700; }
.ip-check-pills { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.85rem; align-items:center; }
.ip-check-pill { display:inline-flex; align-items:center; gap:.3rem; padding:.22rem .6rem; border-radius:.4rem; font-size:.74rem; font-weight:500; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); color:var(--bs-secondary-color); }
.ip-examples { display:flex; gap:.4rem; flex-wrap:wrap; margin-top:.55rem; align-items:center; }
.ip-examples span { font-size:.73rem; color:var(--bs-secondary-color); }
.ip-eg { font-family:var(--bs-font-monospace); font-size:.76rem; padding:.18rem .52rem; border-radius:.4rem; background:rgba(37,99,235,.07); color:var(--app-accent,#2563eb); border:1px solid rgba(37,99,235,.2); text-decoration:none; transition:background .12s, color .12s; }
.ip-eg:hover { background:var(--app-accent,#2563eb); color:#fff; }
.hier-tree { padding:.25rem 0; }
.hier-item { display:flex; align-items:flex-start; gap:.5rem; padding:.4rem 1.25rem; font-size:.8rem; border-bottom:1px solid var(--bs-border-color-translucent); transition:background .1s; }
.hier-item:last-child { border-bottom:none; }
.hier-item:hover { background:var(--bs-tertiary-bg); }
.hier-indent { flex-shrink:0; display:flex; align-items:center; }
.hier-dot { width:9px; height:9px; border-radius:50%; background:var(--bs-border-color); flex-shrink:0; margin-top:.3rem; border:2px solid var(--bs-body-bg); box-shadow:0 0 0 1.5px var(--bs-border-color); }
.hier-dot.actual { background:var(--app-accent,#2563eb); box-shadow:0 0 0 1.5px rgba(37,99,235,.4); }
.ip-meta { display:flex; flex-wrap:wrap; gap:.28rem .45rem; margin-bottom:1rem; align-items:center; }
.ip-meta-item { display:inline-flex; align-items:center; gap:.28rem; padding:.22rem .6rem; border-radius:.4rem; font-size:.77rem; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); white-space:nowrap; }
.ip-meta-item .mk { color:var(--bs-secondary-color); font-weight:400; font-size:.69rem; margin-right:.05rem; }
.ip-meta-item .mv { font-weight:600; font-family:var(--bs-font-monospace); }
.ip-meta-item.tor { background:#18181b; color:#f4f4f5; border-color:#3f3f46; }
.ip-meta-item.tor .mv { color:#f4f4f5; }
.ip-meta-item.op  { background:rgba(99,102,241,.07); border-color:rgba(99,102,241,.25); }
.ip-search-wrap { display:flex; align-items:center; gap:.5rem; padding:.45rem .75rem; border-bottom:1px solid var(--bs-border-color); background:var(--bs-body-bg); }
.ip-search-box { display:flex; align-items:center; gap:.35rem; flex:1; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); border-radius:.4rem; padding:.28rem .6rem; transition:border-color .15s; }
.ip-search-box:focus-within { border-color:var(--app-accent,#2563eb); }
.ip-search-box svg { flex-shrink:0; color:var(--bs-secondary-color); }
.ip-search-box input { background:none; border:none; outline:none; font-size:.78rem; color:var(--bs-body-color); width:100%; min-width:0; }
.ip-search-box input::placeholder { color:var(--bs-secondary-color); }
.ip-search-count { font-size:.7rem; color:var(--bs-secondary-color); white-space:nowrap; flex-shrink:0; }
.ip-filtered-hide { display:none !important; }
@media (max-width:767px){ .ip-vcard { min-width:calc(50% - .25rem); } }
@media (max-width:575px){
  .ipr { flex-direction:column; gap:.1rem; }
  .ipr dt { width:auto; }
  .ip-tab-btn { font-size:.76rem; padding:.45rem .6rem; }
  .ip-scan-card { padding:.9rem 1rem; }
  .ip-vcard { min-width:calc(50% - .25rem); }
  .ip-threat-strip { gap:.75rem; }
}
.ov-hero { padding:1.1rem 1.25rem .85rem; }
.ov-hero-name { font-size:1.3rem; font-weight:800; line-height:1.15; margin-bottom:.2rem; letter-spacing:-.015em; }
.ov-hero-sub  { font-size:.82rem; color:var(--bs-secondary-color); margin-bottom:.55rem; }
.ov-hero-tags { display:flex; flex-wrap:wrap; gap:.3rem; }
.ov-stat-strip { display:flex; flex-wrap:wrap; border-top:1px solid var(--bs-border-color); margin-top:.9rem; }
.ov-ss-item { flex:1; min-width:80px; padding:.62rem 1rem; border-right:1px solid var(--bs-border-color); }
.ov-ss-item:last-child { border-right:none; }
.ov-ss-val { font-size:.92rem; font-weight:700; font-family:var(--bs-font-monospace); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ov-ss-key { font-size:.62rem; text-transform:uppercase; letter-spacing:.05em; color:var(--bs-secondary-color); font-weight:600; margin-top:.12rem; }
.ov-blk-bar  { height:5px; border-radius:3px; background:var(--bs-tertiary-bg); overflow:hidden; margin:.5rem 0 .6rem; }
.ov-blk-fill { height:100%; border-radius:3px; background:var(--app-accent,#2563eb); opacity:.7; }
.ov-chain { padding:.7rem 1.25rem 1rem; }
.ov-chain-intro { font-size:.78rem; color:var(--bs-secondary-color); margin-bottom:.85rem; line-height:1.5; }
.ov-chain-item { display:flex; gap:0; }
.ov-chain-gutter { width:26px; flex-shrink:0; display:flex; flex-direction:column; align-items:center; }
.ov-chain-dot { width:10px; height:10px; border-radius:50%; border:2px solid; flex-shrink:0; margin-top:.35rem; z-index:1; }
.ov-chain-dot.d-alloc    { border-color:#3b82f6; background:rgba(59,130,246,.13); }
.ov-chain-dot.d-assigned { border-color:#16a34a; background:rgba(22,163,74,.13); }
.ov-chain-dot.d-sub      { border-color:#d97706; background:rgba(217,119,6,.11); }
.ov-chain-dot.d-this-ring { width:13px; height:13px; box-shadow:0 0 0 4px rgba(37,99,235,.15); }
.ov-chain-line { width:1px; flex:1; min-height:14px; background:var(--bs-border-color); }
.ov-chain-body { flex:1; min-width:0; padding:.06rem 0 .85rem .85rem; }
.ov-chain-role  { font-size:.63rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--bs-secondary-color); margin-bottom:.18rem; }
.ov-chain-badge { font-size:.63rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:.07rem .45rem; border-radius:3px; border:1px solid; margin-right:.35rem; vertical-align:middle; }
.ov-chain-badge.b-alloc    { background:rgba(59,130,246,.07); color:#3b82f6; border-color:rgba(59,130,246,.25); }
.ov-chain-badge.b-assigned { background:rgba(22,163,74,.07); color:#15803d; border-color:rgba(22,163,74,.25); }
.ov-chain-badge.b-sub      { background:rgba(217,119,6,.08); color:#b45309; border-color:rgba(217,119,6,.3); }
.ov-chain-badge.b-this     { background:rgba(37,99,235,.1); color:var(--app-accent,#2563eb); border-color:rgba(37,99,235,.35); }
.ov-chain-name  { font-size:.9rem; font-weight:600; }
.ov-chain-range { font-size:.78rem; font-family:var(--bs-font-monospace); color:var(--bs-secondary-color); margin-top:.1rem; }
.ov-chain-src   { font-size:.67rem; color:var(--bs-secondary-color); margin-top:.05rem; letter-spacing:.02em; }
.ov-chain-pin   { font-size:.7rem; font-weight:700; color:var(--app-accent,#2563eb); margin-left:.45rem; }
.ov-chain-you   { margin-top:.5rem; padding:.6rem .85rem; border-radius:6px; background:rgba(22,163,74,.06); border:1px solid rgba(22,163,74,.25); }
.ov-chain-you-ip { font-size:1rem; font-weight:700; font-family:var(--bs-font-monospace); color:#16a34a; }
.ov-chain-you-lbl { font-size:.66rem; color:var(--bs-secondary-color); margin-top:.15rem; }
[data-bs-theme="dark"] .ov-chain-you { background:rgba(22,163,74,.1); border-color:rgba(22,163,74,.3); }
[data-bs-theme="dark"] .ov-chain-you-ip { color:#4ade80; }
.ov-chain-legend { display:flex; flex-wrap:wrap; gap:.5rem .9rem; margin-top:.8rem; padding-top:.7rem; border-top:1px solid var(--bs-border-color); }
.ov-chain-legend-item { display:flex; align-items:center; gap:.35rem; font-size:.67rem; color:var(--bs-secondary-color); }
.ov-chain-legend-dot { width:8px; height:8px; border-radius:50%; border:2px solid; flex-shrink:0; }
[data-bs-theme="dark"] .ov-chain-you { background:rgba(37,99,235,.1); }
.bgp-snap { border-top:1px solid var(--bs-border-color); }
.bgp-snap-head { padding:.85rem 1.25rem .65rem; display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.bgp-snap-asnum { font-size:1.5rem; font-weight:800; font-family:var(--bs-font-monospace); color:var(--app-accent,#2563eb); line-height:1; letter-spacing:-.03em; margin-bottom:.15rem; }
.bgp-snap-asnum a { color:inherit; text-decoration:none; }
.bgp-snap-name  { font-size:.95rem; font-weight:700; margin-bottom:.08rem; }
.bgp-snap-handle { font-size:.73rem; color:var(--bs-secondary-color); font-family:var(--bs-font-monospace); }
.bgp-snap-tags  { display:flex; flex-wrap:wrap; gap:.25rem; margin-top:.5rem; }
.bgp-snap-tag   { font-size:.65rem; font-weight:600; padding:.12rem .45rem; border-radius:20px; border:1px solid var(--bs-border-color); color:var(--bs-secondary-color); background:var(--bs-tertiary-bg); }
.bgp-snap-right { flex-shrink:0; text-align:right; }
.bgp-snap-rir   { font-size:.58rem; text-transform:uppercase; letter-spacing:.07em; color:var(--bs-secondary-color); font-weight:700; margin-bottom:.28rem; }
.bgp-snap-cc    { font-size:.88rem; font-weight:600; display:flex; align-items:center; gap:.35rem; justify-content:flex-end; }
.bgp-sg { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); border-top:1px solid var(--bs-border-color); }
.bgp-sg-cell { padding:.6rem .95rem; border-right:1px solid var(--bs-border-color); }
.bgp-sg-cell:last-child { border-right:none; }
.bgp-sg-lbl  { font-size:.57rem; text-transform:uppercase; letter-spacing:.05em; color:var(--bs-secondary-color); font-weight:700; margin-bottom:.2rem; }
.bgp-sg-val  { font-size:.85rem; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.bgp-sg-sub  { font-size:.68rem; color:var(--bs-secondary-color); margin-top:.08rem; line-height:1.4; }
.bgp-sg-cell.sc-valid   { background:rgba(22,163,74,.04); }
.bgp-sg-cell.sc-invalid { background:rgba(220,38,38,.04); }
.bgp-sg-cell.sc-warn    { background:rgba(217,119,6,.04); }
[data-bs-theme="dark"] .bgp-sg-cell.sc-valid   { background:rgba(22,163,74,.09); }
[data-bs-theme="dark"] .bgp-sg-cell.sc-invalid { background:rgba(220,38,38,.09); }
.bgp-presence { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); border-top:1px solid var(--bs-border-color); }
.bgp-pres-card { padding:.85rem 1.1rem; border-right:1px solid var(--bs-border-color); }
.bgp-pres-card:last-child { border-right:none; }
.bgp-pres-eyebrow { font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--bs-secondary-color); margin-bottom:.38rem; }
.bgp-pres-num { font-size:2rem; font-weight:800; line-height:1; letter-spacing:-.04em; margin-bottom:.15rem; color:var(--bs-body-color); }
.bgp-pres-label { font-size:.88rem; font-weight:600; margin-bottom:.28rem; }
.bgp-pres-desc { font-size:.79rem; color:var(--bs-secondary-color); line-height:1.5; }
@media (max-width:767px) {
  .bgp-presence,.bgp-sg { grid-template-columns:1fr 1fr; }
  .bgp-snap-head { flex-direction:column; }
  .bgp-snap-right { text-align:left; }
  .bgp-snap-cc { justify-content:flex-start; }
}
.ix-pips { display:inline-flex; gap:2px; align-items:flex-end; }
.ix-pip   { width:4px; border-radius:1px 1px 0 0; background:var(--bs-tertiary-bg); }
.ix-pip.p1 { height:4px; } .ix-pip.p2 { height:7px; } .ix-pip.p3 { height:10px; }
.ix-pip.p4 { height:13px; } .ix-pip.p5 { height:16px; }
.ix-pip.on { background:var(--app-accent,#2563eb); opacity:.75; }
[data-bs-theme="dark"] .ix-pip    { background:rgba(255,255,255,.1); }
[data-bs-theme="dark"] .ix-pip.on { background:#60a5fa; opacity:.8; }
@media (max-width:575px) { .ov-stat-strip .ov-ss-item { min-width:50%; } }

/* ── IP Intelligence dashboard enhanced layer ───────────────────────────── */
:root {
  --ix-blue:   #2563eb; --ix-glow: rgba(37,99,235,.1);
  --ix-green:  #16a34a; --ix-red:  #dc2626;
  --ix-amber:  #d97706; --ix-purple: #7c3aed;
  --ix-r:      .875rem;
}
@keyframes ix-live  { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 60%{box-shadow:0 0 0 7px rgba(34,197,94,0)} }
@keyframes ix-count { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
@keyframes ix-bar   { from{transform:scaleX(0);transform-origin:left} to{transform:scaleX(1);transform-origin:left} }
@keyframes ix-pop   { 0%{transform:scale(.93);opacity:0} 70%{transform:scale(1.03)} 100%{transform:scale(1);opacity:1} }
.ix-live-wrap { display:inline-flex; align-items:center; gap:.35rem; font-size:.63rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#16a34a; margin-bottom:.55rem; }
.ix-live-dot { width:7px; height:7px; border-radius:50%; background:#22c55e; flex-shrink:0; animation:ix-live 2.2s ease-in-out infinite; }
.ip-head {
  position:relative; overflow:hidden; padding:1.55rem 1.75rem 1.05rem;
  border:1px solid var(--bs-border-color); border-radius:var(--ix-r);
  background:var(--bs-body-bg); box-shadow:0 2px 16px rgba(0,0,0,.06); margin-bottom:1rem;
}
.ip-head::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--ix-blue) 0%,#60a5fa 55%,#818cf8 100%); }
.ip-head::before { content:''; position:absolute; top:-60px; right:-60px; width:320px; height:320px; border-radius:50%; background:radial-gradient(circle,rgba(37,99,235,.06) 0%,transparent 70%); pointer-events:none; }
[data-bs-theme="dark"] .ip-head { background:#0d1117; border-color:#21262d; box-shadow:0 2px 16px rgba(0,0,0,.35); }
[data-bs-theme="dark"] .ip-head::before { background:radial-gradient(circle,rgba(37,99,235,.12) 0%,transparent 70%); }
.ip-head-ip { font-size:clamp(1.5rem,4vw,2.15rem) !important; font-weight:900 !important; letter-spacing:-.04em !important; line-height:1.05 !important; }
.ip-vbar { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)) !important; gap:0 !important; border:1px solid var(--bs-border-color) !important; border-radius:var(--ix-r) !important; overflow:hidden; margin-bottom:1rem; background:var(--bs-body-bg); box-shadow:0 1px 8px rgba(0,0,0,.05); }
[data-bs-theme="dark"] .ip-vbar { background:#0d1117; border-color:#21262d !important; }
.ip-vcard { flex:unset !important; min-width:unset !important; padding:.9rem 1rem !important; border:none !important; border-right:1px solid var(--bs-border-color) !important; border-radius:0 !important; position:relative; overflow:hidden; transition:background .18s; animation:ix-pop .38s cubic-bezier(.2,.8,.4,1) both; }
.ip-vcard:last-child { border-right:none !important; }
.ip-vcard:hover { background:var(--bs-tertiary-bg) !important; }
.ip-vcard::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.ip-vcard[style*="#16a34a"]::before { background:#16a34a; }
.ip-vcard[style*="#22c55e"]::before { background:#22c55e; }
.ip-vcard[style*="#dc2626"]::before,.ip-vcard[style*="#ef4444"]::before { background:#dc2626; }
.ip-vcard[style*="#d97706"]::before { background:#d97706; }
.ip-vcard[style*="#8b5cf6"]::before,.ip-vcard[style*="#7c3aed"]::before { background:#8b5cf6; }
.ip-vcard[style*="#0ea5e9"]::before { background:#0ea5e9; }
.ip-vcard[style*="--app-accent"]::before,.ip-vcard[style*="#2563eb"]::before { background:var(--ix-blue); }
.ip-vcard[style*="#94a3b8"]::before { background:var(--bs-border-color); }
.ip-vcard:nth-child(1){animation-delay:.00s} .ip-vcard:nth-child(2){animation-delay:.05s}
.ip-vcard:nth-child(3){animation-delay:.10s} .ip-vcard:nth-child(4){animation-delay:.15s}
.ip-vcard:nth-child(5){animation-delay:.20s} .ip-vcard:nth-child(6){animation-delay:.25s}
.ip-vcard:nth-child(7){animation-delay:.30s}
.ip-vcard-label { font-size:.64rem !important; font-weight:700 !important; text-transform:uppercase !important; letter-spacing:.07em !important; color:var(--bs-secondary-color) !important; margin-bottom:.4rem !important; }
.ip-vcard-value { font-size:1.5rem !important; font-weight:800 !important; line-height:1 !important; letter-spacing:-.05em !important; font-family:var(--bs-font-monospace) !important; margin-bottom:.25rem !important; }
.ip-vcard-sub { font-size:.72rem !important; line-height:1.35 !important; }
@media (max-width:575px) {
  .ip-vbar { grid-template-columns:1fr 1fr !important; }
  .ip-vcard-value { font-size:1.2rem !important; }
  .ip-vcard { border-bottom:1px solid var(--bs-border-color) !important; }
}
.ip-meta { display:flex; flex-wrap:wrap; border:1px solid var(--bs-border-color); border-radius:.6rem; overflow:hidden; background:var(--bs-tertiary-bg); margin-bottom:.85rem; }
.ip-meta-item { display:flex; align-items:center; gap:.45rem; padding:.38rem .9rem; border-right:1px solid var(--bs-border-color); font-size:.85rem; }
.ip-meta-item:last-child { border-right:none; }
.mk { font-size:.65rem !important; font-weight:700 !important; text-transform:uppercase !important; letter-spacing:.07em !important; color:var(--bs-secondary-color) !important; }
.mv { font-weight:600 !important; font-family:var(--bs-font-monospace); }
[data-bs-theme="dark"] .ip-meta { background:#161b22; border-color:#21262d; }
[data-bs-theme="dark"] .ip-meta-item { border-color:#21262d; }
.ip-tabs-nav { gap:0 !important; padding:0 .35rem !important; border-bottom:2px solid var(--bs-border-color) !important; margin-bottom:0 !important; }
.ip-tab-btn { padding:.62rem 1.1rem !important; border:none !important; border-radius:0 !important; border-bottom:2px solid transparent !important; margin-bottom:-2px !important; background:none !important; font-size:.88rem !important; font-weight:500 !important; color:var(--bs-secondary-color) !important; transition:color .16s, border-color .16s !important; gap:.38rem !important; }
.ip-tab-btn:hover { color:var(--bs-body-color) !important; background:none !important; }
.ip-tab-btn.active { color:var(--ix-blue) !important; border-bottom-color:var(--ix-blue) !important; font-weight:600 !important; background:none !important; }
.ip-tab-wrap { border-top:none !important; border-radius:0 0 var(--ix-r) var(--ix-r) !important; }
@media (max-width:575px) { .ip-tab-btn { font-size:.8rem !important; padding:.5rem .65rem !important; } }
.ip-section-head { background:transparent !important; padding:.6rem 1.25rem !important; font-size:.87rem !important; font-weight:600 !important; }
.ipr { padding:.5rem 1.25rem !important; }
.ipr dt { font-size:.82rem !important; width:145px !important; min-width:110px !important; }
.ipr dd { font-size:.9rem !important; }
.bgp-pres-num { font-size:2.8rem !important; letter-spacing:-.06em !important; font-family:var(--bs-font-monospace) !important; }
.bgp-snap-asnum { font-size:1.65rem !important; }
.ix-pip { width:5px !important; border-radius:2px 2px 0 0 !important; }
.ix-pip.p1{height:6px !important} .ix-pip.p2{height:10px !important}
.ix-pip.p3{height:14px !important} .ix-pip.p4{height:18px !important}
.ix-pip.p5{height:22px !important}
.ix-pip.on { opacity:1 !important; }
.ix-pips[data-spd="1"] .ix-pip.on { background:#94a3b8 !important; }
.ix-pips[data-spd="2"] .ix-pip.on { background:#f59e0b !important; }
.ix-pips[data-spd="3"] .ix-pip.on { background:#3b82f6 !important; }
.ix-pips[data-spd="4"] .ix-pip.on { background:#22c55e !important; }
.ix-pips[data-spd="5"] .ix-pip.on { background:#14b8a6 !important; }
[data-bs-theme="dark"] .ix-pips[data-spd="1"] .ix-pip.on { background:#64748b !important; }
[data-bs-theme="dark"] .ix-pips[data-spd="2"] .ix-pip.on { background:#fbbf24 !important; }
[data-bs-theme="dark"] .ix-pips[data-spd="3"] .ix-pip.on { background:#60a5fa !important; }
[data-bs-theme="dark"] .ix-pips[data-spd="4"] .ix-pip.on { background:#4ade80 !important; }
[data-bs-theme="dark"] .ix-pips[data-spd="5"] .ix-pip.on { background:#2dd4bf !important; }
.ix-counting { animation:ix-count .4s ease both; }
.dbl-row { padding:.4rem 1.25rem !important; }
.dbl-dot { width:9px !important; height:9px !important; }
.ip-empty-state { padding:3rem 1.5rem !important; }
h1.fw-bold { font-size:clamp(1.3rem,3vw,1.75rem) !important; letter-spacing:-.025em !important; font-weight:800 !important; }

/* ════ Propagation page — region summary + filter bar ════ */
/* Legacy grid (kept for old cached pages) */
.prop-region-summary-grid { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem; }
.prop-summary-cell { display: none; } /* replaced by .prop-region-chip */

/* Status filter pills on propagation filter bar */
.prop-filter-btn {
  font-size: .78rem !important;
  padding: .2rem .6rem !important;
  border-radius: 99px !important;
  line-height: 1.4 !important;
}

/* ════ Propagation — filter bar + map + active states ════ */
/* (Sticky removed — filter bar is now static) */

/* Active region tag — inline pill next to status buttons */
.prop-active-chip {
  align-items: center;
  gap: .3rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 99px;
  padding: .18rem .55rem .18rem .4rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--bs-body-color);
  white-space: nowrap;
}
.prop-active-chip-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.prop-active-chip-label {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: none;
  background: var(--bs-secondary-color);
  color: #fff;
  font-size: .7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: .65;
  flex-shrink: 0;
}
.prop-chip-close:hover { opacity: 1; background: var(--bs-danger); }

/* Status pill count badge */
.prop-filter-count {
  font-size: .7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Leaflet map tile tint for dark mode */
#propMap .leaflet-tile-pane { filter: saturate(.85) brightness(.97); }
[data-bs-theme="dark"] #propMap .leaflet-tile-pane {
  filter: saturate(.5) brightness(.65) invert(1) hue-rotate(180deg);
}
[data-bs-theme="dark"] #propMap .leaflet-control-zoom a,
[data-bs-theme="dark"] #propMap .leaflet-bar a {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
[data-bs-theme="dark"] #propMap .leaflet-control-attribution {
  background: rgba(15,23,42,.75);
  color: #94a3b8;
}
[data-bs-theme="dark"] #propMap .leaflet-control-attribution a { color: #60a5fa; }

/* ════ Propagation — redesigned components + merged control panel ══════════ */

/* Search card accent header */
.prop-form-head {
  background: linear-gradient(to right, rgba(59,130,246,.05), rgba(99,102,241,.04));
  border-bottom: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .prop-form-head {
  background: linear-gradient(to right, rgba(59,130,246,.07), rgba(99,102,241,.06));
}
.prop-form-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .6rem;
  background: rgba(59,130,246,.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .prop-form-icon { background: rgba(96,165,250,.12); color: #93c5fd; }

/* Domain search bar */
.prop-search-bar {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  margin-bottom: .875rem;
}
.prop-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.prop-search-icon {
  position: absolute;
  left: .875rem;
  color: var(--bs-secondary-color);
  display: flex;
  pointer-events: none;
}
.prop-search-input {
  width: 100%;
  height: 2.875rem;
  padding: 0 1rem 0 2.6rem;
  border: 1.5px solid var(--bs-border-color);
  border-radius: .625rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 1rem;
  font-family: var(--bs-font-monospace, monospace);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.prop-search-input::placeholder { color: var(--bs-secondary-color); opacity: 1; }
.prop-search-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.prop-search-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1.4rem;
  height: 2.875rem;
  border: none;
  border-radius: .625rem;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.prop-search-btn:hover  { background: #1d4ed8; }
.prop-search-btn:active { transform: scale(.98); }
@media (max-width: 575.98px) {
  .prop-search-bar { flex-direction: column; gap: .4rem; }
  .prop-search-input  { height: 2.75rem; border-radius: .5rem; font-size: .95rem; }
  .prop-search-btn    { width: 100%; justify-content: center; height: 2.75rem; border-radius: .5rem; font-size: .92rem; }
}

/* Status/propagation stat chips */
.prop-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 500;
  padding: .22rem .65rem;
  border-radius: 99px;
  border: 1px solid transparent;
  line-height: 1.3;
}
.prop-stat-dot {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.prop-stat-chip-ok      { background:rgba(34,197,94,.09);   border-color:rgba(34,197,94,.22);   color:#15803d; }
.prop-stat-chip-diff    { background:rgba(245,158,11,.09);  border-color:rgba(245,158,11,.25);  color:#b45309; }
.prop-stat-chip-timeout { background:rgba(100,116,139,.08); border-color:rgba(100,116,139,.2);  color:#475569; }
.prop-stat-chip-err     { background:rgba(220,38,38,.08);   border-color:rgba(220,38,38,.22);   color:#dc2626; }
[data-bs-theme="dark"] .prop-stat-chip-ok      { color:#4ade80; border-color:rgba(34,197,94,.3);   background:rgba(34,197,94,.08); }
[data-bs-theme="dark"] .prop-stat-chip-diff    { color:#fbbf24; border-color:rgba(245,158,11,.3);  background:rgba(245,158,11,.08); }
[data-bs-theme="dark"] .prop-stat-chip-timeout { color:#94a3b8; }
[data-bs-theme="dark"] .prop-stat-chip-err     { color:#f87171; border-color:rgba(239,68,68,.3);   background:rgba(239,68,68,.08); }

/* Hero ring column — left panel of hero card */
.prop-hero-ring-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .75rem;
  gap: .4rem;
  flex-shrink: 0;
  border-right: 1px solid var(--bs-border-color);
  min-width: 7rem;
}
@media (max-width: 575.98px) {
  .prop-hero-ring-col {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--bs-border-color);
    min-width: 0;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    padding: .75rem 1rem;
  }
}

/* Answer rows inside hero card */
.prop-answer-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .55rem;
  border-radius: .4rem;
  border: 1px solid var(--bs-border-color);
  font-size: .78rem;
  background: var(--bs-body-bg);
}
.prop-answer-primary {
  background: rgba(34,197,94,.06) !important;
  border-color: rgba(34,197,94,.2) !important;
}
[data-bs-theme="dark"] .prop-answer-primary {
  background: rgba(34,197,94,.08) !important;
}

/* Region summary — block grid */
.prop-region-chip-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .5rem;
  padding: .75rem 1rem;
}
.prop-region-chip {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .55rem .7rem;
  border-radius: .4rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  cursor: pointer;
  text-align: left;
  transition: background .13s, border-color .13s, box-shadow .13s;
  animation: prop-chip-pop .22s ease both;
}
.prop-region-chip:hover {
  background: var(--bs-tertiary-bg);
  border-color: var(--bs-secondary-border-subtle);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.prop-region-chip.active {
  background: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
  color: var(--bs-primary-text-emphasis);
}

/* Block internals */
.prop-rblk-top {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.prop-rblk-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.prop-rblk-name {
  font-size: .76rem;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prop-rblk-pct {
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.prop-rblk-bar-wrap {
  height: 3px;
  border-radius: 99px;
  background: rgba(0,0,0,.07);
  overflow: hidden;
}
[data-bs-theme="dark"] .prop-rblk-bar-wrap { background: rgba(255,255,255,.1); }
.prop-rblk-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}
.prop-rblk-sub {
  font-size: .68rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

/* Remove sticky from filter bar (was .prop-filter-bar-sticky) */
.prop-filter-bar-sticky { position: static !important; top: auto !important; z-index: auto !important; }

/* ── Resolver rows — 4-column CSS grid ──────────────────────────────────── */
.prop-region-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.prop-region-rows {}

/* Column header row (desktop only) */
.prop-rr-thead {
  display: grid;
  grid-template-columns: minmax(120px, 1.5fr) 76px minmax(80px, 3fr) 46px;
  gap: 0 .625rem;
  padding: .3rem .875rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bs-secondary-color);
}
@media (max-width: 575.98px) { .prop-rr-thead { display: none; } }

/* Resolver row */
.prop-rr {
  display: grid;
  grid-template-columns: minmax(120px, 1.5fr) 76px minmax(80px, 3fr) 46px;
  gap: 0 .625rem;
  align-items: center;
  padding: .48rem .875rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  border-left: 3px solid transparent;
  transition: background .12s, opacity .15s;
  min-width: 0;
}
.prop-rr:last-child { border-bottom: none; }
.prop-rr:hover { background: var(--bs-tertiary-bg); }
.prop-rr-faded { opacity: .55; }

/* Col 1 — resolver info */
.prop-rr-info { min-width: 0; }
.prop-rr-name {
  font-size: .83rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.prop-rr-meta {
  font-size: .67rem;
  color: var(--bs-secondary-color);
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}

/* Col 2 — status badge */
.prop-rr-stat { display: flex; align-items: center; }

/* Col 3 — DNS answer */
.prop-rr-ans { min-width: 0; }
.prop-ans-list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.prop-ans-code {
  font-family: var(--bs-font-monospace);
  font-size: .75rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.prop-ans-diff { color: #d97706; }
[data-bs-theme="dark"] .prop-ans-diff { color: #fbbf24; }
.prop-ans-none { font-size: .74rem; color: var(--bs-secondary-color); font-style: italic; }
.prop-ans-err  { font-size: .74rem; color: #dc2626; font-style: italic; }
[data-bs-theme="dark"] .prop-ans-err { color: #f87171; }

/* Col 4 — response time */
.prop-rr-ms {
  text-align: right;
  font-size: .71rem;
  font-family: var(--bs-font-monospace);
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

/* Mobile ≤575px: 2×2 grid */
@media (max-width: 575.98px) {
  .prop-rr {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: .15rem .5rem;
    padding: .5rem .75rem;
  }
  .prop-rr-info { grid-column: 1; grid-row: 1; }
  .prop-rr-stat { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .prop-rr-ans  { grid-column: 1; grid-row: 2; }
  .prop-rr-ms   { grid-column: 2; grid-row: 2; align-self: end; font-size: .67rem; }
}

/* ════ Propagation — merged control panel + chip animations ════════════════ */

/* Merged control panel card */
.prop-ctrl-card { transition: opacity .3s, transform .3s; }
.prop-ctrl-card.prop-ctrl-entering {
  animation: prop-ctrl-in .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes prop-ctrl-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.prop-ctrl-row { min-height: 2.5rem; }

/* Status filter buttons — colored dots for non-All pills */
.prop-pill-dot {
  display: inline-block;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .25rem;
}
.prop-pill-ok.btn-outline-secondary .prop-pill-dot,
.prop-pill-ok.btn-primary .prop-pill-dot      { background: #22c55e; }
.prop-pill-diff.btn-outline-secondary .prop-pill-dot,
.prop-pill-diff.btn-primary .prop-pill-dot    { background: #f59e0b; }
.prop-pill-timeout.btn-outline-secondary .prop-pill-dot,
.prop-pill-timeout.btn-primary .prop-pill-dot { background: #94a3b8; }
.prop-pill-err.btn-outline-secondary .prop-pill-dot,
.prop-pill-err.btn-primary .prop-pill-dot     { background: #ef4444; }

/* Search input group in control panel */
.prop-search-group .input-group-text { border-right: none; }
.prop-search-group .form-control     { border-left: none; }
.prop-search-group:focus-within .input-group-text,
.prop-search-group:focus-within .form-control { border-color: #86b7fe; }
.prop-search-group:focus-within .input-group-text { box-shadow: none; }

/* Region chip animations */
@keyframes prop-chip-pop {
  from { opacity: 0; transform: scale(.88) translateY(4px); }
  to   { opacity: 1; transform: none; }
}
/* Region card entrance animation */
@keyframes prop-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.prop-region-card-anim {
  animation: prop-card-in .3s cubic-bezier(.22,1,.36,1) both;
}

/* Resolver row entrance animation */
@keyframes prop-rr-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
.prop-row-enter { animation: prop-rr-in .18s ease both; }

/* Hero card entrance */
@keyframes prop-hero-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
#heroCard { animation: prop-hero-in .4s cubic-bezier(.22,1,.36,1) both; }

/* Map panel entrance */
@keyframes prop-map-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#mapPanel:not(.d-none) { animation: prop-map-in .4s ease .1s both; }

/* Status pill count — animate number updates */
.prop-filter-count { transition: opacity .15s; }

/* Filter count text fade-in */
#filterCount { transition: opacity .2s; }

/* Scan strip — bottom progress bar */
#scanStrip .progress { border-radius: 0; }

/* Filter bar — mobile fixes */
@media (max-width: 575.98px) {
  .prop-ctrl-row { row-gap: .4rem; }
  .prop-ctrl-row .ms-auto { width: 100%; margin-left: 0 !important; }
  .prop-ctrl-row .prop-search-group { flex: 1; }
  #propSearch { max-width: none !important; }
}

/* Region chip bar — scrollable on mobile */
@media (max-width: 767.98px) {
  .prop-region-chip-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: .45rem;
    padding: .6rem .875rem;
    scrollbar-width: none;
  }
  .prop-region-chip-bar::-webkit-scrollbar { display: none; }
  .prop-region-chip { flex-shrink: 0; min-width: 100px; max-width: 135px; }
}

/* ── Billing checkout ────────────────────────────────────────────────────── */
@keyframes co-in { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:translateY(0) } }

.btn-back-link { display:inline-flex;align-items:center;gap:6px;color:var(--bs-secondary-color);font-size:.85rem;text-decoration:none;transition:color .15s }
.btn-back-link:hover { color:var(--bs-body-color) }

.co-card {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 24px;
}
.co-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--bs-body-color);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}
.co-label { display:block;font-size:.78rem;color:var(--bs-secondary-color);margin-bottom:5px;font-weight:500 }
.co-input {
  width: 100%;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: .55rem .85rem;
  color: var(--bs-body-color);
  font-size: .88rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.co-input:focus { border-color: rgba(99,102,241,.6); box-shadow: 0 0 0 3px rgba(99,102,241,.12) }
.co-input::placeholder { color: var(--bs-secondary-color); opacity: .6 }

.co-gateway-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px }
.co-gateway-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 10px;
  background: var(--bs-tertiary-bg);
  border: 1.5px solid var(--bs-border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}
.co-gateway-option:hover { border-color: rgba(99,102,241,.5); background: color-mix(in srgb, var(--bs-tertiary-bg) 88%, #6366f1) }
.co-gateway-option.selected { border-color: #6366f1; background: color-mix(in srgb, var(--bs-tertiary-bg) 80%, #6366f1); }
.co-gw-radio { display:none }
.co-gateway-icon { width:100%;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px }
.co-gateway-name { font-size:.75rem;font-weight:600;color:var(--bs-body-color) }
.co-gateway-check { position:absolute;top:6px;right:6px;width:18px;height:18px;background:#6366f1;border-radius:50%;display:none;align-items:center;justify-content:center;color:#fff }
.co-gateway-option.selected .co-gateway-check { display:flex }

.co-summary-sticky { position:sticky;top:80px }
.co-sum-plan { background:rgba(99,102,241,.1);border:1px solid rgba(99,102,241,.25);border-radius:10px;padding:12px 14px;margin-bottom:16px }
.co-sum-plan-name { font-weight:700;font-size:.95rem;color:var(--bs-body-color) }
.co-sum-plan-sub { font-size:.78rem;color:var(--bs-secondary-color);margin-top:2px }
.co-sum-rows { margin-bottom:16px }
.co-sum-row { display:flex;justify-content:space-between;font-size:.84rem;color:var(--bs-secondary-color);padding:.35rem 0;border-bottom:1px solid var(--bs-border-color-translucent) }
.co-sum-total { display:flex;justify-content:space-between;font-size:1.05rem;font-weight:700;padding:.55rem 0;color:var(--bs-body-color);border-top:1px solid var(--bs-border-color) }
.co-sum-features { display:flex;flex-direction:column;gap:6px;margin-bottom:20px;padding:12px;background:var(--bs-tertiary-bg);border-radius:8px }
.co-sum-feat { display:flex;align-items:center;gap:7px;font-size:.8rem;color:var(--bs-secondary-color) }
.co-pay-btn { width:100%;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:10px;padding:.75rem;font-size:.95rem;font-weight:700;cursor:pointer;transition:all .18s ease }
.co-pay-btn:hover { background:linear-gradient(135deg,#4f46e5,#7c3aed);transform:translateY(-1px);box-shadow:0 6px 20px rgba(99,102,241,.4) }
.co-pay-btn:disabled { opacity:.7;cursor:not-allowed;transform:none }
.co-secure-note { display:flex;align-items:center;justify-content:center;gap:5px;font-size:.73rem;color:var(--bs-tertiary-color);margin-top:10px }
.co-coupon-wrap { margin-bottom:16px }
.co-coupon-input { font-size:.85rem;padding:.4rem .65rem }
.co-coupon-applied { display:flex;align-items:center;gap:8px;padding:.45rem .7rem;background:color-mix(in srgb,var(--bs-success) 10%,transparent);border:1px solid color-mix(in srgb,var(--bs-success) 30%,transparent);border-radius:8px;font-size:.82rem;color:var(--bs-success) }
.co-coupon-applied svg { flex-shrink:0 }
.co-coupon-applied span { flex:1;font-weight:600 }
.co-coupon-remove { background:none;border:none;color:var(--bs-secondary-color);font-size:1.1rem;line-height:1;padding:0 2px;cursor:pointer;transition:color .15s }
.co-coupon-remove:hover { color:var(--bs-danger) }
.co-override-notice { display:flex;align-items:center;gap:7px;padding:.4rem .7rem;background:color-mix(in srgb,var(--bs-info) 10%,transparent);border:1px solid color-mix(in srgb,var(--bs-info) 30%,transparent);border-radius:8px;font-size:.78rem;color:var(--bs-info);margin-bottom:12px }

/* ── Billing plans ───────────────────────────────────────────────────────── */
.billing-plan-card {
  position: relative;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 28px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.billing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.billing-plan-popular {
  border-color: rgba(99,102,241,.5);
  background: color-mix(in srgb, var(--bs-secondary-bg) 92%, #6366f1);
  box-shadow: 0 0 0 1px rgba(99,102,241,.3), 0 8px 32px rgba(99,102,241,.1);
}
.billing-plan-current {
  border-color: rgba(74,222,128,.4);
  background: color-mix(in srgb, var(--bs-secondary-bg) 95%, #22c55e);
}
.billing-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25em .9em;
  border-radius: 20px;
  white-space: nowrap;
}
.billing-plan-badge-current { background: linear-gradient(135deg, #22c55e, #16a34a) }
.billing-plan-name { font-size:1.1rem;font-weight:700;margin-bottom:12px;color:var(--bs-body-color) }
.billing-plan-price { margin-bottom:16px }
.billing-price-num { font-size:2.4rem;font-weight:800;line-height:1;color:var(--bs-body-color) }
.billing-price-per { font-size:.85rem;color:var(--bs-secondary-color);margin-left:4px }
.billing-plan-limits { display:flex;flex-direction:column;gap:6px;margin-bottom:16px;padding:12px;background:var(--bs-tertiary-bg);border-radius:10px }
.billing-limit-row { display:flex;align-items:center;gap:7px;font-size:.82rem;color:var(--bs-secondary-color) }
.billing-feature-list { list-style:none;padding:0;margin:0 0 20px;flex:1;display:flex;flex-direction:column;gap:8px }
.billing-feature-list li { display:flex;align-items:flex-start;gap:8px;font-size:.83rem;color:var(--bs-body-color) }
.billing-feature-list svg { flex-shrink:0;margin-top:1px }
.billing-plan-btn { display:block;width:100%;text-align:center;border:none;border-radius:10px;padding:.65rem 1.2rem;font-size:.9rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .18s ease;margin-top:auto }
.billing-plan-btn-primary { background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff }
.billing-plan-btn-primary:hover { background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;transform:translateY(-1px) }
.billing-plan-btn-outline { background:transparent;border:1px solid var(--bs-border-color);color:var(--bs-secondary-color);cursor:default }
.billing-plan-btn-current { background:rgba(74,222,128,.15);color:#16a34a;border:1px solid rgba(74,222,128,.35);cursor:default }
[data-bs-theme="dark"] .billing-plan-btn-current { color:#4ade80 }

/* ── Billing success ─────────────────────────────────────────────────────── */
.success-card { background:var(--bs-secondary-bg);border:1px solid rgba(74,222,128,.25);border-radius:20px;padding:40px 32px;text-align:center;box-shadow:0 8px 40px rgba(74,222,128,.06) }
.success-icon-wrap { margin-bottom:24px }
.success-circle { width:80px;height:80px }
.success-circle-ring { animation:ring-draw .6s .1s ease forwards }
.success-check      { animation:check-draw .4s .65s ease forwards }
@keyframes ring-draw  { to { stroke-dashoffset:0 } }
@keyframes check-draw { to { stroke-dashoffset:0 } }
.success-title { font-size:1.7rem;font-weight:800;margin-bottom:8px;color:var(--bs-body-color) }
.success-sub   { color:var(--bs-secondary-color);margin-bottom:24px;font-size:.95rem }
.success-details { background:var(--bs-tertiary-bg);border:1px solid var(--bs-border-color);border-radius:12px;padding:0 16px;margin-bottom:24px;text-align:left }
.success-det-row { display:flex;justify-content:space-between;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--bs-border-color-translucent);font-size:.85rem;color:var(--bs-body-color) }
.success-det-row:last-child { border-bottom:none }
.success-det-row span:first-child { color:var(--bs-secondary-color) }
.success-actions { display:flex;flex-direction:column;gap:10px;margin-bottom:20px }
.success-btn-primary { display:flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border-radius:10px;padding:.7rem;font-weight:700;font-size:.9rem;text-decoration:none;transition:all .18s ease }
.success-btn-primary:hover { background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;transform:translateY(-1px) }
.success-btn-secondary { display:flex;align-items:center;justify-content:center;gap:7px;background:var(--bs-tertiary-bg);color:var(--bs-body-color);border:1px solid var(--bs-border-color);border-radius:10px;padding:.65rem;font-size:.88rem;font-weight:600;text-decoration:none;transition:all .18s ease }
.success-btn-secondary:hover { background:var(--bs-secondary-bg) }
.success-btn-outline { display:block;text-align:center;background:transparent;color:var(--bs-secondary-color);border:1px solid var(--bs-border-color);border-radius:10px;padding:.6rem;font-size:.84rem;text-decoration:none;transition:all .18s ease }
.success-btn-outline:hover { color:var(--bs-body-color) }
.success-note { font-size:.78rem;color:var(--bs-tertiary-color) }

/* ── Billing failed ──────────────────────────────────────────────────────── */
.fail-card { background:var(--bs-secondary-bg);border:1px solid rgba(239,68,68,.25);border-radius:20px;padding:40px 32px;text-align:center }
.fail-icon-wrap { margin-bottom:24px }
.fail-x { animation:fail-draw .4s ease forwards;stroke-dasharray:40;stroke-dashoffset:40 }
@keyframes fail-draw { to { stroke-dashoffset:0 } }
.fail-title { font-size:1.7rem;font-weight:800;margin-bottom:8px;color:var(--bs-body-color) }
.fail-sub { color:var(--bs-secondary-color);margin-bottom:24px;font-size:.95rem }
.fail-details { background:var(--bs-tertiary-bg);border:1px solid var(--bs-border-color);border-radius:12px;padding:0 16px;margin-bottom:24px;text-align:left }
.fail-row { display:flex;justify-content:space-between;padding:.65rem 0;border-bottom:1px solid var(--bs-border-color-translucent);font-size:.85rem;color:var(--bs-body-color) }
.fail-row:last-child { border-bottom:none }
.fail-row span:first-child { color:var(--bs-secondary-color) }
.fail-status { color:#dc2626;font-weight:600 }
[data-bs-theme="dark"] .fail-status { color:#f87171 }
.fail-actions { display:flex;flex-direction:column;gap:10px;margin-bottom:20px }
.fail-btn-primary { display:block;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-radius:10px;padding:.7rem;font-weight:700;font-size:.9rem;text-decoration:none;transition:all .18s }
.fail-btn-primary:hover { background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;transform:translateY(-1px) }
.fail-btn-secondary { display:block;background:var(--bs-tertiary-bg);color:var(--bs-body-color);border:1px solid var(--bs-border-color);border-radius:10px;padding:.65rem;font-size:.88rem;font-weight:600;text-decoration:none;transition:all .18s }
.fail-btn-secondary:hover { background:var(--bs-secondary-bg) }
.fail-btn-outline { display:block;background:transparent;color:var(--bs-secondary-color);border:1px solid var(--bs-border-color);border-radius:10px;padding:.6rem;font-size:.84rem;text-decoration:none;transition:all .18s }
.fail-btn-outline:hover { color:var(--bs-body-color) }
.fail-note { font-size:.76rem;color:var(--bs-tertiary-color);line-height:1.5 }

/* ── Billing banking ─────────────────────────────────────────────────────── */
.bank-card { background:var(--bs-secondary-bg);border:1px solid var(--bs-border-color);border-radius:20px;padding:32px;animation:fadeInUp .4s ease both }
.bank-header { display:flex;align-items:flex-start;gap:16px;margin-bottom:24px }
.bank-icon { width:52px;height:52px;background:rgba(99,102,241,.15);border:1px solid rgba(99,102,241,.25);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0 }
.bank-title { font-size:1.3rem;font-weight:800;margin-bottom:4px;color:var(--bs-body-color) }
.bank-sub { color:var(--bs-secondary-color);font-size:.85rem;margin:0 }
.bank-order-box { background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.2);border-radius:12px;padding:0 16px;margin-bottom:20px }
.bank-ord-row { display:flex;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid var(--bs-border-color-translucent);font-size:.85rem;color:var(--bs-body-color) }
.bank-ord-row:last-child { border-bottom:none }
.bank-ord-row span:first-child { color:var(--bs-secondary-color) }
.bank-ord-total { font-weight:700;font-size:.95rem!important }
.bank-ord-total span:last-child { color:#6366f1 }
.bank-details-box { background:var(--bs-tertiary-bg);border:1px dashed var(--bs-border-color);border-radius:12px;padding:16px;margin-bottom:20px;position:relative }
.bank-details-title { font-size:.78rem;font-weight:600;color:var(--bs-secondary-color);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px }
.bank-details-text { margin:0;white-space:pre-wrap;font-family:monospace;font-size:.85rem;color:var(--bs-body-color);line-height:1.6 }
.bank-details-empty { color:var(--bs-tertiary-color);font-size:.85rem;margin:0 }
.bank-copy-btn { position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:5px;background:var(--bs-secondary-bg);border:1px solid var(--bs-border-color);border-radius:6px;padding:.3rem .7rem;font-size:.75rem;color:var(--bs-secondary-color);cursor:pointer;transition:all .15s }
.bank-copy-btn:hover { background:var(--bs-body-bg);color:var(--bs-body-color) }
.bank-warn { display:flex;align-items:flex-start;gap:10px;background:rgba(234,179,8,.08);border:1px solid rgba(234,179,8,.3);border-radius:10px;padding:14px;margin-bottom:20px;font-size:.83rem;color:var(--bs-body-color);line-height:1.5 }
.bank-warn svg { flex-shrink:0;margin-top:1px }
.bank-actions { display:flex;gap:10px;margin-bottom:16px }
.bank-btn-primary { flex:1;text-align:center;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:10px;padding:.65rem;font-size:.88rem;font-weight:700;text-decoration:none;transition:all .18s }
.bank-btn-primary:hover { background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;transform:translateY(-1px) }
.bank-btn-outline { flex:1;text-align:center;background:transparent;color:var(--bs-secondary-color);border:1px solid var(--bs-border-color);border-radius:10px;padding:.65rem;font-size:.88rem;text-decoration:none;transition:all .18s }
.bank-btn-outline:hover { color:var(--bs-body-color) }
.bank-note { font-size:.76rem;color:var(--bs-tertiary-color);line-height:1.5 }

/* ── Billing shared ─────────────────────────────────────────────────────── */
.font-mono { font-family:monospace;letter-spacing:.03em }

/* ── Billing orders ──────────────────────────────────────────────────────── */
.ord-table-wrap { overflow-x:auto;border-radius:12px;border:1px solid var(--bs-border-color) }
.ord-table { width:100%;border-collapse:collapse }
.ord-table th { background:var(--bs-secondary-bg);padding:.6rem 1rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--bs-secondary-color);border-bottom:1px solid var(--bs-border-color);text-align:left;white-space:nowrap }
.ord-table td { padding:.8rem 1rem;font-size:.85rem;border-bottom:1px solid var(--bs-border-color-translucent);vertical-align:middle;color:var(--bs-body-color) }
.ord-table tr:last-child td { border-bottom:none }
.ord-table tr:hover td { background:var(--bs-tertiary-bg) }
.ord-invoice-num { font-size:.72rem;color:var(--bs-secondary-color);font-family:monospace }
.ord-date { font-size:.82rem;color:var(--bs-secondary-color) }
.ord-inv-btn { display:inline-flex;align-items:center;gap:4px;background:rgba(99,102,241,.12);color:#6366f1;border:1px solid rgba(99,102,241,.25);border-radius:6px;padding:.25rem .65rem;font-size:.76rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:all .15s }
.ord-inv-btn:hover { background:rgba(99,102,241,.22);color:#4f46e5 }
[data-bs-theme="dark"] .ord-inv-btn { color:#818cf8 }
[data-bs-theme="dark"] .ord-inv-btn:hover { color:#a5b4fc }

/* ── Admin Orders page ───────────────────────────────────────────────────── */
.ao-stat-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  animation: aoCardIn .4s ease both;
}
.ao-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.ao-stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ao-stat-label { font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--bs-secondary-color); margin-bottom: .1rem; }
.ao-stat-val { font-size: 1.35rem; font-weight: 700; line-height: 1; color: var(--bs-body-color); }
.ao-stat-sub { font-size: .72rem; color: var(--bs-secondary-color); margin-top: .15rem; }

@keyframes aoCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ao-stat-card:nth-child(1) { animation-delay: .05s; }
.ao-stat-card:nth-child(2) { animation-delay: .10s; }
.ao-stat-card:nth-child(3) { animation-delay: .15s; }
.ao-stat-card:nth-child(4) { animation-delay: .20s; }

/* Filter bar */
.ao-filter-bar {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: .8rem 1rem;
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Table */
.ao-table-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
/* Round corners on first/last header cells instead of clipping the card */
.ao-table thead th:first-child { border-radius: 14px 0 0 0; }
.ao-table thead th:last-child  { border-radius: 0 14px 0 0; }
.ao-table { width: 100%; border-collapse: collapse; }
.ao-table thead th {
  background: var(--bs-tertiary-bg);
  padding: .65rem 1rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
  white-space: nowrap;
}
.ao-table tbody tr {
  border-bottom: 1px solid var(--bs-border-color-translucent);
  transition: background .15s;
  animation: aoRowIn .35s ease both;
}
.ao-table tbody tr:last-child { border-bottom: none; }
.ao-table tbody tr:hover { background: var(--bs-tertiary-bg); }
@keyframes aoRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ao-table tbody tr:nth-child(1)  { animation-delay: .04s; }
.ao-table tbody tr:nth-child(2)  { animation-delay: .07s; }
.ao-table tbody tr:nth-child(3)  { animation-delay: .10s; }
.ao-table tbody tr:nth-child(4)  { animation-delay: .13s; }
.ao-table tbody tr:nth-child(5)  { animation-delay: .16s; }
.ao-table tbody tr:nth-child(6)  { animation-delay: .19s; }
.ao-table tbody tr:nth-child(7)  { animation-delay: .22s; }
.ao-table tbody tr:nth-child(8)  { animation-delay: .25s; }
.ao-table tbody tr:nth-child(9)  { animation-delay: .28s; }
.ao-table tbody tr:nth-child(10) { animation-delay: .31s; }
.ao-table td { padding: .7rem 1rem; vertical-align: middle; font-size: .84rem; color: var(--bs-body-color); }

/* Status badges */
.ao-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .65rem; border-radius: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.ao-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.7; flex-shrink:0; }
.ao-badge-paid     { background:rgba(34,197,94,.15);  color:#16a34a; }
.ao-badge-initiated,
.ao-badge-pending  { background:rgba(234,179,8,.15);  color:#b45309; }
.ao-badge-failed   { background:rgba(239,68,68,.15);  color:#dc2626; }
.ao-badge-cancelled,
.ao-badge-expired  { background:rgba(100,116,139,.12); color:#64748b; }
.ao-badge-refunded { background:rgba(14,165,233,.15); color:#0369a1; }
[data-bs-theme="dark"] .ao-badge-paid      { background:rgba(34,197,94,.18);  color:#4ade80; }
[data-bs-theme="dark"] .ao-badge-initiated,
[data-bs-theme="dark"] .ao-badge-pending   { background:rgba(234,179,8,.18);  color:#fbbf24; }
[data-bs-theme="dark"] .ao-badge-failed    { background:rgba(239,68,68,.18);  color:#f87171; }
[data-bs-theme="dark"] .ao-badge-refunded  { background:rgba(14,165,233,.18); color:#38bdf8; }

/* Gateway badge */
.ao-gw-badge {
  display: inline-block;
  padding: .18rem .55rem; border-radius: 6px;
  font-size: .68rem; font-weight: 600; letter-spacing: .03em;
  background: var(--bs-secondary-bg); color: var(--bs-secondary-color);
}

/* Action dropdown */
.ao-action-btn {
  width: 28px; height: 28px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.ao-action-btn:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); border-color: var(--bs-secondary-color); }
.ao-dropdown-menu { min-width: 185px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--bs-border-color); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .3rem;
  z-index: 1055; }
.ao-dropdown-menu .dropdown-item {
  border-radius: 7px; font-size: .82rem; padding: .42rem .75rem;
  display: flex; align-items: center; gap: .55rem;
  transition: background .12s;
}
.ao-dropdown-menu .dropdown-item svg { flex-shrink: 0; opacity: .75; }
.ao-dropdown-menu .dropdown-item.text-danger:hover  { background: rgba(239,68,68,.1); }
.ao-dropdown-menu .dropdown-item.text-warning:hover { background: rgba(234,179,8,.1); }
.ao-dropdown-menu .dropdown-item.text-success:hover { background: rgba(34,197,94,.1); }
.ao-dropdown-menu .dropdown-divider { margin: .25rem 0; }

/* User cell */
.ao-user-avatar {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; text-transform: uppercase;
}

/* Pagination */
.ao-page-btn {
  min-width: 30px; height: 30px; padding: 0 .5rem;
  border-radius: 7px; font-size: .8rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  color: var(--bs-body-color); text-decoration: none; transition: background .15s;
}
.ao-page-btn:hover  { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.ao-page-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }

/* Empty state */
.ao-empty { padding: 3.5rem 1rem; text-align: center; color: var(--bs-secondary-color); }
.ao-empty svg { margin-bottom: .75rem; opacity: .35; }

/* Detail modal */
.ao-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem; }
.ao-detail-row { display: flex; flex-direction: column; padding: .6rem .75rem; border-radius: 8px; }
.ao-detail-row:hover { background: var(--bs-tertiary-bg); }
.ao-detail-row.full { grid-column: 1 / -1; }
.ao-detail-lbl { font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--bs-secondary-color); margin-bottom: .2rem; }
.ao-detail-val { font-size: .85rem; color: var(--bs-body-color); word-break: break-all; }
.ao-detail-sep { grid-column: 1 / -1; border: none; border-top: 1px solid var(--bs-border-color-translucent); margin: .25rem 0; }

/* =============================================================================
   API Docs Page  (.apidoc-*)
   ============================================================================= */

/* Hero */
.apidoc-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.apidoc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
}
.apidoc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #c7d2fe;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.apidoc-hero h1 { font-size: clamp(1.75rem,4vw,2.75rem); font-weight: 800; letter-spacing: -.02em; }
.apidoc-hero-sub { color: #a5b4fc; font-size: 1.05rem; max-width: 36rem; line-height: 1.65; }
.apidoc-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .75rem;
  padding: .9rem 1.25rem;
  min-width: 8rem;
  text-align: center;
}
.apidoc-stat-num { font-size: 1.5rem; font-weight: 800; color: #e0e7ff; line-height: 1; }
.apidoc-stat-lbl { font-size: .72rem; color: #94a3b8; margin-top: .2rem; }

/* Sidebar nav */
.apidoc-sidebar { position: sticky; top: 5.5rem; }
.apidoc-nav-group { margin-bottom: 1.25rem; }
.apidoc-nav-group-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding: 0 .5rem .4rem;
  margin-bottom: .1rem;
}
.apidoc-nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem;
  border-radius: .375rem;
  font-size: .82rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.apidoc-nav-link:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.apidoc-nav-link.active { background: rgba(99,102,241,.1); color: #6366f1; font-weight: 600; }
.apidoc-nav-dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  flex-shrink: 0; background: currentColor; opacity: .5;
}
.apidoc-nav-link.active .apidoc-nav-dot { opacity: 1; }

/* Method badges */
.apidoc-method {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .22rem .6rem;
  border-radius: .3rem;
  font-family: var(--bs-font-monospace);
  flex-shrink: 0;
}
.apidoc-method-GET    { background: #dcfce7; color: #166534; }
.apidoc-method-POST   { background: #e0e7ff; color: #3730a3; }
.apidoc-method-DELETE { background: #fee2e2; color: #991b1b; }
.apidoc-method-MIXED  { background: #fef9c3; color: #854d0e; }
[data-bs-theme=dark] .apidoc-method-GET    { background: rgba(22,163,74,.2);  color: #4ade80; }
[data-bs-theme=dark] .apidoc-method-POST   { background: rgba(99,102,241,.2); color: #a5b4fc; }
[data-bs-theme=dark] .apidoc-method-DELETE { background: rgba(239,68,68,.2);  color: #fca5a5; }
[data-bs-theme=dark] .apidoc-method-MIXED  { background: rgba(234,179,8,.2);  color: #fde047; }

/* Section cards */
.apidoc-section {
  border: 1px solid var(--bs-border-color);
  border-radius: .875rem;
  background: var(--bs-body-bg);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.apidoc-section:hover { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.apidoc-section-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.2rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.apidoc-section-head:hover { background: var(--bs-tertiary-bg); }
.apidoc-section.open .apidoc-section-head {
  border-bottom-color: var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.apidoc-section-path {
  font-family: var(--bs-font-monospace);
  font-size: .8rem;
  color: var(--bs-secondary-color);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apidoc-section-title { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.apidoc-chevron {
  width: 1rem; height: 1rem; flex-shrink: 0;
  color: var(--bs-secondary-color);
  transition: transform .25s;
}
.apidoc-section.open .apidoc-chevron { transform: rotate(180deg); }
.apidoc-section-body {
  padding: 1.2rem;
  display: none;
}
.apidoc-section.open .apidoc-section-body { display: block; }

/* Auth badge */
.apidoc-auth-badge {
  font-size: .63rem; font-weight: 700;
  padding: .18rem .5rem;
  border-radius: .25rem;
  border: 1px solid;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.apidoc-auth-required { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.apidoc-auth-public   { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
[data-bs-theme=dark] .apidoc-auth-required { background: rgba(234,179,8,.15);  color: #fde047; border-color: rgba(234,179,8,.3); }
[data-bs-theme=dark] .apidoc-auth-public   { background: rgba(22,163,74,.15); color: #4ade80; border-color: rgba(22,163,74,.3); }

/* Dark code blocks */
.apidoc-code-wrap { position: relative; border-radius: .625rem; background: #0d1117; overflow: hidden; }
.apidoc-code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .875rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.apidoc-code-lang {
  font-size: .67rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #4d5566;
}
.apidoc-copy-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; background: transparent;
  border: 1px solid rgba(255,255,255,.1); color: #64748b;
  border-radius: .35rem; padding: .22rem .6rem;
  cursor: pointer; transition: background .15s, color .15s; font-family: inherit;
}
.apidoc-copy-btn:hover { background: rgba(255,255,255,.07); color: #cbd5e1; }
.apidoc-copy-btn.copied { color: #4ade80; border-color: rgba(74,222,128,.3); }
.apidoc-code-pre {
  margin: 0; padding: .875rem 1rem;
  font-size: .78rem; line-height: 1.7; color: #e2e8f0;
  white-space: pre-wrap; word-break: break-all; overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.apidoc-code-pre .t-key  { color: #7dd3fc; }
.apidoc-code-pre .t-str  { color: #86efac; }
.apidoc-code-pre .t-num  { color: #fdba74; }
.apidoc-code-pre .t-bool { color: #c084fc; }
.apidoc-code-pre .t-null { color: #64748b; }
.apidoc-code-pre .t-cmt  { color: #3d4f63; font-style: italic; }
.apidoc-code-pre .t-url  { color: #f0abfc; }
.apidoc-code-pre .t-flag { color: #fde68a; }
.apidoc-code-pre .t-hdr  { color: #fbbf24; }

/* Params */
.apidoc-params { border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden; margin-bottom: 1rem; }
.apidoc-params-head {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--bs-secondary-color); padding: .5rem .875rem;
  background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--bs-border-color);
}
.apidoc-param-row {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem .875rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  font-size: .83rem;
}
.apidoc-param-row:last-child { border-bottom: none; }
.apidoc-param-name {
  font-family: var(--bs-font-monospace); font-size: .78rem;
  background: var(--bs-tertiary-bg); padding: .1rem .4rem;
  border-radius: .25rem; flex-shrink: 0; min-width: 3rem; text-align: center;
}
.apidoc-param-req { font-size: .63rem; font-weight: 700; color: #ef4444; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem; }
.apidoc-param-opt { font-size: .63rem; font-weight: 600; color: #94a3b8; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem; }
.apidoc-param-desc { color: var(--bs-secondary-color); flex: 1; line-height: 1.5; }

/* Info boxes */
.apidoc-info {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem 1rem; border-radius: .5rem;
  font-size: .82rem; line-height: 1.55;
}
.apidoc-info-tip  { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }
.apidoc-info-note { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }
.apidoc-info-warn { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }
[data-bs-theme=dark] .apidoc-info-tip  { background: rgba(59,130,246,.1);  color: #93c5fd; border-color: #3b82f6; }
[data-bs-theme=dark] .apidoc-info-note { background: rgba(34,197,94,.1);   color: #86efac; border-color: #22c55e; }
[data-bs-theme=dark] .apidoc-info-warn { background: rgba(245,158,11,.1);  color: #fde68a; border-color: #f59e0b; }

/* Error status badges */
.apidoc-status {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--bs-font-monospace); font-size: .78rem; font-weight: 700;
  width: 3rem; padding: .28rem 0; border-radius: .375rem; flex-shrink: 0;
}
.apidoc-s2xx { background: #dcfce7; color: #166534; }
.apidoc-s4xx { background: #fef9c3; color: #854d0e; }
.apidoc-s429 { background: #ffedd5; color: #9a3412; }
.apidoc-s4r  { background: #fee2e2; color: #991b1b; }
.apidoc-s5xx { background: #f1f5f9; color: #475569; }
[data-bs-theme=dark] .apidoc-s2xx { background: rgba(22,163,74,.2);   color: #4ade80; }
[data-bs-theme=dark] .apidoc-s4xx { background: rgba(234,179,8,.2);   color: #fde047; }
[data-bs-theme=dark] .apidoc-s429 { background: rgba(234,88,12,.2);   color: #fb923c; }
[data-bs-theme=dark] .apidoc-s4r  { background: rgba(239,68,68,.2);   color: #fca5a5; }
[data-bs-theme=dark] .apidoc-s5xx { background: rgba(100,116,139,.2); color: #94a3b8; }

/* Header pills */
.apidoc-header-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color);
  border-radius: .375rem; font-family: var(--bs-font-monospace);
  font-size: .75rem; padding: .28rem .65rem; color: var(--bs-body-color);
}

/* Scroll-reveal */
@keyframes apidocIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.apidoc-reveal { opacity: 0; }
.apidoc-reveal.visible { animation: apidocIn .4s ease both; }

/* Concept cards (auth/rate/cache grid) */
.apidoc-concept-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bs-body-bg);
  height: 100%;
}
.apidoc-concept-icon {
  width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}

/* ════ Shared admin page animations ════════════════════════════════════════ */
@keyframes admSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes admFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes admRowIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes admPop {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Staggered entrance helpers */
.adm-enter      { animation: admSlideUp .32s cubic-bezier(.22,1,.36,1) both; }
.adm-enter-1    { animation-delay: .04s; }
.adm-enter-2    { animation-delay: .08s; }
.adm-enter-3    { animation-delay: .12s; }
.adm-enter-4    { animation-delay: .16s; }
.adm-enter-5    { animation-delay: .20s; }
.adm-enter-6    { animation-delay: .24s; }
.adm-pop        { animation: admPop .28s cubic-bezier(.34,1.56,.64,1) both; }
.adm-fade       { animation: admFadeIn .3s ease both; }

/* Shared stat card style for admin pages */
.adm-stat {
  border-radius: .75rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  transition: box-shadow .15s;
}
.adm-stat:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.adm-stat-icon {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: .55rem;
  display: flex; align-items: center; justify-content: center;
}
.adm-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.adm-stat-lbl {
  font-size: .72rem;
  color: var(--bs-secondary-color);
  margin-top: 2px;
}

/* Shared admin table row animation */
.adm-table tbody tr {
  animation: admRowIn .2s ease both;
}
.adm-table tbody tr:nth-child(1)  { animation-delay: .02s; }
.adm-table tbody tr:nth-child(2)  { animation-delay: .04s; }
.adm-table tbody tr:nth-child(3)  { animation-delay: .06s; }
.adm-table tbody tr:nth-child(4)  { animation-delay: .08s; }
.adm-table tbody tr:nth-child(5)  { animation-delay: .10s; }
.adm-table tbody tr:nth-child(6)  { animation-delay: .12s; }
.adm-table tbody tr:nth-child(7)  { animation-delay: .14s; }
.adm-table tbody tr:nth-child(8)  { animation-delay: .16s; }
.adm-table tbody tr:nth-child(9)  { animation-delay: .18s; }
.adm-table tbody tr:nth-child(10) { animation-delay: .20s; }
.adm-table tbody tr:nth-child(n+11) { animation-delay: .22s; }

/* Shared tracking provider card */
.trk-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  overflow: hidden;
  transition: box-shadow .15s;
}
.trk-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.trk-card-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
}
.trk-card-body { padding: 1rem 1.1rem; }
.trk-icon {
  width: 2rem; height: 2rem;
  border-radius: .4rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Cache — status dots */
.cache-dot {
  width: .45rem; height: .45rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Page/nav action buttons */
.adm-edit-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; padding: .25rem .65rem;
  border-radius: .4rem; cursor: pointer;
  color: #4f46e5; background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.2);
  transition: background .12s, border-color .12s;
}
.adm-edit-btn:hover { background: rgba(79,70,229,.14); border-color: rgba(79,70,229,.35); }
.adm-del-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; padding: .25rem .65rem;
  border-radius: .4rem; cursor: pointer;
  color: #dc2626; background: rgba(220,38,38,.07);
  border: 1px solid rgba(220,38,38,.18);
  transition: background .12s, border-color .12s;
}
.adm-del-btn:hover { background: rgba(220,38,38,.13); border-color: rgba(220,38,38,.3); }

/* ══════════════════════════════════════════════════════════════════════════
   Admin Dashboard  (views/admin/dashboard.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes dbSlideUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes dbFadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes dbBarGrow {
  from { width:0 !important; }
}
@keyframes dbPulse {
  0%,100% { opacity:1; }
  50%      { opacity:.45; }
}
@keyframes dbCountUp {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.db-stat-card {
  animation: dbSlideUp .45s ease both;
  border-radius: .75rem !important;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.db-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
  color: inherit;
  text-decoration: none;
}
.db-stat-card .card { border-radius: .75rem !important; border: 1px solid var(--bs-border-color) !important; }
.db-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  animation: dbCountUp .5s ease both;
}
.db-stat-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.db-section { animation: dbSlideUp .45s ease both; }
.db-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: .35rem;
}
.db-bar-wrap {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 90px;
}
.db-bar {
  width: 60%;
  min-width: 6px;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: #2563eb;
  opacity: .75;
  animation: dbBarGrow .6s ease both;
  transition: opacity .15s;
  position: relative;
}
.db-bar:hover { opacity: 1; }
.db-bar-label {
  font-size: .65rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  text-align: center;
}
.db-bar-count {
  font-size: .65rem;
  color: var(--bs-secondary-color);
  text-align: center;
}
.db-bar-today { background: #7c3aed; opacity: .85; }
.db-type-bar {
  height: .45rem;
  border-radius: 99px;
  animation: dbBarGrow .7s ease both;
}
.db-qa { animation: dbSlideUp .45s ease both; }
.db-qa-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: .55rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.db-qa-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  text-decoration: none;
  color: var(--bs-body-color);
}
.db-qa-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.db-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: dbPulse 1.8s ease infinite;
  display: inline-block;
}
.db-sys-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--bs-border-color);
  animation: dbFadeIn .5s ease both;
}
.db-sys-row:last-child { border-bottom: none; }
.db-sys-icon {
  width: 1.9rem; height: 1.9rem;
  border-radius: .4rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db-domain-bar {
  height: 3px;
  border-radius: 99px;
  animation: dbBarGrow .65s ease both;
}
.db-bar-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: .62rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.db-bar:hover .db-bar-tip { opacity: 1; }
[data-bs-theme=dark] .db-stat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.35) !important; }
[data-bs-theme=dark] .db-qa-chip:hover   { box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* ══════════════════════════════════════════════════════════════════════════
   Admin Users  (views/admin/users.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes usSlideUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes usFadeSlip { from{opacity:0;transform:translateY(6px)} to{opacity:1} }
@keyframes usRowIn    { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
.us-stat { animation:usSlideUp .38s ease both; }
.us-stat-num { font-size:1.65rem; font-weight:800; line-height:1; letter-spacing:-.03em; }
.us-stat-lbl { font-size:.72rem; color:var(--bs-secondary-color); margin-top:.2rem; }
.us-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:usFadeSlip .4s .18s ease both;
}
.us-card-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
  flex-wrap:wrap; gap:.5rem;
  border-radius:calc(.875rem - 1px) calc(.875rem - 1px) 0 0;
}
.us-pag-bar { border-radius:0 0 calc(.875rem - 1px) calc(.875rem - 1px); }
.us-table { width:100%; border-collapse:collapse; }
.us-table th {
  font-size:.67rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--bs-secondary-color); padding:.6rem .875rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg); white-space:nowrap;
}
.us-table td {
  padding:.6rem .875rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  vertical-align:middle;
}
.us-table tbody tr:last-child td { border-bottom:none; }
.us-table tbody tr { transition:background .12s; position:relative; }
.us-table tbody tr:hover { background:var(--bs-tertiary-bg); }
.us-table tbody tr { animation:usRowIn .32s ease both; }
.us-avatar {
  width:2rem; height:2rem; border-radius:.45rem;
  display:flex; align-items:center; justify-content:center;
  font-size:.72rem; font-weight:700; color:#fff; flex-shrink:0;
  text-transform:uppercase;
}
.us-role {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.68rem; font-weight:700; padding:.2rem .55rem;
  border-radius:99px; white-space:nowrap; letter-spacing:.04em;
}
.us-role-superadmin { background:rgba(239,68,68,.12); color:#dc2626; }
.us-role-admin      { background:rgba(37,99,235,.12);  color:#2563eb; }
.us-role-user       { background:rgba(100,116,139,.12);color:#475569; }
.us-dot { width:.45rem; height:.45rem; border-radius:50%; display:inline-block; flex-shrink:0; }
.us-plan-badge {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.68rem; font-weight:600; padding:.2rem .5rem;
  border-radius:.35rem; white-space:nowrap;
}
.us-search-bar {
  display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
  padding:.65rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-body-bg);
}
.us-search-wrap { position:relative; flex:1; min-width:180px; max-width:300px; }
.us-search-wrap svg {
  position:absolute; left:.6rem; top:50%; transform:translateY(-50%);
  pointer-events:none; color:var(--bs-secondary-color);
}
.us-search-wrap input { padding-left:2rem; font-size:.82rem; }
.us-action-menu .dropdown-item {
  display:flex; align-items:center; gap:.5rem;
  font-size:.8rem; padding:.38rem .85rem;
}
.us-action-menu .dropdown-item svg { flex-shrink:0; opacity:.7; }
.us-empty { text-align:center; padding:3.5rem 1rem; color:var(--bs-secondary-color); }
.us-page-link {
  display:inline-flex; align-items:center; justify-content:center;
  width:2rem; height:2rem; border-radius:.4rem;
  font-size:.8rem; font-weight:500; text-decoration:none;
  border:1px solid var(--bs-border-color);
  color:var(--bs-body-color); transition:all .15s;
}
.us-page-link:hover { background:var(--bs-tertiary-bg); color:var(--bs-body-color); }
.us-page-link.active { background:#2563eb; color:#fff; border-color:#2563eb; }

/* ══════════════════════════════════════════════════════════════════════════
   Admin Rate Limits  (views/admin/rate-limits.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes rlSlideUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes rlFadeIn   { from{opacity:0} to{opacity:1} }
@keyframes rlRowIn    { from{opacity:0;transform:translateX(-6px)} to{opacity:1;transform:translateX(0)} }
@keyframes rlPulse    { 0%,100%{opacity:1} 50%{opacity:.4} }
.rl-field-card {
  border:1px solid var(--bs-border-color);
  border-radius:.75rem;
  padding:.875rem 1rem;
  background:var(--bs-body-bg);
  transition:box-shadow .15s;
  animation:rlSlideUp .38s ease both;
}
.rl-field-card:hover { box-shadow:0 2px 12px rgba(0,0,0,.07); }
.rl-field-icon {
  width:2rem; height:2rem; border-radius:.45rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.rl-field-label { font-size:.78rem; font-weight:700; }
.rl-field-unit  { font-size:.68rem; color:var(--bs-secondary-color); font-weight:500; }
.rl-field-hint  { font-size:.72rem; color:var(--bs-secondary-color); margin-top:.2rem; }
.rl-field-input {
  font-size:.9rem; font-weight:700; text-align:right;
  border:1px solid var(--bs-border-color); border-radius:.4rem;
  padding:.3rem .55rem; background:var(--bs-body-bg); color:var(--bs-body-color);
  width:90px; transition:border-color .15s, box-shadow .15s;
}
.rl-field-input:focus {
  outline:none;
  box-shadow:0 0 0 2.5px rgba(99,102,241,.25);
  border-color:#6366f1;
}
.rl-save-bar {
  position:sticky; bottom:0; z-index:100;
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  box-shadow:0 -4px 24px rgba(0,0,0,.08);
  padding:.875rem 1.25rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-top:1.5rem;
  animation:rlSlideUp .4s .25s ease both;
}
.rl-section {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  overflow:hidden;
  background:var(--bs-body-bg);
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:rlSlideUp .4s ease both;
}
.rl-section-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
}
.rl-blocked-row {
  display:flex; align-items:center; gap:.875rem;
  padding:.6rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  animation:rlRowIn .3s ease both;
}
.rl-blocked-row:last-child { border-bottom:none; }
.rl-ip-badge {
  font-family:var(--bs-font-monospace); font-size:.82rem; font-weight:600;
  background:rgba(239,68,68,.08); color:#dc2626;
  border:1px solid rgba(239,68,68,.2);
  border-radius:.4rem; padding:.2rem .55rem;
}
.rl-unblock-btn {
  display:flex; align-items:center; gap:.3rem;
  font-size:.75rem; font-weight:600;
  padding:.3rem .65rem; border-radius:.4rem;
  background:rgba(239,68,68,.08); color:#dc2626;
  border:1px solid rgba(239,68,68,.2);
  cursor:pointer; transition:background .15s;
  white-space:nowrap;
}
.rl-unblock-btn:hover { background:rgba(239,68,68,.16); }
.rl-table { width:100%; border-collapse:collapse; }
.rl-table th {
  font-size:.67rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--bs-secondary-color); padding:.55rem .875rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg); white-space:nowrap;
}
.rl-table td {
  padding:.5rem .875rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  vertical-align:middle; font-size:.8rem;
}
.rl-table tbody tr:last-child td { border-bottom:none; }
.rl-table tbody tr { transition:background .12s; animation:rlRowIn .3s ease both; }
.rl-table tbody tr:hover { background:var(--bs-tertiary-bg); }
.rl-count-pill {
  display:inline-flex; align-items:center;
  font-size:.68rem; font-weight:700;
  padding:.15rem .5rem; border-radius:99px; white-space:nowrap;
}
.rl-block-dot {
  width:.45rem; height:.45rem; border-radius:50%;
  display:inline-block; background:#dc2626;
  animation:rlPulse 1.8s ease infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   Admin WHOIS Servers  (views/admin/whois-servers.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes wsSlideUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes wsFadeSlip { from{opacity:0;transform:translateY(6px)}  to{opacity:1} }
@keyframes wsRowIn    { from{opacity:0;transform:translateX(-6px)} to{opacity:1;transform:translateX(0)} }
@keyframes wsPop      { from{opacity:0;transform:scale(.94)}       to{opacity:1;transform:scale(1)} }
.ws-stat {
  border:1px solid var(--bs-border-color);
  border-radius:.75rem;
  padding:.7rem 1rem;
  background:var(--bs-body-bg);
  display:flex; align-items:center; gap:.75rem;
  animation:wsFadeSlip .38s ease both;
}
.ws-stat-icon {
  width:2rem; height:2rem; border-radius:.45rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ws-stat-num  { font-size:1.4rem; font-weight:800; line-height:1; letter-spacing:-.03em; }
.ws-stat-lbl  { font-size:.68rem; color:var(--bs-secondary-color); font-weight:500; margin-top:.1rem; }
.ws-form-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:wsSlideUp .38s .05s ease both;
}
.ws-form-head {
  padding:.7rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
  border-radius:calc(.875rem - 1px) calc(.875rem - 1px) 0 0;
}
.ws-form-body { padding:1.1rem; }
.ws-priority-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:wsSlideUp .38s .12s ease both;
}
.ws-priority-head {
  padding:.7rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
  border-radius:calc(.875rem - 1px) calc(.875rem - 1px) 0 0;
}
.ws-priority-step {
  display:flex; align-items:flex-start; gap:.75rem;
  padding:.55rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  font-size:.78rem;
  animation:wsRowIn .3s ease both;
}
.ws-priority-step:last-child { border-bottom:none; }
.ws-step-num {
  width:1.35rem; height:1.35rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:.65rem; font-weight:800; flex-shrink:0; margin-top:.05rem;
}
.ws-table-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:wsSlideUp .4s .08s ease both;
}
.ws-table-head {
  padding:.75rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
  border-radius:calc(.875rem - 1px) calc(.875rem - 1px) 0 0;
}
.ws-search { position:relative; }
.ws-search svg {
  position:absolute; left:.65rem; top:50%; transform:translateY(-50%);
  pointer-events:none; color:var(--bs-secondary-color);
}
.ws-search input {
  padding-left:2.1rem;
  border:1px solid var(--bs-border-color);
  border-radius:.45rem;
  background:var(--bs-body-bg);
  color:var(--bs-body-color);
  font-size:.8rem;
  height:2rem;
  width:100%;
  transition:border-color .15s, box-shadow .15s;
}
.ws-search input:focus {
  outline:none;
  border-color:#6366f1;
  box-shadow:0 0 0 2.5px rgba(99,102,241,.2);
}
.ws-table { width:100%; border-collapse:collapse; }
.ws-table th {
  font-size:.67rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--bs-secondary-color); padding:.55rem .875rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg); white-space:nowrap;
}
.ws-table td {
  padding:.55rem .875rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  font-size:.8rem; vertical-align:middle;
}
.ws-table tbody tr:last-child td { border-bottom:none; }
.ws-table tbody tr { transition:background .12s; animation:wsRowIn .28s ease both; }
.ws-table tbody tr:hover { background:var(--bs-tertiary-bg); }
.ws-tld {
  font-family:var(--bs-font-monospace); font-size:.85rem; font-weight:700;
  color:var(--bs-body-color);
}
.ws-tag {
  display:inline-flex; align-items:center;
  font-size:.62rem; font-weight:700; padding:.1rem .45rem;
  border-radius:99px; white-space:nowrap;
}
.ws-edit-btn {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.73rem; font-weight:600;
  padding:.25rem .6rem; border-radius:.4rem;
  background:rgba(99,102,241,.08); color:#6366f1;
  border:1px solid rgba(99,102,241,.2);
  cursor:pointer; transition:background .15s; white-space:nowrap;
}
.ws-edit-btn:hover { background:rgba(99,102,241,.16); }
.ws-del-btn {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.73rem; font-weight:600;
  padding:.25rem .6rem; border-radius:.4rem;
  background:rgba(239,68,68,.07); color:#dc2626;
  border:1px solid rgba(239,68,68,.18);
  cursor:pointer; transition:background .15s; white-space:nowrap;
}
.ws-del-btn:hover { background:rgba(239,68,68,.15); }
.ws-builtin-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  animation:wsFadeSlip .4s .2s ease both;
}
.ws-builtin-toggle {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1.1rem;
  background:var(--bs-tertiary-bg);
  border:none; width:100%;
  color:var(--bs-body-color);
  font-size:.82rem; font-weight:600;
  cursor:pointer; transition:background .15s;
  border-radius:calc(.875rem - 1px) calc(.875rem - 1px) 0 0;
}
.ws-builtin-toggle:hover { background:var(--bs-secondary-bg); }
.ws-builtin-toggle .ws-chevron { transition:transform .25s ease; }
.ws-builtin-toggle[aria-expanded="true"] .ws-chevron { transform:rotate(180deg); }
#editForm .form-control:focus {
  border-color:#6366f1;
  box-shadow:0 0 0 2.5px rgba(99,102,241,.2);
}
.ws-form-card.ws-editing {
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   Admin API Plans  (views/admin/api-plans.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes apSlideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes apPop     { from{opacity:0;transform:scale(.94)}       to{opacity:1;transform:scale(1)} }
.ap-header { animation:apSlideUp .36s ease both; }
.ap-plan-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  overflow:hidden;
  background:var(--bs-body-bg);
  height:100%;
  display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
  animation:apPop .4s ease both;
}
.ap-plan-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,.1);
}
.ap-plan-card.ap-inactive { opacity:.55; }
.ap-plan-top {
  padding:1.25rem 1.25rem .875rem;
  border-bottom:1px solid var(--bs-border-color);
}
.ap-plan-name { font-size:1rem; font-weight:800; margin-bottom:.2rem; }
.ap-plan-slug {
  font-family:var(--bs-font-monospace); font-size:.68rem;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  border-radius:.3rem; padding:.1rem .4rem; display:inline-block;
}
.ap-price {
  font-size:1.5rem; font-weight:800; line-height:1; margin-top:.5rem;
  letter-spacing:-.03em;
}
.ap-price-unit { font-size:.75rem; font-weight:500; color:var(--bs-secondary-color); }
.ap-metric {
  display:flex; align-items:center; gap:.6rem;
  padding:.45rem 0;
  border-bottom:1px solid var(--bs-border-color-translucent);
  font-size:.82rem;
}
.ap-metric:last-child { border-bottom:none; }
.ap-metric-icon {
  width:1.6rem; height:1.6rem; border-radius:.35rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ap-metric-val { font-weight:700; margin-left:auto; }
.ap-feature {
  display:flex; align-items:flex-start; gap:.5rem;
  font-size:.8rem; color:var(--bs-secondary-color);
  padding:.25rem 0;
}
.ap-feature-check {
  width:1.1rem; height:1.1rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:.05rem;
}
.ap-user-badge {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.72rem; font-weight:600;
  padding:.2rem .55rem; border-radius:99px;
}
.ap-help {
  border:1px solid var(--bs-border-color);
  border-radius:.75rem;
  padding:1rem 1.25rem;
  background:var(--bs-tertiary-bg);
  font-size:.82rem;
  color:var(--bs-secondary-color);
  animation:apSlideUp .4s .3s ease both;
}
.ap-help strong { color:var(--bs-body-color); }

/* ══════════════════════════════════════════════════════════════════════════
   Admin Payment Gateways  (views/admin/payment-gateways.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes pgSlideIn {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pgPulse {
  0%,100% { box-shadow:0 0 0 2px rgba(34,197,94,.2); }
  50%     { box-shadow:0 0 0 5px rgba(34,197,94,.05); }
}
.pg-reveal { animation: pgSlideIn .35s ease both; }
.pg-strip { display:flex; gap:.625rem; flex-wrap:wrap; }
.pg-chip {
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.45rem .9rem; border-radius:.5rem; cursor:pointer;
  border:1px solid var(--bs-border-color);
  background:var(--bs-body-bg);
  font-size:.8rem; font-weight:500;
  transition: box-shadow .15s, transform .12s, border-color .15s;
  text-decoration:none; color:var(--bs-body-color);
}
.pg-chip:hover { box-shadow:0 2px 10px rgba(0,0,0,.08); transform:translateY(-1px); color:var(--bs-body-color); }
.pg-chip.active { border-color:var(--gw-color); box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-color) 15%,transparent); }
.pg-chip-dot { width:.5rem; height:.5rem; border-radius:50%; flex-shrink:0; }
.pg-chip-dot.on  { background:#22c55e; box-shadow:0 0 0 2px rgba(34,197,94,.25); animation:pgPulse 2s infinite; }
.pg-chip-dot.off { background:#94a3b8; }
.pg-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  overflow:hidden;
  margin-bottom:1rem;
  transition:box-shadow .2s, border-color .2s;
}
.pg-card.enabled { border-left:3px solid var(--gw-color); }
.pg-card:hover   { box-shadow:0 4px 20px rgba(0,0,0,.07); }
.pg-card-head {
  display:flex; align-items:center; gap:1rem;
  padding:1rem 1.25rem; cursor:pointer;
  transition:background .15s;
  border-bottom:1px solid transparent;
  user-select:none;
}
.pg-card-head:hover { background:var(--bs-tertiary-bg); }
.pg-card.open .pg-card-head {
  background:var(--bs-tertiary-bg);
  border-bottom-color:var(--bs-border-color);
}
.pg-avatar {
  width:2.75rem; height:2.75rem; border-radius:.625rem;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.75rem; letter-spacing:.01em;
  flex-shrink:0; color:#fff;
  background:var(--gw-color);
  box-shadow:0 2px 8px color-mix(in srgb,var(--gw-color) 40%,transparent);
}
.pg-avatar img { width:100%; height:100%; object-fit:contain; border-radius:.5rem; }
.pg-status {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.67rem; font-weight:700; padding:.2rem .55rem;
  border-radius:99px; letter-spacing:.04em; text-transform:uppercase; flex-shrink:0;
}
.pg-status.on  { background:rgba(34,197,94,.12); color:#16a34a; border:1px solid rgba(34,197,94,.25); }
.pg-status.off { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border:1px solid var(--bs-border-color); }
[data-bs-theme=dark] .pg-status.on { background:rgba(34,197,94,.15); color:#4ade80; }
.pg-flow-badge {
  font-size:.63rem; font-weight:600; padding:.15rem .45rem;
  border-radius:.25rem; background:var(--bs-tertiary-bg);
  border:1px solid var(--bs-border-color);
  color:var(--bs-secondary-color); letter-spacing:.04em;
}
.pg-chevron { width:1rem; height:1rem; color:var(--bs-secondary-color); transition:transform .25s; flex-shrink:0; }
.pg-card.open .pg-chevron { transform:rotate(180deg); }
.pg-card-body { display:none; padding:1.25rem; }
.pg-card.open .pg-card-body { display:block; }
.pg-field-group {
  border:1px solid var(--bs-border-color);
  border-radius:.625rem; overflow:hidden; margin-bottom:1rem;
}
.pg-field-group-title {
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--bs-secondary-color); padding:.5rem .875rem;
  background:var(--bs-tertiary-bg); border-bottom:1px solid var(--bs-border-color);
}
.pg-field-row {
  display:grid; grid-template-columns:1fr 1fr; gap:1rem;
  padding:.875rem;
}
.pg-field-row.full { grid-template-columns:1fr; }
.pg-field-item { display:flex; flex-direction:column; gap:.3rem; }
.pg-field-label { font-size:.78rem; font-weight:600; color:var(--bs-body-color); }
.pg-field-hint  { font-size:.71rem; color:var(--bs-secondary-color); line-height:1.45; }
.pg-pw-wrap { position:relative; }
.pg-pw-wrap input { padding-right:2.5rem; }
.pg-pw-eye {
  position:absolute; right:.625rem; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--bs-secondary-color); cursor:pointer;
  padding:.2rem; line-height:0;
}
.pg-pw-eye:hover { color:var(--bs-body-color); }
.pg-url-section {
  background:var(--bs-tertiary-bg);
  border:1px solid var(--bs-border-color);
  border-radius:.625rem; padding:.875rem 1rem; margin-bottom:1rem;
}
.pg-url-section-title {
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--bs-secondary-color); margin-bottom:.625rem;
}
.pg-url-row {
  display:flex; align-items:center; gap:.625rem;
  padding:.4rem 0; border-bottom:1px solid var(--bs-border-color-translucent);
}
.pg-url-row:last-child { border-bottom:none; padding-bottom:0; }
.pg-url-type {
  font-size:.62rem; font-weight:700; padding:.18rem .45rem;
  border-radius:.25rem; flex-shrink:0; text-transform:uppercase; letter-spacing:.04em;
}
.pg-url-webhook { background:rgba(99,102,241,.1); color:#6366f1; border:1px solid rgba(99,102,241,.2); }
.pg-url-return  { background:rgba(14,165,233,.1); color:#0ea5e9; border:1px solid rgba(14,165,233,.2); }
.pg-url-cancel  { background:rgba(245,158,11,.1); color:#f59e0b; border:1px solid rgba(245,158,11,.2); }
[data-bs-theme=dark] .pg-url-webhook { background:rgba(99,102,241,.15); color:#a5b4fc; }
[data-bs-theme=dark] .pg-url-return  { background:rgba(14,165,233,.15); color:#7dd3fc; }
[data-bs-theme=dark] .pg-url-cancel  { background:rgba(245,158,11,.15); color:#fde68a; }
.pg-url-val {
  font-family:var(--bs-font-monospace); font-size:.75rem;
  flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--bs-body-color);
}
.pg-copy-btn {
  background:none; border:1px solid var(--bs-border-color);
  border-radius:.35rem; padding:.22rem .55rem; cursor:pointer;
  font-size:.68rem; color:var(--bs-secondary-color);
  display:flex; align-items:center; gap:.25rem; flex-shrink:0;
  transition:background .15s, color .15s;
}
.pg-copy-btn:hover { background:var(--bs-body-bg); color:var(--bs-body-color); }
.pg-copy-btn.copied { color:#22c55e; border-color:rgba(34,197,94,.3); }
.pg-note {
  border-radius:.5rem; padding:.75rem 1rem;
  font-size:.81rem; line-height:1.6;
  margin-bottom:.75rem;
}
.pg-note-info    { background:color-mix(in srgb,var(--bs-body-bg) 94%,#38bdf8); border:1px solid color-mix(in srgb,transparent 60%,#38bdf8); }
.pg-note-warning { background:color-mix(in srgb,var(--bs-body-bg) 94%,#f59e0b); border:1px solid color-mix(in srgb,transparent 65%,#f59e0b); }
.pg-note-danger  { background:color-mix(in srgb,var(--bs-body-bg) 94%,#ef4444); border:1px solid color-mix(in srgb,transparent 65%,#ef4444); }
.pg-note-title { font-weight:700; margin-bottom:.4rem; display:flex; align-items:center; gap:.4rem; font-size:.8rem; }
.pg-note-title-info    { color:#0ea5e9; }
.pg-note-title-warning { color:#f59e0b; }
.pg-note-title-danger  { color:#ef4444; }
.pg-note ul { margin:0; padding-left:1.1rem; }
.pg-note ul li { margin-bottom:.2rem; }
.pg-note ul li:last-child { margin-bottom:0; }
.pg-enable-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem; border-radius:.5rem; margin-bottom:1rem;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
}
.pg-global-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem; overflow:hidden; margin-bottom:1.5rem;
  background:var(--bs-body-bg);
}
.pg-global-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 1.25rem; cursor:pointer;
  border-bottom:1px solid transparent;
  transition:background .15s;
}
.pg-global-head:hover { background:var(--bs-tertiary-bg); }
.pg-global-card.open .pg-global-head {
  background:var(--bs-tertiary-bg);
  border-bottom-color:var(--bs-border-color);
}
.pg-global-body { display:none; padding:1.25rem; }
.pg-global-card.open .pg-global-body { display:block; }
@media(max-width:576px) { .pg-field-row { grid-template-columns:1fr; } }

/* ══════════════════════════════════════════════════════════════════════════
   Admin Propagation Resolvers  (views/admin/propagation-resolvers.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes prSlideIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes prRowNew  { from{background:rgba(99,102,241,.18)}       to{background:transparent} }
@keyframes prRowDel  { to{opacity:0;transform:translateX(20px);max-height:0;padding:0} }
@keyframes prCount   { from{opacity:0;transform:scale(.8)} to{opacity:1;transform:scale(1)} }
.pr-reveal { animation:prSlideIn .35s ease both; }
.pr-stat-row { display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.pr-stat {
  flex:1; min-width:7rem;
  border:1px solid var(--bs-border-color);
  border-radius:.75rem;
  padding:.875rem 1.1rem;
  background:var(--bs-body-bg);
  animation:prSlideIn .35s ease both;
}
.pr-stat-num {
  font-size:1.75rem; font-weight:800; line-height:1;
  font-variant-numeric:tabular-nums;
  animation:prCount .5s ease both;
}
.pr-stat-lbl { font-size:.72rem; color:var(--bs-secondary-color); margin-top:.2rem; }
.pr-filter-bar {
  border:1px solid var(--bs-border-color);
  border-radius:.75rem;
  background:var(--bs-body-bg);
  padding:.75rem 1rem;
  margin-bottom:1rem;
  display:flex; flex-wrap:wrap; align-items:center; gap:.625rem;
}
.pr-status-pill {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.3rem .75rem; border-radius:99px; font-size:.78rem; font-weight:500;
  border:1px solid var(--bs-border-color); background:transparent;
  color:var(--bs-secondary-color); cursor:pointer; transition:all .15s;
  white-space:nowrap;
}
.pr-status-pill.active-all      { background:#6366f1;  color:#fff; border-color:#6366f1; }
.pr-status-pill.active-enabled  { background:#22c55e;  color:#fff; border-color:#22c55e; }
.pr-status-pill.active-disabled { background:#94a3b8;  color:#fff; border-color:#94a3b8; }
.pr-card {
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  overflow:hidden;
  background:var(--bs-body-bg);
  margin-bottom:1rem;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}
.pr-card-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:.875rem 1.1rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
}
.pr-table { width:100%; border-collapse:collapse; }
.pr-table th {
  font-size:.67rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--bs-secondary-color); padding:.6rem .875rem;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg); white-space:nowrap;
}
.pr-table td {
  padding:.55rem .875rem;
  border-bottom:1px solid var(--bs-border-color-translucent);
  vertical-align:middle;
}
.pr-table tbody tr:last-child td { border-bottom:none; }
.pr-table tbody tr { transition:background .15s; }
.pr-table tbody tr:hover { background:var(--bs-tertiary-bg); }
.pr-table tbody tr.pr-row-new  { animation:prRowNew 1.8s ease forwards; }
.pr-table tbody tr.pr-row-del  { animation:prRowDel .3s ease forwards; overflow:hidden; }
.pr-table tbody tr.pr-row-hidden { display:none; }
.pr-region-chip {
  display:inline-flex; align-items:center;
  font-size:.65rem; font-weight:700; padding:.18rem .5rem;
  border-radius:99px; white-space:nowrap; letter-spacing:.03em;
}
.pr-toggle { position:relative; display:inline-block; width:2rem; height:1.1rem; flex-shrink:0; }
.pr-toggle input { opacity:0; width:0; height:0; }
.pr-toggle-slider {
  position:absolute; inset:0; border-radius:99px; cursor:pointer;
  background:#cbd5e1; transition:background .2s;
}
.pr-toggle input:checked + .pr-toggle-slider { background:#22c55e; }
.pr-toggle-slider::before {
  content:''; position:absolute;
  width:.8rem; height:.8rem; border-radius:50%; background:#fff;
  left:.15rem; top:.15rem;
  transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.pr-toggle input:checked + .pr-toggle-slider::before { transform:translateX(.9rem); }
.pr-ip-badge {
  font-family:var(--bs-font-monospace); font-size:.77rem;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  border-radius:.375rem; padding:.18rem .5rem; display:inline-block;
}
.pr-table input.form-control,
.pr-table select.form-select {
  font-size:.8rem; padding:.3rem .55rem; border-radius:.375rem;
}
.pr-table input.form-control:focus,
.pr-table select.form-select:focus {
  box-shadow:0 0 0 2px rgba(99,102,241,.2);
  border-color:#6366f1;
}
.pr-del-btn {
  width:1.75rem; height:1.75rem; border-radius:.375rem;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:1px solid transparent;
  color:var(--bs-secondary-color); cursor:pointer;
  transition:background .15s, color .15s, border-color .15s;
}
.pr-del-btn:hover { background:rgba(239,68,68,.1); color:#ef4444; border-color:rgba(239,68,68,.2); }
.pr-empty {
  text-align:center; padding:3rem 1rem; color:var(--bs-secondary-color);
  display:none;
}
.pr-empty-icon { width:2.5rem; height:2.5rem; margin:0 auto 1rem; opacity:.3; }
.pr-save-bar {
  position:sticky; bottom:0; z-index:100;
  border:1px solid var(--bs-border-color);
  border-radius:.875rem;
  background:var(--bs-body-bg);
  box-shadow:0 -4px 24px rgba(0,0,0,.08);
  padding:.875rem 1.25rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-top:1rem;
  animation:prSlideIn .4s .2s ease both;
}
.pr-modal-overlay {
  position:fixed; inset:0; z-index:1060;
  background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .2s;
}
.pr-modal-overlay.open { opacity:1; pointer-events:auto; }
.pr-modal-box {
  background:var(--bs-body-bg);
  border-radius:1rem;
  padding:1.75rem;
  max-width:26rem; width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  transform:scale(.95); transition:transform .2s;
}
.pr-modal-overlay.open .pr-modal-box { transform:scale(1); }
@media(max-width:768px) {
  .pr-table th:nth-child(7),
  .pr-table td:nth-child(7) { display:none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Public Flash Toasts  (views/layout/base.php)
   ══════════════════════════════════════════════════════════════════════════ */
#flash-stack{position:fixed;top:80px;right:1rem;z-index:10500;display:flex;flex-direction:column;gap:.5rem;width:360px;max-width:calc(100vw - 1.5rem);pointer-events:none}
.flt{display:flex;align-items:flex-start;gap:10px;padding:13px 14px 16px;border-radius:12px;border:1px solid;pointer-events:all;position:relative;overflow:hidden;background:var(--bs-body-bg);box-shadow:0 4px 24px rgba(0,0,0,.14);animation:flt-in .3s cubic-bezier(.34,1.56,.64,1) both}
.flt-out{animation:flt-out .28s ease forwards!important}
@keyframes flt-in  {from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)}}
@keyframes newkey-pulse {0%,100%{box-shadow:0 0 0 4px rgba(139,92,246,.08),0 4px 20px rgba(139,92,246,.12)} 50%{box-shadow:0 0 0 6px rgba(139,92,246,.18),0 4px 24px rgba(139,92,246,.22)}}
.newkey-banner{animation:flt-in .35s cubic-bezier(.34,1.56,.64,1) both,newkey-pulse 2.2s ease-in-out .4s 3}
@keyframes flt-out {from{opacity:1;transform:translateX(0)}    to{opacity:0;transform:translateX(32px)}}
.flt-success{border-color:rgba(34,197,94,.35);background:color-mix(in srgb,var(--bs-body-bg) 92%,#22c55e)}
.flt-error  {border-color:rgba(239,68,68,.35); background:color-mix(in srgb,var(--bs-body-bg) 92%,#ef4444)}
.flt-warning{border-color:rgba(234,179,8,.35); background:color-mix(in srgb,var(--bs-body-bg) 92%,#eab308)}
.flt-info   {border-color:rgba(59,130,246,.35); background:color-mix(in srgb,var(--bs-body-bg) 92%,#3b82f6)}
.flt-icon{width:20px;height:20px;flex-shrink:0;margin-top:1px}
.flt-body{flex:1;min-width:0}
.flt-title{font-size:.82rem;font-weight:700;margin-bottom:2px;color:var(--bs-body-color)}
.flt-msg{font-size:.81rem;color:var(--bs-secondary-color);line-height:1.45;word-break:break-word}
.flt-close{background:none;border:none;padding:2px 4px;cursor:pointer;color:var(--bs-secondary-color);opacity:.6;font-size:.9rem;line-height:1;flex-shrink:0;transition:opacity .15s}
.flt-close:hover{opacity:1}
.flt-bar{position:absolute;bottom:0;left:0;height:3px;border-radius:0 0 12px 12px;animation:flt-drain linear forwards}
.flt-success .flt-bar{background:#22c55e} .flt-error .flt-bar{background:#ef4444}
.flt-warning .flt-bar{background:#eab308} .flt-info .flt-bar{background:#3b82f6}
@keyframes flt-drain{from{width:100%} to{width:0}}

/* ══════════════════════════════════════════════════════════════════════════
   Admin Flash Toasts  (views/layout/admin.php)
   ══════════════════════════════════════════════════════════════════════════ */
#adm-flash{position:fixed;top:60px;right:1rem;z-index:10500;display:flex;flex-direction:column;gap:.5rem;width:340px;max-width:calc(100vw - 1.5rem);pointer-events:none}
.aflt{display:flex;align-items:flex-start;gap:10px;padding:13px 14px 16px;border-radius:10px;border:1px solid;pointer-events:all;position:relative;overflow:hidden;background:var(--bs-body-bg);box-shadow:0 4px 20px rgba(0,0,0,.14);animation:aflt-in .28s cubic-bezier(.34,1.56,.64,1) both}
.aflt-out{animation:aflt-out .22s ease forwards!important}
@keyframes aflt-in {from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:translateX(0)}}
@keyframes aflt-out{from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(28px)}}
.aflt-success{border-color:rgba(34,197,94,.3);background:color-mix(in srgb,var(--bs-body-bg) 93%,#22c55e)}
.aflt-error  {border-color:rgba(239,68,68,.3);background:color-mix(in srgb,var(--bs-body-bg) 93%,#ef4444)}
.aflt-warning{border-color:rgba(234,179,8,.3);background:color-mix(in srgb,var(--bs-body-bg) 93%,#eab308)}
.aflt-info   {border-color:rgba(59,130,246,.3);background:color-mix(in srgb,var(--bs-body-bg) 93%,#3b82f6)}
.aflt-icon{width:18px;height:18px;flex-shrink:0;margin-top:1px}
.aflt-body{flex:1;min-width:0}
.aflt-title{font-size:.79rem;font-weight:700;margin-bottom:2px;color:var(--bs-body-color)}
.aflt-msg{font-size:.79rem;color:var(--bs-secondary-color);line-height:1.4;word-break:break-word}
.aflt-close{background:none;border:none;padding:2px 4px;cursor:pointer;color:var(--bs-secondary-color);opacity:.5;line-height:1;flex-shrink:0;transition:opacity .12s}.aflt-close:hover{opacity:1}
.aflt-bar{position:absolute;bottom:0;left:0;height:3px;border-radius:0 0 10px 10px;animation:aflt-drain linear forwards}
.aflt-success .aflt-bar{background:#22c55e}.aflt-error .aflt-bar{background:#ef4444}
.aflt-warning .aflt-bar{background:#eab308}.aflt-info .aflt-bar{background:#3b82f6}
@keyframes aflt-drain{from{width:100%} to{width:0}}

/* ══════════════════════════════════════════════════════════════════════════
   Blocked banner  (views/layout/_blocked_banner.php)
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes blk-ban-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
@keyframes blk-ban-ping {
  0%   { transform: scale(1);   opacity: .55; }
  75%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}
@keyframes blk-ban-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(220,38,38,.3); }
  50%       { box-shadow: 0 0 0 8px rgba(220,38,38,0);  }
}


.blk-ban {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(220,38,38,.2);
  border-left: 4px solid #dc2626;
  border-radius: .875rem;
  background: rgba(220,38,38,.05);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  animation: blk-ban-in .38s cubic-bezier(.22,1,.36,1) both;
}
.blk-ban::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,.04) 0%, transparent 60%);
  pointer-events: none;
}
[data-bs-theme="dark"] .blk-ban {
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.3);
  border-left-color: #ef4444;
}

.blk-ban-icon-wrap {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.blk-ban-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(220,38,38,.2);
  animation: blk-ban-ping 2s cubic-bezier(0,0,.2,1) infinite;
}
.blk-ban-ping.delay { animation-delay: .7s; }
.blk-ban-icon-bg {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(220,38,38,.12);
  border: 1.5px solid rgba(220,38,38,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  animation: blk-ban-pulse 2.4s ease-in-out infinite;
}
[data-bs-theme="dark"] .blk-ban-icon-bg {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.4);
  color: #f87171;
}

.blk-ban-body { flex: 1; min-width: 0; }
.blk-ban-title {
  font-weight: 700;
  font-size: .925rem;
  color: #dc2626;
  margin-bottom: .2rem;
  letter-spacing: -.01em;
}
[data-bs-theme="dark"] .blk-ban-title { color: #f87171; }
.blk-ban-sub {
  font-size: .82rem;
  color: var(--bs-secondary-color);
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════════════════
   SEO Settings page  (views/admin/seo.php)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Segmented tab bar ─────────────────────────────────────────────────── */
.seo-tab-list {
  display: flex;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: .3rem;
  gap: .2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.seo-tab-btn {
  flex: 1;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .7rem .5rem .6rem;
  border: none;
  border-radius: .5rem;
  background: transparent;
  color: var(--bs-secondary-color);
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1;
}
.seo-tab-btn svg { transition: color .15s, opacity .15s; opacity: .65; }
.seo-tab-btn:hover:not(.active) {
  background: rgba(0,0,0,.04);
  color: var(--bs-body-color);
}
.seo-tab-btn:hover:not(.active) svg { opacity: .85; }
.seo-tab-btn.active {
  background: var(--bs-body-bg);
  color: #6366f1;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.1), 0 0 0 1px rgba(99,102,241,.15);
}
.seo-tab-btn.active svg { opacity: 1; color: #6366f1; }
[data-bs-theme="dark"] .seo-tab-btn:hover:not(.active) { background: rgba(255,255,255,.06); }
[data-bs-theme="dark"] .seo-tab-btn.active {
  box-shadow: 0 1px 4px rgba(0,0,0,.3), 0 0 0 1px rgba(99,102,241,.3);
}
@media (max-width: 575.98px) {
  .seo-tab-btn { min-width: 76px; font-size: .7rem; padding: .6rem .35rem .5rem; gap: .28rem; }
}

/* SERP preview */
.seo-serp-preview {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--bs-body-bg);
  margin-bottom: 1.5rem;
}
.seo-serp-eyebrow {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--bs-secondary-color);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.seo-serp-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--bs-border-color); }
.seo-serp-url  { font-size: .8rem; color: #1a7f37; margin-bottom: .18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-serp-title { font-size: 1.1rem; color: #1a0dab; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.seo-serp-title:hover { text-decoration: underline; }
.seo-serp-desc  { font-size: .84rem; color: #4d5156; line-height: 1.55; margin-top: .22rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-bs-theme="dark"] .seo-serp-url   { color: #4ade80; }
[data-bs-theme="dark"] .seo-serp-title { color: #8ab4f8; }
[data-bs-theme="dark"] .seo-serp-desc  { color: #bdc1c6; }

/* Character counter bar */
.seo-char-row { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.seo-char-bar-wrap { flex: 1; height: 3px; border-radius: 99px; background: var(--bs-tertiary-bg); overflow: hidden; }
.seo-char-bar { height: 100%; border-radius: 99px; transition: width .18s, background .18s; background: #22c55e; }
.seo-char-bar.warn { background: #f59e0b; }
.seo-char-bar.over { background: #ef4444; }
.seo-char-lbl { font-size: .67rem; font-family: var(--bs-font-monospace); color: var(--bs-secondary-color); white-space: nowrap; min-width: 3.5rem; text-align: right; transition: color .18s; }
.seo-char-lbl.warn { color: #d97706; }
.seo-char-lbl.over { color: #dc2626; font-weight: 700; }

/* Section divider */
.seo-section-head {
  font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--bs-secondary-color); display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.seo-section-head::after { content: ''; flex: 1; height: 1px; background: var(--bs-border-color); }

/* OG preview card */
.seo-og-preview {
  border: 1px solid var(--bs-border-color);
  border-radius: .625rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  position: sticky;
  top: 1rem;
}
.seo-og-img-wrap {
  width: 100%; aspect-ratio: 1.91 / 1;
  background: var(--bs-tertiary-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.seo-og-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.seo-og-img-placeholder { font-size: .7rem; color: var(--bs-secondary-color); font-family: var(--bs-font-monospace); }
.seo-og-body { padding: .75rem 1rem; border-top: 1px solid var(--bs-border-color); }
.seo-og-domain { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); margin-bottom: .18rem; }
.seo-og-title  { font-size: .9rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: .18rem; }
.seo-og-desc   { font-size: .78rem; color: var(--bs-secondary-color); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-og-label  { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-secondary-color); padding: .4rem .75rem; background: var(--bs-tertiary-bg); }

/* Twitter / X live card preview */
.seo-tw-prev { position: sticky; top: 1rem; }
.seo-tw-prev-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .625rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  transition: all .2s;
}
/* Large image layout (default) */
.seo-tw-prev-img {
  width: 100%; aspect-ratio: 2 / 1;
  background: var(--bs-tertiary-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: all .2s;
}
.seo-tw-prev-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.seo-tw-prev-ph { font-size: .7rem; color: var(--bs-secondary-color); font-family: var(--bs-font-monospace); }
.seo-tw-prev-body { padding: .6rem .85rem .75rem; }
.seo-tw-prev-domain { font-size: .7rem; color: var(--bs-secondary-color); margin-bottom: .15rem; }
.seo-tw-prev-title  { font-size: .88rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-tw-prev-label  { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-secondary-color); padding: .35rem .75rem; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }
/* Summary layout (small thumbnail) */
.seo-tw-prev-card.is-summary { display: flex; align-items: stretch; }
.seo-tw-prev-card.is-summary .seo-tw-prev-img { width: 5rem; flex-shrink: 0; aspect-ratio: unset; border-radius: 0; border-right: 1px solid var(--bs-border-color); }
.seo-tw-prev-card.is-summary .seo-tw-prev-body { display: flex; flex-direction: column; justify-content: center; }
.seo-tw-prev-card.is-summary .seo-tw-prev-label { display: none; }

/* Twitter card type selector */
.seo-tw-opts { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.seo-tw-opt {
  flex: 1; min-width: 140px;
  border: 2px solid var(--bs-border-color);
  border-radius: .625rem; padding: .75rem;
  cursor: pointer; transition: border-color .15s, background .15s; position: relative;
}
.seo-tw-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seo-tw-opt.selected { border-color: #3b82f6; background: rgba(59,130,246,.05); }
.seo-tw-mock { border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: hidden; margin-bottom: .5rem; }
.seo-tw-mock-img { background: var(--bs-tertiary-bg); display: flex; align-items: center; justify-content: center; }
.seo-tw-mock-large .seo-tw-mock-img { height: 5rem; width: 100%; }
.seo-tw-mock-small { display: flex; }
.seo-tw-mock-small .seo-tw-mock-img { width: 4.5rem; height: 4rem; flex-shrink: 0; }
.seo-tw-mock-body { padding: .35rem .55rem; }
.seo-tw-mock-ttl  { font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-tw-mock-sub  { font-size: .63rem; color: var(--bs-secondary-color); }
.seo-tw-opt-label { font-size: .82rem; font-weight: 700; margin-bottom: .08rem; }
.seo-tw-opt-sub   { font-size: .72rem; color: var(--bs-secondary-color); }
.seo-tw-check { position: absolute; top: .5rem; right: .5rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #3b82f6; color: #fff; display: none; align-items: center; justify-content: center; }
.seo-tw-opt.selected .seo-tw-check { display: flex; }

/* Structured data toggle rows */
.seo-toggle-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: .875rem 0; border-bottom: 1px solid var(--bs-border-color-translucent);
}
.seo-toggle-row:last-child { border-bottom: none; }
.seo-toggle-info { flex: 1; min-width: 0; }
.seo-toggle-label { font-size: .88rem; font-weight: 600; margin-bottom: .12rem; }
.seo-toggle-desc  { font-size: .77rem; color: var(--bs-secondary-color); line-height: 1.45; }

/* Tool pages — status overview */
.seo-tool-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem; margin-bottom: 1.25rem;
}
.seo-tool-chip {
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem; padding: .5rem .7rem;
  font-size: .77rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  background: var(--bs-body-bg);
  cursor: pointer; transition: background .12s, border-color .12s;
  text-decoration: none; color: var(--bs-body-color);
}
.seo-tool-chip:hover { background: var(--bs-tertiary-bg); border-color: var(--bs-secondary-border-subtle); color: var(--bs-body-color); }
.seo-tool-chip.has-config { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.04); }
.seo-tool-chip-dot { width: .45rem; height: .45rem; border-radius: 50%; flex-shrink: 0; background: #cbd5e1; }
.seo-tool-chip.has-config .seo-tool-chip-dot { background: #22c55e; }

/* Tool accordion */
.seo-tool-card {
  border: 1px solid var(--bs-border-color); border-radius: .625rem;
  overflow: hidden; margin-bottom: .5rem;
}
.seo-tool-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .65rem 1rem;
  background: var(--bs-body-bg); border: none; cursor: pointer;
  font-size: .85rem; text-align: left; color: var(--bs-body-color);
  transition: background .12s; gap: .5rem;
}
.seo-tool-btn:hover { background: var(--bs-tertiary-bg); }
.seo-tool-btn.open { background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--bs-border-color); }
.seo-tool-chevron { transition: transform .2s; flex-shrink: 0; color: var(--bs-secondary-color); }
.seo-tool-btn.open .seo-tool-chevron { transform: rotate(180deg); }
.seo-tool-badge {
  font-size: .64rem; font-weight: 600; padding: .12rem .42rem;
  border-radius: 99px; white-space: nowrap;
}
.seo-tool-badge.cfg { background: rgba(34,197,94,.12); color: #15803d; }
.seo-tool-badge.def { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); }
[data-bs-theme="dark"] .seo-tool-badge.cfg { color: #4ade80; background: rgba(34,197,94,.15); }
.seo-tool-body { padding: 1rem; }

/* =================================================================================================
   Pricing page
   ================================================================================================= */
/* ════════════════════════════════════════════════════════════════
   Pricing page — self-contained styles
   (runtime gradient accent can't live in app.css)
   ════════════════════════════════════════════════════════════════ */

/* Hero */
.prx-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.12), transparent 70%);
  pointer-events: none;
}
.prx-hero-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.prx-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #6366f1; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  border-radius: 99px; padding: .3rem .85rem; margin-bottom: 1.25rem;
  animation: prxFadeUp .5s .05s ease both;
}
.prx-hero-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 1rem;
  animation: prxFadeUp .5s .12s ease both;
}
.prx-hero-title-accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.prx-hero-sub {
  font-size: 1.05rem; color: var(--bs-secondary-color); line-height: 1.65; max-width: 540px; margin: 0 auto;
  animation: prxFadeUp .5s .2s ease both;
}

/* Plans grid */
.prx-plans-section { padding: 0 0 5rem; }
.prx-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .prx-plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .prx-plans-grid { grid-template-columns: 1fr; }
}

/* Plan card — overflow:hidden so topper clips to border-radius cleanly */
.prx-plan-card {
  background: var(--bs-body-bg);
  border: 1.5px solid var(--bs-border-color);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  animation: prxCardUp .45s ease both;
}
.prx-plan-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--prx-glow), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  z-index: 0;
}
.prx-plan-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.prx-plan-card:hover::before { opacity: 1; }

/* Card body — padded content area below the topper */
.prx-plan-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Popular / current highlight */
.prx-plan-popular {
  border-color: var(--prx-accent);
  box-shadow: 0 0 0 1px var(--prx-accent), 0 8px 32px var(--prx-glow);
}
.prx-plan-current {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e, 0 8px 32px rgba(34,197,94,.15);
}

/* Topper strip — sits flush at top edge, clipped by card's overflow:hidden */
.prx-plan-topper {
  padding: .5rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  flex-shrink: 0;
}
.prx-plan-topper-popular { background: var(--prx-accent); color: #fff; }
.prx-plan-topper-current { background: #22c55e; color: #fff; }
/* Empty topper — invisible but same height so all card bodies align */
.prx-plan-topper-empty {
  color: transparent; user-select: none; pointer-events: none;
  background: transparent;
}

/* Plan top */
.prx-plan-top {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.25rem;
}
.prx-plan-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.prx-plan-name {
  font-size: 1.05rem; font-weight: 700; color: var(--bs-body-color); margin-bottom: 4px;
}
.prx-fresh-badge, .prx-cached-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 99px;
}
.prx-fresh-badge {
  background: rgba(34,197,94,.12); color: #16a34a;
  border: 1px solid rgba(34,197,94,.25);
}
.prx-cached-badge {
  background: var(--bs-tertiary-bg); color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .prx-fresh-badge { color: #4ade80; }

/* Price */
.prx-price-row {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 1.25rem;
}
.prx-price-amount { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.prx-price-period { font-size: .85rem; color: var(--bs-secondary-color); font-weight: 500; }

/* Limits */
.prx-limits {
  display: flex; flex-direction: column; gap: 7px; margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  background: var(--bs-tertiary-bg);
  border-radius: 10px;
}
.prx-limit-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .81rem; color: var(--bs-secondary-color);
}

/* Divider */
.prx-plan-divider { height: 1px; background: var(--bs-border-color); margin: .25rem 0 1rem; }

/* Features */
.prx-features { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 8px; }
.prx-feature-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .83rem; color: var(--bs-secondary-color); line-height: 1.45;
}
.prx-check {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* Buttons */
.prx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .85rem; font-weight: 700; padding: .65rem 1.25rem; border-radius: 10px;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.prx-btn.w-100 { width: 100%; }
.prx-btn-primary {
  background: var(--prx-accent, #6366f1); color: #fff;
  box-shadow: 0 4px 16px var(--prx-glow, rgba(99,102,241,.3));
}
.prx-btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.prx-btn-outline {
  background: transparent; color: var(--prx-accent, #6366f1);
  border: 1.5px solid var(--prx-accent, #6366f1);
}
.prx-btn-outline:hover { background: var(--prx-accent, #6366f1); color: #fff; }
.prx-btn-current {
  background: rgba(34,197,94,.1); color: #16a34a;
  border: 1.5px solid rgba(34,197,94,.3);
}
[data-bs-theme="dark"] .prx-btn-current { color: #4ade80; }

/* ── Freshness section ── */
.prx-freshness-section {
  padding: 5rem 0;
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.prx-section-label {
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #6366f1; margin-bottom: .6rem;
}
.prx-section-title {
  text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .75rem;
}
.prx-section-sub {
  text-align: center; color: var(--bs-secondary-color); font-size: .96rem;
  max-width: 520px; margin: 0 auto 3rem;
}
.prx-fresh-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 920px; margin: 0 auto;
}
@media (max-width:640px) { .prx-fresh-grid { grid-template-columns: 1fr; } }
.prx-fresh-card {
  background: var(--bs-body-bg); border-radius: 16px; padding: 2rem;
  border: 1.5px solid var(--bs-border-color);
}
.prx-fresh-live { border-color: rgba(99,102,241,.4); box-shadow: 0 4px 24px rgba(99,102,241,.1); }
.prx-fresh-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem;
}
.prx-fresh-cached .prx-fresh-card-icon { background: var(--bs-tertiary-bg); }
.prx-fresh-live .prx-fresh-card-icon { background: rgba(99,102,241,.1); }
.prx-fresh-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.prx-fresh-card-desc { font-size: .86rem; color: var(--bs-secondary-color); line-height: 1.65; margin-bottom: 1.25rem; }
.prx-fresh-example { }
.prx-fresh-example-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--bs-secondary-color); margin-bottom: .5rem;
}
.prx-code-block {
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color);
  border-radius: 10px; padding: 1rem 1.1rem;
  font-size: .73rem; line-height: 1.65; color: var(--bs-body-color);
  margin: 0; overflow-x: auto;
  font-family: 'Courier New', monospace;
}
.prx-fresh-live .prx-code-block { border-color: rgba(99,102,241,.25); }

/* ── Compare table ── */
.prx-compare-section { padding: 5rem 0; }
.prx-compare-wrap { overflow-x: auto; margin-top: 2.5rem; }
.prx-compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .87rem;
}
.prx-compare-table th, .prx-compare-table td {
  padding: .9rem 1.25rem; text-align: center; border-bottom: 1px solid var(--bs-border-color);
}
.prx-compare-table th { font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.prx-compare-feature-col { text-align: left !important; color: var(--bs-body-color); font-weight: 600; }
.prx-compare-table td:first-child { text-align: left; color: var(--bs-secondary-color); }
.prx-compare-popular-col {
  background: rgba(99,102,241,.05);
  border-left: 1px solid rgba(99,102,241,.2);
  border-right: 1px solid rgba(99,102,241,.2);
}
.prx-compare-popular-chip {
  display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(99,102,241,.15); border-radius: 99px;
  padding: .15rem .45rem; margin-left: 4px; vertical-align: middle;
}
.prx-compare-note { font-size: .72rem; color: var(--bs-secondary-color); font-weight: 400; margin-top: 2px; }
.prx-compare-yes { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .82rem; }
.prx-compare-cached { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--bs-secondary-color); }
.prx-compare-unit { font-size: .75rem; color: var(--bs-secondary-color); }
.prx-tick { display: block; margin: 0 auto; }

/* ── FAQ ── */
.prx-faq-section { padding: 5rem 0; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }
.prx-faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 960px; margin: 2.5rem auto 0;
}
@media (max-width:640px) { .prx-faq-grid { grid-template-columns: 1fr; } }
.prx-faq-item {
  background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color);
  border-radius: 14px; padding: 1.25rem 1.5rem;
  animation: prxFadeUp .4s ease both;
}
.prx-faq-q {
  font-weight: 700; font-size: .9rem; margin-bottom: .6rem;
  display: flex; align-items: flex-start; gap: 8px; color: var(--bs-body-color);
}
.prx-faq-a { font-size: .84rem; color: var(--bs-secondary-color); line-height: 1.65; }
.prx-faq-link { color: #6366f1; text-decoration: none; font-weight: 600; }
.prx-faq-link:hover { text-decoration: underline; }

/* ── Bottom CTA ── */
.prx-cta-section { padding: 6rem 0; }
.prx-cta-inner {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a5f 100%);
  padding: 4rem 3rem; text-align: center;
}
.prx-cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(99,102,241,.35), transparent 70%);
  pointer-events: none;
}
.prx-cta-content { position: relative; z-index: 1; }
.prx-cta-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: .75rem; letter-spacing: -.02em; }
.prx-cta-sub { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 460px; margin: 0 auto 2rem; line-height: 1.6; }
.prx-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.prx-btn-cta-primary {
  background: #fff; color: #312e81; font-weight: 800; padding: .75rem 2rem;
  border-radius: 12px; font-size: .92rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: all .18s;
}
.prx-btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); color: #312e81; }
.prx-btn-cta-outline {
  background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3);
  font-size: .92rem; padding: .75rem 2rem; border-radius: 12px; transition: all .18s;
}
.prx-btn-cta-outline:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Trust strip ── */
.prx-trust-strip {
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  padding: .8rem 0;
  margin-bottom: 3.5rem;
}
.prx-trust-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.prx-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: var(--bs-secondary-color);
  padding: .35rem 1.5rem;
}
.prx-trust-hl { color: var(--bs-body-color); font-weight: 500; }
.prx-trust-hl strong { color: #6366f1; }
.prx-trust-ic {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}
.prx-trust-ic-accent { color: #6366f1; border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.06); }
.prx-trust-sep { width: 1px; height: 26px; background: var(--bs-border-color); flex-shrink: 0; }
@media (max-width:600px) {
  .prx-trust-sep { display: none; }
  .prx-trust-item { padding: .3rem .9rem; }
}

/* ── Scroll-triggered animations ── */
[data-prx-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-prx-anim].prx-anim-in { opacity: 1; transform: translateY(0); }

/* ── Quota note on cached-plan cards ── */
.prx-quota-note {
  font-size: .73rem; color: #16a34a; line-height: 1.45; text-align: center;
  background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.2);
  border-radius: 8px; padding: .45rem .75rem; margin-bottom: .75rem;
}
.prx-quota-note strong { color: #15803d; }
[data-bs-theme="dark"] .prx-quota-note { color: #4ade80; background: rgba(34,197,94,.08); border-color: rgba(74,222,128,.2); }
[data-bs-theme="dark"] .prx-quota-note strong { color: #86efac; }

/* ── Compare table mobile scroll hint ── */
.prx-compare-scroll-hint {
  display: none; align-items: center; gap: 6px;
  font-size: .74rem; color: var(--bs-secondary-color);
  margin-bottom: .5rem; margin-top: 2rem;
}
@media (max-width:640px) { .prx-compare-scroll-hint { display: flex; } }

/* ── Keyframes ── */
@keyframes prxFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes prxCardUp {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
/* =================================================================================================
   Dark-mode supplement â€” hardcoded-colour overrides
   All classes below use light-palette backgrounds that need theme-aware equivalents.
   ================================================================================================= */

/* â”€â”€ Admin User Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .ud-stat            { background:var(--bs-tertiary-bg); border-color:var(--bs-border-color); }
[data-bs-theme="dark"] .ud-stat-val        { color:var(--bs-body-color); }
[data-bs-theme="dark"] .ud-stat-lbl        { color:var(--bs-secondary-color); }
[data-bs-theme="dark"] .ud-card            { background:var(--bs-body-bg); border-color:var(--bs-border-color); }
[data-bs-theme="dark"] .ud-card-hd         { background:var(--bs-tertiary-bg); border-color:var(--bs-border-color); }
[data-bs-theme="dark"] .ud-card-hd h6      { color:var(--bs-secondary-color); }
[data-bs-theme="dark"] .ud-field           { border-color:var(--bs-border-color); }
[data-bs-theme="dark"] .ud-field-lbl       { color:var(--bs-secondary-color); }
[data-bs-theme="dark"] .ud-field-val       { color:var(--bs-body-color); }

/* â”€â”€ WHOIS status chips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .whois-status-available { background:rgba(253,224,71,.08); color:#fde047; border-color:rgba(253,224,71,.2); }
[data-bs-theme="dark"] .chip-unavailable        { background:rgba(252,165,165,.08); color:#fca5a5; border-color:rgba(252,165,165,.2); }
[data-bs-theme="dark"] .chip-neutral            { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border-color:var(--bs-border-color); }

/* â”€â”€ DNSSEC â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .dnssec-ad-warn    { background:rgba(251,191,36,.08); color:#fbbf24; border-color:rgba(251,191,36,.2); }
[data-bs-theme="dark"] .dnssec-log-fail   { background:rgba(220,38,38,.08); }
[data-bs-theme="dark"] .dnssec-log-warn   { background:rgba(245,158,11,.07); }

/* â”€â”€ Propagation status pills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .status-pill-fail { background:rgba(252,165,165,.08); color:#fca5a5; border-color:rgba(252,165,165,.2); }
[data-bs-theme="dark"] .status-pill-warn { background:rgba(251,191,36,.08);  color:#fbbf24; border-color:rgba(251,191,36,.2); }

/* â”€â”€ DNS single-item fail/warn â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .dns-si-fail { background:rgba(220,38,38,.08); color:#fca5a5; }
[data-bs-theme="dark"] .dns-si-warn { background:rgba(217,119,6,.08); color:#fbbf24; }

/* â”€â”€ Batch domain counter â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .batch-domain-counter.warn { background:rgba(253,224,71,.08); color:#fde047; }
[data-bs-theme="dark"] .batch-domain-counter.over { background:rgba(252,165,165,.08); color:#fca5a5; }

/* â”€â”€ IP Intelligence â€” IRR / RPKI â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .irr-valid    { background:rgba(34,197,94,.08);  color:#4ade80; border-color:rgba(74,222,128,.2)   !important; }
[data-bs-theme="dark"] .irr-invalid  { background:rgba(220,38,38,.08);  color:#fca5a5; border-color:rgba(252,165,165,.3)  !important; }
[data-bs-theme="dark"] .irr-unknown  { background:rgba(161,98,7,.08);   color:#fde047; border-color:rgba(253,230,138,.25) !important; }
[data-bs-theme="dark"] .rpki-valid   { background:rgba(34,197,94,.08);  color:#4ade80; border-color:rgba(74,222,128,.2)   !important; }
[data-bs-theme="dark"] .rpki-invalid { background:rgba(220,38,38,.08);  color:#fca5a5; border-color:rgba(252,165,165,.3)  !important; }
[data-bs-theme="dark"] .ip-copy-btn.copied { color:#4ade80; border-color:rgba(74,222,128,.3); background:rgba(34,197,94,.08); }

/* â”€â”€ API Docs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-bs-theme="dark"] .apidoc-method-DELETE { background:rgba(220,38,38,.1);  color:#fca5a5; }
[data-bs-theme="dark"] .apidoc-method-MIXED  { background:rgba(234,179,8,.08); color:#fde047; }
[data-bs-theme="dark"] .apidoc-auth-required { background:rgba(234,179,8,.08); color:#fde047; border-color:rgba(253,230,138,.2); }
[data-bs-theme="dark"] .apidoc-info-warn     { background:rgba(245,158,11,.07); color:#fbbf24; border-left-color:#f59e0b; }
[data-bs-theme="dark"] .apidoc-s4xx { background:rgba(234,179,8,.08); color:#fde047; }
[data-bs-theme="dark"] .apidoc-s429 { background:rgba(234,88,12,.08); color:#fb923c; }
[data-bs-theme="dark"] .apidoc-s4r  { background:rgba(220,38,38,.08); color:#fca5a5; }

/* â”€â”€ Compare â€” legend colour dots â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cmp-dot-d1     { display:inline-block; width:.75rem; height:.75rem; border-radius:.2rem; background:#bfdbfe; }
.cmp-dot-d2     { display:inline-block; width:.75rem; height:.75rem; border-radius:.2rem; background:#ddd6fe; }
.cmp-dot-shared { display:inline-block; width:.75rem; height:.75rem; border-radius:.2rem; background:#e2e8f0; }
[data-bs-theme="dark"] .cmp-dot-d1     { background:#1d4ed8; }
[data-bs-theme="dark"] .cmp-dot-d2     { background:#6d28d9; }
[data-bs-theme="dark"] .cmp-dot-shared { background:#475569; }

/* â”€â”€ DNSSEC validation log badge (inline â†’ class) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ds-badge-pass { font-size:.65rem; background:#dcfce7; color:#16a34a; }
.ds-badge-warn { font-size:.65rem; background:#fef9c3; color:#ca8a04; }
.ds-badge-fail { font-size:.65rem; background:#fee2e2; color:#dc2626; }
[data-bs-theme="dark"] .ds-badge-pass { background:rgba(22,163,74,.12);  color:#4ade80; }
[data-bs-theme="dark"] .ds-badge-warn { background:rgba(202,138,4,.10); color:#fbbf24; }
[data-bs-theme="dark"] .ds-badge-fail { background:rgba(220,38,38,.10);  color:#fca5a5; }

/* â”€â”€ CT Log wildcard badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ctlog-wildcard-badge {
  font-size:.65rem; font-weight:400;
  background:#dbeafe; color:#1d4ed8; border:1px solid #bfdbfe;
}
[data-bs-theme="dark"] .ctlog-wildcard-badge { background:rgba(29,78,216,.15); color:#93c5fd; border-color:rgba(147,197,253,.2); }

/* â”€â”€ CT Log wildcard prefix colour â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ctlog-wild-prefix { color:#2563eb; }
[data-bs-theme="dark"] .ctlog-wild-prefix { color:#60a5fa; }

/* ── Analytics: Top Queried Items filters ─────────────────────────────── */
.tqi-pill {
  font-size:.68rem; padding:.22rem .65rem; border-radius:999px;
  background:transparent; border:1px solid; cursor:pointer;
  line-height:1.4; white-space:nowrap;
  transition:background .12s, color .12s, border-color .12s;
}
.tqi-seg {
  display:inline-flex; border-radius:6px; overflow:hidden;
  border:1px solid var(--bs-border-color);
}
.tqi-seg button {
  font-size:.68rem; padding:.22rem .6rem; background:transparent;
  border:none; border-right:1px solid var(--bs-border-color); cursor:pointer;
  line-height:1.4; white-space:nowrap;
  transition:background .12s, color .12s;
  color:var(--bs-secondary-color);
}
.tqi-seg button:last-child { border-right:none; }
.tqi-seg button.tqi-seg-active { background:#2563eb; color:#fff; }
.tqi-seg-err button.tqi-seg-active { background:#dc2626; color:#fff; }
[data-bs-theme="dark"] .tqi-seg { border-color:var(--bs-border-color); }

/* ── Analytics traffic-split segment bars ───────────────────────────────── */
.anl-seg-web  { background:#bfdbfe; color:#1e40af; }
.anl-seg-anon { background:#d1fae5; color:#065f46; }
.anl-dot-web  { background:#bfdbfe; }
.anl-dot-anon { background:#d1fae5; }
[data-bs-theme="dark"] .anl-seg-web  { background:rgba(59,130,246,.35);  color:#93c5fd; }
[data-bs-theme="dark"] .anl-seg-anon { background:rgba(34,197,94,.28);   color:#86efac; }
[data-bs-theme="dark"] .anl-dot-web  { background:#3b82f6; }
[data-bs-theme="dark"] .anl-dot-anon { background:#22c55e; }

/* ── Plan Limit Banner (.plb-*) ─────────────────────────────────────────── */
.plb-wrap {
  border-radius: .75rem;
  border: 1px solid rgba(var(--bs-warning-rgb), .35);
  background: rgba(var(--bs-warning-rgb), .08);
  padding: 1.5rem 1.75rem;
  animation: plb-in .4s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
@keyframes plb-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.plb-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(var(--bs-warning-rgb), .15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plb-title { font-weight: 700; font-size: 1.05rem; color: var(--bs-warning-text-emphasis, #997404); }
.plb-sub { font-size: .875rem; color: var(--bs-secondary-color); }
.plb-prog-wrap {
  border-radius: 99px;
  background: rgba(var(--bs-warning-rgb), .15);
  height: 6px; overflow: hidden;
}
.plb-prog-bar {
  height: 100%; width: 100%;
  background: var(--bs-warning);
  border-radius: 99px;
  animation: plb-bar-fill .55s cubic-bezier(.4,0,.2,1) .15s both;
}
@keyframes plb-bar-fill {
  from { width: 0; }
  to   { width: 100%; }
}
.plb-countdown {
  font-size: 2rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--bs-warning-text-emphasis, #997404);
}
.plb-countdown-label {
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; opacity: .6;
}
[data-bs-theme="dark"] .plb-wrap {
  border-color: rgba(var(--bs-warning-rgb), .25);
  background: rgba(var(--bs-warning-rgb), .06);
}
[data-bs-theme="dark"] .plb-title,
[data-bs-theme="dark"] .plb-countdown { color: var(--bs-warning); }
[data-bs-theme="dark"] .tqi-seg button { border-color:var(--bs-border-color); }
/* ── Custom DKIM selector widget (email health page) ─────────────────────── */
.dkim-toggle {
  background: none; border: none; padding: 0;
  font-size: .85rem; color: var(--bs-secondary-color);
  cursor: pointer; transition: color .15s ease;
}
.dkim-toggle:hover { color: var(--bs-body-color); }
.dkim-toggle-hint { font-size: .78rem; }
.dkim-caret { transition: transform .22s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.dkim-toggle[aria-expanded="true"] .dkim-caret { transform: rotate(90deg); }

.dkim-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
.dkim-panel.dkim-panel-open { max-height: 200px; opacity: 1; }
.dkim-panel-inner { padding-top: .65rem; }

.dkim-tag-input {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem .4rem; min-height: 40px; padding: .4rem .6rem;
  border: 1px solid var(--bs-border-color); border-radius: .5rem;
  background: var(--bs-body-bg); cursor: text; max-width: 560px;
  transition: border-color .15s, box-shadow .15s;
}
.dkim-tag-input:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
}
.dkim-tag-entry {
  border: none; outline: none; background: transparent;
  min-width: 160px; flex-grow: 1; font-size: .84rem;
  font-family: var(--bs-font-monospace); color: var(--bs-body-color);
  padding: 0; line-height: 1.6;
}
.dkim-tag-entry::placeholder { color: var(--bs-secondary-color); opacity: .7; }
.dkim-chip {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .16rem .48rem .16rem .52rem; border-radius: .375rem;
  background: rgba(var(--bs-primary-rgb), .1);
  border: 1px solid rgba(var(--bs-primary-rgb), .22);
  color: var(--bs-primary); font-size: .79rem;
  font-family: var(--bs-font-monospace);
  animation: dkim-chip-in .14s ease; user-select: none;
}
.dkim-chip-x {
  background: none; border: none; padding: 0; line-height: 1;
  cursor: pointer; opacity: .45; color: currentColor;
  display: flex; align-items: center; transition: opacity .12s;
}
.dkim-chip-x:hover { opacity: 1; }
@keyframes dkim-chip-in {
  from { opacity: 0; transform: scale(.82) translateY(1px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes dkim-chip-out {
  to { opacity: 0; transform: scale(.78); }
}
[data-bs-theme="dark"] .dkim-tag-input:focus-within {
  border-color: #6ea8fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.2);
}
[data-bs-theme="dark"] .dkim-chip {
  background: rgba(var(--bs-primary-rgb), .15);
  border-color: rgba(var(--bs-primary-rgb), .3);
}

/* ── Pricing: Free Mode Banner ──────────────────────────────────────────── */
.prx-free-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  padding: .7rem 0;
}
.prx-free-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}
.prx-free-badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2rem;
  padding: .18rem .7rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.prx-free-content {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .875rem;
  line-height: 1.4;
}
.prx-free-content strong { font-weight: 700; }
.prx-free-content span   { opacity: .92; }
.prx-free-sep            { opacity: .5; }
.prx-free-cta {
  background: #fff;
  color: #6366f1;
  border-radius: 2rem;
  padding: .28rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.prx-free-cta:hover { opacity: .88; color: #6366f1; text-decoration: none; }

/* ── Pricing: Hero eyebrow variant for free mode ────────────────────────── */
.prx-hero-eyebrow-free {
  color: #6366f1;
  font-weight: 600;
}
[data-bs-theme="dark"] .prx-hero-eyebrow-free { color: #a5b4fc; }

/* ── Pricing: "Free right now" plan card note ───────────────────────────── */
.prx-free-now-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: #16a34a;
  font-weight: 600;
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: .4rem;
  padding: .3rem .65rem;
  margin-bottom: .75rem;
}
[data-bs-theme="dark"] .prx-free-now-note {
  color: #4ade80;
  background: rgba(74,222,128,.08);
  border-color: rgba(74,222,128,.2);
}

/* ── Pricing: Hero redesign ─────────────────────────────────────────────── */
.prx-hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.prx-hero-grid { position: absolute; inset: 0; pointer-events: none; }
.prx-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.prx-hero-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99,102,241,.5) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.prx-hero-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,.4) 0%, transparent 70%);
  bottom: -60px; left: 5%;
}
[data-bs-theme="dark"] .prx-hero-orb { opacity: .22; }

.prx-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 2rem;
  color: #6366f1;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .28rem .85rem;
  margin-bottom: 1.25rem;
}
[data-bs-theme="dark"] .prx-hero-pill {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
  color: #a5b4fc;
}
.prx-hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: prx-pulse 2s ease-in-out infinite;
}
@keyframes prx-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* Hero stats row */
.prx-hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.prx-hero-stat { text-align: center; }
.prx-hero-stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
  letter-spacing: -.03em;
}
[data-bs-theme="dark"] .prx-hero-stat-val { color: #a5b4fc; }
.prx-hero-stat-lbl {
  display: block;
  font-size: .72rem;
  color: var(--bs-secondary-color);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.prx-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--bs-border-color);
  flex-shrink: 0;
}

/* ── Pricing: Plan card ribbon (replaces topper strip) ──────────────────── */
.prx-plan-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: .32rem .75rem;
  border-radius: .6rem .6rem 0 0;
  margin: -1px -1px 0;
}
.prx-plan-ribbon-current { background: #22c55e; }

/* ── Pricing: Plan card header ──────────────────────────────────────────── */
.prx-plan-header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.prx-plan-header-text { min-width: 0; }
.prx-plan-icon {
  width: 40px; height: 40px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--prx-ring, rgba(99,102,241,.2));
}

/* Data chips */
.prx-data-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .67rem;
  font-weight: 600;
  border-radius: 2rem;
  padding: .15rem .5rem;
  margin-top: .25rem;
  letter-spacing: .02em;
}
.prx-data-chip-live {
  background: rgba(99,102,241,.1);
  color: #6366f1;
  border: 1px solid rgba(99,102,241,.2);
}
.prx-data-chip-cached {
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}
[data-bs-theme="dark"] .prx-data-chip-live {
  background: rgba(165,180,252,.12);
  color: #a5b4fc;
  border-color: rgba(165,180,252,.25);
}

/* ── Pricing: Price block (free-now variant) ────────────────────────────── */
.prx-price-block { margin-bottom: 1rem; }
.prx-price-free-now { display: flex; align-items: baseline; gap: .4rem; }
.prx-price-coming {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .2rem;
}
.prx-price-future {
  font-size: .8rem;
  color: var(--bs-secondary-color);
  text-decoration: line-through;
  text-decoration-color: var(--bs-secondary-color);
}
.prx-price-when {
  font-size: .72rem;
  color: var(--bs-secondary-color);
  font-style: italic;
}

/* Plan CTA spacing */
.prx-plan-cta { margin-top: auto; padding-top: .75rem; }

/* ── Pricing: FAQ accordion ─────────────────────────────────────────────── */
.prx-faq-accordion {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.prx-faq-acc-item {
  border: 1px solid var(--bs-border-color);
  border-radius: .6rem;
  overflow: hidden;
  background: var(--bs-body-bg);
}
.prx-faq-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  padding: .9rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.prx-faq-acc-btn:hover { background: var(--bs-tertiary-bg); }
.prx-faq-acc-btn.prx-faq-acc-open { color: #6366f1; }
[data-bs-theme="dark"] .prx-faq-acc-btn.prx-faq-acc-open { color: #a5b4fc; }
.prx-faq-acc-icon {
  flex-shrink: 0;
  transition: transform .2s;
}
.prx-faq-acc-btn[aria-expanded="true"] .prx-faq-acc-icon { transform: rotate(180deg); }
.prx-faq-acc-body {
  padding: 0 1.1rem 1rem;
  font-size: .86rem;
  color: var(--bs-secondary-color);
  line-height: 1.65;
}
.prx-faq-acc-body code {
  background: var(--bs-tertiary-bg);
  padding: .1em .35em;
  border-radius: .25rem;
  font-size: .82em;
}
.prx-faq-acc-body a { color: #6366f1; text-decoration: none; font-weight: 600; }
.prx-faq-acc-body a:hover { text-decoration: underline; }
[data-bs-theme="dark"] .prx-faq-acc-btn { color: var(--bs-body-color); }
[data-bs-theme="dark"] .prx-faq-acc-item { background: var(--bs-body-bg); }

/* ── Admin: FAQ editor rows ─────────────────────────────────────────────── */
.prx-faq-editor-row { transition: box-shadow .15s; }
.prx-faq-editor-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ── Hero: action buttons ────────────────────────────────────────────────── */
.prx-hero-actions {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  flex-wrap: wrap; margin-top: 2rem;
}
.prx-btn-hero-try {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; padding: .7rem 1.5rem; border-radius: 10px;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 18px rgba(99,102,241,.35);
}
.prx-btn-hero-try:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.prx-btn-hero-reg {
  background: transparent; color: var(--bs-body-color);
  border: 1.5px solid var(--bs-border-color);
  padding: .7rem 1.5rem; border-radius: 10px;
  font-size: .88rem; font-weight: 600;
}
.prx-btn-hero-reg:hover { border-color: #6366f1; color: #6366f1; }

/* ── Guest live lookup strip ─────────────────────────────────────────────── */
.prx-guest-strip {
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  padding: .75rem 0;
}
.prx-guest-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.prx-guest-strip-info {
  display: flex; align-items: center; gap: .65rem;
  font-size: .83rem; color: var(--bs-body-color); flex-wrap: wrap;
}
.prx-guest-strip-icon { color: #6366f1; flex-shrink: 0; }
.prx-guest-progress {
  width: 80px; height: 5px; background: var(--bs-border-color);
  border-radius: 99px; overflow: hidden; flex-shrink: 0;
}
.prx-guest-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
  transition: width .4s ease;
}
.prx-guest-strip-cta {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: .8rem; font-weight: 700; color: #6366f1; text-decoration: none;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.22);
  border-radius: 8px; padding: .35rem .85rem;
  transition: background .15s, transform .15s;
}
.prx-guest-strip-cta:hover { background: rgba(99,102,241,.14); transform: translateX(2px); color: #6366f1; }
@media (max-width:600px) {
  .prx-guest-strip-inner { flex-direction: column; align-items: flex-start; }
  .prx-guest-strip-cta   { align-self: stretch; justify-content: center; }
}

/* ── Why D.NIX section ───────────────────────────────────────────────────── */
.prx-why-section {
  padding: 5rem 0;
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.prx-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width:960px)  { .prx-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:560px)  { .prx-why-grid { grid-template-columns: 1fr; } }
.prx-why-card {
  background: var(--bs-body-bg);
  border: 1.5px solid var(--bs-border-color);
  border-radius: 16px; padding: 1.5rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.prx-why-card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 8px 32px rgba(99,102,241,.08);
  transform: translateY(-3px);
}
.prx-why-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prx-why-icon-indigo { background: rgba(99,102,241,.1);  border: 1px solid rgba(99,102,241,.2); }
.prx-why-icon-violet { background: rgba(139,92,246,.1);  border: 1px solid rgba(139,92,246,.2); }
.prx-why-icon-cyan   { background: rgba(6,182,212,.1);   border: 1px solid rgba(6,182,212,.2);  }
.prx-why-icon-green  { background: rgba(34,197,94,.1);   border: 1px solid rgba(34,197,94,.2);  }
.prx-why-title {
  font-size: .95rem; font-weight: 700; margin: 0;
  color: var(--bs-body-color);
}
.prx-why-desc {
  font-size: .82rem; color: var(--bs-secondary-color);
  line-height: 1.6; margin: 0; flex: 1;
}
.prx-why-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: .25rem;
}
.prx-why-chip {
  font-size: .68rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 99px; background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}

/* ── Register benefits section ───────────────────────────────────────────── */
.prx-reg-section { padding: 5rem 0; }
.prx-reg-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  padding: 3rem;
}
[data-bs-theme="dark"] .prx-reg-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
}
.prx-reg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(139,92,246,.25), transparent 70%);
  pointer-events: none;
}
.prx-reg-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 3rem; align-items: center;
}
@media (max-width:768px) { .prx-reg-inner { grid-template-columns: 1fr; gap: 2rem; } }
.prx-reg-title {
  font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 800;
  color: #fff; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.prx-reg-sub {
  font-size: .85rem; color: rgba(255,255,255,.65); margin: 0 0 1.5rem;
}
.prx-reg-cta-btn {
  background: #fff !important; color: #4f46e5 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.prx-reg-cta-btn:hover { filter: brightness(1.04); transform: translateY(-2px); color: #3730a3 !important; }
.prx-reg-benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width:500px) { .prx-reg-benefits { grid-template-columns: 1fr; } }
.prx-reg-benefit {
  display: flex; gap: .75rem; align-items: flex-start;
}
.prx-reg-benefit-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
}
.prx-reg-benefit-icon svg { stroke: #c7d2fe; }
.prx-reg-benefit-title {
  font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .2rem;
}
.prx-reg-benefit-desc {
  font-size: .77rem; color: rgba(255,255,255,.6); line-height: 1.5;
}

/* ── Plan card: free CTA note ────────────────────────────────────────────── */
.prx-plan-cta-note {
  text-align: center; font-size: .71rem; color: var(--bs-secondary-color);
  margin-top: .45rem;
}

/* ── Bottom CTA: disclaimer text ─────────────────────────────────────────── */
.prx-cta-disclaimer {
  font-size: .74rem; color: rgba(255,255,255,.45);
  margin: .75rem auto 0; text-align: center;
}

/* ── Dark mode fixes for new sections ───────────────────────────────────── */
[data-bs-theme="dark"] .prx-why-card { background: var(--bs-body-bg); }
[data-bs-theme="dark"] .prx-why-card:hover { border-color: rgba(99,102,241,.5); box-shadow: 0 8px 32px rgba(99,102,241,.12); }
[data-bs-theme="dark"] .prx-guest-strip { background: var(--bs-tertiary-bg); }
[data-bs-theme="dark"] .prx-btn-hero-reg { color: var(--bs-body-color); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .prx-btn-hero-reg:hover { border-color: #6366f1; color: #818cf8; }

/* ═══════════════════════════════════════════════════════════════════════════
   USER MANAGEMENT — .um-* (User Detail page, unified with .us-* system)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Profile hero ─────────────────────────────────────────────────────────── */
.um-profile-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.um-profile-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.um-profile-right {
  flex: 1;
  min-width: 0;
}
.um-avatar-lg {
  width: 56px !important;
  height: 56px !important;
  font-size: 1.35rem !important;
  flex-shrink: 0;
}
.um-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  letter-spacing: -.02em;
  margin-bottom: .15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-profile-meta {
  font-size: .78rem;
  color: var(--bs-secondary-color);
  margin-bottom: .5rem;
}
.um-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.um-profile-ts {
  font-size: .72rem;
  color: var(--bs-secondary-color);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.um-profile-ts span { display: flex; align-items: center; gap: .3rem; }

/* Key-value info grid ──────────────────────────────────────────────────── */
.um-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.5rem;
  padding: .5rem 1.25rem 1rem;
}
@media (max-width: 575px) { .um-kv-grid { grid-template-columns: 1fr; } }
.um-kv-item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}
.um-kv-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 575px) { .um-kv-item:last-child { border-bottom: none; } }
.um-kv-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bs-secondary-color);
}
.um-kv-value {
  font-size: .82rem;
  color: var(--bs-body-color);
  font-weight: 500;
  word-break: break-all;
}

/* Action list ──────────────────────────────────────────────────────────── */
.um-action-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.um-action-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: .5rem;
  transition: background .12s;
  text-decoration: none;
  color: var(--bs-body-color);
}
.um-action-item:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.um-action-item:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}
.um-ai-icon {
  width: 32px;
  height: 32px;
  border-radius: .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  transition: background .12s;
}
.um-action-item:hover .um-ai-icon { background: var(--bs-body-bg); }
.um-ai-icon-success { background: rgba(34,197,94,.12) !important; color: #16a34a !important; }
.um-ai-icon-warn    { background: rgba(234,179,8,.12)  !important; color: #b45309 !important; }
.um-ai-icon-danger  { background: rgba(239,68,68,.12)  !important; color: #dc2626 !important; }
.um-ai-text {
  flex: 1;
  min-width: 0;
}
.um-ai-text strong {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--bs-body-color);
  line-height: 1.25;
}
.um-ai-text span {
  display: block;
  font-size: .72rem;
  color: var(--bs-secondary-color);
  margin-top: .1rem;
  line-height: 1.4;
}
.um-ai-title {
  font-size: .83rem;
  font-weight: 600;
  color: var(--bs-body-color);
  line-height: 1.25;
}
.um-ai-desc {
  font-size: .72rem;
  color: var(--bs-secondary-color);
  margin-top: .1rem;
  line-height: 1.4;
}
.um-ai-arrow {
  color: var(--bs-secondary-color);
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .12s, transform .12s;
}
.um-action-item:hover .um-ai-arrow { opacity: 1; transform: translateX(2px); }
.um-action-divider {
  height: 1px;
  background: var(--bs-border-color);
  margin: .25rem .5rem;
}
.um-action-group-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding: .6rem 1rem .2rem;
  opacity: .75;
}
/* Warn/danger row variants */
.um-action-item-warn .um-ai-title  { color: #92400e; }
.um-action-item-danger .um-ai-title { color: #dc2626; }
.um-action-item-warn:hover  { background: rgba(234,179,8,.07); }
.um-action-item-danger:hover { background: rgba(239,68,68,.07); }

/* Status badges for .us-role used in user-detail */
.us-status-active   { background: rgba(34,197,94,.12);  color: #15803d; }
.us-status-suspended{ background: rgba(234,179,8,.12);  color: #92400e; }
.us-status-banned   { background: rgba(239,68,68,.12);  color: #dc2626; }

/* ── Dark mode overrides ─────────────────────────────────────────────────── */
[data-bs-theme="dark"] .um-ai-icon { background: rgba(255,255,255,.06); color: var(--bs-secondary-color); }
[data-bs-theme="dark"] .um-action-item:hover .um-ai-icon { background: rgba(255,255,255,.1); }
[data-bs-theme="dark"] .um-ai-icon-success { background: rgba(34,197,94,.15) !important; color: #4ade80 !important; }
[data-bs-theme="dark"] .um-ai-icon-warn    { background: rgba(234,179,8,.15)  !important; color: #fbbf24 !important; }
[data-bs-theme="dark"] .um-ai-icon-danger  { background: rgba(239,68,68,.15)  !important; color: #f87171 !important; }
[data-bs-theme="dark"] .um-action-item-warn .um-ai-title  { color: #fbbf24; }
[data-bs-theme="dark"] .um-action-item-danger .um-ai-title { color: #f87171; }
[data-bs-theme="dark"] .um-action-item-warn:hover  { background: rgba(234,179,8,.1); }
[data-bs-theme="dark"] .um-action-item-danger:hover { background: rgba(239,68,68,.1); }
[data-bs-theme="dark"] .us-status-active    { background: rgba(34,197,94,.15);  color: #4ade80; }
[data-bs-theme="dark"] .us-status-suspended { background: rgba(234,179,8,.15);  color: #fbbf24; }
[data-bs-theme="dark"] .us-status-banned    { background: rgba(239,68,68,.15);  color: #f87171; }


/* ═══════════════════════════════════════════════════════════════════════════
   CT Log Page Redesign (.ctl-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero card ─────────────────────────────────────────────────────────── */
.ctl-hero {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: ctlog-fadein .4s ease both;
  animation-delay: .04s;
}
.ctl-hero-top { display:flex; align-items:center; gap:.85rem; margin-bottom:1.2rem; }
.ctl-hero-shield {
  width:2.75rem; height:2.75rem; border-radius:.55rem;
  background:rgba(37,99,235,.1); color:#2563eb;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ctl-hero-domain { font-family:var(--bs-font-monospace); font-size:1.1rem; font-weight:700; line-height:1.3; }
.ctl-hero-sub { font-size:.78rem; color:var(--bs-secondary-color); margin-top:.15rem; }

/* ── Stats grid ────────────────────────────────────────────────────────── */
.ctl-stats-grid { display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:1.1rem; }
.ctl-stat {
  flex:1; min-width:4.5rem;
  background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  border-radius:.5rem; padding:.55rem .75rem; text-align:center;
}
.ctl-stat-val { font-size:1.3rem; font-weight:700; line-height:1.25; color:var(--bs-body-color); font-variant-numeric:tabular-nums; }
.ctl-stat-lbl { font-size:.65rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--bs-secondary-color); margin-top:.1rem; }
.ctl-stat-active  .ctl-stat-val { color:#16a34a; }
.ctl-stat-expired .ctl-stat-val { color:#dc2626; }
.ctl-stat-host    .ctl-stat-val { color:#2563eb; }
.ctl-stat-wild    .ctl-stat-val { color:#7c3aed; }

/* ── Intelligence strip ────────────────────────────────────────────────── */
.ctl-intel-row { display:flex; gap:.45rem; flex-wrap:wrap; }
.ctl-intel {
  display:inline-flex; align-items:center;
  font-size:.73rem; padding:.25rem .65rem; border-radius:99px; border:1px solid;
  font-weight:500; line-height:1.4; white-space:nowrap;
}
.ctl-intel-warn    { background:#fef3c7; color:#92400e; border-color:#fcd34d; }
.ctl-intel-caution { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.ctl-intel-info    { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.ctl-intel-ok      { background:#f0fdf4; color:#15803d; border-color:#bbf7d0; }
.ctl-intel-neu     { background:var(--bs-tertiary-bg); color:var(--bs-secondary-color); border-color:var(--bs-border-color); }
[data-bs-theme="dark"] .ctl-intel-warn    { background:rgba(252,211,77,.1);  color:#fcd34d; border-color:rgba(252,211,77,.3); }
[data-bs-theme="dark"] .ctl-intel-caution { background:rgba(254,215,170,.1); color:#fed7aa; border-color:rgba(254,215,170,.3); }
[data-bs-theme="dark"] .ctl-intel-info    { background:rgba(147,197,253,.1); color:#93c5fd; border-color:rgba(147,197,253,.3); }
[data-bs-theme="dark"] .ctl-intel-ok      { background:rgba(187,247,208,.1); color:#86efac; border-color:rgba(187,247,208,.3); }
[data-bs-theme="dark"] .ctl-hero-shield   { background:rgba(96,165,250,.1);  color:#60a5fa; }

/* ── Filter bar ────────────────────────────────────────────────────────── */
.ctl-filter-bar {
  padding:.6rem 1rem; background:var(--bs-tertiary-bg);
  border-bottom:1px solid var(--bs-border-color);
  display:flex; align-items:center; gap:.6rem; flex-wrap:wrap;
}
.ctl-filter-search { min-width:9rem; max-width:20rem; flex-grow:1; }

/* ── Certificate accordion rows ────────────────────────────────────────── */
.ctl-cert { border-bottom:1px solid var(--bs-border-color); }
.ctl-cert:last-child { border-bottom:none; }
.ctl-cert-head {
  display:flex; align-items:stretch;
  cursor:pointer; user-select:none; transition:background .12s; position:relative;
}
.ctl-cert-head:hover { background:var(--bs-tertiary-bg); }
.ctl-cert-accent-bar { width:3px; flex-shrink:0; }
.ctl-cert-main { flex:1; min-width:0; padding:.75rem .85rem; }
.ctl-cert-cn {
  font-family:var(--bs-font-monospace); font-size:.82rem; font-weight:600;
  word-break:break-all; margin-bottom:.2rem;
  display:flex; align-items:center; flex-wrap:wrap; gap:.3rem;
}
.ctl-cert-sub { font-size:.73rem; color:var(--bs-secondary-color); display:flex; align-items:center; gap:.3rem; flex-wrap:wrap; }
.ctl-cert-sep { opacity:.35; }
.ctl-cert-dates {
  padding:.75rem .8rem; flex-shrink:0;
  display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:.15rem;
}
.ctl-cert-date-range {
  font-family:var(--bs-font-monospace); font-size:.71rem; color:var(--bs-secondary-color);
  display:flex; align-items:center; gap:.3rem; white-space:nowrap;
}
.ctl-cert-arrow { opacity:.3; }
.ctl-cert-dur   { font-size:.67rem; color:var(--bs-secondary-color); opacity:.65; }
.ctl-cert-status-col {
  padding:.75rem .6rem .75rem 0; flex-shrink:0; min-width:5.5rem;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:.2rem;
}
.ctl-cert-st-detail { font-size:.69rem; color:var(--bs-secondary-color); }
.ctl-cert-chev {
  padding:.75rem .7rem; color:var(--bs-secondary-color); flex-shrink:0;
  display:flex; align-items:center;
  transition:transform .25s cubic-bezier(.4,0,.2,1);
}
.ctl-cert.open .ctl-cert-chev { transform:rotate(180deg); }

/* ── Expandable panel ──────────────────────────────────────────────────── */
.ctl-cert-panel { overflow:hidden; max-height:0; transition:max-height .35s cubic-bezier(.4,0,.2,1); }
.ctl-cert.open .ctl-cert-panel { max-height:80rem; }
.ctl-cert-panel-inner {
  padding:1rem 1.2rem 1.2rem; border-top:1px solid var(--bs-border-color);
  display:flex; flex-direction:column; gap:.85rem;
  animation:ctl-panel-in .22s ease both;
}
@keyframes ctl-panel-in { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

.ctl-panel-section { background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.5rem; padding:.8rem 1rem; }
.ctl-panel-label { font-size:.66rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--bs-secondary-color); margin-bottom:.6rem; }
.ctl-panel-count { font-weight:400; opacity:.6; }

/* Validity bar */
.ctl-vbar-dates { display:flex; align-items:center; justify-content:space-between; font-size:.74rem; margin-bottom:.4rem; gap:.5rem; }
.ctl-vbar-mid   { font-weight:600; text-align:center; flex-shrink:0; }
.ctl-vbar-track { height:7px; border-radius:4px; background:var(--bs-border-color); overflow:hidden; margin-bottom:.3rem; }
.ctl-vbar-fill  { height:100%; border-radius:4px; width:0; transition:width .85s cubic-bezier(.4,0,.2,1); }
.ctl-vbar-sub   { font-size:.69rem; color:var(--bs-secondary-color); text-align:right; }

/* Issuer DN grid */
.ctl-dn-grid { display:flex; flex-direction:column; gap:.28rem; }
.ctl-dn-row  { display:flex; align-items:baseline; gap:.6rem; font-size:.82rem; }
.ctl-dn-key  { font-size:.67rem; font-weight:700; font-family:var(--bs-font-monospace); color:var(--bs-secondary-color); width:7.5rem; flex-shrink:0; text-transform:uppercase; letter-spacing:.03em; }
.ctl-dn-val  { color:var(--bs-body-color); word-break:break-all; }

/* SAN cloud */
.ctl-san-cloud { display:flex; flex-wrap:wrap; gap:.28rem; }
.ctl-san-tag {
  font-family:var(--bs-font-monospace); font-size:.71rem; padding:.18rem .48rem;
  border-radius:.3rem; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color);
  color:var(--bs-body-color); transition:background .1s;
}
.ctl-san-wild { background:rgba(99,102,241,.07); border-color:rgba(99,102,241,.22); color:#4f46e5; }
.ctl-san-star { opacity:.45; }

/* Panel footer */
.ctl-panel-footer { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.ctl-crtsh-link { display:inline-flex; align-items:center; gap:.3rem; font-size:.75rem; color:var(--bs-primary); text-decoration:none; }
.ctl-crtsh-link:hover { text-decoration:underline; }

/* Dark mode */
[data-bs-theme="dark"] .ctl-stat             { background:rgba(255,255,255,.04); }
[data-bs-theme="dark"] .ctl-cert-head:hover  { background:rgba(255,255,255,.03); }
[data-bs-theme="dark"] .ctl-cert-panel-inner { background:var(--bs-tertiary-bg); }
[data-bs-theme="dark"] .ctl-panel-section    { background:rgba(255,255,255,.04); }
[data-bs-theme="dark"] .ctl-san-tag          { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.1); }
[data-bs-theme="dark"] .ctl-san-wild         { background:rgba(99,102,241,.15); border-color:rgba(99,102,241,.3); color:#a5b4fc; }
[data-bs-theme="dark"] .ctl-stat-active  .ctl-stat-val { color:#4ade80; }
[data-bs-theme="dark"] .ctl-stat-expired .ctl-stat-val { color:#f87171; }
[data-bs-theme="dark"] .ctl-stat-host    .ctl-stat-val { color:#60a5fa; }
[data-bs-theme="dark"] .ctl-stat-wild    .ctl-stat-val { color:#a78bfa; }

/* ── Issuance Timeline ─────────────────────────────────────────────────── */
.ctl-timeline { display:flex; flex-direction:column; gap:.4rem; }
.ctl-tl-row   { display:flex; align-items:center; gap:.7rem; }
.ctl-tl-year  {
  font-family:var(--bs-font-monospace); font-size:.72rem; font-weight:600;
  color:var(--bs-secondary-color); width:2.8rem; flex-shrink:0; text-align:right;
}
.ctl-tl-year-now { color:var(--bs-primary); }
.ctl-tl-track { flex:1; height:8px; background:var(--bs-border-color); border-radius:4px; overflow:hidden; }
.ctl-tl-bar   {
  height:100%; border-radius:4px; width:0;
  background:linear-gradient(90deg,#2563eb,#7c3aed);
  transition:width .8s cubic-bezier(.4,0,.2,1);
}
.ctl-tl-count { font-size:.72rem; color:var(--bs-secondary-color); font-variant-numeric:tabular-nums; width:2.5rem; flex-shrink:0; }
[data-bs-theme="dark"] .ctl-tl-bar { background:linear-gradient(90deg,#3b82f6,#8b5cf6); }

/* Responsive */
@media (max-width:640px) {
  .ctl-cert-dates { display:none; }
  .ctl-stats-grid .ctl-stat { min-width:4rem; }
  .ctl-hero { padding:1rem; }
  .ctl-intel { white-space:normal; }
}
