.adqiro-admin {
  max-width: 1180px;
  margin-top: 20px;
  color: #172033;
}

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

.adqiro-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.adqiro-admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adqiro-admin-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.adqiro-admin-brand h1 {
  margin: 0 0 4px;
  padding: 0;
  font-size: 22px;
  line-height: 1.2;
}

.adqiro-admin-brand p,
.adqiro-card-head p,
.adqiro-row p,
.adqiro-cache-note p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.adqiro-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adqiro-plan {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.adqiro-plan.is-pro {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.adqiro-admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.adqiro-sidebar {
  position: sticky;
  top: 46px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.adqiro-sidebar a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}

.adqiro-sidebar a:hover,
.adqiro-sidebar a.is-active {
  background: #f1f5f9;
  color: #0f172a;
}

.adqiro-sidebar .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.adqiro-admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.adqiro-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.adqiro-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.adqiro-eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adqiro-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.adqiro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid #edf2f7;
}

.adqiro-row strong,
.adqiro-cache-note strong {
  display: block;
  margin-bottom: 4px;
}

.adqiro-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.adqiro-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.adqiro-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: .18s ease;
}

.adqiro-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.adqiro-switch input:checked + span {
  background: #2563eb;
}

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

.adqiro-switch input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.adqiro-fields {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.adqiro-fields label {
  display: grid;
  gap: 6px;
}

.adqiro-fields label > span {
  font-weight: 600;
}

.adqiro-fields input[type="text"],
.adqiro-fields textarea {
  width: 100%;
  max-width: none;
  border-color: #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
}

.adqiro-fields textarea {
  min-height: 96px;
  resize: vertical;
}

.adqiro-fields small {
  color: #64748b;
}

.adqiro-free-preview {
  padding: 0 22px 18px;
}

.adqiro-preview-window {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.adqiro-preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff1f2;
}

.adqiro-preview-window div {
  display: grid;
  gap: 7px;
  align-content: center;
}

.adqiro-preview-window div i,
.adqiro-preview-window div b,
.adqiro-preview-row,
.adqiro-preview-button {
  display: block;
  border-radius: 999px;
  background: #cbd5e1;
}

.adqiro-preview-window div i { width: 58%; height: 10px; }
.adqiro-preview-window div b { width: 84%; height: 7px; background: #e2e8f0; }
.adqiro-preview-row { grid-column: 1 / -1; height: 38px; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; }
.adqiro-preview-button { grid-column: 1 / -1; height: 38px; background: #ef3340; border-radius: 10px; }


/* Prominent but non-blocking Pro upsell / subscription card. */
.adqiro-pro-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(129, 140, 248, .24), transparent 30%),
    linear-gradient(135deg, #111827 0%, #172554 56%, #312e81 100%);
  color: #ffffff;
}

.adqiro-pro-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  pointer-events: none;
}

.adqiro-pro-hero.is-active {
  background:
    radial-gradient(circle at 92% 12%, rgba(52, 211, 153, .17), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #123c35 58%, #064e3b 100%);
}

.adqiro-pro-hero-copy,
.adqiro-pro-hero-side {
  position: relative;
  z-index: 1;
}

.adqiro-pro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.adqiro-pro-hero.is-active .adqiro-pro-kicker {
  color: #a7f3d0;
}

.adqiro-pro-kicker .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.adqiro-pro-hero h2 {
  max-width: 760px;
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.adqiro-pro-hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.adqiro-pro-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.adqiro-pro-feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
}

.adqiro-pro-feature > .dashicons {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .10);
  color: #e0e7ff;
  font-size: 18px;
}

.adqiro-pro-feature strong {
  display: block;
  margin: 0 0 3px;
  color: #ffffff;
  font-size: 13px;
}

.adqiro-pro-feature small {
  display: block;
  color: #b8c4d6;
  font-size: 11.5px;
  line-height: 1.4;
}

.adqiro-pro-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.adqiro-pro-orbit {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px;
  background: rgba(255, 255, 255, .07);
}

.adqiro-pro-orbit img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
}

.adqiro-pro-orbit span {
  position: absolute;
  right: -8px;
  bottom: -8px;
  padding: 6px 8px;
  border: 2px solid #172554;
  border-radius: 999px;
  background: #fbbf24;
  color: #422006;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.adqiro-pro-hero.is-active .adqiro-pro-orbit span {
  border-color: #123c35;
  background: #34d399;
  color: #022c22;
}

.adqiro-pro-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  background: #ffffff;
  color: #172554;
  font-weight: 700;
  text-decoration: none;
}

.adqiro-pro-cta:hover,
.adqiro-pro-cta:focus {
  background: #eef2ff;
  color: #172554;
}

.adqiro-pro-cta .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.adqiro-pro-note {
  margin: 0;
  color: #aebbd0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.adqiro-cache-note {
  padding: 16px 20px;
  background: #fffbeb;
  border-color: #fde68a;
}

.adqiro-savebar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.adqiro-savebar > span {
  margin-right: auto;
  color: #64748b;
}

@media (max-width: 900px) {
  .adqiro-pro-hero {
    grid-template-columns: 1fr;
  }
  .adqiro-pro-hero-side {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .adqiro-pro-orbit {
    grid-row: 1 / 3;
    width: 92px;
    height: 92px;
  }
  .adqiro-pro-orbit img {
    width: 60px;
    height: 60px;
  }
  .adqiro-admin-layout {
    grid-template-columns: 1fr;
  }
  .adqiro-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 650px) {
  .adqiro-pro-hero {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .adqiro-pro-hero h2 {
    font-size: 21px;
  }
  .adqiro-pro-feature-grid {
    grid-template-columns: 1fr;
  }
  .adqiro-pro-hero-side {
    display: flex;
  }
  .adqiro-pro-orbit {
    width: 84px;
    height: 84px;
  }
  .adqiro-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .adqiro-admin-actions {
    width: 100%;
    justify-content: space-between;
  }
  .adqiro-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 16px;
  }
  .adqiro-card-head,
  .adqiro-fields,
  .adqiro-free-preview {
    padding-left: 16px;
    padding-right: 16px;
  }
}
