/**
 * ProRank SEO Meta Box Styles - Modern 2025 Design
 * Colors: Blue #3b82f6, Blue Dark #2563eb, Orange #ff6b35
 * Tabs: Classic underline style
 */

/* Import design system variables */
@import url('../../styles/design-system.css');

/* Import component styles */
@import url('./components/social-tab.css');

/* ========================================
   BRAND COLORS
   ======================================== */

.prorank-metabox-shell {
  /* Brand Colors - Blue Primary + Orange Accent */
  --brand-blue: #3b82f6;
  --brand-blue-dark: #2563eb;
  --brand-blue-darker: #1d4ed8;
  --brand-orange: #ff6b35;
  --brand-orange-dark: #ff4500;
  --brand-green: #3b82f6;
  --brand-green-dark: #2563eb;
  --brand-red: #ef4444;

  /* Neutrals */
  --text-primary: #1e1e1e;
  --text-secondary: #555;
  --text-muted: #757575;
  --bg-white: #fff;
  --bg-light: #f9f9f9;
  --border-color: #dcdcde;
  --border-hover: #c3c4c7;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* ========================================
   META BOX CONTAINER
   ======================================== */

.prorank-metabox-shell {
  padding: 0;
  margin: 0;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Header accent - Blue gradient with orange glow */
.prorank-metabox-shell::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #ff6b35 0%, #ffa500 50%, #ff4500 100%);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* ========================================
   TABS - CLASSIC UNDERLINE STYLE
   ======================================== */

.prorank-metabox-tabs {
  margin: 0;
}

.prorank-metabox-tabs .components-tab-panel__tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

/* Tab buttons - Classic underline */
.prorank-metabox-tabs .components-button {
  height: 48px;
  padding: 0 20px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hover - BLUE text */
.prorank-metabox-tabs .components-button:hover {
  color: var(--brand-blue);
  background: #eff6ff;
}

/* Active tab - BLUE underline */
.prorank-metabox-tabs .components-button.is-active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  font-weight: 600;
  background: transparent;
}

/* Remove any ::before/::after from old design */
.prorank-metabox-tabs .components-button.is-active::before,
.prorank-metabox-tabs .components-button.is-active::after {
  display: none;
}

/* Lock icon styling */
.prorank-tab-title--locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prorank-tab-lock-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
}

.prorank-tab-lock-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========================================
   TAB CONTENT
   ======================================== */

.prorank-tab-content {
  padding: var(--space-lg);
  background: var(--bg-white);
  min-height: 400px;
}

/* ========================================
   FIELD GROUPS - CLEAN CARDS
   ======================================== */

.prorank-field-group {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.prorank-field-group:hover {
  border-color: var(--border-hover);
}

.prorank-field-group:last-child {
  margin-bottom: 0;
}

.prorank-field-group h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BLUE accent bar on section headers */
.prorank-field-group h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--brand-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ORANGE accent for special/highlight sections */
.prorank-field-group--highlight h3::before {
  background: var(--brand-orange);
}

/* GREEN accent for success sections */
.prorank-field-group--success h3::before {
  background: var(--brand-green);
}

/* Preview Field Group */
.prorank-field-group--preview {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

/* ========================================
   SERP PREVIEW - GOOGLE STYLE
   ======================================== */

.prorank-serp-preview {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  font-family: arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Subtle top highlight */
.prorank-serp-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35) 0%, rgba(251, 146, 60, 0.4) 100%);
}

/* Label */
.prorank-serp-preview::after {
  content: 'GOOGLE PREVIEW';
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.prorank-serp-preview__inner {
  display: flex;
  gap: 14px;
  padding-top: 14px;
}

.prorank-serp-preview__favicon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.prorank-serp-preview__content {
  flex: 1;
  min-width: 0;
}

.prorank-serp-preview__site {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: #202124;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.prorank-serp-preview__breadcrumb {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.35;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.prorank-serp-preview__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #1a0dab;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prorank-serp-preview__title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.prorank-serp-preview__description {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 68ch;
}

/* ========================================
   CHARACTER COUNTER
   ======================================== */

.prorank-character-counter {
  margin-top: 12px;
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.prorank-character-counter__bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.prorank-character-counter__progress {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 3px;
}

/* Empty - Gray */
.prorank-character-counter--empty .prorank-character-counter__progress {
  background: #c0c0c0 !important;
}

/* Good - GREEN */
.prorank-character-counter--good .prorank-character-counter__progress {
  background: var(--brand-green) !important;
}

/* Short/Warning - ORANGE */
.prorank-character-counter--short .prorank-character-counter__progress {
  background: var(--brand-orange) !important;
}

/* Slightly long - ORANGE */
.prorank-character-counter--warning .prorank-character-counter__progress {
  background: var(--brand-orange) !important;
}

/* Long/Error - RED */
.prorank-character-counter--long .prorank-character-counter__progress {
  background: var(--brand-red) !important;
}

.prorank-character-counter__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.prorank-character-counter__status {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prorank-character-counter--good .prorank-character-counter__status {
  color: var(--brand-green);
}

.prorank-character-counter--good .prorank-character-counter__status::before {
  content: '✓';
}

.prorank-character-counter--short .prorank-character-counter__status {
  color: var(--brand-orange);
}

.prorank-character-counter--short .prorank-character-counter__status::before {
  content: '!';
}

.prorank-character-counter--warning .prorank-character-counter__status {
  color: var(--brand-orange);
}

.prorank-character-counter--warning .prorank-character-counter__status::before {
  content: '!';
}

.prorank-character-counter--long .prorank-character-counter__status {
  color: var(--brand-red);
}

.prorank-character-counter--long .prorank-character-counter__status::before {
  content: '✗';
}

/* ========================================
   LOCKED FEATURE - GREEN BUTTON
   ======================================== */

.prorank-tab-content--locked {
  background: var(--bg-light);
}

.prorank-locked-feature {
  text-align: center;
  padding: 48px 32px;
  max-width: 400px;
  margin: 0 auto;
}

.prorank-lock-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.prorank-lock-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: var(--text-muted);
}

.prorank-locked-feature h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.prorank-locked-feature p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* Upgrade button - BLUE gradient */
.prorank-locked-feature .button,
.prorank-upgrade-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white !important;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.prorank-locked-feature .button:hover,
.prorank-upgrade-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* ========================================
   AI BUTTONS - BLUE
   ======================================== */

.prorank-field-with-ai {
  position: relative;
}

.prorank-field-with-ai .components-base-control__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  color: var(--text-primary);
}

.prorank-field-group .components-base-control__label,
.prorank-internal-links-item .components-base-control__label {
  color: #334155 !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0.01em;
}

/* AI Button - BLUE gradient */
.prorank-field-with-ai .components-button.is-tertiary,
.prorank-ai-button {
  margin-left: auto;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff !important;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 115, 170, 0.25);
}

.prorank-field-with-ai .components-button.is-tertiary:hover,
.prorank-ai-button:hover {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, #004566 100%);
  box-shadow: 0 4px 10px rgba(0, 115, 170, 0.35);
}

.prorank-field-with-ai .components-button.is-tertiary svg,
.prorank-ai-button svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.prorank-ai-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.prorank-ai-status--loading {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.prorank-ai-status--error {
  background: #fef2f2;
  color: var(--brand-red);
  border: 1px solid #fecaca;
}

/* AI Suggestions Popover */
.components-popover.prorank-ai-suggestions-popover {
  --prorank-ai-popover-width: min(420px, calc(100vw - 24px));
  width: var(--prorank-ai-popover-width);
  max-width: 420px;
}

.components-popover.prorank-ai-suggestions-popover .components-popover__content {
  width: var(--prorank-ai-popover-width) !important;
  max-width: var(--prorank-ai-popover-width) !important;
  min-width: var(--prorank-ai-popover-width) !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible !important;
}

.components-popover.prorank-ai-suggestions-popover .prorank-ai-suggestions {
  width: var(--prorank-ai-popover-width) !important;
  max-width: var(--prorank-ai-popover-width) !important;
  min-width: var(--prorank-ai-popover-width) !important;
  border-radius: 16px;
  border: 1px solid #dbe3f1;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  background: #fff;
}

.components-popover .prorank-ai-suggestions .components-card__body {
  padding: 0;
}

.prorank-ai-suggestions__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e5edf7;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.prorank-ai-suggestions h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #172033;
}

.prorank-ai-helper-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6578;
}

