.divi-powers-admin {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 20px 20px 0 0;
}

.divi-powers-admin *,
.divi-powers-admin *::before,
.divi-powers-admin *::after {
  box-sizing: border-box;
}

.divi-powers-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 34px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #251454, #6d35e8 58%, #a04bff);
  box-shadow: 0 18px 50px rgba(54, 31, 118, 0.25);
}

.divi-powers-hero h1 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: 38px;
  line-height: 1.1;
}

.divi-powers-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.divi-powers-eyebrow {
  color: #d8c8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.divi-powers-version {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.divi-powers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 22px;
}

.divi-powers-panel {
  padding: 26px;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 35, 48, 0.06);
}

.divi-powers-panel-header {
  margin-bottom: 22px;
}

.divi-powers-panel-header h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.divi-powers-panel-header p {
  margin: 0;
  color: #667085;
}

.divi-powers-autosave-status {
  display: inline-flex;
  min-height: 20px;
  margin-top: 10px;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
}

.divi-powers-autosave-status[data-state="saving"] {
  color: #6d3df5;
}

.divi-powers-autosave-status[data-state="saved"] {
  color: #16803c;
}

.divi-powers-autosave-status[data-state="error"] {
  color: #b32d2e;
}

.divi-powers-panel.is-divi-powers-saving .divi-powers-switch {
  opacity: .72;
}

.divi-powers-feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #ded8ef;
  border-radius: 14px;
  background: #faf8ff;
  cursor: pointer;
}

.divi-powers-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  color: #fff;
  background: #6d35e8;
  font-size: 29px;
  font-weight: 500;
}

.divi-powers-feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.divi-powers-feature-copy strong {
  font-size: 15px;
}

.divi-powers-feature-copy small {
  color: #667085;
  font-size: 13px;
}

.divi-powers-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.divi-powers-switch input {
  position: absolute;
  opacity: 0;
}

.divi-powers-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8cbd1;
  transition: background-color 150ms ease;
}

.divi-powers-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}

.divi-powers-switch input:checked + span {
  background: #6d35e8;
}

.divi-powers-switch input:checked + span::after {
  transform: translateX(20px);
}

.divi-powers-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f3;
}

