﻿/* =========================================================
   DinamikCRM Free Tools
   ---------------------------------------------------------
   Shared styles for free tools, templates and calculators.
   Depends on: site.css
   Load order:
   1. site.css
   2. free-tools.css
   ========================================================= */


/* =========================================================
   1. Free Tool Base
   ========================================================= */

.dc-free-tool-landing {
    position: relative;
}

    .dc-free-tool-landing *,
    .dc-free-tool-landing *::before,
    .dc-free-tool-landing *::after {
        box-sizing: border-box;
    }


/* =========================================================
   2. Excel Browser / Hero Mockup
   ========================================================= */

.dc-excel-browser {
    overflow: hidden;
}

.dc-excel-template-ui {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    gap: 18px;
}

.dc-excel-template-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .dc-excel-template-toolbar > div:last-child {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 0;
        gap: 2px;
    }

    .dc-excel-template-toolbar strong {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dc-excel-template-toolbar span {
        display: block;
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.dc-excel-template-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(33, 115, 70, .18);
    border-radius: 12px;
    background: rgba(33, 115, 70, .10);
    color: #217346;
    font-size: 20px;
}


/* =========================================================
   3. Excel KPI Cards
   ========================================================= */

.dc-excel-template-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dc-excel-template-kpi {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

    .dc-excel-template-kpi small {
        display: block;
        overflow: hidden;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dc-excel-template-kpi strong {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   4. Excel Opportunity Table
   ========================================================= */

.dc-excel-template-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.dc-excel-template-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, .65fr);
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid var(--border);
}

    .dc-excel-template-row:last-child {
        border-bottom: 0;
    }

    .dc-excel-template-row > span,
    .dc-excel-template-row > strong {
        display: block;
        min-width: 0;
        padding: 10px 8px;
        overflow: hidden;
        color: var(--text);
        font-size: 10px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dc-excel-template-row > strong {
        font-weight: 800;
    }

.dc-excel-template-row-head {
    background: rgba(33, 115, 70, .08);
}

    .dc-excel-template-row-head > span {
        color: var(--muted);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

.dc-excel-template-probability {
    font-weight: 800;
}


/* =========================================================
   5. Excel Sheet Tabs
   ========================================================= */

.dc-excel-template-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

    .dc-excel-template-tabs span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 6px 10px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

        .dc-excel-template-tabs span.active {
            border-color: rgba(33, 115, 70, .20);
            background: rgba(33, 115, 70, .10);
            color: #217346;
        }


/* =========================================================
   6. Excel Sheets Preview
   ========================================================= */

.dc-excel-sheets-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.dc-excel-sheet-card {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 96px;
    padding: 18px;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .dc-excel-sheet-card:hover {
        transform: translateY(-2px);
        border-color: rgba(33, 115, 70, .28);
    }

    .dc-excel-sheet-card i {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(33, 115, 70, .10);
        color: #217346;
        font-size: 19px;
    }

    .dc-excel-sheet-card strong {
        min-width: 0;
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
    }


/* =========================================================
   7. Excel Dashboard Preview
   ========================================================= */

.dc-excel-dashboard-preview {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dc-excel-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dc-excel-dashboard-item {
    min-width: 0;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}

    .dc-excel-dashboard-item small {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.4;
    }

    .dc-excel-dashboard-item strong {
        display: block;
        overflow-wrap: anywhere;
        color: var(--text);
        font-size: clamp(17px, 2vw, 23px);
        font-weight: 800;
        line-height: 1.15;
    }


/* =========================================================
   8. Probability / Weighted Pipeline
   ========================================================= */

.dc-excel-probability-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

    .dc-excel-probability-flow > i {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 12px;
    }

.dc-excel-probability-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    min-height: 92px;
    padding: 12px 8px;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow);
}

    .dc-excel-probability-card span {
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

    .dc-excel-probability-card strong {
        color: #217346;
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
    }


/* =========================================================
   9. Download / Lead Form Section
   ========================================================= */

.dc-free-tool-download {
    position: relative;
}

.dc-free-tool-download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.dc-free-tool-download-content {
    min-width: 0;
}

    .dc-free-tool-download-content > h2 {
        margin-top: 0;
        color: var(--text);
    }

    .dc-free-tool-download-content > p {
        max-width: 680px;
        color: var(--muted);
    }


/* =========================================================
   10. Download Form Card
   ========================================================= */

.dc-free-tool-form-card {
    position: relative;
    min-width: 0;
    padding: clamp(22px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

    .dc-free-tool-form-card::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: #217346;
        content: "";
    }

.dc-free-tool-form-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 13px;
}

    .dc-free-tool-form-head > div:last-child {
        min-width: 0;
    }

    .dc-free-tool-form-head h3 {
        margin: 0 0 5px;
        color: var(--text);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.25;
    }

    .dc-free-tool-form-head p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

.dc-free-tool-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(33, 115, 70, .10);
    color: #217346;
    font-size: 21px;
}


/* =========================================================
   11. Form Controls
   ========================================================= */

.dc-free-tool-form-group {
    margin-bottom: 16px;
}

    .dc-free-tool-form-group label {
        display: block;
        margin-bottom: 7px;
        color: var(--text);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

.dc-free-tool-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .dc-free-tool-input:hover {
        border-color: rgba(33, 115, 70, .35);
    }

    .dc-free-tool-input:focus {
        border-color: #217346;
        box-shadow: 0 0 0 3px rgba(33, 115, 70, .12);
    }

    .dc-free-tool-input::placeholder {
        color: var(--muted);
        opacity: .75;
    }

    .dc-free-tool-input:-webkit-autofill,
    .dc-free-tool-input:-webkit-autofill:hover,
    .dc-free-tool-input:-webkit-autofill:focus {
        -webkit-text-fill-color: var(--text);
        transition: background-color 9999s ease-out 0s;
    }

.dc-free-tool-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.dc-free-tool-form-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 13px 0 0;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

    .dc-free-tool-form-note i {
        flex: 0 0 auto;
        margin-top: 2px;
    }


/* =========================================================
   12. Usage Notice
   ========================================================= */

.dc-free-tool-usage {
    padding-top: 0;
}

.dc-free-tool-usage-card {
    display: flex;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 30px);
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.dc-free-tool-usage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(33, 115, 70, .10);
    color: #217346;
    font-size: 18px;
}

.dc-free-tool-usage-card > div:last-child {
    min-width: 0;
}

.dc-free-tool-usage-card h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.dc-free-tool-usage-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

    .dc-free-tool-usage-card p:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   13. Free Tool Hero Enhancements
   ========================================================= */

.dc-free-tool-landing .dc-crm-hero-note {
    display: flex;
    align-items: flex-start;
    max-width: 620px;
    margin-top: 15px;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

    .dc-free-tool-landing .dc-crm-hero-note i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: #217346;
    }


/* =========================================================
   14. Excel Visual Consistency
   ========================================================= */

.dc-free-tool-landing .dc-crm-product-visual {
    min-width: 0;
}

.dc-free-tool-landing .dc-crm-browser-body {
    min-width: 0;
}

.dc-free-tool-landing .dc-crm-browser-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   15. Accessibility / Interaction
   ========================================================= */

.dc-free-tool-input:focus-visible {
    outline: none;
}

.dc-free-tool-landing a:focus-visible,
.dc-free-tool-landing button:focus-visible {
    outline: 2px solid #217346;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .dc-excel-sheet-card,
    .dc-free-tool-input {
        transition: none;
    }

        .dc-excel-sheet-card:hover {
            transform: none;
        }
}


/* =========================================================
   16. Dark Theme
   ---------------------------------------------------------
   Supports the theme patterns commonly used by site.css.
   Only Free Tools-specific visual adjustments live here.
   ========================================================= */

html[data-theme="dark"] .dc-excel-template-icon,
[data-theme="dark"] .dc-excel-template-icon,
html[data-theme="dark"] .dc-excel-sheet-card i,
[data-theme="dark"] .dc-excel-sheet-card i,
html[data-theme="dark"] .dc-free-tool-form-icon,
[data-theme="dark"] .dc-free-tool-form-icon,
html[data-theme="dark"] .dc-free-tool-usage-icon,
[data-theme="dark"] .dc-free-tool-usage-icon {
    border-color: rgba(71, 181, 116, .18);
    background: rgba(71, 181, 116, .12);
    color: #63c68b;
}

html[data-theme="dark"] .dc-excel-template-row-head,
[data-theme="dark"] .dc-excel-template-row-head {
    background: rgba(71, 181, 116, .08);
}

html[data-theme="dark"] .dc-excel-template-tabs span.active,
[data-theme="dark"] .dc-excel-template-tabs span.active {
    border-color: rgba(71, 181, 116, .22);
    background: rgba(71, 181, 116, .12);
    color: #63c68b;
}

html[data-theme="dark"] .dc-excel-probability-card strong,
[data-theme="dark"] .dc-excel-probability-card strong,
html[data-theme="dark"] .dc-free-tool-landing .dc-crm-hero-note i,
[data-theme="dark"] .dc-free-tool-landing .dc-crm-hero-note i {
    color: #63c68b;
}

html[data-theme="dark"] .dc-free-tool-form-card::before,
[data-theme="dark"] .dc-free-tool-form-card::before {
    background: #63c68b;
}

html[data-theme="dark"] .dc-free-tool-input:hover,
[data-theme="dark"] .dc-free-tool-input:hover {
    border-color: rgba(99, 198, 139, .42);
}

html[data-theme="dark"] .dc-free-tool-input:focus,
[data-theme="dark"] .dc-free-tool-input:focus {
    border-color: #63c68b;
    box-shadow: 0 0 0 3px rgba(99, 198, 139, .12);
}

html[data-theme="dark"] .dc-free-tool-landing a:focus-visible,
[data-theme="dark"] .dc-free-tool-landing a:focus-visible,
html[data-theme="dark"] .dc-free-tool-landing button:focus-visible,
[data-theme="dark"] .dc-free-tool-landing button:focus-visible {
    outline-color: #63c68b;
}


/* =========================================================
   17. Responsive - Large Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .dc-free-tool-download-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
        gap: 40px;
    }

    .dc-excel-probability-flow {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }

        .dc-excel-probability-flow > i {
            display: none;
        }

    .dc-excel-probability-card {
        min-height: 86px;
    }
}


/* =========================================================
   18. Responsive - Tablet
   ========================================================= */

@media (max-width: 900px) {

    .dc-free-tool-download-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dc-free-tool-download-content {
        max-width: 720px;
    }

    .dc-free-tool-form-card {
        width: 100%;
        max-width: 680px;
    }

    .dc-excel-sheets-preview {
        max-width: 680px;
    }

    .dc-excel-dashboard-preview {
        max-width: 680px;
    }

    .dc-excel-probability-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 680px;
    }
}


/* =========================================================
   19. Responsive - Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .dc-excel-template-ui {
        padding: 14px;
        gap: 14px;
    }

    .dc-excel-template-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .dc-excel-template-kpi {
        padding: 10px 8px;
    }

        .dc-excel-template-kpi small {
            font-size: 8px;
        }

        .dc-excel-template-kpi strong {
            font-size: 12px;
        }

    .dc-excel-template-row {
        grid-template-columns: minmax(100px, 1.5fr) minmax(72px, 1fr) minmax(70px, .85fr) minmax(55px, .65fr);
        min-width: 360px;
    }

    .dc-excel-template-table {
        overflow-x: auto;
    }

    .dc-excel-template-row > span,
    .dc-excel-template-row > strong {
        padding: 9px 7px;
        font-size: 9px;
    }

    .dc-excel-template-row-head > span {
        font-size: 8px;
    }

    .dc-excel-sheets-preview {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dc-excel-sheet-card {
        min-height: 76px;
        padding: 14px;
    }

        .dc-excel-sheet-card i {
            flex-basis: 40px;
            width: 40px;
            height: 40px;
            font-size: 17px;
        }

    .dc-excel-dashboard-preview {
        padding: 14px;
    }

    .dc-excel-dashboard-grid {
        gap: 9px;
    }

    .dc-excel-dashboard-item {
        min-height: 80px;
        padding: 12px;
    }

        .dc-excel-dashboard-item small {
            font-size: 9px;
        }

        .dc-excel-dashboard-item strong {
            font-size: 17px;
        }

    .dc-excel-probability-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dc-excel-probability-card {
        min-height: 78px;
    }

    .dc-free-tool-download-grid {
        gap: 24px;
    }

    .dc-free-tool-form-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dc-free-tool-form-head {
        margin-bottom: 20px;
    }

        .dc-free-tool-form-head h3 {
            font-size: 18px;
        }

    .dc-free-tool-usage-card {
        padding: 18px;
        gap: 12px;
    }

        .dc-free-tool-usage-card h2 {
            font-size: 17px;
        }
}


/* =========================================================
   20. Responsive - Small Mobile
   ========================================================= */

@media (max-width: 479.98px) {

    .dc-excel-template-toolbar strong {
        font-size: 12px;
    }

    .dc-excel-template-toolbar span {
        font-size: 9px;
    }

    .dc-excel-template-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 18px;
    }

    .dc-excel-template-kpis {
        grid-template-columns: 1fr;
    }

    .dc-excel-template-kpi {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        .dc-excel-template-kpi small {
            margin: 0;
            white-space: normal;
        }

        .dc-excel-template-kpi strong {
            flex: 0 0 auto;
        }

    .dc-excel-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dc-excel-dashboard-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        gap: 15px;
    }

        .dc-excel-dashboard-item small {
            margin: 0;
        }

        .dc-excel-dashboard-item strong {
            flex: 0 0 auto;
            font-size: 16px;
            text-align: right;
        }

    .dc-excel-probability-flow {
        grid-template-columns: 1fr;
    }

    .dc-excel-probability-card {
        flex-direction: row;
        justify-content: space-between;
        min-height: 58px;
        padding: 12px 14px;
        text-align: left;
    }

        .dc-excel-probability-card span {
            font-size: 10px;
        }

        .dc-excel-probability-card strong {
            flex: 0 0 auto;
            font-size: 17px;
        }

    .dc-free-tool-form-card {
        padding: 18px 16px;
    }

    .dc-free-tool-form-head {
        gap: 10px;
    }

    .dc-free-tool-form-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dc-free-tool-input {
        min-height: 44px;
        font-size: 16px;
    }

    .dc-free-tool-usage-card {
        flex-direction: column;
    }

    .dc-free-tool-usage-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   FREE TOOL - THANK YOU
   ========================================================= */

.dc-free-tool-thankyou {
    min-height: calc(100vh - 80px);
    padding: 64px 0 72px;
    overflow: hidden;
    background: radial-gradient( circle at 50% 0%, rgba(37, 99, 235, .08), transparent 34% ), var(--dc-bg);
}


/* =========================================================
   HERO
   ========================================================= */

.dc-free-tool-thankyou-hero {
    position: relative;
}

    .dc-free-tool-thankyou-hero::before {
        content: "";
        position: absolute;
        top: -180px;
        left: 50%;
        width: 620px;
        height: 420px;
        border-radius: 50%;
        background: rgba(37, 99, 235, .05);
        filter: blur(40px);
        transform: translateX(-50%);
        pointer-events: none;
    }

.dc-free-tool-thankyou-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 52px 42px;
    overflow: hidden;
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-xl);
    box-shadow: var(--dc-shadow-md);
    text-align: center;
}

    .dc-free-tool-thankyou-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 180px;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background: var(--dc-primary);
        transform: translateX(-50%);
    }


