/* Domain Scanner — admin styles */
.ds-wrap h1 { margin-bottom: 16px; }
.ds-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 24px; }
.ds-stat { background: #fff; border: 1px solid #dcdcde; padding: 16px 20px; border-radius: 6px; min-width: 140px; text-align: center; }
.ds-stat h2 { font-size: 36px; margin: 0 0 4px; line-height: 1; }
.ds-stat p  { margin: 0; color: #646970; font-size: 13px; }

.ds-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.ds-pending    { background: #fff7dc; color: #8a6d00; }
.ds-processing { background: #ddeafc; color: #1f4e9a; }
.ds-completed  { background: #d9f2df; color: #1b6930; }
.ds-failed     { background: #fbd5d5; color: #9b2626; }

.ds-loglevel { padding: 1px 8px; border-radius: 8px; font-size: 11px; }
.ds-loglevel.ds-info    { background: #e1f0fa; color: #13577d; }
.ds-loglevel.ds-warning { background: #fff7dc; color: #8a6d00; }
.ds-loglevel.ds-error   { background: #fbd5d5; color: #9b2626; }

/* Frontend report styles also live here for simplicity. */
.ds-report { font-family: inherit; margin-top: 24px; }
.ds-report .ds-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.ds-report .ds-table th, .ds-report .ds-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.ds-report .ds-table th { width: 200px; background: #f7f7f7; font-weight: 600; color: #333; }

.ds-score-block { padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.ds-score-block .ds-score { font-size: 48px; font-weight: 800; line-height: 1; }
.ds-score-block .ds-score span { font-size: 18px; font-weight: 400; opacity: .7; }
.ds-score-block .ds-verdict-label { font-size: 18px; }
.ds-score-block .ds-meta { margin-left: auto; font-size: 12px; opacity: .7; }
.ds-score-block.ds-safe       { background: #e3f5ec; color: #165a32; }
.ds-score-block.ds-suspicious { background: #fff3cf; color: #7a5a00; }
.ds-score-block.ds-malicious  { background: #fbd5d5; color: #8a1313; }
.ds-score-block.ds-unknown    { background: #eee; color: #555; }

/* ---- AbuseIPDB rich block (frontend report) ---- */
.ds-abuse-block { border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin: 8px 0 22px; background: #fafbfc; }
.ds-abuse-good  { border-color: #b8e3c6; background: #f1faf3; }
.ds-abuse-warn  { border-color: #f4d99a; background: #fff8e6; }
.ds-abuse-bad   { border-color: #f3b3b3; background: #fdf0f0; }
.ds-abuse-bar   { position: relative; height: 22px; background: #e9ecef; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.ds-abuse-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #14a370, #f59e0b 50%, #d63333); border-radius: 12px 0 0 12px; transition: width .4s ease; }
.ds-abuse-good .ds-abuse-bar-fill { background: #14a370; }
.ds-abuse-warn .ds-abuse-bar-fill { background: #f59e0b; }
.ds-abuse-bad  .ds-abuse-bar-fill { background: #d63333; }
.ds-abuse-bar-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #1a1a1a; mix-blend-mode: normal; }
.ds-abuse-meta { margin-bottom: 10px; }
.ds-abuse-meta th { width: 180px; }
.ds-abuse-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ds-abuse-cat { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.ds-abuse-cat sup { font-size: 10px; font-weight: 500; opacity: .8; }
.ds-abuse-cat-bad  { background: #fce4e4; color: #8a1313; }
.ds-abuse-cat-warn { background: #fff1d0; color: #7a5a00; }
.ds-abuse-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.ds-abuse-tag-good { background: #d9f2df; color: #1b6930; }
.ds-abuse-tag-bad  { background: #fbd5d5; color: #9b2626; }
.ds-mt { margin-top: 12px; }
.ds-small { color: #6b7280; font-size: 13px; }

.ds-kw { display: inline-block; background: #f2f2f2; padding: 4px 10px; margin: 2px; border-radius: 12px; font-size: 13px; }
.ds-subs { columns: 2; font-size: 13px; }
.ds-footer-note { font-size: 12px; color: #888; margin-top: 24px; border-top: 1px solid #eee; padding-top: 12px; }

/* ============================================================
   Domain Scanner — Settings page (branded redesign)
   ============================================================ */
.ds-settings { max-width: 1080px; }
.ds-settings .ds-settings-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: linear-gradient(135deg, #1f2a44 0%, #2c3e6e 60%, #3b56a4 100%);
	color: #fff;
	border-radius: 14px;
	padding: 26px 30px;
	margin: 16px 0 22px;
	box-shadow: 0 6px 20px rgba(31, 42, 68, .15);
}
.ds-settings-hero-text h1 { color: #fff; font-size: 24px; margin: 0 0 6px; padding: 0; }
.ds-settings-hero-text p  { margin: 0; opacity: .85; max-width: 560px; line-height: 1.55; }
.ds-settings-hero-stats { display: flex; gap: 12px; }
.ds-stat-pill {
	background: rgba(255, 255, 255, .14);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	padding: 12px 18px;
	min-width: 120px;
	text-align: center;
}
.ds-stat-pill strong { display: block; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.ds-stat-pill span   { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }
.ds-stat-pill-soft   { background: rgba(255, 255, 255, .08); }

.ds-card {
	background: #fff;
	border: 1px solid #e2e4ea;
	border-radius: 12px;
	padding: 24px 26px;
	margin-bottom: 18px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}
.ds-card-head { margin-bottom: 18px; }
.ds-card-head h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	margin: 0 0 4px;
	color: #1f2a44;
}
.ds-card-sub { margin: 0; color: #6b7280; font-size: 13px; }
.ds-card-icon {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: #3b56a4;
	font-size: 14px;
}
.ds-card-icon::before { font-family: dashicons; font-weight: 400; line-height: 1; }
.ds-icon-key::before   { content: "\f112"; }   /* network */
.ds-icon-bolt::before  { content: "\f469"; }   /* update  */
.ds-icon-spark::before { content: "\f339"; }   /* lightbulb */

/* Provider cards */
.ds-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 920px) { .ds-providers { grid-template-columns: 1fr; } }

.ds-provider {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 18px;
	background: #fcfdff;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ds-provider:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(67, 87, 164, .08); }
.ds-provider-set     { border-color: #b8e3c6; background: #f4faf6; }
.ds-provider-missing { border-color: #f4d99a; background: #fffaef; }
.ds-provider-nokey   { border-color: #c7d2fe; background: #f5f7ff; }
.ds-provider-optional{ background: #fcfdff; }

.ds-provider-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.ds-provider-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ds-provider-title h3 { font-size: 15px; margin: 0; color: #111827; }
.ds-provider-link {
	font-size: 12px;
	font-weight: 600;
	color: #3b56a4;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}
.ds-provider-link:hover { text-decoration: underline; }
.ds-provider-why  { color: #4b5563; font-size: 13px; line-height: 1.5; margin: 4px 0 8px; }
.ds-provider-tier {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #4b5563;
	font-size: 12px;
	margin: 0 0 10px;
	padding: 8px 10px;
	background: rgba(255, 255, 255, .6);
	border: 1px dashed #d4d8e1;
	border-radius: 8px;
}
.ds-mini-icon { width: 14px; height: 14px; display: inline-flex; }
.ds-mini-icon::before { font-family: dashicons; font-size: 14px; line-height: 1; color: #6b7280; }
.ds-icon-gift::before { content: "\f339"; }

.ds-provider-input { display: flex; gap: 8px; }
.ds-provider-input input[type="password"],
.ds-provider-input input[type="text"] {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	background: #fff;
}
.ds-provider-input input:focus { border-color: #3b56a4; outline: none; box-shadow: 0 0 0 3px rgba(59, 86, 164, .15); }
.ds-toggle-visibility { white-space: nowrap; }

/* Tags / pills */
.ds-tag {
	background: #eef2ff;
	color: #3b56a4;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2px;
}
.ds-tier {
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2px;
}
.ds-tier-required { background: #fde7e7; color: #9b2626; }
.ds-tier-nokey    { background: #e0f2fe; color: #155e75; }
.ds-tier-optional { background: #f3f4f6; color: #4b5563; }

.ds-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}
.ds-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.ds-pill-good { background: #d9f2df; color: #1b6930; }
.ds-pill-warn { background: #fff1d0; color: #8a6d00; }
.ds-pill-info { background: #dbeafe; color: #1e40af; }
.ds-pill-mute { background: #f3f4f6; color: #6b7280; }

/* Automation grid */
.ds-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}
@media (max-width: 920px) { .ds-grid { grid-template-columns: 1fr; } }
.ds-field { display: flex; flex-direction: column; }
.ds-field-full { grid-column: 1 / -1; }
.ds-field label {
	font-weight: 600;
	color: #1f2937;
	font-size: 13px;
	margin-bottom: 6px;
}
.ds-field input[type="text"],
.ds-field input[type="number"],
.ds-field select {
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	max-width: 320px;
}
.ds-field input:focus,
.ds-field select:focus { border-color: #3b56a4; outline: none; box-shadow: 0 0 0 3px rgba(59, 86, 164, .15); }
.ds-help { color: #6b7280; font-size: 12px; margin: 6px 0 0; line-height: 1.5; }

.ds-toggle-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #1f2937;
	font-size: 13px;
	cursor: pointer;
}

.ds-settings-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 0 4px;
	border-top: 1px solid #e5e7eb;
	margin-top: 6px;
}
.ds-settings-actions .button-hero { padding: 8px 22px; font-size: 14px; height: auto; }
