/* DNShield is sold through Trueflix but runs beside it: one floating entry and
   a full-screen panel of its own, so nothing in the site's own chrome moves. */
#tf-dns-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 8.7rem;
  z-index: 2147483004;
  display: none;
  align-items: center;
  gap: 0.45rem;
  height: 2.6rem;
  padding: 0 0.85rem 0 0;
  border: 0;
  border-radius: 0.9rem;
  background: #0d1b2e;
  color: #e8f1ff;
  cursor: pointer;
  font: 800 0.66rem Syne, Unbounded, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
#tf-dns-fab.is-on { display: inline-flex; }
#tf-dns-fab .tf-dns-fab-core {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1d4ed8, #0ea5e9);
  color: #f8fafc;
  flex-shrink: 0;
}
#tf-dns-fab .tf-dns-fab-core svg { width: 1.35rem; height: 1.35rem; }

#tf-dns-page {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  flex-direction: column;
  background: #05070f;
  color: #e2e8f0;
  font-family: Figtree, system-ui, sans-serif;
}
#tf-dns-page.is-open { display: flex; }
body.tf-dns-lock { overflow: hidden !important; }

#tf-dns-page .tf-dns-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: #070c18;
}
#tf-dns-page .tf-dns-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
#tf-dns-page .tf-dns-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1d4ed8, #0ea5e9);
  color: #fff;
  flex-shrink: 0;
}
#tf-dns-page .tf-dns-mark svg { width: 1.15rem; height: 1.15rem; }
#tf-dns-page .tf-dns-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #f8fafc;
}
#tf-dns-page .tf-dns-sub {
  margin: 0.05rem 0 0;
  font-size: 0.72rem;
  color: #93a4bd;
}
#tf-dns-page .tf-dns-close {
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-radius: 0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1rem;
  cursor: pointer;
}

#tf-dns-page .tf-dns-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: #060b16;
}
#tf-dns-page .tf-dns-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
#tf-dns-page .tf-dns-tab.is-on {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
}
#tf-dns-page .tf-dns-tab.tf-dns-tab-admin { border-style: dashed; }

#tf-dns-page .tf-dns-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
}
#tf-dns-page .tf-dns-wrap { max-width: 46rem; margin: 0 auto; }

.tf-dns-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.1rem;
  background: #0b1220;
  padding: 1rem;
  margin-bottom: 0.9rem;
}
.tf-dns-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f8fafc;
}
.tf-dns-card p { margin: 0.2rem 0; font-size: 0.84rem; color: #cbd5e1; }
.tf-dns-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #38bdf8;
}
.tf-dns-muted { color: #94a3b8; font-size: 0.8rem; }

.tf-dns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
}
.tf-dns-stat {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.8rem;
}
.tf-dns-stat b { display: block; font-size: 1.35rem; color: #f8fafc; }
.tf-dns-stat span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }

.tf-dns-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tf-dns-pill.st-active { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
.tf-dns-pill.st-expired { background: rgba(248, 113, 113, 0.14); color: #fda4af; }
.tf-dns-pill.st-cancelled { background: rgba(251, 191, 36, 0.16); color: #fde68a; }
.tf-dns-pill.st-none { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }

.tf-dns-btn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.tf-dns-btn:hover { border-color: rgba(56, 189, 248, 0.5); }
.tf-dns-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(160deg, #1d4ed8, #0ea5e9);
  color: #fff;
}
.tf-dns-btn.is-warn { border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }
.tf-dns-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.tf-dns-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }

.tf-dns-field { display: block; margin: 0.55rem 0; }
.tf-dns-field span { display: block; font-size: 0.74rem; color: #94a3b8; margin-bottom: 0.25rem; }
.tf-dns-field input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.6rem;
  background: #060b16;
  color: #e2e8f0;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}
.tf-dns-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.55rem 0.7rem;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 0.7rem;
  background: #060b16;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  word-break: break-all;
  color: #bae6fd;
}
.tf-dns-code b { flex: 1; font-weight: 600; }

.tf-dns-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; }
.tf-dns-plan {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #0b1220;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
}
.tf-dns-plan.is-on { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3); }
.tf-dns-plan h4 { margin: 0; font-size: 1rem; color: #f8fafc; }
.tf-dns-price { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0.25rem 0 0; }
.tf-dns-price small { font-size: 0.72rem; font-weight: 600; color: #94a3b8; }
.tf-dns-plan ul { margin: 0.6rem 0; padding-left: 1.05rem; }
.tf-dns-plan li { font-size: 0.78rem; color: #cbd5e1; margin-bottom: 0.25rem; }
.tf-dns-plan .tf-dns-btn { margin-top: auto; }

.tf-dns-note {
  border-left: 3px solid rgba(56, 189, 248, 0.6);
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.08);
  font-size: 0.78rem;
  color: #cbd5e1;
}
.tf-dns-flag-good { color: #5eead4; }
.tf-dns-flag-bad { color: #fda4af; }

.tf-dns-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.tf-dns-table th, .tf-dns-table td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.tf-dns-table th { color: #94a3b8; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tf-dns-table td { color: #e2e8f0; }

.tf-dns-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2147483647;
  max-width: 88vw;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  pointer-events: none;
  font: 600 13px/1.35 system-ui, -apple-system, Segoe UI, sans-serif;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tf-dns-toast.is-bad { background: rgba(190, 30, 30, 0.96); }
.tf-dns-toast.is-good { background: rgba(13, 148, 136, 0.96); }

.tf-dns-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.72);
}
.tf-dns-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tf-dns-modal[hidden] { display: none !important; }
.tf-dns-modal .tf-dns-modal-card {
  position: relative;
  width: min(24rem, 100%);
  border-radius: 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #0b1220;
  padding: 1.1rem;
}
/* The DNShield nav entry takes its look from the other nav links (the shard
   copies the class of an existing one); this only marks the active state. */
[data-tf-dns-open].tf-dns-nav-on { color: #7dd3fc !important; }
