div#wpfa-scan-save-notice, div#wpfa-report-save-notice {
    color: #33b586;
    font-weight: 500;
}

body.toplevel_page_guard-dog-security #wpfooter {display: none !important;}  

 /* Overlay on top */
    .wpfa-cron-overlay{
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: rgba(209, 106, 255, 0.28);
      backdrop-filter: blur(3px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    /* Card */
    .wpfa-cron-overlay__card{
      position: relative;
      max-width: 600px;
      width: 100%;
      background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
      border: 1px solid rgba(0,0,0,.08);
      border-left: 6px solid #d16aff; /* purple accent */
      border-radius: 14px;
      padding: 18px 18px 16px;
      box-shadow: 0 18px 50px rgba(0,0,0,.16);
    }

    /* Close button */
    .wpfa-cron-overlay__close{
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(0,0,0,.12);
      border-radius: 12px;
      background: rgba(255,255,255,.9);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: transform .12s ease, background .12s ease;
    }
    .wpfa-cron-overlay__close:hover{ background:#fff; transform: scale(1.03); }

    /* Header row */
    .wpfa-cron-head{
      display:flex;
      gap:14px;
      align-items:flex-start;
      padding-right: 52px; /* space for X */
    }

    .wpfa-cron-icon{
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(124,58,237,.10);
      display:flex;
      align-items:center;
      justify-content:center;
      flex: 0 0 auto;
    }
    .wpfa-cron-icon .dashicons{
      font-size: 33px;
      width: 33px;
      height: 33px;
      color: #d16aff;
    }
.bl-icon.bl-icon-listed {
    background: red;
    color: #fff;
}
.bl-disclaimer{
  display:flex;
  gap:12px;
  padding:14px 16px;
  border-radius:10px;
  margin: 14px 0;
  border:1px solid rgba(0,0,0,.08);
}
.bl-disclaimer-warning{ background: rgba(255, 193, 7, .12); }
.bl-disclaimer-info{ background: #fff6e6; border-color: #ffd599; }

.bl-disclaimer-icon .dashicons{
  font-size:28px;
  width:28px;
  height:28px;
  line-height:28px;
}
.bl-disclaimer-content h3{ margin:0 0 6px 0; }
.bl-disclaimer-content p{ margin:0 0 8px 0; }
/* Page layout */
.wpfa-ssl-hero{
    display:flex; gap:16px; justify-content:space-between; align-items:stretch;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 16px;
    margin: 14px 0 16px;
}
.wpfa-ssl-hero__left{ flex: 1 1 auto; min-width: 320px; }
.wpfa-ssl-hero__right{ flex: 0 0 320px; min-width: 280px; display:flex; align-items:stretch; }

.wpfa-ssl-hero__title{ display:flex; gap:12px; align-items:center; }
.wpfa-ssl-hero__logo{ width:44px; height:44px; object-fit:contain; border-radius:10px; }
.wpfa-ssl-subtitle{ color:#566; margin-top:4px; }

.wpfa-ssl-hero__controls{
    margin-top: 14px;
    display:flex;
    gap: 14px;
    align-items:normal;
    flex-wrap:wrap;
}

/* Controls */
.wpfa-field{ display:flex; flex-direction:column; gap:6px; }
.wpfa-field label{ font-weight: 600; color:#223; }
.wpfa-field input[type="text"]{ min-width: 420px; }
.wpfa-field input[readonly]{ background: #f6f7fb; }
.wpfa-field--btn{ min-width: 222px; }
.wpfa-label-spacer{ visibility:hidden; }
.wpfa-help{ font-size: 12px; color:#667; }

/* Button */
.wpfa-ssl-btn{
    height: 38px;
    border-radius: 10px !important;
    padding: 0 14px !important;
    font-weight: 600;
    width: 100%;
}

/* Health card */
.wpfa-ssl-health{
    width:100%;
    display:flex; gap:12px; align-items:center;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #efe;
}
.wpfa-ssl-health__icon{
    width:55px; height:55px; border-radius: 12px;
    display:flex; align-items:center; justify-content:center;
    background:#eef2ff;
    font-size: 35px;
}
.wpfa-ssl-health__label{ font-size: 12px; color:#667; }
.wpfa-ssl-health__status{ font-size: 18px; font-weight: 700; color:#111; }
.wpfa-ssl-health__hint{ margin-top:2px; color:#556; font-size: 12px; }
.wpfa-ssl-health__expires{
    margin-top: 10px;
    display:flex;
    gap:6px;
    align-items:baseline;
    flex-wrap:wrap;
}
.wpfa-ssl-health__expires-label{ font-size: 12px; color:#667; font-weight: 600; }
.wpfa-ssl-health__expires-value{ font-size: 12px; color:#111; font-weight: 700; }

/* Loader */
.wpfa-ssl-loader{
    display:none;
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    align-items:center;
    gap:12px;
}
.wpfa-ssl-loader__img{ width:34px; height:34px; }
.wpfa-ssl-loader__text{ font-weight:600; }

/* Summary cards */
.wpfa-ssl-summary{
    margin-top: 12px;
    background:#fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    padding: 14px;
}
.wpfa-ssl-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.wpfa-ssl-card{
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 12px;
    background: #f6f7fb;
}
.wpfa-ssl-card__kicker{ font-size: 14px; color:#667;text-transform: capitalize; }
.wpfa-ssl-card__value{ font-size: 16px; font-weight: 700; color:#111; margin-top: 4px; }
.wpfa-ssl-card__sub{ font-size: 12px; color:#556; margin-top: 6px; }

.wpfa-ssl-banner{
    display:flex; gap:10px; align-items:flex-start;
    border-radius: 14px;
    padding: 12px;
}
.wpfa-ssl-banner__icon{ font-size: 18px; margin-top: 2px; }
.wpfa-ssl-banner__title{ font-weight: 700; font-size: 17px; margin: 0; }
.wpfa-ssl-banner__text{ margin: 4px 0 0; color:#445; font-size: 15px; }

/* Responsive */
@media (max-width: 980px){
    .wpfa-ssl-hero{ flex-direction:column; }
    .wpfa-ssl-hero__right{ flex:1 1 auto; }
    .wpfa-ssl-grid{ grid-template-columns: 1fr; }
    .wpfa-field input[type="text"]{ min-width: 240px; width: 100%; }
    .wpfa-field--btn{ min-width: 240px; width: 100%; }
}
#wpfa-run-ssl-check:disabled{
  opacity: 1 !important;
  filter: none !important;
  cursor: not-allowed;
}
.wpfa-cron-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .1px;
    color: #444;
}
    .wpfa-cron-subtitle{
      margin: 6px 0 0;
      font-size: 16px;
      line-height: 1.55;
      color: #444;
    }

    .wpfa-cron-body{
      margin-top: 14px;
      display:grid;
      gap: 12px;
    }

    .wpfa-cron-steps{
      margin: 0;
      padding-left: 37px;
      color: #444;
      font-size: 16px;
      line-height: 1.55;
      list-style: disc;
    }
    .wpfa-cron-steps li{ margin: 6px 0; }

    .wpfa-cron-actions{
      margin-top: 14px;
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }
    .wpfa-btn{
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #d16aff, #a675ff);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 8px 18px rgba(209, 106, 255, .25);
    }
    .wpfa-btn-primary{
      background:#d16aff;
      border-color: rgba(124,58,237,.35);
      color:#fff;
    }
    .wpfa-btn-primary:hover{ background: linear-gradient(135deg, #33b586, #00b377);
    border-color: rgba(255, 255, 255, .3);
    color: #fff; cursor: pointer;}
button#fa-root-bulk-include:hover {
    border-color: #33b586 !important;
    color: #33b586 !important;
}
span.wpfa-lock-status.wpfa-lock-forced {
    font-size: 12px;
    font-weight: 700;
    color: #f54545;}
/* STATUS BOX */
.gds-status-box {
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.35s ease, background-color 0.35s ease;
    white-space: nowrap;
}

.gds-status-success {
    background: #e6f7ea;
    color: #176c2f;
    border-left: 4px solid #2ecc71;
}

.gds-status-error {
    background: #fdeaea;
    color: #b30000;
    border-left: 4px solid #e74c3c;
}

.gds-status-working {
    background: #fff8e6;
    color: #8a6d1f;
    border-left: 4px solid #f1c40f;
}

/* Spinner */
.gds-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #2271b1;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    animation: gds-spin 0.6s linear infinite;
}

@keyframes gds-spin {
    to { transform: rotate(360deg); }
}
/* GOOGLE FULL-WIDTH HERO CARD */
.google-transparency {
    padding: 35px 40px;
    border-radius: 12px;
    margin: 25px 0 40px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

/* CLEAN (safe) */
.gt-clean {
    background: linear-gradient(135deg, #f4fff7 0%, #ebffe8 100%);
}

/* LISTED (unsafe) */
.gt-listed {
    background: linear-gradient(135deg, #fff6f6 0%, #ffe8e8 100%);
}

.gt-icon {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: #33b586;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #444;
    flex-shrink: 0;
}
.dashicons-shield-alt:before {
    color: #fff;
}
.gt-content h2 {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 700;
}

.gt-status {
    margin: 15px 0 12px 0
    font-size: 17px;
}

.gt-status .bad {
    color: #d63638;
    font-weight: 600;
}

.gt-status .good {
    color: #1dbf61;
    font-weight: 600;
    font-size: 18px;
}

.gt-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: #7c4dff;
    font-size: 15px;
}

.gt-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .google-transparency {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .gt-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
}
.google-transparency {
    box-shadow: 
        0 12px 28px rgba(0,0,0,0.06),
        0 0 35px rgba(124, 77, 255, 0.08); /* soft purple glow */
}

.fa-loader {
    display:none;
    text-align:center;
    padding:40px 20px;
    animation: fadeIn .5s ease-in-out forwards;
}
.fa-loader-img, .pr-loader img  {
    width:120px;
    height:120px;
    object-fit:contain;
    background: #fff;
    border-radius: 300px;
    padding: 10px;
    animation: float 2.8s ease-in-out infinite, glow 2s ease-in-out infinite;
}

.fa-loader-text, .pr-loader p  {
    margin-top:20px;
    font-size:18px;
    font-weight:600;
    letter-spacing:0.5px;
    color:#6f3cdd;
    animation: pulseText 1.6s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* Glow animation */
@keyframes glow {
    0%   { filter: drop-shadow(0 0 2px #b792ff); }
    50%  { filter: drop-shadow(0 0 10px #c8a6ff); }
    100% { filter: drop-shadow(0 0 2px #b792ff); }
}

/* Text pulse */
@keyframes pulseText {
    0%   { opacity:0.6; }
    50%  { opacity:1; }
    100% { opacity:0.6; }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity:0; }
    to   { opacity:1; }
}
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}
.bl-card {
    background: linear-gradient(145deg, #ffffff, #f4f4f7);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e2e2;
    text-align: center;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.05),
        0 4px 8px rgba(0,0,0,0.04);
    transition: .25s all ease;
}
.bl-header { text-align:center; }
.bl-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #33b586;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin: 0 auto;
}
p.bl-status span.good{
    color: #33b586;
    font-size: 15px;
    font-weight: 700;
}

.dashicons-yes:before {
    color: #fff;
}
.spinner {
    margin: 0 auto 10px;
    width: 45px;
    height: 45px;
    border: 6px solid #e3e3e3;
    border-top-color: #6f3cdd;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@media (max-width: 768px) {
    .bl-grid { grid-template-columns: 1fr; }
}

    /* Overlay container for coming soon cards */
.coming-soon {
    position: relative;
    overflow: hidden;
}

/* Overlay layer */
.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity .3s ease, transform .3s ease;
    border-radius: 14px;
    text-transform: uppercase;
}

/* Show overlay on hover */
.coming-soon:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Slight dimming effect on hover */
.coming-soon:hover {
    filter: blur(0.5px) brightness(0.85);
    cursor: not-allowed;
}
 .st-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.st-head h2 {
    margin: 0 !important;
    height: 55px;        
    line-height: 55px; 
}


.st-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #d16aff, #a675ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(209, 106, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .05);
}

    .security-tool-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.security-tool-link:hover .security-tool {
    transform: translateY(-6px);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06);
    border-color: #d9d9d9;
}

.security-tools-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

/* Card Style */
.security-tool {
    background: linear-gradient(145deg, #ffffff, #f4f4f7);
    border-radius: 14px;
    padding: 30px 25px;
    position: relative;
    border: 1px solid #e6e6e6;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.05),
        0 4px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.security-tool:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06);
    border-color: #d9d9d9;
}

.security-tool h2 {
    margin: 10px 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}


@media (max-width: 768px) {
    .security-tools-wrap {
        grid-template-columns: 1fr;
    }
}
 .wpfa-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin-top: 18px;
  }
  @media (max-width: 1200px) {
    .wpfa-two-col { grid-template-columns: 1fr; }
  }
   .wpfi-card-guard-dog {
                background: #fff;
                padding: 0px 25px 10px 25px;
                border-radius: 8px;
                border: 1px solid #ccd0d4;
                box-shadow: 0 1px 3px rgba(0,0,0,0.08);
                margin-top: 20px;
            }
    .wpfi-heading-guard-dog {
        margin-bottom: 5px;
        font-size: 20px;
        font-weight: 600;
    }
    .wpfi-file-list-guard-dog {
        max-height: 300px;
        overflow: auto;
        padding: 10px;
        margin-top: 10px;
        border: 1px solid #e1e1e1;
        border-radius: 6px;
        background: #fae1e3;
    }
    .wpfi-file-list-guard-dog li {
        padding: 4px 0;
        font-size: 14px;
        font-weight: 500;
    }
    .wpfi-highlight-guard-dog {
        background: #ffeb3b;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 700;
        color: #333;
    }
/* was input[type="radio"] —> make them checkboxes */
.wpfa-scope input[type="checkbox"] {
  position: absolute !important;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wpfa-scope input[type="checkbox"]:focus + label {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}
.wpfa-scope input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

/* --- Scope (segmented control) --- */
.wpfa-scope {
  margin-top: 27px;
}
.wpfa-scope fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.wpfa-scope legend {
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.wpfa-scope .seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wpfa-scope input[type="radio"] {
  /* keep accessible but visually hidden */
  position: absolute !important;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wpfa-scope label, a.wpfa-scope-link {
  color: #fff;
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  text-decoration: none;
}
.wpfa-scope label:hover, a.wpfa-scope-link:hover {
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.wpfa-scope label .dashicons, a.wpfa-scope-link .dashicons {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  /* optional slight size tweak if you want them a hair larger */
  font-size: 20px;
  width: 20px;
  height: 20px;
}
.wpfa-scope input[type="radio"]:focus + label {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .35);
}
.wpfa-scope input[type="radio"]:checked + label {
  background: linear-gradient(135deg, #ede9fe, #eff6ff);
  border-color: #7c3aed;
  color: #111827;
}
.wpfa-scope .hint {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

/* Page section spacing */
.wpfa-section {
  margin-top: 18px;
}

/* ---------- Results list (no table) ---------- */
.wpfa-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0 0;
}

/* Data row */
.wpfa-row-scanner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e0e2;
  border-radius: 8px;
  padding: 12px;
}

/* Left: path bubble (flexes) */
.wpfa-path-scanner {
  flex: 1 1 auto; /* take remaining space */
  min-width: 0;   /* allow ellipsis to work */
  display: block;
  padding: 8px 10px;
  white-space: nowrap; /* one-line with ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  color: #2c3338;
}

/* Right: actions (fixed width, one line, never wrap) */
.wpfa-actions-scanner {
  flex: 0 0 260px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* keep buttons on one line */
  min-width: 260px;
}
.wpfa-actions-scanner .button-delete {
  color: #b32d2e;
  border-color: #d63638;
}

/* Header labels align with layout */
.wpfa-col-file {
  flex: 1 1 auto;
  min-width: 0;
}
.wpfa-col-actions {
  flex: 0 0 260px;
  text-align: center;
}

/* ---------- “Sexy” scanning overlay ---------- */
#wpfa-scan-overlay[hidden] {
  display: none;
}
#wpfa-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(209, 106, 255, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpfa-overlay-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 22px 24px;
  width: min(560px, 92vw);
}
.wpfa-overlay-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

/* Spinner */
.wpfa-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #7c3aed; /* violet */
  animation: wpfa-spin 0.9s linear infinite;
}
@keyframes wpfa-spin {
  to {
    transform: rotate(360deg);
  }
}
.wpfa-eta {
  display: block;     /* keeps it on its own line */
  margin-top: 6px;    /* some breathing room */
  font-size: 14px;    /* smaller text */
  color: #666;        /* gray tone */
  font-style: italic; /* optional */
}
/* Progress bar (indeterminate stripes) */
.wpfa-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
  margin-top: 12px;
}

/*
 * Indeterminate progress for DB-only scans (or any stage where we can't
 * compute a deterministic percentage). This keeps the bar visibly moving
 * while a single AJAX request performs the database scan.
 */
#wpfa-progress-bar.wpfa-indeterminate {
  width: 100% !important;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.20) 0%,
    rgba(124, 58, 237, 0.85) 50%,
    rgba(124, 58, 237, 0.20) 100%
  );
  background-size: 200% 100%;
  animation: wpfa-indeterminate 1.15s ease-in-out infinite;
}

@keyframes wpfa-indeterminate {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.wpfa-overlay-sub {
  color: #000;
  font-size: 13px;
  margin-top: 12px;
}

.wpfa-scan-form {
  margin-bottom: 55px;
  position: relative;
  padding: 12px 0 0 33px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(1200px at 0 140%, rgba(209, 106, 255, .18), transparent 90%), var(--wpfa-card);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  color: #efefef;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
input.button.primary-scanner {
  font-size: 27px;
  margin-top: 23px;
  margin-bottom: 10px;
}

body.toplevel_page_guard-dog-security {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
span.dashicons.dashicons.dashicons-admin-settings {
  margin-right: 0 !important;
}

/* Section layout */
.fa-locked-section {
  margin-top: 10px;
}
.fa-locked-row + .fa-locked-row {
  margin-top: 12px;
}
.fa-locked-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb; /* readable on your dark header background; adjust if needed */
}

/* Pill group (same vibe as the LOCKED badge) */
.fa-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Base pill */
.fa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

/* Success color to match the status badge */
.fa-pill-success {
  color: #ffffff;
  background: #10b981; /* same green tone as your LOCKED pill */
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .15), 0 2px 6px rgba(16, 185, 129, .25);
}

/* Ensure full names display in pills (no cutoff) */
.fa-pill-label {
  white-space: normal !important; /* allow wrapping */
  overflow: visible !important;   /* don’t hide extra text */
  text-overflow: unset !important;/* remove ellipsis */
  word-break: break-word;         /* break long names if needed */
}

/* Make pills expand naturally if names are long */
.fa-pill {
  max-width: none !important; /* don’t restrict pill size */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
}

/* Switch styling */
.wpfa-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.wpfa-switch input {
  display: none;
}
.wpfa-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f54545;
  transition: .2s;
  border-radius: 24px;
}
.wpfa-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: .2s;
  border-radius: 50%;
}
.wpfa-switch input:checked + .wpfa-slider {
  background: #1ab06f;
}
.wpfa-switch input:checked + .wpfa-slider:before {
  transform: translateX(24px);
}
.wpfa-toggle-switch-row {
  margin-top: 15px;
}
h1.fa-title {
  margin-top: 12px !important;
  font-weight: 600 !important;
}

/* wrapper around each tab (the <div class="fa-tab-wrapper"> you added) */
.fa-tab-wrapper {
  position: relative;
  display: inline-block;
}
a.fa-submenu-item {
  color: #fff;
  font-weight: 500;
}

/* show dropdown while hovering parent or anything inside it */
.fa-tab-wrapper:hover .fa-submenu,
.fa-tab-wrapper:focus-within .fa-submenu {
  display: block;
}

/* center the submenu under the parent */
.fa-submenu {
  position: absolute;
  top: calc(100% + 6px); /* visually 6px below */
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  display: none;
  z-index: 1000;
  background: linear-gradient(135deg, #d16aff, #a675ff);
  border-radius: 5px;
  padding: 6px;
  pointer-events: auto; /* ensure it can be hovered/clicked */
}

/* invisible "bridge" fills the 6px gap so mouse never leaves hover state */
.fa-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px; /* exactly the same as the visual gap */
  height: 6px; /* bridge height */
  /* no background so it stays invisible */
}

/* show on hover or keyboard focus */
.fa-tab-wrapper.has-children:hover > .fa-submenu,
.fa-tab-wrapper.has-children:focus-within > .fa-submenu {
  display: block;
}

/* submenu links */
.fa-submenu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: color .18s ease, transform .18s ease, box-shadow .18s ease;
  font-weight: 500;
}
.fa-submenu-item:hover {
  background: #efefef;
  color: #444;
  border-radius: 5px;
}

button#wpfa-done-modal {
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 18px;
  font-weight: 500;
  border-radius: 5px;
}
button#wpfa-copy-modal,
button#wpfa-close-modal {
  border: 1px solid #d16aff;
  font-size: 18px;
  font-weight: 500;
  border-radius: 5px;
  color: #d16aff;
}
button#wpfa-done-modal:hover,
button#wpfa-copy-modal:hover,
button#wpfa-close-modal:hover {
  color: #fff;
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
}

/* Minimal modal styling, scoped */
.fa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: none;
  z-index: 100000; /* above wp-admin header */
}
.fa-modal {
  position: fixed;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  max-height: 84vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  display: none;
  z-index: 100001;
  overflow: hidden;
  border: 1px solid #c3c4c7;
}
.fa-modal-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e4e7;
  display: flex;
  align-items: center;
  justify-content: space-between; /* push children apart */
  gap: 12px;
}
.fa-modal-title {
  font-weight: 600;
  margin: 0;
  font-size: 18px;
  flex-grow: 1; /* title/meta expand */
}
.fa-modal-close {
  margin-left: auto; /* ensure it hugs the right */
}
.fa-modal-body {
  padding: 0;
  height: 64vh;
  overflow: auto;
  background: #fff;
}
.fa-modal-body pre {
  margin: 0;
  padding: 14px;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #fff;
}
.fa-modal-footer {
  padding: 10px 14px;
  border-top: 1px solid #e2e4e7;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.fa-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f0f1;
  color: #1d2327;
}
.fa-muted {
  color: #1ab06f;
}

button#view-file-button-fa, .wpfa-db-view-btn, a#view-db-flag {
  background: #f6f7f7 !important;
  border-color: #ad7c1a !important;
  color: #ad7c1a !important;
  vertical-align: top !important;
}
button#view-file-button-fa:hover,
.wp-core-ui .button-link-delete:hover, .wpfa-db-view-btn:hover, a#view-db-flag:hover {
  background: #f0f0f1 !important;
}
.fa-list:before {
  display: none !important;
}

button.button.button-primary.wpfa-cta-primary,
input#wpfa-save-headers-btn,
a.button.wpfa-cta-view.headers,
a#wpfa-report-download,
a#wpfa-export-scan-report,
button#wpfa-cancel-scan, input#wpfa-save-button, button#run-blacklist-check, #wpfa-scan-save-button.button.button-primary, #wpfa-run-ssl-check.button.button-primary {
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 18px;
  font-weight: 500;
  border-radius: 5px;
  color: #fff;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
input#wpfa-ssl-host {
    height: 40px;
}
input.button.primary-scanner {
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
  font-size: 18px;
  font-weight: 500;
  border-radius: 5px;
  color: #fff;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
input.button.primary-scanner:hover {
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}

/* Hover: new gradient instead of flat color */
button.button.button-primary.wpfa-cta-primary:hover,
input#wpfa-save-headers-btn:hover,
a.button.wpfa-cta-view.headers:hover,
a.wpfa-sexy-btn:hover,
a#wpfa-report-download:hover,
a#wpfa-export-scan-report:hover,
button#wpfa-cancel-scan:hover, input#wpfa-save-button:hover, button#run-blacklist-check:hover, #wpfa-scan-save-button.button.button-primary:hover, #wpfa-run-ssl-check.button.button-primary:hover {
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

button.button.wpfa-cta-secondary,
a.button.wpfa-cta-secondary, input#wpfa-send-test-report, input#wpfa-run-scan-now {
  border: 1px solid #d16aff;
  font-size: 18px;
  font-weight: 500;
  border-radius: 5px;
  color: #d16aff;
}
button.button.wpfa-cta-secondary:hover,
a.button.wpfa-cta-secondary:hover, input#wpfa-send-test-report:hover, input#wpfa-run-scan-now:hover {
  border: 1px solid #33b586;
  color: #33b586;
}
input#wpfa-check-all-files {
  margin-top: 4px;
  margin-left: 15px;
}
span.wpfa-filepill.unlocked {
  letter-spacing: .06em;
}

/* Grid */
.wpfa-grid-users {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 20px;                       /* spacing between cards */
  width: 100%;
}
@media (max-width: 900px) {
  .wpfa-grid {
    grid-template-columns: 1fr; /* stack on smaller screens */
  }
}
.wpfa-grid-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .wpfa-grid {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}

/* Card (white version) */
.wpfa-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

/* Head (white card context) */
.wpfa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wpfa-title-headers {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: #e7ecff;
}
.wpfa-type-headers {
  font-size: 15px;
  color: #9aa3c7;
  margin-top: 2px;
  line-height: 1.5;
}
.wpfa-pill.enabled {
  background: #1ab06f;
  color: #efefef;
}
.wpfa-pill.disabled {
  background: #f54545;
  color: #efefef;
}

/* Checkbox row */
.wpfa-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.wpfa-check input[type="checkbox"] {
  margin: 0;
}

/* Theme variables */
:root {
  --wpfa-bg: #0b1020;
  --wpfa-card: #111629;
  --wpfa-card-2: #0f1426;
  --wpfa-txt: #e7ecff;
  --wpfa-sub: #9aa3c7;
  --wpfa-ring: #d16aff;
  --wpfa-accent: #d16aff;
  --wpfa-green: #33b586;
  --wpfa-green-bg: rgba(37, 179, 107, .14);
  --wpfa-red: #ff5b6e;
  --wpfa-red-bg: rgba(255, 91, 110, .14);
}
@media (prefers-color-scheme: light) {
  :root {
    --wpfa-bg: #f6f7fb;
    --wpfa-card: #ffffff;
    --wpfa-card-2: #f2f2ff;
    --wpfa-txt: #1b2137;
    --wpfa-sub: #5b6381;
    --wpfa-ring: #d16aff;
    --wpfa-accent: #d16aff;
  }
}

/* Hero Section */
.wpfa-hero {
  margin: 8px 0 16px;
  color: #333;
  position: relative;
}
.wpfa-hero h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
}
.wpfa-hero p {
  margin: 0;
  font-size: 15px;
  color: #222;
}

/* Shell & Toolbar */
.wpfa-shell {
  background: var(--wpfa-bg);
  padding: 14px;
  border-radius: 16px;
}
.wpfa-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: radial-gradient(1200px at 0 140%, rgba(209, 106, 255, .18), transparent 90%), var(--wpfa-card);
  border-radius: 12px;
  color: var(--wpfa-txt);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.wpfa-selectall {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--wpfa-txt);
}
.wpfa-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--wpfa-sub);
}

