/**
 * Admin Settings UI (Vareon Calculator Suite Lite)
 *
 * IMPORTANT:
 * - This file is only enqueued on the settings page: settings_page_vareoncalc
 * - Keep everything scoped to avoid affecting front-end calculators and editor preview styles.
 */

/* Scope to this admin page only */
body.settings_page_vareoncalc .vareoncalc-settings-wrap {
  --vcs-admin-bg: #f6f7f7;
  --vcs-admin-panel-bg: #ffffff;
  --vcs-admin-border: #e5e7eb;
  --vcs-admin-border-soft: #eef2f7;
  --vcs-admin-text: #111827;
  --vcs-admin-muted: #6b7280;
  --vcs-admin-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --vcs-admin-radius: 14px;
  --vcs-admin-radius-sm: 10px;
  --vcs-admin-gap: 18px;
  --vcs-admin-accent: #2271b1; /* WP admin blue */
  /* Keep the admin UI readable on ultra-wide screens */
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout */
body.settings_page_vareoncalc .vareoncalc-settings-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 16px;
  margin-right: 20px;
}

/* Docs tab: use the full width */
body.settings_page_vareoncalc .vareoncalc-settings-layout.is-docs-tab {
  grid-template-columns: 1fr;
}

body.settings_page_vareoncalc .vareoncalc-settings-main {
  min-width: 0;
}

body.settings_page_vareoncalc .vareoncalc-is-hidden {
  display: none !important;
}

/* Tabs */
body.settings_page_vareoncalc .vareoncalc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ccd0d4;
  margin: 18px 0 0 0;
  padding: 0;
}

body.settings_page_vareoncalc .vareoncalc-tabs button,
body.settings_page_vareoncalc .vareoncalc-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  font-size: 14px;
  color: #50575e;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
  top: 1px;
  text-decoration: none;
  margin: 0;
}

body.settings_page_vareoncalc .vareoncalc-tabs a.vareoncalc-tabs__link {
  border-color: transparent;
}

body.settings_page_vareoncalc .vareoncalc-tab-icon {
  flex-shrink: 0;
  line-height: 1;
}

/* Pro-only tabs */
body.settings_page_vareoncalc .vareoncalc-tab-title {
  margin-top: 0;
}

body.settings_page_vareoncalc .vareoncalc-select--md {
  max-width: 300px;
}

body.settings_page_vareoncalc .vareoncalc-tabs button:hover,
body.settings_page_vareoncalc .vareoncalc-tabs a:hover {
  color: var(--vcs-admin-accent);
}

body.settings_page_vareoncalc .vareoncalc-tabs button.active {
  background: var(--vcs-admin-panel-bg);
  border-color: #ccd0d4;
  color: var(--vcs-admin-accent);
  font-weight: 600;
}

body.settings_page_vareoncalc .vareoncalc-tab-content {
  display: none;
  padding: 20px;
  background: var(--vcs-admin-panel-bg);
  border: 1px solid #ccd0d4;
  border-top: none;
}

body.settings_page_vareoncalc .vareoncalc-tab-content.active {
  display: block;
}

/* General tab column */
body.settings_page_vareoncalc #tab-general .vareoncalc-settings-col {
  max-width: 800px;
  width: 100%;
}

/* Hero */
body.settings_page_vareoncalc #tab-general .vareoncalc-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--vcs-admin-radius);
  margin-bottom: var(--vcs-admin-gap);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-hero-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-hero-icon__glyph {
  color: inherit;
  flex-shrink: 0;
  line-height: 1;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-hero-content h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-hero-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.5;
  max-width: 75ch;
}

/* Settings cards (scoped so preview calculator cards remain unchanged) */
body.settings_page_vareoncalc #tab-general .vareoncalc-card {
  background: var(--vcs-admin-panel-bg);
  border: 1px solid var(--vcs-admin-border);
  border-radius: var(--vcs-admin-radius);
  padding: 18px;
  margin: 0 0 var(--vcs-admin-gap) 0;
  box-shadow: var(--vcs-admin-shadow);
  max-width: none; /* override front-end .vareoncalc-card max-width */
}

