.security-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #7f1d1d 100%); color: #fff; }
.security-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.security-stats a { min-width: 0; }
.security-rules p { margin: 8px 0; }
.security-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.security-filter label { display: grid; gap: 6px; font-weight: 800; color: #374151; }
.security-filter input, .security-filter select { min-height: 44px; border: 1px solid #d1d5db; border-radius: 14px; padding: 8px 12px; background: #fff; }
.security-filter button, .dash-btn { min-height: 42px; border: 0; border-radius: 999px; padding: 9px 16px; background: #111827; color: #fff; font-weight: 900; text-decoration: none; cursor: pointer; }
.security-ip-list { display: grid; gap: 14px; }
.security-ip-card { border: 1px solid #e5e7eb; border-left: 7px solid #cbd5e1; border-radius: 22px; background: #fff; padding: 16px; display: grid; gap: 14px; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.security-ip-card--suspicious { border-left-color: #f59e0b; background: linear-gradient(90deg, rgba(245, 158, 11, .08), #fff 32%); }
.security-ip-card--blocked { border-left-color: #dc2626; background: linear-gradient(90deg, rgba(220, 38, 38, .08), #fff 32%); }
.security-ip-card--whitelisted { border-left-color: #16a34a; background: linear-gradient(90deg, rgba(22, 163, 74, .08), #fff 32%); }
.security-ip-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.security-ip-card__top strong { display: block; font-size: 20px; line-height: 1.2; color: #111827; word-break: break-all; }
.security-ip-card__top time { color: #64748b; font-weight: 700; white-space: nowrap; }
.security-status { display: inline-flex; margin-top: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; background: #e2e8f0; color: #334155; }
.security-status--suspicious { background: #fef3c7; color: #92400e; }
.security-status--blocked { background: #fee2e2; color: #991b1b; }
.security-status--whitelisted { background: #dcfce7; color: #166534; }
.security-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.security-counters span { display: grid; gap: 2px; padding: 10px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.security-counters b { font-size: 22px; color: #111827; }
.security-counters small { color: #64748b; font-weight: 800; }
.security-ip-meta { display: grid; gap: 5px; color: #475569; }
.security-ip-meta p { margin: 0; }
.security-ip-meta details { border-top: 1px solid #e5e7eb; padding-top: 8px; }
.security-ip-meta summary { cursor: pointer; font-weight: 900; color: #1f2937; }
.security-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.security-actions form { margin: 0; }
.security-btn { min-height: 40px; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 900; cursor: pointer; }
.security-btn--danger { background: #991b1b; color: #fff; }
.security-btn--safe { background: #047857; color: #fff; }
.security-btn--light { background: #e5e7eb; color: #111827; }
.muted { color: #64748b; }
@media (max-width: 760px) {
    .security-filter { display: grid; }
    .security-filter label, .security-filter button, .security-filter .dash-btn { width: 100%; }
    .security-ip-card { border-radius: 18px; padding: 14px; }
    .security-ip-card__top { display: grid; }
    .security-ip-card__top time { white-space: normal; }
    .security-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .security-actions { display: grid; }
    .security-actions button { width: 100%; }
}
