/* ========================================
   LeanPivot Calming Theme
   Scoped to authenticated users via .user-authenticated

   Palette:
   - Sage Green:     #5F8575 (primary)
   - Warm Cream:     #FDF8F0 (backgrounds)
   - Soft Terracotta:#C4956A (warm accent)
   - Muted Lavender: #9B8EC4 (cool accent)
   - Soft Stone:     #E4E0DB (borders)
   - Dark Sage:      #2D3B35 (text/dark)
   ======================================== */

body.user-authenticated {
    /* ── Primary: Sage Green ── */
    --lp-primary: #5F8575;
    --lp-primary-dark: #4A6D5E;
    --lp-primary-darker: #3A5A4C;
    --lp-primary-light: #7A9E8B;
    --lp-primary-lighter: #98BBA8;
    --lp-primary-50: #F6FAF8;
    --lp-primary-100: #EDF5F0;
    --lp-primary-200: #D4E4DA;
    --lp-primary-600: #5F8575;
    --lp-primary-700: #4A6D5E;
    --lp-primary-800: #3A5A4C;

    /* ── Legacy token overrides (used by lp-compat.css) ── */
    --primary-color: #5F8575;
    --primary: #5F8575;
    --color-primary: #5F8575;
    --color-primary-dark: #4A6D5E;
    --color-primary-light: #7A9E8B;
    --color-primary-lighter: #98BBA8;
    --primary-dark: #4A6D5E;

    /* ── Surfaces: Warm Cream ── */
    --lp-surface-primary: #ffffff;
    --lp-surface-secondary: #FDF8F0;
    --lp-surface-tertiary: #F5F0EB;
    --color-bg-subtle: #FDF8F0;
    --color-bg-app: #F8F5F0;

    /* ── Borders: Soft Stone ── */
    --lp-border-light: #E4E0DB;
    --lp-slate-200: #E4E0DB;
    --lp-slate-100: #F0ECE7;
    --border-light: #E4E0DB;
    --border-color: #E4E0DB;

    /* ── Text: Warm darks ── */
    --lp-slate-900: #2D3B35;
    --lp-slate-800: #3D4D45;
    --lp-slate-700: #4D5E55;
    --lp-slate-600: #5C6B63;
    --lp-slate-500: #6B7B72;
    --lp-slate-400: #8B9A91;
    --lp-slate-300: #B0BDB5;

    /* ── Accent: Soft Terracotta ── */
    --lp-orange: #C4956A;
    --lp-orange-dark: #B8875E;
    --lp-orange-light: #D4A87E;
    --color-accent: #C4956A;
    --color-warning: #C4956A;

    /* ── Cool Accent: Muted Lavender ── */
    --lp-purple-600: #8B7DB5;
    --lp-purple-500: #9B8EC4;
    --lp-purple-400: #A89DD0;
    --lp-purple-300: #C5BDE0;
    --color-purple: #9B8EC4;

    /* ── Teal references → Sage ── */
    --lp-teal-600: #5F8575;
    --lp-teal-500: #7A9E8B;
    --lp-teal-400: #98BBA8;
    --lp-teal-50: #F6FAF8;

    /* ── Success: Muted green ── */
    --lp-green-600: #5F8575;
    --lp-green-500: #6B9A7E;
    --color-success: #6B9A7E;

    /* ── Info: Soft blue-sage ── */
    --lp-blue-600: #6B8FA3;
    --lp-blue-500: #7DA3B8;
    --color-info: #7DA3B8;

    /* ── Gradients ── */
    --lp-gradient-primary: linear-gradient(135deg, #5F8575 0%, #4A6D5E 100%);
    --lp-gradient-primary-light: linear-gradient(135deg, rgba(95,133,117,0.08) 0%, rgba(74,109,94,0.05) 100%);

    /* ── Shadows: Warm, diffused ── */
    --lp-shadow-sm: 0 1px 3px rgba(45, 59, 53, 0.06);
    --lp-shadow-md: 0 4px 12px rgba(45, 59, 53, 0.08);
    --lp-shadow-lg: 0 8px 24px rgba(45, 59, 53, 0.1);
    --lp-shadow-primary: 0 4px 14px rgba(95, 133, 117, 0.2);
    --card-hover-shadow: 0 6px 20px rgba(45, 59, 53, 0.08);

    /* ── Body background ── */
    background-color: #F8F5F0 !important;
}

/* ── Button overrides ── */
body.user-authenticated .btn-primary,
body.user-authenticated .btn-brand {
    background: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
}

body.user-authenticated .btn-primary:hover,
body.user-authenticated .btn-brand:hover {
    background: var(--lp-primary-dark) !important;
    border-color: var(--lp-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(95, 133, 117, 0.25) !important;
}

body.user-authenticated .btn-primary:focus-visible,
body.user-authenticated .btn-brand:focus-visible {
    outline-color: rgba(95, 133, 117, 0.4) !important;
}

body.user-authenticated .btn-outline-primary {
    color: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
}

body.user-authenticated .btn-outline-primary:hover {
    background: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
    color: white !important;
}

body.user-authenticated .btn-get-started {
    background: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
}

body.user-authenticated .btn-get-started:hover {
    background: var(--lp-primary-dark) !important;
    border-color: var(--lp-primary-dark) !important;
}

/* ── Links (exclude buttons, navs, badges, cards) ── */
body.user-authenticated a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.ds-btn):not([class*="ftd-"]):not(.card):not(.text-decoration-none):not(.social-icon-btn):not(.site-footer-link):not(.tool-link):not(.stage-title):not(.content-title):not(.playbook-card) {
    color: var(--lp-primary);
}
body.user-authenticated a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.ds-btn):not([class*="ftd-"]):not(.card):not(.text-decoration-none):not(.social-icon-btn):not(.site-footer-link):not(.tool-link):not(.stage-title):not(.content-title):not(.playbook-card):hover {
    color: var(--lp-primary-dark);
}