body.settings_page_vareoncalc #tab-general .vareoncalc-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.settings_page_vareoncalc #tab-general .vareoncalc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vcs-admin-border-soft);
}

body.settings_page_vareoncalc #tab-general .vareoncalc-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--vcs-admin-text);
}

body.settings_page_vareoncalc #tab-general .vareoncalc-card-title__icon {
  color: var(--vcs-admin-muted);
  flex-shrink: 0;
  line-height: 1;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-form-group {
  margin-bottom: 14px;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-form-group:last-child {
  margin-bottom: 0;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
  color: #374151;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-help-text {
  margin: 6px 0 0 0;
  font-size: 12.5px;
  color: var(--vcs-admin-muted);
  line-height: 1.5;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-help-text--indent {
  margin-left: 30px;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-form-group--divider {
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--vcs-admin-border-soft);
}

body.settings_page_vareoncalc #tab-general .vareoncalc-form-group.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-currency-custom {
  margin-top: 12px;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-label--sm {
  font-size: 12px;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-input--xs {
  width: 120px;
  max-width: 100%;
}

/* Inputs used by settings page markup */
body.settings_page_vareoncalc #tab-general .vareoncalc-input,
body.settings_page_vareoncalc #tab-general .vareoncalc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db !important;
  border-radius: var(--vcs-admin-radius-sm);
  font-size: 14px;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-input:focus,
body.settings_page_vareoncalc #tab-general .vareoncalc-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-static-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--vcs-admin-radius-sm);
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
}

/* Checkbox rows */
body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"] {
  /* Use background-image tick for reliability (pseudo-elements on inputs can be inconsistent). */
  width: 20px !important;
  height: 20px !important;
  margin: 1px 0 0 0;
  padding: 0 !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 2px solid #d1d5db !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  box-shadow: none !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]:hover {
  border-color: #3b82f6 !important;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]:checked {
  border-color: #3b82f6 !important;
  background-color: #3b82f6 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L2.5 7.5' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]:checked:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

/* Disable pseudo-elements from front-end stylesheets (pulse/checkmark variants) */
body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]::before,
body.settings_page_vareoncalc #tab-general .vareoncalc-checkbox-label input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

/* PRO badges (small labels) */
body.settings_page_vareoncalc .vareoncalc-badge-pro,
body.settings_page_vareoncalc .vareoncalc-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border: 1px solid rgba(245, 158, 11, 0.75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

body.settings_page_vareoncalc .vareoncalc-badge-pro:hover,
body.settings_page_vareoncalc .vareoncalc-pro-badge:hover {
  color: #78350f;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  border-color: rgba(245, 158, 11, 0.95);
}

body.settings_page_vareoncalc .vareoncalc-badge-pro:focus,
body.settings_page_vareoncalc .vareoncalc-pro-badge:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Tip notice */
body.settings_page_vareoncalc .vareoncalc-tip-notice {
  margin: 15px 0;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__text {
  flex: 1;
  min-width: 220px;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__text p {
  margin: 0;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__icon {
  vertical-align: middle;
  margin-right: 6px;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__close-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__close {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #1e40af;
  opacity: 0.7;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

body.settings_page_vareoncalc .vareoncalc-tip-notice__close:hover {
  opacity: 1;
  background: rgba(30, 64, 175, 0.08);
}

/* Upgrade prompt inside settings page */
body.settings_page_vareoncalc #tab-general .vareoncalc-upgrade-prompt {
  margin-top: 6px;
  border-radius: var(--vcs-admin-radius);
}

@media (max-width: 980px) {
  body.settings_page_vareoncalc .vareoncalc-settings-layout {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- */
/* Docs tab (ported from legacy inline CSS) */
/* ----------------------------- */
body.settings_page_vareoncalc .docs-container {
  max-width: 100%;
  width: 100%;
}

body.settings_page_vareoncalc .docs-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 35px 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body.settings_page_vareoncalc .docs-hero-title {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 28px;
  font-weight: 700;
}

body.settings_page_vareoncalc .docs-hero-description {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.6;
  margin: 0;
  max-width: 75ch;
}

body.settings_page_vareoncalc .docs-section {
  margin: 40px 0;
}

body.settings_page_vareoncalc .docs-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1f2937;
}

body.settings_page_vareoncalc .docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

body.settings_page_vareoncalc .docs-section--most-important .docs-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (max-width: 782px) {
  body.settings_page_vareoncalc .docs-section--most-important .docs-grid {
    grid-template-columns: 1fr;
  }
}

body.settings_page_vareoncalc .docs-link-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  display: block;
  color: inherit;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

body.settings_page_vareoncalc .docs-link-card:hover,
body.settings_page_vareoncalc .docs-link-card:focus {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
  color: inherit;
}

body.settings_page_vareoncalc .docs-link-card:focus {
  outline: none;
}

body.settings_page_vareoncalc .docs-link-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 14px 32px rgba(17, 24, 39, 0.12);
}

/* Upgrade card: fancier/premium highlight */
body.settings_page_vareoncalc .docs-link-card.docs-link-card--upgrade {
  border-color: rgba(245, 158, 11, 0.75);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #eff6ff 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.14);
  position: relative;
  overflow: hidden;
}

body.settings_page_vareoncalc .docs-link-card.docs-link-card--upgrade::before {
  content: '';
  position: absolute;
  inset: -40px -60px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0) 70%);
  transform: rotate(15deg);
  pointer-events: none;
}

body.settings_page_vareoncalc .docs-link-card.docs-link-card--upgrade:hover,
body.settings_page_vareoncalc .docs-link-card.docs-link-card--upgrade:focus {
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.18);
}

body.settings_page_vareoncalc .docs-link-card.docs-link-card--upgrade .docs-link-indicator {
  color: #b45309;
}

body.settings_page_vareoncalc .docs-upgrade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border: 1px solid rgba(245, 158, 11, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

body.settings_page_vareoncalc .docs-link-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.settings_page_vareoncalc .docs-link-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid #e5e7eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(17, 24, 39, 0.06);
}

body.settings_page_vareoncalc .docs-link-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

body.settings_page_vareoncalc .docs-link-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

body.settings_page_vareoncalc .docs-link-indicator {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3b82f6;
  font-weight: 600;
}

body.settings_page_vareoncalc .docs-link-indicator span:last-child {
  transition: transform 0.18s ease;
}

body.settings_page_vareoncalc .docs-link-card:hover .docs-link-indicator span:last-child,
body.settings_page_vareoncalc .docs-link-card:focus .docs-link-indicator span:last-child {
  transform: translateX(2px);
}

body.settings_page_vareoncalc .docs-reset-section {
  margin-top: 30px;
  padding: 15px;
  background: #fff8f8;
  border: 1px solid #f5c2c7;
  border-radius: 4px;
}

body.settings_page_vareoncalc .docs-reset-section h3 {
  margin-top: 0;
  color: #d63638;
}

body.settings_page_vareoncalc .docs-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body.settings_page_vareoncalc .docs-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

body.settings_page_vareoncalc .docs-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

body.settings_page_vareoncalc .docs-footer-link:hover,
body.settings_page_vareoncalc .docs-footer-link:focus {
  color: #3b82f6;
  text-decoration: none;
}

body.settings_page_vareoncalc .docs-footer-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

body.settings_page_vareoncalc .docs-footer-version {
  color: #94a3b8;
  font-size: 12px;
}

/* ==========================================================================
   Documentation Tab Overhaul
   ========================================================================== */

.vareoncalc-docs-container {
    --docs-primary: #3b82f6;
    --docs-secondary: #64748b;
    --docs-bg: #f8fafc;
    --docs-border: #e2e8f0;
    --docs-text: #1e293b;
    --docs-radius: 12px;
    margin-top: 10px;
}

/* Modern Grid V2 */
.vareoncalc-doc-card-v2 {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
}

.vareoncalc-doc-card-v2:hover {
    border-color: var(--docs-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.vareoncalc-doc-card-v2__icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--docs-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vareoncalc-doc-card-v2__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--docs-text);
}

.vareoncalc-doc-card-v2__desc {
    margin: 0;
    font-size: 14px;
    color: var(--docs-secondary);
    line-height: 1.6;
}

.vareoncalc-doc-card-v2__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--docs-primary);
    font-weight: 600;
    font-size: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.vareoncalc-docs-hero {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 40px;
    border-radius: var(--docs-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vareoncalc-docs-hero-title {
    color: white !important;
    font-size: 28px !important;
    margin-bottom: 8px !important;
}

.vareoncalc-docs-hero-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px !important;
}

/* Sidebar Layout */
.vareoncalc-docs-sidebar-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    overflow: visible;
    min-height: 650px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vareoncalc-docs-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--docs-border);
    padding: 24px;
    position: sticky;
    top: 32px;
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-top-left-radius: var(--docs-radius);
    border-bottom-left-radius: var(--docs-radius);
}

.vareoncalc-docs-sidebar__header {
    position: relative;
    margin-bottom: 32px;
}

.vareoncalc-docs-search-mini {
    width: 100%;
    padding: 10px 12px 10px 38px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 14px !important;
    background: white !important;
}

.vareoncalc-docs-nav-group {
    margin-bottom: 28px;
}

.vareoncalc-docs-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 12px;
}

