/**
 * DMARCify - Tools Shared Styles
 * Sleek dark glassmorphism styling for email authentication checkers & generators.
 */

/* ── Tools Page Wrapper ─────────────────────────────────────── */
.tools-page {
  padding-top: 7.5rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 1;
  min-height: 85vh;
}

.tools-container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Tool Header ────────────────────────────────────────────── */
.tool-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tool-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.tool-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── Tool Tabs & Mode Switcher ──────────────────────────────── */
.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: rgba(14, 28, 58, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-muted);
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tool-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(9, 191, 216, 0.4);
  background: rgba(23, 105, 232, 0.15);
}
.tool-tab-btn.is-active {
  color: #ffffff;
  border-color: var(--brand-2);
  background: linear-gradient(135deg, rgba(23, 105, 232, 0.25) 0%, rgba(9, 191, 216, 0.35) 100%);
  box-shadow: 0 0 20px rgba(9, 191, 216, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Tools Hub Sections & Grids ─────────────────────────────── */
.tools-hub-section {
  margin-bottom: 3.5rem;
}
.tools-hub-section__header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}
.tools-hub-section__badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  margin-bottom: 0.25rem;
}
.tools-hub-section__title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.tools-hub-section__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.5;
}

/* 2-Column Grid (4 Diagnostic / Generator Cards: 2x2) */
.tools-grid--2col,
.tools-grid--2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* 3-Column Grid (6 Diagnostic Checkers: 3x2) */
.tools-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .tools-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .tools-grid--3col,
  .tools-grid--2col,
  .tools-grid--2x2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Geometric Status Badges (Strictly NO rounded pill capsules) ── */