/* Grid & Cards (dark gradient card variant) */
.wpfa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(333px, 1fr));
  gap: 16px;
}
.wpfa-card {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(1200px at 0 140%, rgba(209, 106, 255, .18), transparent 90%), var(--wpfa-card);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  color: var(--wpfa-txt);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.wpfa-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.wpfa-card:focus-within {
  outline: 2px solid var(--wpfa-ring);
  outline-offset: 2px;
}

/* Card Head & Pills (dark card context) */
.wpfa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wpfa-title {
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.wpfa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  border: 1px solid transparent;
}
.wpfa-pill.locked {
  background: #1ab06f;
  color: #efefef;
}
.wpfa-pill.unlocked {
  background: #f54545;
  color: #efefef;
}

/* Path */
.wpfa-pathwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.wpfa-path {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--wpfa-card-2);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--wpfa-sub);
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpfa-path::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--wpfa-card-2));
}

/* Copy Button */
.wpfa-copy {
  padding: 8px 10px;
  border-radius: 5px;
  font-weight: 300;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
  text-transform: uppercase;
}
.wpfa-copy:hover {
  filter: brightness(1.05);
}

/* Misc */
.wpfa-type {
  font-size: 12px;
  color: var(--wpfa-sub);
  margin-top: 10px;
  margin-bottom: -11px;
}
.wpfa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0 10px;
  font-weight: 600;
  user-select: none;
}
.wpfa-check input,
.wpfa-filechip input {
  width: 20px;
  height: 20px;
  accent-color: var(--wpfa-ring);
  margin-top: 0;
}
.wpfa-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
}