/* =========================================================
   SUCCESS ICON
   ========================================================= */

.dc-free-tool-thankyou-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-primary);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 50%;
    font-size: 25px;
}

    .dc-free-tool-thankyou-icon i {
        line-height: 1;
    }


/* =========================================================
   CONTENT
   ========================================================= */

.dc-free-tool-thankyou .dc-free-tool-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    color: var(--dc-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dc-free-tool-thankyou-card h1 {
    max-width: 680px;
    margin: 0 auto 16px;
    color: var(--dc-text);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.dc-free-tool-thankyou-lead {
    max-width: 620px;
    margin: 0 auto;
    color: var(--dc-text-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   DOWNLOAD
   ========================================================= */

.dc-free-tool-thankyou-download {
    max-width: 620px;
    margin: 30px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--dc-border);
}

    .dc-free-tool-thankyou-download > p {
        margin: 0 0 18px;
        color: var(--dc-text-muted);
        font-size: 15px;
        line-height: 1.6;
    }


/* Thank You page has its own button scope.
   The global CRM landing buttons are scoped under
   .dc-crm-landing, so they do not apply here. */

.dc-free-tool-thankyou .dc-btn {
    min-height: 50px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

    .dc-free-tool-thankyou .dc-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }


/* Primary */

.dc-free-tool-thankyou .dc-btn-primary {
    color: #ffffff;
    background: var(--dc-primary);
    border-color: var(--dc-primary);
    box-shadow: 0 14px 34px rgba(34, 92, 255, .18);
}

    .dc-free-tool-thankyou .dc-btn-primary:hover,
    .dc-free-tool-thankyou .dc-btn-primary:focus {
        color: #ffffff;
        background: var(--dc-primary-hover);
        border-color: var(--dc-primary-hover);
        box-shadow: 0 18px 40px rgba(34, 92, 255, .24);
    }

    .dc-free-tool-thankyou .dc-btn-primary i {
        font-size: 14px;
    }


/* Outline used by current Thank You view */

.dc-free-tool-thankyou .dc-btn-outline {
    color: var(--dc-text);
    background: var(--dc-surface);
    border-color: var(--dc-border);
}

    .dc-free-tool-thankyou .dc-btn-outline:hover,
    .dc-free-tool-thankyou .dc-btn-outline:focus {
        color: var(--dc-primary);
        background: var(--dc-bg-soft);
        border-color: var(--dc-primary);
    }


/* =========================================================
   DOWNLOAD NOTE
   ========================================================= */

.dc-free-tool-thankyou-note {
    max-width: 620px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--dc-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

    .dc-free-tool-thankyou-note i {
        flex: 0 0 auto;
        color: var(--dc-primary);
        font-size: 13px;
    }


/* =========================================================
   NEXT STEP
   ========================================================= */

.dc-free-tool-thankyou-next {
    padding: 24px 0 0;
}

.dc-free-tool-thankyou-next-card {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    background: var(--dc-bg-soft);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-xl);
}

.dc-free-tool-thankyou-next-content {
    min-width: 0;
}

    .dc-free-tool-thankyou-next-content .dc-free-tool-eyebrow {
        margin-bottom: 8px;
    }

    .dc-free-tool-thankyou-next-content h2 {
        margin: 0 0 9px;
        color: var(--dc-text);
        font-size: 22px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -.02em;
    }

    .dc-free-tool-thankyou-next-content > p:last-child {
        max-width: 570px;
        margin: 0;
        color: var(--dc-text-muted);
        font-size: 14px;
        line-height: 1.65;
    }

.dc-free-tool-thankyou-next-action {
    flex: 0 0 auto;
}

    .dc-free-tool-thankyou-next-action .dc-btn {
        white-space: nowrap;
    }


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] .dc-free-tool-thankyou {
    background: radial-gradient( circle at 50% 0%, rgba(37, 99, 235, .12), transparent 34% ), var(--dc-bg);
}

[data-theme="dark"] .dc-free-tool-thankyou-icon {
    background: rgba(37, 99, 235, .12);
    border-color: rgba(37, 99, 235, .22);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .dc-free-tool-thankyou {
        min-height: 0;
        padding: 42px 0 52px;
    }

    .dc-free-tool-thankyou-card {
        padding: 34px 22px 30px;
        border-radius: 18px;
    }

    .dc-free-tool-thankyou-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 18px;
        font-size: 21px;
    }

    .dc-free-tool-thankyou-card h1 {
        font-size: 32px;
    }

    .dc-free-tool-thankyou-lead {
        font-size: 16px;
    }

    .dc-free-tool-thankyou-download {
        margin-top: 24px;
        padding-top: 22px;
    }

        .dc-free-tool-thankyou-download .dc-btn {
            width: 100%;
        }

    .dc-free-tool-thankyou-note {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .dc-free-tool-thankyou-next {
        padding-top: 18px;
    }

    .dc-free-tool-thankyou-next-card {
        padding: 24px 22px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 18px;
    }

    .dc-free-tool-thankyou-next-action .dc-btn {
        width: 100%;
    }
}


@media (max-width: 575.98px) {

    .dc-free-tool-thankyou {
        padding-top: 28px;
    }

    .dc-free-tool-thankyou-card {
        padding-right: 18px;
        padding-left: 18px;
    }

        .dc-free-tool-thankyou-card h1 {
            font-size: 28px;
        }

    .dc-free-tool-thankyou-next-card {
        padding-right: 18px;
        padding-left: 18px;
    }
}

.dc-free-tool-thankyou .dc-btn.is-disabled,
.dc-free-tool-thankyou .dc-btn[aria-disabled="true"] {
    opacity: .55;
    cursor: default;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   CRM ROI CALCULATOR
   ---------------------------------------------------------
   Uses the existing DinamikCRM CRM landing design system.
   Depends on:
   - site.css
   - CRM landing styles
   - free-tools.css shared styles
   ========================================================= */


/* =========================================================
   21. ROI Base
   ========================================================= */

.dc-roi-calculator {
    position: relative;
}

    .dc-roi-calculator *,
    .dc-roi-calculator *::before,
    .dc-roi-calculator *::after {
        box-sizing: border-box;
    }


/* =========================================================
   22. Hero Browser
   ========================================================= */

.dc-roi-browser {
    min-width: 0;
}

    .dc-roi-browser .dc-crm-browser-body {
        min-width: 0;
        padding: 0;
    }

.dc-roi-dashboard-preview {
    min-width: 0;
    padding: 22px;
    background: linear-gradient( 145deg, var(--surface) 0%, var(--surface) 60%, var(--background) 100% );
}


/* =========================================================
   23. Hero Dashboard Header
   ========================================================= */

.dc-roi-dashboard-head {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-bottom: 18px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.dc-roi-dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 12px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 17px;
}

.dc-roi-dashboard-head > div:last-child {
    min-width: 0;
}

.dc-roi-dashboard-head small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dc-roi-dashboard-head strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   24. Hero Dashboard Main
   ========================================================= */

.dc-roi-dashboard-main {
    position: relative;
    padding: 28px 0 24px;
}

.dc-roi-dashboard-main-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-roi-dashboard-main-value {
    display: flex;
    align-items: center;
    margin-top: 9px;
    gap: 10px;
    color: var(--primary);
}

    .dc-roi-dashboard-main-value i {
        font-size: 23px;
    }

    .dc-roi-dashboard-main-value span {
        font-size: clamp(38px, 5vw, 52px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.045em;
    }

.dc-roi-dashboard-bar {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--background);
}

    .dc-roi-dashboard-bar span {
        display: block;
        width: 72%;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, var(--primary), var(--dc-solution-crm, var(--primary)) );
    }


/* =========================================================
   25. Hero Dashboard KPI Cards
   ========================================================= */

.dc-roi-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.dc-roi-dashboard-kpi {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.dc-roi-dashboard-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(37, 99, 235, .07);
    color: var(--primary);
    font-size: 11px;
}

.dc-roi-dashboard-kpi > div:last-child {
    min-width: 0;
}

.dc-roi-dashboard-kpi small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-roi-dashboard-kpi strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   26. Hero Dashboard Footer
   ========================================================= */

.dc-roi-dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    gap: 12px;
    border-top: 1px solid var(--border);
}

    .dc-roi-dashboard-footer span {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        gap: 6px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.3;
    }

    .dc-roi-dashboard-footer i {
        color: var(--primary);
        font-size: 9px;
    }


/* =========================================================
   27. Trust Strip
   ========================================================= */

.dc-roi-calculator .dc-roi-trust-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}


