/* ── Port Scanner ─────────────────────────────────────────────────────── */
.ps-form .form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ps-form .input-wrap--domain { flex: 1; min-width: 200px; }
.ps-form .input-wrap--preset { width: 160px; }
.ps-form .input {
  width: 100%; height: 44px; padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 10px; color: var(--text);
  font-size: 15px; font-family: var(--mono);
  transition: border-color .2s, box-shadow .2s;
}
.ps-form select.input { font-size: 13px; cursor: pointer; }
.ps-form .input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,138,248,.3);
}
.ps-form .btn-primary {
  min-height: 44px; padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity .2s, transform .15s, filter .2s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.ps-form .btn-primary:hover { transform: scale(1.02); filter: brightness(1.1); }
.ps-form .btn-primary:active { transform: scale(0.98); }
.ps-form .btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.ps-error { color: var(--red); font-size: 14px; margin-top: 16px; }

/* Summary bar */
.ps-summary {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 16px 0 12px;
  padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 10px; font-size: 13px;
  animation: fadeInUp .3s ease-out;
}
.ps-summary__host { color: var(--muted); font-family: var(--mono); }
.ps-summary__host strong { color: var(--text); }
.ps-summary__ip { color: var(--muted); }
.ps-summary__count { color: var(--text); font-weight: 600; }
.ps-summary__count .ps-open-num { color: #4ade80; }
.ps-summary__time { color: var(--muted); margin-left: auto; }

/* Warning block */
.ps-warning {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; font-size: 13px; color: var(--text);
  animation: fadeInUp .3s ease-out;
}
.ps-warning__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ps-warning__title { font-weight: 600; color: #f87171; margin-bottom: 4px; font-size: 13px; }
.ps-warning__ports { color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* Table */
.ps-table-wrap {
  overflow-x: auto;
  animation: fadeInUp .4s ease-out;
}
.ps-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.ps-table th {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: .4px; font-size: 11px;
}
.ps-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: var(--mono); vertical-align: middle;
}
.ps-table tr:last-child td { border-bottom: none; }
.ps-table tr:hover td { background: rgba(255,255,255,.02); }

.ps-port { font-weight: 600; color: var(--text); }
.ps-service { color: var(--muted); }

.ps-status--open {
  color: #4ade80;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.ps-status--open::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
}
.ps-status--closed { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ps-status--closed::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border2, #444);
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .ps-form .form-row { flex-direction: column; }
  .ps-form .input-wrap--preset { width: 100%; }
  .ps-summary { gap: 10px; }
  .ps-summary__time { margin-left: 0; width: 100%; }
}