/* Root Files */
.wpfa-rootwide {
  grid-column: 1 / -1;
}
.wpfa-filelist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.wpfa-filechip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--wpfa-card-2);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 15px;
  color: var(--wpfa-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpfa-filepill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid transparent;
}
.wpfa-filepill.locked {
  background: var(--wpfa-green-bg);
  color: var(--wpfa-green);
  border-color: rgba(37, 179, 107, .25);
}
.wpfa-filepill.unlocked {
  background: #f54545;
  color: #efefef;
}

/* Sitelock card */
.fa-sitelock-card {
  display: grid; /* override earlier flex */
  grid-template-columns: auto 1fr auto;
  gap: 12px 16px;
  margin: 28px 0 32px;
  padding: 42px 16px 20px 26px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  background: radial-gradient(1200px at 0 140%, rgba(209, 106, 255, .18), transparent 90%), var(--wpfa-card);
  color: #fff;
  box-shadow: 0 5px 33px rgba(209, 106, 255, 0.5);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Icon */
.fa-sitelock-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  place-items: center;
  background: rgba(255, 255, 255, .08);
}
.fa-sitelock-icon .dashicons {
  font-size: 40px;
  color: #fff;
  line-height: 1;
  margin-left: 7px;
  margin-top: 7px;
}
/* Meta (title + pill + desc) */
.fa-sitelock-meta {
  min-width: 133px;
}
.fa-sitelock-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fa-sitelock-title {
  font-size: 25px;
}
.fa-sitelock-desc {
  margin: .35rem 0 0;
  color: #cdd6f4;
  font-size: 15px;
}
/* CTA lives in the right column by default */
.fa-sitelock-cta {
  justify-self: end;
}
/* Locked section sits INSIDE card, full width under top row */
.fa-locked-section {
  grid-column: 1 / -1;
  margin-top: 10px; /* you already style inner pieces */
}
.wpfa-sexy-btn {
  display: inline-block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #d16aff, #a675ff);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 18px rgba(209, 106, 255, .25);
}