.tool-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  line-height: 1;
}
.tool-badge--new,
.tool-badge--pass,
.status-pill--valid {
  background: rgba(24, 217, 154, 0.15);
  color: var(--green, #18d99a);
  border: 1px solid rgba(24, 217, 154, 0.35);
}
.tool-badge--warning,
.status-pill--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.tool-badge--danger,
.status-pill--invalid {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.tool-hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(14, 28, 58, 0.45);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.tool-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(9, 191, 216, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(9, 191, 216, 0.15);
}
.tool-hub-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(23, 105, 232, 0.15);
  border: 1px solid rgba(23, 105, 232, 0.3);
  color: var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.tool-hub-card__icon--blue {
  background: rgba(23, 105, 232, 0.15);
  border-color: rgba(23, 105, 232, 0.35);
  color: #3b82f6;
}
.tool-hub-card__icon--cyan {
  background: rgba(9, 191, 216, 0.15);
  border-color: rgba(9, 191, 216, 0.35);
  color: #09bfd8;
}
.tool-hub-card__icon--teal {
  background: rgba(24, 217, 154, 0.15);
  border-color: rgba(24, 217, 154, 0.35);
  color: #18d99a;
}
.tool-hub-card__icon--indigo {
  background: rgba(13, 103, 232, 0.15);
  border-color: rgba(13, 103, 232, 0.35);
  color: #60a5fa;
}
.tool-hub-card__body {
  flex-grow: 1;
}
.tool-hub-card__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.tool-hub-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.tool-hub-card__action {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tool-hub-card:hover .tool-hub-card__action {
  color: #ffffff;
}

/* ── Interactive Tool Box / Card ────────────────────────────── */
.tool-box {
  background: rgba(14, 28, 58, 0.45);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
}

/* Form Search Row */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tool-form__row {
  display: flex;
  gap: 0.75rem;
}
.tool-input {
  flex: 1;
  background: rgba(8, 13, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(9, 191, 216, 0.2);
}
.tool-input--selector {
  max-width: 12rem;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--brand-grad);
  border: none;
  border-radius: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(9, 191, 216, 0.4);
}
.tool-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 48rem) {
  .tool-box { padding: 1.5rem; }
  .tool-form__row { flex-direction: column; }
  .tool-input--selector { max-width: 100%; }
}
@media (max-width: 30rem) {
  .tool-box { padding: 1.15rem 0.95rem; }
  .status-banner { padding: 1rem; align-items: flex-start; }
}

/* ── Results Container ──────────────────────────────────────── */
.tool-results {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  max-width: 100%;
}
.tool-results[hidden] { display: none !important; }

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.85rem;
  background: rgba(8, 13, 24, 0.8);
  border: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.status-banner--pass {
  border-color: rgba(24, 217, 154, 0.4);
  background: rgba(24, 217, 154, 0.08);
}
.status-banner--warn {
  border-color: rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.08);
}
.status-banner--fail {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}
.status-banner__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-banner--pass .status-banner__icon { background: rgba(24, 217, 154, 0.2); color: var(--green); }
.status-banner--warn .status-banner__icon { background: rgba(255, 184, 0, 0.2); color: #ffb800; }
.status-banner--fail .status-banner__icon { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }

.status-banner__title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}
.status-banner__msg {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Code Output / Raw Record Box */
.raw-record {
  background: rgba(8, 13, 24, 0.95);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.raw-record__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.raw-record__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}
.raw-record__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.raw-record__sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--f-mono);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.raw-record__code-inline {
  color: var(--brand-2);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.raw-record__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.copy-btn {
  background: rgba(23, 105, 232, 0.15);
  border: 1px solid rgba(23, 105, 232, 0.3);
  border-radius: 0.4rem;
  color: var(--brand-2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-btn:hover {
  background: var(--brand-2);
  color: #080d18;
}
.copy-btn--secondary {
  background: rgba(9, 191, 216, 0.15);
  border-color: rgba(9, 191, 216, 0.4);
  color: var(--brand-2);
}
.copy-btn--secondary:hover {
  background: var(--brand-2);
  color: #080d18;
}
.raw-record__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: #ffffff;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.5;
  max-width: 100%;
}

/* Tag Breakdown Table */
.tag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: rgba(8, 13, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.tag-table th, .tag-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tag-table th {
  background: rgba(14, 28, 58, 0.6);
  color: var(--brand-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-table tr:last-child td { border-bottom: none; }
.tag-code {
  font-family: monospace;
  color: var(--green);
  font-weight: 600;
}
.tag-val {
  font-family: monospace;
  color: #ffffff;
}
.tag-desc {
  color: var(--text-muted);
}

/* ── Generator Form Specifics ───────────────────────────────── */
.gen-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gen-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gen-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}
.gen-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.gen-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(8, 13, 24, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2309bfd8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.85rem 2.85rem 0.85rem 1.2rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gen-select:hover {
  border-color: rgba(23, 105, 232, 0.6);
  background-color: rgba(14, 28, 58, 0.85);
}
.gen-select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(9, 191, 216, 0.2);
}
.gen-select option {
  background-color: #0b1528;
  color: #ffffff;
  padding: 0.75rem;
  font-size: 0.9375rem;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(8, 13, 24, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.checkbox-item:hover {
  border-color: var(--brand-2);
}
.checkbox-item input {
  accent-color: var(--brand-1);
}
.checkbox-item span {
  font-size: 0.875rem;
  color: #ffffff;
}

/* ── SVG BIMI Converter Box ─────────────────────────────────── */
.svg-dropzone {
  border: 2px dashed rgba(23, 105, 232, 0.4);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(8, 13, 24, 0.6);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.svg-dropzone:hover, .svg-dropzone.dragover {
  border-color: var(--brand-2);
  background: rgba(23, 105, 232, 0.1);
}
.svg-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #ffffff;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.svg-preview-box img, .svg-preview-box svg {
  max-width: 100%;
  max-height: 100%;
}

/* ── Educational Prose Section ──────────────────────────────── */
.tool-education {
  background: rgba(14, 28, 58, 0.45);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 3rem;
}
.tool-education h2 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}
.tool-education h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-2);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.tool-education p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tool-education ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.tool-education li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.tool-education li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--brand-2);
  font-weight: bold;
}
@media (max-width: 48rem) {
  .tool-education {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
  }
  .tool-education code {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

/* ── Conversion CTA Banner ──────────────────────────────────── */
.tool-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(23, 105, 232, 0.18) 0%, rgba(9, 191, 216, 0.24) 100%);
  border: 1px solid rgba(9, 191, 216, 0.4);
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 30px rgba(9, 191, 216, 0.15);
}
.tool-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.tool-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}
/* ── DNS Setup Guide & Record Cards ─────────────────────────── */
.dns-record-card {
  background: rgba(8, 13, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.dns-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dns-field {
  background: rgba(14, 28, 58, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dns-field__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-2);
}
.dns-field__value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dns-field__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: #ffffff;
  word-break: break-all;
}
.dns-field__copy {
  background: rgba(23, 105, 232, 0.2);
  border: 1px solid rgba(23, 105, 232, 0.4);
  color: var(--brand-2);
  border-radius: 0.4rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.dns-field__copy:hover {
  background: var(--brand-2);
  color: #080e1e;
}

/* Steps Walkthrough Cards (2x2 Balanced Layout) */
.dns-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .dns-steps-grid {
    grid-template-columns: 1fr;
  }
}
.dns-step {
  background: rgba(14, 28, 58, 0.45);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}
.dns-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--brand-grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}
.dns-step__title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.dns-step__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.dns-step__desc code {
  color: var(--brand-2);
  background: rgba(9, 191, 216, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

/* Provider Table */
.dns-provider-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.dns-provider-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(14, 28, 58, 0.7);
  color: var(--brand-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.dns-provider-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
.dns-provider-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}


/* ── Custom Glassmorphic Domain Dropdown ──────────────────────── */
.custom-dropdown {
  position: relative;
  display: inline-block;
}
.custom-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  color: #ffffff;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-dropdown__btn:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  box-shadow: 0 0 14px rgba(9, 191, 216, 0.2);
}
.custom-dropdown__icon {
  display: flex;
  align-items: center;
  color: var(--brand-2);
}
.custom-dropdown__chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.custom-dropdown.is-open .custom-dropdown__chevron {
  transform: rotate(180deg);
}
.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 14rem;
  background: rgba(10, 20, 45, 0.95);
  border: 1px solid var(--border-hi);
  border-radius: 0.6rem;
  padding: 0.4rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 100;
  animation: dropdownFade 0.15s ease-out forwards;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: 0.4rem;
  color: var(--text-muted);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.custom-dropdown__item:hover {
  background: rgba(23, 105, 232, 0.2);
  color: #ffffff;
}
.custom-dropdown__item.is-selected {
  background: rgba(23, 105, 232, 0.3);
  color: var(--brand-2);
  font-weight: 600;
}
.custom-dropdown__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.custom-dropdown__badge--none { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.custom-dropdown__badge--quarantine { background: rgba(23, 105, 232, 0.2); color: var(--brand-2); }
.custom-dropdown__badge--reject { background: rgba(24, 217, 154, 0.2); color: var(--green); }
.custom-dropdown__badge--all { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── Metric Card Tooltips & Subtext ─────────────────────────── */
.metric-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.metric-info-wrap {
  position: relative;
  display: inline-flex;
}
.metric-info-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.metric-info-btn:hover {
  color: var(--brand-2);
}
.metric-tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  width: 14rem;
  background: rgba(8, 13, 24, 0.95);
  border: 1px solid var(--border-hi);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 50;
}
.metric-info-wrap:hover .metric-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

/* ── Interactive Charts & Analytics Grid ────────────────────── */
.dashboard-chart-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.dashboard-chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dashboard-chart-card__title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.dashboard-chart-card__subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.timeline-chart-box {
  width: 100%;
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.esp-donut-box {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}
.esp-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.esp-bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.esp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.esp-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Rich Dashboard Analytics & Widget Grid ──────────────────── */
.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.overview-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.overview-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .overview-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .overview-bottom-grid {
    grid-template-columns: 1fr;
  }
  .overview-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Ranked Intelligence List (Top Senders & Threat Radar) ──── */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 20, 45, 0.5);
  border: 1px solid rgba(23, 105, 232, 0.15);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.rank-item:hover {
  background: rgba(14, 28, 58, 0.8);
  border-color: var(--border-hi);
  transform: translateX(2px);
}
.rank-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(23, 105, 232, 0.2);
  color: var(--brand-2);
  flex-shrink: 0;
}
.rank-badge--danger {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}
.rank-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-count {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brand-2);
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.rank-count--danger {
  color: #f87171;
}

/* ── Auth Breakdown Bars ────────────────────────────────────── */
.auth-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-bar-unit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.auth-bar-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.auth-bar-name {
  font-weight: 600;
  color: #ffffff;
}
.auth-bar-pct {
  font-weight: 700;
  color: var(--brand-2);
}
.auth-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.auth-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--brand-grad);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── SVG Donut Chart ────────────────────────────────────────── */
.donut-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}
.donut-svg {
  transform: rotate(-90deg);
}
.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.donut-center-val {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.donut-center-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Interactive Line/Area Trend Chart ──────────────────────── */
.trend-chart-box {
  width: 100%;
  height: 220px;
  position: relative;
}
.trend-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── Sticky Header Solid Background on Scroll ────────────────── */
.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(8, 13, 24, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ── Header Account Button ───────────────────────────────────── */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(14, 28, 58, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-account-btn:hover,
.nav-account-btn.is-active {
  background: rgba(23, 105, 232, 0.18);
  border-color: var(--border-hi);
  color: #ffffff;
}

/* ── Domain Registry Management Table ────────────────────────── */
.domain-mgmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.domain-mgmt-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(14, 28, 58, 0.75);
  color: var(--brand-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.domain-mgmt-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.domain-mgmt-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Accordion Card (GDPR Article 17) ────────────────────────── */
.accordion-box summary::-webkit-details-marker {
  display: none;
}
.accordion-box[open] {
  border-color: rgba(248, 113, 113, 0.5) !important;
  background: rgba(14, 28, 58, 0.85) !important;
}

/* ── GSA Administration Nav Button ───────────────────────────── */
.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(14, 28, 58, 0.85);
  border: 1px solid var(--border-hi);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(9, 191, 216, 0.22);
  transition: all 0.2s ease;
}
.nav-admin-btn:hover,
.nav-admin-btn.is-active {
  background: linear-gradient(130deg, rgba(23, 105, 232, 0.35) 0%, rgba(9, 191, 216, 0.35) 100%);
  border-color: var(--brand-2);
  box-shadow: 0 0 20px rgba(9, 191, 216, 0.45);
}
.nav-admin-badge {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--brand-grad);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ── Toggle Switch Component ─────────────────────────────────── */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(14, 28, 58, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .switch-container {
    padding: 1rem 0.85rem;
    gap: 0.85rem;
  }
}
.switch-label-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.switch-label-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.switch-input-wrap {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch-input-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 26px;
  border: 1px solid var(--border);
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}
input:checked + .switch-slider {
  background: var(--brand-grad);
  border-color: var(--brand-2);
  box-shadow: 0 0 12px rgba(9, 191, 216, 0.4);
}
input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* ── Equal 50/50 Split Tables Grid ───────────────────────────── */
.equal-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .equal-tables-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Global Toast Notifications System ───────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 24rem;
  width: calc(100vw - 3rem);
  pointer-events: none;
}
.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 20, 45, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-family: var(--f-body);
  font-size: 0.85rem;
  line-height: 1.5;
  pointer-events: auto;
  cursor: pointer;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.toast-item--success {
  border-color: rgba(24, 217, 154, 0.4);
  box-shadow: 0 0 16px rgba(24, 217, 154, 0.15);
}
.toast-item--error {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.18);
}
.toast-item--warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}
.toast-item--info {
  border-color: var(--border-hi);
  box-shadow: 0 0 16px rgba(9, 191, 216, 0.15);
}
.toast-item.is-hiding {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Modal & Form Action Buttons ─────────────────────────────── */
.btn--primary {
  background: var(--brand-grad) !important;
  color: #ffffff !important;
  border: none !important;
}
.btn--primary:hover {
  box-shadow: 0 0 20px rgba(9, 191, 216, 0.4) !important;
}
.btn--warning, .btn--amber {
  background: #d97706 !important;
  color: #ffffff !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.btn--warning:hover, .btn--amber:hover {
  background: #b45309 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}
.btn--danger, .btn--red {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}
.btn--danger:hover, .btn--red:hover {
  background: #b91c1c !important;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.35) !important;
}
.modal-close-btn {
  background: rgba(14, 28, 58, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  color: #ffffff;
}

/* ── Diagnostics Log Accordion ────────────────────────────────── */
.log-accordion-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.log-accordion-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 20, 45, 0.4);
  text-align: left;
}
.log-row-summary {
  cursor: pointer;
  transition: background 0.15s ease;
}
.log-row-summary:hover {
  background: rgba(23, 105, 232, 0.08);
}
.log-row-summary.is-expanded {
  background: rgba(23, 105, 232, 0.14);
}
.log-row-summary td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(23, 105, 232, 0.12);
  vertical-align: middle;
}
.log-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(23, 105, 232, 0.15);
  color: var(--brand-2);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.log-row-summary.is-expanded .log-accordion-toggle {
  transform: rotate(90deg);
  background: var(--brand-1);
  color: #ffffff;
}
.log-row-drawer {
  display: none;
}
.log-row-drawer.is-open {
  display: table-row;
}
.log-row-drawer td {
  padding: 0;
  border-bottom: 1px solid var(--border-hi);
  background: rgba(7, 14, 32, 0.95);
}
.log-drawer-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid var(--brand-2);
}