/* ── Outline button contrast fixes ── */
body.user-authenticated .btn-outline-secondary {
    color: #4D5E55 !important;
    border-color: #B0BDB5 !important;
}
body.user-authenticated .btn-outline-secondary:hover {
    background: #4D5E55 !important;
    border-color: #4D5E55 !important;
    color: white !important;
}

body.user-authenticated .btn-outline-success {
    color: #4A6D5E !important;
    border-color: #7A9E8B !important;
}
body.user-authenticated .btn-outline-success:hover {
    background: #5F8575 !important;
    border-color: #5F8575 !important;
    color: white !important;
}

body.user-authenticated .btn-outline-info {
    color: #4D7A8C !important;
    border-color: #7DA3B8 !important;
}
body.user-authenticated .btn-outline-info:hover {
    background: #6B8FA3 !important;
    border-color: #6B8FA3 !important;
    color: white !important;
}

body.user-authenticated .btn-outline-warning {
    color: #8B6840 !important;
    border-color: #C4956A !important;
}
body.user-authenticated .btn-outline-warning:hover {
    background: #B8875E !important;
    border-color: #B8875E !important;
    color: white !important;
}

body.user-authenticated .btn-outline-danger {
    color: #9B4D4D !important;
    border-color: #C48080 !important;
}
body.user-authenticated .btn-outline-danger:hover {
    background: #9B4D4D !important;
    border-color: #9B4D4D !important;
    color: white !important;
}

/* ── Solid secondary/light buttons ── */
body.user-authenticated .btn-secondary {
    background: #5C6B63 !important;
    border-color: #5C6B63 !important;
    color: white !important;
}
body.user-authenticated .btn-secondary:hover {
    background: #4D5E55 !important;
    border-color: #4D5E55 !important;
}