/* Health pill */
.fa-health-pill .fa-health-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  min-height: 33px;
}
.fa-health-pill .fa-health-link:hover {
  text-decoration: underline;
}
.fa-health-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, #33b586, #00b377);
  border-color: rgba(255, 255, 255, .3);
}
.fa-health-pill:hover .dashicons {
  color: #fff !important;
}
.fa-health-pill a,
.fa-health-pill a:hover,
.fa-health-pill a:focus,
.fa-health-pill a:active {
  text-decoration: none !important;
}
.fa-health-pill {
  transition: background-color .2s ease, color .2s ease;
  background: #f54545;
  border: 1px solid #f54545;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
}
.fa-health.fa-health--ok {
  --fa-gauge-color: #1ab06f;
}
.fa-health.fa-health--warn {
  --fa-gauge-color: #dba617;
}
.fa-health.fa-health--bad {
  --fa-gauge-color: #f54545;
}

/* Grade chip */
.fa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 111px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.fa-chip.grade-perfect {
  background: #eafaf1;
  border: 1px solid #1ab06f;
  color: #1ab06f;
}
.fa-chip.grade-good {
  background: #ecfdf5;
  border: 1px solid #1ab06f;
  color: #1ab06f;
}
.fa-chip.grade-fair {
  background: #fff7ed;
  border: 1px solid #f59e0b;
  color: #b45309;
}
.fa-chip.grade-poor {
  background: #fef2f2;
  border: 1px solid #f54545;
  color: #f54545;
}