/* ── Embedded Mode (when viewed inside /app console) ─────────── */
html.is-embedded .nav {
  position: static !important;
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0 0.75rem 0 !important;
}

html.is-embedded .nav .logo {
  display: none !important;
}

html.is-embedded footer,
html.is-embedded .page-footer,
html.is-embedded .grid-overlay,
html.is-embedded .dmarcify-cookie-backdrop,
html.is-embedded .dmarcify-cookie-modal,
html.is-embedded .dmarcify-cookie-badge {
  display: none !important;
}

html.is-embedded body {
  background: transparent !important;
  min-height: auto !important;
}

html.is-embedded .tools-page,
html.is-embedded .page-main {
  padding-top: 0.25rem !important;
  padding-bottom: 2rem !important;
}

html.is-embedded .tools-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── MTA-STS Suite & Mode Switcher ──────────────────────────── */
.tool-mode-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 13, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.35rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tool-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.tool-mode-btn:hover {
  color: #ffffff;
  background: rgba(23, 105, 232, 0.12);
  border-color: rgba(23, 105, 232, 0.25);
}
.tool-mode-btn.is-active {
  color: #ffffff;
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(23, 105, 232, 0.35);
}

@media (max-width: 640px) {
  .tool-mode-nav {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem;
  }
  .tool-mode-btn {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
  }
}

.mta-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .mta-matrix-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.mta-matrix-card {
  background: rgba(12, 23, 50, 0.65);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: border-color 0.2s;
}
.mta-matrix-card:hover {
  border-color: var(--border-hi);
}
.mta-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.mta-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.mta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.mta-badge--pass {
  background: rgba(24, 217, 154, 0.15);
  border: 1px solid rgba(24, 217, 154, 0.4);
  color: var(--green);
}
.mta-badge--warn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
}
.mta-badge--fail {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--red);
}

.mta-mx-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(8, 13, 24, 0.6);
  margin-top: 0.75rem;
}
.mta-mx-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}
.mta-mx-table th {
  background: rgba(14, 28, 58, 0.85);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.mta-mx-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(23, 105, 232, 0.12);
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mta-mx-table tr:last-child td {
  border-bottom: none;
}