/* =========================================================
   28. Calculator Section
   ========================================================= */

.dc-roi-calculator-section {
    background: var(--background);
}

.dc-roi-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(350px, .72fr);
    align-items: start;
    gap: 28px;
}


/* =========================================================
   29. Input Panel
   ========================================================= */

.dc-roi-input-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dc-roi-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 22px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

    .dc-roi-panel-header > div:first-child {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 12px;
    }

        .dc-roi-panel-header > div:first-child > div:last-child {
            min-width: 0;
        }

.dc-roi-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 16px;
}

.dc-roi-panel-header span {
    display: block;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.dc-roi-panel-header h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}


/* =========================================================
   30. Reset Button
   ========================================================= */

.dc-roi-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--background);
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

    .dc-roi-reset:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .dc-roi-reset span {
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        text-transform: none;
        letter-spacing: normal;
    }


/* =========================================================
   31. Validation
   ========================================================= */

.dc-roi-validation-message {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 38, 38, .20);
    border-radius: 10px;
    background: rgba(220, 38, 38, .06);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

    .dc-roi-validation-message[hidden] {
        display: none;
    }


/* =========================================================
   32. Fields
   ========================================================= */

.dc-roi-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.dc-roi-field {
    min-width: 0;
}

.dc-roi-field-wide {
    grid-column: 1 / -1;
}