/* Tables */
.widefat {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}
.widefat th,
.widefat td {
  vertical-align: middle;
  text-align: left;
  padding: 8px 23px;
}
.widefat th:not(:first-child),
.widefat td:not(:first-child) {
  width: 1%;
  white-space: nowrap;
}
.widefat td:last-child form {
  display: inline-block;
}
.widefat td:last-child .button {
  white-space: nowrap;
}
.widefat td:first-child,
.widefat td:first-child code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Buttons: status + toggles */
button#fa-status-active,
button#fa-wpcontent-ignore-all-top,
button#fa-uploads-php-ignore-all-top,
button#fa-htaccess-ignore-all,
button#fa-db-ignore-all,
button#fa-uploads-php-bulk-ignore,
button#fa-wpcontent-bulk-ignore,
button#fa-themes-bulk-ignore,
button#fa-plugins-bulk-ignore,
button#fa-root-bulk-ignore,
button#fa-bulk-ignore,
button#fa-db-bulk-ignore,
button.button.folder-toggle-button.folder-locked,
button.button.button-secondary.wpfa-ignore-btn {
  border-color: #1ab06f;
  color: #1ab06f;
}
button.button.folder-toggle-button.folder-unlocked {
  color: #d16aff;
  border-color: #d16aff;
}