.vareoncalc-docs-sidebar__nav a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.vareoncalc-docs-sidebar__nav a:hover {
    background: #f1f5f9;
    color: var(--docs-primary);
}

.vareoncalc-docs-sidebar__nav a.active {
    background: #eff6ff;
    color: var(--docs-primary);
    font-weight: 600;
}

.vareoncalc-docs-main-content {
    padding: 48px 64px;
    max-width: 900px;
    border-top-right-radius: var(--docs-radius);
    border-bottom-right-radius: var(--docs-radius);
}

.vareoncalc-docs-article h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

.vareoncalc-docs-article h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 16px;
}

.vareoncalc-docs-article p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.vareoncalc-docs-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
    color: #92400e;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__header {
    margin-bottom: 20px;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__header h3 {
    margin: 0 0 8px;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__header p {
    margin: 0;
    color: #64748b;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field {
    min-width: 0;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field select,
body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field select:focus,
body.settings_page_vareoncalc .vareoncalc-shortcode-builder__field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__output-wrap {
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fafc;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__output-wrap > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__output {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__summary {
    margin: 14px 0 0;
    font-size: 13px;
    color: #334155;
}

body.settings_page_vareoncalc .vareoncalc-shortcode-builder__validation {
    margin: 10px 0 0;
    font-size: 12px;
    color: #b45309;
}

@media (max-width: 782px) {
    body.settings_page_vareoncalc .vareoncalc-shortcode-builder__grid {
        grid-template-columns: 1fr;
    }

    .vareoncalc-docs-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }
}

.vareoncalc-docs-cta-box {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
    border: 1px solid #e2e8f0;
}

/* Knowledge Hub */
.vareoncalc-docs-hub-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 48px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.vareoncalc-docs-hub-hero h1 {
    color: white !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 32px !important;
    letter-spacing: -0.02em;
}

.vareoncalc-docs-hub-search {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vareoncalc-docs-hub-search input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 17px !important;
    padding: 12px 16px !important;
}

.vareoncalc-docs-hub-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.vareoncalc-docs-hub-content {
    max-width: 1000px;
    margin: 0 auto;
}

.vareoncalc-docs-hub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.vareoncalc-docs-hub-column h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.vareoncalc-docs-hub-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
    transition: all 0.2s;
}

.vareoncalc-docs-hub-list li a:hover {
    color: var(--docs-primary);
    padding-left: 8px;
}

.vareoncalc-docs-faq-item {
    margin-bottom: 12px;
}

.vareoncalc-docs-faq-q {
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.vareoncalc-docs-faq-q:hover {
    border-color: var(--docs-primary);
    background: #f8fafc;
}

.vareoncalc-docs-hub-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
}

.vareoncalc-docs-hub-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--docs-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vareoncalc-docs-hub-card .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--docs-primary);
    opacity: 0.8;
}

