/*
 * Nex Directory Free — shared wp-admin experience.
 *
 * Page templates retain their local component rules; this layer provides a
 * consistent shell, spacing rhythm, accessibility states and responsive polish.
 */

:root {
  --nex-admin-accent: #f35b22;
  --nex-admin-accent-strong: #d94713;
  --nex-admin-ink: #172033;
  --nex-admin-muted: #607087;
  --nex-admin-line: #dce3ec;
  --nex-admin-surface: #ffffff;
  --nex-admin-subtle: #f5f7fb;
  --nex-admin-success: #15803d;
  --nex-admin-warning: #b45309;
  --nex-admin-danger: #b42318;
  --nex-admin-radius-sm: 10px;
  --nex-admin-radius: 16px;
  --nex-admin-radius-lg: 22px;
  --nex-admin-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.05);
  --nex-admin-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

body[class*="nexdirectory"] #wpcontent {
  background:
    radial-gradient(circle at 92% 2%, rgba(243, 91, 34, 0.08), transparent 26rem),
    #f3f5f8;
}

.wp-admin .nexdirectory-admin-premium,
.wp-admin .nexdirectory-settings-premium,
.wp-admin .nexdirectory-metrics-page,
.wp-admin .nexdirectory-onboarding-page {
  box-sizing: border-box;
  max-width: 1480px;
  margin: 0;
  padding: 26px 24px 52px 2px;
  color: var(--nex-admin-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.wp-admin .nexdirectory-admin-premium *,
.wp-admin .nexdirectory-settings-premium *,
.wp-admin .nexdirectory-metrics-page *,
.wp-admin .nexdirectory-onboarding-page * {
  box-sizing: border-box;
}

.wp-admin .nexdirectory-admin-premium :is(h1, h2, h3, h4),
.wp-admin .nexdirectory-settings-premium :is(h1, h2, h3, h4) {
  color: var(--nex-admin-ink);
  letter-spacing: -0.018em;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 180px;
  margin: 0 0 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--nex-admin-radius-lg);
  background:
    radial-gradient(circle at 86% 10%, rgba(243, 91, 34, 0.34), transparent 19rem),
    radial-gradient(circle at 10% 110%, rgba(79, 70, 229, 0.28), transparent 25rem),
    linear-gradient(132deg, #101827 0%, #18243a 54%, #202d43 100%);
  box-shadow: var(--nex-admin-shadow);
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero::after,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero::after {
  position: absolute;
  z-index: -1;
  right: -62px;
  bottom: -88px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero :is(h1, h2, h3),
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero :is(h1, h2, h3) {
  color: #fff;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero h1,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero h1 {
  max-width: 850px;
  margin: 0 0 9px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 780;
  line-height: 1.12;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero p,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero p {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 15px;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero-kicker,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 183, 140, 0.34);
  border-radius: 999px;
  background: rgba(243, 91, 34, 0.14);
  color: #ffbf99;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-panel,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-panel {
  margin: 0 0 16px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--nex-admin-line);
  border-radius: var(--nex-admin-radius);
  background: var(--nex-admin-surface);
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-panel > h2,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-panel > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  padding: 0 0 13px;
  border-bottom: 1px solid #e8edf3;
  font-size: 18px;
  font-weight: 760;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-panel > h2 .dashicons,
.wp-admin .nexdirectory-settings-premium .nexdirectory-admin-panel > h2 .dashicons {
  color: var(--nex-admin-accent);
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 13px;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-stat-card {
  min-height: 118px;
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-stat-card:hover {
  border-color: rgba(243, 91, 34, 0.34);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-stat-label {
  margin: 0 0 8px;
  color: var(--nex-admin-muted);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.wp-admin .nexdirectory-admin-premium .nexdirectory-admin-stat-value {
  margin: 0;
  color: var(--nex-admin-ink);
  font-size: clamp(24px, 2.3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wp-admin .nexdirectory-admin-premium .button,
.wp-admin .nexdirectory-settings-premium .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 14px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #263349;
  font-weight: 680;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-admin .nexdirectory-admin-premium .button:hover,
.wp-admin .nexdirectory-settings-premium .button:hover {
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.wp-admin .nexdirectory-admin-premium .button-primary,
.wp-admin .nexdirectory-settings-premium .button-primary,
.wp-admin .nexdirectory-settings-premium #nexdirectory-settings-save-button {
  border-color: var(--nex-admin-accent-strong);
  background: var(--nex-admin-accent);
  color: #fff;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(217, 71, 19, 0.2);
}

.wp-admin .nexdirectory-admin-premium .button-primary:hover,
.wp-admin .nexdirectory-settings-premium .button-primary:hover,
.wp-admin .nexdirectory-settings-premium #nexdirectory-settings-save-button:hover {
  border-color: #bd3810;
  background: var(--nex-admin-accent-strong);
  color: #fff;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs.nav-tab-wrapper {
  position: sticky;
  z-index: 30;
  top: 32px;
  gap: 7px;
  margin: 0 0 15px;
  padding: 9px;
  border: 1px solid var(--nex-admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs .nav-tab {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #526178;
  box-shadow: none;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs .nav-tab:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #18243a;
  transform: none;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs .nav-tab.nav-tab-active {
  border-color: #fed7c6;
  background: #fff1eb;
  color: #bf3b12;
  box-shadow: none;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-sidebar {
  top: 96px;
  padding: 14px;
  border-color: var(--nex-admin-line);
  border-radius: var(--nex-admin-radius);
  background: #fff;
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-subtab {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #5b6a80;
  font-weight: 620;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-subtab:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #172033;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-subtab.is-active {
  border-color: #fed7c6;
  background: #fff1eb;
  color: #bf3b12;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-content,
.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-panel {
  min-width: 0;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-content-header {
  margin-bottom: 13px;
  padding: 18px 20px;
  border: 1px solid var(--nex-admin-line);
  border-radius: var(--nex-admin-radius);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-panel {
  border-color: var(--nex-admin-line);
  border-radius: var(--nex-admin-radius);
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-field {
  border-color: #e6ebf1;
  border-radius: 12px;
  background: #fff;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-field:hover {
  border-color: #cbd5e1;
}

.wp-admin .nexdirectory-admin-premium :is(input[type="text"], input[type="url"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], select, textarea),
.wp-admin .nexdirectory-settings-premium :is(input[type="text"], input[type="url"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], select, textarea) {
  min-height: 42px;
  border-color: #cbd5e1;
  border-radius: 10px;
  background-color: #fff;
  color: #172033;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.wp-admin .nexdirectory-admin-premium textarea,
.wp-admin .nexdirectory-settings-premium textarea {
  min-height: 96px;
}

.wp-admin .nexdirectory-admin-premium :is(input, select, textarea):focus,
.wp-admin .nexdirectory-settings-premium :is(input, select, textarea):focus {
  border-color: var(--nex-admin-accent);
  box-shadow: 0 0 0 3px rgba(243, 91, 34, 0.14);
  outline: 0;
}

.wp-admin .nexdirectory-admin-premium :is(a, button, input, select, textarea):focus-visible,
.wp-admin .nexdirectory-settings-premium :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.wp-admin .nexdirectory-admin-premium :is(table.wp-list-table, table.widefat),
.wp-admin .nexdirectory-settings-premium :is(table.wp-list-table, table.widefat) {
  overflow: hidden;
  border: 1px solid var(--nex-admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.wp-admin .nexdirectory-admin-premium :is(table.wp-list-table, table.widefat) thead th,
.wp-admin .nexdirectory-settings-premium :is(table.wp-list-table, table.widefat) thead th {
  padding-block: 12px;
  border-bottom-color: var(--nex-admin-line);
  background: #f6f8fb;
  color: #43526a;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wp-admin .nexdirectory-admin-premium :is(table.wp-list-table, table.widefat) td,
.wp-admin .nexdirectory-settings-premium :is(table.wp-list-table, table.widefat) td {
  padding-block: 13px;
  border-bottom-color: #edf1f5;
  vertical-align: middle;
}

.wp-admin .nexdirectory-admin-premium :is(.notice, .updated, .error),
.wp-admin .nexdirectory-settings-premium :is(.notice, .updated, .error) {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-width: 1px;
  border-radius: 11px;
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-sticky-save {
  right: 24px;
  bottom: 18px;
  left: auto;
  width: min(720px, calc(100vw - 210px - 54px));
  padding: 10px 12px;
  border: 1px solid var(--nex-admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-autosave-status {
  color: #59687d;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.wp-admin .nexdirectory-settings-premium .nexdirectory-settings-status-dot.is-dirty {
  background: var(--nex-admin-warning);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

.wp-admin .nexdirectory-upgrade-page {
  max-width: 1380px;
}

.wp-admin .nexdirectory-upgrade-page .nexdirectory-upgrade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.wp-admin .nexdirectory-upgrade-hero__copy {
  min-width: 0;
}

.wp-admin .nexdirectory-upgrade-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.wp-admin .nexdirectory-upgrade-hero__actions .button:not(.button-primary) {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wp-admin .nexdirectory-upgrade-hero__actions .button:not(.button-primary):hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.wp-admin .nexdirectory-upgrade-hero__note {
  margin: 13px 0 0;
  color: #aebbd0;
  font-size: 12px;
}

.wp-admin .nexdirectory-upgrade-status-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #e8edf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.wp-admin .nexdirectory-upgrade-status-card__eyebrow {
  color: #ffbf99;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.wp-admin .nexdirectory-upgrade-status-card > strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
}

.wp-admin .nexdirectory-upgrade-status-card__line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #d5deeb;
  font-size: 13px;
}

.wp-admin .nexdirectory-upgrade-status-card__line .dashicons {
  flex: 0 0 20px;
  color: #86efac;
}

.wp-admin .nexdirectory-upgrade-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.wp-admin .nexdirectory-upgrade-value-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--nex-admin-line);
  border-radius: var(--nex-admin-radius);
  background: #fff;
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-upgrade-value-grid article > .dashicons {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff1eb;
  color: var(--nex-admin-accent-strong);
  font-size: 21px;
}

.wp-admin .nexdirectory-upgrade-value-grid h2 {
  margin: 1px 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.wp-admin .nexdirectory-upgrade-value-grid p {
  margin: 0;
  color: var(--nex-admin-muted);
  font-size: 13px;
}

.wp-admin .nexdirectory-comparison-panel {
  padding: 0;
  overflow: hidden;
}

.wp-admin .nexdirectory-comparison-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--nex-admin-line);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.wp-admin .nexdirectory-comparison-heading h2,
.wp-admin .nexdirectory-upgrade-fit-panel h2,
.wp-admin .nexdirectory-upgrade-final-cta h2 {
  margin: 4px 0 8px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
}

.wp-admin .nexdirectory-comparison-heading p,
.wp-admin .nexdirectory-upgrade-fit-panel p,
.wp-admin .nexdirectory-upgrade-final-cta p {
  max-width: 780px;
  margin: 0;
  color: var(--nex-admin-muted);
}

.wp-admin .nexdirectory-comparison-eyebrow {
  color: var(--nex-admin-accent-strong);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.wp-admin .nexdirectory-comparison-current {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 720;
}

.wp-admin .nexdirectory-comparison-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
}

.wp-admin .nexdirectory-comparison-table-wrap:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: -3px;
}

.wp-admin .nexdirectory-comparison-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  box-shadow: none;
}

.wp-admin .nexdirectory-comparison-table thead th {
  padding: 17px 20px;
  border: 0;
  border-right: 1px solid #e7ecf2;
  border-bottom: 1px solid var(--nex-admin-line);
  background: #f7f9fc;
  color: #526178;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
  vertical-align: bottom;
}

.wp-admin .nexdirectory-comparison-table thead th:first-child {
  width: 24%;
}

.wp-admin .nexdirectory-comparison-table thead th:last-child {
  border-right: 0;
  background: #fff6f1;
}

.wp-admin .nexdirectory-comparison-plan-name {
  display: block;
  margin-bottom: 2px;
  color: var(--nex-admin-ink);
  font-size: 15px;
  font-weight: 780;
}

.wp-admin .nexdirectory-comparison-group {
  scroll-margin-top: 90px;
}

.wp-admin .nexdirectory-comparison-group th {
  padding: 17px 20px 12px;
  border: 0;
  border-bottom: 1px solid #e7ecf2;
  background: #eef2f7;
  color: var(--nex-admin-ink);
  text-align: left;
}

.wp-admin .nexdirectory-comparison-group strong {
  margin-right: 8px;
  font-size: 14px;
}

.wp-admin .nexdirectory-comparison-group span {
  color: #66758a;
  font-size: 12px;
  font-weight: 500;
}

.wp-admin .nexdirectory-comparison-feature {
  scroll-margin-top: 90px;
}

.wp-admin .nexdirectory-comparison-feature > th,
.wp-admin .nexdirectory-comparison-feature > td {
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid #e7ecf2;
  border-bottom: 1px solid #e7ecf2;
  background: #fff;
  vertical-align: top;
}

.wp-admin .nexdirectory-comparison-feature:target > th,
.wp-admin .nexdirectory-comparison-feature:target > td {
  background: #fff8f3;
  box-shadow: inset 0 2px 0 rgba(243, 91, 34, 0.32), inset 0 -2px 0 rgba(243, 91, 34, 0.32);
}

.wp-admin .nexdirectory-comparison-feature:target > th {
  box-shadow: inset 3px 0 0 var(--nex-admin-accent), inset 0 2px 0 rgba(243, 91, 34, 0.32), inset 0 -2px 0 rgba(243, 91, 34, 0.32);
}

.wp-admin .nexdirectory-comparison-feature > td:last-child {
  border-right: 0;
  background: #fffbf8;
}

.wp-admin .nexdirectory-comparison-feature:target > td:last-child {
  background: #fff8f3;
}

.wp-admin .nexdirectory-comparison-feature > th {
  color: #27354a;
  font-size: 14px;
  font-weight: 740;
  text-align: left;
}

.wp-admin .nexdirectory-comparison-feature p {
  margin: 8px 0 0;
  color: #637187;
  font-size: 13px;
  line-height: 1.48;
}

.wp-admin .nexdirectory-comparison-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.wp-admin .nexdirectory-comparison-status .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.wp-admin .nexdirectory-comparison-status.is-included {
  background: #ecfdf3;
  color: #166534;
}

.wp-admin .nexdirectory-comparison-status.is-core {
  background: #f1f5f9;
  color: #475569;
}

.wp-admin .nexdirectory-comparison-status.is-pro {
  background: #fff0e8;
  color: #b43e14;
}

.wp-admin .nexdirectory-upgrade-fit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.wp-admin .nexdirectory-upgrade-fit-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
}

.wp-admin .nexdirectory-upgrade-fit-panel li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0;
  color: #405069;
}

.wp-admin .nexdirectory-upgrade-fit-panel li .dashicons {
  flex: 0 0 20px;
  color: var(--nex-admin-success);
}

.wp-admin .nexdirectory-upgrade-final-cta {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #d8dfea;
  border-radius: var(--nex-admin-radius-lg);
  background:
    radial-gradient(circle at 92% -20%, rgba(243, 91, 34, 0.18), transparent 21rem),
    linear-gradient(135deg, #fff 0%, #f6f8fb 100%);
  box-shadow: var(--nex-admin-shadow-sm);
}

.wp-admin .nexdirectory-upgrade-final-cta .button {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .wp-admin .nexdirectory-admin-premium,
  .wp-admin .nexdirectory-settings-premium,
  .wp-admin .nexdirectory-metrics-page,
  .wp-admin .nexdirectory-onboarding-page {
    padding-right: 18px;
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .wp-admin .nexdirectory-upgrade-value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .wp-admin .nexdirectory-admin-premium,
  .wp-admin .nexdirectory-settings-premium,
  .wp-admin .nexdirectory-metrics-page,
  .wp-admin .nexdirectory-onboarding-page {
    padding: 18px 10px 90px 0;
  }

  .wp-admin .nexdirectory-admin-premium .nexdirectory-admin-hero,
  .wp-admin .nexdirectory-settings-premium .nexdirectory-admin-hero {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs.nav-tab-wrapper {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs .nav-tab {
    justify-content: flex-start;
    margin: 0;
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-shell {
    display: block;
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-sidebar {
    position: static;
    margin-bottom: 13px;
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-sticky-save {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .wp-admin .nexdirectory-upgrade-page .nexdirectory-upgrade-hero,
  .wp-admin .nexdirectory-upgrade-fit-panel {
    grid-template-columns: 1fr;
  }

  .wp-admin .nexdirectory-upgrade-status-card {
    padding: 18px;
  }

  .wp-admin .nexdirectory-comparison-heading,
  .wp-admin .nexdirectory-upgrade-final-cta {
    display: grid;
  }

  .wp-admin .nexdirectory-comparison-current {
    width: max-content;
    max-width: 100%;
  }

  .wp-admin .nexdirectory-comparison-table {
    display: block;
    min-width: 0;
  }

  .wp-admin .nexdirectory-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  .wp-admin .nexdirectory-comparison-table tbody {
    display: block;
    padding: 14px;
  }

  .wp-admin .nexdirectory-comparison-group,
  .wp-admin .nexdirectory-comparison-feature {
    display: block;
  }

  .wp-admin .nexdirectory-comparison-group th {
    display: block;
    margin: 15px 0 9px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
  }

  .wp-admin .nexdirectory-comparison-group:first-child th {
    margin-top: 0;
  }

  .wp-admin .nexdirectory-comparison-group strong,
  .wp-admin .nexdirectory-comparison-group span {
    display: block;
    margin: 0;
  }

  .wp-admin .nexdirectory-comparison-feature {
    margin: 0 0 11px;
    overflow: hidden;
    border: 1px solid var(--nex-admin-line);
    border-radius: 12px;
    background: #fff;
  }

  .wp-admin .nexdirectory-comparison-feature > th,
  .wp-admin .nexdirectory-comparison-feature > td {
    display: block;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid #e7ecf2;
  }

  .wp-admin .nexdirectory-comparison-feature > th {
    background: #f8fafc;
  }

  .wp-admin .nexdirectory-comparison-feature > td:last-child {
    border-bottom: 0;
  }

  .wp-admin .nexdirectory-comparison-feature > td::before {
    display: block;
    margin-bottom: 8px;
    color: #66758a;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-tabs.nav-tab-wrapper,
  .wp-admin .nexdirectory-settings-premium .nexdirectory-settings-subtabs {
    grid-template-columns: 1fr;
  }

  .wp-admin .nexdirectory-admin-premium .nexdirectory-admin-grid {
    grid-template-columns: 1fr;
  }

  .wp-admin .nexdirectory-admin-premium .button,
  .wp-admin .nexdirectory-settings-premium .button {
    width: 100%;
  }

  .wp-admin .nexdirectory-upgrade-value-grid article {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 17px;
  }

  .wp-admin .nexdirectory-upgrade-value-grid article > .dashicons {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-admin .nexdirectory-admin-premium *,
  .wp-admin .nexdirectory-settings-premium * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wp-admin .nexdirectory-admin-premium .nexdirectory-admin-stat-card:hover,
  .wp-admin .nexdirectory-admin-premium .button:hover,
  .wp-admin .nexdirectory-settings-premium .button:hover {
    transform: none;
  }
}