.dc-roi-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-roi-field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   33. Input Controls
   ========================================================= */

.dc-roi-input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .dc-roi-input-wrap:hover {
        border-color: rgba(37, 99, 235, .32);
    }

    .dc-roi-input-wrap:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    }

.dc-roi-input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    appearance: textfield;
}

    .dc-roi-input::-webkit-outer-spin-button,
    .dc-roi-input::-webkit-inner-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

.dc-roi-input-prefix,
.dc-roi-input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 12px;
    background: rgba(37, 99, 235, .045);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dc-roi-input-prefix {
    border-right: 1px solid var(--border);
}

.dc-roi-input-suffix {
    border-left: 1px solid var(--border);
}

.dc-roi-field.is-invalid .dc-roi-input-wrap {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}


/* =========================================================
   34. Calculator Actions
   ========================================================= */

.dc-roi-input-actions {
    display: flex;
    align-items: center;
    margin-top: 28px;
    padding-top: 22px;
    gap: 18px;
    border-top: 1px solid var(--border);
}

    .dc-roi-input-actions .dc-btn {
        flex: 0 0 auto;
    }

    .dc-roi-input-actions p {
        max-width: 390px;
        margin: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.55;
    }


/* =========================================================
   35. Result Panel
   ========================================================= */

.dc-roi-result-panel {
    position: sticky;
    top: 92px;
    min-width: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

    .dc-roi-result-panel::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--primary);
        content: "";
    }


/* =========================================================
   36. Result Heading
   ========================================================= */

.dc-roi-result-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.dc-roi-result-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 13px;
}

.dc-roi-result-heading > div:last-child {
    min-width: 0;
}

.dc-roi-result-heading span {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.dc-roi-result-heading small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   37. Primary ROI
   ========================================================= */

.dc-roi-result-primary {
    margin-top: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

    .dc-roi-result-primary strong {
        display: block;
        overflow-wrap: anywhere;
        color: var(--primary);
        font-size: clamp(44px, 5vw, 62px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.05em;
    }


/* =========================================================
   38. Result KPI Cards
   ========================================================= */

.dc-roi-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    gap: 9px;
}

.dc-roi-result-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--background);
}

.dc-roi-result-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 9px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .07);
    color: var(--primary);
    font-size: 10px;
}

.dc-roi-result-card > span {
    display: block;
    min-height: 27px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-roi-result-card > strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}


/* =========================================================
   39. Breakdown
   ========================================================= */

.dc-roi-breakdown {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dc-roi-breakdown-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 7px;
}

    .dc-roi-breakdown-head i {
        color: var(--primary);
        font-size: 11px;
    }

    .dc-roi-breakdown-head h3 {
        margin: 0;
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.4;
    }

.dc-roi-breakdown-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 9px 0;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

    .dc-roi-breakdown-row span {
        min-width: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.45;
    }

    .dc-roi-breakdown-row strong {
        flex: 0 0 auto;
        max-width: 48%;
        overflow-wrap: anywhere;
        color: var(--text);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.4;
        text-align: right;
    }

.dc-roi-breakdown-total {
    padding-top: 12px;
}

    .dc-roi-breakdown-total span,
    .dc-roi-breakdown-total strong {
        color: var(--text);
        font-weight: 800;
    }

.dc-roi-breakdown-net {
    border-bottom: 0;
}

    .dc-roi-breakdown-net span,
    .dc-roi-breakdown-net strong {
        color: var(--primary);
        font-weight: 800;
    }