.vareoncalc-docs-hub-card h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
}

.vareoncalc-docs-hub-card p {
    margin: 0;
    font-size: 14px;
    color: var(--docs-secondary);
}

body.settings_page_vareoncalc .vareoncalc-review-cta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #fffaf0 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

body.settings_page_vareoncalc .vareoncalc-review-cta__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__badge {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.22);
}

body.settings_page_vareoncalc .vareoncalc-review-cta__badge .dashicons {
  color: #fbbf24;
  width: 28px;
  height: 28px;
  font-size: 28px;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__content {
  min-width: 0;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
  color: #f59e0b;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__stars .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: #0f172a;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__text {
  margin: 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__button {
  min-height: 36px;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__button--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

body.settings_page_vareoncalc .vareoncalc-review-cta__button--primary:hover,
body.settings_page_vareoncalc .vareoncalc-review-cta__button--primary:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: #1e40af;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__help-link {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
}

body.settings_page_vareoncalc .vareoncalc-review-cta__help-link:hover,
body.settings_page_vareoncalc .vareoncalc-review-cta__help-link:focus {
  color: #1d4ed8;
  text-decoration: none;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__body {
  min-width: 0;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__text {
  margin: 0;
  color: #475569;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__actions,
body.settings_page_vareoncalc .vareoncalc-review-micro-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.settings_page_vareoncalc .vareoncalc-review-quiet-card__button,
body.settings_page_vareoncalc .vareoncalc-review-micro-cta__button {
  white-space: nowrap;
}

body.settings_page_vareoncalc .vareoncalc-review-micro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

body.settings_page_vareoncalc .vareoncalc-review-micro-cta__title {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
}

body.settings_page_vareoncalc .vareoncalc-settings-submit {
  margin-top: 20px;
}

body.settings_page_vareoncalc .vareoncalc-settings-secondary {
  margin-top: 24px;
}

body.settings_page_vareoncalc #tab-pro-waitlist {
  border-top: 1px solid #ccd0d4;
}

/* --- Pro Waitlist Tab --- */
body.settings_page_vareoncalc .vareoncalc-waitlist {
  display: grid;
  gap: 0;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__hero {
  padding: 36px 32px 32px;
  background: var(--vcs-admin-panel-bg, #fff);
  border: 1px solid var(--vcs-admin-border, #e5e7eb);
  border-radius: var(--vcs-admin-radius, 14px);
  text-align: center;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__headline {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vcs-admin-text, #111827);
  max-width: 26ch;
  margin-inline: auto;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__subhead {
  margin: 0 auto 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--vcs-admin-muted, #6b7280);
  max-width: 52ch;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--vcs-admin-radius-sm, 10px);
  background: var(--vcs-admin-accent, #2271b1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__cta-btn:hover,
body.settings_page_vareoncalc .vareoncalc-waitlist__cta-btn:focus {
  background: #135e96;
  color: #ffffff;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__cta-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  transition: transform 0.15s ease;
}

body.settings_page_vareoncalc .vareoncalc-waitlist__cta-btn:hover .dashicons {
  transform: translateX(2px);
}

body.settings_page_vareoncalc .vareoncalc-waitlist__fine {
  margin: 14px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--vcs-admin-muted, #6b7280);
  max-width: 48ch;
}

@media (max-width: 960px) {
  body.settings_page_vareoncalc .vareoncalc-review-cta,
  body.settings_page_vareoncalc .vareoncalc-review-quiet-card,
  body.settings_page_vareoncalc .vareoncalc-review-micro-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  body.settings_page_vareoncalc .vareoncalc-review-cta__media {
    justify-content: flex-start;
  }

  body.settings_page_vareoncalc .vareoncalc-waitlist__hero {
    padding: 28px 20px 24px;
  }
}




