/* FlexyProxies — Proxy Checker (checker.net-style results) */
.fp-pc-card {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.fp-pc-sites {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.fp-pc-sites-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: #e8f0fe;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fp-pc-sites-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.fp-pc-sites-desc {
  margin: 0;
  padding: 14px 18px 4px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.fp-pc-sites.is-collapsed .fp-pc-sites-desc,
.fp-pc-sites.is-collapsed .fp-pc-site-grid {
  display: none;
}

.fp-pc-site-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 18px;
}

button.fp-site-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f1f5fb;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

button.fp-site-tile:hover {
  background: #e8f0fe;
  border-color: #bfdbfe;
}

button.fp-site-tile.is-active {
  background: #eef4ff;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.fp-site-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

button.fp-site-tile.is-active .fp-site-check {
  background: #3b82f6;
  border-color: #3b82f6;
}

button.fp-site-tile.is-active .fp-site-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fp-site-brand {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.fp-site-tile[data-site="google"] .fp-site-brand { color: #4285f4; }
.fp-site-tile[data-site="facebook"] .fp-site-brand { color: #1877f2; }
.fp-site-tile[data-site="youtube"] .fp-site-brand { color: #ff0000; }
.fp-site-tile[data-site="instagram"] .fp-site-brand { color: #e4405f; }
.fp-site-tile[data-site="x"] .fp-site-brand { color: #0f1419; }
.fp-site-tile[data-site="tiktok"] .fp-site-brand { color: #010101; }

.fp-site-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .fp-pc-site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fp-pc-run {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(var(--bs-secondary-rgb, 13, 110, 253), 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fp-pc-run:hover:not(:disabled) {
  transform: translateY(-1px);
}

.fp-pc-run:disabled { opacity: 0.75; }

.fp-pc-results {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.fp-pc-results-head .fp-pc-avg {
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: #344054;
}

.fp-pc-results-head .fp-pc-avg strong { color: #039855; }

/* Accordion list */
.fp-pc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-pc-row {
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.fp-pc-row.is-open {
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.fp-pc-row.is-fail {
  border-color: #fecdca;
}

.fp-pc-row-head {
  display: grid;
  grid-template-columns: 28px 52px minmax(120px, 1.2fr) minmax(100px, 1fr) minmax(140px, 1.2fr) 100px 72px 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.fp-pc-row-head:hover {
  background: #fcfcfd;
}

.fp-pc-chevron {
  color: #667085;
  transition: transform 0.2s ease;
  font-size: 18px;
}

.fp-pc-row.is-open .fp-pc-chevron {
  transform: rotate(90deg);
}

.fp-pc-score {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.fp-pc-score.good { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.fp-pc-score.mid { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.fp-pc-score.low { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.fp-pc-score.none { background: #f2f4f7; color: #667085; border: 1px solid #eaecf0; }

.fp-pc-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #101828;
  word-break: break-all;
}

.fp-pc-ip-sub {
  font-size: 11px;
  color: #667085;
  margin-top: 2px;
}

.fp-pc-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-pc-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.fp-pc-loc-text {
  font-size: 13px;
  color: #344054;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-pc-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fp-pc-type.residential { background: #fff6ed; color: #c4320a; }
.fp-pc-type.mobile { background: #ecfdf3; color: #027a48; }
.fp-pc-type.datacenter { background: #eff8ff; color: #175cd3; }
.fp-pc-type.unknown { background: #f2f4f7; color: #667085; }

.fp-pc-ratio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.fp-pc-ratio.ok { background: #ecfdf3; color: #027a48; }
.fp-pc-ratio.partial { background: #fffaeb; color: #b54708; }
.fp-pc-ratio.fail { background: #fef3f2; color: #b42318; }
.fp-pc-ratio.neutral { background: #f2f4f7; color: #667085; }

/* Expanded detail panel */
.fp-pc-detail {
  display: none;
  border-top: 1px solid #f2f4f7;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 18px 20px 20px;
}

.fp-pc-row.is-open .fp-pc-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fp-pc-detail-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 16px;
  min-height: 140px;
}

.fp-pc-detail-title {
  font-size: 12px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.fp-pc-detail-title span {
  color: #039855;
  font-weight: 800;
}

.fp-pc-protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.fp-pc-protocol-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}

.fp-pc-latency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 13px;
  font-weight: 700;
}

.fp-pc-trust {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fp-pc-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.fp-pc-trust-icon.clean { background: #ecfdf3; color: #027a48; }
.fp-pc-trust-icon.warn { background: #fffaeb; color: #b54708; }
.fp-pc-trust-icon.bad { background: #fef3f2; color: #b42318; }

.fp-pc-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 4px;
}

.fp-pc-trust-sub {
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
}

.fp-pc-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.fp-pc-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid #eaecf0;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #344054;
  text-align: center;
}

.fp-pc-service iconify-icon {
  font-size: 22px;
}

.fp-pc-service-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.fp-pc-service.ok .fp-pc-service-dot { background: #12b76a; }
.fp-pc-service.fail .fp-pc-service-dot { background: #f04438; }

.fp-pc-service.fail {
  opacity: 0.72;
  background: #fef3f2;
}

.fp-pc-empty-sites {
  font-size: 13px;
  color: #667085;
}

@media (max-width: 1100px) {
  .fp-pc-row-head {
    grid-template-columns: 24px 48px 1fr 1fr;
    grid-template-areas:
      "chev score proxy exit"
      ". . loc type"
      ". . sites sites";
  }
  .fp-pc-row-head > :nth-child(1) { grid-area: chev; }
  .fp-pc-row-head > :nth-child(2) { grid-area: score; }
  .fp-pc-row-head > :nth-child(3) { grid-area: proxy; }
  .fp-pc-row-head > :nth-child(4) { grid-area: exit; }
  .fp-pc-row-head > :nth-child(5) { grid-area: loc; }
  .fp-pc-row-head > :nth-child(6) { grid-area: type; }
  .fp-pc-row-head > :nth-child(7),
  .fp-pc-row-head > :nth-child(8) { display: none; }
  .fp-pc-row.is-open .fp-pc-detail {
    grid-template-columns: 1fr;
  }
}