/* =========================================================
   40. Disclaimer
   ========================================================= */

.dc-roi-disclaimer {
    display: flex;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .055);
}

    .dc-roi-disclaimer i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--primary);
        font-size: 10px;
    }

    .dc-roi-disclaimer p {
        margin: 0;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.55;
    }


/* =========================================================
   41. Calculation Method
   ========================================================= */

.dc-roi-formula-list {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.dc-roi-formula-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    padding: 25px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.dc-roi-formula-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.dc-roi-formula-content {
    min-width: 0;
}

    .dc-roi-formula-content h3 {
        margin: 0 0 7px;
        color: var(--text);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.35;
    }

    .dc-roi-formula-content p {
        max-width: 760px;
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
    }

.dc-roi-formula-item-featured .dc-roi-formula-number {
    border-color: rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
}

.dc-roi-formula-item-featured .dc-roi-formula-content h3 {
    color: var(--primary);
}


/* =========================================================
   42. Focus / Accessibility
   ========================================================= */

.dc-roi-calculator .dc-roi-reset:focus-visible,
.dc-roi-calculator .dc-roi-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.dc-roi-calculator .dc-roi-input:focus-visible {
    outline: none;
}


/* =========================================================
   43. Dark Theme
   ========================================================= */

html[data-theme="dark"] .dc-roi-dashboard-icon,
[data-theme="dark"] .dc-roi-dashboard-icon,
html[data-theme="dark"] .dc-roi-dashboard-kpi-icon,
[data-theme="dark"] .dc-roi-dashboard-kpi-icon,
html[data-theme="dark"] .dc-roi-panel-icon,
[data-theme="dark"] .dc-roi-panel-icon,
html[data-theme="dark"] .dc-roi-result-heading-icon,
[data-theme="dark"] .dc-roi-result-heading-icon,
html[data-theme="dark"] .dc-roi-result-card-icon,
[data-theme="dark"] .dc-roi-result-card-icon,
html[data-theme="dark"] .dc-roi-formula-item-featured .dc-roi-formula-number,
[data-theme="dark"] .dc-roi-formula-item-featured .dc-roi-formula-number {
    background: rgba(59, 130, 246, .10);
}

html[data-theme="dark"] .dc-roi-input-prefix,
[data-theme="dark"] .dc-roi-input-prefix,
html[data-theme="dark"] .dc-roi-input-suffix,
[data-theme="dark"] .dc-roi-input-suffix {
    background: rgba(59, 130, 246, .07);
}

html[data-theme="dark"] .dc-roi-disclaimer,
[data-theme="dark"] .dc-roi-disclaimer {
    background: rgba(59, 130, 246, .08);
}

html[data-theme="dark"] .dc-roi-validation-message,
[data-theme="dark"] .dc-roi-validation-message {
    border-color: rgba(248, 113, 113, .28);
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}


/* =========================================================
   44. Responsive - Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .dc-roi-calculator .dc-roi-trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-roi-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dc-roi-result-panel {
        position: relative;
        top: auto;
    }

    .dc-roi-dashboard-preview {
        padding: 20px;
    }
}


/* =========================================================
   45. Responsive - Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .dc-roi-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dc-roi-dashboard-kpi {
        min-height: 58px;
    }

        .dc-roi-dashboard-kpi small,
        .dc-roi-dashboard-kpi strong {
            white-space: normal;
        }

    .dc-roi-calculator .dc-roi-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-roi-input-panel,
    .dc-roi-result-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .dc-roi-panel-header {
        align-items: flex-start;
    }

    .dc-roi-fields {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .dc-roi-field-wide {
        grid-column: auto;
    }

    .dc-roi-input-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .dc-roi-input-actions .dc-btn {
            width: 100%;
        }

    .dc-roi-formula-item {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 21px 0;
        gap: 14px;
    }

    .dc-roi-formula-number {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .dc-roi-formula-content h3 {
        font-size: 15px;
    }

    .dc-roi-formula-content p {
        font-size: 12px;
    }
}


/* =========================================================
   46. Responsive - Small Mobile
   ========================================================= */

@media (max-width: 479.98px) {

    .dc-roi-dashboard-preview {
        padding: 16px;
    }

    .dc-roi-dashboard-main {
        padding: 22px 0 20px;
    }

    .dc-roi-dashboard-main-value span {
        font-size: 38px;
    }

    .dc-roi-dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-roi-calculator .dc-roi-trust-grid {
        grid-template-columns: 1fr;
    }

    .dc-roi-panel-header {
        flex-direction: column;
    }

    .dc-roi-reset {
        align-self: flex-start;
    }

    .dc-roi-result-grid {
        grid-template-columns: 1fr;
    }

    .dc-roi-result-card {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .dc-roi-result-card-icon {
        margin: 0;
    }

    .dc-roi-result-card > span {
        min-height: 0;
    }

    .dc-roi-result-card > strong {
        margin: 0;
        text-align: right;
    }

    .dc-roi-input {
        font-size: 16px;
    }

    .dc-roi-breakdown-row {
        gap: 10px;
    }

        .dc-roi-breakdown-row strong {
            max-width: 54%;
        }

    .dc-roi-formula-item {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}


/* =========================================================
   47. Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dc-roi-reset,
    .dc-roi-input-wrap {
        transition: none;
    }
}

/* =========================================================
   FREE TOOLS HUB
   ========================================================= */

.dc-free-tools-page {
    overflow: hidden;
}


/* =========================================================
   FREE TOOLS HERO
   ========================================================= */

.dc-free-tools-hero {
    padding: 88px 0 72px;
}

.dc-free-tools-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 64px;
}

.dc-free-tools-hero-content {
    max-width: 720px;
}

    .dc-free-tools-hero-content h1 {
        margin: 18px 0 0;
        color: var(--text);
        font-size: clamp(42px, 5vw, 64px);
        line-height: 1.04;
        letter-spacing: -2px;
    }

.dc-free-tools-hero-description {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.dc-free-tools-hero-visual {
    position: relative;
    min-height: 360px;
}

.dc-free-tools-hero-card {
    position: absolute;
    width: min(360px, 88%);
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dc-free-tools-hero-card-primary {
    top: 12px;
    left: 0;
    transform: rotate(-3deg);
}

.dc-free-tools-hero-card-secondary {
    right: 0;
    bottom: 12px;
    transform: rotate(3deg);
}

.dc-free-tools-hero-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 15px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    font-size: 21px;
}

.dc-free-tools-hero-line {
    display: block;
    width: 72%;
    height: 12px;
    margin-top: 11px;
    border-radius: 999px;
    background: var(--background);
}

.dc-free-tools-hero-line-lg {
    width: 88%;
}

.dc-free-tools-hero-line-sm {
    width: 48%;
}

.dc-free-tools-hero-chart {
    height: 110px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 4px;
}

    .dc-free-tools-hero-chart span {
        flex: 1;
        border-radius: 10px 10px 4px 4px;
        background: color-mix(in srgb, var(--primary) 75%, white);
    }

        .dc-free-tools-hero-chart span:nth-child(1) {
            height: 42%;
        }

        .dc-free-tools-hero-chart span:nth-child(2) {
            height: 62%;
        }

        .dc-free-tools-hero-chart span:nth-child(3) {
            height: 78%;
        }

        .dc-free-tools-hero-chart span:nth-child(4) {
            height: 100%;
        }


/* =========================================================
   TOOLS SECTION
   ========================================================= */

.dc-free-tools-section {
    padding-top: 76px;
    padding-bottom: 88px;
}

    .dc-free-tools-section .dc-crm-section-head {
        max-width: 760px;
        margin-bottom: 38px;
    }

.dc-free-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dc-free-tool-card-icon-checkup {
    color: #7c3aed;
    background: rgba(124, 58, 237, .10);
}

[data-theme="dark"] .dc-free-tool-card-icon-checkup {
    color: #c4b5fd;
    background: rgba(124, 58, 237, .14);
}

.dc-free-tool-card-icon-forecast {
    color: #0f766e;
    background: rgba(15, 118, 110, .10);
}

[data-theme="dark"] .dc-free-tool-card-icon-forecast {
    color: #5eead4;
    background: rgba(20, 184, 166, .12);
}

.dc-free-tool-card {
    min-width: 0;
    min-height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .dc-free-tool-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
        box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    }

.dc-free-tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.dc-free-tool-card-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    border-radius: 16px;
    font-size: 22px;
}

.dc-free-tool-card-icon-excel {
    color: #16803c;
    background: rgba(22, 128, 60, .10);
}

.dc-free-tool-card-icon-roi {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.dc-free-tool-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dc-free-tool-card-content {
    flex: 1;
}

    .dc-free-tool-card-content h2 {
        margin: 0;
        color: var(--text);
        font-size: 26px;
        line-height: 1.2;
    }

    .dc-free-tool-card-content > p {
        margin: 16px 0 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.75;
    }

.dc-free-tool-card-features {
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

    .dc-free-tool-card-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: var(--text);
        font-size: 14px;
        line-height: 1.55;
    }

        .dc-free-tool-card-features li i {
            margin-top: 3px;
            color: var(--primary);
            font-size: 12px;
        }

.dc-free-tool-card-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

    .dc-free-tool-card-footer .dc-button {
        width: 100%;
        justify-content: center;
    }

        .dc-free-tool-card-footer .dc-button i {
            margin-left: 8px;
            transition: transform .2s ease;
        }

        .dc-free-tool-card-footer .dc-button:hover i {
            transform: translateX(3px);
        }


/* =========================================================
   WHY FREE TOOLS
   ========================================================= */

.dc-free-tools-why-section {
    padding-top: 0;
    padding-bottom: 88px;
}

.dc-free-tools-why {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 54px;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
}

.dc-free-tools-why-content {
    max-width: 680px;
}

    .dc-free-tools-why-content h2 {
        margin: 14px 0 0;
        color: var(--text);
        font-size: clamp(30px, 3.4vw, 42px);
        line-height: 1.14;
        letter-spacing: -1px;
    }

    .dc-free-tools-why-content p {
        margin: 20px 0 0;
        color: var(--muted);
        line-height: 1.75;
    }

.dc-free-tools-why-list {
    display: grid;
    gap: 14px;
}

.dc-free-tools-why-item {
    min-height: 72px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--background);
}

    .dc-free-tools-why-item > span {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        border-radius: 11px;
        color: var(--primary);
        background: color-mix(in srgb, var(--primary) 10%, transparent);
        font-size: 15px;
    }

    .dc-free-tools-why-item strong {
        color: var(--text);
        font-size: 14px;
        line-height: 1.5;
    }


/* =========================================================
   DARK THEME
   ========================================================= */

[data-theme="dark"] .dc-free-tool-card {
    box-shadow: none;
}

    [data-theme="dark"] .dc-free-tool-card:hover {
        box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
    }

[data-theme="dark"] .dc-free-tool-card-icon-excel {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
}

[data-theme="dark"] .dc-free-tools-hero-chart span {
    background: color-mix(in srgb, var(--primary) 78%, #ffffff);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .dc-free-tools-hero {
        padding: 68px 0 58px;
    }

    .dc-free-tools-hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .dc-free-tools-hero-content {
        max-width: 760px;
    }

    .dc-free-tools-hero-visual {
        min-height: 320px;
        max-width: 700px;
    }

    .dc-free-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-free-tools-why {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dc-free-tools-why-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-free-tools-why-item {
        min-height: 110px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {

    .dc-free-tools-hero {
        padding: 52px 0 44px;
    }

    .dc-free-tools-hero-content h1 {
        font-size: clamp(36px, 11vw, 48px);
        letter-spacing: -1.3px;
    }

    .dc-free-tools-hero-description {
        font-size: 16px;
    }

    .dc-free-tools-hero-visual {
        min-height: 270px;
    }

    .dc-free-tools-hero-card {
        width: 88%;
        padding: 20px;
        border-radius: 20px;
    }

    .dc-free-tools-hero-card-primary {
        top: 0;
    }

    .dc-free-tools-hero-card-secondary {
        bottom: 0;
    }

    .dc-free-tools-section {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .dc-free-tool-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .dc-free-tool-card-content h2 {
        font-size: 23px;
    }

    .dc-free-tools-why-section {
        padding-bottom: 64px;
    }

    .dc-free-tools-why {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .dc-free-tools-why-list {
        grid-template-columns: 1fr;
    }

    .dc-free-tools-why-item {
        min-height: 0;
        align-items: center;
        flex-direction: row;
    }

    .dc-free-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479px) {

    .dc-free-tools-hero-visual {
        min-height: 245px;
    }

    .dc-free-tools-hero-card {
        width: 92%;
    }

    .dc-free-tool-card-top {
        align-items: flex-start;
    }

    .dc-free-tool-card-badge {
        text-align: center;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dc-free-tool-card,
    .dc-free-tool-card-footer .dc-button i {
        transition: none;
    }

        .dc-free-tool-card:hover {
            transform: none;
        }

    .dc-free-tool-card-footer .dc-button:hover i {
        transform: none;
    }
}

/* =========================================================
   SALES FORECAST CALCULATOR
   ---------------------------------------------------------
   Uses the existing DinamikCRM CRM landing design system.
   Matches CRM ROI Calculator visual pattern.
   ========================================================= */


/* =========================================================
   48. Forecast Base
   ========================================================= */

.dc-sales-forecast-calculator {
    position: relative;
}

    .dc-sales-forecast-calculator *,
    .dc-sales-forecast-calculator *::before,
    .dc-sales-forecast-calculator *::after {
        box-sizing: border-box;
    }


/* =========================================================
   49. Hero Browser
   ========================================================= */

.dc-forecast-browser {
    min-width: 0;
}

    .dc-forecast-browser .dc-crm-browser-body {
        min-width: 0;
        padding: 0;
    }

.dc-forecast-dashboard-preview {
    min-width: 0;
    padding: 22px;
    background: linear-gradient( 145deg, var(--surface) 0%, var(--surface) 60%, var(--background) 100% );
}


/* =========================================================
   50. Hero Dashboard Header
   ========================================================= */

.dc-forecast-dashboard-head {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-bottom: 18px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.dc-forecast-dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 12px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 17px;
}

.dc-forecast-dashboard-head > div:last-child {
    min-width: 0;
}

.dc-forecast-dashboard-head small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dc-forecast-dashboard-head strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   51. Hero Dashboard Main
   ========================================================= */

.dc-forecast-dashboard-main {
    position: relative;
    padding: 28px 0 24px;
}

.dc-forecast-dashboard-main-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-forecast-dashboard-main-value {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-top: 9px;
    gap: 10px;
    color: var(--primary);
}

    .dc-forecast-dashboard-main-value i {
        flex: 0 0 auto;
        font-size: 22px;
    }

    .dc-forecast-dashboard-main-value span {
        min-width: 0;
        overflow-wrap: anywhere;
        color: var(--primary);
        font-size: clamp(30px, 4vw, 46px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.045em;
    }

.dc-forecast-dashboard-bar {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--background);
}

    .dc-forecast-dashboard-bar span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, var(--primary), var(--dc-solution-crm, var(--primary)) );
        transition: width .25s ease;
    }


/* =========================================================
   52. Hero Dashboard KPI Cards
   ========================================================= */

.dc-forecast-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.dc-forecast-dashboard-kpi {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.dc-forecast-dashboard-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(37, 99, 235, .07);
    color: var(--primary);
    font-size: 11px;
}

.dc-forecast-dashboard-kpi > div:last-child {
    min-width: 0;
}

.dc-forecast-dashboard-kpi small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-forecast-dashboard-kpi strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   53. Hero Dashboard Footer
   ========================================================= */

.dc-forecast-dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    gap: 12px;
    border-top: 1px solid var(--border);
}

    .dc-forecast-dashboard-footer span {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        gap: 6px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.3;
    }

    .dc-forecast-dashboard-footer i {
        color: var(--primary);
        font-size: 9px;
    }


/* =========================================================
   54. Trust Strip
   ========================================================= */

.dc-sales-forecast-calculator .dc-forecast-trust-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}


/* =========================================================
   55. Calculator Section
   ========================================================= */

.dc-forecast-calculator-section {
    background: var(--background);
}

.dc-forecast-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(350px, .72fr);
    align-items: start;
    gap: 28px;
}


/* =========================================================
   56. Input Panel
   ========================================================= */

.dc-forecast-input-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dc-forecast-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 22px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

    .dc-forecast-panel-header > div:first-child {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 12px;
    }

        .dc-forecast-panel-header > div:first-child > div:last-child {
            min-width: 0;
        }

.dc-forecast-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 16px;
}

.dc-forecast-panel-header span {
    display: block;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.dc-forecast-panel-header h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}


/* =========================================================
   57. Reset
   ========================================================= */

.dc-forecast-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--background);
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

    .dc-forecast-reset:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .dc-forecast-reset span {
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        text-transform: none;
        letter-spacing: normal;
    }


/* =========================================================
   58. Validation
   ========================================================= */

.dc-forecast-validation-message {
    display: none;
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 38, 38, .20);
    border-radius: 10px;
    background: rgba(220, 38, 38, .06);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

    .dc-forecast-validation-message.is-visible {
        display: block;
    }


/* =========================================================
   59. Fields
   ========================================================= */

.dc-forecast-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.dc-forecast-field {
    min-width: 0;
}

    .dc-forecast-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--text);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

    .dc-forecast-field small {
        display: block;
        margin-top: 7px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.55;
    }