body.user-authenticated .btn-light {
    background: #ffffff !important;
    border-color: #E4E0DB !important;
    color: #3D4D45 !important;
}
body.user-authenticated .btn-light:hover {
    background: #F6FAF8 !important;
    border-color: #B0BDB5 !important;
    color: #2D3B35 !important;
}

body.user-authenticated .btn-success {
    background: #5F8575 !important;
    border-color: #5F8575 !important;
}
body.user-authenticated .btn-success:hover {
    background: #4A6D5E !important;
    border-color: #4A6D5E !important;
}

body.user-authenticated .btn-warning {
    background: #C4956A !important;
    border-color: #C4956A !important;
    color: white !important;
}
body.user-authenticated .btn-warning:hover {
    background: #B8875E !important;
    border-color: #B8875E !important;
}

body.user-authenticated .btn-info {
    background: #7DA3B8 !important;
    border-color: #7DA3B8 !important;
    color: white !important;
}
body.user-authenticated .btn-info:hover {
    background: #6B8FA3 !important;
    border-color: #6B8FA3 !important;
}

/* ── Text contrast on light backgrounds ── */
body.user-authenticated .text-muted {
    color: #6B7B72 !important;
}

body.user-authenticated .text-secondary {
    color: #5C6B63 !important;
}

body.user-authenticated small.text-muted,
body.user-authenticated .small.text-muted {
    color: #7B8B82 !important;
}

/* ── Badge text contrast ── */
body.user-authenticated .badge.bg-light {
    background-color: #EDF5F0 !important;
    color: #3D4D45 !important;
}

body.user-authenticated .badge.bg-secondary {
    background-color: #5C6B63 !important;
    color: white !important;
}

