/*
 * Portal — SearchSignals Design System
 * B2B agency teal: mint wash, deep header bands, gradient pill CTAs.
 * Source: awesome-design-md/searchsignals
 */

:root {
  --ss-brand: #0e6b64;
  --ss-header: #003d3f;
  --ss-accent: #1bb7a6;
  --ss-accent-bright: #6fffd2;
  --ss-bg: #f8fcfb;
  --ss-panel: #f4faf9;
  --ss-text: #0d2927;
  --ss-muted: #4a6b69;
  --ss-muted2: #6a8a88;
  --ss-btn-text: #063330;
  --ss-band: rgba(0, 61, 63, 0.75);
  --ss-ring: rgba(27, 183, 166, 0.18);

  --primary-dark: var(--ss-text);
  --midnight: var(--ss-header);
  --deep-ocean: var(--ss-brand);
  --accent-yellow: var(--ss-accent);
  --accent-yellow-light: var(--ss-accent-bright);
  --accent-gold: var(--ss-brand);

  --neutral-gray: rgba(14, 107, 100, 0.10);
  --white: #ffffff;
  --border: rgba(14, 107, 100, 0.10);
  --surface-shadow: var(--ss-bg);

  --text-primary: var(--ss-text);
  --text-secondary: var(--ss-muted);
  --text-muted: var(--ss-muted2);
  --text-disabled: #8aa8a6;

  --error-bg: rgba(205, 32, 38, 0.08);
  --error-text: #8e3a3a;
  --error-border: rgba(205, 32, 38, 0.3);
  --success-bg: rgba(14, 107, 100, 0.10);
  --success-text: var(--ss-brand);
  --success-border: rgba(14, 107, 100, 0.25);
  --info-bg: rgba(27, 183, 166, 0.10);
  --info-text: var(--ss-brand);

  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 18px 48px rgba(14, 107, 100, 0.12);
  --shadow-focus: 0 0 0 4px var(--ss-ring);

  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 16px;
  --radius-pill: 999px;

  --container-max: 1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background:
    radial-gradient(1000px 600px at 50% -20%, rgba(27, 183, 166, 0.08), transparent 70%),
    var(--surface-shadow);
  min-height: 100vh;
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* ── Typography ── */
.font-display { font-family: var(--font-display); }

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-section {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-card-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-body-lg {
  font-size: 20px;
  line-height: 1.50;
  color: var(--text-secondary);
}

.text-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.text-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss-brand);
}

.text-muted { color: var(--text-muted); }

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-7) var(--space-5);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--ss-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

.nav-brand-admin-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ss-accent-bright);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: var(--space-3);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: #ffffff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--ss-accent), var(--ss-accent-bright));
  color: var(--ss-btn-text);
  box-shadow: 0 10px 30px var(--ss-ring);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(27, 183, 166, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.40);
}

.btn-ghost {
  background: transparent;
  color: var(--ss-brand);
  box-shadow: inset 0 0 0 1px rgba(14, 107, 100, 0.20);
}

.btn-ghost:hover {
  background: rgba(14, 107, 100, 0.06);
  box-shadow: inset 0 0 0 1px rgba(14, 107, 100, 0.28);
}

.btn-danger {
  background: #dc2626;
  color: var(--white);
}

.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 12px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.input {
  width: 100%;
  font: inherit;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.input:focus {
  box-shadow: var(--shadow-focus);
  border-color: var(--ss-accent);
}

.form-group input.is-error,
.form-group textarea.is-error,
.input.is-error,
.input-error {
  box-shadow: none;
  border-color: var(--error-text);
}

.form-group input::placeholder,
.input::placeholder { color: var(--text-disabled); }

/* ── Alerts / Messages ── */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid rgba(113, 175, 198, 0.28);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: var(--ss-panel);
  color: var(--ss-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

/* ── Status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}

.status-active { background: #16a34a; }
.status-grace { background: #ca8a04; }
.status-cancelled { background: #dc2626; }
.status-suspended { background: #dc2626; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--neutral-gray);
  margin: var(--space-5) 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--neutral-gray);
  padding: var(--space-5);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ── Auth page layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(113, 175, 198, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(199, 208, 205, 0.22), transparent 18%),
    var(--surface-shadow);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-medium);
}

.auth-card-wide {
  max-width: 500px;
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-5);
}

.auth-logo h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: var(--space-1);
}

.auth-links {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 14px;
}

.auth-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover { text-decoration: underline; }

/* ── Dashboard layout ── */
.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(113, 175, 198, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(199, 208, 205, 0.20), transparent 18%),
    var(--surface-shadow);
}

.dashboard-header {
  background: rgba(76, 72, 76, 0.94);
  color: var(--surface-shadow);
  padding: var(--space-5);
  border-bottom: 1px solid rgba(164, 178, 179, 0.35);
  backdrop-filter: blur(14px);
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.dashboard-header p {
  color: rgba(227, 238, 244, 0.78);
  font-size: 14px;
  margin-top: var(--space-1);
}

.dashboard-nav {
  background: rgba(255, 255, 255, 0.85);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--neutral-gray);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.dashboard-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.dashboard-nav a:hover { color: var(--accent-yellow); }

.dashboard-content {
  max-width: var(--dashboard-max, 1600px);
  margin: 0 auto;
  padding: var(--space-5);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

/* ── Plan details grid ── */
.plan-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.plan-details p {
  padding: var(--space-3);
  background: rgba(227, 238, 244, 0.72);
  border: 1px solid rgba(199, 208, 205, 0.9);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.plan-details strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Handover details ── */
.handover-box {
  background: rgba(227, 238, 244, 0.88);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  border: 1px solid rgba(199, 208, 205, 0.9);
}

.handover-box h3 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.handover-box pre {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Pricing cards (used on index.php, dashboard, etc.) ── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.pricing-card.featured {
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 18px 36px rgba(113, 175, 198, 0.22);
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin: var(--space-4) 0 var(--space-1);
}
.pricing-cadence {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-5);
}
.pricing-savings {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  margin-bottom: var(--space-3);
}
.pricing-specs {
  text-align: left;
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
}
.pricing-specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-gray);
  font-size: 14px;
}
.pricing-specs li:last-child {
  border-bottom: none;
}
.pricing-specs .spec-label {
  color: var(--text-secondary);
}
.pricing-specs .spec-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Shell nav (admin/account dashboards) uses a panel + trigger; see partials/shell-nav.css */
  .nav.nav--shell.nav--flat .nav-links { display: none; }
  .section { padding: var(--space-5) var(--space-4); }
  .auth-card { padding: var(--space-5); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .plan-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .plan-details { grid-template-columns: 1fr; }
  .dashboard-nav { gap: var(--space-3); }
}

/* ==========================================================================
   LIFTED INLINE STYLES (Ticket 219 prep)
   Every inline <style> block previously embedded in PHP files has been
   consolidated here so the theme picker can reach them.
   ========================================================================== */

/* --- Lifted from account/dashboard.php --- */
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Lifted from account/security.php --- */

.totp-steps {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 12px;
}
.totp-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.totp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--midnight);
  font-weight: 700;
  font-family: var(--font-display);
}
.totp-step-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}