/* Locked state */
button.button.folder-toggle-button.folder-locked:hover {
  border-color: #d16aff;
}
.folder-toggle-button.folder-locked .dashicons::before {
  content: "\f160"; /* dashicons-lock */
}
.folder-toggle-button.folder-locked .label {
  content: "Allow Lock"; /* fallback if no PHP text */
}

/* On hover, act like unlocked */
.folder-toggle-button.folder-locked:hover .dashicons {
  font-family: dashicons;
}
.folder-toggle-button.folder-locked:hover .dashicons::before {
  content: "\f528"; /* dashicons-unlock */
  color: #d16aff;
}
.folder-toggle-button.folder-locked:hover .label {
  display: inline;
}
.folder-toggle-button.folder-locked:hover .label::after {
  content: "Never Lock";
  color: #d16aff;
}
.folder-toggle-button.folder-locked:hover .label {
  visibility: hidden;
  position: relative;
}
.folder-toggle-button.folder-locked:hover .label::after {
  visibility: visible;
  position: absolute;
  left: 0;
}

/* Unlocked state */
button.button.folder-toggle-button.folder-unlocked:hover {
  border-color: #1ab06f;
}
.folder-toggle-button.folder-unlocked .dashicons::before {
  content: "\f528"; /* dashicons-unlock */
}
.folder-toggle-button.folder-unlocked .label {
  content: "Allow Lock"; /* fallback if no PHP text */
}