/* =========================================================
   60. Input Controls
   ========================================================= */

.dc-forecast-input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .dc-forecast-input-wrap:hover {
        border-color: rgba(37, 99, 235, .32);
    }

    .dc-forecast-input-wrap:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    }

.dc-forecast-input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    appearance: textfield;
}

    .dc-forecast-input::-webkit-outer-spin-button,
    .dc-forecast-input::-webkit-inner-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

.dc-forecast-input-prefix,
.dc-forecast-input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 12px;
    background: rgba(37, 99, 235, .045);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.dc-forecast-input-prefix {
    border-right: 1px solid var(--border);
}

.dc-forecast-input-suffix {
    border-left: 1px solid var(--border);
}

.dc-forecast-field.is-invalid .dc-forecast-input-wrap {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}


/* =========================================================
   61. Input Actions
   ========================================================= */

.dc-forecast-input-actions {
    display: flex;
    align-items: center;
    margin-top: 28px;
    padding-top: 22px;
    gap: 18px;
    border-top: 1px solid var(--border);
}

    .dc-forecast-input-actions .dc-btn {
        flex: 0 0 auto;
    }

    .dc-forecast-input-actions p {
        max-width: 390px;
        margin: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.55;
    }


/* =========================================================
   62. Result Panel
   ========================================================= */