.divi-powers-status-row strong {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.divi-powers-status-row .is-ready {
  color: #067647;
  background: #ecfdf3;
}

.divi-powers-status-row .is-not-ready {
  color: #b42318;
  background: #fef3f2;
}

.divi-powers-next-step {
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  background: #f4f0ff;
}

.divi-powers-next-step p {
  margin: 5px 0 0;
  color: #5f5474;
}

@media (max-width: 900px) {
  .divi-powers-layout {
    grid-template-columns: 1fr;
  }
}

.divi-powers-feature-card + .divi-powers-feature-card {
  margin-top: 14px;
}

/* Lite / Pro split additions. */
.dp-feature-edition {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba( 111, 61, 245, 0.1 );
	color: #6f3df5;
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.08em;
	vertical-align: 2px;
}
.divi-powers-product-home__cards article.is-pro-card {
	background: linear-gradient(145deg, #fbf9ff 0%, #f4efff 100%);
	border-color: #d7c8ff;
}
.dp-upgrade-page {
	--dp-ink: #171523;
	--dp-muted: #6e687c;
	max-width: none;
	margin: 0 20px 0 0;
}
.dp-upgrade-page__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 42px 48px;
	border-radius: 22px;
	background: linear-gradient(135deg, #17122f 0%, #392078 54%, #3157f4 100%);
	box-shadow: 0 24px 70px rgba(34, 25, 73, 0.2);
	color: #fff;
}
.dp-upgrade-page__hero > div { max-width: 880px; }
.dp-upgrade-page__hero span {
	display: block;
	margin-bottom: 16px;
	color: #c9b8ff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
}
.dp-upgrade-page__hero h1 {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(32px, 4vw, 58px);
	line-height: 1.04;
}
.dp-upgrade-page__hero p {
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 18px;
	line-height: 1.6;
}
.dp-upgrade-page__hero .button {
	flex: 0 0 auto;
	border: 0;
	background: #fff;
	color: #3b24a8;
	font-weight: 700;
}
.dp-upgrade-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
}
.dp-upgrade-grid article {
	padding: 28px;
	border: 1px solid #e4dff0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(32, 25, 60, .06);
}
.dp-upgrade-grid article > span {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #eee7ff;
	color: #6f3df5;
	font-weight: 800;
}
.dp-upgrade-grid h2 { margin: 18px 0 10px; color: var(--dp-ink); }
.dp-upgrade-grid p { margin: 0; color: var(--dp-muted); line-height: 1.65; }
@media (max-width: 1100px) {
	.dp-upgrade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.dp-upgrade-page { margin-right: 10px; }
	.dp-upgrade-page__hero { align-items: flex-start; flex-direction: column; padding: 32px 26px; }
	.dp-upgrade-grid { grid-template-columns: 1fr; }
}


.divi-powers-product-home__cards article.is-beta-card {
  border-color: #c9b8ff;
  background: linear-gradient(145deg, #ffffff 0%, #f3f0ff 100%);
}

@media (max-width: 782px) {
  .divi-powers-admin {
    margin-right: 10px;
  }
}


/* Permanent Lite / Plus / Pro feature indicators. */
.dp-edition-highlight {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.3fr) auto;
	gap: 24px;
	align-items: center;
	padding: 24px 26px;
	margin: 24px 0;
	border: 1px solid #dcd7e8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 20, 58, .06);
}

.dp-edition-highlight--plus {
	border-color: #c9b8ff;
	background: linear-gradient(135deg, #fff 0%, #f3f0ff 100%);
	box-shadow: 7px 7px 0 rgba(108, 62, 232, .18);
}

.dp-edition-highlight--pro {
	border-color: #373f7c;
	background: linear-gradient(135deg, #11162e 0%, #26327c 100%);
	color: #fff;
	box-shadow: 8px 8px 0 rgba(49, 87, 244, .24);
}

.dp-edition-highlight__copy > span {
	display: block;
	margin-bottom: 6px;
	color: #6c3ee8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .13em;
}

.dp-edition-highlight--pro .dp-edition-highlight__copy > span {
	color: #aebcff;
}

.dp-edition-highlight h2 {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
}

.dp-edition-highlight--pro h2 {
	color: #fff;
}

.dp-edition-highlight p {
	margin: 0;
	color: #6d6879;
	line-height: 1.55;
}

.dp-edition-highlight--pro p {
	color: rgba(255, 255, 255, .76);
}

.dp-edition-highlight__features {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.dp-edition-highlight__features strong {
	display: inline-flex;
	padding: 7px 10px;
	border: 1px solid #d7cdf5;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	color: #5033a6;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.dp-edition-highlight--pro .dp-edition-highlight__features strong {
	border-color: rgba(255, 255, 255, .20);
	background: rgba(255, 255, 255, .10);
	color: #fff;
}

.dp-dashboard-card__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.dp-dashboard-card__number {
	display: grid !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	place-items: center;
	border-radius: 10px !important;
}

.dp-tier-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 8px;
	border-radius: 999px;
	font-size: 9px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1;
}

.dp-tier-badge--lite {
	background: #eef3ff;
	color: #3157f4;
}

.dp-tier-badge--plus,
.dp-feature-edition--plus {
	background: #6c3ee8;
	color: #fff;
}

.dp-tier-badge--pro,
.dp-feature-edition--pro {
	background: #11162e;
	color: #fff;
}

.divi-powers-feature-card--plus {
	border-color: #c9b8ff;
	background: linear-gradient(135deg, #fff 0%, #f5f1ff 100%);
	box-shadow: inset 4px 0 0 #6c3ee8;
}

.divi-powers-feature-card--plus .divi-powers-feature-icon {
	background: #6c3ee8;
}

.divi-powers-feature-card--pro {
	border-color: #bdc7ff;
	background: linear-gradient(135deg, #fff 0%, #eef3ff 100%);
	box-shadow: inset 4px 0 0 #3157f4;
}

.divi-powers-feature-card--pro .divi-powers-feature-icon {
	background: #3157f4;
}

@media (max-width: 1100px) {
	.dp-edition-highlight {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.dp-edition-highlight > .button {
		justify-self: start;
	}
}

@media (max-width: 782px) {
	.dp-edition-highlight {
		padding: 22px;
	}

	.dp-edition-highlight__features strong {
		white-space: normal;
	}
}


/*
 * Shared notice area for all Lite, Plus, and Pro admin workspaces.
 * The companion script moves WordPress and third-party global notices here
 * after core or another plugin attempts to place them inside a visual hero.
 */
.divi-powers-admin-notices {
	box-sizing: border-box;
	display: grid;
	gap: 12px;
	width: 100%;
	margin: 0 0 18px;
}

.divi-powers-admin-notices[hidden] {
	display: none !important;
}

.divi-powers-admin-notices > .notice,
.divi-powers-admin-notices > .updated,
.divi-powers-admin-notices > .error,
.divi-powers-admin-notices > .update-nag {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	color: #1d2327 !important;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 16px rgba(29, 35, 39, .07);
}

.divi-powers-admin-notices > .notice-success,
.divi-powers-admin-notices > .updated {
	background: #edfaef;
}

.divi-powers-admin-notices > .notice-warning,
.divi-powers-admin-notices > .update-nag {
	background: #fff8e5;
}

.divi-powers-admin-notices > .notice-error,
.divi-powers-admin-notices > .error {
	background: #fcf0f1;
}

.divi-powers-admin-notices > .notice-info {
	background: #f0f6fc;
}

.divi-powers-admin-notices > * p,
.divi-powers-admin-notices > * li,
.divi-powers-admin-notices > * div,
.divi-powers-admin-notices > * span,
.divi-powers-admin-notices > * strong,
.divi-powers-admin-notices > * em,
.divi-powers-admin-notices > * mark {
	color: #1d2327 !important;
	text-shadow: none !important;
}

.divi-powers-admin-notices > * mark {
	padding: 1px 4px;
	background: #f0f0f1 !important;
}

.divi-powers-admin-notices > * a {
	color: #b32d2e !important;
	text-decoration: underline;
}

.divi-powers-admin-notices > * .notice-dismiss::before {
	color: #50575e !important;
}