/* ── Stage badge pills (IDEATION etc) with white text ── */
body.user-authenticated .rounded-pill[style*="background: linear-gradient"] {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ── Dropdown text contrast ── */
body.user-authenticated .dropdown-item {
    color: #3D4D45;
}
body.user-authenticated .dropdown-item.active,
body.user-authenticated .dropdown-item:active {
    background-color: rgba(95, 133, 117, 0.12) !important;
    color: #3A5A4C !important;
}

/* ── Table/list hover contrast ── */
body.user-authenticated .list-group-item {
    border-color: #E4E0DB;
}

body.user-authenticated .table {
    --bs-table-hover-bg: rgba(95, 133, 117, 0.04);
}

/* ── Breadcrumb contrast ── */
body.user-authenticated .breadcrumb-item a {
    color: #5F8575;
}
body.user-authenticated .breadcrumb-item.active {
    color: #5C6B63;
}

/* ── Nav tabs/pills ── */
body.user-authenticated .nav-link {
    color: #4D5E55;
}
body.user-authenticated .nav-link:hover {
    color: #3A5A4C;
}
body.user-authenticated .nav-link.active,
body.user-authenticated .nav-pills .nav-link.active {
    background-color: #5F8575 !important;
    color: white !important;
}

/* ── Pagination ── */
body.user-authenticated .page-link {
    color: #5F8575;
    border-color: #E4E0DB;
}
body.user-authenticated .page-item.active .page-link {
    background-color: #5F8575;
    border-color: #5F8575;
}

/* ── Design system button overrides ── */
body.user-authenticated .ds-btn--primary {
    background: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
    color: white !important;
}
body.user-authenticated .ds-btn--primary:hover {
    background: var(--lp-primary-dark) !important;
    border-color: var(--lp-primary-dark) !important;
    color: white !important;
}

body.user-authenticated .ds-btn--outline {
    color: var(--lp-primary) !important;
    border-color: var(--lp-primary) !important;
}
body.user-authenticated .ds-btn--outline:hover {
    background: var(--lp-primary) !important;
    color: white !important;
}

body.user-authenticated .ds-btn--light {
    background: white !important;
    color: var(--lp-primary-dark) !important;
}

body.user-authenticated .ds-badge--success {
    background: #EDF5F0 !important;
    color: #3A5A4C !important;
}

/* ── Toolkit stat label colors ── */
body.user-authenticated .text-success,
body.user-authenticated [style*="color: #10b981"],
body.user-authenticated [style*="color: #059669"],
body.user-authenticated [style*="color: #0D9488"] {
    color: #5F8575 !important;
}

/* ── Badge overrides ── */
body.user-authenticated .bg-primary {
    background-color: var(--lp-primary) !important;
}

body.user-authenticated .bg-success {
    background-color: #6B9A7E !important;
}

body.user-authenticated .bg-info {
    background-color: #7DA3B8 !important;
}

body.user-authenticated .bg-warning {
    background-color: #C4956A !important;
}

body.user-authenticated .text-primary {
    color: var(--lp-primary) !important;
}

body.user-authenticated .text-success {
    color: #6B9A7E !important;
}

body.user-authenticated .text-warning {
    color: #C4956A !important;
}

body.user-authenticated .text-info {
    color: #7DA3B8 !important;
}

/* ── Card styling ── */
body.user-authenticated .card {
    border-color: var(--lp-border-light);
    border-radius: 14px;
}

body.user-authenticated .card-header {
    border-bottom-color: var(--lp-border-light);
}

/* ── Navbar refinement ── */
body.user-authenticated .navbar {
    border-bottom: 1px solid var(--lp-border-light);
    box-shadow: 0 1px 3px rgba(45, 59, 53, 0.04);
}

/* ── Dropdown refinement ── */
body.user-authenticated .dropdown-item:hover {
    background-color: rgba(95, 133, 117, 0.06);
    color: var(--lp-primary-dark);
}

/* ── Form controls ── */
body.user-authenticated .form-control:focus,
body.user-authenticated .form-select:focus {
    border-color: var(--lp-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(95, 133, 117, 0.15);
}

/* ── Selection highlight ── */
body.user-authenticated ::selection {
    background: rgba(95, 133, 117, 0.2);
    color: #2D3B35;
}

/* ── Scrollbar (webkit) ── */
body.user-authenticated ::-webkit-scrollbar-thumb {
    background: #B0BDB5;
    border-radius: 10px;
}
body.user-authenticated ::-webkit-scrollbar-thumb:hover {
    background: #8B9A91;
}

/* ── Alert refinements ── */
body.user-authenticated .alert-success {
    background-color: #EDF5F0;
    border-color: #D4E4DA;
    color: #3A5A4C;
}

body.user-authenticated .alert-info {
    background-color: #EDF2F5;
    border-color: #D4DEE4;
    color: #3A4D5A;
}

body.user-authenticated .alert-warning {
    background-color: #FDF8F0;
    border-color: #E8D9C8;
    color: #6B5744;
}

/* ── Progress bars ── */
body.user-authenticated .progress-bar {
    background-color: var(--lp-primary);
}

/* ── Cookie banner / modals ── */
body.user-authenticated .modal-header {
    border-bottom-color: var(--lp-border-light);
}

/* ── Dashboard-specific overrides ── */
body.user-authenticated .dashboard-container .card {
    box-shadow: var(--lp-shadow-sm);
}

body.user-authenticated .dashboard-container .card:hover {
    box-shadow: var(--lp-shadow-md);
}

/* ── Universal: white text on ANY dark/colored background button/badge ── */
body.user-authenticated .btn-primary,
body.user-authenticated .btn-success,
body.user-authenticated .btn-info,
body.user-authenticated .btn-warning,
body.user-authenticated .btn-danger,
body.user-authenticated .btn-secondary,
body.user-authenticated .ds-btn--primary,
body.user-authenticated .bg-primary,
body.user-authenticated .bg-success,
body.user-authenticated .bg-info,
body.user-authenticated .bg-warning,
body.user-authenticated .bg-danger,
body.user-authenticated .bg-secondary,
body.user-authenticated .bg-dark,
body.user-authenticated [class*="btn-primary"],
body.user-authenticated [class*="btn-success"],
body.user-authenticated [class*="btn-info"],
body.user-authenticated [class*="btn-warning"],
body.user-authenticated [style*="background: #5F8575"],
body.user-authenticated [style*="background: #4A6D5E"],
body.user-authenticated [style*="background: #6B8FA3"],
body.user-authenticated [style*="background: #B8875E"],
body.user-authenticated [style*="background: #8B7DB5"],
body.user-authenticated [style*="background: #C4956A"],
body.user-authenticated [style*="background: linear-gradient"] {
    color: white !important;
}

/* Ensure anchor tags inside dark buttons also get white text */
body.user-authenticated .btn-primary a,
body.user-authenticated .btn-success a,
body.user-authenticated .bg-primary a,
body.user-authenticated .bg-success a,
body.user-authenticated .bg-info a,
body.user-authenticated .bg-warning a,
body.user-authenticated .bg-danger a,
body.user-authenticated .bg-secondary a,
body.user-authenticated [style*="background: linear-gradient"] a {
    color: white !important;
}

/* ── Catch-all: any element with inline background-color/gradient containing old colors ── */
/* These CSS attribute selectors catch inline styles that hardcode old teal/amber */

/* Old teal → ensure white text */
body.user-authenticated [style*="background: #0D9488"],
body.user-authenticated [style*="background: #26a69a"],
body.user-authenticated [style*="background: #00897b"],
body.user-authenticated [style*="background-color: #0D9488"],
body.user-authenticated [style*="background-color: #26a69a"],
body.user-authenticated [style*="background:#0D9488"],
body.user-authenticated [style*="background:#26a69a"],
body.user-authenticated [style*="background:#00897b"],
body.user-authenticated [style*="background: #14B8A6"],
body.user-authenticated [style*="background: #10b981"],
body.user-authenticated [style*="background: #059669"],
body.user-authenticated [style*="background:#10b981"],
body.user-authenticated [style*="background:#059669"] {
    background: #5F8575 !important;
    color: white !important;
}

/* Old amber/orange → soften to terracotta */
body.user-authenticated [style*="background: #F59E0B"],
body.user-authenticated [style*="background: #f59e0b"],
body.user-authenticated [style*="background: #D97706"],
body.user-authenticated [style*="background: #d97706"],
body.user-authenticated [style*="background:#F59E0B"],
body.user-authenticated [style*="background:#f59e0b"],
body.user-authenticated [style*="background:#D97706"],
body.user-authenticated [style*="background:#d97706"],
body.user-authenticated [style*="background: #ffaa00"],
body.user-authenticated [style*="background:#ffaa00"] {
    background: #C4956A !important;
    color: white !important;
}

/* Old bright purple → soften to lavender */
body.user-authenticated [style*="background: #6366f1"],
body.user-authenticated [style*="background:#6366f1"],
body.user-authenticated [style*="background: #7C3AED"],
body.user-authenticated [style*="background:#7C3AED"],
body.user-authenticated [style*="background: #8b5cf6"],
body.user-authenticated [style*="background:#8b5cf6"] {
    background: #8B7DB5 !important;
    color: white !important;
}

/* Old bright blue → soften */
body.user-authenticated [style*="background: #3B82F6"],
body.user-authenticated [style*="background:#3B82F6"],
body.user-authenticated [style*="background: #3b82f6"],
body.user-authenticated [style*="background:#3b82f6"],
body.user-authenticated [style*="background: #2563EB"],
body.user-authenticated [style*="background:#2563EB"],
body.user-authenticated [style*="background: #1D4ED8"],
body.user-authenticated [style*="background:#1D4ED8"] {
    background: #6B8FA3 !important;
    color: white !important;
}

/* Old red/danger → soften */
body.user-authenticated [style*="background: #EF4444"],
body.user-authenticated [style*="background:#EF4444"],
body.user-authenticated [style*="background: #ef4444"],
body.user-authenticated [style*="background:#ef4444"],
body.user-authenticated [style*="background: #e74a3b"],
body.user-authenticated [style*="background:#e74a3b"],
body.user-authenticated [style*="background: #DC2626"],
body.user-authenticated [style*="background:#DC2626"] {
    background: #C47070 !important;
    color: white !important;
}

/* Old green success → soften */
body.user-authenticated [style*="background: #38b000"],
body.user-authenticated [style*="background:#38b000"],
body.user-authenticated [style*="background: #22C55E"],
body.user-authenticated [style*="background:#22C55E"],
body.user-authenticated [style*="background: #16A34A"],
body.user-authenticated [style*="background:#16A34A"] {
    background: #6B9A7E !important;
    color: white !important;
}

/* Inline color text — old teal text → sage */
body.user-authenticated [style*="color: #0D9488"],
body.user-authenticated [style*="color:#0D9488"],
body.user-authenticated [style*="color: #26a69a"],
body.user-authenticated [style*="color:#26a69a"],
body.user-authenticated [style*="color: #00897b"],
body.user-authenticated [style*="color:#00897b"],
body.user-authenticated [style*="color: #14B8A6"],
body.user-authenticated [style*="color:#14B8A6"],
body.user-authenticated [style*="color: #10b981"],
body.user-authenticated [style*="color:#10b981"],
body.user-authenticated [style*="color: #059669"],
body.user-authenticated [style*="color:#059669"] {
    color: #5F8575 !important;
}

/* Inline color text — old amber → terracotta */
body.user-authenticated [style*="color: #F59E0B"],
body.user-authenticated [style*="color:#F59E0B"],
body.user-authenticated [style*="color: #f59e0b"],
body.user-authenticated [style*="color:#f59e0b"],
body.user-authenticated [style*="color: #D97706"],
body.user-authenticated [style*="color:#D97706"],
body.user-authenticated [style*="color: #d97706"],
body.user-authenticated [style*="color:#d97706"] {
    color: #C4956A !important;
}

/* Inline color text — old purple → lavender */
body.user-authenticated [style*="color: #6366f1"],
body.user-authenticated [style*="color:#6366f1"],
body.user-authenticated [style*="color: #7C3AED"],
body.user-authenticated [style*="color:#7C3AED"],
body.user-authenticated [style*="color: #8b5cf6"],
body.user-authenticated [style*="color:#8b5cf6"] {
    color: #8B7DB5 !important;
}

/* Inline color text — old blue → soft blue */
body.user-authenticated [style*="color: #3B82F6"],
body.user-authenticated [style*="color:#3B82F6"],
body.user-authenticated [style*="color: #3b82f6"],
body.user-authenticated [style*="color:#3b82f6"],
body.user-authenticated [style*="color: #2563EB"],
body.user-authenticated [style*="color:#2563EB"] {
    color: #6B8FA3 !important;
}

/* Inline border colors — old teal borders → sage */
body.user-authenticated [style*="border-color: #0D9488"],
body.user-authenticated [style*="border-color:#0D9488"],
body.user-authenticated [style*="border-color: #26a69a"],
body.user-authenticated [style*="border-color:#26a69a"],
body.user-authenticated [style*="border-left: 4px solid #0D9488"],
body.user-authenticated [style*="border-left: 3px solid #0D9488"],
body.user-authenticated [style*="border-left: 4px solid #26a69a"],
body.user-authenticated [style*="border-left: 3px solid #26a69a"] {
    border-color: #5F8575 !important;
}

/* ── Toolkit stage color overrides (DB colors → calming palette) ── */
body.user-authenticated [style*="--stage-color: #6366f1"],
body.user-authenticated [style*="--stage-color: #8b5cf6"],
body.user-authenticated [style*="--stage-color:#6366f1"],
body.user-authenticated [style*="--stage-color:#8b5cf6"] {
    --stage-color: #8B7DB5 !important;
}
body.user-authenticated [style*="--stage-color: #10b981"],
body.user-authenticated [style*="--stage-color:#10b981"],
body.user-authenticated [style*="--stage-color: #059669"],
body.user-authenticated [style*="--stage-color:#059669"] {
    --stage-color: #5F8575 !important;
}
body.user-authenticated [style*="--stage-color: #1D4ED8"],
body.user-authenticated [style*="--stage-color:#1D4ED8"],
body.user-authenticated [style*="--stage-color: #3B82F6"],
body.user-authenticated [style*="--stage-color:#3B82F6"] {
    --stage-color: #6B8FA3 !important;
}
body.user-authenticated [style*="--stage-color: #0D9488"],
body.user-authenticated [style*="--stage-color:#0D9488"],
body.user-authenticated [style*="--stage-color: #26a69a"],
body.user-authenticated [style*="--stage-color:#26a69a"],
body.user-authenticated [style*="--stage-color: #14B8A6"],
body.user-authenticated [style*="--stage-color:#14B8A6"] {
    --stage-color: #7A9E8B !important;
}
body.user-authenticated [style*="--stage-color: #D97706"],
body.user-authenticated [style*="--stage-color:#D97706"],
body.user-authenticated [style*="--stage-color: #f59e0b"],
body.user-authenticated [style*="--stage-color:#f59e0b"] {
    --stage-color: #C4956A !important;
}

/* ── Toolkit filter buttons — ensure white text on active ── */
body.user-authenticated .filter-btn.active {
    color: white !important;
}

/* ── Toolkit stat labels ── */
body.user-authenticated .text-uppercase.fw-semibold {
    color: #5C6B63 !important;
}

/* ── Pricing page fixes ── */
body.user-authenticated .pricing-card .btn,
body.user-authenticated [class*="pricing"] .btn-primary,
body.user-authenticated [class*="pricing"] .btn-success,
body.user-authenticated [class*="pricing"] .ds-btn--primary {
    color: white !important;
}

/* Price accent text (Free forever, save $X) */
body.user-authenticated [style*="color: #16A34A"],
body.user-authenticated [style*="color:#16A34A"],
body.user-authenticated [style*="color: #15803d"],
body.user-authenticated [style*="color:#15803d"] {
    color: #5F8575 !important;
}

/* ── Stage card gradient overrides (catches backend-rendered inline gradients) ── */
/* Ideation purple gradients */
body.user-authenticated [style*="linear-gradient(135deg, #6366f1"],
body.user-authenticated [style*="linear-gradient(135deg, #8B5CF6"],
body.user-authenticated [style*="linear-gradient(135deg, #7C3AED"] {
    background: linear-gradient(135deg, #8B7DB5, #A89DD0) !important;
}

/* Validation green gradients */
body.user-authenticated [style*="linear-gradient(135deg, #047857"],
body.user-authenticated [style*="linear-gradient(135deg, #10B981"],
body.user-authenticated [style*="linear-gradient(135deg, #059669"],
body.user-authenticated [style*="linear-gradient(135deg, #10b981"] {
    background: linear-gradient(135deg, #5F8575, #7A9E8B) !important;
}

/* MVP blue gradients */
body.user-authenticated [style*="linear-gradient(135deg, #1D4ED8"],
body.user-authenticated [style*="linear-gradient(135deg, #2563EB"],
body.user-authenticated [style*="linear-gradient(135deg, #3B82F6"],
body.user-authenticated [style*="linear-gradient(135deg, #3b82f6"] {
    background: linear-gradient(135deg, #6B8FA3, #8BB3C7) !important;
}

/* Launch teal gradients */
body.user-authenticated [style*="linear-gradient(135deg, #0D9488"],
body.user-authenticated [style*="linear-gradient(135deg, #14B8A6"],
body.user-authenticated [style*="linear-gradient(135deg, #0d9488"] {
    background: linear-gradient(135deg, #7A9E8B, #98BBA8) !important;
}

/* Growth amber gradients */
body.user-authenticated [style*="linear-gradient(135deg, #D97706"],
body.user-authenticated [style*="linear-gradient(135deg, #F59E0B"],
body.user-authenticated [style*="linear-gradient(135deg, #d97706"],
body.user-authenticated [style*="linear-gradient(135deg, #f59e0b"],
body.user-authenticated [style*="linear-gradient(135deg, #FBBF24"] {
    background: linear-gradient(135deg, #B8875E, #D4A87E) !important;
}

/* Investment emerald gradients */
body.user-authenticated [style*="linear-gradient(135deg, #047857, #34D399"],
body.user-authenticated [style*="linear-gradient(135deg, #059669, #34D399"] {
    background: linear-gradient(135deg, #4A6D5E, #6B9A7E) !important;
}

/* AI Transformation purple-blue gradient */
body.user-authenticated [style*="linear-gradient(135deg, #4338CA"],
body.user-authenticated [style*="linear-gradient(135deg, #6366F1, #818CF8"] {
    background: linear-gradient(135deg, #7B6FA8, #9B8EC4) !important;
}

/* Ensure white text inside all stage card gradient panels */
body.user-authenticated .stage-row-card [style*="linear-gradient"] {
    color: white !important;
}
body.user-authenticated .stage-row-card [style*="linear-gradient"] * {
    color: white !important;
}

/* Stage arrow circles — soften the background tint */
body.user-authenticated .stage-arrow {
    background: rgba(95, 133, 117, 0.1) !important;
}
body.user-authenticated .stage-arrow i {
    color: #5F8575 !important;
}

/* ── "Optional Bonus Track" and similar vivid purple text ── */
body.user-authenticated [style*="color: #6366F1"],
body.user-authenticated [style*="color:#6366F1"],
body.user-authenticated [style*="color: #4338CA"],
body.user-authenticated [style*="color:#4338CA"] {
    color: #8B7DB5 !important;
}

/* Dashed borders in purple → lavender */
body.user-authenticated [style*="border-top: 2px dashed #E0E7FF"] {
    border-color: #D5CEE6 !important;
}

/* ── Mega Menu Warmth & Color Accents ── */
body.user-authenticated .mega-menu {
    background: #FFFDF9 !important;
    border-color: #E4E0DB !important;
}

/* Warm header strip at top of each mega menu */
body.user-authenticated .mega-menu .mega-menu-title {
    color: #2D3B35;
}

/* Build menu — sage icon accents */
body.user-authenticated .build-mega-menu-dropdown .tool-link i {
    color: #5F8575 !important;
}

/* Measure menu — soft blue icon accents */
body.user-authenticated .innovation-accounting-mega-menu-dropdown .tool-link i {
    color: #6B8FA3 !important;
}

/* Learn menu — terracotta icon accents */
body.user-authenticated .learn-mega-menu-dropdown .tool-link i {
    color: #C4956A !important;
}

/* Today menu — lavender icon accents */
body.user-authenticated .today-mega-menu-dropdown .tool-link i {
    color: #8B7DB5 !important;
}

/* Column headers — muted warm dark */
body.user-authenticated .mega-menu .stage-title strong,
body.user-authenticated .mega-menu h6 {
    color: #3D4D45 !important;
}

/* Stage header left-border color override */
body.user-authenticated .mega-menu .stage-header {
    border-left-color: #5F8575 !important;
}

/* Hover state — warm cream */
body.user-authenticated .mega-menu .tool-link:hover {
    background: #F5F0EB !important;
}

/* ── Footer ── */
body.user-authenticated .site-footer {
    background: #2D3B35 !important;
}