.dc-forecast-result-panel {
    position: sticky;
    top: 92px;
    min-width: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

    .dc-forecast-result-panel::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--primary);
        content: "";
    }


/* =========================================================
   63. Result Heading
   ========================================================= */

.dc-forecast-result-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.dc-forecast-result-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: 13px;
}

.dc-forecast-result-heading > div:last-child {
    min-width: 0;
}

.dc-forecast-result-heading span {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.dc-forecast-result-heading small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   64. Primary Result
   ========================================================= */

.dc-forecast-result-primary {
    margin-top: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

    .dc-forecast-result-primary span {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.4;
    }

    .dc-forecast-result-primary strong {
        display: block;
        overflow-wrap: anywhere;
        color: var(--primary);
        font-size: clamp(36px, 4vw, 50px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.045em;
    }


/* =========================================================
   65. Result KPI Cards
   ========================================================= */

.dc-forecast-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    gap: 9px;
}

.dc-forecast-result-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--background);
}

.dc-forecast-result-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 9px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .07);
    color: var(--primary);
    font-size: 10px;
}

.dc-forecast-result-card > span {
    display: block;
    min-height: 27px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-forecast-result-card > strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}


/* =========================================================
   66. Breakdown
   ========================================================= */

.dc-forecast-breakdown {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dc-forecast-breakdown-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 7px;
}

    .dc-forecast-breakdown-head i {
        color: var(--primary);
        font-size: 11px;
    }

    .dc-forecast-breakdown-head h3 {
        margin: 0;
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.4;
    }

.dc-forecast-breakdown-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

    .dc-forecast-breakdown-row span {
        min-width: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.45;
    }

    .dc-forecast-breakdown-row strong {
        flex: 0 0 auto;
        max-width: 48%;
        overflow-wrap: anywhere;
        color: var(--text);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.4;
        text-align: right;
    }

.dc-forecast-breakdown-net {
    border-bottom: 0;
}

    .dc-forecast-breakdown-net span,
    .dc-forecast-breakdown-net strong {
        color: var(--primary);
        font-weight: 800;
    }


/* =========================================================
   67. Disclaimer
   ========================================================= */

.dc-forecast-disclaimer {
    display: flex;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    background: rgba(37, 99, 235, .055);
}

    .dc-forecast-disclaimer i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--primary);
        font-size: 10px;
    }

    .dc-forecast-disclaimer p {
        margin: 0;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.55;
    }


/* =========================================================
   68. Formula List
   ========================================================= */