.prorank-ai-suggestions__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2f5fb8;
  font-size: 12px;
  font-weight: 700;
}

.prorank-ai-suggestions__body {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px 18px 18px;
}

.prorank-ai-suggestions__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}

.prorank-ai-suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button {
  display: block;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-height: unset;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #d7e3f6;
  background: #fff;
  color: #2d65b7;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button .components-button__text,
.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button span {
  display: block;
  width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button:hover:not(:disabled) {
  border-color: #7aa2ea;
  background: #f6f9ff;
  transform: translateY(-1px);
}

.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button:focus {
  box-shadow: 0 0 0 2px rgba(47, 95, 184, 0.16);
}

.prorank-keyword-suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prorank-ai-suggestions .components-button.prorank-keyword-suggestion-button {
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid #cfe0fb;
  background: #fff;
  color: #2f6dca;
  line-height: 1.35;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.prorank-ai-suggestions .components-button.prorank-keyword-suggestion-button:hover:not(:disabled) {
  border-color: #7aa2ea;
  background: #f4f8ff;
  color: #1f4f9e;
}

.prorank-ai-suggestions .components-button.prorank-keyword-suggestion-button:disabled,
.prorank-ai-suggestions .components-button.prorank-ai-suggestion-list-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
  color: #94a3b8;
}

/* ========================================
   LOADING & STATUS
   ======================================== */

.prorank-meta-tab-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: 48px;
  color: var(--text-secondary);
}

.prorank-save-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.prorank-save-status--saving {
  background: #eff6ff;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
}

.prorank-save-status--error {
  background: #fef2f2;
  color: var(--brand-red);
  border: 1px solid #fecaca;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.prorank-field-group .components-input-control__input,
.prorank-field-group .components-text-control__input,
.prorank-field-group .components-textarea-control__input {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff !important;
  color: var(--text-primary) !important;
}

.prorank-field-group .components-input-control__input::placeholder,
.prorank-field-group .components-text-control__input::placeholder,
.prorank-field-group .components-textarea-control__input::placeholder {
  color: var(--text-muted);
}

.prorank-field-group .components-input-control__input::selection,
.prorank-field-group .components-text-control__input::selection,
.prorank-field-group .components-textarea-control__input::selection {
  background: #dbeafe;
  color: #0f172a;
}

.prorank-field-group .components-input-control__input:hover,
.prorank-field-group .components-text-control__input:hover,
.prorank-field-group .components-textarea-control__input:hover {
  border-color: var(--border-hover);
}

.prorank-field-group .components-input-control__input:focus,
.prorank-field-group .components-text-control__input:focus,
.prorank-field-group .components-textarea-control__input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
  outline: none;
}

.prorank-field-group .components-checkbox-control {
  margin-bottom: var(--space-sm);
}

/* Improve checkbox readability/contrast in editor meta box */
.prorank-field-group > .description,
.prorank-field-group .description {
  color: #475569 !important;
  font-size: 14px;
  line-height: 1.5;
}

.prorank-field-group .components-checkbox-control__label {
  color: #1f2937 !important;
  font-size: 13px;
  font-weight: 600;
}

.prorank-field-group .components-base-control__help {
  color: #475569 !important;
  font-size: 13px;
  line-height: 1.45;
}

.prorank-field-group .components-checkbox-control__input-container {
  width: 18px;
  height: 18px;
  border: 1px solid #64748b !important;
  border-radius: 4px;
  background: #fff !important;
  box-shadow: none !important;
}

.prorank-field-group .components-checkbox-control__input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #64748b !important;
  border-radius: 4px;
  accent-color: #2563eb;
}