/* --- Lifted from account/support.php --- */

    .history-list { display:grid; gap:var(--space-4); }
    .history-item { border:1px solid var(--neutral-gray); border-radius:var(--radius-md); padding:var(--space-4); background:var(--white); }
    .history-head { display:flex; justify-content:space-between; gap:var(--space-3); align-items:center; flex-wrap:wrap; margin-bottom:var(--space-3); }
    .history-title { margin:0; font-size:16px; color:var(--text-primary); }
    .history-meta { font-size:13px; color:var(--text-muted); }
    .status-badge-support { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:600; }
    .status-badge-support.is-new { background:#e5e7eb; color:#111827; }
    .status-badge-support.is-in-progress { background:#dbeafe; color:#1e3a8a; }
    .status-badge-support.is-resolved { background:#dcfce7; color:#166534; }
    .history-body { white-space:pre-wrap; line-height:1.45; margin:0; }
    .history-conversation { display:grid; gap:var(--space-3); margin-top:var(--space-3); }
    .history-msg { border:1px solid var(--neutral-gray); border-radius:var(--radius-md); padding:var(--space-3); }
    .history-msg.is-initial { background:var(--white); }
    .history-msg.is-customer { background:#eff6ff; border-color:#bfdbfe; }
    .history-msg.is-team { background:var(--surface-shadow); }
    .history-msg-label { font-size:12px; color:var(--text-muted); margin:0 0 6px 0; font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
    .history-followup { margin-top:var(--space-3); border-top:1px solid var(--neutral-gray); padding-top:var(--space-3); }
    .history-followup textarea { width:100%; min-height:120px; padding:12px; border:1px solid var(--neutral-gray); border-radius:var(--radius-md); resize:vertical; }

/* --- Lifted from account/affiliate.php --- */

.account-affiliate-page .affiliate-analytics-shell{display:grid;gap:24px}
.account-affiliate-page .analytics-topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.account-affiliate-page .analytics-title{margin:0;font-size:38px;line-height:1.05;color:var(--primary-dark)}
.account-affiliate-page .analytics-intro{margin:10px 0 0;color:var(--text-secondary);max-width:760px}
.account-affiliate-page .analytics-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.account-affiliate-page .range-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;border:1px solid #cad5e2;background:#f7f9fc;color:#35506f;font-size:13px;font-weight:700;text-decoration:none;transition:background .15s ease,color .15s ease,border-color .15s ease}
.account-affiliate-page .range-pill:hover{background:#eef3f9}
.account-affiliate-page .range-pill-active{background:#1f6fb2;border-color:#1f6fb2;color:#fff}
.account-affiliate-page .kpi-grid{display:grid;grid-template-columns:repeat(4, minmax(140px, 1fr));gap:var(--space-4);margin-bottom:var(--space-5)}
.account-affiliate-page .kpi-card{background:var(--white);border:1px solid var(--neutral-gray);border-radius:var(--radius-xl);padding:var(--space-5);text-align:center;box-shadow:var(--shadow-soft)}
.account-affiliate-page .kpi-label{color:var(--text-muted);font-size:14px;margin-bottom:var(--space-2)}
.account-affiliate-page .kpi-value{font-size:32px;font-weight:700;color:var(--accent-yellow);margin-bottom:var(--space-2)}
.account-affiliate-page .kpi-sub{color:var(--text-muted);font-size:14px}
.account-affiliate-page .info-tip-wrap{position:relative;display:inline-flex;align-items:center}
.account-affiliate-page .info-tip{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#eef3f9;color:#35506f;font-size:12px;font-weight:700;cursor:pointer;border:1px solid #cad5e2;list-style:none}
.account-affiliate-page .info-tip::-webkit-details-marker{display:none}
.account-affiliate-page .info-pop{position:absolute;left:0;top:30px;z-index:10;width:min(420px,80vw);padding:14px 16px;border:1px solid #d7e1ec;border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.account-affiliate-page .info-pop p{margin:0 0 8px;line-height:1.55}
.account-affiliate-page .info-pop p:last-child{margin-bottom:0}
.account-affiliate-page .analytics-panel{border:1px solid #d7e1ec;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05);padding:24px}
.account-affiliate-page .analytics-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.account-affiliate-page .analytics-panel-title{margin:0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.account-affiliate-page .analytics-panel-sub{margin:8px 0 0;color:#74859a;font-size:14px}
.account-affiliate-page .chart-shell{height:280px;margin-top:18px}
.account-affiliate-page .analytics-table-wrap{margin-top:18px;overflow:auto}
.account-affiliate-page .analytics-table{width:100%;border-collapse:collapse}
.account-affiliate-page .analytics-table th,.account-affiliate-page .analytics-table td{padding:14px 12px;border-bottom:1px solid #e6edf5;text-align:left;font-size:14px}
.account-affiliate-page .analytics-table th{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.account-affiliate-page .analytics-table td{color:#47607c}
.account-affiliate-page .analytics-table td strong{color:var(--primary-dark)}
.account-affiliate-page .status-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#f4f7fb;color:#35506f;border:1px solid #d7e1ec}
.account-affiliate-page .share-bar{width:180px;height:10px;border-radius:999px;background:#edf2f7;overflow:hidden}
.account-affiliate-page .share-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2b6fb1,#5a9ad6)}
.account-affiliate-page .analytics-note{margin-top:12px;margin-bottom:0;color:#74859a;font-size:14px}
.account-affiliate-page .toolbox-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:18px}
.account-affiliate-page .toolbox-card{border:1px solid #e6edf5;border-radius:18px;padding:18px;background:#fbfcfe}
.account-affiliate-page .toolbox-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393;margin-bottom:10px}
.account-affiliate-page .toolbox-value{color:var(--primary-dark);font-weight:700;word-break:break-all}
.account-affiliate-page .toolbox-help{margin:8px 0 0;color:#74859a;font-size:14px}
@media (max-width: 1400px){.account-affiliate-page .kpi-grid{grid-template-columns:repeat(4, minmax(160px, 1fr))}}
@media (max-width: 800px){.account-affiliate-page .kpi-grid{grid-template-columns:repeat(2, minmax(160px, 1fr))}}
@media (max-width: 860px){.account-affiliate-page .toolbox-grid{grid-template-columns:1fr}.account-affiliate-page .analytics-title{font-size:32px}}

/* --- Lifted from admin/account-help.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); vertical-align: top; }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-soft); }
.stat-card.stat-card-alert { border-color: #fca5a5; background: #fef2f2; }
.stat-card.stat-card-alert .stat-number { color: #b91c1c; }
.stat-card.stat-card-alert .stat-label { color: #991b1b; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent-yellow); margin-bottom: var(--space-2); }
.stat-label { color: var(--text-muted); font-size: 14px; }
.filter-bar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.filter-controls { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.filter-bar select { padding: 8px 10px; border: 1px solid var(--neutral-gray); border-radius: var(--radius-md); font-size: 13px; background: var(--white); }
.filter-label { font-size: 13px; color: var(--text-muted); }
.filter-clear-btn { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px; border:1px solid var(--neutral-gray); background:var(--white); color:var(--text-secondary); text-decoration:none; font-weight:700; line-height:1; }
.filter-clear-btn:hover { background:var(--surface-shadow); color:var(--text-primary); }
.request-message { white-space: pre-wrap; max-width: 420px; }
.request-meta { font-size: 13px; color: var(--text-muted); }
.request-actions textarea, .request-actions select,
.request-expand-panel textarea, .request-expand-panel select { width: 100%; padding: 15px; border: 1px solid var(--neutral-gray); border-radius: var(--radius-md); }
.request-actions textarea, .request-expand-panel textarea { min-height: 190px; resize: vertical; }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }
.request-conversation { display:grid; gap:10px; margin-top:10px; }
.request-msg { border:1px solid var(--neutral-gray); border-radius:var(--radius-md); padding:10px; }
.request-msg.is-initial { background:var(--white); }
.request-msg.is-customer { background:#eff6ff; border-color:#bfdbfe; }
.request-msg.is-team { background:var(--surface-shadow); }
.request-msg-label { margin:0 0 6px 0; font-size:12px; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.request-msg-body { white-space:pre-wrap; line-height:1.45; color:var(--text-secondary); }
.request-action-split { display:grid; grid-template-columns: 1fr 1fr; gap:16px; align-items:start; }
.request-action-split.is-stacked { grid-template-columns: 1fr; }
.request-action-col h4 { margin:0 0 8px; font-size:13px; color:var(--text-secondary); }
.internal-controls-row { margin-top: var(--space-3); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.internal-controls-row select { width:auto; min-width:170px; }
.reply-controls-row { margin-top: var(--space-3); }
.request-expand-row td { padding:0 16px 16px 16px; background:var(--white); border-bottom:1px solid var(--neutral-gray); }
.request-expand-panel { margin-top:10px; border:1px solid var(--neutral-gray); border-radius:var(--radius-md); padding:16px; background:var(--surface-shadow); }
.request-expand-panel[hidden] { display:none; }
.panel-layout-toggle { display:flex; justify-content:flex-end; gap:8px; margin-bottom:12px; }
.panel-layout-toggle .btn[data-layout-mode="split"] { }


/* --- Lifted from admin/affiliate-detail.php --- */

.affiliate-analytics-shell{display:grid;gap:24px}
.analytics-topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.analytics-title{margin:0;font-size:38px;line-height:1.05;color:var(--primary-dark)}
.analytics-intro{margin:10px 0 0;color:var(--text-secondary);max-width:760px}
.analytics-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.range-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;border:1px solid #cad5e2;background:#f7f9fc;color:#35506f;font-size:13px;font-weight:700;text-decoration:none}
.range-pill-active{background:#1f6fb2;border-color:#1f6fb2;color:#fff}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.kpi-card{border:1px solid #d7e1ec;border-radius:18px;padding:22px 22px 18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.kpi-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.kpi-value{font-size:48px;line-height:1;font-weight:800;margin-top:14px;color:#1b4f87}
.kpi-sub{font-size:14px;color:#74859a;margin-top:10px}
.analytics-panel{border:1px solid #d7e1ec;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05);padding:24px}
.analytics-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.analytics-panel-title{margin:0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.analytics-panel-sub{margin:8px 0 0;color:#74859a;font-size:14px}
.chart-shell{height:280px;margin-top:18px}
.analytics-table-wrap{margin-top:18px;overflow:auto}
.analytics-table{width:100%;border-collapse:collapse}
.analytics-table th,.analytics-table td{padding:14px 12px;border-bottom:1px solid #e6edf5;text-align:left;font-size:14px}
.analytics-table th{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.analytics-table td{color:#47607c}
.analytics-table td strong{color:var(--primary-dark)}
.status-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#f4f7fb;color:#35506f;border:1px solid #d7e1ec}


/* --- Lifted from admin/affiliates.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table tbody tr:hover { background: var(--surface-shadow); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-soft); }
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent-yellow); margin-bottom: var(--space-2); }
.stat-label { color: var(--text-muted); font-size: 14px; }
.affiliate-name { font-weight: 600; color: var(--text-primary); }
.affiliate-email { color: var(--text-muted); font-size: 14px; }
.affiliate-code { color: var(--primary-dark); font-family: var(--font-mono); font-size: 14px; }
.conversion-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill); color: var(--white); font-weight: 600; font-size: 13px; background: #16a34a; }
.conversion-badge.zero { background: var(--text-muted); }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap: var(--space-4); }
.affiliate-actions-inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.affiliate-edit-details { margin-top:10px; }
.affiliate-edit-summary { cursor:pointer; display:inline-block; font-size:12px; background:var(--neutral-gray); color:var(--text-primary); padding:6px 10px; border-radius:var(--radius-md); }
.affiliate-edit-panel { margin-top:10px; padding:12px; border:1px solid var(--neutral-gray); border-radius:var(--radius-md); background:var(--surface-shadow); }
.affiliate-analytics-shell{display:grid;gap:24px;margin-bottom:var(--space-5)}
.analytics-topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.analytics-title{margin:0;font-size:38px;line-height:1.05;color:var(--primary-dark)}
.analytics-intro{margin:10px 0 0;color:var(--text-secondary);max-width:760px}
.analytics-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.range-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;border:1px solid #cad5e2;background:#f7f9fc;color:#35506f;font-size:13px;font-weight:700;text-decoration:none}
.range-pill-active{background:#1f6fb2;border-color:#1f6fb2;color:#fff}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.kpi-card{border:1px solid #d7e1ec;border-radius:18px;padding:22px 22px 18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.kpi-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.kpi-value{font-size:48px;line-height:1;font-weight:800;margin-top:14px;color:#1b4f87}
.kpi-sub{font-size:14px;color:#74859a;margin-top:10px}
.analytics-panel{border:1px solid #d7e1ec;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05);padding:24px}
.analytics-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.analytics-panel-title{margin:0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.analytics-panel-sub{margin:8px 0 0;color:#74859a;font-size:14px}
.chart-shell{height:280px;margin-top:18px}
.analytics-table-wrap{margin-top:18px;overflow:auto}
.analytics-table{width:100%;border-collapse:collapse}
.analytics-table th,.analytics-table td{padding:14px 12px;border-bottom:1px solid #e6edf5;text-align:left;font-size:14px}
.analytics-table th{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#587393}
.analytics-table td{color:#47607c}
.analytics-table td strong{color:var(--primary-dark)}
.status-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#f4f7fb;color:#35506f;border:1px solid #d7e1ec}


/* --- Lifted from admin/customer.php --- */

.details p { margin: var(--space-2) 0; color: var(--text-secondary); font-size: 14px; }
.details strong { color: var(--text-primary); font-weight: 600; }
.timeline { position: relative; padding-left: var(--space-6); }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--neutral-gray); }
.timeline-item { position: relative; margin-bottom: var(--space-4); }
.timeline-item::before { content: ''; position: absolute; left: calc(-1 * var(--space-6) + 6px); top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-yellow); border: 2px solid var(--white); }
.timeline-date { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-1); }
.timeline-content { background: var(--surface-shadow); padding: var(--space-3); border-radius: var(--radius-md); }
.timeline-content p { margin: var(--space-1) 0; font-size: 14px; }
.empty-state { text-align: center; color: var(--text-muted); padding: var(--space-6); }


/* --- Lifted from admin/customers.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table tbody tr:hover { background: var(--surface-shadow); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.search-bar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--neutral-gray); border-radius: var(--radius-md); font-size: 14px; }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.customer-name { font-weight: 600; color: var(--text-primary); }
.customer-email { color: var(--text-muted); font-size: 14px; }
.customer-company { color: var(--text-muted); font-size: 14px; }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }


/* --- Lifted from admin/extensions.php --- */

body.dashboard-page.admin-extensions-page .module-table { width: 100%; border-collapse: collapse; }
body.dashboard-page.admin-extensions-page .module-table th, body.dashboard-page.admin-extensions-page .module-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--neutral-gray); vertical-align: top; }
body.dashboard-page.admin-extensions-page .module-table th { font-size: 13px; color: var(--text-secondary); background: var(--surface-shadow); }
body.dashboard-page.admin-extensions-page .module-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
body.dashboard-page.admin-extensions-page .badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:600; }
body.dashboard-page.admin-extensions-page .badge-on { background: #e8f7ed; color: #166534; }
body.dashboard-page.admin-extensions-page .badge-off { background: #fef2f2; color: #991b1b; }
body.dashboard-page.admin-extensions-page .stack-note { display:grid; gap:6px; }

/* --- Lifted from admin/index.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table tbody tr:hover { background: var(--surface-shadow); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.stats-grid { display: flex; justify-content: space-around; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.stat-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-soft); }
.stats-grid .stat-card { flex: 1 1 180px; max-width: 260px; min-width: 180px; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent-yellow); margin-bottom: var(--space-2); }
.stat-number.stat-number-alert { color: #b91c1c; }
.stat-label { color: var(--text-muted); font-size: 14px; }
.quick-links { display: grid; grid-template-rows: 1fr 1fr; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-5); }
.quick-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.quick-card h3 { font-size: 16px; margin-bottom: var(--space-2); color: var(--text-primary); }
.quick-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }
.nav-links li a.active { color: var(--accent-yellow-light); font-weight: 600; }
@media (max-width: 800px) { .stats-grid { justify-content: stretch; } .stats-grid .stat-card { max-width: none; } }
@media (max-width: 1400px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-links { grid-template-columns: 1fr; } }


/* --- Lifted from admin/modules.php --- */

.mod-op-table { width:100%; border-collapse:collapse; margin-top:var(--space-3); }
.mod-op-table th, .mod-op-table td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--neutral-gray); vertical-align:top; font-size:14px; }
.mod-op-table th { color:var(--text-secondary); background:var(--surface-shadow); font-weight:600; }
.mod-op-meta { font-size:13px; color:var(--text-muted); margin-top:4px; }
.badge-warn { display:inline-block;padding:2px 8px;border-radius:4px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:600; }
.badge-err { display:inline-block;padding:2px 8px;border-radius:4px;background:#fef2f2;color:#991b1b;font-size:12px;font-weight:600; }
.badge-ok { display:inline-block;padding:2px 8px;border-radius:4px;background:#e8f7ed;color:#166534;font-size:12px;font-weight:600; }
.code-list { font-family:ui-monospace,monospace;font-size:12px; }


/* --- Lifted from admin/notifications.php --- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: var(--space-4); align-items: start; }
.form-grid label { display:block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.form-grid input, .form-grid select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.nav-links li a.active { color: var(--accent-yellow-light); font-weight: 600; }
.modal-form::backdrop { background: rgba(0, 0, 0, 0.4); }
.modal-form { border: none; border-radius: 12px; width: min(860px, 96vw); padding: 0; box-shadow: var(--shadow-medium); }
.modal-inner { padding: var(--space-5); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.checkbox-row input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; margin-right: 5px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.actions-row { margin-top: var(--space-4); display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.inline-form-row { display:flex; gap:var(--space-3); align-items:end; flex-wrap:wrap; }
.inline-form-row .field { min-width: 320px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } .inline-form-row .field { min-width: 100%; } }


/* --- Lifted from admin/outreach-campaign.php --- */

.counts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.counts-grid .c { background: var(--surface-shadow); border-radius: var(--radius-md); padding: var(--space-3); text-align: center; }
.counts-grid .c .num { font-size: 22px; font-weight: 700; color: var(--accent-yellow); }
.counts-grid .c .label { font-size: 12px; color: var(--text-muted); }
.contacts-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: 13px; }
.contacts-table th, .contacts-table td { padding: 6px 10px; border-bottom: 1px solid var(--neutral-gray); text-align: left; }
.contacts-toolbar { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.filter-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.filter-row a { padding: 4px 10px; border-radius: 999px; background: var(--surface-shadow); text-decoration: none; color: var(--text-secondary); font-size: 13px; }
.filter-row a.active { background: var(--accent-yellow); color: var(--white); }
.button-row { display: flex; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.btn.btn-danger { background: #b91c1c; color: #fff; border: 0; }
.bulk-controls { display: flex; gap: var(--space-2); align-items: center; margin-left: auto; }
.bulk-controls select { min-width: 220px; }


/* --- Lifted from admin/outreach-edit.php --- */

.form-grid { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3) var(--space-4); align-items: start; }
.form-grid label { font-weight: 600; padding-top: 6px; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; }
.form-grid textarea { min-height: 200px; font-family: var(--font-mono, ui-monospace, monospace); }
.weekdays { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.weekdays label { font-weight: 400; padding-top: 0; }
.placeholders { font-family: var(--font-mono, ui-monospace, monospace); color: var(--text-muted); font-size: 13px; }
.button-row { display: flex; gap: var(--space-3); margin-top: var(--space-5); }


/* --- Lifted from admin/outreach-import.php --- */

.preview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.preview-grid .pg { background: var(--surface-shadow); padding: var(--space-3); border-radius: var(--radius-md); text-align: center; }
.preview-grid .pg .num { font-size: 22px; font-weight: 700; color: var(--accent-yellow); }
.preview-grid .pg.bad .num { color: #b91c1c; }
.preview-grid .pg .label { font-size: 12px; color: var(--text-muted); }
.rejected-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: 13px; }
.rejected-table th, .rejected-table td { padding: 6px 10px; border-bottom: 1px solid var(--neutral-gray); text-align: left; }
.sample-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: 13px; }
.sample-table th, .sample-table td { padding: 6px 10px; border-bottom: 1px solid var(--neutral-gray); text-align: left; font-family: var(--font-mono, ui-monospace, monospace); }
.button-row { display: flex; gap: var(--space-3); margin-top: var(--space-5); }


/* --- Lifted from admin/outreach.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--neutral-gray); font-size: 14px; vertical-align: middle; }
.admin-table th { background: var(--surface-shadow); font-weight: 600; color: var(--text-secondary); }
.admin-table td.check, .admin-table th.check { width: 32px; padding-right: 4px; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-shadow); color: var(--text-secondary); }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }
.form-inline { display: flex; gap: var(--space-3); align-items: center; }
.form-inline input[type=text] { flex: 1; max-width: 360px; }
.bulk-bar { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.page-links { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-top: var(--space-3); }
.row-actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
.btn-soft {
  background: rgba(113, 175, 198, 0.10);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 2px rgba(113, 175, 198, 0.24);
}
.btn-soft:hover { background: rgba(113, 175, 198, 0.16); }
.btn.btn-danger { background: #b91c1c; color: #fff; border: 0; }
.btn.btn-danger[disabled] { background: #cbd5e1; cursor: not-allowed; }


/* --- Lifted from admin/outreach-sender-edit.php --- */

.form-grid { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-3) var(--space-4); align-items: start; }
.form-grid label { font-weight: 600; padding-top: 6px; }
.form-grid input, .form-grid select { width: 100%; }
.transport-section { display: none; }
.transport-section.is-active { display: contents; }
.helper { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.status-pill.connected { background: rgba(34, 197, 94, 0.18); color: #0a7f2e; }
.status-pill.not_connected { background: var(--surface-shadow); color: var(--text-secondary); }
.status-pill.refresh_failed { background: rgba(220, 38, 38, 0.15); color: #b91c1c; }


/* --- Lifted from admin/outreach-senders.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--neutral-gray); font-size: 14px; vertical-align: middle; }
.admin-table th { background: var(--surface-shadow); font-weight: 600; color: var(--text-secondary); }
.transport-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-shadow); color: var(--text-secondary); }
.transport-pill.resend { background: rgba(34, 197, 94, 0.12); color: #0a7f2e; }
.transport-pill.smtp { background: rgba(113, 175, 198, 0.20); color: #0b4a72; }
.transport-pill.gmail_oauth { background: rgba(234, 179, 8, 0.18); color: #7c4a03; }
.is-inactive { opacity: 0.5; }
.row-actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }


/* --- Lifted from admin/outreach-settings.php --- */

.form-grid { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3) var(--space-4); align-items: start; }
.form-grid label { font-weight: 600; padding-top: 6px; }
.form-grid textarea { width: 100%; min-height: 120px; font-family: var(--font-mono, ui-monospace, monospace); }
.button-row { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.source-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-shadow); color: var(--text-secondary); }
.source-db { background: #d1fae5; color: #065f46; }
.source-config { background: #e0e7ff; color: #3730a3; }
.source-missing { background: #fee2e2; color: #991b1b; }


/* --- Lifted from admin/outreach-suppressions.php --- */

.admin-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); font-size: 14px; }
.admin-table th, .admin-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; color: var(--text-secondary); }
.reason-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-shadow); }
.reason-unsubscribed { background: #d1fae5; color: #065f46; }
.reason-bounced { background: #fee2e2; color: #991b1b; }
.reason-complaint { background: #fef3c7; color: #92400e; }
.reason-manual { background: #e0e7ff; color: #3730a3; }
.form-inline { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-3); }
.form-inline input { flex: 1; max-width: 320px; }


/* --- Lifted from admin/pricing.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table tbody tr:hover { background: var(--surface-shadow); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.form-section { margin-bottom: var(--space-5); }
.form-section h3 { margin-bottom: var(--space-3); font-size: 16px; }
.feature-row { display: flex; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-3); }
.feature-row .form-group { flex: 1; margin-bottom: 0; }
.feature-row button { margin-bottom: 8px; }
.stripe-box { background: var(--surface-shadow); padding: var(--space-4); border-radius: var(--radius-md); }
.stripe-box code { font-size: 12px; word-break: break-all; }
.nav-links li a.active { color: var(--accent-yellow-light); font-weight: 600; }


/* --- Lifted from docs/index.php --- */

.docs-grid { display:grid; gap:var(--space-4); grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }
.docs-card { display:block; text-decoration:none; color:inherit; }
.docs-card:hover { text-decoration:none; color:inherit; }


/* --- Lifted from modules/enquiries/admin/list.php --- */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--neutral-gray); }
.admin-table th { background: var(--surface-shadow); font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.admin-table tbody tr:hover { background: var(--surface-shadow); }
.admin-table td { font-size: 14px; color: var(--text-secondary); }
.filter-bar { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.filter-bar label { font-weight: 600; font-size: 14px; }
.filter-bar select { padding: 10px 14px; border: 1px solid var(--neutral-gray); border-radius: var(--radius-md); font-size: 14px; background: var(--white); }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.enquiry-name { font-weight: 600; color: var(--text-primary); }
.enquiry-email { color: var(--text-muted); font-size: 14px; }
.enquiry-company { color: var(--text-muted); font-size: 14px; }
.message-preview { color: var(--text-muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-soft); }
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent-yellow); margin-bottom: var(--space-2); }
.stat-label { color: var(--text-muted); font-size: 14px; }
.empty-cell { text-align: center; padding: var(--space-7); color: var(--text-muted); }


/* --- Lifted from modules/guardgeese-monitoring/account/integrations.php --- */

.gg-kind-chip {
    display:inline-block;padding:2px 10px;border-radius:999px;background:var(--surface-shadow);font-size:12px;
}
.gg-integration-card {
    border:1px solid var(--surface-shadow);border-radius:12px;padding:16px;margin-bottom:12px;
}
.gg-section { display:none; }
.gg-section.is-active { display:block; }


/* --- Lifted from modules/guardgeese-monitoring/account/sites.php --- */

.gg-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.gg-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.gg-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--neutral-gray);
  transition: .2s;
  border-radius: 20px;
}
.gg-toggle .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
}
.gg-toggle input:checked + .slider {
  background-color: var(--accent-yellow);
}
.gg-toggle input:checked + .slider:before {
  transform: translateX(16px);
}
.gg-chip {
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:var(--surface-shadow);
  font-size:12px;
  margin-right:6px;
}
.gg-code-block {
  background:#0f172a;
  color:#dbeafe;
  padding:12px;
  border-radius:10px;
  overflow:auto;
  font-size:12px;
  line-height:1.5;
}
.gg-check-grid {
  display:grid;
  gap:12px;
}
.gg-check-row {
  display:grid;
  grid-template-columns: minmax(0, 1.6fr) 90px 110px;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--surface-shadow);
  border-radius:12px;
}
@media (max-width: 860px) {
  .gg-check-row {
    grid-template-columns: 1fr;
  }
}


/* --- Lifted from modules/index-monitor/account/analytics.php --- */

body.im-analytics-page { font-family: 'Inter', -apple-system, sans-serif; background-color: #1a1922; color: #c2cad1; margin: 0; padding: 40px; }
        body.im-analytics-page .container { max-width: 1560px; margin: 0 auto; background: #191a23; padding: 30px; border-radius: 8px; border: 1px solid #2a2c3a; box-shadow: 0 4px 16px -1px rgba(0,0,0,.15); }
        body.im-analytics-page h1, body.im-analytics-page h2 { color: #ffffff; margin-top: 0; }
        body.im-analytics-page .header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        body.im-analytics-page .btn { display: inline-block; padding: 8px 16px; background: #029e74; color: #ffffff; text-decoration: none; border-radius: 8px; cursor: pointer; border: none; font-size: 14px; font-weight: 500; transition: background 0.2s;}
        body.im-analytics-page .btn:hover { background: #08795d; }
        body.im-analytics-page .btn-secondary { background: transparent; border: 1px solid #2a2c3a; color: #c2cad1; }
        body.im-analytics-page .btn-secondary:hover { background: #1e1f2a; border-color: #72767a; color: #ffffff; }
        
        body.im-analytics-page .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        body.im-analytics-page .stat-card { background: #1a1922; border: 1px solid #2a2c3a; border-radius: 8px; padding: 20px; }
        body.im-analytics-page .stat-label { font-size: 13px; color: #72767a; margin-bottom: 8px; }
        body.im-analytics-page .stat-value { font-size: 22px; font-weight: 700; color: #ffffff; }
        body.im-analytics-page .stat-value.warning { color: #ffc107; }
        body.im-analytics-page .stat-value.danger { color: #ff8a8a; }

        body.im-analytics-page .card { border: 1px solid #2a2c3a; background: #1a1922; border-radius: 8px; padding: 25px; margin-bottom: 20px; }
        body.im-analytics-page table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        body.im-analytics-page th, body.im-analytics-page td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #2a2c3a; font-size: 14px; }
        body.im-analytics-page th { background: #1b1d26; color: #72767a; font-weight: 600; font-size: 13px; border-bottom: 1px solid #2a2c3a;}
        body.im-analytics-page tr:hover td { background-color: #1e1f2a; }

        body.im-analytics-page .badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
        body.im-analytics-page .badge.high { background: #3b2a00; color: #ffc107; }
        body.im-analytics-page .badge.medium { background: #1a2a3a; color: #6eb5ff; }
        body.im-analytics-page .badge.low { background: #2a2a2a; color: #999999; }

/* --- Lifted from modules/index-monitor/account/authorize-properties.php --- */

body.im-authorize-properties-page { font-family: 'Inter', -apple-system, sans-serif; background-color: #1a1922; color: #c2cad1; margin: 0; padding: 40px; }
        body.im-authorize-properties-page .container { max-width: 1560px; margin: 0 auto; background: #191a23; padding: 30px; border-radius: 8px; border: 1px solid #2a2c3a; box-shadow: 0 4px 16px -1px rgba(0,0,0,.15); }
        body.im-authorize-properties-page h1, body.im-authorize-properties-page h2 { color: #ffffff; margin-top: 0; }
        body.im-authorize-properties-page .btn { display: inline-block; padding: 10px 20px; background: #029e74; color: #ffffff; text-decoration: none; border-radius: 8px; cursor: pointer; border: none; font-size: 14px; font-weight: 500; transition: background 0.2s; margin-top: 15px;}
        body.im-authorize-properties-page .btn:hover { background: #08795d; }
        body.im-authorize-properties-page .btn-toggle { background: transparent; border: 1px solid #2a2c3a; padding: 6px 12px; cursor: pointer; border-radius: 6px; color: #72767a; font-size: 13px; margin-top: 15px; }
        body.im-authorize-properties-page .btn-toggle:hover { background: #1e1f2a; color: #ffffff; }
        body.im-authorize-properties-page table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        body.im-authorize-properties-page th, body.im-authorize-properties-page td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #2a2c3a; font-size: 14px; }
        body.im-authorize-properties-page th { background: #1b1d26; color: #72767a; font-weight: 600; font-size: 13px; text-transform: uppercase; border-bottom: 1px solid #2a2c3a;}
        body.im-authorize-properties-page tr:hover td { background-color: #1e1f2a; }
        body.im-authorize-properties-page tr.prop-child td:first-child { padding-left: 36px; }
        body.im-authorize-properties-page tr.prop-child td:first-child::before { content: "↳ "; color: #72767a; }
        body.im-authorize-properties-page tr.auth-hidden-default { display: none; }
        body.im-authorize-properties-page tr.auth-hidden-default.auth-show-extra { display: table-row; }
        body.im-authorize-properties-page input[type="text"], body.im-authorize-properties-page select { width: 100%; padding: 10px 14px; border: 1px solid #2a2c3a; border-radius: 8px; background: #1a1922; color: #c2cad1; font-family: 'Inter', sans-serif; box-sizing: border-box; }
        body.im-authorize-properties-page input[type="text"]:focus, body.im-authorize-properties-page select:focus { outline: none; border-color: #029e74; }
        body.im-authorize-properties-page .hint { font-size: 12px; color: #72767a; }
        body.im-authorize-properties-page .badge.domain { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; background: #1a2a3a; color: #6eb5ff; margin-left: 8px; }

/* --- Lifted from modules/index-monitor/account/clustering_prompt.php --- */

    .clustering-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
    .clustering-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
    .clustering-modal-panel {
        position: relative; max-width: 580px; width: 100%; background: #191a23; border: 1px solid #2a2c3a;
        border-radius: 12px; padding: 28px 32px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    }
    .clustering-modal-close {
        position: absolute; top: 12px; right: 14px; background: transparent; border: none; color: #72767a;
        font-size: 24px; cursor: pointer; line-height: 1; padding: 4px 8px;
    }
    .clustering-modal-close:hover { color: #ffffff; }
    .clustering-modal-panel h2 { color: #ffffff; margin: 0 0 12px; font-size: 20px; }
    .clustering-modal-panel h3 { color: #ffffff; margin: 20px 0 8px; font-size: 15px; }
    .clustering-modal-lead, .clustering-modal-stat { color: #c2cad1; font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
    .clustering-modal-steps { margin: 0 0 16px; padding-left: 20px; color: #72767a; font-size: 13px; line-height: 1.6; }
    .clustering-modal-steps li { margin-bottom: 4px; }
    .clustering-hub-preview { list-style: none; margin: 0 0 20px; padding: 12px 14px; background: #1a1922; border-radius: 8px; border: 1px solid #2a2c3a; }
    .clustering-hub-preview li { font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .clustering-hub-preview li:last-child { margin-bottom: 0; }
    .clustering-hub-preview code { color: #6eb5ff; word-break: break-all; }
    .clustering-hub-preview span { color: #ffc107; white-space: nowrap; }
    .clustering-hub-preview .clustering-more { color: #72767a; font-style: italic; }
    .clustering-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
    .clustering-modal-actions .btn { margin-top: 0; }
    .clustering-modal-actions .clustering-later { margin-left: auto; }
    .clustering-manual-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #2a2c3a; }
    .clustering-manual-form input[type="text"] {
        width: 100%; padding: 10px 14px; border: 1px solid #2a2c3a; border-radius: 8px;
        background: #1a1922; color: #c2cad1; box-sizing: border-box; margin-bottom: 10px;
    }
    .clustering-manual-form .hint { font-size: 12px; color: #72767a; margin: 0 0 12px; }


/* --- Lifted from modules/index-monitor/account/connected-accounts.php --- */

body.im-connected-accounts-page {
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: #1a1922;
            color: #c2cad1;
            margin: 0;
            padding: 40px;
        }

        body.im-connected-accounts-page .container {
            max-width: 1560px;
            margin: 0 auto;
            background: #191a23;
            padding: 30px;
            border-radius: 8px;
            border: 1px solid #2a2c3a;
            box-shadow: 0 4px 16px -1px rgba(0, 0, 0, .15);
        }

        body.im-connected-accounts-page h1, body.im-connected-accounts-page h2 {
            color: #ffffff;
            margin-top: 0;
        }

        body.im-connected-accounts-page .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #029e74;
            color: #ffffff;
            text-decoration: none;
            border-radius: 8px;
            cursor: pointer;
            border: none;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.2s;
        }

        body.im-connected-accounts-page .btn:hover {
            background: #08795d;
        }

        body.im-connected-accounts-page .btn-outline {
            background: transparent;
            color: #c2cad1;
            border: 1px solid #2a2c3a;
        }

        body.im-connected-accounts-page .btn-outline:hover {
            background: #1e1f2a;
            color: #ffffff;
            border-color: #72767a;
        }

        body.im-connected-accounts-page .card {
            border: 1px solid #2a2c3a;
            background: #1a1922;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 20px;
        }

        body.im-connected-accounts-page .header-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        body.im-connected-accounts-page .hint {
            font-size: 12px;
            color: #72767a;
            margin-top: 4px;
        }

/* --- Lifted from modules/index-monitor/account/dashboard.php --- */

body.im-dashboard-page {
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: #1a1922;
            color: #c2cad1;
            margin: 0;
            padding: 40px;
        }

        body.im-dashboard-page .container {
            max-width: 1560px;
            margin: 0 auto;
            background: #191a23;
            padding: 30px;
            border-radius: 8px;
            border: 1px solid #2a2c3a;
            box-shadow: 0 4px 16px -1px rgba(0, 0, 0, .15);
        }

        body.im-dashboard-page h1, body.im-dashboard-page h2 {
            color: #ffffff;
            margin-top: 0;
        }

        body.im-dashboard-page .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #029e74;
            color: #ffffff;
            text-decoration: none;
            border-radius: 8px;
            cursor: pointer;
            border: none;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.2s;
        }

        body.im-dashboard-page .btn:hover {
            background: #08795d;
        }

        body.im-dashboard-page .btn-outline {
            background: transparent;
            color: #c2cad1;
            border: 1px solid #2a2c3a;
        }

        body.im-dashboard-page .btn-outline:hover {
            background: #1e1f2a;
            color: #ffffff;
            border-color: #72767a;
        }

        body.im-dashboard-page .btn-toggle {
            background: transparent;
            border: 1px solid #2a2c3a;
            padding: 6px 12px;
            cursor: pointer;
            border-radius: 6px;
            color: #72767a;
            font-size: 13px;
            transition: background 0.2s;
        }

        body.im-dashboard-page .btn-toggle:hover {
            background: #1e1f2a;
            color: #ffffff;
        }

        body.im-dashboard-page .card {
            border: 1px solid #2a2c3a;
            background: #1a1922;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 20px;
        }

        body.im-dashboard-page table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        body.im-dashboard-page th, body.im-dashboard-page td {
            text-align: left;
            padding: 12px 16px;
            border-bottom: 1px solid #2a2c3a;
            font-size: 14px;
        }

        body.im-dashboard-page th {
            background: #1b1d26;
            color: #72767a;
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
            border-bottom: 1px solid #2a2c3a;
        }

        body.im-dashboard-page tr:hover td {
            background-color: #1e1f2a;
        }

        body.im-dashboard-page tr.prop-child td:first-child {
            padding-left: 36px;
        }

        body.im-dashboard-page tr.prop-child td:first-child::before {
            content: "↳ ";
            color: #72767a;
        }

        body.im-dashboard-page tr.index-hidden-default {
            display: none;
        }

        body.im-dashboard-page tr.index-hidden-default.index-show-extra {
            display: table-row;
        }

        body.im-dashboard-page .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        body.im-dashboard-page .badge.status {
            background: #192c2c;
            color: #17b26a;
        }

        body.im-dashboard-page .badge.domain {
            background: #1a2a3a;
            color: #6eb5ff;
        }

        body.im-dashboard-page .header-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        body.im-dashboard-page .header-actions-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        body.im-dashboard-page a.text-link {
            color: #029e74;
            text-decoration: none;
            font-weight: 500;
        }

        body.im-dashboard-page a.text-link:hover {
            color: #08795d;
            text-decoration: underline;
        }

        body.im-dashboard-page .hint {
            font-size: 12px;
            color: #72767a;
            margin-top: 4px;
        }

        body.im-dashboard-page .alert {
            padding: 14px 16px;
            margin-bottom: 20px;
            border-radius: 8px;
            border: 1px solid;
            font-size: 14px;
            line-height: 1.5;
        }

        body.im-dashboard-page .alert-success {
            background: #162a2d;
            color: #b8e4d8;
            border-color: #08795d;
        }

        body.im-dashboard-page .alert-error {
            background: #3a1515;
            color: #ff8a8a;
            border-color: #5c2020;
        }

        body.im-dashboard-page .alert-detail {
            margin-top: 8px;
            font-size: 12px;
            color: #72767a;
            word-break: break-word;
        }

        body.im-dashboard-page .btn-danger {
            background: transparent;
            color: #ff8a8a;
            border: 1px solid #5c2020;
            font-size: 13px;
            padding: 6px 12px;
            margin-top: 0;
        }

        body.im-dashboard-page .btn-danger:hover {
            background: #3a1515;
            color: #ffffff;
            border-color: #ff8a8a;
        }

        body.im-dashboard-page .testing-card {
            border-color: #5c2020;
            opacity: 0.9;
        }

        body.im-dashboard-page .testing-card h2 {
            font-size: 16px;
            color: #ff8a8a;
        }

        /* Summary cards */
        body.im-dashboard-page .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        body.im-dashboard-page .stat-card {
            background: #1a1922;
            border: 1px solid #2a2c3a;
            border-radius: 8px;
            padding: 20px;
        }

        body.im-dashboard-page .stat-label {
            font-size: 13px;
            color: #72767a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        body.im-dashboard-page .stat-value {
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
        }

        body.im-dashboard-page .stat-value.warning {
            color: #ff8a8a;
        }

        body.im-dashboard-page .stat-value.warning::before {
            content: "⚠ ";
        }

        body.im-dashboard-page .info-icon {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #2a2c3a;
            color: #72767a;
            font-size: 10px;
            text-align: center;
            line-height: 14px;
            cursor: help;
        }

        @media (max-width: 768px) {
            body.im-dashboard-page .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Toggle switch */
        body.im-dashboard-page .toggle-switch {
            position: relative;
            display: inline-block;
            width: 32px;
            height: 18px;
            vertical-align: middle;
            margin-left: 10px;
        }

        body.im-dashboard-page .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        body.im-dashboard-page .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #2a2c3a;
            border-radius: 18px;
            transition: 0.2s;
            border: 1px solid #72767a;
        }

        body.im-dashboard-page .toggle-slider:before {
            position: absolute;
            content: "";
            height: 12px;
            width: 12px;
            left: 2px;
            bottom: 2px;
            background-color: #72767a;
            border-radius: 50%;
            transition: 0.2s;
        }

        body.im-dashboard-page .toggle-switch input:checked+.toggle-slider {
            background-color: #029e74;
            border-color: #029e74;
        }

        body.im-dashboard-page .toggle-switch input:checked+.toggle-slider:before {
            transform: translateX(14px);
            background-color: #fff;
        }

/* --- Lifted from modules/index-monitor/account/ingest-urls.php --- */

.im-ingest-urls-page { font-family: 'Inter', -apple-system, sans-serif; background-color: #1a1922; color: #c2cad1; margin: 0; padding: 40px; }
        .im-ingest-urls-page .container { max-width: 900px; margin: 0 auto; background: #191a23; padding: 30px; border-radius: 8px; border: 1px solid #2a2c3a; box-shadow: 0 4px 16px -1px rgba(0,0,0,.15); }
        .im-ingest-urls-page h1, .im-ingest-urls-page h2 { color: #ffffff; margin-top: 0; }
        .im-ingest-urls-page .btn { display: inline-block; padding: 10px 20px; background: #029e74; color: #ffffff; text-decoration: none; border-radius: 8px; cursor: pointer; border: none; font-size: 14px; font-weight: 500; transition: background 0.2s; margin-top: 15px;}
        .im-ingest-urls-page .btn:hover { background: #08795d; }
        .im-ingest-urls-page .form-group { margin-bottom: 20px; }
        .im-ingest-urls-page .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #c2cad1; font-size: 14px; }
        .im-ingest-urls-page .form-group select, .im-ingest-urls-page .form-group input[type="text"], .im-ingest-urls-page .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #2a2c3a; border-radius: 8px; background: #1a1922; color: #c2cad1; font-family: 'Inter', sans-serif; box-sizing: border-box; }
        .im-ingest-urls-page .form-group textarea { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 13px; color: #c9d1d9; }
        .im-ingest-urls-page .form-group input:focus, .im-ingest-urls-page .form-group textarea:focus, .im-ingest-urls-page .form-group select:focus { outline: none; border-color: #029e74; }
        .im-ingest-urls-page .form-group input[type="file"] { padding: 10px 0; color: #72767a; }
        .im-ingest-urls-page .alert { padding: 16px; margin-bottom: 25px; border-radius: 8px; border: 1px solid; font-size: 14px;}
        .im-ingest-urls-page .alert-error { background: #3a1515; color: #ff8a8a; border-color: #5c2020; }
        .im-ingest-urls-page .alert-success { background: #162a2d; color: #b8e4d8; border-color: #08795d; }
        .im-ingest-urls-page .method-tabs { display: flex; border-bottom: 1px solid #2a2c3a; margin-bottom: 20px; }
        .im-ingest-urls-page .method-tab { padding: 12px 20px; cursor: pointer; color: #72767a; font-weight: 500; transition: color 0.2s; }
        .im-ingest-urls-page .method-tab:hover { color: #c2cad1; }
        .im-ingest-urls-page .method-tab.active { border-bottom: 2px solid #029e74; color: #029e74; font-weight: 600; margin-bottom: -1px; }
        .im-ingest-urls-page .method-content { display: none; }
        .im-ingest-urls-page .method-content.active { display: block; }
        .im-ingest-urls-page .checkbox-panel { margin-top: 20px; background: #1a1922; padding: 16px; border-radius: 8px; border: 1px solid #2a2c3a; }

/* --- Lifted from modules/index-monitor/account/setup-wizard.php --- */

body.im-setup-wizard-page {
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: #1a1922;
            color: #c2cad1;
            margin: 0;
            padding: 40px;
        }

        body.im-setup-wizard-page .container {
            max-width: 1560px;
            margin: 0 auto;
            background: #191a23;
            padding: 30px;
            border-radius: 8px;
            border: 1px solid #2a2c3a;
            box-shadow: 0 4px 16px -1px rgba(0, 0, 0, .15);
        }

        body.im-setup-wizard-page h1, body.im-setup-wizard-page h2 {
            color: #ffffff;
            margin-top: 0;
        }

        body.im-setup-wizard-page .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #029e74;
            color: #ffffff;
            text-decoration: none;
            border-radius: 8px;
            cursor: pointer;
            border: none;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.2s;
            margin-top: 10px;
        }

        body.im-setup-wizard-page .btn:hover {
            background: #08795d;
        }

        body.im-setup-wizard-page .btn-success {
            background: #17b26a;
        }

        body.im-setup-wizard-page .btn-success:hover {
            background: #029e74;
        }

        body.im-setup-wizard-page .btn-outline {
            background: transparent;
            color: #c2cad1;
            border: 1px solid #2a2c3a;
            padding: 15px 30px;
            margin-right: 15px;
        }

        body.im-setup-wizard-page .btn-outline:hover {
            background: #1e1f2a;
            color: #ffffff;
            border-color: #72767a;
        }

        body.im-setup-wizard-page .form-group {
            margin-bottom: 20px;
        }

        body.im-setup-wizard-page .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #c2cad1;
            font-size: 14px;
        }

        body.im-setup-wizard-page .form-group input[type="text"], body.im-setup-wizard-page .form-group input[type="password"] {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #2a2c3a;
            border-radius: 8px;
            background: #1a1922;
            color: #c2cad1;
            font-family: 'Inter', sans-serif;
            box-sizing: border-box;
        }

        body.im-setup-wizard-page .form-group textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #2a2c3a;
            border-radius: 8px;
            background: #1a1922;
            color: #c9d1d9;
            font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
            box-sizing: border-box;
            font-size: 13px;
        }

        body.im-setup-wizard-page .form-group input:focus, body.im-setup-wizard-page .form-group textarea:focus {
            outline: none;
            border-color: #029e74;
        }

        body.im-setup-wizard-page .form-group input[type="file"] {
            padding: 10px 0;
            color: #72767a;
        }

        body.im-setup-wizard-page .alert {
            padding: 16px;
            margin-bottom: 25px;
            border-radius: 8px;
            border: 1px solid;
            font-size: 14px;
        }

        body.im-setup-wizard-page .alert-error {
            background: #3a1515;
            color: #ff8a8a;
            border-color: #5c2020;
        }

        body.im-setup-wizard-page .alert-success {
            background: #162a2d;
            color: #b8e4d8;
            border-color: #08795d;
        }

        body.im-setup-wizard-page .alert-warning {
            background: #3b2a00;
            color: #ffc107;
            border-color: #5c4200;
            border-left: 5px solid #ffc107;
            font-weight: bold;
        }

        body.im-setup-wizard-page .hidden {
            display: none;
        }

        body.im-setup-wizard-page .step-box {
            background: #1a1922;
            padding: 25px;
            border: 1px solid #2a2c3a;
            border-radius: 8px;
            margin-top: 20px;
        }

        body.im-setup-wizard-page .step-box h2 {
            margin-top: 0;
            font-size: 18px;
            border-bottom: 1px solid #2a2c3a;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        body.im-setup-wizard-page .instructions-list {
            margin-bottom: 30px;
            line-height: 1.6;
            color: #c2cad1;
            font-size: 14px;
        }

        body.im-setup-wizard-page .instructions-list li {
            margin-bottom: 15px;
        }

        body.im-setup-wizard-page .instructions-list a {
            color: #029e74;
            text-decoration: none;
        }

        body.im-setup-wizard-page .instructions-list a:hover {
            text-decoration: underline;
        }

        body.im-setup-wizard-page .divider {
            text-align: center;
            margin: 30px 0;
            position: relative;
        }

        body.im-setup-wizard-page .divider::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 100%;
            height: 1px;
            background: #2a2c3a;
            z-index: 1;
        }

        body.im-setup-wizard-page .divider span {
            background: #191a23;
            padding: 0 15px;
            position: relative;
            z-index: 2;
            color: #72767a;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        body.im-setup-wizard-page code {
            background: #191a23;
            padding: 4px 8px;
            border-radius: 4px;
            font-family: ui-monospace, SFMono-Regular, monospace;
            font-size: 13px;
            color: #c9d1d9;
            border: 1px solid #2a2c3a;
        }

/* --- Lifted from modules/index-monitor/account/view-urls.php --- */

body.im-view-urls-page { font-family: 'Inter', -apple-system, sans-serif; background-color: #1a1922; color: #c2cad1; margin: 0; padding: 40px; }
        body.im-view-urls-page .container { max-width: 1560px; margin: 0 auto; background: #191a23; padding: 30px; border-radius: 8px; border: 1px solid #2a2c3a; box-shadow: 0 4px 16px -1px rgba(0,0,0,.15); }
        body.im-view-urls-page h1 { color: #ffffff; margin-top: 0; }
        body.im-view-urls-page .header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        body.im-view-urls-page .btn { display: inline-block; padding: 8px 16px; background: #029e74; color: #ffffff; text-decoration: none; border-radius: 8px; cursor: pointer; border: none; font-size: 14px; font-weight: 500; transition: background 0.2s;}
        body.im-view-urls-page .btn:hover { background: #08795d; }
        body.im-view-urls-page .btn-secondary { background: transparent; border: 1px solid #2a2c3a; color: #c2cad1; }
        body.im-view-urls-page .btn-secondary:hover { background: #1e1f2a; border-color: #72767a; color: #ffffff; }
        body.im-view-urls-page .btn:disabled { background: #2a2c3a; color: #72767a; cursor: not-allowed; border: none; }
        body.im-view-urls-page table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        body.im-view-urls-page th, body.im-view-urls-page td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #2a2c3a; font-size: 14px; color: #c2cad1; }
        body.im-view-urls-page th { background: #1b1d26; color: #72767a; position: sticky; top: 0; font-weight: 600; font-size: 13px; border-bottom: 1px solid #2a2c3a;}
        body.im-view-urls-page tr:hover td { background-color: #1e1f2a; }
        body.im-view-urls-page .badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
        body.im-view-urls-page .badge.high { background: #3b2a00; color: #ffc107; }
        body.im-view-urls-page .badge.medium { background: #1a2a3a; color: #6eb5ff; }
        body.im-view-urls-page .badge.low { background: #2a2a2a; color: #999999; }
        body.im-view-urls-page .badge.omit { background: #3a1515; color: #ff8a8a; }
        body.im-view-urls-page .badge.status { background: #192c2c; color: #17b26a; } /* Semantic green from DESIGN.md */
        body.im-view-urls-page .search-box { padding: 10px 14px; width: 350px; border: 1px solid #2a2c3a; border-radius: 8px; background: #1a1922; color: #c2cad1; font-family: 'Inter', sans-serif;}
        body.im-view-urls-page .search-box:focus { outline: none; border-color: #029e74; }
        body.im-view-urls-page .search-box::placeholder { color: #72767a; }
        body.im-view-urls-page .filter-select { padding: 8px 12px; border: 1px solid #2a2c3a; border-radius: 8px; background: #1a1922; color: #c2cad1; font-family: 'Inter', sans-serif; font-size: 14px; max-width: 200px; }
        body.im-view-urls-page .filter-select:focus { outline: none; border-color: #029e74; }
        body.im-view-urls-page .pagination { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
        body.im-view-urls-page .page-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
        body.im-view-urls-page .page-buttons button { min-width: 38px; padding: 8px 10px; font-size: 13px; }
        /* Scrollbar styling for dark theme */
        body.im-view-urls-page::-webkit-scrollbar { width: 8px; height: 8px; }
        body.im-view-urls-page::-webkit-scrollbar-track { background: #191a23; }
        body.im-view-urls-page::-webkit-scrollbar-thumb { background: #2a2c3a; border-radius: 4px; }
        body.im-view-urls-page::-webkit-scrollbar-thumb:hover { background: #72767a; }
        body.im-view-urls-page .clustering-inline-banner {
            background: #3b2a00; border: 1px solid #5c4a00; border-radius: 8px; padding: 14px 18px;
            margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
        }
        body.im-view-urls-page .clustering-inline-banner p { margin: 0; color: #ffc107; font-size: 14px; flex: 1; min-width: 200px; }
        body.im-view-urls-page .parent-cell { font-size: 12px; color: #6eb5ff; word-break: break-all; }
        body.im-view-urls-page .parent-cell.missing { color: #72767a; font-style: italic; }

/* --- Lifted from modules/solar-capture/public/plugin-preview/pipeline.php --- */

/* Drag and drop visual feedback */
.sc-kanban-card--dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing !important;
}

.sc-kanban-col--drag-over {
    background-color: rgba(34, 113, 177, 0.1);
    border: 2px dashed #2271b1;
}

.sc-kanban-card {
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sc-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sc-kanban-col__body {
    min-height: 100px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

/* Ensure cards can be dragged */
.sc-kanban-card[draggable="true"] {
    -webkit-user-drag: element;
    -khtml-user-drag: element;
    -moz-user-drag: element;
    -o-user-drag: element;
    user-drag: element;
}


/* --- Lifted from partials/sc-brochure.php --- */

  .sc-brochure {
    display: grid;
    gap: 34px;
    padding: 8px 0 18px;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sc-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .sc-compare__card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(109, 74, 255, 0.08);
  }

  .sc-compare__card-head {
    padding: 18px 18px 14px;
    background:
      radial-gradient(circle at top right, rgba(109, 74, 255, 0.18), transparent 42%),
      linear-gradient(180deg, rgba(247, 245, 255, 0.98), rgba(255, 255, 255, 0.96));
    border-bottom: 1px solid var(--gray-200);
  }

  .sc-compare__card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--violet-ink);
  }

  .sc-compare__card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--violet-deep);
  }

  .sc-compare__list {
    margin: 0;
    padding: 10px 0 0;
    list-style: none;
  }

  .sc-compare__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid rgba(209, 213, 219, 0.72);
  }

  .sc-compare__item:first-child {
    border-top: none;
  }

  .sc-compare__feature {
    font-size: 13px;
    line-height: 1.4;
    color: var(--violet-ink);
  }

  .sc-compare__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .sc-compare__status--both {
    color: #0f766e;
    background: rgba(39, 221, 177, 0.15);
  }

  .sc-compare__status--premium {
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #4d35d6);
  }

  .sc-compare__status--free {
    color: var(--violet-deep);
    background: rgba(226, 219, 255, 0.92);
  }

  .sc-showcase {
    text-align: center;
  }

  .sc-showcase > h2,
  .sc-showcase > p {
    margin-left: auto;
    margin-right: auto;
  }

  .sc-showcase > h2 {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--violet-ink);
  }

  .sc-showcase > p {
    max-width: 48rem;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--violet-deep);
  }

  .sc-showcase__shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(109, 74, 255, 0.14);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: grid;
    gap: 18px;
  }

  .sc-showcase__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sc-showcase__legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--violet-deep);
    background: rgba(226, 219, 255, 0.74);
    border: 1px solid rgba(109, 74, 255, 0.14);
  }

  .sc-showcase__legend-chip--premium {
    color: #9a6700;
    background: rgba(255, 246, 214, 0.9);
    border-color: rgba(212, 165, 55, 0.26);
  }

  .sc-gallery-stage {
    appearance: none;
    border: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .sc-gallery-stage:focus-visible {
    outline: 3px solid rgba(109, 74, 255, 0.55);
    outline-offset: 4px;
    border-radius: 24px;
  }

  .sc-gallery-stage__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
      radial-gradient(circle at top, rgba(109, 74, 255, 0.08), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 255, 0.92));
    border: 1px solid rgba(109, 74, 255, 0.12);
    box-shadow: 0 18px 40px rgba(59, 37, 128, 0.12);
  }

  .sc-gallery-stage__frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(27, 18, 70, 0.12);
  }

  .sc-gallery-stage__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.94);
    color: var(--violet-ink);
    border: 1px solid rgba(109, 74, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .sc-gallery-stage__badge--premium {
    color: #9a6700;
    background: linear-gradient(135deg, #fff9e6, #fff);
    border-color: rgba(212, 165, 55, 0.45);
  }

  .sc-gallery-stage__meta {
    display: grid;
    gap: 8px;
    padding: 16px 4px 2px;
    text-align: center;
  }

  .sc-gallery-stage__title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--violet-ink);
  }

  .sc-gallery-stage__caption {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--violet-deep);
  }

  .sc-gallery-stage__hint {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--violet-deep);
    background: rgba(226, 219, 255, 0.62);
  }

  .sc-gallery-rail {
    display: grid;
    gap: 12px;
  }

  .sc-gallery-rail__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .sc-gallery-rail__head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-deep);
  }

  .sc-gallery-rail__count {
    font-size: 12px;
    font-weight: 700;
    color: rgba(55, 37, 128, 0.82);
  }

  .sc-gallery-rail__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .sc-gallery-thumb {
    appearance: none;
    border: 1px solid rgba(109, 74, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    padding: 10px;
    display: grid;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(59, 37, 128, 0.08);
    scroll-snap-align: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .sc-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(59, 37, 128, 0.12);
  }

  .sc-gallery-thumb:focus-visible {
    outline: 3px solid rgba(109, 74, 255, 0.45);
    outline-offset: 2px;
  }

  .sc-gallery-thumb.is-active {
    border-color: rgba(109, 74, 255, 0.44);
    box-shadow: 0 18px 34px rgba(59, 37, 128, 0.14);
    transform: translateY(-1px);
  }

  .sc-gallery-thumb__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background:
      radial-gradient(circle at top, rgba(109, 74, 255, 0.08), transparent 56%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 241, 255, 0.92));
  }

  .sc-gallery-thumb__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  .sc-gallery-thumb__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet-ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(109, 74, 255, 0.18);
  }

  .sc-gallery-thumb__badge--premium {
    color: #9a6700;
    background: rgba(255, 246, 214, 0.94);
    border-color: rgba(212, 165, 55, 0.3);
  }

  .sc-gallery-thumb__title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--violet-ink);
  }

  .sc-gallery-thumb__caption {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(55, 37, 128, 0.8);
  }

  .sc-gallery-empty {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(109, 74, 255, 0.24);
    color: var(--violet-deep);
    text-align: center;
  }

  .sc-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
  }

  .sc-lightbox[hidden] {
    display: none;
  }

  .sc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.78);
    backdrop-filter: blur(10px);
  }

  .sc-lightbox__panel {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-medium);
  }

  .sc-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    appearance: none;
    border: 0;
    background: rgba(226, 219, 255, 0.92);
    color: var(--violet-ink);
    border-radius: 999px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .sc-lightbox__close:hover,
  .sc-lightbox__close:focus-visible {
    background: rgba(109, 74, 255, 0.12);
  }

  .sc-lightbox__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 48vh;
    padding: 0;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .sc-lightbox__nav {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
  }

  .sc-lightbox__arrow {
    pointer-events: auto;
    appearance: none;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    color: var(--violet-ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .sc-lightbox__arrow:hover,
  .sc-lightbox__arrow:focus-visible {
    transform: scale(1.05);
    background: #fff;
  }

  .sc-lightbox__arrow:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    transform: none;
  }

  .sc-lightbox__strip {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 44vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .sc-lightbox__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 24px 24px 28px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .sc-lightbox__tier {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e2dbff;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sc-lightbox__tier--premium {
    color: #fff6d6;
    background: rgba(212, 165, 55, 0.15);
    border-color: rgba(212, 165, 55, 0.35);
  }

  .sc-lightbox__slide img {
    display: block;
    max-width: 100%;
    max-height: min(58vh, 520px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }

  .sc-lightbox__caption {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(226, 219, 255, 0.86);
    text-align: center;
    max-width: 38rem;
  }

  .sc-lightbox__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
  }

  .sc-lightbox__counter {
    flex: 0 0 auto;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(226, 219, 255, 0.82);
  }

  .sc-lightbox__footer-note {
    font-size: 12px;
    font-weight: 600;
    color: rgba(226, 219, 255, 0.6);
  }

  @media (min-width: 900px) {
    .sc-compare {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-showcase__shell {
      padding: 24px;
    }
  }

  @media (max-width: 720px) {
    .sc-compare__item {
      grid-template-columns: minmax(0, 1fr);
    }

    .sc-compare__status {
      min-width: 0;
      justify-self: start;
    }

    .sc-showcase__shell {
      padding: 16px;
      border-radius: 22px;
    }

    .sc-gallery-stage__frame {
      border-radius: 20px;
      padding: 14px;
    }

    .sc-gallery-rail__list {
      grid-auto-columns: minmax(148px, 78vw);
    }

    .sc-lightbox {
      padding: 12px;
    }

    .sc-lightbox__slide {
      padding: 24px 14px 22px;
    }

    .sc-lightbox__footer {
      flex-direction: column;
      justify-content: center;
    }
  }


/* --- Lifted from plugin-preview/pipeline.php --- */

/* Drag and drop visual feedback */
.sc-kanban-card--dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing !important;
}

.sc-kanban-col--drag-over {
    background-color: rgba(34, 113, 177, 0.1);
    border: 2px dashed #2271b1;
}

.sc-kanban-card {
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sc-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sc-kanban-col__body {
    min-height: 100px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

/* Ensure cards can be dragged */
.sc-kanban-card[draggable="true"] {
    -webkit-user-drag: element;
    -khtml-user-drag: element;
    -moz-user-drag: element;
    -o-user-drag: element;
    user-drag: element;
}


/* --- Lifted from setup/index.php --- */

.setup-container { max-width: 640px; margin: 60px auto; padding: 0 24px; }
.setup-card { background: var(--white); border: 1px solid var(--neutral-gray); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-soft); }
.setup-steps { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; justify-content: center; }
.step { flex: 1; text-align: center; padding: var(--space-2); border-radius: var(--radius-md); font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--surface-shadow); min-width: 72px; }
.step.active { background: var(--accent-yellow); color: var(--text-primary); }
.step.done { background: var(--success-bg); color: var(--success-text); }


/* --- Lifted from unsubscribe.php --- */

body.unsubscribe-page {
  font-family: system-ui, sans-serif;
  max-width: 520px;
  margin: 48px auto;
  padding: 0 24px;
  color: #222;
  line-height: 1.5;
}

body.unsubscribe-page button {
  font-size: 16px;
  padding: 12px 24px;
  background: #001d3d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

body.unsubscribe-page .muted {
  color: #666;
  font-size: 13px;
  margin-top: 24px;
}

/* --- Lifted from index.php --- */

body.home-page .hero-landing {
    background:
      radial-gradient(circle at top right, rgba(113, 175, 198, 0.22), transparent 24%),
      radial-gradient(circle at top left, rgba(199, 208, 205, 0.14), transparent 18%),
      var(--surface-shadow);
    color: var(--text-primary);
    padding: 90px 32px 60px;
    text-align: center;
  }
  body.home-page .hero-landing .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.home-page .hero-landing-copy {
    max-width: 760px;
  }
  body.home-page .hero-landing p.hero-landing-kicker {
    max-width: none;
    margin: 0 0 16px;
    opacity: 0.85;
    font-size: 14px;
    line-height: 1.5;
  }
  body.home-page .hero-landing h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    color: var(--text-primary);
  }
  body.home-page .hero-landing p {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
  }
  body.home-page .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
  }
  body.home-page .hero-actions .btn-primary {
    background: var(--accent-yellow);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 14px 26px rgba(113, 175, 198, 0.28);
  }
  body.home-page .hero-actions .btn-primary:hover {
    background: var(--accent-yellow-light);
    box-shadow: 0 18px 32px rgba(113, 175, 198, 0.24);
  }
  body.home-page .hero-actions .btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(113, 175, 198, 0.42);
    box-shadow: none;
  }
  body.home-page .hero-actions .btn-ghost:hover {
    background: rgba(113, 175, 198, 0.10);
    border-color: rgba(113, 175, 198, 0.54);
  }
  body.home-page .hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
  body.home-page .pill {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(199, 208, 205, 0.95);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
  }
  body.home-page .features {
    background: transparent;
    padding: 64px 32px;
  }
  body.home-page .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  @media (max-width: 900px) {
    body.home-page .features-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    body.home-page .features-grid { grid-template-columns: 1fr; }
  }
  body.home-page .feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--neutral-gray);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  body.home-page .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }
  body.home-page .feature-card h3 {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
  }
  body.home-page .feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
  }
  body.home-page .pricing-section {
    background: transparent;
    padding: 60px 32px 100px;
  }
  body.home-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  body.home-page .pricing-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--neutral-gray);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  body.home-page .pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }
  body.home-page .pricing-card.featured {
    border: 2px solid var(--accent-yellow);
    box-shadow: var(--shadow-focus);
  }
  @media (min-width: 900px) {
    body.home-page .pricing-grid {
      align-items: center;
    }
    body.home-page .pricing-card.featured {
      transform: scale(1.03);
      z-index: 2;
      padding-top: 40px;
      padding-bottom: 40px;
      background: var(--white);
    }
  }
  body.home-page .pricing-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  body.home-page .pricing-price {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 16px 0 4px;
  }
  body.home-page .pricing-cadence {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
  }
  body.home-page .pricing-savings {
    font-size: 14px;
    font-weight: 600;
    color: var(--success-text);
    margin-bottom: 12px;
  }
  body.home-page .pricing-specs {
    text-align: left;
    margin: 20px 0;
    padding: 0;
    list-style: none;
  }
  body.home-page .pricing-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-gray);
    font-size: 14px;
  }
  body.home-page .pricing-specs li:last-child { border-bottom: none; }
  body.home-page .pricing-specs .spec-label { color: var(--text-secondary); }
  body.home-page .pricing-specs .spec-value { font-weight: 600; color: var(--text-primary); }
  body.home-page .billing-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
  }
  body.home-page .billing-toggle button {
    border: none;
    background: var(--white);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
  }
  body.home-page .billing-toggle button.active {
    background: var(--accent-yellow);
    color: var(--text-primary);
  }
  body.home-page .contact-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 64px 32px;
    text-align: center;
  }
  body.home-page .contact-section h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
  }
  body.home-page .contact-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 28px;
  }
  body.home-page .nav.nav--marketing-home {
    position: relative;
    top: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px 24px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(199, 208, 205, 0.9);
  }
  body.home-page .nav.nav--marketing-home .nav-brand {
    color: var(--text-primary);
  }
  body.home-page .nav.nav--marketing-home .nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
  }
  body.home-page .nav.nav--marketing-home .nav-links a:hover {
    color: var(--text-primary);
  }
  body.home-page .nav.nav--marketing-home .btn.btn-primary {
    box-shadow: 0 14px 26px rgba(113, 175, 198, 0.22);
  }
  @media (max-width: 900px) {
    body.home-page .nav.nav--marketing-home {
      padding: 22px 20px 18px;
    }
  }

body.home-page.home-page--licensing {
    --violet: #6d4aff;
    --violet-deep: #372580;
    --violet-ink: #1b143f;
    --lavender: #f7f5ff;
    --white: #ffffff;
    --gray-200: #e5e7eb;
    --shadow-soft: 0 14px 34px rgba(59, 37, 128, 0.08);
    --shadow-medium: 0 24px 54px rgba(59, 37, 128, 0.12);
    --font-ui: "Inter", system-ui, sans-serif;
    --font-display: "Instrument Serif", Georgia, serif;
    /* Map portal vars to proton vars */
    --text-primary: var(--violet-ink);
    --text-secondary: var(--violet-deep);
    --surface-shadow: var(--lavender);
    --accent-yellow: var(--violet);
    --accent-yellow-light: #5935e6;
    --primary-dark: var(--violet-ink);
  }
  body.home-page.home-page--licensing {
    background: radial-gradient(circle at top right, rgba(109, 74, 255, 0.11), transparent 24%), radial-gradient(circle at top left, rgba(81, 233, 254, 0.10), transparent 18%), var(--lavender);
    color: var(--text-primary);
    font-family: var(--font-ui);
  }
  body.home-page.home-page--licensing .hero-proton {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 52px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: center;
  }
  body.home-page.home-page--licensing .hero-proton h1 {
    font-family: var(--font-display);
    font-size: 74px;
    line-height: 0.93;
    letter-spacing: -0.05em;
    margin-bottom: 18px;
    color: var(--violet-ink);
  }
  body.home-page.home-page--licensing .hero-proton p {
    color: var(--violet-deep);
    font-size: 20px;
    max-width: 34rem;
    margin-bottom: 24px;
  }
  body.home-page.home-page--licensing .hero-proton .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
  }
  body.home-page.home-page--licensing .hero-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-soft);
    border-radius: 28px;
    overflow: hidden;
  }
  body.home-page.home-page--licensing .hero-panel-top {
    padding: 22px 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  body.home-page.home-page--licensing .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(226, 219, 255, 0.9);
    color: var(--violet-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  body.home-page.home-page--licensing .hero-side-note {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
  }
  body.home-page.home-page--licensing .hero-graphic {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  body.home-page.home-page--licensing .mini-card {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
    border: 1px solid rgba(226, 219, 255, 0.9);
  }
  body.home-page.home-page--licensing .mini-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
  }
  body.home-page.home-page--licensing .mini-card span {
    display: block;
    color: #9ca3af;
    font-size: 13px;
  }
  body.home-page.home-page--licensing .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: var(--violet);
    color: #fff;
    box-shadow: 0 14px 26px rgba(109, 74, 255, 0.22);
    border: none;
  }
  body.home-page.home-page--licensing .btn-primary:hover {
    background: var(--violet);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(109, 74, 255, 0.3);
  }
  body.home-page.home-page--licensing .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    transition: background 0.18s ease;
    background: transparent;
    color: var(--violet);
    box-shadow: inset 0 0 0 2px rgba(109, 74, 255, 0.24);
  }
  body.home-page.home-page--licensing .btn-ghost:hover {
    background: rgba(109, 74, 255, 0.06);
    border-color: transparent;
  }
  body.home-page.home-page--licensing .sc-pricing-surface {
    margin: 0 auto;
    max-width: 900px;
  }
  body.home-page.home-page--licensing .sc-pricing-scope {
    text-align: center;
    margin: 0 auto;
    max-width: 40rem;
  }
  body.home-page.home-page--licensing .scope-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 14px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(226, 219, 255, 0.65);
    border: 1px solid rgba(109, 74, 255, 0.18);
  }
  body.home-page.home-page--licensing .scope-tab {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: var(--violet-deep);
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }
  body.home-page.home-page--licensing .scope-tab:hover {
    color: var(--violet-ink);
  }
  body.home-page.home-page--licensing .scope-tab.is-active {
    background: var(--white);
    color: var(--violet-ink);
    box-shadow: 0 2px 10px rgba(59, 37, 128, 0.1);
  }
  body.home-page.home-page--licensing .scope-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
  }
  body.home-page.home-page--licensing .sc-pricing-mode {
    margin-top: 12px;
  }
  body.home-page.home-page--licensing .sc-scope-blurb {
    font-size: 15px;
    line-height: 1.55;
    color: var(--violet-deep);
    margin: 0 auto;
    max-width: 34rem;
    text-align: center;
  }
  body.home-page.home-page--licensing .sc-podium-panel {
    margin-top: 22px;
  }
  body.home-page.home-page--licensing .podium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }
  body.home-page.home-page--licensing .tier {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 28px 24px 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
  }
  body.home-page.home-page--licensing .tier-side, body.home-page.home-page--licensing .tier-featured {
    margin-bottom: 0;
    text-align: center;
  }
  body.home-page.home-page--licensing .tier-side ul, body.home-page.home-page--licensing .tier-featured ul {
    text-align: start;
  }
  body.home-page.home-page--licensing .tier-tag {
    min-height: 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet-deep);
    margin-bottom: 10px;
  }
  body.home-page.home-page--licensing .tier-tag .gold {
    color: #ca8a04;
  }
  body.home-page.home-page--licensing .tier h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--violet-ink);
  }
  body.home-page.home-page--licensing .price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--violet-ink);
    line-height: 1.15;
  }
  body.home-page.home-page--licensing .price small {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
  }
  body.home-page.home-page--licensing .tier ul {
    list-style: none;
    margin: 20px 0 24px;
    flex: 1;
  }
  body.home-page.home-page--licensing .tier li {
    padding: 10px 0 10px 22px;
    font-size: 14px;
    color: var(--violet-deep);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    position: relative;
  }
  body.home-page.home-page--licensing .tier li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ddb1;
    opacity: 0.85;
  }
  body.home-page.home-page--licensing .sc-tier .btn {
    width: 100%;
  }
  body.home-page.home-page--licensing .sc-pricing-empty {
    margin: 28px auto 0;
    max-width: 760px;
    padding: 18px 20px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(109, 74, 255, 0.24);
    color: var(--violet-deep);
  }
  @media (max-width: 900px) {
    body.home-page.home-page--licensing .hero-proton { grid-template-columns: 1fr; padding-top: 54px; }
    body.home-page.home-page--licensing .hero-proton h1 { font-size: 56px; }
  }
  @media (min-width: 900px) {
    body.home-page.home-page--licensing .podium.podium--2col {
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      max-width: 760px;
      margin-left: auto;
      margin-right: auto;
    }
    body.home-page.home-page--licensing .tier-featured {
      transform: scale(1.04);
      z-index: 2;
      border-color: rgba(109, 74, 255, 0.35);
      box-shadow: 0 28px 60px rgba(59, 37, 128, 0.14);
      background: var(--white);
      padding-top: 36px;
      padding-bottom: 40px;
    }
  }