.dc-forecast-formula-list {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.dc-forecast-formula-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    padding: 25px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.dc-forecast-formula-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.dc-forecast-formula-content {
    min-width: 0;
}

    .dc-forecast-formula-content h3 {
        margin: 0 0 7px;
        color: var(--text);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.35;
    }

    .dc-forecast-formula-content p {
        max-width: 760px;
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
    }

.dc-forecast-formula-item-featured .dc-forecast-formula-number {
    border-color: rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
}

.dc-forecast-formula-item-featured .dc-forecast-formula-content h3 {
    color: var(--primary);
}


/* =========================================================
   69. Focus / Accessibility
   ========================================================= */

.dc-sales-forecast-calculator .dc-forecast-reset:focus-visible,
.dc-sales-forecast-calculator .dc-forecast-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.dc-sales-forecast-calculator .dc-forecast-input:focus-visible {
    outline: none;
}


/* =========================================================
   70. Dark Theme
   ========================================================= */

html[data-theme="dark"] .dc-forecast-dashboard-icon,
[data-theme="dark"] .dc-forecast-dashboard-icon,
html[data-theme="dark"] .dc-forecast-dashboard-kpi-icon,
[data-theme="dark"] .dc-forecast-dashboard-kpi-icon,
html[data-theme="dark"] .dc-forecast-panel-icon,
[data-theme="dark"] .dc-forecast-panel-icon,
html[data-theme="dark"] .dc-forecast-result-heading-icon,
[data-theme="dark"] .dc-forecast-result-heading-icon,
html[data-theme="dark"] .dc-forecast-result-card-icon,
[data-theme="dark"] .dc-forecast-result-card-icon,
html[data-theme="dark"] .dc-forecast-formula-item-featured .dc-forecast-formula-number,
[data-theme="dark"] .dc-forecast-formula-item-featured .dc-forecast-formula-number {
    background: rgba(59, 130, 246, .10);
}

html[data-theme="dark"] .dc-forecast-input-prefix,
[data-theme="dark"] .dc-forecast-input-prefix,
html[data-theme="dark"] .dc-forecast-input-suffix,
[data-theme="dark"] .dc-forecast-input-suffix {
    background: rgba(59, 130, 246, .07);
}

html[data-theme="dark"] .dc-forecast-disclaimer,
[data-theme="dark"] .dc-forecast-disclaimer {
    background: rgba(59, 130, 246, .08);
}

html[data-theme="dark"] .dc-forecast-validation-message,
[data-theme="dark"] .dc-forecast-validation-message {
    border-color: rgba(248, 113, 113, .28);
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}


/* =========================================================
   71. Responsive - Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .dc-sales-forecast-calculator .dc-forecast-trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-forecast-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dc-forecast-result-panel {
        position: relative;
        top: auto;
    }

    .dc-forecast-dashboard-preview {
        padding: 20px;
    }
}


/* =========================================================
   72. Responsive - Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .dc-forecast-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dc-forecast-dashboard-kpi {
        min-height: 58px;
    }

        .dc-forecast-dashboard-kpi small,
        .dc-forecast-dashboard-kpi strong {
            white-space: normal;
        }

    .dc-sales-forecast-calculator .dc-forecast-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-forecast-input-panel,
    .dc-forecast-result-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .dc-forecast-panel-header {
        align-items: flex-start;
    }

    .dc-forecast-fields {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .dc-forecast-input-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .dc-forecast-input-actions .dc-btn {
            width: 100%;
        }

    .dc-forecast-formula-item {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 21px 0;
        gap: 14px;
    }

    .dc-forecast-formula-number {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .dc-forecast-formula-content h3 {
        font-size: 15px;
    }

    .dc-forecast-formula-content p {
        font-size: 12px;
    }
}


/* =========================================================
   73. Responsive - Small Mobile
   ========================================================= */

@media (max-width: 479.98px) {

    .dc-forecast-dashboard-preview {
        padding: 16px;
    }

    .dc-forecast-dashboard-main {
        padding: 22px 0 20px;
    }

    .dc-forecast-dashboard-main-value span {
        font-size: 32px;
    }

    .dc-forecast-dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-sales-forecast-calculator .dc-forecast-trust-grid {
        grid-template-columns: 1fr;
    }

    .dc-forecast-panel-header {
        flex-direction: column;
    }

    .dc-forecast-reset {
        align-self: flex-start;
    }

    .dc-forecast-result-grid {
        grid-template-columns: 1fr;
    }

    .dc-forecast-result-card {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .dc-forecast-result-card-icon {
        margin: 0;
    }

    .dc-forecast-result-card > span {
        min-height: 0;
    }

    .dc-forecast-result-card > strong {
        margin: 0;
        text-align: right;
    }

    .dc-forecast-input {
        font-size: 16px;
    }

    .dc-forecast-breakdown-row {
        gap: 10px;
    }

        .dc-forecast-breakdown-row strong {
            max-width: 54%;
        }

    .dc-forecast-formula-item {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}


/* =========================================================
   74. Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dc-forecast-reset,
    .dc-forecast-input-wrap,
    .dc-forecast-dashboard-bar span {
        transition: none;
    }
}

/* =========================================================
   SALES CALCULATORS
   ========================================================= */

.dc-sales-calculators {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.dc-sales-calculator-card {
    min-width: 0;
    min-height: 100%;
    padding: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    column-gap: 18px;
    row-gap: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .dc-sales-calculator-card:hover {
        transform: translateY(-2px);
        border-color: color-mix( in srgb, var(--primary) 24%, var(--border) );
        box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    }

.dc-sales-calculator-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    grid-column: 1;
    flex: 0 0 48px;
    border-radius: 14px;
    color: var(--primary);
    background: color-mix( in srgb, var(--primary) 10%, transparent );
    font-size: 19px;
}

.dc-sales-calculator-icon-forecast {
    color: #0f766e;
    background: rgba(15, 118, 110, .10);
}

.dc-sales-calculator-content {
    min-width: 0;
    grid-row: 1;
    grid-column: 2;
}

    .dc-sales-calculator-content .dc-section-eyebrow {
        margin-bottom: 6px;
    }

    .dc-sales-calculator-content h3 {
        margin: 0 0 8px;
        color: var(--text);
        font-size: 20px;
        line-height: 1.3;
    }

    .dc-sales-calculator-content p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.7;
    }

.dc-sales-calculator-action {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

    .dc-sales-calculator-action .dc-button {
        width: 100%;
        justify-content: center;
    }

        .dc-sales-calculator-action .dc-button i {
            margin-left: 8px;
            transition: transform .2s ease;
        }

        .dc-sales-calculator-action .dc-button:hover i {
            transform: translateX(3px);
        }


/* =========================================================
   DARK
   ========================================================= */

[data-theme="dark"] .dc-sales-calculator-card {
    box-shadow: none;
}

    [data-theme="dark"] .dc-sales-calculator-card:hover {
        box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
    }

[data-theme="dark"] .dc-sales-calculator-icon-forecast {
    color: #5eead4;
    background: rgba(20, 184, 166, .12);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .dc-sales-calculators {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {

    .dc-sales-calculator-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .dc-sales-calculator-icon,
    .dc-sales-calculator-content {
        grid-column: 1;
    }

    .dc-sales-calculator-icon {
        grid-row: auto;
    }

    .dc-sales-calculator-content {
        grid-row: auto;
    }

    .dc-sales-calculator-action {
        grid-column: 1;
        padding-top: 16px;
    }
}