.prorank-field-group .components-checkbox-control__input[type='checkbox']:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18) !important;
  outline: none;
}

/* ========================================
   PREMIUM BADGE - ORANGE
   ======================================== */

.prorank-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #c59400 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(219, 166, 23, 0.3);
}

.prorank-premium-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ========================================
   FEATURE CARD COLORS
   ======================================== */

/* Blue feature card */
.prorank-feature-card--blue {
  border-left: 4px solid var(--brand-blue);
}

/* Orange feature card */
.prorank-feature-card--orange {
  border-left: 4px solid var(--brand-orange);
}

/* Green feature card */
.prorank-feature-card--green {
  border-left: 4px solid var(--brand-green);
}

/* ========================================
   TIPS & INFO - BLUE
   ======================================== */

.prorank-tip,
.prorank-info-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #eff8ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  margin-top: 16px;
}

.prorank-tip__icon,
.prorank-info-box__icon {
  flex-shrink: 0;
  color: var(--brand-blue);
}

.prorank-tip__content,
.prorank-info-box__content {
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}

/* ========================================
   WARNING BOX - ORANGE
   ======================================== */

.prorank-warning-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  margin-top: 16px;
}

.prorank-warning-box__icon {
  flex-shrink: 0;
  color: var(--brand-orange);
}