/* On hover, act like locked */
.folder-toggle-button.folder-unlocked:hover .dashicons {
  font-family: dashicons;
}
.folder-toggle-button.folder-unlocked:hover .dashicons::before {
  content: "\f160"; /* dashicons-lock */
  color: #1ab06f;
}
.folder-toggle-button.folder-unlocked:hover .label {
  visibility: hidden;
  position: relative;
}
.folder-toggle-button.folder-unlocked:hover .label::after {
  content: "Allow Lock";
  visibility: visible;
  position: absolute;
  left: 0;
  color: #1ab06f;
}
.folder-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Dashicons size adjustment */
.folder-toggle-button .dashicons {
  line-height: 1.4;
}

button#fa-status-ignored,
button#fa-uploads-php-bulk-include,
button#fa-bulk-include,
button#fa-db-bulk-include,
button#fa-wpcontent-bulk-include,
button#fa-plugins-bulk-include,
button#fa-themes-bulk-include,
button#fa-root-bulk-include,
button.button.button-secondary.wpfa-include-btn {
  color: #d16aff;
  border-color: #d16aff;
}

/* Stats cards */
.folder-auditor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.folder-auditor-stats .card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all .25s ease;
  text-align: center;
  min-width: 55px !important;
}
.folder-auditor-stats a .card {
  cursor: pointer;
}
.folder-auditor-stats a .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.folder-auditor-stats .card strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.2;
}
.folder-auditor-stats .card .description {
  font-size: 14px;
  color: #666;
  letter-spacing: .3px;
}

/* Misc elements */
code {
  padding: 5px;
  border-radius: 5px;
}
td {
  vertical-align: middle !important;
}

/* Status pills */
.folder-auditor-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
}
.folder-auditor-status--ok {
  background: #e6f5ea;
  color: #1e7e34;
  border: 1px solid #cdebd6;
}
.folder-auditor-status--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}
.folder-auditor-status--info {
  background: #eef2f7;
  color: #2f3b52;
  border: 1px solid #d6dce5;
}

/* Orphans list */
.folder-auditor-orphans {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}
.folder-auditor-orphans code {
  background: #f6f7f7;
  padding: 2px 6px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  display: inline-block;
  margin: 2px 0;
}
@media (max-width: 782px) {
  .folder-auditor-orphans {
    columns: 1;
  }
}

