.reportajads-admin {
	--rads-primary: #6b2fa0;
	--rads-primary-dark: #4b1d79;
	--rads-primary-soft: #f3ebfa;
	--rads-ink: #241b2e;
	--rads-muted: #706778;
	--rads-border: #e5ddeb;
	--rads-surface: #fff;
	--rads-success: #15966a;
	--rads-success-soft: #edfbf5;
	--rads-warning: #b7791f;
	--rads-warning-soft: #fff8e8;
	margin: 24px 20px 0 0;
	font-family: Tahoma, Arial, sans-serif;
	color: var(--rads-ink);
}

.reportajads-admin * {
	box-sizing: border-box;
}

.reportajads-shell {
	width: min(960px, calc(100% - 24px));
	margin: 28px auto 60px;
	border-radius: 22px;
	box-shadow: 0 22px 60px rgba(62, 31, 83, 0.13);
	overflow: hidden;
	background: var(--rads-surface);
}

.reportajads-hero {
	position: relative;
	min-height: 225px;
	padding: 38px 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(120deg, rgba(76, 27, 121, 0.98), rgba(112, 49, 160, 0.94)),
		linear-gradient(45deg, #55217f, #7c3cac);
}

.reportajads-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.12;
	background-image:
		linear-gradient(30deg, transparent 12%, #fff 12%, #fff 13%, transparent 13%),
		linear-gradient(150deg, transparent 12%, #fff 12%, #fff 13%, transparent 13%);
	background-size: 48px 48px;
	pointer-events: none;
}

.reportajads-hero__glow {
	position: absolute;
	border-radius: 999px;
	filter: blur(4px);
	background: rgba(255, 255, 255, 0.12);
}

.reportajads-hero__glow--one {
	width: 240px;
	height: 240px;
	inset: -115px auto auto -50px;
}

.reportajads-hero__glow--two {
	width: 180px;
	height: 180px;
	inset: auto 42% -125px auto;
}

.reportajads-brand,
.reportajads-help-link {
	position: relative;
	z-index: 1;
}

.reportajads-brand {
	display: flex;
	align-items: center;
	gap: 25px;
}

.reportajads-logo-wrap {
	width: 176px;
	height: 104px;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 30px rgba(32, 10, 49, 0.22);
}

.reportajads-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 76px;
	object-fit: contain;
}

.reportajads-eyebrow,
.reportajads-section-kicker {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.reportajads-eyebrow {
	color: #dec9ef;
}

.reportajads-brand-copy h1 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 27px;
	line-height: 1.35;
}

.reportajads-brand-copy p {
	max-width: 470px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	line-height: 1.9;
}

.reportajads-help-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.2s ease, transform 0.2s ease;
}

.reportajads-help-link:hover,
.reportajads-help-link:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.reportajads-help-link .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.reportajads-card {
	padding: 34px 44px 38px;
	background: #fff;
}

.reportajads-alert,
.reportajads-status {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	margin-bottom: 22px;
	border: 1px solid;
	border-radius: 13px;
}

.reportajads-alert strong,
.reportajads-status strong {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
}

.reportajads-alert p,
.reportajads-status p {
	margin: 0;
	font-size: 12px;
	line-height: 1.7;
	color: var(--rads-muted);
}

.reportajads-alert--success,
.reportajads-status--connected {
	border-color: #9ce4c8;
	background: var(--rads-success-soft);
}

.reportajads-alert--success > .dashicons,
.reportajads-status--connected > .dashicons,
.reportajads-status--connected strong {
	color: var(--rads-success);
}

.reportajads-status--waiting {
	border-color: #efd495;
	background: var(--rads-warning-soft);
}

.reportajads-status--waiting > .dashicons,
.reportajads-status--waiting strong {
	color: var(--rads-warning);
}

.reportajads-status__icon {
	margin-top: 2px;
}

.reportajads-form {
	margin-top: 28px;
}

.reportajads-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--rads-border);
}

.reportajads-section-kicker {
	color: var(--rads-primary);
}

.reportajads-section-heading h2 {
	margin: 0;
	font-size: 18px;
	color: var(--rads-ink);
}

.reportajads-section-heading > .dashicons {
	width: 38px;
	height: 38px;
	padding: 8px;
	border-radius: 10px;
	color: var(--rads-primary);
	background: var(--rads-primary-soft);
}

.reportajads-api-description-link {
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
}

.reportajads-api-description-link:hover,
.reportajads-api-description-link:focus {
	color: inherit;
	text-decoration: underline;
	outline: none;
}

.reportajads-fields {
	margin-top: 9px;
}

.reportajads-field {
	display: grid;
	grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1.3fr);
	align-items: center;
	gap: 28px;
	padding: 20px 2px;
	border-bottom: 1px solid #f0ebf3;
}

.reportajads-field label > span {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--rads-ink);
}

.reportajads-field label small {
	display: block;
	color: var(--rads-muted);
	font-size: 11px;
	line-height: 1.7;
}

.reportajads-control {
	position: relative;
}

.reportajads-control > .dashicons {
	position: absolute;
	z-index: 1;
	top: 50%;
	right: 14px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	color: #927ba5;
	pointer-events: none;
}

.reportajads-control input[type="text"],
.reportajads-control select {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 8px 46px 8px 14px;
	border: 1px solid #dcd1e4;
	border-radius: 11px;
	color: var(--rads-ink);
	background: #fcfbfd;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reportajads-control input[type="text"] {
	padding-right: 46px;
	padding-left: 14px;
	text-align: left;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

.reportajads-control input[type="text"]:focus,
.reportajads-control select:focus {
	border-color: var(--rads-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.11);
	outline: none;
}

.reportajads-control select {
	max-width: none;
	padding-left: 34px;
}

.reportajads-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
}

.reportajads-security-note {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--rads-muted);
	font-size: 11px;
}

.reportajads-security-note .dashicons {
	color: var(--rads-success);
	font-size: 17px;
	width: 17px;
	height: 17px;
}

.reportajads-submit {
	min-height: 46px;
	padding: 10px 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 11px;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	background: linear-gradient(135deg, var(--rads-primary), var(--rads-primary-dark));
	box-shadow: 0 9px 22px rgba(91, 36, 137, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reportajads-submit:hover,
.reportajads-submit:focus {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 27px rgba(91, 36, 137, 0.3);
	outline: none;
}

.reportajads-submit .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.reportajads-footer {
	padding: 14px 28px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--rads-border);
	color: #8d8295;
	font-size: 10px;
	background: #faf8fc;
}

@media (max-width: 900px) {
	.reportajads-admin {
		margin-right: 10px;
	}

	.reportajads-shell {
		width: calc(100% - 12px);
	}

	.reportajads-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.reportajads-help-link {
		align-self: flex-start;
	}
}

@media (max-width: 680px) {
	.reportajads-shell {
		margin-top: 14px;
		border-radius: 15px;
	}

	.reportajads-hero,
	.reportajads-card {
		padding: 26px 22px;
	}

	.reportajads-brand {
		align-items: flex-start;
		flex-direction: column;
	}

	.reportajads-logo-wrap {
		width: 150px;
		height: 86px;
	}

	.reportajads-field {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.reportajads-actions,
	.reportajads-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.reportajads-submit {
		width: 100%;
	}
}