.prorank-warning-box__content {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

/* ========================================
   SUCCESS BOX - GREEN
   ======================================== */

.prorank-success-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  margin-top: 16px;
}

.prorank-success-box__icon {
  flex-shrink: 0;
  color: var(--brand-green);
}

.prorank-success-box__content {
  font-size: 13px;
  color: #065f46;
  line-height: 1.5;
}

/* ========================================
   TAB ICONS WITH BRAND COLORS
   ======================================== */

/* General tab - GREEN icon */
.prorank-metabox-tabs .components-button[aria-controls*="general"] .dashicons,
.prorank-metabox-tabs .components-button:first-child .dashicons {
  color: var(--brand-green);
}

/* Social tab - BLUE icon */
.prorank-metabox-tabs .components-button[aria-controls*="social"] .dashicons {
  color: var(--brand-blue);
}

/* Advanced/Schema tab - ORANGE icon */
.prorank-metabox-tabs .components-button[aria-controls*="advanced"] .dashicons,
.prorank-metabox-tabs .components-button[aria-controls*="schema"] .dashicons {
  color: var(--brand-orange);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.prorank-metabox-tabs .components-button:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.prorank-metabox-tabs .components-button:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .prorank-metabox-tabs .components-button,
  .prorank-field-group,
  .prorank-character-counter__progress,
  .prorank-locked-feature .button,
  .prorank-ai-button {
    transition: none;
  }
}

/* ========================================
   SCHEMA TAB - CLEAN DESIGN
   ======================================== */

.prorank-schema-tab-content {
  padding: var(--space-md);
}

.prorank-schema-section {
  margin-bottom: var(--space-lg);
}

.prorank-schema-section:last-child {
  margin-bottom: 0;
}

/* Schema properties section */
.prorank-schema-properties {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.prorank-schema-properties .components-base-control {
  margin-bottom: var(--space-md);
}

.prorank-schema-properties .components-base-control:last-child {
  margin-bottom: 0;
}

/* Schema properties input styling */
.prorank-schema-properties .components-text-control__input,
.prorank-schema-properties .components-textarea-control__input,
.prorank-schema-properties input[type="text"],
.prorank-schema-properties input[type="url"],
.prorank-schema-properties input[type="number"],
.prorank-schema-properties textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prorank-schema-properties input:hover,
.prorank-schema-properties textarea:hover {
  border-color: var(--border-hover);
}

.prorank-schema-properties input:focus,
.prorank-schema-properties textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
  outline: none;
}

.prorank-schema-properties .components-base-control__label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 13px;
}