/* Dashboard */
.wpfa-dashboard .fa-title {
  margin-bottom: 8px;
  margin-top: 18px !important;
}
.wpfa-dashboard .fa-subtle,
p.fa-subtle {
  color: #6a6a6a;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}
.wpfa-dashboard .fa-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.wpfa-dashboard .fa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease, background .2s ease;
  text-decoration: none;
  color: inherit;
  min-height: 69px;
}
.wpfa-dashboard .fa-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border-color: #c3c4c7;
}
.wpfa-dashboard .fa-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  border: 1px solid #e0e0e0;
  flex: 0 0 38px;
  color: #fff;
}
.wpfa-dashboard .fa-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wpfa-dashboard .fa-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpfa-dashboard .fa-label {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}
.wpfa-dashboard .fa-desc {
  color: #555;
  font-size: 12.5px;
}
.wpfa-dashboard .fa-badges {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wpfa-dashboard .fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
  font-size: 12.5px;
  white-space: nowrap;
}
.wpfa-dashboard .fa-badge .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}
.wpfa-dashboard .is-warn {
  background: #fff6e6;
  border-color: #ffd599;
}
.wpfa-dashboard .is-ok {
  background: #e6f7ea;
  border-color: #cdebd6;
}
.wpfa-dashboard .is-info {
  background: #e6f5ea;
  border-color: #cdebd6;
}
.wpfa-dashboard .is-neutral {
  background: #f6f7f7;
  border-color: #dcdcde;
}
.wpfa-dashboard .fa-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.wpfa-dashboard .fa-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.wpfa-dashboard .fa-cta:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .07);
  border-color: #c3c4c7;
}
.wpfa-dashboard .fa-cta .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}
@media (min-width: 900px) {
  .wpfa-dashboard .fa-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Top nav variables and tabs */
body.toplevel_page_guard-dog-security {
  --fa-accent: #d16aff;
  --fa-accent-600: #b44eea;
  --fa-ink: #1d1e20;
  --fa-border: #e8e4ef;
  --fa-glow: rgba(209, 106, 255, .35);
  --fa-logo-w: clamp(28px, 6vmin, 44px);
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap; /* force one line */
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px calc(var(--fa-logo-w) + 24px) 12px 12px;
  background: linear-gradient(135deg, rgba(209, 106, 255, .12), rgba(209, 106, 255, .06));
  border: 1px solid var(--fa-border);
  border-radius: 8px;
  text-transform: uppercase;
  overflow: visible;
  white-space: nowrap; /* prevent word wrapping */
  min-height:77px;
}
.wpfa-header {
    flex-wrap: wrap;
    margin-bottom: 15px;
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab {
  flex: 1 1 0; /* each takes equal space */
  display: block; /* align icon + text */
  justify-content: center; /* center contents */
  align-items: center;
  gap: 8px;
  padding: 12px; /* more consistent padding */
  font-weight: 600;
  line-height: 1;
  color: #444;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(209, 106, 255, .14), rgba(209, 106, 255, .08));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab:hover::before,
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab:focus-visible::before {
  opacity: 1;
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab:hover {
  transform: translateY(-1px);
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab.nav-tab-active {
  color: #fff;
  background: linear-gradient(135deg, var(--wpfa-accent), #a675ff);
  box-shadow: 0 10px 20px var(--fa-glow), inset 0 -2px 0 rgba(0, 0, 0, .05);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab.nav-tab-active::before {
  display: none;
}
body.toplevel_page_guard-dog-security .nav-tab-wrapper .nav-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209, 106, 255, .25), 0 10px 20px rgba(209, 106, 255, .12);
}
body.toplevel_page_guard-dog-security .fa-nav-logo {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  aspect-ratio: 1;
  background: url("/wp-content/plugins/folder-auditor/assets/brand-banner.webp") center / contain no-repeat;
  width: 222px;
  height: 77px;
}
body.toplevel_page_guard-dog-security a.fa-nav-logo:focus,
body.toplevel_page_guard-dog-security a.fa-nav-logo:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.toplevel_page_guard-dog-security .fa-nav-logo:hover,
body.toplevel_page_guard-dog-security .fa-nav-logo:focus-visible {
  transform: translateY(-3%) scale(1.06);
  outline: none;
}
@media (max-width: 555px) {
.fa-sitelock-card {
    display: block;
}
.fa-sitelock-cta {
    justify-self: start;
    margin: 15px 0;
}
.fa-sitelock-icon {
    margin-bottom: 15px;
}
.folder-auditor-stats {
    display: block !important;
}
.fa-sitelock-titleline {
    margin-bottom: 15px;
}
span.fa-chip {
    margin-top: 15px;
}
.fa-submenu {
    margin-left: 33px;
}
}

@media (max-width: 1532px) {
  a.fa-nav-logo {
    display: none;
}
}

  @media (max-width: 782px) {
  body.toplevel_page_guard-dog-security .nav-tab-wrapper {
    gap: 8px 6px;
  }
  body.toplevel_page_guard-dog-security {
    --fa-logo-w: clamp(26px, 7vmin, 38px);
  }
  .fa-export-header {
    display: block !important;
}
.fa-utbl .button.button-secondary, a#edit-db-flag {
    min-height: 40px !important;
}
}

/* ===========================
   FA Universal Table (Sexy v2)
   =========================== */
.fa-utbl{
  background:#fff;
  border:1px solid #d9dee5;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}

.fa-utbl__head,
.fa-utbl__row{
  display:grid;
  grid-template-columns: var(--fa-utbl-cols, minmax(320px,1fr) 80px 200px max-content 140px);
  align-items:center;
}

.fa-utbl__head{
  background:linear-gradient(to bottom,#fcfdff,#f3f6fa);
  border-bottom:1px solid #dde3ea;
}

.fa-utbl__th,
.fa-utbl__td{
  padding:10px 12px;
  min-width:0;
}

.fa-utbl__th{
  font-weight:700;
  color:#1d2327;
  font-size:13px;
}

.fa-utbl__body .fa-utbl__row{
  border-top:1px solid #f0f3f7;
}

.fa-utbl--striped .fa-utbl__body .fa-utbl__row:nth-child(even){
  background:#fbfcfe;
}

/* Location: truncate on desktop, full path via title tooltip */
.fa-utbl__path code{
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:bottom;
  border-radius:3px;
  padding:6px 10px !important;
}

/* Actions compact */
.fa-utbl__actions, .fa-utbl__td{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.fa-utbl .button.button-secondary, a#edit-db-flag{
  padding:0 10px;
  min-height:28px;
  line-height:26px;
  border-radius:3px;
}

/* Bulk column tighter */
.fa-utbl__th--bulk,
.fa-utbl__td--bulk{
  justify-self:end;
}

.fa-utbl__bulk-head select,
.fa-utbl__td--bulk select{
  width:100px;
  max-width:100px;
  border-radius:3px;
  min-height:32px;
}

/* Empty row */
.fa-utbl__td--full{
  grid-column:1 / -1;
  padding:14px 12px;
}

/* ---------- Responsive stacking ---------- */
@media (max-width: 1225px){
  .fa-utbl__td.fa-utbl__td--bulk{
  display:none !important;
}

  .fa-utbl__head{ display:none; }
  .fa-utbl__row{ grid-template-columns:1fr; }

  .fa-utbl__td{
    display:flex;
    gap:10px;
    align-items:flex-start;
    border-left:0 !important;
    border-top:1px solid #eef2f6;
  }
  .fa-utbl__td:first-child{ border-top:0; }

  .fa-utbl__td::before{
    content:attr(data-label);
    flex:0 0 140px;
    max-width:140px;
    font-weight:700;
    color:#1d2327;
  }

  /* On mobile, show full path */
  .fa-utbl__path code{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .fa-utbl__actions{ flex-wrap:wrap; }

  .fa-utbl__bulk-head select,
  .fa-utbl__td--bulk select{
    width:100%;
    max-width:100%;
  }

  .fa-utbl__td--full::before{ content:none; }
  /* stop the bulk cell from doing special alignment */
  .fa-utbl__td--bulk {
    justify-self: auto !important;
    justify-content: flex-start !important;
  }

  /* label appears on the left just like other cells */
  .fa-utbl__td--bulk::before {
    content: attr(data-label);
  }

  /* keep the select as the "value" on the right side of the label */
  .fa-utbl__td--bulk select {
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto; /* pushes it to the right within the cell */
  }

  /* if your bulk header exists (when header is not hidden), keep it consistent too */
  .fa-utbl__th--bulk {
    justify-content: flex-start !important;
  }
}

/* -------------------------------------------------------------------------
   AJAX Tab Navigation: Loading Overlay + Content Dim
   ------------------------------------------------------------------------- */
#wpfa-ajax-overlay{
  position: fixed;
  inset: 0;
  z-index: 999998; /* below the progress bar */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(209, 106, 255, 0.3);
  backdrop-filter: blur(2px);
}
#wpfa-ajax-overlay.is-visible{ display: flex; }

#wpfa-ajax-overlay .wpfa-ajax-overlay__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

#wpfa-ajax-overlay .wpfa-ajax-overlay__icon{
  width: 77px;
  height: 77px;
  display: block;
  object-fit: contain;
}

#wpfa-ajax-overlay .wpfa-ajax-overlay__label {
    font-weight: 600;
    color: #222;
    font-size: 18px;
    font-style: italic;
}

#wpfa-tab-content.wpfa-loading{
  opacity: .35;
  pointer-events: none;
  transition: opacity 120ms ease;
}

@keyframes wpfaSpin { to { transform: rotate(360deg); } }
