.pdt-addons-wrap {
  --pdt-addon-text: #10213f;
  --pdt-addon-text-muted: #5f6f8f;
  --pdt-addon-border: #d9e2ef;
  --pdt-addon-surface: #ffffff;
  --pdt-addon-surface-soft: #f6f9ff;
  --pdt-addon-shadow: 0 16px 36px rgba(21, 38, 78, 0.08);
  --pdt-addon-shadow-hover: 0 20px 46px rgba(21, 38, 78, 0.14);
}

.pdt-addons-page-shell {
  margin-top: 6px;
}

.pdt-addons-page-shell > .pdt-addons-notice-stack {
  margin: 6px 0 18px;
}

.pdt-addons-page-shell > .pdt-addons-notice-stack:empty {
  display: none;
}

.pdt-addons-page-shell > .pdt-addons-notice-stack .notice,
.pdt-addons-page-shell > .pdt-addons-notice-stack .update-nag,
.pdt-addons-page-shell > .pdt-addons-notice-stack .error,
.pdt-addons-page-shell > .pdt-addons-notice-stack .updated {
  margin: 0 0 12px;
}

.pdt-addons-page-shell > .pdt-addons-notice-stack .notice:last-child,
.pdt-addons-page-shell > .pdt-addons-notice-stack .update-nag:last-child,
.pdt-addons-page-shell > .pdt-addons-notice-stack .error:last-child,
.pdt-addons-page-shell > .pdt-addons-notice-stack .updated:last-child {
  margin-bottom: 0;
}

.pdt-addons-wrap .pdt-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 28px 30px;
  margin: 6px 0 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(circle at bottom right, rgba(173, 211, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #1e2a57 0%, #3454f4 58%, #6b8cff 100%);
  box-shadow: 0 22px 54px rgba(39, 64, 151, 0.22);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.pdt-addons-wrap .pdt-page-header::after {
  content: "";
  position: absolute;
  inset: auto auto -44px -22px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.pdt-page-header__content,
.pdt-page-header__panel {
  position: relative;
  z-index: 1;
}

.pdt-page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdt-page-header__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.pdt-addons-wrap .pdt-page-header .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pdt-addons-wrap .pdt-page-header h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
}

.pdt-addons-wrap .pdt-page-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.65;
}

.pdt-addon-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.pdt-addon-summary__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.pdt-addon-summary__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pdt-addon-summary__label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.pdt-page-header__panel {
  align-self: end;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(6, 18, 53, 0.22);
  backdrop-filter: blur(14px);
}

.pdt-page-header__panel-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdt-page-header__panel h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.pdt-addons-wrap .pdt-page-header__panel p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.pdt-page-header__panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pdt-page-header__panel-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
}

.pdt-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.pdt-addon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--pdt-addon-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--pdt-addon-surface-soft) 100%);
  box-shadow: var(--pdt-addon-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pdt-addon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pdt-addon-shadow-hover);
  border-color: #c6d4ea;
}

.pdt-addon-card__accent {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #5c7cff 0%, #8ad2ff 100%);
}

.pdt-addon-card--core .pdt-addon-card__accent {
  background: linear-gradient(90deg, #1b5fe0 0%, #6ea8ff 100%);
}

.pdt-addon-card--active .pdt-addon-card__accent {
  background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
}

.pdt-addon-card--inactive .pdt-addon-card__accent {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
}

.pdt-addon-card--unavailable .pdt-addon-card__accent {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.pdt-addon-card.is-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pdt-addon-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pdt-addon-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #edf4ff 0%, #dce9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 92, 176, 0.08);
}

.pdt-addon-card--active .pdt-addon-card__icon {
  background: linear-gradient(180deg, #ecfdf3 0%, #dcfce7 100%);
}

.pdt-addon-card--inactive .pdt-addon-card__icon {
  background: linear-gradient(180deg, #f3f6fb 0%, #e7edf5 100%);
}

.pdt-addon-card--unavailable .pdt-addon-card__icon {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.pdt-addon-card__icon .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: #2949d6;
}

.pdt-addon-card--active .pdt-addon-card__icon .dashicons {
  color: #15803d;
}

.pdt-addon-card--inactive .pdt-addon-card__icon .dashicons {
  color: #64748b;
}

.pdt-addon-card--unavailable .pdt-addon-card__icon .dashicons {
  color: #b45309;
}

.pdt-addon-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.pdt-addon-meta__text {
  flex: 1 1 170px;
  min-width: 0;
}

.pdt-addon-meta h2 {
  margin: 0;
  color: var(--pdt-addon-text);
  font-size: 20px;
  line-height: 1.2;
}

.pdt-addon-card__note {
  margin: 8px 0 0;
  color: var(--pdt-addon-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.pdt-addon-card__description {
  margin: 18px 0 0;
  color: #43516d;
  font-size: 14px;
  line-height: 1.7;
}

.pdt-addon-card__warning {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}

.pdt-addon-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pdt-addon-fact {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #51607c;
  font-size: 12px;
  font-weight: 600;
}

.pdt-addon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.pdt-addon-actions form {
  margin: 0;
}

.pdt-addon-actions .button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
}

.pdt-addon-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pdt-addon-status-active {
  background: #eafaf0;
  color: #0d7a39;
}

.pdt-addon-status-inactive {
  background: #eef2f7;
  color: #526279;
}

.pdt-addon-status-unavailable {
  background: #fff1dc;
  color: #a16207;
}

.pdt-addon-status-core {
  background: #e8f1ff;
  color: #0a4ea3;
}

@media (max-width: 1100px) {
  .pdt-addons-wrap .pdt-page-header {
    grid-template-columns: 1fr;
  }

  .pdt-page-header__panel {
    align-self: stretch;
  }
}

@media (max-width: 782px) {
  .pdt-addons-wrap .pdt-page-header {
    padding: 22px 20px;
    margin-top: 10px;
    border-radius: 22px;
  }

  .pdt-addons-wrap .pdt-page-header h1 {
    font-size: 28px;
  }

  .pdt-addon-summary {
    grid-template-columns: 1fr;
  }

  .pdt-addons-grid {
    grid-template-columns: 1fr;
  }

  .pdt-addon-card {
    min-height: 0;
    padding: 20px;
  }

  .pdt-addon-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdt-addon-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pdt-addon-actions form,
  .pdt-addon-actions .button {
    width: 100%;
  }

  .pdt-addon-actions .button {
    justify-content: center;
  }

}