.prorank-schema-properties .components-base-control__help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Schema actions row */
.prorank-schema-actions {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.prorank-schema-validation {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.prorank-schema-validation .description {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Schema preview */
.prorank-schema-preview {
  margin-top: var(--space-md);
}

.prorank-schema-preview-actions {
  margin-bottom: var(--space-md);
}

.prorank-schema-preview-content {
  margin-top: var(--space-md);
}

.prorank-code-preview {
  background: #1e1e1e;
  border-radius: 6px;
  padding: var(--space-md);
  overflow-x: auto;
}

.prorank-code-preview pre {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
}

.prorank-code-preview code {
  color: #d4d4d4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Preview collapsed panel styling */
.prorank-schema-tab-content .components-panel__body {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.prorank-schema-tab-content .components-panel__body-title button {
  font-weight: 500;
  color: var(--text-primary);
}

.prorank-schema-tab-content .components-panel__body.is-opened {
  border-color: var(--brand-blue);
}

/* ========================================
   INTERNAL LINKS TAB
   ======================================== */

.prorank-internal-links-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.prorank-internal-links-tab {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.prorank-internal-links-workflow {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.prorank-internal-links-workflow__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.prorank-internal-links-workflow__header h3 {
  margin: 0;
  font-size: 14px;
}

.prorank-internal-links-workflow__header span {
  font-size: 12px;
  color: var(--text-muted);
}

.prorank-internal-links-workflow__progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.prorank-internal-links-workflow__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width 0.25s ease;
}

.prorank-internal-links-workflow__steps {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.prorank-internal-links-workflow__step {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #f9fafb;
}

.prorank-internal-links-workflow__step--complete {
  border-color: #16a34a;
  background: #ecfdf3;
}

.prorank-internal-links-workflow__step-index {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #e5e7eb;
  color: #111827;
}

.prorank-internal-links-workflow__step--complete .prorank-internal-links-workflow__step-index {
  background: #16a34a;
  color: #fff;
}

.prorank-internal-links-workflow__step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.prorank-internal-links-workflow__step-description {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.prorank-internal-links-workflow__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.prorank-internal-links-workflow__hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.prorank-internal-links-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.prorank-internal-links-health {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.prorank-internal-links-health .components-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.prorank-internal-links-health__label {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: none;
}

.prorank-internal-links-health__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.prorank-internal-links-health__value--date {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.prorank-internal-links-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: var(--space-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.prorank-internal-links-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.prorank-internal-links-section__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.prorank-internal-links-section__header span {
  font-size: 12px;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f1f5f9;
  font-weight: 600;
}

.prorank-internal-links-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.prorank-internal-links-section__feedback {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.prorank-internal-links-section__feedback--success {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.prorank-internal-links-section__feedback--warning {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.prorank-internal-links-section__feedback--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.prorank-internal-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.prorank-internal-links-list .components-card {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.prorank-internal-links-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.prorank-internal-links-item__select {
  padding-top: 4px;
}

.prorank-internal-links-item__select input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.prorank-internal-links-item__content {
  flex: 1;
  min-width: 0;
}

.prorank-internal-links-item__title {
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.prorank-internal-links-item__meta {
  font-size: 12px;
  margin-bottom: var(--space-sm);
  word-break: break-word;
}

.prorank-internal-links-item__meta a {
  color: #2563eb !important;
  text-decoration: none;
}

.prorank-internal-links-item__meta a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline;
}

.prorank-internal-links-item .components-base-control {
  margin-bottom: 0;
}

.prorank-internal-links-item .components-input-control__input,
.prorank-internal-links-item .components-text-control__input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none;
}

.prorank-internal-links-item .components-input-control__input:hover,
.prorank-internal-links-item .components-text-control__input:hover {
  border-color: #94a3b8;
}

.prorank-internal-links-item .components-input-control__input:focus,
.prorank-internal-links-item .components-text-control__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  outline: none;
}

.prorank-internal-links-item__actions {
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.prorank-internal-links-item__actions .components-button {
  border-radius: 8px;
  font-weight: 600;
}

.prorank-internal-links-item__score {
  font-size: 12px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

/* ========================================
   INTERNAL LINKS TAB - UI POLISH
   ======================================== */

.prorank-internal-links-tab {
  gap: 18px;
}

.prorank-internal-links-workflow {
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.prorank-internal-links-workflow__header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.prorank-internal-links-workflow__header span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.prorank-internal-links-workflow__progress {
  height: 8px;
  background: #e2e8f0;
}

.prorank-internal-links-workflow__step {
  border-color: #dbe3ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.prorank-internal-links-workflow__step--complete {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf3 100%);
}

.prorank-internal-links-actions {
  padding: 4px 2px 0;
}

.prorank-internal-links-workflow__actions .components-button,
.prorank-internal-links-actions .components-button {
  min-height: 34px;
  border-radius: 9px;
  font-weight: 600;
}

.prorank-internal-links-workflow__actions .components-button.is-primary,
.prorank-internal-links-actions .components-button.is-primary,
.prorank-internal-links-item__actions .components-button.is-primary {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
}

.prorank-internal-links-workflow__actions .components-button.is-primary,
.prorank-internal-links-workflow__actions .components-button.is-primary .components-button__text,
.prorank-internal-links-workflow__actions .components-button.is-primary span,
.prorank-internal-links-actions .components-button.is-primary,
.prorank-internal-links-actions .components-button.is-primary .components-button__text,
.prorank-internal-links-actions .components-button.is-primary span,
.prorank-internal-links-item__actions .components-button.is-primary,
.prorank-internal-links-item__actions .components-button.is-primary .components-button__text,
.prorank-internal-links-item__actions .components-button.is-primary span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.prorank-internal-links-workflow__actions .components-button.is-primary:disabled,
.prorank-internal-links-workflow__actions .components-button.is-primary[disabled],
.prorank-internal-links-actions .components-button.is-primary:disabled,
.prorank-internal-links-actions .components-button.is-primary[disabled],
.prorank-internal-links-item__actions .components-button.is-primary:disabled,
.prorank-internal-links-item__actions .components-button.is-primary[disabled],
.prorank-internal-links-workflow__actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-item__actions .components-button.is-primary[aria-disabled='true'] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.prorank-internal-links-workflow__actions .components-button.is-primary:hover,
.prorank-internal-links-workflow__actions .components-button.is-primary:focus,
.prorank-internal-links-workflow__actions .components-button.is-primary:active,
.prorank-internal-links-actions .components-button.is-primary:hover,
.prorank-internal-links-actions .components-button.is-primary:focus,
.prorank-internal-links-actions .components-button.is-primary:active,
.prorank-internal-links-item__actions .components-button.is-primary:hover,
.prorank-internal-links-item__actions .components-button.is-primary:focus,
.prorank-internal-links-item__actions .components-button.is-primary:active {
  color: #ffffff !important;
}

.prorank-internal-links-workflow__actions .components-button.is-secondary,
.prorank-internal-links-actions .components-button.is-secondary,
.prorank-internal-links-item__actions .components-button.is-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.prorank-internal-links-workflow__actions .components-button.is-tertiary,
.prorank-internal-links-actions .components-button.is-tertiary {
  color: #1d4ed8;
  text-decoration: none;
}

.prorank-internal-links-health {
  gap: 12px;
}

.prorank-internal-links-health .components-card {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.prorank-internal-links-health .components-card .components-card__body {
  padding: 14px 16px;
}

.prorank-internal-links-health__label {
  color: #475569;
}

.prorank-internal-links-health__value {
  color: #0f172a;
  line-height: 1.15;
}

.prorank-internal-links-section {
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.prorank-internal-links-section__header {
  margin-bottom: 12px;
}

.prorank-internal-links-section__header h3 {
  font-size: 16px;
  color: #0b1220;
}

.prorank-internal-links-section__header span {
  min-width: 28px;
  text-align: center;
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.prorank-internal-links-list {
  gap: 12px;
}

.prorank-internal-links-list .components-card {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prorank-internal-links-list .components-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.prorank-internal-links-list .components-card .components-card__body {
  padding: 14px;
}

.prorank-internal-links-item {
  gap: 14px;
}

.prorank-internal-links-item__select {
  padding-top: 1px;
}

.prorank-internal-links-item__select input[type='checkbox'] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #94a3b8;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.prorank-internal-links-item__select input[type='checkbox']::before {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
}

.prorank-internal-links-item__select input[type='checkbox']:checked {
  background: #2563eb;
  border-color: #1d4ed8;
}

.prorank-internal-links-item__select input[type='checkbox']:checked::before {
  transform: rotate(-45deg) scale(1);
}

.prorank-internal-links-item__select input[type='checkbox']:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.prorank-internal-links-item__title {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.prorank-internal-links-item__meta {
  color: #475569;
  margin-bottom: 10px;
}

.prorank-internal-links-item .components-base-control__label {
  margin-bottom: 6px !important;
  font-size: 12px;
  color: #334155 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
}

.prorank-internal-links-item .components-input-control__input,
.prorank-internal-links-item .components-text-control__input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-height: 40px;
}

.prorank-internal-links-item__actions {
  margin-top: 12px;
}

.prorank-internal-links-item__actions .components-button {
  min-height: 34px;
  border-radius: 9px;
}

.prorank-internal-links-item__score {
  color: #1e40af;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

@media (max-width: 782px) {
  .prorank-internal-links-workflow__actions,
  .prorank-internal-links-actions {
    gap: 8px;
  }

  .prorank-internal-links-workflow__actions .components-button,
  .prorank-internal-links-actions .components-button {
    width: 100%;
    justify-content: center;
  }

  .prorank-internal-links-item {
    flex-direction: column;
    gap: 10px;
  }

  .prorank-internal-links-item__select {
    padding-top: 0;
  }
}

/* ========================================
   FINAL ACCESSIBILITY OVERRIDES
   ======================================== */

.prorank-field-group .components-base-control__label,
.prorank-social-tab-content .components-base-control__label {
  color: #334155 !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
}

.prorank-field-group .components-checkbox-control__label {
  color: #0f172a !important;
}

.prorank-field-group .components-input-control__input:-webkit-autofill,
.prorank-field-group .components-text-control__input:-webkit-autofill,
.prorank-field-group .components-textarea-control__input:-webkit-autofill {
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.prorank-internal-links-workflow__actions .components-button.is-primary:disabled,
.prorank-internal-links-workflow__actions .components-button.is-primary[disabled],
.prorank-internal-links-workflow__actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-actions .components-button.is-primary:disabled,
.prorank-internal-links-actions .components-button.is-primary[disabled],
.prorank-internal-links-actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-item__actions .components-button.is-primary:disabled,
.prorank-internal-links-item__actions .components-button.is-primary[disabled],
.prorank-internal-links-item__actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-workflow__actions .components-button.is-primary:disabled *,
.prorank-internal-links-workflow__actions .components-button.is-primary[disabled] *,
.prorank-internal-links-workflow__actions .components-button.is-primary[aria-disabled='true'] *,
.prorank-internal-links-actions .components-button.is-primary:disabled *,
.prorank-internal-links-actions .components-button.is-primary[disabled] *,
.prorank-internal-links-actions .components-button.is-primary[aria-disabled='true'] *,
.prorank-internal-links-item__actions .components-button.is-primary:disabled *,
.prorank-internal-links-item__actions .components-button.is-primary[disabled] *,
.prorank-internal-links-item__actions .components-button.is-primary[aria-disabled='true'] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ========================================
   FINAL CONTRAST + BUTTON FIXES
   ======================================== */

.prorank-field-group .components-base-control__label,
.prorank-field-group .components-base-control__label *,
.prorank-field-group .components-checkbox-control__label,
.prorank-field-group .components-checkbox-control__label * {
  color: #1f2937 !important;
  opacity: 1 !important;
}

.prorank-field-group .components-base-control__help,
.prorank-field-group .description {
  color: #475569 !important;
  opacity: 1 !important;
}

.prorank-field-group .components-checkbox-control__input[type='checkbox'] {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
}

.prorank-field-group .components-checkbox-control__input[type='checkbox']:checked {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
}

.prorank-field-group .components-checkbox-control__input[type='checkbox']:checked::before {
  color: #ffffff !important;
}

.prorank-internal-links-item__actions .components-button.is-primary {
  min-width: 132px;
  justify-content: center;
}

.prorank-internal-links-workflow__actions .components-button.is-primary:disabled,
.prorank-internal-links-workflow__actions .components-button.is-primary[disabled],
.prorank-internal-links-workflow__actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-actions .components-button.is-primary:disabled,
.prorank-internal-links-actions .components-button.is-primary[disabled],
.prorank-internal-links-actions .components-button.is-primary[aria-disabled='true'],
.prorank-internal-links-item__actions .components-button.is-primary:disabled,
.prorank-internal-links-item__actions .components-button.is-primary[disabled],
.prorank-internal-links-item__actions .components-button.is-primary[aria-disabled='true'] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.64 !important;
}

/* ========================================
   BUTTON + INPUT HARDENING (WP 6.7+)
   ======================================== */

.prorank-metabox-shell .components-button.is-primary,
.prorank-metabox-shell .components-button.is-primary .components-button__text,
.prorank-metabox-shell .components-button.is-primary span,
.prorank-metabox-shell .components-button.is-primary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.prorank-metabox-shell .components-button.is-primary:disabled,
.prorank-metabox-shell .components-button.is-primary[disabled],
.prorank-metabox-shell .components-button.is-primary[aria-disabled='true'],
.prorank-metabox-shell .components-button.is-primary:disabled *,
.prorank-metabox-shell .components-button.is-primary[disabled] *,
.prorank-metabox-shell .components-button.is-primary[aria-disabled='true'] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.72 !important;
}

.prorank-metabox-shell .components-input-control__input,
.prorank-metabox-shell .components-text-control__input,
.prorank-metabox-shell .components-textarea-control__input,
.prorank-metabox-shell input[type='text'],
.prorank-metabox-shell input[type='url'],
.prorank-metabox-shell textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.prorank-metabox-shell .components-input-control__input::placeholder,
.prorank-metabox-shell .components-text-control__input::placeholder,
.prorank-metabox-shell .components-textarea-control__input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.prorank-metabox-shell .components-checkbox-control__input-container {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
}
