:root {
    --input-width: 280px;
    --active-color: #3375AA;
    --active-color-focus: #004988;
    --active-color-light: #E6F2FC;
    --body-background: #f8f9fb;
    --odd-row-background: #f9fafb;
    --color-blue: #3375AA;
    --color-red: #D94A4A;
    --color-orange: #F39C12;
    --color-green: #4FA36A;
    --border-color: #dce3ea;
    --text-color: #1f2937;
    --muted-color: #667085;
    --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --row-shadow: 0 8px 24px rgba(51, 117, 170, 0.10);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--body-background);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: 16px;
}

.margin-top-16 {
    margin-top: 1.6rem;
}

.ev-label {
    font-size: 1rem;
    padding-left: 0.5rem;
}

.ev-input {
    border: 1px solid #d1d5db;
    border-radius: 0.4rem;
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;
    width: var(--input-width);
}

@media (max-width: 630px) {
    .ev-input {
        width: calc(100vw - 64px);
    }
}

.fa-solid {
    margin-right: 15px;
}

/* button-group */
.button-group {
    height: 40px;
    display: flex;
    gap: 0;
    width: auto;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

    .button-group:hover {
        transform: translateY(-2px);
    }

    .button-group button {
        width: auto;
        background-color: #fff;
        border: none;
        border-radius: 0.4rem;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
        color: var(--active-color);
        text-align: center;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

        .button-group button:hover {
            transform: translateY(-2px);
        }

@media (max-width: 900px) {
    .compact-900 button span {
        display: none;
    }

    .compact-900 button {
        width: 36px;
    }

    button.compact-900 span {
        display: none;
    }
}

@media (max-width: 1080px) {
    .compact-1080 button span {
        display: none;
    }

    .compact-1080 button {
        width: 36px;
    }

    button.compact-1080 span {
        display: none;
    }

    button.compact-1080 {
        width: 40px !important;
    }
}

.button-group button:hover {
    background-color: #ddd;
}

.button-group button.active {
    background-color: #116;
    color: #fff;
}

/* button */
.ev-button {
    height: 40px;
    background-color: #fff;
    color: var(--active-color);
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: pointer;
}

    .ev-button:hover {
        background-color: #116;
        color: #fff;
        transform: translateY(-2px);
    }

    .ev-button:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

/* flex styles */
.flex-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-content: stretch;
}

.flex-wrap {
    flex-wrap: wrap;
}

.width50 {
    min-width: 50px;
}

.width100 {
    min-width: 100px;
    text-align: left;
}

/* Loading popup styles */
.loading-popup {
    display: flex;
    position: fixed;
    background-color: rgba(200, 200, 200, 0.8);
    z-index: 9900;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.loading-content {
    background: white;
    padding: 30px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 50px;
    height: 50px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-progress-bar-background {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background-color: white;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.loading-progress-bar {
    position: relative;
    left: 0;
    top: 0;
    height: 4px;
    background-color: var(--active-color);
    overflow: hidden;
    transition: width 0.5s ease, background-color 0.5s ease, opacity 0.5s ease;
}

#MainContent {
    text-align: -webkit-center;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    text-align: left;
}

h1 {
    font-size: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1.05rem;
}

h6 {
    font-size: 1rem;
}

.survey-container {
    align-self: center;
    background: white;
    margin: 40px 10px 60px 10px;
    max-width: 1900px;
    min-width: 310px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-logo {
    display: block;
    max-width: 150px;
}

.first-column-results-grid {
    min-width: 260px;
}

@media (hover: none) {
    .survey-container {
        padding: 10px;
        margin: 40px 0px 60px 0px;
    }

    .main-logo {
        top: 10px;
        right: 10px;
        max-width: 60px;
        z-index: 12;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1.05rem;
    }

    h6 {
        font-size: 1rem;
    }

    .first-column-results-grid {
        min-width: 100px;
    }

    .chart-actual {
        max-height: 250px;
    }

    body {
        font-size: 12px;
    }
}

.survey-step {
    display: none;
    animation: fadeIn 0.4s ease;
    text-align: left;
}

    .survey-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.survey-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

div:not(.dx-closebutton, .dx-button-mode-text, dx-dropdowneditor-button).dx-button {
    color: white;
    background-color: var(--active-color);
    border: 1px solid var(--active-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

    div:not(.dx-closebutton, .dx-button-mode-text, dx-dropdowneditor-button).dx-button:focus {
        background-color: var(--active-color-focus);
    }

    div:not(.dx-closebutton, .dx-button-mode-text, dx-dropdowneditor-button).dx-button:hover {
        background-color: #eee;
    }

    div:not(.dx-closebutton, .dx-button-mode-text, dx-dropdowneditor-button).dx-button .dx-icon {
        color: white;
    }

    div:not(.dx-closebutton, .dx-button-mode-text, dx-dropdowneditor-button).dx-button:hover .dx-icon {
        color: var(--active-color);
    }

.dx-popup-bottom {
    height: 56px;
}

.red-icon .dx-icon {
    color: #ffffff;
}

.red-icon:hover .dx-icon {
    color: #ff3333;
}

.btn-prev {
    background-color: #ccc;
    width: 150px;
}

.btn-next {
    background-color: var(--active-color);
    color: white;
    width: 150px;
}

    .btn-next:hover {
        background-color: #0006b3;
    }

    .btn-next:disabled {
        background-color: #ccc;
        cursor: default;
    }

.progress-label {
    display: flex;
    text-align: center;
    align-content: center;
    margin-bottom: 20px;
    color: #888;
    width: 100%;
}

@media (max-width: 300px) and (hover: hover) {
    .progress-label {
        display: none;
    }
}

p {
    line-height: 1.5;
    text-align: justify;
}

li {
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: justify;
}

ul.protection-form {
    list-style: none;
    padding: 20px;
}

    ul.protection-form li {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
    }

    ul.protection-form input,
    ul.protection-form select {
        width: 100%;
        padding: 8px 10px;
        font-size: 1rem;
        box-sizing: border-box;
    }

        ul.protection-form input:focus,
        ul.protection-form select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0,123,255,0.2);
        }

.span-key-value {
    text-wrap-mode: wrap;
    font-weight: bold;
}

.table-container {
    max-height: 280px;
    overflow-y: auto;
}

    .table-container th {
        position: sticky; /* Make the header sticky */
        top: 0; /* Stick to the top of the scroll container */
        background-color: #f0f0f0; /* Set a background color to prevent content from showing through */
        z-index: 1; /* Ensure the header stays above the table body content */
        padding: 10px;
        text-align: right;
        border-bottom: 1px solid #ccc;
    }

    .table-container td {
        padding: 10px;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

.selected {
    background-color: var(--active-color);
    color: white;
}

.grid {
    width: 100%;
    border-collapse: collapse;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    text-align: right;
}

table.popup-table {
    border-collapse: collapse;
    width: 100%;
}

    /* Header cells */
    table.popup-table th {
        padding: 8px 12px;
        text-align: left;
        background-color: #f3f4f6;
        border-bottom: 2px solid #ddd;
    }

    /* Body cells */
    table.popup-table td {
        padding: 8px 12px;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Zebra striping for odd rows */
    table.popup-table tbody tr:nth-child(odd) {
        background-color: var(--odd-row-background);
    }

    /* Optional hover effect */
    table.popup-table tbody tr:hover {
        background-color: var(--active-color-light);
    }

.plans-compare {
    text-align: center;
    padding: 4px;
    width: 100%;
    table-layout: fixed;
}

    .plans-compare th, .plans-compare td {
        padding: 6px;
    }

    .plans-compare th {
        font-size: 20px;
        background-color: #eee;
        border-bottom: 1px solid #999;
    }

.plans-table {
    text-align: right;
    padding: 4px;
    width: 100%;
}

    .plans-table th, .plans-table td {
        padding: 6px;
    }

/* Base table styling (important for sticky) */
.plans-table {
    border-collapse: separate; /* NOT collapse */
    border-spacing: 0;
    width: max-content; /* allows horizontal scrolling */
}

    .plans-table td:not(:first-child):not(:last-child),
    .plans-table th:not(:first-child):not(:last-child) {
        cursor: pointer;
    }
    /* Zebra striping for odd rows */
    .plans-table tr:nth-child(odd) {
        background-color: #f9fafb;
    }

    /* Optional hover effect */
    .plans-table tr:hover td:not(.new-plan) {
        background-color: var(--active-color-light);
    }

    .plans-table tr:hover td.active-column {
        background-color: var(--active-color);
        color: white;
    }

    .plans-table td {
        min-width: 150px;
        border-right: 1px solid #eee;
    }

    .plans-table th {
        vertical-align: top;
        border: 1px solid #999;
        border-left: none;
    }

@media (hover: hover) and (min-width: 600px) {
    /* Sticky first column */
    .plans-table th:first-child,
    .plans-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background-color: white;
    }
        /* Optional: subtle shadow to show separation */
        .plans-table th:first-child::after,
        .plans-table td:first-child::after {
            content: "";
            position: absolute;
            top: 0;
            right: -14px;
            width: 14px;
            height: 100%;
            background: linear-gradient(to right, rgba(0,0,0,0.15), transparent);
        }
}

.plans-table tr:nth-child(odd) th:first-child,
.plans-table tr:nth-child(odd) td:first-child {
    background-color: var(--odd-row-background);
}

.plans-table tr:hover:nth-child(odd) th:first-child,
.plans-table tr:hover:nth-child(odd) td:first-child {
    background-color: var(--active-color-light);
}
/* Header cells should stay above td */
.plans-table th:first-child {
    z-index: 4;
}

.plans-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    top: 0px;
    background: white;
    padding: 10px 0px;
}

.plan-div {
    background-color: #eee;
    min-width: 136px;
    max-width: 298px;
    min-height: 40px;
    border-radius: 8px;
    /*box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);*/
    cursor: pointer;
    padding: 8px;
    text-wrap: wrap;
    transition: all ease 0.2s;
}

    .plan-div.active {
        color: white;
        background-color: var(--active-color);
    }

    .plan-div:hover {
        color: white;
        background-color: var(--active-color-focus);
    }

@media (max-width: 700px) {
    .lowPrty {
        display: none;
    }
}

.nav-num-btn {
    min-width: 70px;
    min-height: 40px;
}

@media (max-width: 800px) and (hover: hover) {
    .nav-num-btn {
        display: none;
    }
}

.chart-canvas {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    height: 640px;
    width: 800px;
    max-height: 640px;
}

.chart-container {
    flex: 1;
    min-width: 400px;
}

.charts-responsive {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mood-switch {
    width: 88px;
    height: 38px;
    background: #ddd;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
    justify-content: space-between;
}

    .mood-switch.pessimist {
        background: #f2c2c2;
    }

    .mood-switch.optimist {
        background: #c3f3c3;
    }

    .mood-switch .switch-thumb {
        position: absolute;
        background: #fff;
        width: 30px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
        padding-left: 2px;
        padding-right: 0px;
    }


    .mood-switch.pessimist .pess-icon {
        display: block;
    }

    .mood-switch.optimist .opt-icon {
        display: block;
    }

    .mood-switch.pessimist .switch-thumb {
        transform: translateX(3px);
    }

    .mood-switch.optimist .switch-thumb {
        transform: translateX(53px);
    }

    .mood-switch .pess-icon,
    .mood-switch .opt-icon {
        font-size: 26px;
        left: 3px;
        top: 3px;
        color: #444;
        display: none;
        position: absolute;
    }

.plan {
    width: 180px;
}

    .plan:hover .action-icons {
        opacity: 1;
    }

.action-icons {
    pointer-events: auto;
    display: flex;
    background-color: white;
    padding: 8px;
    border-radius: 5px;
    transition: 0.2s;
    cursor: default;
}

    .action-icons i {
        cursor: pointer;
    }

        .action-icons i:hover {
            transform: scale(1.2);
            transition: 0.2s;
        }

.new-plan-header {
    cursor: pointer;
    text-align: left;
    transition: all ease 0.2s;
    background-color: #eee;
    border: none !important;
    pointer-events: auto;
}

    .new-plan-header div {
        display: flex;
        align-items: center;
        padding: 5px;
        pointer-events: none;
    }

        .new-plan-header div i {
            font-size: 32px !important;
        }

    .new-plan-header:hover {
        background-color: var(--active-color);
        color: white;
    }

.new-plan {
    pointer-events: none;
    background-color: #f9f9f9;
    border: none !important;
}

.small-gray {
    font-size: 0.74em;
}

.switch-section {
    text-align: left;
    margin-left: 10px;
    margin-top: 10px;
    padding-left: 10px;
}

    .switch-section.optimist {
        border-left: #c3f3c3 5px solid;
    }

    .switch-section.pessimist {
        border-left: #f2c2c2 5px solid;
    }

.row-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hover-panel {
    padding: 8px;
    border-radius: 8px;
    transition: ease 0.2s;
    min-width: 240px;
}

    .hover-panel.active {
        border: 2px solid #aaddff;
    }

    .hover-panel:hover {
        background: rgba(0,123,255,0.2);
    }

.version {
    opacity: 0.4;
    top: 5px;
    left: 5px;
    color: #fff;
    border: 1px solid #333;
    border-radius: 50px;
    font-size: small;
    padding: 3px 8px;
    background: #333;
}

.action-row-container {
    position:fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.action-row {
    padding: 20px 5px 5px 5px;
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(20%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 20%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%); /* W3C */
    height: 40px;
}

@media (hover: none) {
    .action-row {
        overflow-x: auto;
    }
    /* LEFT overlay */
    .action-row-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 20px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient( to right, rgba(255,255,255,1), rgba(255,255,255,0) );
    }

    /* RIGHT overlay */
    .action-row-container::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient( to left, rgba(255,255,255,1), rgba(255,255,255,0) );
    }
}

/* Active column background */
.active-column {
    background-color: var(--active-color-light);
    border-left: 1px solid var(--active-color-focus) !important;
    border-right: 1px solid var(--active-color-focus) !important;
}

th.active-column {
    background-color: var(--active-color);
    color: white;
}

.higher {
    color: green;
}

.lower {
    color: red;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto;
    margin-left: 4px;
    margin-top: 4px;
}

    .logo:hover {
        transform: scale(1.1);
    }

.symbol-row {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    cursor: pointer;
}

    .video-wrapper video {
        width: 100%;
        display: block;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, opacity 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-overlay span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.flex-td {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

    .flex-td .cell-item {
        flex: 1 1 25%;
        min-width: 220px;
        box-sizing: border-box;
    }

@media (max-width: 800px) {
    .flex-td .cell-item {
        flex: 1 1 100%;
    }
}

.compare-cell-item {
    display: grid;
    place-items: center;
    border-right: 1px solid #eee;
    padding-right: 10px;
}

    .compare-cell-item:last-child {
        border: none;
    }

.legend-container {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

    .legend-container > * {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.legend-box {
    width: 15px;
    height: 15px;
}

@keyframes flashFade {
    0% {
        color: white;
        background-color: var(--active-color);
    }

    100% {
        color: black;
        background-color: transparent;
    }
}

.highlight-flash {
    animation: flashFade 3s ease forwards;
}

.export-value {
    border: 1px solid blue;
    padding: 4px;
}

.plans-select-list {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    flex-wrap: wrap;
}

.plan-select-item {
    padding: 10px;
    background-color: #eee;
    min-width: 100px;
    border-radius: 4px;
}

.flex-row-gap-20 {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.popup-variants {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 16px;
}

.outlined {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--color-blue);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/*@media (hover: none), (max-width: 1200px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}*/
/* New Design Styles */

:root {
    --bg: #f4f7fb;
    --bg2: #f4fbf7;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #dbe3ef;
    --primary: #0f6cbd;
    --primary-dark: #09579a;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 12px 30px rgba(15, 23, 42, .08);
    --radius: 18px;
}

.dx-popup-content {
    padding: 0px;
}

.input-content {
    padding: 20px;
    container-type: inline-size;
}

    .input-content .dx-widget .dx-texteditor-input {
        font-size: 16px;
        padding: 16px;
    }

    .input-content .dx-placeholder {
        padding-left: 16px;
    }

    .input-content .dx-texteditor-with-label {
        padding-top: 0px;
    }

    .input-content .dx-editor-outlined .dx-label span {
        position: relative;
        font-size: 13px;
        top: 0;
        margin-top: 0;
        transform: translate(0,-12px);
        height: 16px;
        line-height: normal;
        font-weight: 100;
        color: var(--muted);
        margin: 4px;
    }

    .input-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }

.input-field {
    flex: 1;
    min-width: 150px;
}

.input-section {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    background: var(--bg);
}

    .input-section.active {
        border: 2px solid var(--color-blue);
    }

.input-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .input-section-title h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

.subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.input-step {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e7f1fb;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.side-panel {
    top: 40px;
    height: fit-content;
    position: sticky;
}

.summary {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-align: left;
}

    .summary h3 {
        margin-top: 4px;
        font-size: 20px;
    }

.summary-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(50,50,50,.08);
}

    .summary-item:last-child {
        border-bottom: none;
    }

.summary-label {
    font-size: 13px;
    opacity: .7;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
}

.key-input-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    align-self: start;
    font-weight: 800;
    font-size: 16px;
}

.help-icon {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e7f1fb;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    align-self: start;
    font-weight: 800;
    font-size: 16px;
    top: 0px;
    right: 0px;
    transition: ease 0.3s;
}

.help-icon:hover {
    background: var(--color-blue);
    color: #fff;
}

@container (max-width: 500px) {
    .lbl-or {
        display: none;
    }
}

@container (max-width: 800px) {
    .input-content {
        padding: 0px;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .input-row,
    .input-metric-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------- Scroll button --------------------------*/

#scroll-btn {
    /* Position: fixed at bottom-right */
    position: fixed;
    bottom: 50px;
    left: 50%;
    z-index: 999;
    /* Size & shape */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    /* Look */
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    /* Center the arrow icon */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Entry / exit animation */
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    /* Visible state (toggled by JS) */
    #scroll-btn.visible {
        opacity: 0.8;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* Hover / active feedback */
    #scroll-btn:hover {
        background: #333;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
        transform: translateY(-2px) scale(1.05);
    }

    #scroll-btn:active {
        transform: scale(0.95);
    }

    /* Bouncing arrow animation — draws attention */
    #scroll-btn svg {
        animation: bounce 1.6s ease-in-out infinite;
    }

@keyframes bounce {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* Pulse ring — subtle "hey, look here" hint */
#scroll-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(26, 26, 26, 0.4);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.responsive-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1000px) {
    .responsive-panel {
        grid-template-columns: 1fr;
    }
}